@lyxa.ai/marketing 1.0.49 → 1.0.50

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 (211) hide show
  1. package/dist/lib/index.d.ts +236 -17
  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 +1 -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 +6 -0
  63. package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
  64. package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  65. package/dist/lib/modules/tournament/prediction/prediction.builder.js +3 -2
  66. package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
  67. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +1 -0
  68. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  69. package/dist/lib/modules/tournament/prediction/prediction.service.js +10 -1
  70. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
  71. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  72. package/dist/lib/modules/tournament/reward/reward.builder.js +2 -1
  73. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
  74. package/dist/lib/modules/tournament/reward/reward.repository.d.ts +8 -0
  75. package/dist/lib/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  76. package/dist/lib/modules/tournament/reward/reward.repository.js +66 -0
  77. package/dist/lib/modules/tournament/reward/reward.repository.js.map +1 -0
  78. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts +27 -0
  79. package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  80. package/dist/lib/modules/tournament/schedule/schedule.router.js +17 -0
  81. package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -0
  82. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +10 -0
  83. package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  84. package/dist/lib/modules/tournament/schedule/schedule.service.js +87 -0
  85. package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -0
  86. package/dist/lib/modules/tournament/score/score.repository.d.ts +8 -1
  87. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -1
  88. package/dist/lib/modules/tournament/score/score.repository.js +12 -2
  89. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -1
  90. package/dist/lib/modules/tournament/score/score.router.d.ts +98 -0
  91. package/dist/lib/modules/tournament/score/score.router.d.ts.map +1 -0
  92. package/dist/lib/modules/tournament/score/score.router.js +20 -0
  93. package/dist/lib/modules/tournament/score/score.router.js.map +1 -0
  94. package/dist/lib/modules/tournament/score/score.service.d.ts +7 -0
  95. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -1
  96. package/dist/lib/modules/tournament/score/score.service.js +49 -0
  97. package/dist/lib/modules/tournament/score/score.service.js.map +1 -1
  98. package/dist/lib/modules/tournament/score/score.validation.d.ts +375 -0
  99. package/dist/lib/modules/tournament/score/score.validation.d.ts.map +1 -0
  100. package/dist/lib/modules/tournament/score/score.validation.js +19 -0
  101. package/dist/lib/modules/tournament/score/score.validation.js.map +1 -0
  102. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  103. package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  104. package/dist/lib/modules/tournament/statistics/statistics.builder.js +53 -0
  105. package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -0
  106. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +80 -0
  107. package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  108. package/dist/lib/modules/tournament/statistics/statistics.router.js +21 -0
  109. package/dist/lib/modules/tournament/statistics/statistics.router.js.map +1 -0
  110. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts +11 -0
  111. package/dist/lib/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  112. package/dist/lib/modules/tournament/statistics/statistics.service.js +80 -0
  113. package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -0
  114. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  115. package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  116. package/dist/lib/modules/tournament/statistics/statistics.validation.js +36 -0
  117. package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -0
  118. package/dist/lib/modules/tournament/team/team.router.d.ts +9 -3
  119. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
  120. package/dist/lib/modules/tournament/team/team.service.d.ts +1 -0
  121. package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
  122. package/dist/lib/modules/tournament/team/team.service.js +21 -16
  123. package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
  124. package/dist/lib/modules/tournament/team/team.validation.d.ts +54 -4
  125. package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
  126. package/dist/lib/modules/tournament/team/team.validation.js +4 -2
  127. package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
  128. package/dist/lib/modules/tournament/tournament.router.d.ts +236 -17
  129. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
  130. package/dist/lib/modules/tournament/tournament.router.js +6 -0
  131. package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
  132. package/dist/lib/modules/tournament/tournament.types.d.ts +9 -0
  133. package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -0
  134. package/dist/lib/modules/tournament/tournament.types.js +14 -0
  135. package/dist/lib/modules/tournament/tournament.types.js.map +1 -0
  136. package/dist/lib/modules/tournament/tournament.utils.d.ts +2 -0
  137. package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -0
  138. package/dist/lib/modules/tournament/tournament.utils.js +6 -0
  139. package/dist/lib/modules/tournament/tournament.utils.js.map +1 -0
  140. package/dist/types/index.d.ts +236 -17
  141. package/dist/types/index.d.ts.map +1 -1
  142. package/dist/types/modules/tournament/config/config.repository.d.ts +3 -0
  143. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
  144. package/dist/types/modules/tournament/config/config.router.d.ts +10 -10
  145. package/dist/types/modules/tournament/config/config.validation.d.ts +37 -36
  146. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
  147. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
  148. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
  149. package/dist/types/modules/tournament/match/match.repository.d.ts +2 -0
  150. package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
  151. package/dist/types/modules/tournament/match/match.router.d.ts +16 -4
  152. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
  153. package/dist/types/modules/tournament/match/match.service.d.ts +0 -1
  154. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
  155. package/dist/types/modules/tournament/match/match.validation.d.ts +50 -0
  156. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
  157. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
  158. package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
  159. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
  160. package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
  161. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +8 -0
  162. package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
  163. package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -0
  164. package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -0
  165. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
  166. package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
  167. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
  168. package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
  169. package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -4
  170. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
  171. package/dist/types/modules/tournament/participant/participant.repository.d.ts +1 -0
  172. package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
  173. package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
  174. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +1 -0
  175. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  176. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
  177. package/dist/types/modules/tournament/reward/reward.repository.d.ts +8 -0
  178. package/dist/types/modules/tournament/reward/reward.repository.d.ts.map +1 -0
  179. package/dist/types/modules/tournament/schedule/schedule.router.d.ts +27 -0
  180. package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
  181. package/dist/types/modules/tournament/schedule/schedule.service.d.ts +10 -0
  182. package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
  183. package/dist/types/modules/tournament/score/score.repository.d.ts +8 -1
  184. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -1
  185. package/dist/types/modules/tournament/score/score.router.d.ts +98 -0
  186. package/dist/types/modules/tournament/score/score.router.d.ts.map +1 -0
  187. package/dist/types/modules/tournament/score/score.service.d.ts +7 -0
  188. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -1
  189. package/dist/types/modules/tournament/score/score.validation.d.ts +375 -0
  190. package/dist/types/modules/tournament/score/score.validation.d.ts.map +1 -0
  191. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +10 -0
  192. package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
  193. package/dist/types/modules/tournament/statistics/statistics.router.d.ts +80 -0
  194. package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
  195. package/dist/types/modules/tournament/statistics/statistics.service.d.ts +11 -0
  196. package/dist/types/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
  197. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +404 -0
  198. package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
  199. package/dist/types/modules/tournament/team/team.router.d.ts +9 -3
  200. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
  201. package/dist/types/modules/tournament/team/team.service.d.ts +1 -0
  202. package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
  203. package/dist/types/modules/tournament/team/team.validation.d.ts +54 -4
  204. package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
  205. package/dist/types/modules/tournament/tournament.router.d.ts +236 -17
  206. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
  207. package/dist/types/modules/tournament/tournament.types.d.ts +9 -0
  208. package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -0
  209. package/dist/types/modules/tournament/tournament.utils.d.ts +2 -0
  210. package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -0
  211. package/package.json +2 -2
@@ -7967,7 +7967,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7967
7967
  name: string;
7968
7968
  startDate: string | Date;
7969
7969
  endDate: string | Date;
7970
- tag: string;
7970
+ tag: import("./modules/tournament/tournament.types").TournamentTag;
7971
7971
  status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
7972
7972
  reward?: {
7973
7973
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
@@ -7984,12 +7984,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
7984
7984
  data?: {
7985
7985
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
7986
7986
  name: string;
7987
- tag: string;
7988
7987
  _id?: string | import("mongoose").Types.ObjectId | undefined;
7989
7988
  createdAt?: Date | null | undefined;
7990
7989
  startDate?: Date | null | undefined;
7991
7990
  endDate?: Date | null | undefined;
7992
7991
  updatedAt?: Date | null | undefined;
7992
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
7993
7993
  reward?: {
7994
7994
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
7995
7995
  } | {
@@ -8002,12 +8002,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8002
8002
  documents: {
8003
8003
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8004
8004
  name: string;
8005
- tag: string;
8006
8005
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8007
8006
  createdAt?: Date | null | undefined;
8008
8007
  startDate?: Date | null | undefined;
8009
8008
  endDate?: Date | null | undefined;
8010
8009
  updatedAt?: Date | null | undefined;
8010
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8011
8011
  reward?: {
8012
8012
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8013
8013
  } | {
@@ -8035,12 +8035,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8035
8035
  data?: {
8036
8036
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8037
8037
  name: string;
8038
- tag: string;
8039
8038
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8040
8039
  createdAt?: Date | null | undefined;
8041
8040
  startDate?: Date | null | undefined;
8042
8041
  endDate?: Date | null | undefined;
8043
8042
  updatedAt?: Date | null | undefined;
8043
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8044
8044
  reward?: {
8045
8045
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8046
8046
  } | {
@@ -8052,12 +8052,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8052
8052
  documents: {
8053
8053
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8054
8054
  name: string;
8055
- tag: string;
8056
8055
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8057
8056
  createdAt?: Date | null | undefined;
8058
8057
  startDate?: Date | null | undefined;
8059
8058
  endDate?: Date | null | undefined;
8060
8059
  updatedAt?: Date | null | undefined;
8060
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8061
8061
  reward?: {
8062
8062
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8063
8063
  } | {
@@ -8086,12 +8086,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8086
8086
  data?: {
8087
8087
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8088
8088
  name: string;
8089
- tag: string;
8090
8089
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8091
8090
  createdAt?: Date | null | undefined;
8092
8091
  startDate?: Date | null | undefined;
8093
8092
  endDate?: Date | null | undefined;
8094
8093
  updatedAt?: Date | null | undefined;
8094
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8095
8095
  reward?: {
8096
8096
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8097
8097
  } | {
@@ -8104,12 +8104,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8104
8104
  documents: {
8105
8105
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8106
8106
  name: string;
8107
- tag: string;
8108
8107
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8109
8108
  createdAt?: Date | null | undefined;
8110
8109
  startDate?: Date | null | undefined;
8111
8110
  endDate?: Date | null | undefined;
8112
8111
  updatedAt?: Date | null | undefined;
8112
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8113
8113
  reward?: {
8114
8114
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8115
8115
  } | {
@@ -8136,7 +8136,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8136
8136
  name?: string | undefined;
8137
8137
  startDate?: string | Date | undefined;
8138
8138
  endDate?: string | Date | undefined;
8139
- tag?: string | undefined;
8139
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8140
8140
  reward?: {
8141
8141
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8142
8142
  } | {
@@ -8152,12 +8152,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8152
8152
  data?: {
8153
8153
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8154
8154
  name: string;
8155
- tag: string;
8156
8155
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8157
8156
  createdAt?: Date | null | undefined;
8158
8157
  startDate?: Date | null | undefined;
8159
8158
  endDate?: Date | null | undefined;
8160
8159
  updatedAt?: Date | null | undefined;
8160
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8161
8161
  reward?: {
8162
8162
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8163
8163
  } | {
@@ -8170,12 +8170,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8170
8170
  documents: {
8171
8171
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8172
8172
  name: string;
8173
- tag: string;
8174
8173
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8175
8174
  createdAt?: Date | null | undefined;
8176
8175
  startDate?: Date | null | undefined;
8177
8176
  endDate?: Date | null | undefined;
8178
8177
  updatedAt?: Date | null | undefined;
8178
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8179
8179
  reward?: {
8180
8180
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8181
8181
  } | {
@@ -8226,12 +8226,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8226
8226
  data?: {
8227
8227
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8228
8228
  name: string;
8229
- tag: string;
8230
8229
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8231
8230
  createdAt?: Date | null | undefined;
8232
8231
  startDate?: Date | null | undefined;
8233
8232
  endDate?: Date | null | undefined;
8234
8233
  updatedAt?: Date | null | undefined;
8234
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8235
8235
  reward?: {
8236
8236
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8237
8237
  } | {
@@ -8244,12 +8244,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8244
8244
  documents: {
8245
8245
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8246
8246
  name: string;
8247
- tag: string;
8248
8247
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8249
8248
  createdAt?: Date | null | undefined;
8250
8249
  startDate?: Date | null | undefined;
8251
8250
  endDate?: Date | null | undefined;
8252
8251
  updatedAt?: Date | null | undefined;
8252
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8253
8253
  reward?: {
8254
8254
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8255
8255
  } | {
@@ -8312,8 +8312,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8312
8312
  }>;
8313
8313
  getMatches: import("@trpc/server").TRPCQueryProcedure<{
8314
8314
  input: {
8315
- filter: "completed" | "upcoming";
8316
8315
  tournamentId: string | import("mongoose").Types.ObjectId;
8316
+ filter?: import("./modules/tournament/tournament.types").MatchStatus | undefined;
8317
8317
  };
8318
8318
  output: {
8319
8319
  message: string;
@@ -8327,10 +8327,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8327
8327
  team1: {
8328
8328
  name: string;
8329
8329
  teamId: string | import("mongoose").Types.ObjectId;
8330
+ picture?: string | undefined;
8330
8331
  };
8331
8332
  team2: {
8332
8333
  name: string;
8333
8334
  teamId: string | import("mongoose").Types.ObjectId;
8335
+ picture?: string | undefined;
8334
8336
  };
8335
8337
  score: {
8336
8338
  team1: number | null;
@@ -8345,6 +8347,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8345
8347
  succeeded: boolean | null;
8346
8348
  } | null;
8347
8349
  canPredict: boolean;
8350
+ matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
8348
8351
  endDate?: Date | null | undefined;
8349
8352
  additionalTag?: string | undefined;
8350
8353
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
@@ -8362,10 +8365,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8362
8365
  team1: {
8363
8366
  name: string;
8364
8367
  teamId: string | import("mongoose").Types.ObjectId;
8368
+ picture?: string | undefined;
8365
8369
  };
8366
8370
  team2: {
8367
8371
  name: string;
8368
8372
  teamId: string | import("mongoose").Types.ObjectId;
8373
+ picture?: string | undefined;
8369
8374
  };
8370
8375
  score: {
8371
8376
  team1: number | null;
@@ -8380,6 +8385,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8380
8385
  succeeded: boolean | null;
8381
8386
  } | null;
8382
8387
  canPredict: boolean;
8388
+ matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
8383
8389
  endDate?: Date | null | undefined;
8384
8390
  additionalTag?: string | undefined;
8385
8391
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
@@ -8433,12 +8439,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8433
8439
  data?: {
8434
8440
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8435
8441
  name: string;
8436
- tag: string;
8437
8442
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8438
8443
  createdAt?: Date | null | undefined;
8439
8444
  startDate?: Date | null | undefined;
8440
8445
  endDate?: Date | null | undefined;
8441
8446
  updatedAt?: Date | null | undefined;
8447
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8442
8448
  reward?: {
8443
8449
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8444
8450
  } | {
@@ -8451,12 +8457,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8451
8457
  documents: {
8452
8458
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8453
8459
  name: string;
8454
- tag: string;
8455
8460
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8456
8461
  createdAt?: Date | null | undefined;
8457
8462
  startDate?: Date | null | undefined;
8458
8463
  endDate?: Date | null | undefined;
8459
8464
  updatedAt?: Date | null | undefined;
8465
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8460
8466
  reward?: {
8461
8467
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8462
8468
  } | {
@@ -8488,10 +8494,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8488
8494
  team1: {
8489
8495
  name: string;
8490
8496
  teamId: string | import("mongoose").Types.ObjectId;
8497
+ picture?: string | undefined;
8491
8498
  };
8492
8499
  team2: {
8493
8500
  name: string;
8494
8501
  teamId: string | import("mongoose").Types.ObjectId;
8502
+ picture?: string | undefined;
8495
8503
  };
8496
8504
  score: {
8497
8505
  team1: number | null;
@@ -8515,10 +8523,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8515
8523
  team1: {
8516
8524
  name: string;
8517
8525
  teamId: string | import("mongoose").Types.ObjectId;
8526
+ picture?: string | undefined;
8518
8527
  };
8519
8528
  team2: {
8520
8529
  name: string;
8521
8530
  teamId: string | import("mongoose").Types.ObjectId;
8531
+ picture?: string | undefined;
8522
8532
  };
8523
8533
  score: {
8524
8534
  team1: number | null;
@@ -8560,10 +8570,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8560
8570
  team1: {
8561
8571
  name: string;
8562
8572
  teamId: string | import("mongoose").Types.ObjectId;
8573
+ picture?: string | undefined;
8563
8574
  };
8564
8575
  team2: {
8565
8576
  name: string;
8566
8577
  teamId: string | import("mongoose").Types.ObjectId;
8578
+ picture?: string | undefined;
8567
8579
  };
8568
8580
  score: {
8569
8581
  team1: number | null;
@@ -8587,10 +8599,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8587
8599
  team1: {
8588
8600
  name: string;
8589
8601
  teamId: string | import("mongoose").Types.ObjectId;
8602
+ picture?: string | undefined;
8590
8603
  };
8591
8604
  team2: {
8592
8605
  name: string;
8593
8606
  teamId: string | import("mongoose").Types.ObjectId;
8607
+ picture?: string | undefined;
8594
8608
  };
8595
8609
  score: {
8596
8610
  team1: number | null;
@@ -8636,10 +8650,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8636
8650
  team1: {
8637
8651
  name: string;
8638
8652
  teamId: string | import("mongoose").Types.ObjectId;
8653
+ picture?: string | undefined;
8639
8654
  };
8640
8655
  team2: {
8641
8656
  name: string;
8642
8657
  teamId: string | import("mongoose").Types.ObjectId;
8658
+ picture?: string | undefined;
8643
8659
  };
8644
8660
  score: {
8645
8661
  team1: number | null;
@@ -8663,10 +8679,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8663
8679
  team1: {
8664
8680
  name: string;
8665
8681
  teamId: string | import("mongoose").Types.ObjectId;
8682
+ picture?: string | undefined;
8666
8683
  };
8667
8684
  team2: {
8668
8685
  name: string;
8669
8686
  teamId: string | import("mongoose").Types.ObjectId;
8687
+ picture?: string | undefined;
8670
8688
  };
8671
8689
  score: {
8672
8690
  team1: number | null;
@@ -8706,12 +8724,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8706
8724
  data?: {
8707
8725
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8708
8726
  name: string;
8709
- tag: string;
8710
8727
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8711
8728
  createdAt?: Date | null | undefined;
8712
8729
  startDate?: Date | null | undefined;
8713
8730
  endDate?: Date | null | undefined;
8714
8731
  updatedAt?: Date | null | undefined;
8732
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8715
8733
  reward?: {
8716
8734
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8717
8735
  } | {
@@ -8724,12 +8742,12 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8724
8742
  documents: {
8725
8743
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
8726
8744
  name: string;
8727
- tag: string;
8728
8745
  _id?: string | import("mongoose").Types.ObjectId | undefined;
8729
8746
  createdAt?: Date | null | undefined;
8730
8747
  startDate?: Date | null | undefined;
8731
8748
  endDate?: Date | null | undefined;
8732
8749
  updatedAt?: Date | null | undefined;
8750
+ tag?: import("./modules/tournament/tournament.types").TournamentTag | undefined;
8733
8751
  reward?: {
8734
8752
  type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
8735
8753
  } | {
@@ -8983,6 +9001,207 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
8983
9001
  meta: object;
8984
9002
  }>;
8985
9003
  }>>;
9004
+ statistics: import("@trpc/server").TRPCBuiltRouter<{
9005
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
9006
+ meta: object;
9007
+ errorShape: {
9008
+ message: string;
9009
+ data: {
9010
+ stack: undefined;
9011
+ path: undefined;
9012
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
9013
+ httpStatus: number;
9014
+ };
9015
+ stack: undefined;
9016
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
9017
+ };
9018
+ transformer: false;
9019
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9020
+ getActiveByUser: import("@trpc/server").TRPCQueryProcedure<{
9021
+ input: {
9022
+ userId: string | import("mongoose").Types.ObjectId;
9023
+ };
9024
+ output: {
9025
+ message: string;
9026
+ success: boolean;
9027
+ data?: {
9028
+ name: string;
9029
+ joinedAt: Date | null;
9030
+ stats: {
9031
+ predictionsMade: number;
9032
+ correctPredictions: number;
9033
+ couponsWon: number;
9034
+ };
9035
+ matches: {
9036
+ date: string | null;
9037
+ coupon: string | null;
9038
+ id: string;
9039
+ result: "won" | "lost" | "pending" | null;
9040
+ teams: string;
9041
+ prediction: string | null;
9042
+ realScore: string | null;
9043
+ }[];
9044
+ selectedTeam: {
9045
+ name: string;
9046
+ flag: string | null;
9047
+ };
9048
+ } | {
9049
+ documents: ({
9050
+ name: string;
9051
+ joinedAt: Date | null;
9052
+ stats: {
9053
+ predictionsMade: number;
9054
+ correctPredictions: number;
9055
+ couponsWon: number;
9056
+ };
9057
+ matches: {
9058
+ date: string | null;
9059
+ coupon: string | null;
9060
+ id: string;
9061
+ result: "won" | "lost" | "pending" | null;
9062
+ teams: string;
9063
+ prediction: string | null;
9064
+ realScore: string | null;
9065
+ }[];
9066
+ selectedTeam: {
9067
+ name: string;
9068
+ flag: string | null;
9069
+ };
9070
+ } | null)[];
9071
+ metadata?: {
9072
+ page: number;
9073
+ size: number;
9074
+ totalElements: number;
9075
+ totalPages: number;
9076
+ } | undefined;
9077
+ } | null | undefined;
9078
+ };
9079
+ meta: object;
9080
+ }>;
9081
+ }>>;
9082
+ schedule: import("@trpc/server").TRPCBuiltRouter<{
9083
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
9084
+ meta: object;
9085
+ errorShape: {
9086
+ message: string;
9087
+ data: {
9088
+ stack: undefined;
9089
+ path: undefined;
9090
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
9091
+ httpStatus: number;
9092
+ };
9093
+ stack: undefined;
9094
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
9095
+ };
9096
+ transformer: false;
9097
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9098
+ dispatch: import("@trpc/server").TRPCMutationProcedure<{
9099
+ input: void;
9100
+ output: {
9101
+ success: boolean;
9102
+ message: string;
9103
+ data: null | undefined;
9104
+ };
9105
+ meta: object;
9106
+ }>;
9107
+ }>>;
9108
+ score: import("@trpc/server").TRPCBuiltRouter<{
9109
+ ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
9110
+ meta: object;
9111
+ errorShape: {
9112
+ message: string;
9113
+ data: {
9114
+ stack: undefined;
9115
+ path: undefined;
9116
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
9117
+ httpStatus: number;
9118
+ };
9119
+ stack: undefined;
9120
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
9121
+ };
9122
+ transformer: false;
9123
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9124
+ updateMatchScore: import("@trpc/server").TRPCMutationProcedure<{
9125
+ input: {
9126
+ tournamentId: string | import("mongoose").Types.ObjectId;
9127
+ matchId: string | import("mongoose").Types.ObjectId;
9128
+ teams: {
9129
+ score: number;
9130
+ teamId: string | import("mongoose").Types.ObjectId;
9131
+ }[];
9132
+ };
9133
+ output: {
9134
+ message: string;
9135
+ success: boolean;
9136
+ data?: {
9137
+ _id: string | import("mongoose").Types.ObjectId;
9138
+ team1: {
9139
+ name: string;
9140
+ teamId: string | import("mongoose").Types.ObjectId;
9141
+ picture?: string | undefined;
9142
+ };
9143
+ team2: {
9144
+ name: string;
9145
+ teamId: string | import("mongoose").Types.ObjectId;
9146
+ picture?: string | undefined;
9147
+ };
9148
+ score: {
9149
+ team1: number | null;
9150
+ team2: number | null;
9151
+ };
9152
+ stage: string;
9153
+ endDate?: Date | null | undefined;
9154
+ additionalTag?: string | undefined;
9155
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
9156
+ startingDate?: Date | null | undefined;
9157
+ prediction?: {
9158
+ score: {
9159
+ team1: number | null;
9160
+ team2: number | null;
9161
+ };
9162
+ succeeded?: boolean | null | undefined;
9163
+ } | null | undefined;
9164
+ } | {
9165
+ documents: {
9166
+ _id: string | import("mongoose").Types.ObjectId;
9167
+ team1: {
9168
+ name: string;
9169
+ teamId: string | import("mongoose").Types.ObjectId;
9170
+ picture?: string | undefined;
9171
+ };
9172
+ team2: {
9173
+ name: string;
9174
+ teamId: string | import("mongoose").Types.ObjectId;
9175
+ picture?: string | undefined;
9176
+ };
9177
+ score: {
9178
+ team1: number | null;
9179
+ team2: number | null;
9180
+ };
9181
+ stage: string;
9182
+ endDate?: Date | null | undefined;
9183
+ additionalTag?: string | undefined;
9184
+ winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
9185
+ startingDate?: Date | null | undefined;
9186
+ prediction?: {
9187
+ score: {
9188
+ team1: number | null;
9189
+ team2: number | null;
9190
+ };
9191
+ succeeded?: boolean | null | undefined;
9192
+ } | null | undefined;
9193
+ }[];
9194
+ metadata?: {
9195
+ page: number;
9196
+ size: number;
9197
+ totalElements: number;
9198
+ totalPages: number;
9199
+ } | undefined;
9200
+ } | undefined;
9201
+ };
9202
+ meta: object;
9203
+ }>;
9204
+ }>>;
8986
9205
  getActive: import("@trpc/server").TRPCQueryProcedure<{
8987
9206
  input: void;
8988
9207
  output: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAY2C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAH3E,CAAC;AAuCH,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC"}
@@ -4,6 +4,9 @@ export declare class TournamentConfigRepository {
4
4
  private model;
5
5
  constructor();
6
6
  findActive(): Promise<Pick<Model, 'name' | 'tag' | 'startDate' | 'endDate'> | null>;
7
+ findActiveFull(): Promise<(Model & {
8
+ _id: mongoose.Types.ObjectId;
9
+ }) | null>;
7
10
  existsByTag(tag: string): Promise<boolean>;
8
11
  create(input: object): Promise<Model>;
9
12
  findById(id: mongoose.Types.ObjectId): Promise<Model | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"config.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,UAAU,IAAI,KAAK,EAAmB,MAAM,2CAA2C,CAAC;AAGjG,qBACa,0BAA0B;IACtC,OAAO,CAAC,KAAK,CAAyB;;IAMhC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC;IAMnF,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAKrC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAI5D,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IAI3B,UAAU,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;CAIrF;AAED,eAAO,MAAM,0BAA0B,4BAA4C,CAAC"}
1
+ {"version":3,"file":"config.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,UAAU,IAAI,KAAK,EAAmB,MAAM,2CAA2C,CAAC;AAGjG,qBACa,0BAA0B;IACtC,OAAO,CAAC,KAAK,CAAyB;;IAMhC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC;IAMnF,cAAc,IAAI,OAAO,CAAC,CAAC,KAAK,GAAG;QAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAI5E,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAKrC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAI5D,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IAI3B,UAAU,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;CAIrF;AAED,eAAO,MAAM,0BAA0B,4BAA4C,CAAC"}
@@ -56,6 +56,9 @@ let TournamentConfigRepository = class TournamentConfigRepository {
56
56
  .findOne({ status: enum_1.Status.ACTIVE }, { name: 1, tag: 1, startDate: 1, endDate: 1, _id: 0 })
57
57
  .lean();
58
58
  }
59
+ async findActiveFull() {
60
+ return this.model.findOne({ status: enum_1.Status.ACTIVE }).lean();
61
+ }
59
62
  async existsByTag(tag) {
60
63
  return !!(await this.model.exists({ tag }));
61
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"config.repository.js","sourceRoot":"/","sources":["modules/tournament/config/config.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA4C;AAE5C,sEAAiG;AACjG,4DAA2D;AAGpD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAC9B,KAAK,CAAyB;IAEtC;QACC,IAAI,CAAC,KAAK,GAAG,wBAAe,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C;CACD,CAAA;AAlCY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,gBAAO,GAAE;;GACG,0BAA0B,CAkCtC;AAEY,QAAA,0BAA0B,GAAG,gBAAS,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["import Container, { Service } from 'typedi';\nimport { mongoose } from '@typegoose/typegoose';\nimport { Tournament as Model, TournamentModel } from '@lyxa.ai/core/dist/libraries/mongo/models';\nimport { Status } from '@lyxa.ai/core/dist/utilities/enum';\n\n@Service()\nexport class TournamentConfigRepository {\n\tprivate model: typeof TournamentModel;\n\n\tconstructor() {\n\t\tthis.model = TournamentModel;\n\t}\n\n\tasync findActive(): Promise<Pick<Model, 'name' | 'tag' | 'startDate' | 'endDate'> | null> {\n\t\treturn this.model\n\t\t\t.findOne({ status: Status.ACTIVE }, { name: 1, tag: 1, startDate: 1, endDate: 1, _id: 0 })\n\t\t\t.lean() as Promise<Pick<Model, 'name' | 'tag' | 'startDate' | 'endDate'> | null>;\n\t}\n\n\tasync existsByTag(tag: string): Promise<boolean> {\n\t\treturn !!(await this.model.exists({ tag }));\n\t}\n\n\tasync create(input: object): Promise<Model> {\n\t\tconst doc = await this.model.create(input);\n\t\treturn doc.toObject();\n\t}\n\n\tasync findById(id: mongoose.Types.ObjectId): Promise<Model | null> {\n\t\treturn this.model.findById(id).lean() as Promise<Model | null>;\n\t}\n\n\tasync findAll(): Promise<Model[]> {\n\t\treturn this.model.find().sort({ createdAt: -1 }).lean() as Promise<Model[]>;\n\t}\n\n\tasync updateById(id: mongoose.Types.ObjectId, updates: object): Promise<Model | null> {\n\t\tconst doc = await this.model.findByIdAndUpdate(id, { $set: updates }, { new: true, strict: false }).lean();\n\t\treturn doc as Model | null;\n\t}\n}\n\nexport const tournamentConfigRepository = Container.get(TournamentConfigRepository);\n"]}
1
+ {"version":3,"file":"config.repository.js","sourceRoot":"/","sources":["modules/tournament/config/config.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;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,EAAE,CAAC,CAAC,IAAI,EAAiC,CAAC;IACxF,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,EAA2B,EAAE,OAAe;QAC5D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC3G,OAAO,GAAmB,CAAC;IAC5B,CAAC;CACD,CAAA;AAtCY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,gBAAO,GAAE;;GACG,0BAA0B,CAsCtC;AAEY,QAAA,0BAA0B,GAAG,gBAAS,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["import Container, { Service } from 'typedi';\nimport { mongoose } from '@typegoose/typegoose';\nimport { Tournament as Model, TournamentModel } from '@lyxa.ai/core/dist/libraries/mongo/models';\nimport { Status } from '@lyxa.ai/core/dist/utilities/enum';\n\n@Service()\nexport class TournamentConfigRepository {\n\tprivate model: typeof TournamentModel;\n\n\tconstructor() {\n\t\tthis.model = TournamentModel;\n\t}\n\n\tasync findActive(): Promise<Pick<Model, 'name' | 'tag' | 'startDate' | 'endDate'> | null> {\n\t\treturn this.model\n\t\t\t.findOne({ status: Status.ACTIVE }, { name: 1, tag: 1, startDate: 1, endDate: 1, _id: 0 })\n\t\t\t.lean() as Promise<Pick<Model, 'name' | 'tag' | 'startDate' | 'endDate'> | null>;\n\t}\n\n\tasync findActiveFull(): Promise<(Model & { _id: mongoose.Types.ObjectId }) | null> {\n\t\treturn this.model.findOne({ status: Status.ACTIVE }).lean() as Promise<(Model & { _id: mongoose.Types.ObjectId }) | null>;\n\t}\n\n\tasync existsByTag(tag: string): Promise<boolean> {\n\t\treturn !!(await this.model.exists({ tag }));\n\t}\n\n\tasync create(input: object): Promise<Model> {\n\t\tconst doc = await this.model.create(input);\n\t\treturn doc.toObject();\n\t}\n\n\tasync findById(id: mongoose.Types.ObjectId): Promise<Model | null> {\n\t\treturn this.model.findById(id).lean() as Promise<Model | null>;\n\t}\n\n\tasync findAll(): Promise<Model[]> {\n\t\treturn this.model.find().sort({ createdAt: -1 }).lean() as unknown as Promise<Model[]>;\n\t}\n\n\tasync updateById(id: mongoose.Types.ObjectId, updates: object): Promise<Model | null> {\n\t\tconst doc = await this.model.findByIdAndUpdate(id, { $set: updates }, { new: true, strict: false }).lean();\n\t\treturn doc as Model | null;\n\t}\n}\n\nexport const tournamentConfigRepository = Container.get(TournamentConfigRepository);\n"]}