@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.
- package/dist/lib/index.d.ts +236 -17
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.d.ts +3 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.js +3 -0
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.router.d.ts +10 -10
- package/dist/lib/modules/tournament/config/config.validation.d.ts +37 -36
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.js +4 -3
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +9 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.builder.js +2 -1
- package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.d.ts +2 -0
- package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.js +10 -0
- package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.router.d.ts +16 -4
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.d.ts +0 -1
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.js +3 -9
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.validation.d.ts +50 -0
- package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.validation.js +1 -0
- package/dist/lib/modules/tournament/match/match.validation.js.map +1 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +1 -6
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +1 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js +15 -9
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +8 -0
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification-template.repository.js +60 -0
- package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.config.js +15 -0
- package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js +15 -0
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js +15 -28
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -4
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.js +33 -28
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.js +6 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.builder.js +3 -2
- package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.js +10 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.js +2 -1
- package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.repository.d.ts +8 -0
- package/dist/lib/modules/tournament/reward/reward.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.repository.js +66 -0
- package/dist/lib/modules/tournament/reward/reward.repository.js.map +1 -0
- package/dist/lib/modules/tournament/schedule/schedule.router.d.ts +27 -0
- package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/schedule/schedule.router.js +17 -0
- package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +10 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.js +87 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts +8 -1
- package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/score/score.repository.js +12 -2
- package/dist/lib/modules/tournament/score/score.repository.js.map +1 -1
- package/dist/lib/modules/tournament/score/score.router.d.ts +98 -0
- package/dist/lib/modules/tournament/score/score.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.router.js +20 -0
- package/dist/lib/modules/tournament/score/score.router.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts +7 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/score/score.service.js +49 -0
- package/dist/lib/modules/tournament/score/score.service.js.map +1 -1
- package/dist/lib/modules/tournament/score/score.validation.d.ts +375 -0
- package/dist/lib/modules/tournament/score/score.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.validation.js +19 -0
- package/dist/lib/modules/tournament/score/score.validation.js.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +10 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.js +53 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +80 -0
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.router.js +21 -0
- package/dist/lib/modules/tournament/statistics/statistics.router.js.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.service.d.ts +11 -0
- package/dist/lib/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.service.js +80 -0
- package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +404 -0
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/statistics/statistics.validation.js +36 -0
- package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.router.d.ts +9 -3
- package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.d.ts +1 -0
- package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.js +21 -16
- package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.d.ts +54 -4
- package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.js +4 -2
- package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.router.d.ts +236 -17
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.router.js +6 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.types.d.ts +9 -0
- package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.types.js +14 -0
- package/dist/lib/modules/tournament/tournament.types.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.utils.d.ts +2 -0
- package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.utils.js +6 -0
- package/dist/lib/modules/tournament/tournament.utils.js.map +1 -0
- package/dist/types/index.d.ts +236 -17
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.repository.d.ts +3 -0
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.router.d.ts +10 -10
- package/dist/types/modules/tournament/config/config.validation.d.ts +37 -36
- package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.repository.d.ts +2 -0
- package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.router.d.ts +16 -4
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.service.d.ts +0 -1
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.validation.d.ts +50 -0
- package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +2 -5
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +2 -0
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +8 -0
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -0
- package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +10 -0
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +4 -4
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -4
- package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.repository.d.ts +1 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts +1 -0
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.repository.d.ts +8 -0
- package/dist/types/modules/tournament/reward/reward.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/schedule/schedule.router.d.ts +27 -0
- package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts +10 -0
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts +8 -1
- package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/score/score.router.d.ts +98 -0
- package/dist/types/modules/tournament/score/score.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.service.d.ts +7 -0
- package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/score/score.validation.d.ts +375 -0
- package/dist/types/modules/tournament/score/score.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +10 -0
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts +80 -0
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/statistics/statistics.service.d.ts +11 -0
- package/dist/types/modules/tournament/statistics/statistics.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +404 -0
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.router.d.ts +9 -3
- package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.service.d.ts +1 -0
- package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.validation.d.ts +54 -4
- package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.router.d.ts +236 -17
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.types.d.ts +9 -0
- package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.utils.d.ts +2 -0
- package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -35,7 +35,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
35
35
|
name: string;
|
|
36
36
|
startDate: string | Date;
|
|
37
37
|
endDate: string | Date;
|
|
38
|
-
tag:
|
|
38
|
+
tag: import("./tournament.types").TournamentTag;
|
|
39
39
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
40
40
|
reward?: {
|
|
41
41
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
@@ -52,12 +52,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
52
52
|
data?: {
|
|
53
53
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
54
54
|
name: string;
|
|
55
|
-
tag: string;
|
|
56
55
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
57
56
|
createdAt?: Date | null | undefined;
|
|
58
57
|
startDate?: Date | null | undefined;
|
|
59
58
|
endDate?: Date | null | undefined;
|
|
60
59
|
updatedAt?: Date | null | undefined;
|
|
60
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
61
61
|
reward?: {
|
|
62
62
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
63
63
|
} | {
|
|
@@ -70,12 +70,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
70
70
|
documents: {
|
|
71
71
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
72
72
|
name: string;
|
|
73
|
-
tag: string;
|
|
74
73
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
75
74
|
createdAt?: Date | null | undefined;
|
|
76
75
|
startDate?: Date | null | undefined;
|
|
77
76
|
endDate?: Date | null | undefined;
|
|
78
77
|
updatedAt?: Date | null | undefined;
|
|
78
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
79
79
|
reward?: {
|
|
80
80
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
81
81
|
} | {
|
|
@@ -103,12 +103,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
103
103
|
data?: {
|
|
104
104
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
105
105
|
name: string;
|
|
106
|
-
tag: string;
|
|
107
106
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
108
107
|
createdAt?: Date | null | undefined;
|
|
109
108
|
startDate?: Date | null | undefined;
|
|
110
109
|
endDate?: Date | null | undefined;
|
|
111
110
|
updatedAt?: Date | null | undefined;
|
|
111
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
112
112
|
reward?: {
|
|
113
113
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
114
114
|
} | {
|
|
@@ -120,12 +120,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
120
120
|
documents: {
|
|
121
121
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
122
122
|
name: string;
|
|
123
|
-
tag: string;
|
|
124
123
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
125
124
|
createdAt?: Date | null | undefined;
|
|
126
125
|
startDate?: Date | null | undefined;
|
|
127
126
|
endDate?: Date | null | undefined;
|
|
128
127
|
updatedAt?: Date | null | undefined;
|
|
128
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
129
129
|
reward?: {
|
|
130
130
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
131
131
|
} | {
|
|
@@ -154,12 +154,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
154
154
|
data?: {
|
|
155
155
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
156
156
|
name: string;
|
|
157
|
-
tag: string;
|
|
158
157
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
159
158
|
createdAt?: Date | null | undefined;
|
|
160
159
|
startDate?: Date | null | undefined;
|
|
161
160
|
endDate?: Date | null | undefined;
|
|
162
161
|
updatedAt?: Date | null | undefined;
|
|
162
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
163
163
|
reward?: {
|
|
164
164
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
165
165
|
} | {
|
|
@@ -172,12 +172,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
172
172
|
documents: {
|
|
173
173
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
174
174
|
name: string;
|
|
175
|
-
tag: string;
|
|
176
175
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
177
176
|
createdAt?: Date | null | undefined;
|
|
178
177
|
startDate?: Date | null | undefined;
|
|
179
178
|
endDate?: Date | null | undefined;
|
|
180
179
|
updatedAt?: Date | null | undefined;
|
|
180
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
181
181
|
reward?: {
|
|
182
182
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
183
183
|
} | {
|
|
@@ -204,7 +204,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
204
204
|
name?: string | undefined;
|
|
205
205
|
startDate?: string | Date | undefined;
|
|
206
206
|
endDate?: string | Date | undefined;
|
|
207
|
-
tag?:
|
|
207
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
208
208
|
reward?: {
|
|
209
209
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
210
210
|
} | {
|
|
@@ -220,12 +220,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
220
220
|
data?: {
|
|
221
221
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
222
222
|
name: string;
|
|
223
|
-
tag: string;
|
|
224
223
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
225
224
|
createdAt?: Date | null | undefined;
|
|
226
225
|
startDate?: Date | null | undefined;
|
|
227
226
|
endDate?: Date | null | undefined;
|
|
228
227
|
updatedAt?: Date | null | undefined;
|
|
228
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
229
229
|
reward?: {
|
|
230
230
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
231
231
|
} | {
|
|
@@ -238,12 +238,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
238
238
|
documents: {
|
|
239
239
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
240
240
|
name: string;
|
|
241
|
-
tag: string;
|
|
242
241
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
243
242
|
createdAt?: Date | null | undefined;
|
|
244
243
|
startDate?: Date | null | undefined;
|
|
245
244
|
endDate?: Date | null | undefined;
|
|
246
245
|
updatedAt?: Date | null | undefined;
|
|
246
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
247
247
|
reward?: {
|
|
248
248
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
249
249
|
} | {
|
|
@@ -294,12 +294,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
294
294
|
data?: {
|
|
295
295
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
296
296
|
name: string;
|
|
297
|
-
tag: string;
|
|
298
297
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
299
298
|
createdAt?: Date | null | undefined;
|
|
300
299
|
startDate?: Date | null | undefined;
|
|
301
300
|
endDate?: Date | null | undefined;
|
|
302
301
|
updatedAt?: Date | null | undefined;
|
|
302
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
303
303
|
reward?: {
|
|
304
304
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
305
305
|
} | {
|
|
@@ -312,12 +312,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
312
312
|
documents: {
|
|
313
313
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
314
314
|
name: string;
|
|
315
|
-
tag: string;
|
|
316
315
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
317
316
|
createdAt?: Date | null | undefined;
|
|
318
317
|
startDate?: Date | null | undefined;
|
|
319
318
|
endDate?: Date | null | undefined;
|
|
320
319
|
updatedAt?: Date | null | undefined;
|
|
320
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
321
321
|
reward?: {
|
|
322
322
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
323
323
|
} | {
|
|
@@ -380,8 +380,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
380
380
|
}>;
|
|
381
381
|
getMatches: import("@trpc/server").TRPCQueryProcedure<{
|
|
382
382
|
input: {
|
|
383
|
-
filter: "completed" | "upcoming";
|
|
384
383
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
384
|
+
filter?: import("./tournament.types").MatchStatus | undefined;
|
|
385
385
|
};
|
|
386
386
|
output: {
|
|
387
387
|
message: string;
|
|
@@ -395,10 +395,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
395
395
|
team1: {
|
|
396
396
|
name: string;
|
|
397
397
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
398
|
+
picture?: string | undefined;
|
|
398
399
|
};
|
|
399
400
|
team2: {
|
|
400
401
|
name: string;
|
|
401
402
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
403
|
+
picture?: string | undefined;
|
|
402
404
|
};
|
|
403
405
|
score: {
|
|
404
406
|
team1: number | null;
|
|
@@ -413,6 +415,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
413
415
|
succeeded: boolean | null;
|
|
414
416
|
} | null;
|
|
415
417
|
canPredict: boolean;
|
|
418
|
+
matchStatus: import("./tournament.types").MatchStatus;
|
|
416
419
|
endDate?: Date | null | undefined;
|
|
417
420
|
additionalTag?: string | undefined;
|
|
418
421
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -430,10 +433,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
430
433
|
team1: {
|
|
431
434
|
name: string;
|
|
432
435
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
436
|
+
picture?: string | undefined;
|
|
433
437
|
};
|
|
434
438
|
team2: {
|
|
435
439
|
name: string;
|
|
436
440
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
441
|
+
picture?: string | undefined;
|
|
437
442
|
};
|
|
438
443
|
score: {
|
|
439
444
|
team1: number | null;
|
|
@@ -448,6 +453,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
448
453
|
succeeded: boolean | null;
|
|
449
454
|
} | null;
|
|
450
455
|
canPredict: boolean;
|
|
456
|
+
matchStatus: import("./tournament.types").MatchStatus;
|
|
451
457
|
endDate?: Date | null | undefined;
|
|
452
458
|
additionalTag?: string | undefined;
|
|
453
459
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -501,12 +507,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
501
507
|
data?: {
|
|
502
508
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
503
509
|
name: string;
|
|
504
|
-
tag: string;
|
|
505
510
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
506
511
|
createdAt?: Date | null | undefined;
|
|
507
512
|
startDate?: Date | null | undefined;
|
|
508
513
|
endDate?: Date | null | undefined;
|
|
509
514
|
updatedAt?: Date | null | undefined;
|
|
515
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
510
516
|
reward?: {
|
|
511
517
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
512
518
|
} | {
|
|
@@ -519,12 +525,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
519
525
|
documents: {
|
|
520
526
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
521
527
|
name: string;
|
|
522
|
-
tag: string;
|
|
523
528
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
524
529
|
createdAt?: Date | null | undefined;
|
|
525
530
|
startDate?: Date | null | undefined;
|
|
526
531
|
endDate?: Date | null | undefined;
|
|
527
532
|
updatedAt?: Date | null | undefined;
|
|
533
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
528
534
|
reward?: {
|
|
529
535
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
530
536
|
} | {
|
|
@@ -556,10 +562,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
556
562
|
team1: {
|
|
557
563
|
name: string;
|
|
558
564
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
565
|
+
picture?: string | undefined;
|
|
559
566
|
};
|
|
560
567
|
team2: {
|
|
561
568
|
name: string;
|
|
562
569
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
570
|
+
picture?: string | undefined;
|
|
563
571
|
};
|
|
564
572
|
score: {
|
|
565
573
|
team1: number | null;
|
|
@@ -583,10 +591,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
583
591
|
team1: {
|
|
584
592
|
name: string;
|
|
585
593
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
594
|
+
picture?: string | undefined;
|
|
586
595
|
};
|
|
587
596
|
team2: {
|
|
588
597
|
name: string;
|
|
589
598
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
599
|
+
picture?: string | undefined;
|
|
590
600
|
};
|
|
591
601
|
score: {
|
|
592
602
|
team1: number | null;
|
|
@@ -628,10 +638,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
628
638
|
team1: {
|
|
629
639
|
name: string;
|
|
630
640
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
641
|
+
picture?: string | undefined;
|
|
631
642
|
};
|
|
632
643
|
team2: {
|
|
633
644
|
name: string;
|
|
634
645
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
646
|
+
picture?: string | undefined;
|
|
635
647
|
};
|
|
636
648
|
score: {
|
|
637
649
|
team1: number | null;
|
|
@@ -655,10 +667,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
655
667
|
team1: {
|
|
656
668
|
name: string;
|
|
657
669
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
670
|
+
picture?: string | undefined;
|
|
658
671
|
};
|
|
659
672
|
team2: {
|
|
660
673
|
name: string;
|
|
661
674
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
675
|
+
picture?: string | undefined;
|
|
662
676
|
};
|
|
663
677
|
score: {
|
|
664
678
|
team1: number | null;
|
|
@@ -704,10 +718,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
704
718
|
team1: {
|
|
705
719
|
name: string;
|
|
706
720
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
721
|
+
picture?: string | undefined;
|
|
707
722
|
};
|
|
708
723
|
team2: {
|
|
709
724
|
name: string;
|
|
710
725
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
726
|
+
picture?: string | undefined;
|
|
711
727
|
};
|
|
712
728
|
score: {
|
|
713
729
|
team1: number | null;
|
|
@@ -731,10 +747,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
731
747
|
team1: {
|
|
732
748
|
name: string;
|
|
733
749
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
750
|
+
picture?: string | undefined;
|
|
734
751
|
};
|
|
735
752
|
team2: {
|
|
736
753
|
name: string;
|
|
737
754
|
teamId: string | import("mongoose").Types.ObjectId;
|
|
755
|
+
picture?: string | undefined;
|
|
738
756
|
};
|
|
739
757
|
score: {
|
|
740
758
|
team1: number | null;
|
|
@@ -774,12 +792,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
774
792
|
data?: {
|
|
775
793
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
776
794
|
name: string;
|
|
777
|
-
tag: string;
|
|
778
795
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
779
796
|
createdAt?: Date | null | undefined;
|
|
780
797
|
startDate?: Date | null | undefined;
|
|
781
798
|
endDate?: Date | null | undefined;
|
|
782
799
|
updatedAt?: Date | null | undefined;
|
|
800
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
783
801
|
reward?: {
|
|
784
802
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
785
803
|
} | {
|
|
@@ -792,12 +810,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
792
810
|
documents: {
|
|
793
811
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
794
812
|
name: string;
|
|
795
|
-
tag: string;
|
|
796
813
|
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
797
814
|
createdAt?: Date | null | undefined;
|
|
798
815
|
startDate?: Date | null | undefined;
|
|
799
816
|
endDate?: Date | null | undefined;
|
|
800
817
|
updatedAt?: Date | null | undefined;
|
|
818
|
+
tag?: import("./tournament.types").TournamentTag | undefined;
|
|
801
819
|
reward?: {
|
|
802
820
|
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
803
821
|
} | {
|
|
@@ -1051,6 +1069,207 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1051
1069
|
meta: object;
|
|
1052
1070
|
}>;
|
|
1053
1071
|
}>>;
|
|
1072
|
+
statistics: import("@trpc/server").TRPCBuiltRouter<{
|
|
1073
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
1074
|
+
meta: object;
|
|
1075
|
+
errorShape: {
|
|
1076
|
+
message: string;
|
|
1077
|
+
data: {
|
|
1078
|
+
stack: undefined;
|
|
1079
|
+
path: undefined;
|
|
1080
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
1081
|
+
httpStatus: number;
|
|
1082
|
+
};
|
|
1083
|
+
stack: undefined;
|
|
1084
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1085
|
+
};
|
|
1086
|
+
transformer: false;
|
|
1087
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1088
|
+
getActiveByUser: import("@trpc/server").TRPCQueryProcedure<{
|
|
1089
|
+
input: {
|
|
1090
|
+
userId: string | import("mongoose").Types.ObjectId;
|
|
1091
|
+
};
|
|
1092
|
+
output: {
|
|
1093
|
+
message: string;
|
|
1094
|
+
success: boolean;
|
|
1095
|
+
data?: {
|
|
1096
|
+
name: string;
|
|
1097
|
+
joinedAt: Date | null;
|
|
1098
|
+
stats: {
|
|
1099
|
+
predictionsMade: number;
|
|
1100
|
+
correctPredictions: number;
|
|
1101
|
+
couponsWon: number;
|
|
1102
|
+
};
|
|
1103
|
+
matches: {
|
|
1104
|
+
date: string | null;
|
|
1105
|
+
coupon: string | null;
|
|
1106
|
+
id: string;
|
|
1107
|
+
result: "won" | "lost" | "pending" | null;
|
|
1108
|
+
teams: string;
|
|
1109
|
+
prediction: string | null;
|
|
1110
|
+
realScore: string | null;
|
|
1111
|
+
}[];
|
|
1112
|
+
selectedTeam: {
|
|
1113
|
+
name: string;
|
|
1114
|
+
flag: string | null;
|
|
1115
|
+
};
|
|
1116
|
+
} | {
|
|
1117
|
+
documents: ({
|
|
1118
|
+
name: string;
|
|
1119
|
+
joinedAt: Date | null;
|
|
1120
|
+
stats: {
|
|
1121
|
+
predictionsMade: number;
|
|
1122
|
+
correctPredictions: number;
|
|
1123
|
+
couponsWon: number;
|
|
1124
|
+
};
|
|
1125
|
+
matches: {
|
|
1126
|
+
date: string | null;
|
|
1127
|
+
coupon: string | null;
|
|
1128
|
+
id: string;
|
|
1129
|
+
result: "won" | "lost" | "pending" | null;
|
|
1130
|
+
teams: string;
|
|
1131
|
+
prediction: string | null;
|
|
1132
|
+
realScore: string | null;
|
|
1133
|
+
}[];
|
|
1134
|
+
selectedTeam: {
|
|
1135
|
+
name: string;
|
|
1136
|
+
flag: string | null;
|
|
1137
|
+
};
|
|
1138
|
+
} | null)[];
|
|
1139
|
+
metadata?: {
|
|
1140
|
+
page: number;
|
|
1141
|
+
size: number;
|
|
1142
|
+
totalElements: number;
|
|
1143
|
+
totalPages: number;
|
|
1144
|
+
} | undefined;
|
|
1145
|
+
} | null | undefined;
|
|
1146
|
+
};
|
|
1147
|
+
meta: object;
|
|
1148
|
+
}>;
|
|
1149
|
+
}>>;
|
|
1150
|
+
schedule: import("@trpc/server").TRPCBuiltRouter<{
|
|
1151
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
1152
|
+
meta: object;
|
|
1153
|
+
errorShape: {
|
|
1154
|
+
message: string;
|
|
1155
|
+
data: {
|
|
1156
|
+
stack: undefined;
|
|
1157
|
+
path: undefined;
|
|
1158
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
1159
|
+
httpStatus: number;
|
|
1160
|
+
};
|
|
1161
|
+
stack: undefined;
|
|
1162
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1163
|
+
};
|
|
1164
|
+
transformer: false;
|
|
1165
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1166
|
+
dispatch: import("@trpc/server").TRPCMutationProcedure<{
|
|
1167
|
+
input: void;
|
|
1168
|
+
output: {
|
|
1169
|
+
success: boolean;
|
|
1170
|
+
message: string;
|
|
1171
|
+
data: null | undefined;
|
|
1172
|
+
};
|
|
1173
|
+
meta: object;
|
|
1174
|
+
}>;
|
|
1175
|
+
}>>;
|
|
1176
|
+
score: import("@trpc/server").TRPCBuiltRouter<{
|
|
1177
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
1178
|
+
meta: object;
|
|
1179
|
+
errorShape: {
|
|
1180
|
+
message: string;
|
|
1181
|
+
data: {
|
|
1182
|
+
stack: undefined;
|
|
1183
|
+
path: undefined;
|
|
1184
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
1185
|
+
httpStatus: number;
|
|
1186
|
+
};
|
|
1187
|
+
stack: undefined;
|
|
1188
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1189
|
+
};
|
|
1190
|
+
transformer: false;
|
|
1191
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1192
|
+
updateMatchScore: import("@trpc/server").TRPCMutationProcedure<{
|
|
1193
|
+
input: {
|
|
1194
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
1195
|
+
matchId: string | import("mongoose").Types.ObjectId;
|
|
1196
|
+
teams: {
|
|
1197
|
+
score: number;
|
|
1198
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
1199
|
+
}[];
|
|
1200
|
+
};
|
|
1201
|
+
output: {
|
|
1202
|
+
message: string;
|
|
1203
|
+
success: boolean;
|
|
1204
|
+
data?: {
|
|
1205
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
1206
|
+
team1: {
|
|
1207
|
+
name: string;
|
|
1208
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
1209
|
+
picture?: string | undefined;
|
|
1210
|
+
};
|
|
1211
|
+
team2: {
|
|
1212
|
+
name: string;
|
|
1213
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
1214
|
+
picture?: string | undefined;
|
|
1215
|
+
};
|
|
1216
|
+
score: {
|
|
1217
|
+
team1: number | null;
|
|
1218
|
+
team2: number | null;
|
|
1219
|
+
};
|
|
1220
|
+
stage: string;
|
|
1221
|
+
endDate?: Date | null | undefined;
|
|
1222
|
+
additionalTag?: string | undefined;
|
|
1223
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
1224
|
+
startingDate?: Date | null | undefined;
|
|
1225
|
+
prediction?: {
|
|
1226
|
+
score: {
|
|
1227
|
+
team1: number | null;
|
|
1228
|
+
team2: number | null;
|
|
1229
|
+
};
|
|
1230
|
+
succeeded?: boolean | null | undefined;
|
|
1231
|
+
} | null | undefined;
|
|
1232
|
+
} | {
|
|
1233
|
+
documents: {
|
|
1234
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
1235
|
+
team1: {
|
|
1236
|
+
name: string;
|
|
1237
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
1238
|
+
picture?: string | undefined;
|
|
1239
|
+
};
|
|
1240
|
+
team2: {
|
|
1241
|
+
name: string;
|
|
1242
|
+
teamId: string | import("mongoose").Types.ObjectId;
|
|
1243
|
+
picture?: string | undefined;
|
|
1244
|
+
};
|
|
1245
|
+
score: {
|
|
1246
|
+
team1: number | null;
|
|
1247
|
+
team2: number | null;
|
|
1248
|
+
};
|
|
1249
|
+
stage: string;
|
|
1250
|
+
endDate?: Date | null | undefined;
|
|
1251
|
+
additionalTag?: string | undefined;
|
|
1252
|
+
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
1253
|
+
startingDate?: Date | null | undefined;
|
|
1254
|
+
prediction?: {
|
|
1255
|
+
score: {
|
|
1256
|
+
team1: number | null;
|
|
1257
|
+
team2: number | null;
|
|
1258
|
+
};
|
|
1259
|
+
succeeded?: boolean | null | undefined;
|
|
1260
|
+
} | null | undefined;
|
|
1261
|
+
}[];
|
|
1262
|
+
metadata?: {
|
|
1263
|
+
page: number;
|
|
1264
|
+
size: number;
|
|
1265
|
+
totalElements: number;
|
|
1266
|
+
totalPages: number;
|
|
1267
|
+
} | undefined;
|
|
1268
|
+
} | undefined;
|
|
1269
|
+
};
|
|
1270
|
+
meta: object;
|
|
1271
|
+
}>;
|
|
1272
|
+
}>>;
|
|
1054
1273
|
getActive: import("@trpc/server").TRPCQueryProcedure<{
|
|
1055
1274
|
input: void;
|
|
1056
1275
|
output: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.router.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tournament.router.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgB3B,CAAC"}
|
|
@@ -9,6 +9,9 @@ const team_router_1 = require("./team/team.router");
|
|
|
9
9
|
const match_router_1 = require("./match/match.router");
|
|
10
10
|
const participant_router_1 = require("./participant/participant.router");
|
|
11
11
|
const prediction_router_1 = require("./prediction/prediction.router");
|
|
12
|
+
const statistics_router_1 = require("./statistics/statistics.router");
|
|
13
|
+
const schedule_router_1 = require("./schedule/schedule.router");
|
|
14
|
+
const score_router_1 = require("./score/score.router");
|
|
12
15
|
const tournament_validation_1 = require("./tournament.validation");
|
|
13
16
|
const tournament_service_1 = require("./tournament.service");
|
|
14
17
|
exports.tournamentRouter = (0, trpc_1.createTRPCRouter)({
|
|
@@ -17,6 +20,9 @@ exports.tournamentRouter = (0, trpc_1.createTRPCRouter)({
|
|
|
17
20
|
match: match_router_1.matchRouter,
|
|
18
21
|
participant: participant_router_1.participantRouter,
|
|
19
22
|
prediction: prediction_router_1.predictionRouter,
|
|
23
|
+
statistics: statistics_router_1.statisticsRouter,
|
|
24
|
+
schedule: schedule_router_1.scheduleRouter,
|
|
25
|
+
score: score_router_1.scoreRouter,
|
|
20
26
|
getActive: trpc_1.publicProcedure.output(tournament_validation_1.ActiveTournamentResponseSchema).query(() => error_handler_1.ErrorHandler.wrapAsync(async () => {
|
|
21
27
|
const result = await tournament_service_1.tournamentService.getActive();
|
|
22
28
|
return (0, response_1.response)('Active tournament fetched successfully', result);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.router.js","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":";;;AAAA,4DAAoF;AACpF,8EAAwE;AACxE,oEAA+D;AAC/D,0DAAoD;AACpD,oDAA8C;AAC9C,uDAAiD;AACjD,yEAAmE;AACnE,sEAAgE;AAChE,mEAAuE;AACvE,6DAAkE;AAErD,QAAA,gBAAgB,GAAG,IAAA,uBAAgB,EAAC;IAChD,MAAM,EAAE,4BAAY;IACpB,IAAI,EAAE,wBAAU;IAChB,KAAK,EAAE,0BAAW;IAClB,WAAW,EAAE,sCAAiB;IAC9B,UAAU,EAAE,oCAAgB;
|
|
1
|
+
{"version":3,"file":"tournament.router.js","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":";;;AAAA,4DAAoF;AACpF,8EAAwE;AACxE,oEAA+D;AAC/D,0DAAoD;AACpD,oDAA8C;AAC9C,uDAAiD;AACjD,yEAAmE;AACnE,sEAAgE;AAChE,sEAAgE;AAChE,gEAA0D;AAC1D,uDAAiD;AACjD,mEAAuE;AACvE,6DAAkE;AAErD,QAAA,gBAAgB,GAAG,IAAA,uBAAgB,EAAC;IAChD,MAAM,EAAE,4BAAY;IACpB,IAAI,EAAE,wBAAU;IAChB,KAAK,EAAE,0BAAW;IAClB,WAAW,EAAE,sCAAiB;IAC9B,UAAU,EAAE,oCAAgB;IAC5B,UAAU,EAAE,oCAAgB;IAC5B,QAAQ,EAAE,gCAAc;IACxB,KAAK,EAAE,0BAAW;IAElB,SAAS,EAAE,sBAAe,CAAC,MAAM,CAAC,sDAA8B,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAC5E,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,sCAAO,CAAC,SAAS,EAAE,CAAC;QACzC,OAAO,IAAA,mBAAQ,EAAC,wCAAwC,EAAE,MAAM,CAAC,CAAC;IACnE,CAAC,CAAC,CACF;CACD,CAAC,CAAC","sourcesContent":["import {createTRPCRouter, publicProcedure} from '@lyxa.ai/core/dist/libraries/trpc';\nimport {ErrorHandler} from '@lyxa.ai/core/dist/utilities/error-handler';\nimport {response} from '@lyxa.ai/core/dist/utilities/response';\nimport {configRouter} from './config/config.router';\nimport {teamRouter} from './team/team.router';\nimport {matchRouter} from './match/match.router';\nimport {participantRouter} from './participant/participant.router';\nimport {predictionRouter} from './prediction/prediction.router';\nimport {statisticsRouter} from './statistics/statistics.router';\nimport {scheduleRouter} from './schedule/schedule.router';\nimport {scoreRouter} from './score/score.router';\nimport {ActiveTournamentResponseSchema} from './tournament.validation';\nimport {tournamentService as service} from './tournament.service';\n\nexport const tournamentRouter = createTRPCRouter({\n\tconfig: configRouter,\n\tteam: teamRouter,\n\tmatch: matchRouter,\n\tparticipant: participantRouter,\n\tprediction: predictionRouter,\n\tstatistics: statisticsRouter,\n\tschedule: scheduleRouter,\n\tscore: scoreRouter,\n\n\tgetActive: publicProcedure.output(ActiveTournamentResponseSchema).query(() =>\n\t\tErrorHandler.wrapAsync(async () => {\n\t\t\tconst result = await service.getActive();\n\t\t\treturn response('Active tournament fetched successfully', result);\n\t\t})\n\t),\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament.types.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,kBAAkB,cAAc;CACnC;AAED,oBAAY,WAAW;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,KAAK,UAAU;CAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MatchStatus = exports.TournamentTag = void 0;
|
|
4
|
+
var TournamentTag;
|
|
5
|
+
(function (TournamentTag) {
|
|
6
|
+
TournamentTag["FOOTBALL_WORLD_CUP"] = "world-cup";
|
|
7
|
+
})(TournamentTag || (exports.TournamentTag = TournamentTag = {}));
|
|
8
|
+
var MatchStatus;
|
|
9
|
+
(function (MatchStatus) {
|
|
10
|
+
MatchStatus["UPCOMING"] = "upcoming";
|
|
11
|
+
MatchStatus["STARTED"] = "started";
|
|
12
|
+
MatchStatus["ENDED"] = "ended";
|
|
13
|
+
})(MatchStatus || (exports.MatchStatus = MatchStatus = {}));
|
|
14
|
+
//# sourceMappingURL=tournament.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament.types.js","sourceRoot":"/","sources":["modules/tournament/tournament.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAEX;AAFD,WAAY,aAAa;IACrB,iDAAgC,CAAA;AACpC,CAAC,EAFW,aAAa,6BAAb,aAAa,QAExB;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACnB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB","sourcesContent":["export enum TournamentTag {\n FOOTBALL_WORLD_CUP = 'world-cup',\n}\n\nexport enum MatchStatus {\n UPCOMING = 'upcoming',\n STARTED = 'started',\n ENDED = 'ended',\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament.utils.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,QAAO,IAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament.utils.js","sourceRoot":"/","sources":["modules/tournament/tournament.utils.ts"],"names":[],"mappings":";;;AAAO,MAAM,MAAM,GAAG,GAAS,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AAA1C,QAAA,MAAM,UAAoC","sourcesContent":["export const utcNow = (): Date => new Date(Date.now());\n"]}
|