@lyxa.ai/marketing 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.d.ts +31 -6
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +2 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.js +8 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.router.d.ts +27 -4
- package/dist/lib/modules/tournament/participant/participant.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.router.js +7 -0
- package/dist/lib/modules/tournament/participant/participant.router.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.d.ts +2 -2
- package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.js +20 -6
- package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts +144 -36
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.validation.js +10 -3
- package/dist/lib/modules/tournament/participant/participant.validation.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.js +2 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.router.d.ts +2 -2
- package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.js +2 -0
- package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.d.ts +14 -14
- package/dist/lib/modules/tournament/tournament.router.d.ts +148 -122
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.router.js +7 -2
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.d.ts +3 -1
- package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.js +17 -2
- package/dist/lib/modules/tournament/tournament.service.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.types.d.ts +5 -0
- package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.types.js +7 -1
- package/dist/lib/modules/tournament/tournament.types.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.validation.d.ts +15 -0
- package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.validation.js +4 -1
- package/dist/lib/modules/tournament/tournament.validation.js.map +1 -1
- package/dist/types/index.d.ts +31 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.repository.d.ts +2 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.router.d.ts +27 -4
- package/dist/types/modules/tournament/participant/participant.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.service.d.ts +2 -2
- package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.validation.d.ts +144 -36
- package/dist/types/modules/tournament/participant/participant.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.router.d.ts +2 -2
- package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.validation.d.ts +14 -14
- package/dist/types/modules/tournament/tournament.router.d.ts +148 -122
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.service.d.ts +3 -1
- package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.types.d.ts +5 -0
- package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.validation.d.ts +15 -0
- package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { mongoose } from '@typegoose/typegoose';
|
|
1
2
|
export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
3
|
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
3
4
|
meta: object;
|
|
@@ -52,7 +53,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
52
53
|
data?: {
|
|
53
54
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
54
55
|
name: string;
|
|
55
|
-
_id?: string |
|
|
56
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
56
57
|
createdAt?: Date | null | undefined;
|
|
57
58
|
startDate?: Date | null | undefined;
|
|
58
59
|
endDate?: Date | null | undefined;
|
|
@@ -70,7 +71,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
70
71
|
documents: {
|
|
71
72
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
72
73
|
name: string;
|
|
73
|
-
_id?: string |
|
|
74
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
74
75
|
createdAt?: Date | null | undefined;
|
|
75
76
|
startDate?: Date | null | undefined;
|
|
76
77
|
endDate?: Date | null | undefined;
|
|
@@ -103,7 +104,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
103
104
|
data?: {
|
|
104
105
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
105
106
|
name: string;
|
|
106
|
-
_id?: string |
|
|
107
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
107
108
|
createdAt?: Date | null | undefined;
|
|
108
109
|
startDate?: Date | null | undefined;
|
|
109
110
|
endDate?: Date | null | undefined;
|
|
@@ -120,7 +121,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
120
121
|
documents: {
|
|
121
122
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
122
123
|
name: string;
|
|
123
|
-
_id?: string |
|
|
124
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
124
125
|
createdAt?: Date | null | undefined;
|
|
125
126
|
startDate?: Date | null | undefined;
|
|
126
127
|
endDate?: Date | null | undefined;
|
|
@@ -146,7 +147,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
146
147
|
}>;
|
|
147
148
|
getById: import("@trpc/server").TRPCQueryProcedure<{
|
|
148
149
|
input: {
|
|
149
|
-
tournamentId: string |
|
|
150
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
150
151
|
};
|
|
151
152
|
output: {
|
|
152
153
|
message: string;
|
|
@@ -154,7 +155,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
154
155
|
data?: {
|
|
155
156
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
156
157
|
name: string;
|
|
157
|
-
_id?: string |
|
|
158
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
158
159
|
createdAt?: Date | null | undefined;
|
|
159
160
|
startDate?: Date | null | undefined;
|
|
160
161
|
endDate?: Date | null | undefined;
|
|
@@ -172,7 +173,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
172
173
|
documents: {
|
|
173
174
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
174
175
|
name: string;
|
|
175
|
-
_id?: string |
|
|
176
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
176
177
|
createdAt?: Date | null | undefined;
|
|
177
178
|
startDate?: Date | null | undefined;
|
|
178
179
|
endDate?: Date | null | undefined;
|
|
@@ -199,7 +200,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
199
200
|
}>;
|
|
200
201
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
201
202
|
input: {
|
|
202
|
-
_id: string |
|
|
203
|
+
_id: string | mongoose.Types.ObjectId;
|
|
203
204
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
204
205
|
name?: string | undefined;
|
|
205
206
|
startDate?: string | Date | undefined;
|
|
@@ -220,7 +221,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
220
221
|
data?: {
|
|
221
222
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
222
223
|
name: string;
|
|
223
|
-
_id?: string |
|
|
224
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
224
225
|
createdAt?: Date | null | undefined;
|
|
225
226
|
startDate?: Date | null | undefined;
|
|
226
227
|
endDate?: Date | null | undefined;
|
|
@@ -238,7 +239,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
238
239
|
documents: {
|
|
239
240
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
240
241
|
name: string;
|
|
241
|
-
_id?: string |
|
|
242
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
242
243
|
createdAt?: Date | null | undefined;
|
|
243
244
|
startDate?: Date | null | undefined;
|
|
244
245
|
endDate?: Date | null | undefined;
|
|
@@ -282,7 +283,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
282
283
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
283
284
|
add: import("@trpc/server").TRPCMutationProcedure<{
|
|
284
285
|
input: {
|
|
285
|
-
tournamentId: string |
|
|
286
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
286
287
|
teams: {
|
|
287
288
|
name: string;
|
|
288
289
|
picture?: string | undefined;
|
|
@@ -294,7 +295,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
294
295
|
data?: {
|
|
295
296
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
296
297
|
name: string;
|
|
297
|
-
_id?: string |
|
|
298
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
298
299
|
createdAt?: Date | null | undefined;
|
|
299
300
|
startDate?: Date | null | undefined;
|
|
300
301
|
endDate?: Date | null | undefined;
|
|
@@ -312,7 +313,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
312
313
|
documents: {
|
|
313
314
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
314
315
|
name: string;
|
|
315
|
-
_id?: string |
|
|
316
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
316
317
|
createdAt?: Date | null | undefined;
|
|
317
318
|
startDate?: Date | null | undefined;
|
|
318
319
|
endDate?: Date | null | undefined;
|
|
@@ -339,7 +340,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
339
340
|
}>;
|
|
340
341
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
341
342
|
input: {
|
|
342
|
-
tournamentId: string |
|
|
343
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
343
344
|
};
|
|
344
345
|
output: {
|
|
345
346
|
message: string;
|
|
@@ -347,10 +348,10 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
347
348
|
data?: {
|
|
348
349
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
349
350
|
tag: string;
|
|
350
|
-
tournamentId: string |
|
|
351
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
351
352
|
teams: {
|
|
352
353
|
name: string;
|
|
353
|
-
_id: string |
|
|
354
|
+
_id: string | mongoose.Types.ObjectId;
|
|
354
355
|
picture?: string | undefined;
|
|
355
356
|
}[];
|
|
356
357
|
startDate?: Date | null | undefined;
|
|
@@ -359,10 +360,10 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
359
360
|
documents: {
|
|
360
361
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
361
362
|
tag: string;
|
|
362
|
-
tournamentId: string |
|
|
363
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
363
364
|
teams: {
|
|
364
365
|
name: string;
|
|
365
|
-
_id: string |
|
|
366
|
+
_id: string | mongoose.Types.ObjectId;
|
|
366
367
|
picture?: string | undefined;
|
|
367
368
|
}[];
|
|
368
369
|
startDate?: Date | null | undefined;
|
|
@@ -380,7 +381,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
380
381
|
}>;
|
|
381
382
|
getMatches: import("@trpc/server").TRPCQueryProcedure<{
|
|
382
383
|
input: {
|
|
383
|
-
tournamentId: string |
|
|
384
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
384
385
|
filter?: import("./tournament.types").MatchStatus | undefined;
|
|
385
386
|
};
|
|
386
387
|
output: {
|
|
@@ -389,17 +390,17 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
389
390
|
data?: {
|
|
390
391
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
391
392
|
tag: string;
|
|
392
|
-
tournamentId: string |
|
|
393
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
393
394
|
matches: {
|
|
394
|
-
_id: string |
|
|
395
|
+
_id: string | mongoose.Types.ObjectId;
|
|
395
396
|
team1: {
|
|
396
397
|
name: string;
|
|
397
|
-
teamId: string |
|
|
398
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
398
399
|
picture?: string | undefined;
|
|
399
400
|
};
|
|
400
401
|
team2: {
|
|
401
402
|
name: string;
|
|
402
|
-
teamId: string |
|
|
403
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
403
404
|
picture?: string | undefined;
|
|
404
405
|
};
|
|
405
406
|
score: {
|
|
@@ -407,6 +408,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
407
408
|
team2: number | null;
|
|
408
409
|
};
|
|
409
410
|
stage: string;
|
|
411
|
+
matchStatus: import("./tournament.types").MatchStatus;
|
|
410
412
|
prediction: {
|
|
411
413
|
score: {
|
|
412
414
|
team1: number | null;
|
|
@@ -415,10 +417,9 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
415
417
|
succeeded: boolean | null;
|
|
416
418
|
} | null;
|
|
417
419
|
canPredict: boolean;
|
|
418
|
-
matchStatus: import("./tournament.types").MatchStatus;
|
|
419
420
|
endDate?: Date | null | undefined;
|
|
420
421
|
additionalTag?: string | undefined;
|
|
421
|
-
winnerId?: string |
|
|
422
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
422
423
|
startingDate?: Date | null | undefined;
|
|
423
424
|
}[];
|
|
424
425
|
startDate?: Date | null | undefined;
|
|
@@ -427,17 +428,17 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
427
428
|
documents: {
|
|
428
429
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
429
430
|
tag: string;
|
|
430
|
-
tournamentId: string |
|
|
431
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
431
432
|
matches: {
|
|
432
|
-
_id: string |
|
|
433
|
+
_id: string | mongoose.Types.ObjectId;
|
|
433
434
|
team1: {
|
|
434
435
|
name: string;
|
|
435
|
-
teamId: string |
|
|
436
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
436
437
|
picture?: string | undefined;
|
|
437
438
|
};
|
|
438
439
|
team2: {
|
|
439
440
|
name: string;
|
|
440
|
-
teamId: string |
|
|
441
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
441
442
|
picture?: string | undefined;
|
|
442
443
|
};
|
|
443
444
|
score: {
|
|
@@ -445,6 +446,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
445
446
|
team2: number | null;
|
|
446
447
|
};
|
|
447
448
|
stage: string;
|
|
449
|
+
matchStatus: import("./tournament.types").MatchStatus;
|
|
448
450
|
prediction: {
|
|
449
451
|
score: {
|
|
450
452
|
team1: number | null;
|
|
@@ -453,10 +455,9 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
453
455
|
succeeded: boolean | null;
|
|
454
456
|
} | null;
|
|
455
457
|
canPredict: boolean;
|
|
456
|
-
matchStatus: import("./tournament.types").MatchStatus;
|
|
457
458
|
endDate?: Date | null | undefined;
|
|
458
459
|
additionalTag?: string | undefined;
|
|
459
|
-
winnerId?: string |
|
|
460
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
460
461
|
startingDate?: Date | null | undefined;
|
|
461
462
|
}[];
|
|
462
463
|
startDate?: Date | null | undefined;
|
|
@@ -491,12 +492,12 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
491
492
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
492
493
|
add: import("@trpc/server").TRPCMutationProcedure<{
|
|
493
494
|
input: {
|
|
494
|
-
tournamentId: string |
|
|
495
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
495
496
|
matches: {
|
|
496
497
|
stage: string;
|
|
497
498
|
startingDate: string | Date;
|
|
498
|
-
team1Id: string |
|
|
499
|
-
team2Id: string |
|
|
499
|
+
team1Id: string | mongoose.Types.ObjectId;
|
|
500
|
+
team2Id: string | mongoose.Types.ObjectId;
|
|
500
501
|
endDate?: string | Date | undefined;
|
|
501
502
|
additionalTag?: string | undefined;
|
|
502
503
|
}[];
|
|
@@ -507,7 +508,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
507
508
|
data?: {
|
|
508
509
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
509
510
|
name: string;
|
|
510
|
-
_id?: string |
|
|
511
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
511
512
|
createdAt?: Date | null | undefined;
|
|
512
513
|
startDate?: Date | null | undefined;
|
|
513
514
|
endDate?: Date | null | undefined;
|
|
@@ -525,7 +526,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
525
526
|
documents: {
|
|
526
527
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
527
528
|
name: string;
|
|
528
|
-
_id?: string |
|
|
529
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
529
530
|
createdAt?: Date | null | undefined;
|
|
530
531
|
startDate?: Date | null | undefined;
|
|
531
532
|
endDate?: Date | null | undefined;
|
|
@@ -552,21 +553,21 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
552
553
|
}>;
|
|
553
554
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
554
555
|
input: {
|
|
555
|
-
tournamentId: string |
|
|
556
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
556
557
|
};
|
|
557
558
|
output: {
|
|
558
559
|
message: string;
|
|
559
560
|
success: boolean;
|
|
560
561
|
data?: {
|
|
561
|
-
_id: string |
|
|
562
|
+
_id: string | mongoose.Types.ObjectId;
|
|
562
563
|
team1: {
|
|
563
564
|
name: string;
|
|
564
|
-
teamId: string |
|
|
565
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
565
566
|
picture?: string | undefined;
|
|
566
567
|
};
|
|
567
568
|
team2: {
|
|
568
569
|
name: string;
|
|
569
|
-
teamId: string |
|
|
570
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
570
571
|
picture?: string | undefined;
|
|
571
572
|
};
|
|
572
573
|
score: {
|
|
@@ -576,7 +577,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
576
577
|
stage: string;
|
|
577
578
|
endDate?: Date | null | undefined;
|
|
578
579
|
additionalTag?: string | undefined;
|
|
579
|
-
winnerId?: string |
|
|
580
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
580
581
|
startingDate?: Date | null | undefined;
|
|
581
582
|
prediction?: {
|
|
582
583
|
score: {
|
|
@@ -587,15 +588,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
587
588
|
} | null | undefined;
|
|
588
589
|
}[] | {
|
|
589
590
|
documents: {
|
|
590
|
-
_id: string |
|
|
591
|
+
_id: string | mongoose.Types.ObjectId;
|
|
591
592
|
team1: {
|
|
592
593
|
name: string;
|
|
593
|
-
teamId: string |
|
|
594
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
594
595
|
picture?: string | undefined;
|
|
595
596
|
};
|
|
596
597
|
team2: {
|
|
597
598
|
name: string;
|
|
598
|
-
teamId: string |
|
|
599
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
599
600
|
picture?: string | undefined;
|
|
600
601
|
};
|
|
601
602
|
score: {
|
|
@@ -605,7 +606,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
605
606
|
stage: string;
|
|
606
607
|
endDate?: Date | null | undefined;
|
|
607
608
|
additionalTag?: string | undefined;
|
|
608
|
-
winnerId?: string |
|
|
609
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
609
610
|
startingDate?: Date | null | undefined;
|
|
610
611
|
prediction?: {
|
|
611
612
|
score: {
|
|
@@ -627,22 +628,22 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
627
628
|
}>;
|
|
628
629
|
start: import("@trpc/server").TRPCMutationProcedure<{
|
|
629
630
|
input: {
|
|
630
|
-
tournamentId: string |
|
|
631
|
-
matchId: string |
|
|
631
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
632
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
632
633
|
};
|
|
633
634
|
output: {
|
|
634
635
|
message: string;
|
|
635
636
|
success: boolean;
|
|
636
637
|
data?: {
|
|
637
|
-
_id: string |
|
|
638
|
+
_id: string | mongoose.Types.ObjectId;
|
|
638
639
|
team1: {
|
|
639
640
|
name: string;
|
|
640
|
-
teamId: string |
|
|
641
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
641
642
|
picture?: string | undefined;
|
|
642
643
|
};
|
|
643
644
|
team2: {
|
|
644
645
|
name: string;
|
|
645
|
-
teamId: string |
|
|
646
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
646
647
|
picture?: string | undefined;
|
|
647
648
|
};
|
|
648
649
|
score: {
|
|
@@ -652,7 +653,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
652
653
|
stage: string;
|
|
653
654
|
endDate?: Date | null | undefined;
|
|
654
655
|
additionalTag?: string | undefined;
|
|
655
|
-
winnerId?: string |
|
|
656
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
656
657
|
startingDate?: Date | null | undefined;
|
|
657
658
|
prediction?: {
|
|
658
659
|
score: {
|
|
@@ -663,15 +664,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
663
664
|
} | null | undefined;
|
|
664
665
|
} | {
|
|
665
666
|
documents: {
|
|
666
|
-
_id: string |
|
|
667
|
+
_id: string | mongoose.Types.ObjectId;
|
|
667
668
|
team1: {
|
|
668
669
|
name: string;
|
|
669
|
-
teamId: string |
|
|
670
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
670
671
|
picture?: string | undefined;
|
|
671
672
|
};
|
|
672
673
|
team2: {
|
|
673
674
|
name: string;
|
|
674
|
-
teamId: string |
|
|
675
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
675
676
|
picture?: string | undefined;
|
|
676
677
|
};
|
|
677
678
|
score: {
|
|
@@ -681,7 +682,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
681
682
|
stage: string;
|
|
682
683
|
endDate?: Date | null | undefined;
|
|
683
684
|
additionalTag?: string | undefined;
|
|
684
|
-
winnerId?: string |
|
|
685
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
685
686
|
startingDate?: Date | null | undefined;
|
|
686
687
|
prediction?: {
|
|
687
688
|
score: {
|
|
@@ -703,8 +704,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
703
704
|
}>;
|
|
704
705
|
end: import("@trpc/server").TRPCMutationProcedure<{
|
|
705
706
|
input: {
|
|
706
|
-
tournamentId: string |
|
|
707
|
-
matchId: string |
|
|
707
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
708
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
708
709
|
finalScore?: {
|
|
709
710
|
team1: number;
|
|
710
711
|
team2: number;
|
|
@@ -714,15 +715,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
714
715
|
message: string;
|
|
715
716
|
success: boolean;
|
|
716
717
|
data?: {
|
|
717
|
-
_id: string |
|
|
718
|
+
_id: string | mongoose.Types.ObjectId;
|
|
718
719
|
team1: {
|
|
719
720
|
name: string;
|
|
720
|
-
teamId: string |
|
|
721
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
721
722
|
picture?: string | undefined;
|
|
722
723
|
};
|
|
723
724
|
team2: {
|
|
724
725
|
name: string;
|
|
725
|
-
teamId: string |
|
|
726
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
726
727
|
picture?: string | undefined;
|
|
727
728
|
};
|
|
728
729
|
score: {
|
|
@@ -732,7 +733,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
732
733
|
stage: string;
|
|
733
734
|
endDate?: Date | null | undefined;
|
|
734
735
|
additionalTag?: string | undefined;
|
|
735
|
-
winnerId?: string |
|
|
736
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
736
737
|
startingDate?: Date | null | undefined;
|
|
737
738
|
prediction?: {
|
|
738
739
|
score: {
|
|
@@ -743,15 +744,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
743
744
|
} | null | undefined;
|
|
744
745
|
} | {
|
|
745
746
|
documents: {
|
|
746
|
-
_id: string |
|
|
747
|
+
_id: string | mongoose.Types.ObjectId;
|
|
747
748
|
team1: {
|
|
748
749
|
name: string;
|
|
749
|
-
teamId: string |
|
|
750
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
750
751
|
picture?: string | undefined;
|
|
751
752
|
};
|
|
752
753
|
team2: {
|
|
753
754
|
name: string;
|
|
754
|
-
teamId: string |
|
|
755
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
755
756
|
picture?: string | undefined;
|
|
756
757
|
};
|
|
757
758
|
score: {
|
|
@@ -761,7 +762,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
761
762
|
stage: string;
|
|
762
763
|
endDate?: Date | null | undefined;
|
|
763
764
|
additionalTag?: string | undefined;
|
|
764
|
-
winnerId?: string |
|
|
765
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
765
766
|
startingDate?: Date | null | undefined;
|
|
766
767
|
prediction?: {
|
|
767
768
|
score: {
|
|
@@ -783,8 +784,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
783
784
|
}>;
|
|
784
785
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
785
786
|
input: {
|
|
786
|
-
tournamentId: string |
|
|
787
|
-
matchId: string |
|
|
787
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
788
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
788
789
|
};
|
|
789
790
|
output: {
|
|
790
791
|
message: string;
|
|
@@ -792,7 +793,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
792
793
|
data?: {
|
|
793
794
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
794
795
|
name: string;
|
|
795
|
-
_id?: string |
|
|
796
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
796
797
|
createdAt?: Date | null | undefined;
|
|
797
798
|
startDate?: Date | null | undefined;
|
|
798
799
|
endDate?: Date | null | undefined;
|
|
@@ -810,7 +811,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
810
811
|
documents: {
|
|
811
812
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
812
813
|
name: string;
|
|
813
|
-
_id?: string |
|
|
814
|
+
_id?: string | mongoose.Types.ObjectId | undefined;
|
|
814
815
|
createdAt?: Date | null | undefined;
|
|
815
816
|
startDate?: Date | null | undefined;
|
|
816
817
|
endDate?: Date | null | undefined;
|
|
@@ -854,23 +855,25 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
854
855
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
855
856
|
join: import("@trpc/server").TRPCMutationProcedure<{
|
|
856
857
|
input: {
|
|
857
|
-
tournamentId: string |
|
|
858
|
-
teamId: string |
|
|
858
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
859
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
859
860
|
};
|
|
860
861
|
output: {
|
|
861
862
|
message: string;
|
|
862
863
|
success: boolean;
|
|
863
864
|
data?: {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
865
|
+
status: "joined" | "seen";
|
|
866
|
+
_id: string | mongoose.Types.ObjectId;
|
|
867
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
867
868
|
createdAt?: Date | null | undefined;
|
|
869
|
+
teamId?: string | mongoose.Types.ObjectId | undefined;
|
|
868
870
|
} | {
|
|
869
871
|
documents: {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
872
|
+
status: "joined" | "seen";
|
|
873
|
+
_id: string | mongoose.Types.ObjectId;
|
|
874
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
873
875
|
createdAt?: Date | null | undefined;
|
|
876
|
+
teamId?: string | mongoose.Types.ObjectId | undefined;
|
|
874
877
|
}[];
|
|
875
878
|
metadata?: {
|
|
876
879
|
page: number;
|
|
@@ -882,47 +885,68 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
882
885
|
};
|
|
883
886
|
meta: object;
|
|
884
887
|
}>;
|
|
888
|
+
markSeen: import("@trpc/server").TRPCMutationProcedure<{
|
|
889
|
+
input: {
|
|
890
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
891
|
+
};
|
|
892
|
+
output: {
|
|
893
|
+
message: string;
|
|
894
|
+
success: boolean;
|
|
895
|
+
data?: {
|
|
896
|
+
documents: null[];
|
|
897
|
+
metadata?: {
|
|
898
|
+
page: number;
|
|
899
|
+
size: number;
|
|
900
|
+
totalElements: number;
|
|
901
|
+
totalPages: number;
|
|
902
|
+
} | undefined;
|
|
903
|
+
} | null | undefined;
|
|
904
|
+
};
|
|
905
|
+
meta: object;
|
|
906
|
+
}>;
|
|
885
907
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
886
908
|
input: {
|
|
887
|
-
tournamentId: string |
|
|
909
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
888
910
|
};
|
|
889
911
|
output: {
|
|
890
912
|
message: string;
|
|
891
913
|
success: boolean;
|
|
892
914
|
data?: {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
915
|
+
status: "joined" | "seen";
|
|
916
|
+
_id: string | mongoose.Types.ObjectId;
|
|
917
|
+
userId: string | mongoose.Types.ObjectId;
|
|
918
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
897
919
|
createdAt?: Date | null | undefined;
|
|
898
920
|
updatedAt?: Date | null | undefined;
|
|
921
|
+
teamId?: string | mongoose.Types.ObjectId | undefined;
|
|
899
922
|
predictions?: {
|
|
900
|
-
_id: string |
|
|
901
|
-
matchId: string |
|
|
923
|
+
_id: string | mongoose.Types.ObjectId;
|
|
924
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
902
925
|
score: {
|
|
903
926
|
team1: number | null;
|
|
904
927
|
team2: number | null;
|
|
905
928
|
};
|
|
906
|
-
coupon?: string |
|
|
929
|
+
coupon?: string | mongoose.Types.ObjectId | undefined;
|
|
907
930
|
predictionTime?: Date | null | undefined;
|
|
908
931
|
succeeded?: boolean | null | undefined;
|
|
909
932
|
}[] | undefined;
|
|
910
933
|
}[] | {
|
|
911
934
|
documents: {
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
935
|
+
status: "joined" | "seen";
|
|
936
|
+
_id: string | mongoose.Types.ObjectId;
|
|
937
|
+
userId: string | mongoose.Types.ObjectId;
|
|
938
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
916
939
|
createdAt?: Date | null | undefined;
|
|
917
940
|
updatedAt?: Date | null | undefined;
|
|
941
|
+
teamId?: string | mongoose.Types.ObjectId | undefined;
|
|
918
942
|
predictions?: {
|
|
919
|
-
_id: string |
|
|
920
|
-
matchId: string |
|
|
943
|
+
_id: string | mongoose.Types.ObjectId;
|
|
944
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
921
945
|
score: {
|
|
922
946
|
team1: number | null;
|
|
923
947
|
team2: number | null;
|
|
924
948
|
};
|
|
925
|
-
coupon?: string |
|
|
949
|
+
coupon?: string | mongoose.Types.ObjectId | undefined;
|
|
926
950
|
predictionTime?: Date | null | undefined;
|
|
927
951
|
succeeded?: boolean | null | undefined;
|
|
928
952
|
}[] | undefined;
|
|
@@ -956,8 +980,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
956
980
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
957
981
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
958
982
|
input: {
|
|
959
|
-
tournamentId: string |
|
|
960
|
-
matchId: string |
|
|
983
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
984
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
961
985
|
score: {
|
|
962
986
|
team1: number;
|
|
963
987
|
team2: number;
|
|
@@ -967,16 +991,16 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
967
991
|
message: string;
|
|
968
992
|
success: boolean;
|
|
969
993
|
data?: {
|
|
970
|
-
_id: string |
|
|
971
|
-
matchId: string |
|
|
994
|
+
_id: string | mongoose.Types.ObjectId;
|
|
995
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
972
996
|
score: {
|
|
973
997
|
team1: number | null;
|
|
974
998
|
team2: number | null;
|
|
975
999
|
};
|
|
976
1000
|
} | {
|
|
977
1001
|
documents: {
|
|
978
|
-
_id: string |
|
|
979
|
-
matchId: string |
|
|
1002
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1003
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
980
1004
|
score: {
|
|
981
1005
|
team1: number | null;
|
|
982
1006
|
team2: number | null;
|
|
@@ -994,8 +1018,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
994
1018
|
}>;
|
|
995
1019
|
edit: import("@trpc/server").TRPCMutationProcedure<{
|
|
996
1020
|
input: {
|
|
997
|
-
tournamentId: string |
|
|
998
|
-
matchId: string |
|
|
1021
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
1022
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
999
1023
|
score: {
|
|
1000
1024
|
team1: number;
|
|
1001
1025
|
team2: number;
|
|
@@ -1005,16 +1029,16 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1005
1029
|
message: string;
|
|
1006
1030
|
success: boolean;
|
|
1007
1031
|
data?: {
|
|
1008
|
-
_id: string |
|
|
1009
|
-
matchId: string |
|
|
1032
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1033
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
1010
1034
|
score: {
|
|
1011
1035
|
team1: number | null;
|
|
1012
1036
|
team2: number | null;
|
|
1013
1037
|
};
|
|
1014
1038
|
} | {
|
|
1015
1039
|
documents: {
|
|
1016
|
-
_id: string |
|
|
1017
|
-
matchId: string |
|
|
1040
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1041
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
1018
1042
|
score: {
|
|
1019
1043
|
team1: number | null;
|
|
1020
1044
|
team2: number | null;
|
|
@@ -1032,15 +1056,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1032
1056
|
}>;
|
|
1033
1057
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
1034
1058
|
input: {
|
|
1035
|
-
tournamentId: string |
|
|
1036
|
-
matchId: string |
|
|
1059
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
1060
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
1037
1061
|
};
|
|
1038
1062
|
output: {
|
|
1039
1063
|
message: string;
|
|
1040
1064
|
success: boolean;
|
|
1041
1065
|
data?: {
|
|
1042
|
-
_id: string |
|
|
1043
|
-
matchId: string |
|
|
1066
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1067
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
1044
1068
|
score: {
|
|
1045
1069
|
team1: number | null;
|
|
1046
1070
|
team2: number | null;
|
|
@@ -1049,8 +1073,8 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1049
1073
|
succeeded?: boolean | null | undefined;
|
|
1050
1074
|
} | {
|
|
1051
1075
|
documents: ({
|
|
1052
|
-
_id: string |
|
|
1053
|
-
matchId: string |
|
|
1076
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1077
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
1054
1078
|
score: {
|
|
1055
1079
|
team1: number | null;
|
|
1056
1080
|
team2: number | null;
|
|
@@ -1087,7 +1111,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1087
1111
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1088
1112
|
getActiveByUser: import("@trpc/server").TRPCQueryProcedure<{
|
|
1089
1113
|
input: {
|
|
1090
|
-
userId: string |
|
|
1114
|
+
userId: string | mongoose.Types.ObjectId;
|
|
1091
1115
|
};
|
|
1092
1116
|
output: {
|
|
1093
1117
|
message: string;
|
|
@@ -1191,26 +1215,26 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1191
1215
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1192
1216
|
updateMatchScore: import("@trpc/server").TRPCMutationProcedure<{
|
|
1193
1217
|
input: {
|
|
1194
|
-
tournamentId: string |
|
|
1195
|
-
matchId: string |
|
|
1218
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
1219
|
+
matchId: string | mongoose.Types.ObjectId;
|
|
1196
1220
|
teams: {
|
|
1197
1221
|
score: number;
|
|
1198
|
-
teamId: string |
|
|
1222
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
1199
1223
|
}[];
|
|
1200
1224
|
};
|
|
1201
1225
|
output: {
|
|
1202
1226
|
message: string;
|
|
1203
1227
|
success: boolean;
|
|
1204
1228
|
data?: {
|
|
1205
|
-
_id: string |
|
|
1229
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1206
1230
|
team1: {
|
|
1207
1231
|
name: string;
|
|
1208
|
-
teamId: string |
|
|
1232
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
1209
1233
|
picture?: string | undefined;
|
|
1210
1234
|
};
|
|
1211
1235
|
team2: {
|
|
1212
1236
|
name: string;
|
|
1213
|
-
teamId: string |
|
|
1237
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
1214
1238
|
picture?: string | undefined;
|
|
1215
1239
|
};
|
|
1216
1240
|
score: {
|
|
@@ -1220,7 +1244,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1220
1244
|
stage: string;
|
|
1221
1245
|
endDate?: Date | null | undefined;
|
|
1222
1246
|
additionalTag?: string | undefined;
|
|
1223
|
-
winnerId?: string |
|
|
1247
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
1224
1248
|
startingDate?: Date | null | undefined;
|
|
1225
1249
|
prediction?: {
|
|
1226
1250
|
score: {
|
|
@@ -1231,15 +1255,15 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1231
1255
|
} | null | undefined;
|
|
1232
1256
|
} | {
|
|
1233
1257
|
documents: {
|
|
1234
|
-
_id: string |
|
|
1258
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1235
1259
|
team1: {
|
|
1236
1260
|
name: string;
|
|
1237
|
-
teamId: string |
|
|
1261
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
1238
1262
|
picture?: string | undefined;
|
|
1239
1263
|
};
|
|
1240
1264
|
team2: {
|
|
1241
1265
|
name: string;
|
|
1242
|
-
teamId: string |
|
|
1266
|
+
teamId: string | mongoose.Types.ObjectId;
|
|
1243
1267
|
picture?: string | undefined;
|
|
1244
1268
|
};
|
|
1245
1269
|
score: {
|
|
@@ -1249,7 +1273,7 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1249
1273
|
stage: string;
|
|
1250
1274
|
endDate?: Date | null | undefined;
|
|
1251
1275
|
additionalTag?: string | undefined;
|
|
1252
|
-
winnerId?: string |
|
|
1276
|
+
winnerId?: string | mongoose.Types.ObjectId | null | undefined;
|
|
1253
1277
|
startingDate?: Date | null | undefined;
|
|
1254
1278
|
prediction?: {
|
|
1255
1279
|
score: {
|
|
@@ -1278,12 +1302,14 @@ export declare const tournamentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1278
1302
|
data?: {
|
|
1279
1303
|
name: string;
|
|
1280
1304
|
tag: string;
|
|
1305
|
+
userStatus: import("./tournament.types").TournamentParticipantStatus;
|
|
1281
1306
|
startDate?: Date | null | undefined;
|
|
1282
1307
|
endDate?: Date | null | undefined;
|
|
1283
1308
|
} | {
|
|
1284
1309
|
documents: ({
|
|
1285
1310
|
name: string;
|
|
1286
1311
|
tag: string;
|
|
1312
|
+
userStatus: import("./tournament.types").TournamentParticipantStatus;
|
|
1287
1313
|
startDate?: Date | null | undefined;
|
|
1288
1314
|
endDate?: Date | null | undefined;
|
|
1289
1315
|
} | null)[];
|