@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
@@ -24,16 +24,18 @@ export declare const participantRouter: import("@trpc/server").TRPCBuiltRouter<{
24
24
  message: string;
25
25
  success: boolean;
26
26
  data?: {
27
+ status: "joined" | "seen";
27
28
  _id: string | mongoose.Types.ObjectId;
28
29
  tournamentId: string | mongoose.Types.ObjectId;
29
- teamId: string | mongoose.Types.ObjectId;
30
30
  createdAt?: Date | null | undefined;
31
+ teamId?: string | mongoose.Types.ObjectId | undefined;
31
32
  } | {
32
33
  documents: {
34
+ status: "joined" | "seen";
33
35
  _id: string | mongoose.Types.ObjectId;
34
36
  tournamentId: string | mongoose.Types.ObjectId;
35
- teamId: string | mongoose.Types.ObjectId;
36
37
  createdAt?: Date | null | undefined;
38
+ teamId?: string | mongoose.Types.ObjectId | undefined;
37
39
  }[];
38
40
  metadata?: {
39
41
  page: number;
@@ -45,6 +47,25 @@ export declare const participantRouter: import("@trpc/server").TRPCBuiltRouter<{
45
47
  };
46
48
  meta: object;
47
49
  }>;
50
+ markSeen: import("@trpc/server").TRPCMutationProcedure<{
51
+ input: {
52
+ tournamentId: string | mongoose.Types.ObjectId;
53
+ };
54
+ output: {
55
+ message: string;
56
+ success: boolean;
57
+ data?: {
58
+ documents: null[];
59
+ metadata?: {
60
+ page: number;
61
+ size: number;
62
+ totalElements: number;
63
+ totalPages: number;
64
+ } | undefined;
65
+ } | null | undefined;
66
+ };
67
+ meta: object;
68
+ }>;
48
69
  getAll: import("@trpc/server").TRPCQueryProcedure<{
49
70
  input: {
50
71
  tournamentId: string | mongoose.Types.ObjectId;
@@ -53,12 +74,13 @@ export declare const participantRouter: import("@trpc/server").TRPCBuiltRouter<{
53
74
  message: string;
54
75
  success: boolean;
55
76
  data?: {
77
+ status: "joined" | "seen";
56
78
  _id: string | mongoose.Types.ObjectId;
57
79
  userId: string | mongoose.Types.ObjectId;
58
80
  tournamentId: string | mongoose.Types.ObjectId;
59
- teamId: string | mongoose.Types.ObjectId;
60
81
  createdAt?: Date | null | undefined;
61
82
  updatedAt?: Date | null | undefined;
83
+ teamId?: string | mongoose.Types.ObjectId | undefined;
62
84
  predictions?: {
63
85
  _id: string | mongoose.Types.ObjectId;
64
86
  matchId: string | mongoose.Types.ObjectId;
@@ -72,12 +94,13 @@ export declare const participantRouter: import("@trpc/server").TRPCBuiltRouter<{
72
94
  }[] | undefined;
73
95
  }[] | {
74
96
  documents: {
97
+ status: "joined" | "seen";
75
98
  _id: string | mongoose.Types.ObjectId;
76
99
  userId: string | mongoose.Types.ObjectId;
77
100
  tournamentId: string | mongoose.Types.ObjectId;
78
- teamId: string | mongoose.Types.ObjectId;
79
101
  createdAt?: Date | null | undefined;
80
102
  updatedAt?: Date | null | undefined;
103
+ teamId?: string | mongoose.Types.ObjectId | undefined;
81
104
  predictions?: {
82
105
  _id: string | mongoose.Types.ObjectId;
83
106
  matchId: string | mongoose.Types.ObjectId;
@@ -1 +1 @@
1
- {"version":3,"file":"participant.router.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAchD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoB5B,CAAC"}
1
+ {"version":3,"file":"participant.router.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAgBhD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8B5B,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import { mongoose } from '@typegoose/typegoose';
2
- import { JoinTournamentInputDTO, TournamentParticipantOutputDTO } from './participant.validation';
2
+ import { JoinTournamentInputDTO, MarkSeenTournamentInputDTO, TournamentParticipantOutputDTO } from './participant.validation';
3
3
  export declare class ParticipantService {
4
4
  private repository;
5
5
  private matchRepository;
6
6
  constructor();
7
7
  private ensureTeamExists;
8
- private ensureNotAlreadyJoined;
9
8
  join(userId: mongoose.Types.ObjectId, input: JoinTournamentInputDTO): Promise<TournamentParticipantOutputDTO>;
9
+ markSeen(userId: mongoose.Types.ObjectId, input: MarkSeenTournamentInputDTO): Promise<void>;
10
10
  getByUserAndTournament(userId: mongoose.Types.ObjectId, tournamentId: mongoose.Types.ObjectId): Promise<TournamentParticipantOutputDTO>;
11
11
  getAll(tournamentId: mongoose.Types.ObjectId): Promise<TournamentParticipantOutputDTO[]>;
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"participant.service.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAIlG,qBACa,kBAAkB;IAC3B,OAAO,CAAC,UAAU,CAAkC;IACpD,OAAO,CAAC,eAAe,CAA4B;;IAOnD,OAAO,CAAC,gBAAgB;YAKV,sBAAsB;IAMvB,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAkB7G,sBAAsB,CAC/B,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GACtC,OAAO,CAAC,8BAA8B,CAAC;IAM7B,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,8BAA8B,EAAE,CAAC;CAKxG;AAED,eAAO,MAAM,kBAAkB,oBAAoC,CAAC"}
1
+ {"version":3,"file":"participant.service.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EACH,sBAAsB,EACtB,0BAA0B,EAC1B,8BAA8B,EACjC,MAAM,0BAA0B,CAAC;AAKlC,qBACa,kBAAkB;IAC3B,OAAO,CAAC,UAAU,CAAkC;IACpD,OAAO,CAAC,eAAe,CAA4B;;IAOnD,OAAO,CAAC,gBAAgB;IAKX,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,8BAA8B,CAAC;IA2B7G,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC;IAU3F,sBAAsB,CAC/B,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GACtC,OAAO,CAAC,8BAA8B,CAAC;IAM7B,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,8BAA8B,EAAE,CAAC;CAKxG;AAED,eAAO,MAAM,kBAAkB,oBAAoC,CAAC"}
@@ -17,11 +17,13 @@ export declare const GetTournamentParticipantsSchema: z.ZodObject<{
17
17
  }, {
18
18
  tournamentId: string | import("mongoose").Types.ObjectId;
19
19
  }>;
20
+ export declare const TournamentParticipantStatusSchema: z.ZodEnum<["joined", "seen"]>;
20
21
  export declare const TournamentParticipantSchema: z.ZodObject<{
21
22
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
22
23
  userId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
23
24
  tournamentId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
24
- teamId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
25
+ teamId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
26
+ status: z.ZodEnum<["joined", "seen"]>;
25
27
  predictions: z.ZodDefault<z.ZodArray<z.ZodObject<{
26
28
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
27
29
  matchId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
@@ -62,10 +64,10 @@ export declare const TournamentParticipantSchema: z.ZodObject<{
62
64
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
63
65
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
64
66
  }, "strip", z.ZodTypeAny, {
67
+ status: "joined" | "seen";
65
68
  _id: import("mongoose").Types.ObjectId;
66
69
  userId: import("mongoose").Types.ObjectId;
67
70
  tournamentId: import("mongoose").Types.ObjectId;
68
- teamId: import("mongoose").Types.ObjectId;
69
71
  predictions: {
70
72
  _id: import("mongoose").Types.ObjectId;
71
73
  matchId: import("mongoose").Types.ObjectId;
@@ -79,13 +81,15 @@ export declare const TournamentParticipantSchema: z.ZodObject<{
79
81
  }[];
80
82
  createdAt?: Date | null | undefined;
81
83
  updatedAt?: Date | null | undefined;
84
+ teamId?: import("mongoose").Types.ObjectId | undefined;
82
85
  }, {
86
+ status: "joined" | "seen";
83
87
  _id: string | import("mongoose").Types.ObjectId;
84
88
  userId: string | import("mongoose").Types.ObjectId;
85
89
  tournamentId: string | import("mongoose").Types.ObjectId;
86
- teamId: string | import("mongoose").Types.ObjectId;
87
90
  createdAt?: Date | null | undefined;
88
91
  updatedAt?: Date | null | undefined;
92
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
89
93
  predictions?: {
90
94
  _id: string | import("mongoose").Types.ObjectId;
91
95
  matchId: string | import("mongoose").Types.ObjectId;
@@ -101,18 +105,28 @@ export declare const TournamentParticipantSchema: z.ZodObject<{
101
105
  export declare const JoinTournamentParticipantSchema: z.ZodObject<{
102
106
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
103
107
  tournamentId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
104
- teamId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
108
+ teamId: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
109
+ status: z.ZodEnum<["joined", "seen"]>;
105
110
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
106
111
  }, "strip", z.ZodTypeAny, {
112
+ status: "joined" | "seen";
107
113
  _id: import("mongoose").Types.ObjectId;
108
114
  tournamentId: import("mongoose").Types.ObjectId;
109
- teamId: import("mongoose").Types.ObjectId;
110
115
  createdAt?: Date | null | undefined;
116
+ teamId?: import("mongoose").Types.ObjectId | undefined;
111
117
  }, {
118
+ status: "joined" | "seen";
112
119
  _id: string | import("mongoose").Types.ObjectId;
113
120
  tournamentId: string | import("mongoose").Types.ObjectId;
114
- teamId: string | import("mongoose").Types.ObjectId;
115
121
  createdAt?: Date | null | undefined;
122
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
123
+ }>;
124
+ export declare const MarkSeenTournamentSchema: z.ZodObject<{
125
+ tournamentId: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ tournamentId: import("mongoose").Types.ObjectId;
128
+ }, {
129
+ tournamentId: string | import("mongoose").Types.ObjectId;
116
130
  }>;
117
131
  export declare const JoinTournamentResponseSchema: z.ZodObject<{
118
132
  success: z.ZodBoolean;
@@ -135,22 +149,25 @@ export declare const JoinTournamentResponseSchema: z.ZodObject<{
135
149
  totalPages: number;
136
150
  }>>;
137
151
  documents: z.ZodArray<z.ZodType<{
152
+ status: "joined" | "seen";
138
153
  _id: string | import("mongoose").Types.ObjectId;
139
154
  tournamentId: string | import("mongoose").Types.ObjectId;
140
- teamId: string | import("mongoose").Types.ObjectId;
141
155
  createdAt?: Date | null | undefined;
156
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
142
157
  }, z.ZodTypeDef, {
158
+ status: "joined" | "seen";
143
159
  _id: string | import("mongoose").Types.ObjectId;
144
160
  tournamentId: string | import("mongoose").Types.ObjectId;
145
- teamId: string | import("mongoose").Types.ObjectId;
146
161
  createdAt?: Date | null | undefined;
162
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
147
163
  }>, "many">;
148
164
  }, "strip", z.ZodTypeAny, {
149
165
  documents: {
166
+ status: "joined" | "seen";
150
167
  _id: string | import("mongoose").Types.ObjectId;
151
168
  tournamentId: string | import("mongoose").Types.ObjectId;
152
- teamId: string | import("mongoose").Types.ObjectId;
153
169
  createdAt?: Date | null | undefined;
170
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
154
171
  }[];
155
172
  metadata?: {
156
173
  page: number;
@@ -160,10 +177,11 @@ export declare const JoinTournamentResponseSchema: z.ZodObject<{
160
177
  } | undefined;
161
178
  }, {
162
179
  documents: {
180
+ status: "joined" | "seen";
163
181
  _id: string | import("mongoose").Types.ObjectId;
164
182
  tournamentId: string | import("mongoose").Types.ObjectId;
165
- teamId: string | import("mongoose").Types.ObjectId;
166
183
  createdAt?: Date | null | undefined;
184
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
167
185
  }[];
168
186
  metadata?: {
169
187
  page: number;
@@ -172,30 +190,34 @@ export declare const JoinTournamentResponseSchema: z.ZodObject<{
172
190
  totalPages: number;
173
191
  } | undefined;
174
192
  }>, z.ZodType<{
193
+ status: "joined" | "seen";
175
194
  _id: string | import("mongoose").Types.ObjectId;
176
195
  tournamentId: string | import("mongoose").Types.ObjectId;
177
- teamId: string | import("mongoose").Types.ObjectId;
178
196
  createdAt?: Date | null | undefined;
197
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
179
198
  }, z.ZodTypeDef, {
199
+ status: "joined" | "seen";
180
200
  _id: string | import("mongoose").Types.ObjectId;
181
201
  tournamentId: string | import("mongoose").Types.ObjectId;
182
- teamId: string | import("mongoose").Types.ObjectId;
183
202
  createdAt?: Date | null | undefined;
203
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
184
204
  }>]>>;
185
205
  }, "strip", z.ZodTypeAny, {
186
206
  message: string;
187
207
  success: boolean;
188
208
  data?: {
209
+ status: "joined" | "seen";
189
210
  _id: string | import("mongoose").Types.ObjectId;
190
211
  tournamentId: string | import("mongoose").Types.ObjectId;
191
- teamId: string | import("mongoose").Types.ObjectId;
192
212
  createdAt?: Date | null | undefined;
213
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
193
214
  } | {
194
215
  documents: {
216
+ status: "joined" | "seen";
195
217
  _id: string | import("mongoose").Types.ObjectId;
196
218
  tournamentId: string | import("mongoose").Types.ObjectId;
197
- teamId: string | import("mongoose").Types.ObjectId;
198
219
  createdAt?: Date | null | undefined;
220
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
199
221
  }[];
200
222
  metadata?: {
201
223
  page: number;
@@ -208,16 +230,18 @@ export declare const JoinTournamentResponseSchema: z.ZodObject<{
208
230
  message: string;
209
231
  success: boolean;
210
232
  data?: {
233
+ status: "joined" | "seen";
211
234
  _id: string | import("mongoose").Types.ObjectId;
212
235
  tournamentId: string | import("mongoose").Types.ObjectId;
213
- teamId: string | import("mongoose").Types.ObjectId;
214
236
  createdAt?: Date | null | undefined;
237
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
215
238
  } | {
216
239
  documents: {
240
+ status: "joined" | "seen";
217
241
  _id: string | import("mongoose").Types.ObjectId;
218
242
  tournamentId: string | import("mongoose").Types.ObjectId;
219
- teamId: string | import("mongoose").Types.ObjectId;
220
243
  createdAt?: Date | null | undefined;
244
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
221
245
  }[];
222
246
  metadata?: {
223
247
  page: number;
@@ -248,12 +272,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
248
272
  totalPages: number;
249
273
  }>>;
250
274
  documents: z.ZodArray<z.ZodType<{
275
+ status: "joined" | "seen";
251
276
  _id: string | import("mongoose").Types.ObjectId;
252
277
  userId: string | import("mongoose").Types.ObjectId;
253
278
  tournamentId: string | import("mongoose").Types.ObjectId;
254
- teamId: string | import("mongoose").Types.ObjectId;
255
279
  createdAt?: Date | null | undefined;
256
280
  updatedAt?: Date | null | undefined;
281
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
257
282
  predictions?: {
258
283
  _id: string | import("mongoose").Types.ObjectId;
259
284
  matchId: string | import("mongoose").Types.ObjectId;
@@ -266,12 +291,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
266
291
  succeeded?: boolean | null | undefined;
267
292
  }[] | undefined;
268
293
  }, z.ZodTypeDef, {
294
+ status: "joined" | "seen";
269
295
  _id: string | import("mongoose").Types.ObjectId;
270
296
  userId: string | import("mongoose").Types.ObjectId;
271
297
  tournamentId: string | import("mongoose").Types.ObjectId;
272
- teamId: string | import("mongoose").Types.ObjectId;
273
298
  createdAt?: Date | null | undefined;
274
299
  updatedAt?: Date | null | undefined;
300
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
275
301
  predictions?: {
276
302
  _id: string | import("mongoose").Types.ObjectId;
277
303
  matchId: string | import("mongoose").Types.ObjectId;
@@ -286,12 +312,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
286
312
  }>, "many">;
287
313
  }, "strip", z.ZodTypeAny, {
288
314
  documents: {
315
+ status: "joined" | "seen";
289
316
  _id: string | import("mongoose").Types.ObjectId;
290
317
  userId: string | import("mongoose").Types.ObjectId;
291
318
  tournamentId: string | import("mongoose").Types.ObjectId;
292
- teamId: string | import("mongoose").Types.ObjectId;
293
319
  createdAt?: Date | null | undefined;
294
320
  updatedAt?: Date | null | undefined;
321
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
295
322
  predictions?: {
296
323
  _id: string | import("mongoose").Types.ObjectId;
297
324
  matchId: string | import("mongoose").Types.ObjectId;
@@ -312,12 +339,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
312
339
  } | undefined;
313
340
  }, {
314
341
  documents: {
342
+ status: "joined" | "seen";
315
343
  _id: string | import("mongoose").Types.ObjectId;
316
344
  userId: string | import("mongoose").Types.ObjectId;
317
345
  tournamentId: string | import("mongoose").Types.ObjectId;
318
- teamId: string | import("mongoose").Types.ObjectId;
319
346
  createdAt?: Date | null | undefined;
320
347
  updatedAt?: Date | null | undefined;
348
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
321
349
  predictions?: {
322
350
  _id: string | import("mongoose").Types.ObjectId;
323
351
  matchId: string | import("mongoose").Types.ObjectId;
@@ -337,12 +365,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
337
365
  totalPages: number;
338
366
  } | undefined;
339
367
  }>, z.ZodType<{
368
+ status: "joined" | "seen";
340
369
  _id: string | import("mongoose").Types.ObjectId;
341
370
  userId: string | import("mongoose").Types.ObjectId;
342
371
  tournamentId: string | import("mongoose").Types.ObjectId;
343
- teamId: string | import("mongoose").Types.ObjectId;
344
372
  createdAt?: Date | null | undefined;
345
373
  updatedAt?: Date | null | undefined;
374
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
346
375
  predictions?: {
347
376
  _id: string | import("mongoose").Types.ObjectId;
348
377
  matchId: string | import("mongoose").Types.ObjectId;
@@ -355,12 +384,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
355
384
  succeeded?: boolean | null | undefined;
356
385
  }[] | undefined;
357
386
  }, z.ZodTypeDef, {
387
+ status: "joined" | "seen";
358
388
  _id: string | import("mongoose").Types.ObjectId;
359
389
  userId: string | import("mongoose").Types.ObjectId;
360
390
  tournamentId: string | import("mongoose").Types.ObjectId;
361
- teamId: string | import("mongoose").Types.ObjectId;
362
391
  createdAt?: Date | null | undefined;
363
392
  updatedAt?: Date | null | undefined;
393
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
364
394
  predictions?: {
365
395
  _id: string | import("mongoose").Types.ObjectId;
366
396
  matchId: string | import("mongoose").Types.ObjectId;
@@ -377,12 +407,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
377
407
  message: string;
378
408
  success: boolean;
379
409
  data?: {
410
+ status: "joined" | "seen";
380
411
  _id: string | import("mongoose").Types.ObjectId;
381
412
  userId: string | import("mongoose").Types.ObjectId;
382
413
  tournamentId: string | import("mongoose").Types.ObjectId;
383
- teamId: string | import("mongoose").Types.ObjectId;
384
414
  createdAt?: Date | null | undefined;
385
415
  updatedAt?: Date | null | undefined;
416
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
386
417
  predictions?: {
387
418
  _id: string | import("mongoose").Types.ObjectId;
388
419
  matchId: string | import("mongoose").Types.ObjectId;
@@ -396,12 +427,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
396
427
  }[] | undefined;
397
428
  } | {
398
429
  documents: {
430
+ status: "joined" | "seen";
399
431
  _id: string | import("mongoose").Types.ObjectId;
400
432
  userId: string | import("mongoose").Types.ObjectId;
401
433
  tournamentId: string | import("mongoose").Types.ObjectId;
402
- teamId: string | import("mongoose").Types.ObjectId;
403
434
  createdAt?: Date | null | undefined;
404
435
  updatedAt?: Date | null | undefined;
436
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
405
437
  predictions?: {
406
438
  _id: string | import("mongoose").Types.ObjectId;
407
439
  matchId: string | import("mongoose").Types.ObjectId;
@@ -425,12 +457,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
425
457
  message: string;
426
458
  success: boolean;
427
459
  data?: {
460
+ status: "joined" | "seen";
428
461
  _id: string | import("mongoose").Types.ObjectId;
429
462
  userId: string | import("mongoose").Types.ObjectId;
430
463
  tournamentId: string | import("mongoose").Types.ObjectId;
431
- teamId: string | import("mongoose").Types.ObjectId;
432
464
  createdAt?: Date | null | undefined;
433
465
  updatedAt?: Date | null | undefined;
466
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
434
467
  predictions?: {
435
468
  _id: string | import("mongoose").Types.ObjectId;
436
469
  matchId: string | import("mongoose").Types.ObjectId;
@@ -444,12 +477,13 @@ export declare const TournamentParticipantResponseSchema: z.ZodObject<{
444
477
  }[] | undefined;
445
478
  } | {
446
479
  documents: {
480
+ status: "joined" | "seen";
447
481
  _id: string | import("mongoose").Types.ObjectId;
448
482
  userId: string | import("mongoose").Types.ObjectId;
449
483
  tournamentId: string | import("mongoose").Types.ObjectId;
450
- teamId: string | import("mongoose").Types.ObjectId;
451
484
  createdAt?: Date | null | undefined;
452
485
  updatedAt?: Date | null | undefined;
486
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
453
487
  predictions?: {
454
488
  _id: string | import("mongoose").Types.ObjectId;
455
489
  matchId: string | import("mongoose").Types.ObjectId;
@@ -491,12 +525,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
491
525
  totalPages: number;
492
526
  }>>;
493
527
  documents: z.ZodArray<z.ZodType<{
528
+ status: "joined" | "seen";
494
529
  _id: string | import("mongoose").Types.ObjectId;
495
530
  userId: string | import("mongoose").Types.ObjectId;
496
531
  tournamentId: string | import("mongoose").Types.ObjectId;
497
- teamId: string | import("mongoose").Types.ObjectId;
498
532
  createdAt?: Date | null | undefined;
499
533
  updatedAt?: Date | null | undefined;
534
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
500
535
  predictions?: {
501
536
  _id: string | import("mongoose").Types.ObjectId;
502
537
  matchId: string | import("mongoose").Types.ObjectId;
@@ -509,12 +544,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
509
544
  succeeded?: boolean | null | undefined;
510
545
  }[] | undefined;
511
546
  }[], z.ZodTypeDef, {
547
+ status: "joined" | "seen";
512
548
  _id: string | import("mongoose").Types.ObjectId;
513
549
  userId: string | import("mongoose").Types.ObjectId;
514
550
  tournamentId: string | import("mongoose").Types.ObjectId;
515
- teamId: string | import("mongoose").Types.ObjectId;
516
551
  createdAt?: Date | null | undefined;
517
552
  updatedAt?: Date | null | undefined;
553
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
518
554
  predictions?: {
519
555
  _id: string | import("mongoose").Types.ObjectId;
520
556
  matchId: string | import("mongoose").Types.ObjectId;
@@ -529,12 +565,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
529
565
  }[]>, "many">;
530
566
  }, "strip", z.ZodTypeAny, {
531
567
  documents: {
568
+ status: "joined" | "seen";
532
569
  _id: string | import("mongoose").Types.ObjectId;
533
570
  userId: string | import("mongoose").Types.ObjectId;
534
571
  tournamentId: string | import("mongoose").Types.ObjectId;
535
- teamId: string | import("mongoose").Types.ObjectId;
536
572
  createdAt?: Date | null | undefined;
537
573
  updatedAt?: Date | null | undefined;
574
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
538
575
  predictions?: {
539
576
  _id: string | import("mongoose").Types.ObjectId;
540
577
  matchId: string | import("mongoose").Types.ObjectId;
@@ -555,12 +592,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
555
592
  } | undefined;
556
593
  }, {
557
594
  documents: {
595
+ status: "joined" | "seen";
558
596
  _id: string | import("mongoose").Types.ObjectId;
559
597
  userId: string | import("mongoose").Types.ObjectId;
560
598
  tournamentId: string | import("mongoose").Types.ObjectId;
561
- teamId: string | import("mongoose").Types.ObjectId;
562
599
  createdAt?: Date | null | undefined;
563
600
  updatedAt?: Date | null | undefined;
601
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
564
602
  predictions?: {
565
603
  _id: string | import("mongoose").Types.ObjectId;
566
604
  matchId: string | import("mongoose").Types.ObjectId;
@@ -580,12 +618,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
580
618
  totalPages: number;
581
619
  } | undefined;
582
620
  }>, z.ZodType<{
621
+ status: "joined" | "seen";
583
622
  _id: string | import("mongoose").Types.ObjectId;
584
623
  userId: string | import("mongoose").Types.ObjectId;
585
624
  tournamentId: string | import("mongoose").Types.ObjectId;
586
- teamId: string | import("mongoose").Types.ObjectId;
587
625
  createdAt?: Date | null | undefined;
588
626
  updatedAt?: Date | null | undefined;
627
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
589
628
  predictions?: {
590
629
  _id: string | import("mongoose").Types.ObjectId;
591
630
  matchId: string | import("mongoose").Types.ObjectId;
@@ -598,12 +637,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
598
637
  succeeded?: boolean | null | undefined;
599
638
  }[] | undefined;
600
639
  }[], z.ZodTypeDef, {
640
+ status: "joined" | "seen";
601
641
  _id: string | import("mongoose").Types.ObjectId;
602
642
  userId: string | import("mongoose").Types.ObjectId;
603
643
  tournamentId: string | import("mongoose").Types.ObjectId;
604
- teamId: string | import("mongoose").Types.ObjectId;
605
644
  createdAt?: Date | null | undefined;
606
645
  updatedAt?: Date | null | undefined;
646
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
607
647
  predictions?: {
608
648
  _id: string | import("mongoose").Types.ObjectId;
609
649
  matchId: string | import("mongoose").Types.ObjectId;
@@ -620,12 +660,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
620
660
  message: string;
621
661
  success: boolean;
622
662
  data?: {
663
+ status: "joined" | "seen";
623
664
  _id: string | import("mongoose").Types.ObjectId;
624
665
  userId: string | import("mongoose").Types.ObjectId;
625
666
  tournamentId: string | import("mongoose").Types.ObjectId;
626
- teamId: string | import("mongoose").Types.ObjectId;
627
667
  createdAt?: Date | null | undefined;
628
668
  updatedAt?: Date | null | undefined;
669
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
629
670
  predictions?: {
630
671
  _id: string | import("mongoose").Types.ObjectId;
631
672
  matchId: string | import("mongoose").Types.ObjectId;
@@ -639,12 +680,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
639
680
  }[] | undefined;
640
681
  }[] | {
641
682
  documents: {
683
+ status: "joined" | "seen";
642
684
  _id: string | import("mongoose").Types.ObjectId;
643
685
  userId: string | import("mongoose").Types.ObjectId;
644
686
  tournamentId: string | import("mongoose").Types.ObjectId;
645
- teamId: string | import("mongoose").Types.ObjectId;
646
687
  createdAt?: Date | null | undefined;
647
688
  updatedAt?: Date | null | undefined;
689
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
648
690
  predictions?: {
649
691
  _id: string | import("mongoose").Types.ObjectId;
650
692
  matchId: string | import("mongoose").Types.ObjectId;
@@ -668,12 +710,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
668
710
  message: string;
669
711
  success: boolean;
670
712
  data?: {
713
+ status: "joined" | "seen";
671
714
  _id: string | import("mongoose").Types.ObjectId;
672
715
  userId: string | import("mongoose").Types.ObjectId;
673
716
  tournamentId: string | import("mongoose").Types.ObjectId;
674
- teamId: string | import("mongoose").Types.ObjectId;
675
717
  createdAt?: Date | null | undefined;
676
718
  updatedAt?: Date | null | undefined;
719
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
677
720
  predictions?: {
678
721
  _id: string | import("mongoose").Types.ObjectId;
679
722
  matchId: string | import("mongoose").Types.ObjectId;
@@ -687,12 +730,13 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
687
730
  }[] | undefined;
688
731
  }[] | {
689
732
  documents: {
733
+ status: "joined" | "seen";
690
734
  _id: string | import("mongoose").Types.ObjectId;
691
735
  userId: string | import("mongoose").Types.ObjectId;
692
736
  tournamentId: string | import("mongoose").Types.ObjectId;
693
- teamId: string | import("mongoose").Types.ObjectId;
694
737
  createdAt?: Date | null | undefined;
695
738
  updatedAt?: Date | null | undefined;
739
+ teamId?: string | import("mongoose").Types.ObjectId | undefined;
696
740
  predictions?: {
697
741
  _id: string | import("mongoose").Types.ObjectId;
698
742
  matchId: string | import("mongoose").Types.ObjectId;
@@ -713,7 +757,71 @@ export declare const TournamentParticipantListResponseSchema: z.ZodObject<{
713
757
  } | undefined;
714
758
  } | undefined;
715
759
  }>;
760
+ export declare const MarkSeenTournamentResponseSchema: z.ZodObject<{
761
+ success: z.ZodBoolean;
762
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
763
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
764
+ metadata: z.ZodOptional<z.ZodObject<{
765
+ page: z.ZodNumber;
766
+ size: z.ZodNumber;
767
+ totalElements: z.ZodNumber;
768
+ totalPages: z.ZodNumber;
769
+ }, "strip", z.ZodTypeAny, {
770
+ page: number;
771
+ size: number;
772
+ totalElements: number;
773
+ totalPages: number;
774
+ }, {
775
+ page: number;
776
+ size: number;
777
+ totalElements: number;
778
+ totalPages: number;
779
+ }>>;
780
+ documents: z.ZodArray<z.ZodType<null, z.ZodTypeDef, null>, "many">;
781
+ }, "strip", z.ZodTypeAny, {
782
+ documents: null[];
783
+ metadata?: {
784
+ page: number;
785
+ size: number;
786
+ totalElements: number;
787
+ totalPages: number;
788
+ } | undefined;
789
+ }, {
790
+ documents: null[];
791
+ metadata?: {
792
+ page: number;
793
+ size: number;
794
+ totalElements: number;
795
+ totalPages: number;
796
+ } | undefined;
797
+ }>, z.ZodType<null, z.ZodTypeDef, null>]>>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ message: string;
800
+ success: boolean;
801
+ data?: {
802
+ documents: null[];
803
+ metadata?: {
804
+ page: number;
805
+ size: number;
806
+ totalElements: number;
807
+ totalPages: number;
808
+ } | undefined;
809
+ } | null | undefined;
810
+ }, {
811
+ message: string;
812
+ success: boolean;
813
+ data?: {
814
+ documents: null[];
815
+ metadata?: {
816
+ page: number;
817
+ size: number;
818
+ totalElements: number;
819
+ totalPages: number;
820
+ } | undefined;
821
+ } | null | undefined;
822
+ }>;
716
823
  export type JoinTournamentInputDTO = DTO<typeof JoinTournamentSchema>;
824
+ export type MarkSeenTournamentInputDTO = DTO<typeof MarkSeenTournamentSchema>;
717
825
  export type JoinTournamentParticipantOutputDTO = DTO<typeof JoinTournamentParticipantSchema>;
718
826
  export type TournamentParticipantOutputDTO = DTO<typeof TournamentParticipantSchema>;
719
827
  //# sourceMappingURL=participant.validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"participant.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;AAiB/F,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;EAE1C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAK1C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwD,CAAC;AAClG,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AACrG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6D,CAAC;AAElH,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACtE,MAAM,MAAM,kCAAkC,GAAG,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAC7F,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"participant.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;AAiB/F,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;EAE1C,CAAC;AAEH,eAAO,MAAM,iCAAiC,+BAA6B,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAStC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;EAM1C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;EAEnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwD,CAAC;AAClG,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AACrG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6D,CAAC;AAClH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAC;AAE/E,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACtE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC9E,MAAM,MAAM,kCAAkC,GAAG,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAC7F,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC"}