@lyxa.ai/marketing 1.0.49 → 1.0.51

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 (241) hide show
  1. package/dist/lib/index.d.ts +265 -21
  2. package/dist/lib/index.d.ts.map +1 -1
  3. package/dist/lib/modules/tournament/config/config.repository.d.ts +3 -0
  4. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
  5. package/dist/lib/modules/tournament/config/config.repository.js +3 -0
  6. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
  7. package/dist/lib/modules/tournament/config/config.router.d.ts +10 -10
  8. package/dist/lib/modules/tournament/config/config.validation.d.ts +37 -36
  9. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
  10. package/dist/lib/modules/tournament/config/config.validation.js +4 -3
  11. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
  12. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
  13. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +9 -1
  14. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
  15. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
  16. package/dist/lib/modules/tournament/match/match.builder.js +2 -1
  17. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
  18. package/dist/lib/modules/tournament/match/match.repository.d.ts +2 -0
  19. package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
  20. package/dist/lib/modules/tournament/match/match.repository.js +10 -0
  21. package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
  22. package/dist/lib/modules/tournament/match/match.router.d.ts +16 -4
  23. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
  24. package/dist/lib/modules/tournament/match/match.service.d.ts +0 -1
  25. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
  26. package/dist/lib/modules/tournament/match/match.service.js +3 -9
  27. package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
  28. package/dist/lib/modules/tournament/match/match.validation.d.ts +50 -0
  29. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -1
  30. package/dist/lib/modules/tournament/match/match.validation.js +1 -0
  31. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -1
  32. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
  33. package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
  34. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +1 -6
  35. package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -1
  36. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
  37. package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
  38. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +15 -9
  39. package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -1
  40. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +8 -0
  41. package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
  42. package/dist/lib/modules/tournament/notification/notification-template.repository.js +60 -0
  43. package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -0
  44. package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -0
  45. package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -0
  46. package/dist/lib/modules/tournament/notification/notification.config.js +15 -0
  47. package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -0
  48. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  49. package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  50. package/dist/lib/modules/tournament/notification/notification.schedule.config.js +15 -0
  51. package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +1 -0
  52. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
  53. package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
  54. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +15 -28
  55. package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -1
  56. package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -4
  57. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
  58. package/dist/lib/modules/tournament/notification/notification.service.js +33 -28
  59. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
  60. package/dist/lib/modules/tournament/participant/participant.repository.d.ts +3 -0
  61. package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  62. package/dist/lib/modules/tournament/participant/participant.repository.js +14 -0
  63. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
  64. package/dist/lib/modules/tournament/participant/participant.router.d.ts +27 -4
  65. package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -1
  66. package/dist/lib/modules/tournament/participant/participant.router.js +7 -0
  67. package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -1
  68. package/dist/lib/modules/tournament/participant/participant.service.d.ts +2 -2
  69. package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -1
  70. package/dist/lib/modules/tournament/participant/participant.service.js +20 -6
  71. package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -1
  72. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +144 -36
  73. package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -1
  74. package/dist/lib/modules/tournament/participant/participant.validation.js +10 -3
  75. package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -1
  76. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  77. package/dist/lib/modules/tournament/prediction/prediction.builder.js +3 -2
  78. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
  79. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +1 -0
  80. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  81. package/dist/lib/modules/tournament/prediction/prediction.service.js +12 -1
  82. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
  83. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  84. package/dist/lib/modules/tournament/reward/reward.builder.js +2 -1
  85. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
  86. package/dist/lib/modules/tournament/reward/reward.repository.d.ts +8 -0
  87. package/dist/lib/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  88. package/dist/lib/modules/tournament/reward/reward.repository.js +66 -0
  89. package/dist/lib/modules/tournament/reward/reward.repository.js.map +1 -0
  90. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts +27 -0
  91. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  92. package/dist/lib/modules/tournament/schedule/schedule.router.js +17 -0
  93. package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -0
  94. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +10 -0
  95. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  96. package/dist/lib/modules/tournament/schedule/schedule.service.js +87 -0
  97. package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -0
  98. package/dist/lib/modules/tournament/score/score.repository.d.ts +8 -1
  99. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -1
  100. package/dist/lib/modules/tournament/score/score.repository.js +12 -2
  101. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -1
  102. package/dist/lib/modules/tournament/score/score.router.d.ts +98 -0
  103. package/dist/lib/modules/tournament/score/score.router.d.ts.map +1 -0
  104. package/dist/lib/modules/tournament/score/score.router.js +20 -0
  105. package/dist/lib/modules/tournament/score/score.router.js.map +1 -0
  106. package/dist/lib/modules/tournament/score/score.service.d.ts +7 -0
  107. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -1
  108. package/dist/lib/modules/tournament/score/score.service.js +49 -0
  109. package/dist/lib/modules/tournament/score/score.service.js.map +1 -1
  110. package/dist/lib/modules/tournament/score/score.validation.d.ts +375 -0
  111. package/dist/lib/modules/tournament/score/score.validation.d.ts.map +1 -0
  112. package/dist/lib/modules/tournament/score/score.validation.js +19 -0
  113. package/dist/lib/modules/tournament/score/score.validation.js.map +1 -0
  114. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  115. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  116. package/dist/lib/modules/tournament/statistics/statistics.builder.js +53 -0
  117. package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -0
  118. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +80 -0
  119. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  120. package/dist/lib/modules/tournament/statistics/statistics.router.js +21 -0
  121. package/dist/lib/modules/tournament/statistics/statistics.router.js.map +1 -0
  122. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts +11 -0
  123. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  124. package/dist/lib/modules/tournament/statistics/statistics.service.js +80 -0
  125. package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -0
  126. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  127. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  128. package/dist/lib/modules/tournament/statistics/statistics.validation.js +36 -0
  129. package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -0
  130. package/dist/lib/modules/tournament/team/team.router.d.ts +9 -3
  131. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
  132. package/dist/lib/modules/tournament/team/team.service.d.ts +1 -0
  133. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
  134. package/dist/lib/modules/tournament/team/team.service.js +23 -16
  135. package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
  136. package/dist/lib/modules/tournament/team/team.validation.d.ts +54 -4
  137. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
  138. package/dist/lib/modules/tournament/team/team.validation.js +4 -2
  139. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
  140. package/dist/lib/modules/tournament/tournament.router.d.ts +370 -125
  141. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
  142. package/dist/lib/modules/tournament/tournament.router.js +13 -2
  143. package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
  144. package/dist/lib/modules/tournament/tournament.service.d.ts +3 -1
  145. package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -1
  146. package/dist/lib/modules/tournament/tournament.service.js +17 -2
  147. package/dist/lib/modules/tournament/tournament.service.js.map +1 -1
  148. package/dist/lib/modules/tournament/tournament.types.d.ts +14 -0
  149. package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -0
  150. package/dist/lib/modules/tournament/tournament.types.js +20 -0
  151. package/dist/lib/modules/tournament/tournament.types.js.map +1 -0
  152. package/dist/lib/modules/tournament/tournament.utils.d.ts +2 -0
  153. package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -0
  154. package/dist/lib/modules/tournament/tournament.utils.js +6 -0
  155. package/dist/lib/modules/tournament/tournament.utils.js.map +1 -0
  156. package/dist/lib/modules/tournament/tournament.validation.d.ts +15 -0
  157. package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -1
  158. package/dist/lib/modules/tournament/tournament.validation.js +4 -1
  159. package/dist/lib/modules/tournament/tournament.validation.js.map +1 -1
  160. package/dist/types/index.d.ts +265 -21
  161. package/dist/types/index.d.ts.map +1 -1
  162. package/dist/types/modules/tournament/config/config.repository.d.ts +3 -0
  163. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
  164. package/dist/types/modules/tournament/config/config.router.d.ts +10 -10
  165. package/dist/types/modules/tournament/config/config.validation.d.ts +37 -36
  166. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
  167. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
  168. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
  169. package/dist/types/modules/tournament/match/match.repository.d.ts +2 -0
  170. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
  171. package/dist/types/modules/tournament/match/match.router.d.ts +16 -4
  172. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
  173. package/dist/types/modules/tournament/match/match.service.d.ts +0 -1
  174. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
  175. package/dist/types/modules/tournament/match/match.validation.d.ts +50 -0
  176. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
  177. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
  178. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
  179. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
  180. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
  181. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +8 -0
  182. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
  183. package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -0
  184. package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -0
  185. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  186. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  187. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
  188. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
  189. package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -4
  190. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
  191. package/dist/types/modules/tournament/participant/participant.repository.d.ts +3 -0
  192. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  193. package/dist/types/modules/tournament/participant/participant.router.d.ts +27 -4
  194. package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -1
  195. package/dist/types/modules/tournament/participant/participant.service.d.ts +2 -2
  196. package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -1
  197. package/dist/types/modules/tournament/participant/participant.validation.d.ts +144 -36
  198. package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -1
  199. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  200. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +1 -0
  201. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  202. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  203. package/dist/types/modules/tournament/reward/reward.repository.d.ts +8 -0
  204. package/dist/types/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  205. package/dist/types/modules/tournament/schedule/schedule.router.d.ts +27 -0
  206. package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  207. package/dist/types/modules/tournament/schedule/schedule.service.d.ts +10 -0
  208. package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  209. package/dist/types/modules/tournament/score/score.repository.d.ts +8 -1
  210. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -1
  211. package/dist/types/modules/tournament/score/score.router.d.ts +98 -0
  212. package/dist/types/modules/tournament/score/score.router.d.ts.map +1 -0
  213. package/dist/types/modules/tournament/score/score.service.d.ts +7 -0
  214. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -1
  215. package/dist/types/modules/tournament/score/score.validation.d.ts +375 -0
  216. package/dist/types/modules/tournament/score/score.validation.d.ts.map +1 -0
  217. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  218. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  219. package/dist/types/modules/tournament/statistics/statistics.router.d.ts +80 -0
  220. package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  221. package/dist/types/modules/tournament/statistics/statistics.service.d.ts +11 -0
  222. package/dist/types/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  223. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  224. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  225. package/dist/types/modules/tournament/team/team.router.d.ts +9 -3
  226. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
  227. package/dist/types/modules/tournament/team/team.service.d.ts +1 -0
  228. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
  229. package/dist/types/modules/tournament/team/team.validation.d.ts +54 -4
  230. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
  231. package/dist/types/modules/tournament/tournament.router.d.ts +370 -125
  232. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
  233. package/dist/types/modules/tournament/tournament.service.d.ts +3 -1
  234. package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -1
  235. package/dist/types/modules/tournament/tournament.types.d.ts +14 -0
  236. package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -0
  237. package/dist/types/modules/tournament/tournament.utils.d.ts +2 -0
  238. package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -0
  239. package/dist/types/modules/tournament/tournament.validation.d.ts +15 -0
  240. package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -1
  241. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ import { mongoose } from '@typegoose/typegoose';
1
2
  export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
2
3
  ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
3
4
  meta: object;
@@ -35,7 +36,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
35
36
  name: string;
36
37
  startDate: string | Date;
37
38
  endDate: string | Date;
38
- tag: string;
39
+ tag: import("./tournament.types").TournamentTag;
39
40
  status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
40
41
  reward?: {
41
42
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
@@ -52,12 +53,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
52
53
  data?: {
53
54
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
54
55
  name: string;
55
- tag: string;
56
- _id?: string | import("mongoose").Types.ObjectId | undefined;
56
+ _id?: string | mongoose.Types.ObjectId | undefined;
57
57
  createdAt?: Date | null | undefined;
58
58
  startDate?: Date | null | undefined;
59
59
  endDate?: Date | null | undefined;
60
60
  updatedAt?: Date | null | undefined;
61
+ tag?: import("./tournament.types").TournamentTag | undefined;
61
62
  reward?: {
62
63
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
63
64
  } | {
@@ -70,12 +71,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
70
71
  documents: {
71
72
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
72
73
  name: string;
73
- tag: string;
74
- _id?: string | import("mongoose").Types.ObjectId | undefined;
74
+ _id?: string | mongoose.Types.ObjectId | undefined;
75
75
  createdAt?: Date | null | undefined;
76
76
  startDate?: Date | null | undefined;
77
77
  endDate?: Date | null | undefined;
78
78
  updatedAt?: Date | null | undefined;
79
+ tag?: import("./tournament.types").TournamentTag | undefined;
79
80
  reward?: {
80
81
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
81
82
  } | {
@@ -103,12 +104,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
103
104
  data?: {
104
105
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
105
106
  name: string;
106
- tag: string;
107
- _id?: string | import("mongoose").Types.ObjectId | undefined;
107
+ _id?: string | mongoose.Types.ObjectId | undefined;
108
108
  createdAt?: Date | null | undefined;
109
109
  startDate?: Date | null | undefined;
110
110
  endDate?: Date | null | undefined;
111
111
  updatedAt?: Date | null | undefined;
112
+ tag?: import("./tournament.types").TournamentTag | undefined;
112
113
  reward?: {
113
114
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
114
115
  } | {
@@ -120,12 +121,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
120
121
  documents: {
121
122
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
122
123
  name: string;
123
- tag: string;
124
- _id?: string | import("mongoose").Types.ObjectId | undefined;
124
+ _id?: string | mongoose.Types.ObjectId | undefined;
125
125
  createdAt?: Date | null | undefined;
126
126
  startDate?: Date | null | undefined;
127
127
  endDate?: Date | null | undefined;
128
128
  updatedAt?: Date | null | undefined;
129
+ tag?: import("./tournament.types").TournamentTag | undefined;
129
130
  reward?: {
130
131
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
131
132
  } | {
@@ -146,7 +147,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
146
147
  }>;
147
148
  getById: import("@trpc/server").TRPCQueryProcedure<{
148
149
  input: {
149
- tournamentId: string | import("mongoose").Types.ObjectId;
150
+ tournamentId: string | mongoose.Types.ObjectId;
150
151
  };
151
152
  output: {
152
153
  message: string;
@@ -154,12 +155,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
154
155
  data?: {
155
156
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
156
157
  name: string;
157
- tag: string;
158
- _id?: string | import("mongoose").Types.ObjectId | undefined;
158
+ _id?: string | mongoose.Types.ObjectId | undefined;
159
159
  createdAt?: Date | null | undefined;
160
160
  startDate?: Date | null | undefined;
161
161
  endDate?: Date | null | undefined;
162
162
  updatedAt?: Date | null | undefined;
163
+ tag?: import("./tournament.types").TournamentTag | undefined;
163
164
  reward?: {
164
165
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
165
166
  } | {
@@ -172,12 +173,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
172
173
  documents: {
173
174
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
174
175
  name: string;
175
- tag: string;
176
- _id?: string | import("mongoose").Types.ObjectId | undefined;
176
+ _id?: string | mongoose.Types.ObjectId | undefined;
177
177
  createdAt?: Date | null | undefined;
178
178
  startDate?: Date | null | undefined;
179
179
  endDate?: Date | null | undefined;
180
180
  updatedAt?: Date | null | undefined;
181
+ tag?: import("./tournament.types").TournamentTag | undefined;
181
182
  reward?: {
182
183
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
183
184
  } | {
@@ -199,12 +200,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
199
200
  }>;
200
201
  update: import("@trpc/server").TRPCMutationProcedure<{
201
202
  input: {
202
- _id: string | import("mongoose").Types.ObjectId;
203
+ _id: string | mongoose.Types.ObjectId;
203
204
  status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
204
205
  name?: string | undefined;
205
206
  startDate?: string | Date | undefined;
206
207
  endDate?: string | Date | undefined;
207
- tag?: string | undefined;
208
+ tag?: import("./tournament.types").TournamentTag | undefined;
208
209
  reward?: {
209
210
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
210
211
  } | {
@@ -220,12 +221,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
220
221
  data?: {
221
222
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
222
223
  name: string;
223
- tag: string;
224
- _id?: string | import("mongoose").Types.ObjectId | undefined;
224
+ _id?: string | mongoose.Types.ObjectId | undefined;
225
225
  createdAt?: Date | null | undefined;
226
226
  startDate?: Date | null | undefined;
227
227
  endDate?: Date | null | undefined;
228
228
  updatedAt?: Date | null | undefined;
229
+ tag?: import("./tournament.types").TournamentTag | undefined;
229
230
  reward?: {
230
231
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
231
232
  } | {
@@ -238,12 +239,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
238
239
  documents: {
239
240
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
240
241
  name: string;
241
- tag: string;
242
- _id?: string | import("mongoose").Types.ObjectId | undefined;
242
+ _id?: string | mongoose.Types.ObjectId | undefined;
243
243
  createdAt?: Date | null | undefined;
244
244
  startDate?: Date | null | undefined;
245
245
  endDate?: Date | null | undefined;
246
246
  updatedAt?: Date | null | undefined;
247
+ tag?: import("./tournament.types").TournamentTag | undefined;
247
248
  reward?: {
248
249
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
249
250
  } | {
@@ -282,7 +283,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
282
283
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
283
284
  add: import("@trpc/server").TRPCMutationProcedure<{
284
285
  input: {
285
- tournamentId: string | import("mongoose").Types.ObjectId;
286
+ tournamentId: string | mongoose.Types.ObjectId;
286
287
  teams: {
287
288
  name: string;
288
289
  picture?: string | undefined;
@@ -294,12 +295,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
294
295
  data?: {
295
296
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
296
297
  name: string;
297
- tag: string;
298
- _id?: string | import("mongoose").Types.ObjectId | undefined;
298
+ _id?: string | mongoose.Types.ObjectId | undefined;
299
299
  createdAt?: Date | null | undefined;
300
300
  startDate?: Date | null | undefined;
301
301
  endDate?: Date | null | undefined;
302
302
  updatedAt?: Date | null | undefined;
303
+ tag?: import("./tournament.types").TournamentTag | undefined;
303
304
  reward?: {
304
305
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
305
306
  } | {
@@ -312,12 +313,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
312
313
  documents: {
313
314
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
314
315
  name: string;
315
- tag: string;
316
- _id?: string | import("mongoose").Types.ObjectId | undefined;
316
+ _id?: string | mongoose.Types.ObjectId | undefined;
317
317
  createdAt?: Date | null | undefined;
318
318
  startDate?: Date | null | undefined;
319
319
  endDate?: Date | null | undefined;
320
320
  updatedAt?: Date | null | undefined;
321
+ tag?: import("./tournament.types").TournamentTag | undefined;
321
322
  reward?: {
322
323
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
323
324
  } | {
@@ -339,7 +340,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
339
340
  }>;
340
341
  getAll: import("@trpc/server").TRPCQueryProcedure<{
341
342
  input: {
342
- tournamentId: string | import("mongoose").Types.ObjectId;
343
+ tournamentId: string | mongoose.Types.ObjectId;
343
344
  };
344
345
  output: {
345
346
  message: string;
@@ -347,10 +348,10 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
347
348
  data?: {
348
349
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
349
350
  tag: string;
350
- tournamentId: string | import("mongoose").Types.ObjectId;
351
+ tournamentId: string | mongoose.Types.ObjectId;
351
352
  teams: {
352
353
  name: string;
353
- _id: string | import("mongoose").Types.ObjectId;
354
+ _id: string | mongoose.Types.ObjectId;
354
355
  picture?: string | undefined;
355
356
  }[];
356
357
  startDate?: Date | null | undefined;
@@ -359,10 +360,10 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
359
360
  documents: {
360
361
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
361
362
  tag: string;
362
- tournamentId: string | import("mongoose").Types.ObjectId;
363
+ tournamentId: string | mongoose.Types.ObjectId;
363
364
  teams: {
364
365
  name: string;
365
- _id: string | import("mongoose").Types.ObjectId;
366
+ _id: string | mongoose.Types.ObjectId;
366
367
  picture?: string | undefined;
367
368
  }[];
368
369
  startDate?: Date | null | undefined;
@@ -380,8 +381,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
380
381
  }>;
381
382
  getMatches: import("@trpc/server").TRPCQueryProcedure<{
382
383
  input: {
383
- filter: "completed" | "upcoming";
384
- tournamentId: string | import("mongoose").Types.ObjectId;
384
+ tournamentId: string | mongoose.Types.ObjectId;
385
+ filter?: import("./tournament.types").MatchStatus | undefined;
385
386
  };
386
387
  output: {
387
388
  message: string;
@@ -389,22 +390,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
389
390
  data?: {
390
391
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
391
392
  tag: string;
392
- tournamentId: string | import("mongoose").Types.ObjectId;
393
+ tournamentId: string | mongoose.Types.ObjectId;
393
394
  matches: {
394
- _id: string | import("mongoose").Types.ObjectId;
395
+ _id: string | mongoose.Types.ObjectId;
395
396
  team1: {
396
397
  name: string;
397
- teamId: string | import("mongoose").Types.ObjectId;
398
+ teamId: string | mongoose.Types.ObjectId;
399
+ picture?: string | undefined;
398
400
  };
399
401
  team2: {
400
402
  name: string;
401
- teamId: string | import("mongoose").Types.ObjectId;
403
+ teamId: string | mongoose.Types.ObjectId;
404
+ picture?: string | undefined;
402
405
  };
403
406
  score: {
404
407
  team1: number | null;
405
408
  team2: number | null;
406
409
  };
407
410
  stage: string;
411
+ matchStatus: import("./tournament.types").MatchStatus;
408
412
  prediction: {
409
413
  score: {
410
414
  team1: number | null;
@@ -415,7 +419,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
415
419
  canPredict: boolean;
416
420
  endDate?: Date | null | undefined;
417
421
  additionalTag?: string | undefined;
418
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
422
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
419
423
  startingDate?: Date | null | undefined;
420
424
  }[];
421
425
  startDate?: Date | null | undefined;
@@ -424,22 +428,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
424
428
  documents: {
425
429
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
426
430
  tag: string;
427
- tournamentId: string | import("mongoose").Types.ObjectId;
431
+ tournamentId: string | mongoose.Types.ObjectId;
428
432
  matches: {
429
- _id: string | import("mongoose").Types.ObjectId;
433
+ _id: string | mongoose.Types.ObjectId;
430
434
  team1: {
431
435
  name: string;
432
- teamId: string | import("mongoose").Types.ObjectId;
436
+ teamId: string | mongoose.Types.ObjectId;
437
+ picture?: string | undefined;
433
438
  };
434
439
  team2: {
435
440
  name: string;
436
- teamId: string | import("mongoose").Types.ObjectId;
441
+ teamId: string | mongoose.Types.ObjectId;
442
+ picture?: string | undefined;
437
443
  };
438
444
  score: {
439
445
  team1: number | null;
440
446
  team2: number | null;
441
447
  };
442
448
  stage: string;
449
+ matchStatus: import("./tournament.types").MatchStatus;
443
450
  prediction: {
444
451
  score: {
445
452
  team1: number | null;
@@ -450,7 +457,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
450
457
  canPredict: boolean;
451
458
  endDate?: Date | null | undefined;
452
459
  additionalTag?: string | undefined;
453
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
460
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
454
461
  startingDate?: Date | null | undefined;
455
462
  }[];
456
463
  startDate?: Date | null | undefined;
@@ -485,12 +492,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
485
492
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
486
493
  add: import("@trpc/server").TRPCMutationProcedure<{
487
494
  input: {
488
- tournamentId: string | import("mongoose").Types.ObjectId;
495
+ tournamentId: string | mongoose.Types.ObjectId;
489
496
  matches: {
490
497
  stage: string;
491
498
  startingDate: string | Date;
492
- team1Id: string | import("mongoose").Types.ObjectId;
493
- team2Id: string | import("mongoose").Types.ObjectId;
499
+ team1Id: string | mongoose.Types.ObjectId;
500
+ team2Id: string | mongoose.Types.ObjectId;
494
501
  endDate?: string | Date | undefined;
495
502
  additionalTag?: string | undefined;
496
503
  }[];
@@ -501,12 +508,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
501
508
  data?: {
502
509
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
503
510
  name: string;
504
- tag: string;
505
- _id?: string | import("mongoose").Types.ObjectId | undefined;
511
+ _id?: string | mongoose.Types.ObjectId | undefined;
506
512
  createdAt?: Date | null | undefined;
507
513
  startDate?: Date | null | undefined;
508
514
  endDate?: Date | null | undefined;
509
515
  updatedAt?: Date | null | undefined;
516
+ tag?: import("./tournament.types").TournamentTag | undefined;
510
517
  reward?: {
511
518
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
512
519
  } | {
@@ -519,12 +526,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
519
526
  documents: {
520
527
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
521
528
  name: string;
522
- tag: string;
523
- _id?: string | import("mongoose").Types.ObjectId | undefined;
529
+ _id?: string | mongoose.Types.ObjectId | undefined;
524
530
  createdAt?: Date | null | undefined;
525
531
  startDate?: Date | null | undefined;
526
532
  endDate?: Date | null | undefined;
527
533
  updatedAt?: Date | null | undefined;
534
+ tag?: import("./tournament.types").TournamentTag | undefined;
528
535
  reward?: {
529
536
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
530
537
  } | {
@@ -546,20 +553,22 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
546
553
  }>;
547
554
  getAll: import("@trpc/server").TRPCQueryProcedure<{
548
555
  input: {
549
- tournamentId: string | import("mongoose").Types.ObjectId;
556
+ tournamentId: string | mongoose.Types.ObjectId;
550
557
  };
551
558
  output: {
552
559
  message: string;
553
560
  success: boolean;
554
561
  data?: {
555
- _id: string | import("mongoose").Types.ObjectId;
562
+ _id: string | mongoose.Types.ObjectId;
556
563
  team1: {
557
564
  name: string;
558
- teamId: string | import("mongoose").Types.ObjectId;
565
+ teamId: string | mongoose.Types.ObjectId;
566
+ picture?: string | undefined;
559
567
  };
560
568
  team2: {
561
569
  name: string;
562
- teamId: string | import("mongoose").Types.ObjectId;
570
+ teamId: string | mongoose.Types.ObjectId;
571
+ picture?: string | undefined;
563
572
  };
564
573
  score: {
565
574
  team1: number | null;
@@ -568,7 +577,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
568
577
  stage: string;
569
578
  endDate?: Date | null | undefined;
570
579
  additionalTag?: string | undefined;
571
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
580
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
572
581
  startingDate?: Date | null | undefined;
573
582
  prediction?: {
574
583
  score: {
@@ -579,14 +588,16 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
579
588
  } | null | undefined;
580
589
  }[] | {
581
590
  documents: {
582
- _id: string | import("mongoose").Types.ObjectId;
591
+ _id: string | mongoose.Types.ObjectId;
583
592
  team1: {
584
593
  name: string;
585
- teamId: string | import("mongoose").Types.ObjectId;
594
+ teamId: string | mongoose.Types.ObjectId;
595
+ picture?: string | undefined;
586
596
  };
587
597
  team2: {
588
598
  name: string;
589
- teamId: string | import("mongoose").Types.ObjectId;
599
+ teamId: string | mongoose.Types.ObjectId;
600
+ picture?: string | undefined;
590
601
  };
591
602
  score: {
592
603
  team1: number | null;
@@ -595,7 +606,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
595
606
  stage: string;
596
607
  endDate?: Date | null | undefined;
597
608
  additionalTag?: string | undefined;
598
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
609
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
599
610
  startingDate?: Date | null | undefined;
600
611
  prediction?: {
601
612
  score: {
@@ -617,21 +628,23 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
617
628
  }>;
618
629
  start: import("@trpc/server").TRPCMutationProcedure<{
619
630
  input: {
620
- tournamentId: string | import("mongoose").Types.ObjectId;
621
- matchId: string | import("mongoose").Types.ObjectId;
631
+ tournamentId: string | mongoose.Types.ObjectId;
632
+ matchId: string | mongoose.Types.ObjectId;
622
633
  };
623
634
  output: {
624
635
  message: string;
625
636
  success: boolean;
626
637
  data?: {
627
- _id: string | import("mongoose").Types.ObjectId;
638
+ _id: string | mongoose.Types.ObjectId;
628
639
  team1: {
629
640
  name: string;
630
- teamId: string | import("mongoose").Types.ObjectId;
641
+ teamId: string | mongoose.Types.ObjectId;
642
+ picture?: string | undefined;
631
643
  };
632
644
  team2: {
633
645
  name: string;
634
- teamId: string | import("mongoose").Types.ObjectId;
646
+ teamId: string | mongoose.Types.ObjectId;
647
+ picture?: string | undefined;
635
648
  };
636
649
  score: {
637
650
  team1: number | null;
@@ -640,7 +653,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
640
653
  stage: string;
641
654
  endDate?: Date | null | undefined;
642
655
  additionalTag?: string | undefined;
643
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
656
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
644
657
  startingDate?: Date | null | undefined;
645
658
  prediction?: {
646
659
  score: {
@@ -651,14 +664,16 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
651
664
  } | null | undefined;
652
665
  } | {
653
666
  documents: {
654
- _id: string | import("mongoose").Types.ObjectId;
667
+ _id: string | mongoose.Types.ObjectId;
655
668
  team1: {
656
669
  name: string;
657
- teamId: string | import("mongoose").Types.ObjectId;
670
+ teamId: string | mongoose.Types.ObjectId;
671
+ picture?: string | undefined;
658
672
  };
659
673
  team2: {
660
674
  name: string;
661
- teamId: string | import("mongoose").Types.ObjectId;
675
+ teamId: string | mongoose.Types.ObjectId;
676
+ picture?: string | undefined;
662
677
  };
663
678
  score: {
664
679
  team1: number | null;
@@ -667,7 +682,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
667
682
  stage: string;
668
683
  endDate?: Date | null | undefined;
669
684
  additionalTag?: string | undefined;
670
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
685
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
671
686
  startingDate?: Date | null | undefined;
672
687
  prediction?: {
673
688
  score: {
@@ -689,8 +704,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
689
704
  }>;
690
705
  end: import("@trpc/server").TRPCMutationProcedure<{
691
706
  input: {
692
- tournamentId: string | import("mongoose").Types.ObjectId;
693
- matchId: string | import("mongoose").Types.ObjectId;
707
+ tournamentId: string | mongoose.Types.ObjectId;
708
+ matchId: string | mongoose.Types.ObjectId;
694
709
  finalScore?: {
695
710
  team1: number;
696
711
  team2: number;
@@ -700,14 +715,16 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
700
715
  message: string;
701
716
  success: boolean;
702
717
  data?: {
703
- _id: string | import("mongoose").Types.ObjectId;
718
+ _id: string | mongoose.Types.ObjectId;
704
719
  team1: {
705
720
  name: string;
706
- teamId: string | import("mongoose").Types.ObjectId;
721
+ teamId: string | mongoose.Types.ObjectId;
722
+ picture?: string | undefined;
707
723
  };
708
724
  team2: {
709
725
  name: string;
710
- teamId: string | import("mongoose").Types.ObjectId;
726
+ teamId: string | mongoose.Types.ObjectId;
727
+ picture?: string | undefined;
711
728
  };
712
729
  score: {
713
730
  team1: number | null;
@@ -716,7 +733,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
716
733
  stage: string;
717
734
  endDate?: Date | null | undefined;
718
735
  additionalTag?: string | undefined;
719
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
736
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
720
737
  startingDate?: Date | null | undefined;
721
738
  prediction?: {
722
739
  score: {
@@ -727,14 +744,16 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
727
744
  } | null | undefined;
728
745
  } | {
729
746
  documents: {
730
- _id: string | import("mongoose").Types.ObjectId;
747
+ _id: string | mongoose.Types.ObjectId;
731
748
  team1: {
732
749
  name: string;
733
- teamId: string | import("mongoose").Types.ObjectId;
750
+ teamId: string | mongoose.Types.ObjectId;
751
+ picture?: string | undefined;
734
752
  };
735
753
  team2: {
736
754
  name: string;
737
- teamId: string | import("mongoose").Types.ObjectId;
755
+ teamId: string | mongoose.Types.ObjectId;
756
+ picture?: string | undefined;
738
757
  };
739
758
  score: {
740
759
  team1: number | null;
@@ -743,7 +762,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
743
762
  stage: string;
744
763
  endDate?: Date | null | undefined;
745
764
  additionalTag?: string | undefined;
746
- winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
765
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
747
766
  startingDate?: Date | null | undefined;
748
767
  prediction?: {
749
768
  score: {
@@ -765,8 +784,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
765
784
  }>;
766
785
  delete: import("@trpc/server").TRPCMutationProcedure<{
767
786
  input: {
768
- tournamentId: string | import("mongoose").Types.ObjectId;
769
- matchId: string | import("mongoose").Types.ObjectId;
787
+ tournamentId: string | mongoose.Types.ObjectId;
788
+ matchId: string | mongoose.Types.ObjectId;
770
789
  };
771
790
  output: {
772
791
  message: string;
@@ -774,12 +793,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
774
793
  data?: {
775
794
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
776
795
  name: string;
777
- tag: string;
778
- _id?: string | import("mongoose").Types.ObjectId | undefined;
796
+ _id?: string | mongoose.Types.ObjectId | undefined;
779
797
  createdAt?: Date | null | undefined;
780
798
  startDate?: Date | null | undefined;
781
799
  endDate?: Date | null | undefined;
782
800
  updatedAt?: Date | null | undefined;
801
+ tag?: import("./tournament.types").TournamentTag | undefined;
783
802
  reward?: {
784
803
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
785
804
  } | {
@@ -792,12 +811,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
792
811
  documents: {
793
812
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
794
813
  name: string;
795
- tag: string;
796
- _id?: string | import("mongoose").Types.ObjectId | undefined;
814
+ _id?: string | mongoose.Types.ObjectId | undefined;
797
815
  createdAt?: Date | null | undefined;
798
816
  startDate?: Date | null | undefined;
799
817
  endDate?: Date | null | undefined;
800
818
  updatedAt?: Date | null | undefined;
819
+ tag?: import("./tournament.types").TournamentTag | undefined;
801
820
  reward?: {
802
821
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
803
822
  } | {
@@ -836,23 +855,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
836
855
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
837
856
  join: import("@trpc/server").TRPCMutationProcedure<{
838
857
  input: {
839
- tournamentId: string | import("mongoose").Types.ObjectId;
840
- teamId: string | import("mongoose").Types.ObjectId;
858
+ tournamentId: string | mongoose.Types.ObjectId;
859
+ teamId: string | mongoose.Types.ObjectId;
841
860
  };
842
861
  output: {
843
862
  message: string;
844
863
  success: boolean;
845
864
  data?: {
846
- _id: string | import("mongoose").Types.ObjectId;
847
- tournamentId: string | import("mongoose").Types.ObjectId;
848
- teamId: string | import("mongoose").Types.ObjectId;
865
+ status: "joined" | "seen";
866
+ _id: string | mongoose.Types.ObjectId;
867
+ tournamentId: string | mongoose.Types.ObjectId;
849
868
  createdAt?: Date | null | undefined;
869
+ teamId?: string | mongoose.Types.ObjectId | undefined;
850
870
  } | {
851
871
  documents: {
852
- _id: string | import("mongoose").Types.ObjectId;
853
- tournamentId: string | import("mongoose").Types.ObjectId;
854
- teamId: string | import("mongoose").Types.ObjectId;
872
+ status: "joined" | "seen";
873
+ _id: string | mongoose.Types.ObjectId;
874
+ tournamentId: string | mongoose.Types.ObjectId;
855
875
  createdAt?: Date | null | undefined;
876
+ teamId?: string | mongoose.Types.ObjectId | undefined;
856
877
  }[];
857
878
  metadata?: {
858
879
  page: number;
@@ -864,47 +885,68 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
864
885
  };
865
886
  meta: object;
866
887
  }>;
888
+ markSeen: import("@trpc/server").TRPCMutationProcedure<{
889
+ input: {
890
+ tournamentId: string | mongoose.Types.ObjectId;
891
+ };
892
+ output: {
893
+ message: string;
894
+ success: boolean;
895
+ data?: {
896
+ documents: null[];
897
+ metadata?: {
898
+ page: number;
899
+ size: number;
900
+ totalElements: number;
901
+ totalPages: number;
902
+ } | undefined;
903
+ } | null | undefined;
904
+ };
905
+ meta: object;
906
+ }>;
867
907
  getAll: import("@trpc/server").TRPCQueryProcedure<{
868
908
  input: {
869
- tournamentId: string | import("mongoose").Types.ObjectId;
909
+ tournamentId: string | mongoose.Types.ObjectId;
870
910
  };
871
911
  output: {
872
912
  message: string;
873
913
  success: boolean;
874
914
  data?: {
875
- _id: string | import("mongoose").Types.ObjectId;
876
- userId: string | import("mongoose").Types.ObjectId;
877
- tournamentId: string | import("mongoose").Types.ObjectId;
878
- teamId: string | import("mongoose").Types.ObjectId;
915
+ status: "joined" | "seen";
916
+ _id: string | mongoose.Types.ObjectId;
917
+ userId: string | mongoose.Types.ObjectId;
918
+ tournamentId: string | mongoose.Types.ObjectId;
879
919
  createdAt?: Date | null | undefined;
880
920
  updatedAt?: Date | null | undefined;
921
+ teamId?: string | mongoose.Types.ObjectId | undefined;
881
922
  predictions?: {
882
- _id: string | import("mongoose").Types.ObjectId;
883
- matchId: string | import("mongoose").Types.ObjectId;
923
+ _id: string | mongoose.Types.ObjectId;
924
+ matchId: string | mongoose.Types.ObjectId;
884
925
  score: {
885
926
  team1: number | null;
886
927
  team2: number | null;
887
928
  };
888
- coupon?: string | import("mongoose").Types.ObjectId | undefined;
929
+ coupon?: string | mongoose.Types.ObjectId | undefined;
889
930
  predictionTime?: Date | null | undefined;
890
931
  succeeded?: boolean | null | undefined;
891
932
  }[] | undefined;
892
933
  }[] | {
893
934
  documents: {
894
- _id: string | import("mongoose").Types.ObjectId;
895
- userId: string | import("mongoose").Types.ObjectId;
896
- tournamentId: string | import("mongoose").Types.ObjectId;
897
- teamId: string | import("mongoose").Types.ObjectId;
935
+ status: "joined" | "seen";
936
+ _id: string | mongoose.Types.ObjectId;
937
+ userId: string | mongoose.Types.ObjectId;
938
+ tournamentId: string | mongoose.Types.ObjectId;
898
939
  createdAt?: Date | null | undefined;
899
940
  updatedAt?: Date | null | undefined;
941
+ teamId?: string | mongoose.Types.ObjectId | undefined;
900
942
  predictions?: {
901
- _id: string | import("mongoose").Types.ObjectId;
902
- matchId: string | import("mongoose").Types.ObjectId;
943
+ _id: string | mongoose.Types.ObjectId;
944
+ matchId: string | mongoose.Types.ObjectId;
903
945
  score: {
904
946
  team1: number | null;
905
947
  team2: number | null;
906
948
  };
907
- coupon?: string | import("mongoose").Types.ObjectId | undefined;
949
+ coupon?: string | mongoose.Types.ObjectId | undefined;
908
950
  predictionTime?: Date | null | undefined;
909
951
  succeeded?: boolean | null | undefined;
910
952
  }[] | undefined;
@@ -938,8 +980,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
938
980
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
939
981
  create: import("@trpc/server").TRPCMutationProcedure<{
940
982
  input: {
941
- tournamentId: string | import("mongoose").Types.ObjectId;
942
- matchId: string | import("mongoose").Types.ObjectId;
983
+ tournamentId: string | mongoose.Types.ObjectId;
984
+ matchId: string | mongoose.Types.ObjectId;
943
985
  score: {
944
986
  team1: number;
945
987
  team2: number;
@@ -949,16 +991,16 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
949
991
  message: string;
950
992
  success: boolean;
951
993
  data?: {
952
- _id: string | import("mongoose").Types.ObjectId;
953
- matchId: string | import("mongoose").Types.ObjectId;
994
+ _id: string | mongoose.Types.ObjectId;
995
+ matchId: string | mongoose.Types.ObjectId;
954
996
  score: {
955
997
  team1: number | null;
956
998
  team2: number | null;
957
999
  };
958
1000
  } | {
959
1001
  documents: {
960
- _id: string | import("mongoose").Types.ObjectId;
961
- matchId: string | import("mongoose").Types.ObjectId;
1002
+ _id: string | mongoose.Types.ObjectId;
1003
+ matchId: string | mongoose.Types.ObjectId;
962
1004
  score: {
963
1005
  team1: number | null;
964
1006
  team2: number | null;
@@ -976,8 +1018,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
976
1018
  }>;
977
1019
  edit: import("@trpc/server").TRPCMutationProcedure<{
978
1020
  input: {
979
- tournamentId: string | import("mongoose").Types.ObjectId;
980
- matchId: string | import("mongoose").Types.ObjectId;
1021
+ tournamentId: string | mongoose.Types.ObjectId;
1022
+ matchId: string | mongoose.Types.ObjectId;
981
1023
  score: {
982
1024
  team1: number;
983
1025
  team2: number;
@@ -987,16 +1029,16 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
987
1029
  message: string;
988
1030
  success: boolean;
989
1031
  data?: {
990
- _id: string | import("mongoose").Types.ObjectId;
991
- matchId: string | import("mongoose").Types.ObjectId;
1032
+ _id: string | mongoose.Types.ObjectId;
1033
+ matchId: string | mongoose.Types.ObjectId;
992
1034
  score: {
993
1035
  team1: number | null;
994
1036
  team2: number | null;
995
1037
  };
996
1038
  } | {
997
1039
  documents: {
998
- _id: string | import("mongoose").Types.ObjectId;
999
- matchId: string | import("mongoose").Types.ObjectId;
1040
+ _id: string | mongoose.Types.ObjectId;
1041
+ matchId: string | mongoose.Types.ObjectId;
1000
1042
  score: {
1001
1043
  team1: number | null;
1002
1044
  team2: number | null;
@@ -1014,15 +1056,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1014
1056
  }>;
1015
1057
  get: import("@trpc/server").TRPCQueryProcedure<{
1016
1058
  input: {
1017
- tournamentId: string | import("mongoose").Types.ObjectId;
1018
- matchId: string | import("mongoose").Types.ObjectId;
1059
+ tournamentId: string | mongoose.Types.ObjectId;
1060
+ matchId: string | mongoose.Types.ObjectId;
1019
1061
  };
1020
1062
  output: {
1021
1063
  message: string;
1022
1064
  success: boolean;
1023
1065
  data?: {
1024
- _id: string | import("mongoose").Types.ObjectId;
1025
- matchId: string | import("mongoose").Types.ObjectId;
1066
+ _id: string | mongoose.Types.ObjectId;
1067
+ matchId: string | mongoose.Types.ObjectId;
1026
1068
  score: {
1027
1069
  team1: number | null;
1028
1070
  team2: number | null;
@@ -1031,8 +1073,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1031
1073
  succeeded?: boolean | null | undefined;
1032
1074
  } | {
1033
1075
  documents: ({
1034
- _id: string | import("mongoose").Types.ObjectId;
1035
- matchId: string | import("mongoose").Types.ObjectId;
1076
+ _id: string | mongoose.Types.ObjectId;
1077
+ matchId: string | mongoose.Types.ObjectId;
1036
1078
  score: {
1037
1079
  team1: number | null;
1038
1080
  team2: number | null;
@@ -1051,6 +1093,207 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1051
1093
  meta: object;
1052
1094
  }>;
1053
1095
  }>>;
1096
+ statistics: import("@trpc/server").TRPCBuiltRouter<{
1097
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
1098
+ meta: object;
1099
+ errorShape: {
1100
+ message: string;
1101
+ data: {
1102
+ stack: undefined;
1103
+ path: undefined;
1104
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
1105
+ httpStatus: number;
1106
+ };
1107
+ stack: undefined;
1108
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
1109
+ };
1110
+ transformer: false;
1111
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1112
+ getActiveByUser: import("@trpc/server").TRPCQueryProcedure<{
1113
+ input: {
1114
+ userId: string | mongoose.Types.ObjectId;
1115
+ };
1116
+ output: {
1117
+ message: string;
1118
+ success: boolean;
1119
+ data?: {
1120
+ name: string;
1121
+ joinedAt: Date | null;
1122
+ stats: {
1123
+ predictionsMade: number;
1124
+ correctPredictions: number;
1125
+ couponsWon: number;
1126
+ };
1127
+ matches: {
1128
+ date: string | null;
1129
+ coupon: string | null;
1130
+ id: string;
1131
+ result: "won" | "lost" | "pending" | null;
1132
+ teams: string;
1133
+ prediction: string | null;
1134
+ realScore: string | null;
1135
+ }[];
1136
+ selectedTeam: {
1137
+ name: string;
1138
+ flag: string | null;
1139
+ };
1140
+ } | {
1141
+ documents: ({
1142
+ name: string;
1143
+ joinedAt: Date | null;
1144
+ stats: {
1145
+ predictionsMade: number;
1146
+ correctPredictions: number;
1147
+ couponsWon: number;
1148
+ };
1149
+ matches: {
1150
+ date: string | null;
1151
+ coupon: string | null;
1152
+ id: string;
1153
+ result: "won" | "lost" | "pending" | null;
1154
+ teams: string;
1155
+ prediction: string | null;
1156
+ realScore: string | null;
1157
+ }[];
1158
+ selectedTeam: {
1159
+ name: string;
1160
+ flag: string | null;
1161
+ };
1162
+ } | null)[];
1163
+ metadata?: {
1164
+ page: number;
1165
+ size: number;
1166
+ totalElements: number;
1167
+ totalPages: number;
1168
+ } | undefined;
1169
+ } | null | undefined;
1170
+ };
1171
+ meta: object;
1172
+ }>;
1173
+ }>>;
1174
+ schedule: import("@trpc/server").TRPCBuiltRouter<{
1175
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
1176
+ meta: object;
1177
+ errorShape: {
1178
+ message: string;
1179
+ data: {
1180
+ stack: undefined;
1181
+ path: undefined;
1182
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
1183
+ httpStatus: number;
1184
+ };
1185
+ stack: undefined;
1186
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
1187
+ };
1188
+ transformer: false;
1189
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1190
+ dispatch: import("@trpc/server").TRPCMutationProcedure<{
1191
+ input: void;
1192
+ output: {
1193
+ success: boolean;
1194
+ message: string;
1195
+ data: null | undefined;
1196
+ };
1197
+ meta: object;
1198
+ }>;
1199
+ }>>;
1200
+ score: import("@trpc/server").TRPCBuiltRouter<{
1201
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
1202
+ meta: object;
1203
+ errorShape: {
1204
+ message: string;
1205
+ data: {
1206
+ stack: undefined;
1207
+ path: undefined;
1208
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
1209
+ httpStatus: number;
1210
+ };
1211
+ stack: undefined;
1212
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
1213
+ };
1214
+ transformer: false;
1215
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1216
+ updateMatchScore: import("@trpc/server").TRPCMutationProcedure<{
1217
+ input: {
1218
+ tournamentId: string | mongoose.Types.ObjectId;
1219
+ matchId: string | mongoose.Types.ObjectId;
1220
+ teams: {
1221
+ score: number;
1222
+ teamId: string | mongoose.Types.ObjectId;
1223
+ }[];
1224
+ };
1225
+ output: {
1226
+ message: string;
1227
+ success: boolean;
1228
+ data?: {
1229
+ _id: string | mongoose.Types.ObjectId;
1230
+ team1: {
1231
+ name: string;
1232
+ teamId: string | mongoose.Types.ObjectId;
1233
+ picture?: string | undefined;
1234
+ };
1235
+ team2: {
1236
+ name: string;
1237
+ teamId: string | mongoose.Types.ObjectId;
1238
+ picture?: string | undefined;
1239
+ };
1240
+ score: {
1241
+ team1: number | null;
1242
+ team2: number | null;
1243
+ };
1244
+ stage: string;
1245
+ endDate?: Date | null | undefined;
1246
+ additionalTag?: string | undefined;
1247
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
1248
+ startingDate?: Date | null | undefined;
1249
+ prediction?: {
1250
+ score: {
1251
+ team1: number | null;
1252
+ team2: number | null;
1253
+ };
1254
+ succeeded?: boolean | null | undefined;
1255
+ } | null | undefined;
1256
+ } | {
1257
+ documents: {
1258
+ _id: string | mongoose.Types.ObjectId;
1259
+ team1: {
1260
+ name: string;
1261
+ teamId: string | mongoose.Types.ObjectId;
1262
+ picture?: string | undefined;
1263
+ };
1264
+ team2: {
1265
+ name: string;
1266
+ teamId: string | mongoose.Types.ObjectId;
1267
+ picture?: string | undefined;
1268
+ };
1269
+ score: {
1270
+ team1: number | null;
1271
+ team2: number | null;
1272
+ };
1273
+ stage: string;
1274
+ endDate?: Date | null | undefined;
1275
+ additionalTag?: string | undefined;
1276
+ winnerId?: string | mongoose.Types.ObjectId | null | undefined;
1277
+ startingDate?: Date | null | undefined;
1278
+ prediction?: {
1279
+ score: {
1280
+ team1: number | null;
1281
+ team2: number | null;
1282
+ };
1283
+ succeeded?: boolean | null | undefined;
1284
+ } | null | undefined;
1285
+ }[];
1286
+ metadata?: {
1287
+ page: number;
1288
+ size: number;
1289
+ totalElements: number;
1290
+ totalPages: number;
1291
+ } | undefined;
1292
+ } | undefined;
1293
+ };
1294
+ meta: object;
1295
+ }>;
1296
+ }>>;
1054
1297
  getActive: import("@trpc/server").TRPCQueryProcedure<{
1055
1298
  input: void;
1056
1299
  output: {
@@ -1059,12 +1302,14 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
1059
1302
  data?: {
1060
1303
  name: string;
1061
1304
  tag: string;
1305
+ userStatus: import("./tournament.types").TournamentParticipantStatus;
1062
1306
  startDate?: Date | null | undefined;
1063
1307
  endDate?: Date | null | undefined;
1064
1308
  } | {
1065
1309
  documents: ({
1066
1310
  name: string;
1067
1311
  tag: string;
1312
+ userStatus: import("./tournament.types").TournamentParticipantStatus;
1068
1313
  startDate?: Date | null | undefined;
1069
1314
  endDate?: Date | null | undefined;
1070
1315
  } | null)[];