@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
@@ -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"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ Object.defineProperty(exports, "__esModule", { value: true });
45
+ exports.scoreRepository = exports.ScoreRepository = void 0;
46
+ const typedi_1 = __importStar(require("typedi"));
47
+ const models_1 = require("@lyxa.ai/core/dist/libraries/mongo/models");
48
+ let ScoreRepository = class ScoreRepository {
49
+ participantModel;
50
+ constructor() {
51
+ this.participantModel = models_1.TournamentParticipantModel;
52
+ }
53
+ };
54
+ exports.ScoreRepository = ScoreRepository;
55
+ exports.ScoreRepository = ScoreRepository = __decorate([
56
+ (0, typedi_1.Service)(),
57
+ __metadata("design:paramtypes", [])
58
+ ], ScoreRepository);
59
+ exports.scoreRepository = typedi_1.default.get(ScoreRepository);
60
+ //# sourceMappingURL=score.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"score.repository.js","sourceRoot":"/","sources":["modules/tournament/score/score.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA0C;AAC1C,sEAAqF;AAG9E,IAAM,eAAe,GAArB,MAAM,eAAe;IAChB,gBAAgB,CAAoC;IAE5D;QACI,IAAI,CAAC,gBAAgB,GAAG,mCAA0B,CAAC;IACvD,CAAC;CACJ,CAAA;AANY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,gBAAO,GAAE;;GACG,eAAe,CAM3B;AAEY,QAAA,eAAe,GAAG,gBAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import Container, {Service} from 'typedi';\nimport {TournamentParticipantModel} from '@lyxa.ai/core/dist/libraries/mongo/models';\n\n@Service()\nexport class ScoreRepository {\n private participantModel: typeof TournamentParticipantModel;\n\n constructor() {\n this.participantModel = TournamentParticipantModel;\n }\n}\n\nexport const scoreRepository = Container.get(ScoreRepository);\n"]}
@@ -0,0 +1,6 @@
1
+ export declare class ScoreService {
2
+ private repository;
3
+ constructor();
4
+ }
5
+ export declare const scoreService: ScoreService;
6
+ //# sourceMappingURL=score.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"score.service.d.ts","sourceRoot":"/","sources":["modules/tournament/score/score.service.ts"],"names":[],"mappings":"AAGA,qBACa,YAAY;IACrB,OAAO,CAAC,UAAU,CAAkB;;CAKvC;AAED,eAAO,MAAM,YAAY,cAA8B,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ Object.defineProperty(exports, "__esModule", { value: true });
45
+ exports.scoreService = exports.ScoreService = void 0;
46
+ const typedi_1 = __importStar(require("typedi"));
47
+ const score_repository_1 = require("./score.repository");
48
+ let ScoreService = class ScoreService {
49
+ repository;
50
+ constructor() {
51
+ this.repository = typedi_1.default.get(score_repository_1.ScoreRepository);
52
+ }
53
+ };
54
+ exports.ScoreService = ScoreService;
55
+ exports.ScoreService = ScoreService = __decorate([
56
+ (0, typedi_1.Service)(),
57
+ __metadata("design:paramtypes", [])
58
+ ], ScoreService);
59
+ exports.scoreService = typedi_1.default.get(ScoreService);
60
+ //# sourceMappingURL=score.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"score.service.js","sourceRoot":"/","sources":["modules/tournament/score/score.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA0C;AAC1C,yDAAmD;AAG5C,IAAM,YAAY,GAAlB,MAAM,YAAY;IACb,UAAU,CAAkB;IAEpC;QACI,IAAI,CAAC,UAAU,GAAG,gBAAS,CAAC,GAAG,CAAC,kCAAe,CAAC,CAAC;IACrD,CAAC;CACJ,CAAA;AANY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,gBAAO,GAAE;;GACG,YAAY,CAMxB;AAEY,QAAA,YAAY,GAAG,gBAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import Container, {Service} from 'typedi';\nimport {ScoreRepository} from './score.repository';\n\n@Service()\nexport class ScoreService {\n private repository: ScoreRepository;\n\n constructor() {\n this.repository = Container.get(ScoreRepository);\n }\n}\n\nexport const scoreService = Container.get(ScoreService);\n"]}
@@ -28,71 +28,39 @@ export declare const teamRouter: import("@trpc/server").TRPCBuiltRouter<{
28
28
  success: boolean;
29
29
  data?: {
30
30
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
31
- _id: string | mongoose.Types.ObjectId;
31
+ name: string;
32
32
  tag: string;
33
+ _id?: string | mongoose.Types.ObjectId | undefined;
33
34
  createdAt?: Date | null | undefined;
34
35
  startDate?: Date | null | undefined;
35
36
  endDate?: Date | null | undefined;
36
37
  updatedAt?: Date | null | undefined;
37
- matches?: {
38
- _id: string | mongoose.Types.ObjectId;
39
- team1: {
40
- name: string;
41
- teamId: string | mongoose.Types.ObjectId;
42
- };
43
- team2: {
44
- name: string;
45
- teamId: string | mongoose.Types.ObjectId;
46
- };
47
- score: {
48
- team1: number | null;
49
- team2: number | null;
50
- };
51
- stage: string;
52
- endDate?: Date | null | undefined;
53
- startingDate?: Date | null | undefined;
54
- additionalTag?: string | undefined;
55
- winnerId?: string | mongoose.Types.ObjectId | null | undefined;
56
- }[] | undefined;
57
- teams?: {
58
- name: string;
59
- _id: string | mongoose.Types.ObjectId;
60
- picture?: string | null | undefined;
61
- }[] | undefined;
38
+ reward?: {
39
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
40
+ } | {
41
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
42
+ maxDiscountPerOrder?: number | null | undefined;
43
+ couponNamePrefix?: string | undefined;
44
+ percentage?: number | undefined;
45
+ } | undefined;
62
46
  } | {
63
47
  documents: {
64
48
  status: import("@lyxa.ai/core/dist/utilities/enum").Status;
65
- _id: string | mongoose.Types.ObjectId;
49
+ name: string;
66
50
  tag: string;
51
+ _id?: string | mongoose.Types.ObjectId | undefined;
67
52
  createdAt?: Date | null | undefined;
68
53
  startDate?: Date | null | undefined;
69
54
  endDate?: Date | null | undefined;
70
55
  updatedAt?: Date | null | undefined;
71
- matches?: {
72
- _id: string | mongoose.Types.ObjectId;
73
- team1: {
74
- name: string;
75
- teamId: string | mongoose.Types.ObjectId;
76
- };
77
- team2: {
78
- name: string;
79
- teamId: string | mongoose.Types.ObjectId;
80
- };
81
- score: {
82
- team1: number | null;
83
- team2: number | null;
84
- };
85
- stage: string;
86
- endDate?: Date | null | undefined;
87
- startingDate?: Date | null | undefined;
88
- additionalTag?: string | undefined;
89
- winnerId?: string | mongoose.Types.ObjectId | null | undefined;
90
- }[] | undefined;
91
- teams?: {
92
- name: string;
93
- _id: string | mongoose.Types.ObjectId;
94
- picture?: string | null | undefined;
95
- }[] | undefined;
56
+ reward?: {
57
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
58
+ } | {
59
+ type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
60
+ maxDiscountPerOrder?: number | null | undefined;
61
+ couponNamePrefix?: string | undefined;
62
+ percentage?: number | undefined;
63
+ } | undefined;
96
64
  }[];
97
65
  metadata?: {
98
66
  page: number;
@@ -181,9 +149,9 @@ export declare const teamRouter: import("@trpc/server").TRPCBuiltRouter<{
181
149
  } | null;
182
150
  canPredict: boolean;
183
151
  endDate?: Date | null | undefined;
184
- startingDate?: Date | null | undefined;
185
152
  additionalTag?: string | undefined;
186
153
  winnerId?: string | mongoose.Types.ObjectId | null | undefined;
154
+ startingDate?: Date | null | undefined;
187
155
  }[];
188
156
  startDate?: Date | null | undefined;
189
157
  endDate?: Date | null | undefined;
@@ -216,9 +184,9 @@ export declare const teamRouter: import("@trpc/server").TRPCBuiltRouter<{
216
184
  } | null;
217
185
  canPredict: boolean;
218
186
  endDate?: Date | null | undefined;
219
- startingDate?: Date | null | undefined;
220
187
  additionalTag?: string | undefined;
221
188
  winnerId?: string | mongoose.Types.ObjectId | null | undefined;
189
+ startingDate?: Date | null | undefined;
222
190
  }[];
223
191
  startDate?: Date | null | undefined;
224
192
  endDate?: Date | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"team.router.d.ts","sourceRoot":"/","sources":["modules/tournament/team/team.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAgBhD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BrB,CAAC"}
1
+ {"version":3,"file":"team.router.d.ts","sourceRoot":"/","sources":["modules/tournament/team/team.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAgBhD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BrB,CAAC"}
@@ -197,9 +197,9 @@ export declare const TournamentWithMatchesSchema: z.ZodObject<{
197
197
  } | null;
198
198
  canPredict: boolean;
199
199
  endDate?: Date | null | undefined;
200
- startingDate?: Date | null | undefined;
201
200
  additionalTag?: string | undefined;
202
201
  winnerId?: import("mongoose").Types.ObjectId | null | undefined;
202
+ startingDate?: Date | null | undefined;
203
203
  }, {
204
204
  _id: string | import("mongoose").Types.ObjectId;
205
205
  team1: {
@@ -224,9 +224,9 @@ export declare const TournamentWithMatchesSchema: z.ZodObject<{
224
224
  } | null;
225
225
  canPredict: boolean;
226
226
  endDate?: Date | null | undefined;
227
- startingDate?: Date | null | undefined;
228
227
  additionalTag?: string | undefined;
229
228
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
229
+ startingDate?: Date | null | undefined;
230
230
  }>, "many">;
231
231
  }, "strip", z.ZodTypeAny, {
232
232
  status: Status;
@@ -256,9 +256,9 @@ export declare const TournamentWithMatchesSchema: z.ZodObject<{
256
256
  } | null;
257
257
  canPredict: boolean;
258
258
  endDate?: Date | null | undefined;
259
- startingDate?: Date | null | undefined;
260
259
  additionalTag?: string | undefined;
261
260
  winnerId?: import("mongoose").Types.ObjectId | null | undefined;
261
+ startingDate?: Date | null | undefined;
262
262
  }[];
263
263
  startDate?: Date | null | undefined;
264
264
  endDate?: Date | null | undefined;
@@ -290,9 +290,9 @@ export declare const TournamentWithMatchesSchema: z.ZodObject<{
290
290
  } | null;
291
291
  canPredict: boolean;
292
292
  endDate?: Date | null | undefined;
293
- startingDate?: Date | null | undefined;
294
293
  additionalTag?: string | undefined;
295
294
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
295
+ startingDate?: Date | null | undefined;
296
296
  }[];
297
297
  startDate?: Date | null | undefined;
298
298
  endDate?: Date | null | undefined;
@@ -621,9 +621,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
621
621
  } | null;
622
622
  canPredict: boolean;
623
623
  endDate?: Date | null | undefined;
624
- startingDate?: Date | null | undefined;
625
624
  additionalTag?: string | undefined;
626
625
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
626
+ startingDate?: Date | null | undefined;
627
627
  }[];
628
628
  startDate?: Date | null | undefined;
629
629
  endDate?: Date | null | undefined;
@@ -655,9 +655,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
655
655
  } | null;
656
656
  canPredict: boolean;
657
657
  endDate?: Date | null | undefined;
658
- startingDate?: Date | null | undefined;
659
658
  additionalTag?: string | undefined;
660
659
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
660
+ startingDate?: Date | null | undefined;
661
661
  }[];
662
662
  startDate?: Date | null | undefined;
663
663
  endDate?: Date | null | undefined;
@@ -691,9 +691,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
691
691
  } | null;
692
692
  canPredict: boolean;
693
693
  endDate?: Date | null | undefined;
694
- startingDate?: Date | null | undefined;
695
694
  additionalTag?: string | undefined;
696
695
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
696
+ startingDate?: Date | null | undefined;
697
697
  }[];
698
698
  startDate?: Date | null | undefined;
699
699
  endDate?: Date | null | undefined;
@@ -733,9 +733,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
733
733
  } | null;
734
734
  canPredict: boolean;
735
735
  endDate?: Date | null | undefined;
736
- startingDate?: Date | null | undefined;
737
736
  additionalTag?: string | undefined;
738
737
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
738
+ startingDate?: Date | null | undefined;
739
739
  }[];
740
740
  startDate?: Date | null | undefined;
741
741
  endDate?: Date | null | undefined;
@@ -774,9 +774,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
774
774
  } | null;
775
775
  canPredict: boolean;
776
776
  endDate?: Date | null | undefined;
777
- startingDate?: Date | null | undefined;
778
777
  additionalTag?: string | undefined;
779
778
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
779
+ startingDate?: Date | null | undefined;
780
780
  }[];
781
781
  startDate?: Date | null | undefined;
782
782
  endDate?: Date | null | undefined;
@@ -808,9 +808,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
808
808
  } | null;
809
809
  canPredict: boolean;
810
810
  endDate?: Date | null | undefined;
811
- startingDate?: Date | null | undefined;
812
811
  additionalTag?: string | undefined;
813
812
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
813
+ startingDate?: Date | null | undefined;
814
814
  }[];
815
815
  startDate?: Date | null | undefined;
816
816
  endDate?: Date | null | undefined;
@@ -846,9 +846,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
846
846
  } | null;
847
847
  canPredict: boolean;
848
848
  endDate?: Date | null | undefined;
849
- startingDate?: Date | null | undefined;
850
849
  additionalTag?: string | undefined;
851
850
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
851
+ startingDate?: Date | null | undefined;
852
852
  }[];
853
853
  startDate?: Date | null | undefined;
854
854
  endDate?: Date | null | undefined;
@@ -881,9 +881,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
881
881
  } | null;
882
882
  canPredict: boolean;
883
883
  endDate?: Date | null | undefined;
884
- startingDate?: Date | null | undefined;
885
884
  additionalTag?: string | undefined;
886
885
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
886
+ startingDate?: Date | null | undefined;
887
887
  }[];
888
888
  startDate?: Date | null | undefined;
889
889
  endDate?: Date | null | undefined;
@@ -926,9 +926,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
926
926
  } | null;
927
927
  canPredict: boolean;
928
928
  endDate?: Date | null | undefined;
929
- startingDate?: Date | null | undefined;
930
929
  additionalTag?: string | undefined;
931
930
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
931
+ startingDate?: Date | null | undefined;
932
932
  }[];
933
933
  startDate?: Date | null | undefined;
934
934
  endDate?: Date | null | undefined;
@@ -961,9 +961,9 @@ export declare const TournamentWithMatchesResponseSchema: z.ZodObject<{
961
961
  } | null;
962
962
  canPredict: boolean;
963
963
  endDate?: Date | null | undefined;
964
- startingDate?: Date | null | undefined;
965
964
  additionalTag?: string | undefined;
966
965
  winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
966
+ startingDate?: Date | null | undefined;
967
967
  }[];
968
968
  startDate?: Date | null | undefined;
969
969
  endDate?: Date | null | undefined;