@lyxa.ai/marketing 1.0.48 → 1.0.49

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 (196) hide show
  1. package/dist/lib/event/event-initializations.js +2 -2
  2. package/dist/lib/event/event-initializations.js.map +1 -1
  3. package/dist/lib/index.d.ts +228 -493
  4. package/dist/lib/index.d.ts.map +1 -1
  5. package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -2
  6. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  7. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  8. package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  9. package/dist/lib/modules/coupon/services/global-coupon.service.js +2 -0
  10. package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
  11. package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
  12. package/dist/lib/modules/coupon/services/helper.service.js +2 -0
  13. package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
  14. package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  15. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +2 -0
  16. package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
  17. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  18. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +2 -0
  19. package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
  20. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  21. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  22. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +5 -4
  23. package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
  24. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  25. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  26. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +13 -1
  27. package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
  28. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  29. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  30. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +11 -2
  31. package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
  32. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
  33. package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  34. package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -1
  35. package/dist/lib/modules/tournament/config/config.builder.js +4 -0
  36. package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
  37. package/dist/lib/modules/tournament/config/config.repository.d.ts +1 -0
  38. package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
  39. package/dist/lib/modules/tournament/config/config.repository.js +7 -1
  40. package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
  41. package/dist/lib/modules/tournament/config/config.router.d.ts +96 -208
  42. package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
  43. package/dist/lib/modules/tournament/config/config.service.d.ts +2 -2
  44. package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -1
  45. package/dist/lib/modules/tournament/config/config.service.js.map +1 -1
  46. package/dist/lib/modules/tournament/config/config.validation.d.ts +412 -659
  47. package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
  48. package/dist/lib/modules/tournament/config/config.validation.js +40 -25
  49. package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
  50. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  51. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  52. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +20 -0
  53. package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -0
  54. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  55. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  56. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +12 -0
  57. package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -0
  58. package/dist/lib/modules/tournament/match/match.builder.d.ts +5 -2
  59. package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
  60. package/dist/lib/modules/tournament/match/match.builder.js +12 -7
  61. package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
  62. package/dist/lib/modules/tournament/match/match.router.d.ts +50 -187
  63. package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
  64. package/dist/lib/modules/tournament/match/match.router.js +0 -7
  65. package/dist/lib/modules/tournament/match/match.router.js.map +1 -1
  66. package/dist/lib/modules/tournament/match/match.service.d.ts +1 -11
  67. package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
  68. package/dist/lib/modules/tournament/match/match.service.js +17 -61
  69. package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
  70. package/dist/lib/modules/tournament/match/match.validation.d.ts +46 -34
  71. package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -1
  72. package/dist/lib/modules/tournament/match/match.validation.js +4 -2
  73. package/dist/lib/modules/tournament/match/match.validation.js.map +1 -1
  74. package/dist/lib/modules/tournament/notification/notification.service.d.ts +2 -1
  75. package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
  76. package/dist/lib/modules/tournament/notification/notification.service.js +16 -11
  77. package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
  78. package/dist/lib/modules/tournament/participant/participant.router.d.ts +9 -9
  79. package/dist/lib/modules/tournament/participant/participant.validation.d.ts +84 -84
  80. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +4 -1
  81. package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  82. package/dist/lib/modules/tournament/prediction/prediction.repository.js +20 -2
  83. package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
  84. package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +12 -12
  85. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +8 -0
  86. package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  87. package/dist/lib/modules/tournament/prediction/prediction.service.js +20 -3
  88. package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
  89. package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +64 -64
  90. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
  91. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  92. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +21 -5
  93. package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
  94. package/dist/lib/modules/tournament/reward/reward.builder.d.ts +6 -0
  95. package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  96. package/dist/lib/modules/tournament/reward/reward.builder.js +43 -0
  97. package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -0
  98. package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  99. package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
  100. package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
  101. package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
  102. package/dist/lib/modules/tournament/reward/reward.types.d.ts +1 -1
  103. package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
  104. package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
  105. package/dist/lib/modules/tournament/score/score.repository.d.ts +6 -0
  106. package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -0
  107. package/dist/lib/modules/tournament/score/score.repository.js +60 -0
  108. package/dist/lib/modules/tournament/score/score.repository.js.map +1 -0
  109. package/dist/lib/modules/tournament/score/score.service.d.ts +6 -0
  110. package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -0
  111. package/dist/lib/modules/tournament/score/score.service.js +60 -0
  112. package/dist/lib/modules/tournament/score/score.service.js.map +1 -0
  113. package/dist/lib/modules/tournament/team/team.router.d.ts +22 -54
  114. package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
  115. package/dist/lib/modules/tournament/team/team.validation.d.ts +14 -14
  116. package/dist/lib/modules/tournament/tournament.router.d.ts +216 -470
  117. package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
  118. package/dist/lib/modules/tournament/tournament.router.js +8 -0
  119. package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
  120. package/dist/lib/modules/tournament/tournament.service.d.ts +8 -0
  121. package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -0
  122. package/dist/lib/modules/tournament/tournament.service.js +63 -0
  123. package/dist/lib/modules/tournament/tournament.service.js.map +1 -0
  124. package/dist/lib/modules/tournament/tournament.validation.d.ts +133 -0
  125. package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -0
  126. package/dist/lib/modules/tournament/tournament.validation.js +14 -0
  127. package/dist/lib/modules/tournament/tournament.validation.js.map +1 -0
  128. package/dist/types/index.d.ts +228 -493
  129. package/dist/types/index.d.ts.map +1 -1
  130. package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -2
  131. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  132. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  133. package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
  134. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  135. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  136. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
  137. package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
  138. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
  139. package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
  140. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
  141. package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
  142. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
  143. package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
  144. package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
  145. package/dist/types/modules/tournament/config/config.repository.d.ts +1 -0
  146. package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
  147. package/dist/types/modules/tournament/config/config.router.d.ts +96 -208
  148. package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
  149. package/dist/types/modules/tournament/config/config.service.d.ts +2 -2
  150. package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -1
  151. package/dist/types/modules/tournament/config/config.validation.d.ts +412 -659
  152. package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
  153. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
  154. package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
  155. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
  156. package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
  157. package/dist/types/modules/tournament/match/match.builder.d.ts +5 -2
  158. package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
  159. package/dist/types/modules/tournament/match/match.router.d.ts +50 -187
  160. package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
  161. package/dist/types/modules/tournament/match/match.service.d.ts +1 -11
  162. package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
  163. package/dist/types/modules/tournament/match/match.validation.d.ts +46 -34
  164. package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
  165. package/dist/types/modules/tournament/notification/notification.service.d.ts +2 -1
  166. package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
  167. package/dist/types/modules/tournament/participant/participant.router.d.ts +9 -9
  168. package/dist/types/modules/tournament/participant/participant.validation.d.ts +84 -84
  169. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +4 -1
  170. package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
  171. package/dist/types/modules/tournament/prediction/prediction.router.d.ts +12 -12
  172. package/dist/types/modules/tournament/prediction/prediction.service.d.ts +8 -0
  173. package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
  174. package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +64 -64
  175. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
  176. package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
  177. package/dist/types/modules/tournament/reward/reward.builder.d.ts +6 -0
  178. package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -0
  179. package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
  180. package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
  181. package/dist/types/modules/tournament/reward/reward.types.d.ts +1 -1
  182. package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
  183. package/dist/types/modules/tournament/score/score.repository.d.ts +6 -0
  184. package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -0
  185. package/dist/types/modules/tournament/score/score.service.d.ts +6 -0
  186. package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -0
  187. package/dist/types/modules/tournament/team/team.router.d.ts +22 -54
  188. package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
  189. package/dist/types/modules/tournament/team/team.validation.d.ts +14 -14
  190. package/dist/types/modules/tournament/tournament.router.d.ts +216 -470
  191. package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
  192. package/dist/types/modules/tournament/tournament.service.d.ts +8 -0
  193. package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -0
  194. package/dist/types/modules/tournament/tournament.validation.d.ts +133 -0
  195. package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -0
  196. package/package.json +2 -2
@@ -17,31 +17,31 @@ export declare const predictionRouter: import("@trpc/server").TRPCBuiltRouter<{
17
17
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
18
18
  create: import("@trpc/server").TRPCMutationProcedure<{
19
19
  input: {
20
+ tournamentId: string | mongoose.Types.ObjectId;
21
+ matchId: string | mongoose.Types.ObjectId;
20
22
  score: {
21
23
  team1: number;
22
24
  team2: number;
23
25
  };
24
- tournamentId: string | mongoose.Types.ObjectId;
25
- matchId: string | mongoose.Types.ObjectId;
26
26
  };
27
27
  output: {
28
28
  message: string;
29
29
  success: boolean;
30
30
  data?: {
31
31
  _id: string | mongoose.Types.ObjectId;
32
+ matchId: string | mongoose.Types.ObjectId;
32
33
  score: {
33
34
  team1: number | null;
34
35
  team2: number | null;
35
36
  };
36
- matchId: string | mongoose.Types.ObjectId;
37
37
  } | {
38
38
  documents: {
39
39
  _id: string | mongoose.Types.ObjectId;
40
+ matchId: string | mongoose.Types.ObjectId;
40
41
  score: {
41
42
  team1: number | null;
42
43
  team2: number | null;
43
44
  };
44
- matchId: string | mongoose.Types.ObjectId;
45
45
  }[];
46
46
  metadata?: {
47
47
  page: number;
@@ -55,31 +55,31 @@ export declare const predictionRouter: import("@trpc/server").TRPCBuiltRouter<{
55
55
  }>;
56
56
  edit: import("@trpc/server").TRPCMutationProcedure<{
57
57
  input: {
58
+ tournamentId: string | mongoose.Types.ObjectId;
59
+ matchId: string | mongoose.Types.ObjectId;
58
60
  score: {
59
61
  team1: number;
60
62
  team2: number;
61
63
  };
62
- tournamentId: string | mongoose.Types.ObjectId;
63
- matchId: string | mongoose.Types.ObjectId;
64
64
  };
65
65
  output: {
66
66
  message: string;
67
67
  success: boolean;
68
68
  data?: {
69
69
  _id: string | mongoose.Types.ObjectId;
70
+ matchId: string | mongoose.Types.ObjectId;
70
71
  score: {
71
72
  team1: number | null;
72
73
  team2: number | null;
73
74
  };
74
- matchId: string | mongoose.Types.ObjectId;
75
75
  } | {
76
76
  documents: {
77
77
  _id: string | mongoose.Types.ObjectId;
78
+ matchId: string | mongoose.Types.ObjectId;
78
79
  score: {
79
80
  team1: number | null;
80
81
  team2: number | null;
81
82
  };
82
- matchId: string | mongoose.Types.ObjectId;
83
83
  }[];
84
84
  metadata?: {
85
85
  page: number;
@@ -101,23 +101,23 @@ export declare const predictionRouter: import("@trpc/server").TRPCBuiltRouter<{
101
101
  success: boolean;
102
102
  data?: {
103
103
  _id: string | mongoose.Types.ObjectId;
104
+ matchId: string | mongoose.Types.ObjectId;
104
105
  score: {
105
106
  team1: number | null;
106
107
  team2: number | null;
107
108
  };
108
- matchId: string | mongoose.Types.ObjectId;
109
- succeeded?: boolean | null | undefined;
110
109
  predictionTime?: Date | null | undefined;
110
+ succeeded?: boolean | null | undefined;
111
111
  } | {
112
112
  documents: ({
113
113
  _id: string | mongoose.Types.ObjectId;
114
+ matchId: string | mongoose.Types.ObjectId;
114
115
  score: {
115
116
  team1: number | null;
116
117
  team2: number | null;
117
118
  };
118
- matchId: string | mongoose.Types.ObjectId;
119
- succeeded?: boolean | null | undefined;
120
119
  predictionTime?: Date | null | undefined;
120
+ succeeded?: boolean | null | undefined;
121
121
  } | null)[];
122
122
  metadata?: {
123
123
  page: number;
@@ -9,6 +9,14 @@ export declare class PredictionService {
9
9
  private ensureMatchIsOpen;
10
10
  private ensureNoPriorPrediction;
11
11
  private findPrediction;
12
+ private resolveOutcomes;
13
+ evaluate(tournamentId: mongoose.Types.ObjectId, matchId: mongoose.Types.ObjectId, finalScore: {
14
+ team1: number;
15
+ team2: number;
16
+ }): Promise<{
17
+ winnerIds: mongoose.Types.ObjectId[];
18
+ loserIds: mongoose.Types.ObjectId[];
19
+ }>;
12
20
  create(userId: mongoose.Types.ObjectId, input: CreatePredictionInputDTO): Promise<PredictionOutputDTO>;
13
21
  edit(userId: mongoose.Types.ObjectId, input: EditPredictionInputDTO): Promise<PredictionOutputDTO>;
14
22
  get(userId: mongoose.Types.ObjectId, input: GetPredictionInputDTO): Promise<PredictionOutputDTO | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"prediction.service.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAOvI,qBACa,iBAAiB;IAC1B,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,kBAAkB,CAAqB;;YAQjC,SAAS;IAQvB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,uBAAuB;IAK/B,OAAO,CAAC,cAAc;IAMT,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IActG,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoBlG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAKvH;AAED,eAAO,MAAM,iBAAiB,mBAAmC,CAAC"}
1
+ {"version":3,"file":"prediction.service.d.ts","sourceRoot":"/","sources":["modules/tournament/prediction/prediction.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EACH,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACtB,MAAM,yBAAyB,CAAC;AAOjC,qBACa,iBAAiB;IAC1B,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,kBAAkB,CAAqB;;YAQjC,SAAS;IAQvB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,uBAAuB;IAK/B,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,eAAe;IAmBV,QAAQ,CACjB,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAC7C,OAAO,CAAC;QAAC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAA;KAAC,CAAC;IAO1E,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IActG,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoBlG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAKvH;AAED,eAAO,MAAM,iBAAiB,mBAAmC,CAAC"}
@@ -14,19 +14,19 @@ export declare const CreatePredictionSchema: z.ZodObject<{
14
14
  team2: number;
15
15
  }>;
16
16
  }, "strip", z.ZodTypeAny, {
17
+ tournamentId: import("mongoose").Types.ObjectId;
18
+ matchId: import("mongoose").Types.ObjectId;
17
19
  score: {
18
20
  team1: number;
19
21
  team2: number;
20
22
  };
21
- tournamentId: import("mongoose").Types.ObjectId;
22
- matchId: import("mongoose").Types.ObjectId;
23
23
  }, {
24
+ tournamentId: string | import("mongoose").Types.ObjectId;
25
+ matchId: string | import("mongoose").Types.ObjectId;
24
26
  score: {
25
27
  team1: number;
26
28
  team2: number;
27
29
  };
28
- tournamentId: string | import("mongoose").Types.ObjectId;
29
- matchId: string | import("mongoose").Types.ObjectId;
30
30
  }>;
31
31
  export declare const EditPredictionSchema: z.ZodObject<{
32
32
  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>]>;
@@ -42,19 +42,19 @@ export declare const EditPredictionSchema: z.ZodObject<{
42
42
  team2: number;
43
43
  }>;
44
44
  }, "strip", z.ZodTypeAny, {
45
+ tournamentId: import("mongoose").Types.ObjectId;
46
+ matchId: import("mongoose").Types.ObjectId;
45
47
  score: {
46
48
  team1: number;
47
49
  team2: number;
48
50
  };
49
- tournamentId: import("mongoose").Types.ObjectId;
50
- matchId: import("mongoose").Types.ObjectId;
51
51
  }, {
52
+ tournamentId: string | import("mongoose").Types.ObjectId;
53
+ matchId: string | import("mongoose").Types.ObjectId;
52
54
  score: {
53
55
  team1: number;
54
56
  team2: number;
55
57
  };
56
- tournamentId: string | import("mongoose").Types.ObjectId;
57
- matchId: string | import("mongoose").Types.ObjectId;
58
58
  }>;
59
59
  export declare const GetPredictionSchema: z.ZodObject<{
60
60
  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>]>;
@@ -83,22 +83,22 @@ export declare const PredictionSchema: z.ZodObject<{
83
83
  succeeded: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  _id: import("mongoose").Types.ObjectId;
86
+ matchId: import("mongoose").Types.ObjectId;
86
87
  score: {
87
88
  team1: number | null;
88
89
  team2: number | null;
89
90
  };
90
- matchId: import("mongoose").Types.ObjectId;
91
- succeeded?: boolean | null | undefined;
92
91
  predictionTime?: Date | null | undefined;
92
+ succeeded?: boolean | null | undefined;
93
93
  }, {
94
94
  _id: string | import("mongoose").Types.ObjectId;
95
+ matchId: string | import("mongoose").Types.ObjectId;
95
96
  score: {
96
97
  team1: number | null;
97
98
  team2: number | null;
98
99
  };
99
- matchId: string | import("mongoose").Types.ObjectId;
100
- succeeded?: boolean | null | undefined;
101
100
  predictionTime?: Date | null | undefined;
101
+ succeeded?: boolean | null | undefined;
102
102
  }>;
103
103
  export declare const MutatePredictionSchema: z.ZodObject<{
104
104
  _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>]>;
@@ -115,18 +115,18 @@ export declare const MutatePredictionSchema: z.ZodObject<{
115
115
  }>;
116
116
  }, "strip", z.ZodTypeAny, {
117
117
  _id: import("mongoose").Types.ObjectId;
118
+ matchId: import("mongoose").Types.ObjectId;
118
119
  score: {
119
120
  team1: number | null;
120
121
  team2: number | null;
121
122
  };
122
- matchId: import("mongoose").Types.ObjectId;
123
123
  }, {
124
124
  _id: string | import("mongoose").Types.ObjectId;
125
+ matchId: string | import("mongoose").Types.ObjectId;
125
126
  score: {
126
127
  team1: number | null;
127
128
  team2: number | null;
128
129
  };
129
- matchId: string | import("mongoose").Types.ObjectId;
130
130
  }>;
131
131
  export declare const MutatePredictionResponseSchema: z.ZodObject<{
132
132
  success: z.ZodBoolean;
@@ -150,27 +150,27 @@ export declare const MutatePredictionResponseSchema: z.ZodObject<{
150
150
  }>>;
151
151
  documents: z.ZodArray<z.ZodType<{
152
152
  _id: string | import("mongoose").Types.ObjectId;
153
+ matchId: string | import("mongoose").Types.ObjectId;
153
154
  score: {
154
155
  team1: number | null;
155
156
  team2: number | null;
156
157
  };
157
- matchId: string | import("mongoose").Types.ObjectId;
158
158
  }, z.ZodTypeDef, {
159
159
  _id: string | import("mongoose").Types.ObjectId;
160
+ matchId: string | import("mongoose").Types.ObjectId;
160
161
  score: {
161
162
  team1: number | null;
162
163
  team2: number | null;
163
164
  };
164
- matchId: string | import("mongoose").Types.ObjectId;
165
165
  }>, "many">;
166
166
  }, "strip", z.ZodTypeAny, {
167
167
  documents: {
168
168
  _id: string | import("mongoose").Types.ObjectId;
169
+ matchId: string | import("mongoose").Types.ObjectId;
169
170
  score: {
170
171
  team1: number | null;
171
172
  team2: number | null;
172
173
  };
173
- matchId: string | import("mongoose").Types.ObjectId;
174
174
  }[];
175
175
  metadata?: {
176
176
  page: number;
@@ -181,11 +181,11 @@ export declare const MutatePredictionResponseSchema: z.ZodObject<{
181
181
  }, {
182
182
  documents: {
183
183
  _id: string | import("mongoose").Types.ObjectId;
184
+ matchId: string | import("mongoose").Types.ObjectId;
184
185
  score: {
185
186
  team1: number | null;
186
187
  team2: number | null;
187
188
  };
188
- matchId: string | import("mongoose").Types.ObjectId;
189
189
  }[];
190
190
  metadata?: {
191
191
  page: number;
@@ -195,37 +195,37 @@ export declare const MutatePredictionResponseSchema: z.ZodObject<{
195
195
  } | undefined;
196
196
  }>, z.ZodType<{
197
197
  _id: string | import("mongoose").Types.ObjectId;
198
+ matchId: string | import("mongoose").Types.ObjectId;
198
199
  score: {
199
200
  team1: number | null;
200
201
  team2: number | null;
201
202
  };
202
- matchId: string | import("mongoose").Types.ObjectId;
203
203
  }, z.ZodTypeDef, {
204
204
  _id: string | import("mongoose").Types.ObjectId;
205
+ matchId: string | import("mongoose").Types.ObjectId;
205
206
  score: {
206
207
  team1: number | null;
207
208
  team2: number | null;
208
209
  };
209
- matchId: string | import("mongoose").Types.ObjectId;
210
210
  }>]>>;
211
211
  }, "strip", z.ZodTypeAny, {
212
212
  message: string;
213
213
  success: boolean;
214
214
  data?: {
215
215
  _id: string | import("mongoose").Types.ObjectId;
216
+ matchId: string | import("mongoose").Types.ObjectId;
216
217
  score: {
217
218
  team1: number | null;
218
219
  team2: number | null;
219
220
  };
220
- matchId: string | import("mongoose").Types.ObjectId;
221
221
  } | {
222
222
  documents: {
223
223
  _id: string | import("mongoose").Types.ObjectId;
224
+ matchId: string | import("mongoose").Types.ObjectId;
224
225
  score: {
225
226
  team1: number | null;
226
227
  team2: number | null;
227
228
  };
228
- matchId: string | import("mongoose").Types.ObjectId;
229
229
  }[];
230
230
  metadata?: {
231
231
  page: number;
@@ -239,19 +239,19 @@ export declare const MutatePredictionResponseSchema: z.ZodObject<{
239
239
  success: boolean;
240
240
  data?: {
241
241
  _id: string | import("mongoose").Types.ObjectId;
242
+ matchId: string | import("mongoose").Types.ObjectId;
242
243
  score: {
243
244
  team1: number | null;
244
245
  team2: number | null;
245
246
  };
246
- matchId: string | import("mongoose").Types.ObjectId;
247
247
  } | {
248
248
  documents: {
249
249
  _id: string | import("mongoose").Types.ObjectId;
250
+ matchId: string | import("mongoose").Types.ObjectId;
250
251
  score: {
251
252
  team1: number | null;
252
253
  team2: number | null;
253
254
  };
254
- matchId: string | import("mongoose").Types.ObjectId;
255
255
  }[];
256
256
  metadata?: {
257
257
  page: number;
@@ -283,33 +283,33 @@ export declare const PredictionResponseSchema: z.ZodObject<{
283
283
  }>>;
284
284
  documents: z.ZodArray<z.ZodType<{
285
285
  _id: string | import("mongoose").Types.ObjectId;
286
+ matchId: string | import("mongoose").Types.ObjectId;
286
287
  score: {
287
288
  team1: number | null;
288
289
  team2: number | null;
289
290
  };
290
- matchId: string | import("mongoose").Types.ObjectId;
291
- succeeded?: boolean | null | undefined;
292
291
  predictionTime?: Date | null | undefined;
292
+ succeeded?: boolean | null | undefined;
293
293
  }, z.ZodTypeDef, {
294
294
  _id: string | import("mongoose").Types.ObjectId;
295
+ matchId: string | import("mongoose").Types.ObjectId;
295
296
  score: {
296
297
  team1: number | null;
297
298
  team2: number | null;
298
299
  };
299
- matchId: string | import("mongoose").Types.ObjectId;
300
- succeeded?: boolean | null | undefined;
301
300
  predictionTime?: Date | null | undefined;
301
+ succeeded?: boolean | null | undefined;
302
302
  }>, "many">;
303
303
  }, "strip", z.ZodTypeAny, {
304
304
  documents: {
305
305
  _id: string | import("mongoose").Types.ObjectId;
306
+ matchId: string | import("mongoose").Types.ObjectId;
306
307
  score: {
307
308
  team1: number | null;
308
309
  team2: number | null;
309
310
  };
310
- matchId: string | import("mongoose").Types.ObjectId;
311
- succeeded?: boolean | null | undefined;
312
311
  predictionTime?: Date | null | undefined;
312
+ succeeded?: boolean | null | undefined;
313
313
  }[];
314
314
  metadata?: {
315
315
  page: number;
@@ -320,13 +320,13 @@ export declare const PredictionResponseSchema: z.ZodObject<{
320
320
  }, {
321
321
  documents: {
322
322
  _id: string | import("mongoose").Types.ObjectId;
323
+ matchId: string | import("mongoose").Types.ObjectId;
323
324
  score: {
324
325
  team1: number | null;
325
326
  team2: number | null;
326
327
  };
327
- matchId: string | import("mongoose").Types.ObjectId;
328
- succeeded?: boolean | null | undefined;
329
328
  predictionTime?: Date | null | undefined;
329
+ succeeded?: boolean | null | undefined;
330
330
  }[];
331
331
  metadata?: {
332
332
  page: number;
@@ -336,45 +336,45 @@ export declare const PredictionResponseSchema: z.ZodObject<{
336
336
  } | undefined;
337
337
  }>, z.ZodType<{
338
338
  _id: string | import("mongoose").Types.ObjectId;
339
+ matchId: string | import("mongoose").Types.ObjectId;
339
340
  score: {
340
341
  team1: number | null;
341
342
  team2: number | null;
342
343
  };
343
- matchId: string | import("mongoose").Types.ObjectId;
344
- succeeded?: boolean | null | undefined;
345
344
  predictionTime?: Date | null | undefined;
345
+ succeeded?: boolean | null | undefined;
346
346
  }, z.ZodTypeDef, {
347
347
  _id: string | import("mongoose").Types.ObjectId;
348
+ matchId: string | import("mongoose").Types.ObjectId;
348
349
  score: {
349
350
  team1: number | null;
350
351
  team2: number | null;
351
352
  };
352
- matchId: string | import("mongoose").Types.ObjectId;
353
- succeeded?: boolean | null | undefined;
354
353
  predictionTime?: Date | null | undefined;
354
+ succeeded?: boolean | null | undefined;
355
355
  }>]>>;
356
356
  }, "strip", z.ZodTypeAny, {
357
357
  message: string;
358
358
  success: boolean;
359
359
  data?: {
360
360
  _id: string | import("mongoose").Types.ObjectId;
361
+ matchId: string | import("mongoose").Types.ObjectId;
361
362
  score: {
362
363
  team1: number | null;
363
364
  team2: number | null;
364
365
  };
365
- matchId: string | import("mongoose").Types.ObjectId;
366
- succeeded?: boolean | null | undefined;
367
366
  predictionTime?: Date | null | undefined;
367
+ succeeded?: boolean | null | undefined;
368
368
  } | {
369
369
  documents: {
370
370
  _id: string | import("mongoose").Types.ObjectId;
371
+ matchId: string | import("mongoose").Types.ObjectId;
371
372
  score: {
372
373
  team1: number | null;
373
374
  team2: number | null;
374
375
  };
375
- matchId: string | import("mongoose").Types.ObjectId;
376
- succeeded?: boolean | null | undefined;
377
376
  predictionTime?: Date | null | undefined;
377
+ succeeded?: boolean | null | undefined;
378
378
  }[];
379
379
  metadata?: {
380
380
  page: number;
@@ -388,23 +388,23 @@ export declare const PredictionResponseSchema: z.ZodObject<{
388
388
  success: boolean;
389
389
  data?: {
390
390
  _id: string | import("mongoose").Types.ObjectId;
391
+ matchId: string | import("mongoose").Types.ObjectId;
391
392
  score: {
392
393
  team1: number | null;
393
394
  team2: number | null;
394
395
  };
395
- matchId: string | import("mongoose").Types.ObjectId;
396
- succeeded?: boolean | null | undefined;
397
396
  predictionTime?: Date | null | undefined;
397
+ succeeded?: boolean | null | undefined;
398
398
  } | {
399
399
  documents: {
400
400
  _id: string | import("mongoose").Types.ObjectId;
401
+ matchId: string | import("mongoose").Types.ObjectId;
401
402
  score: {
402
403
  team1: number | null;
403
404
  team2: number | null;
404
405
  };
405
- matchId: string | import("mongoose").Types.ObjectId;
406
- succeeded?: boolean | null | undefined;
407
406
  predictionTime?: Date | null | undefined;
407
+ succeeded?: boolean | null | undefined;
408
408
  }[];
409
409
  metadata?: {
410
410
  page: number;
@@ -436,33 +436,33 @@ export declare const PredictionNullableResponseSchema: z.ZodObject<{
436
436
  }>>;
437
437
  documents: z.ZodArray<z.ZodType<{
438
438
  _id: string | import("mongoose").Types.ObjectId;
439
+ matchId: string | import("mongoose").Types.ObjectId;
439
440
  score: {
440
441
  team1: number | null;
441
442
  team2: number | null;
442
443
  };
443
- matchId: string | import("mongoose").Types.ObjectId;
444
- succeeded?: boolean | null | undefined;
445
444
  predictionTime?: Date | null | undefined;
445
+ succeeded?: boolean | null | undefined;
446
446
  } | null, z.ZodTypeDef, {
447
447
  _id: string | import("mongoose").Types.ObjectId;
448
+ matchId: string | import("mongoose").Types.ObjectId;
448
449
  score: {
449
450
  team1: number | null;
450
451
  team2: number | null;
451
452
  };
452
- matchId: string | import("mongoose").Types.ObjectId;
453
- succeeded?: boolean | null | undefined;
454
453
  predictionTime?: Date | null | undefined;
454
+ succeeded?: boolean | null | undefined;
455
455
  } | null>, "many">;
456
456
  }, "strip", z.ZodTypeAny, {
457
457
  documents: ({
458
458
  _id: string | import("mongoose").Types.ObjectId;
459
+ matchId: string | import("mongoose").Types.ObjectId;
459
460
  score: {
460
461
  team1: number | null;
461
462
  team2: number | null;
462
463
  };
463
- matchId: string | import("mongoose").Types.ObjectId;
464
- succeeded?: boolean | null | undefined;
465
464
  predictionTime?: Date | null | undefined;
465
+ succeeded?: boolean | null | undefined;
466
466
  } | null)[];
467
467
  metadata?: {
468
468
  page: number;
@@ -473,13 +473,13 @@ export declare const PredictionNullableResponseSchema: z.ZodObject<{
473
473
  }, {
474
474
  documents: ({
475
475
  _id: string | import("mongoose").Types.ObjectId;
476
+ matchId: string | import("mongoose").Types.ObjectId;
476
477
  score: {
477
478
  team1: number | null;
478
479
  team2: number | null;
479
480
  };
480
- matchId: string | import("mongoose").Types.ObjectId;
481
- succeeded?: boolean | null | undefined;
482
481
  predictionTime?: Date | null | undefined;
482
+ succeeded?: boolean | null | undefined;
483
483
  } | null)[];
484
484
  metadata?: {
485
485
  page: number;
@@ -489,45 +489,45 @@ export declare const PredictionNullableResponseSchema: z.ZodObject<{
489
489
  } | undefined;
490
490
  }>, z.ZodType<{
491
491
  _id: string | import("mongoose").Types.ObjectId;
492
+ matchId: string | import("mongoose").Types.ObjectId;
492
493
  score: {
493
494
  team1: number | null;
494
495
  team2: number | null;
495
496
  };
496
- matchId: string | import("mongoose").Types.ObjectId;
497
- succeeded?: boolean | null | undefined;
498
497
  predictionTime?: Date | null | undefined;
498
+ succeeded?: boolean | null | undefined;
499
499
  } | null, z.ZodTypeDef, {
500
500
  _id: string | import("mongoose").Types.ObjectId;
501
+ matchId: string | import("mongoose").Types.ObjectId;
501
502
  score: {
502
503
  team1: number | null;
503
504
  team2: number | null;
504
505
  };
505
- matchId: string | import("mongoose").Types.ObjectId;
506
- succeeded?: boolean | null | undefined;
507
506
  predictionTime?: Date | null | undefined;
507
+ succeeded?: boolean | null | undefined;
508
508
  } | null>]>>;
509
509
  }, "strip", z.ZodTypeAny, {
510
510
  message: string;
511
511
  success: boolean;
512
512
  data?: {
513
513
  _id: string | import("mongoose").Types.ObjectId;
514
+ matchId: string | import("mongoose").Types.ObjectId;
514
515
  score: {
515
516
  team1: number | null;
516
517
  team2: number | null;
517
518
  };
518
- matchId: string | import("mongoose").Types.ObjectId;
519
- succeeded?: boolean | null | undefined;
520
519
  predictionTime?: Date | null | undefined;
520
+ succeeded?: boolean | null | undefined;
521
521
  } | {
522
522
  documents: ({
523
523
  _id: string | import("mongoose").Types.ObjectId;
524
+ matchId: string | import("mongoose").Types.ObjectId;
524
525
  score: {
525
526
  team1: number | null;
526
527
  team2: number | null;
527
528
  };
528
- matchId: string | import("mongoose").Types.ObjectId;
529
- succeeded?: boolean | null | undefined;
530
529
  predictionTime?: Date | null | undefined;
530
+ succeeded?: boolean | null | undefined;
531
531
  } | null)[];
532
532
  metadata?: {
533
533
  page: number;
@@ -541,23 +541,23 @@ export declare const PredictionNullableResponseSchema: z.ZodObject<{
541
541
  success: boolean;
542
542
  data?: {
543
543
  _id: string | import("mongoose").Types.ObjectId;
544
+ matchId: string | import("mongoose").Types.ObjectId;
544
545
  score: {
545
546
  team1: number | null;
546
547
  team2: number | null;
547
548
  };
548
- matchId: string | import("mongoose").Types.ObjectId;
549
- succeeded?: boolean | null | undefined;
550
549
  predictionTime?: Date | null | undefined;
550
+ succeeded?: boolean | null | undefined;
551
551
  } | {
552
552
  documents: ({
553
553
  _id: string | import("mongoose").Types.ObjectId;
554
+ matchId: string | import("mongoose").Types.ObjectId;
554
555
  score: {
555
556
  team1: number | null;
556
557
  team2: number | null;
557
558
  };
558
- matchId: string | import("mongoose").Types.ObjectId;
559
- succeeded?: boolean | null | undefined;
560
559
  predictionTime?: Date | null | undefined;
560
+ succeeded?: boolean | null | undefined;
561
561
  } | null)[];
562
562
  metadata?: {
563
563
  page: number;
@@ -1,8 +1,11 @@
1
1
  import { IRewardHandler } from '../reward.interface';
2
2
  import { RewardContext } from '../reward.types';
3
3
  export declare class CouponRewardHandler implements IRewardHandler {
4
+ private individualUserCouponService;
4
5
  private couponService;
6
+ private baseCouponModel;
5
7
  constructor();
8
+ private nextFwcCode;
6
9
  grant(context: RewardContext): Promise<void>;
7
10
  }
8
11
  //# sourceMappingURL=coupon-reward.handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"coupon-reward.handler.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/handlers/coupon-reward.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,qBACa,mBAAoB,YAAW,cAAc;IACtD,OAAO,CAAC,aAAa,CAA8B;;IAM7C,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAMrD"}
1
+ {"version":3,"file":"coupon-reward.handler.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/handlers/coupon-reward.handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAM9C,qBACa,mBAAoB,YAAW,cAAc;IACtD,OAAO,CAAC,2BAA2B,CAA8B;IACjE,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,eAAe,CAAuD;;YAQhE,WAAW;IAKnB,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAerD"}
@@ -0,0 +1,6 @@
1
+ import { mongoose } from '@typegoose/typegoose';
2
+ import { RewardContext } from './reward.types';
3
+ export declare class RewardBuilder {
4
+ static buildCouponRewardContext(matchId: mongoose.Types.ObjectId, tournamentId: mongoose.Types.ObjectId, winnerIds: mongoose.Types.ObjectId[]): RewardContext;
5
+ }
6
+ //# sourceMappingURL=reward.builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reward.builder.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAO7C,qBAAa,aAAa;IACtB,MAAM,CAAC,wBAAwB,CAC3B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAChC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,GACrC,aAAa;CAiCnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"reward.interface.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD"}
1
+ {"version":3,"file":"reward.interface.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"reward.service.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG3D,qBACa,aAAa;IAChB,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAIvE;AAED,eAAO,MAAM,aAAa,eAA+B,CAAC"}
1
+ {"version":3,"file":"reward.service.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAGzD,qBACa,aAAa;IAChB,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAIvE;AAED,eAAO,MAAM,aAAa,eAA+B,CAAC"}
@@ -3,7 +3,7 @@ export declare enum RewardType {
3
3
  COUPON = "coupon"
4
4
  }
5
5
  export interface RewardContext {
6
- userId: mongoose.Types.ObjectId;
6
+ userIds: mongoose.Types.ObjectId[];
7
7
  tournamentId: mongoose.Types.ObjectId;
8
8
  matchId: mongoose.Types.ObjectId;
9
9
  payload: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"reward.types.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,oBAAY,UAAU;IAClB,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IAChC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACtC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
1
+ {"version":3,"file":"reward.types.d.ts","sourceRoot":"/","sources":["modules/tournament/reward/reward.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,oBAAY,UAAU;IAClB,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACtC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
@@ -0,0 +1,6 @@
1
+ export declare class ScoreRepository {
2
+ private participantModel;
3
+ constructor();
4
+ }
5
+ export declare const scoreRepository: ScoreRepository;
6
+ //# sourceMappingURL=score.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"score.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.repository.ts"],"names":[],"mappings":"AAGA,qBACa,eAAe;IACxB,OAAO,CAAC,gBAAgB,CAAoC;;CAK/D;AAED,eAAO,MAAM,eAAe,iBAAiC,CAAC"}