@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 +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":"AAKA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAY9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkB3B,CAAC"}
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.tournamentRouter = void 0;
|
|
4
4
|
const trpc_1 = require("@lyxa.ai/core/dist/libraries/trpc");
|
|
5
|
+
const auth_1 = require("@lyxa.ai/core/dist/libraries/auth");
|
|
6
|
+
const auth_2 = require("@lyxa.ai/core/dist/libraries/trpc/middlewares/auth");
|
|
5
7
|
const error_handler_1 = require("@lyxa.ai/core/dist/utilities/error-handler");
|
|
6
8
|
const response_1 = require("@lyxa.ai/core/dist/utilities/response");
|
|
9
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
7
10
|
const config_router_1 = require("./config/config.router");
|
|
8
11
|
const team_router_1 = require("./team/team.router");
|
|
9
12
|
const match_router_1 = require("./match/match.router");
|
|
@@ -23,8 +26,10 @@ exports.tournamentRouter = (0, trpc_1.createTRPCRouter)({
|
|
|
23
26
|
statistics: statistics_router_1.statisticsRouter,
|
|
24
27
|
schedule: schedule_router_1.scheduleRouter,
|
|
25
28
|
score: score_router_1.scoreRouter,
|
|
26
|
-
getActive:
|
|
27
|
-
|
|
29
|
+
getActive: (0, auth_2.createAuthenticatedProcedure)({ entityTypes: [auth_1.AuthEntityType.USER] })
|
|
30
|
+
.output(tournament_validation_1.ActiveTournamentResponseSchema)
|
|
31
|
+
.query(({ ctx }) => error_handler_1.ErrorHandler.wrapAsync(async () => {
|
|
32
|
+
const result = await tournament_service_1.tournamentService.getActive(new typegoose_1.mongoose.Types.ObjectId(ctx.entity?.id));
|
|
28
33
|
return (0, response_1.response)('Active tournament fetched successfully', result);
|
|
29
34
|
})),
|
|
30
35
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.router.js","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"tournament.router.js","sourceRoot":"/","sources":["modules/tournament/tournament.router.ts"],"names":[],"mappings":";;;AAAA,4DAAmE;AACnE,4DAAiE;AACjE,6EAAgG;AAChG,8EAAwE;AACxE,oEAA+D;AAC/D,oDAA8C;AAC9C,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,IAAA,mCAA4B,EAAC,EAAE,WAAW,EAAE,CAAC,qBAAc,CAAC,IAAI,CAAC,EAAE,CAAC;SAC7E,MAAM,CAAC,sDAA8B,CAAC;SACtC,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAClB,4BAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACjC,MAAM,MAAM,GAAG,MAAM,sCAAO,CAAC,SAAS,CAAC,IAAI,oBAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;QACpF,OAAO,IAAA,mBAAQ,EAAC,wCAAwC,EAAE,MAAM,CAAC,CAAC;IACnE,CAAC,CAAC,CACF;CACF,CAAC,CAAC","sourcesContent":["import {createTRPCRouter} from '@lyxa.ai/core/dist/libraries/trpc';\nimport {AuthEntityType} from '@lyxa.ai/core/dist/libraries/auth';\nimport {createAuthenticatedProcedure} from '@lyxa.ai/core/dist/libraries/trpc/middlewares/auth';\nimport {ErrorHandler} from '@lyxa.ai/core/dist/utilities/error-handler';\nimport {response} from '@lyxa.ai/core/dist/utilities/response';\nimport {mongoose} from '@typegoose/typegoose';\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: createAuthenticatedProcedure({ entityTypes: [AuthEntityType.USER] })\n\t\t.output(ActiveTournamentResponseSchema)\n\t\t.query(({ ctx }) =>\n\t\t\tErrorHandler.wrapAsync(async () => {\n\t\t\t\tconst result = await service.getActive(new mongoose.Types.ObjectId(ctx.entity?.id));\n\t\t\t\treturn response('Active tournament fetched successfully', result);\n\t\t\t})\n\t\t),\n});\n"]}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { mongoose } from '@typegoose/typegoose';
|
|
1
2
|
import { ActiveTournamentOutputDTO } from './tournament.validation';
|
|
2
3
|
export declare class TournamentService {
|
|
3
4
|
private repository;
|
|
5
|
+
private participantRepository;
|
|
4
6
|
constructor();
|
|
5
|
-
getActive(): Promise<ActiveTournamentOutputDTO | null>;
|
|
7
|
+
getActive(userId: mongoose.Types.ObjectId): Promise<ActiveTournamentOutputDTO | null>;
|
|
6
8
|
}
|
|
7
9
|
export declare const tournamentService: TournamentService;
|
|
8
10
|
//# sourceMappingURL=tournament.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.service.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament.service.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAKpE,qBACa,iBAAiB;IAC7B,OAAO,CAAC,UAAU,CAA6B;IAC/C,OAAO,CAAC,qBAAqB,CAAkC;;IAOlD,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC;CAelG;AAED,eAAO,MAAM,iBAAiB,mBAAmC,CAAC"}
|
|
@@ -45,13 +45,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
45
45
|
exports.tournamentService = exports.TournamentService = void 0;
|
|
46
46
|
const typedi_1 = __importStar(require("typedi"));
|
|
47
47
|
const config_repository_1 = require("./config/config.repository");
|
|
48
|
+
const participant_repository_1 = require("./participant/participant.repository");
|
|
49
|
+
const tournament_types_1 = require("./tournament.types");
|
|
48
50
|
let TournamentService = class TournamentService {
|
|
49
51
|
repository;
|
|
52
|
+
participantRepository;
|
|
50
53
|
constructor() {
|
|
51
54
|
this.repository = typedi_1.default.get(config_repository_1.TournamentConfigRepository);
|
|
55
|
+
this.participantRepository = typedi_1.default.get(participant_repository_1.TournamentParticipantRepository);
|
|
52
56
|
}
|
|
53
|
-
async getActive() {
|
|
54
|
-
|
|
57
|
+
async getActive(userId) {
|
|
58
|
+
const tournament = await this.repository.findActiveFull();
|
|
59
|
+
if (!tournament)
|
|
60
|
+
return null;
|
|
61
|
+
const participant = await this.participantRepository.findByUserAndTournament(userId, tournament._id);
|
|
62
|
+
const userStatus = !participant ? tournament_types_1.TournamentParticipantStatus.NOT_SEEN : (participant.status ?? tournament_types_1.TournamentParticipantStatus.JOINED);
|
|
63
|
+
return {
|
|
64
|
+
name: tournament.name,
|
|
65
|
+
tag: tournament.tag,
|
|
66
|
+
startDate: tournament.startDate ?? null,
|
|
67
|
+
endDate: tournament.endDate ?? null,
|
|
68
|
+
userStatus: userStatus,
|
|
69
|
+
};
|
|
55
70
|
}
|
|
56
71
|
};
|
|
57
72
|
exports.TournamentService = TournamentService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.service.js","sourceRoot":"/","sources":["modules/tournament/tournament.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA4C;
|
|
1
|
+
{"version":3,"file":"tournament.service.js","sourceRoot":"/","sources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cesContent":["import Container, { Service } from 'typedi';\nimport { mongoose } from '@typegoose/typegoose';\nimport { ActiveTournamentOutputDTO } from './tournament.validation';\nimport { TournamentConfigRepository } from './config/config.repository';\nimport { TournamentParticipantRepository } from './participant/participant.repository';\nimport { TournamentParticipantStatus } from './tournament.types';\n\n@Service()\nexport class TournamentService {\n\tprivate repository: TournamentConfigRepository;\n\tprivate participantRepository: TournamentParticipantRepository;\n\n\tconstructor() {\n\t\tthis.repository = Container.get(TournamentConfigRepository);\n\t\tthis.participantRepository = Container.get(TournamentParticipantRepository);\n\t}\n\n\tpublic async getActive(userId: mongoose.Types.ObjectId): Promise<ActiveTournamentOutputDTO | null> {\n\t\tconst tournament = await this.repository.findActiveFull();\n\t\tif (!tournament) return null;\n\n\t\tconst participant = await this.participantRepository.findByUserAndTournament(userId, tournament._id);\n\t\tconst userStatus = !participant ? TournamentParticipantStatus.NOT_SEEN : (participant.status ?? TournamentParticipantStatus.JOINED);\n\n\t\treturn {\n\t\t\tname: tournament.name,\n\t\t\ttag: tournament.tag,\n\t\t\tstartDate: tournament.startDate ?? null,\n\t\t\tendDate: tournament.endDate ?? null,\n\t\t\tuserStatus: userStatus as ActiveTournamentOutputDTO['userStatus'],\n\t\t};\n\t}\n}\n\nexport const tournamentService = Container.get(TournamentService);\n"]}
|
|
@@ -1 +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"}
|
|
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;AAED,oBAAY,2BAA2B;IACnC,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,QAAQ,aAAa;CACxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MatchStatus = exports.TournamentTag = void 0;
|
|
3
|
+
exports.TournamentParticipantStatus = exports.MatchStatus = exports.TournamentTag = void 0;
|
|
4
4
|
var TournamentTag;
|
|
5
5
|
(function (TournamentTag) {
|
|
6
6
|
TournamentTag["FOOTBALL_WORLD_CUP"] = "world-cup";
|
|
@@ -11,4 +11,10 @@ var MatchStatus;
|
|
|
11
11
|
MatchStatus["STARTED"] = "started";
|
|
12
12
|
MatchStatus["ENDED"] = "ended";
|
|
13
13
|
})(MatchStatus || (exports.MatchStatus = MatchStatus = {}));
|
|
14
|
+
var TournamentParticipantStatus;
|
|
15
|
+
(function (TournamentParticipantStatus) {
|
|
16
|
+
TournamentParticipantStatus["JOINED"] = "joined";
|
|
17
|
+
TournamentParticipantStatus["SEEN"] = "seen";
|
|
18
|
+
TournamentParticipantStatus["NOT_SEEN"] = "not_seen";
|
|
19
|
+
})(TournamentParticipantStatus || (exports.TournamentParticipantStatus = TournamentParticipantStatus = {}));
|
|
14
20
|
//# sourceMappingURL=tournament.types.js.map
|
|
@@ -1 +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"]}
|
|
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;AAED,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACnC,gDAAiB,CAAA;IACjB,4CAAa,CAAA;IACb,oDAAqB,CAAA;AACzB,CAAC,EAJW,2BAA2B,2CAA3B,2BAA2B,QAItC","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\nexport enum TournamentParticipantStatus {\n JOINED = 'joined',\n SEEN = 'seen',\n NOT_SEEN = 'not_seen',\n}\n"]}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
+
import { TournamentParticipantStatus } from './tournament.types';
|
|
4
|
+
export declare const UserTournamentStatus: z.ZodNativeEnum<typeof TournamentParticipantStatus>;
|
|
3
5
|
export declare const ActiveTournamentSchema: z.ZodObject<{
|
|
4
6
|
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
5
7
|
tag: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
6
8
|
startDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7
9
|
endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
+
userStatus: z.ZodNativeEnum<typeof TournamentParticipantStatus>;
|
|
8
11
|
}, "strip", z.ZodTypeAny, {
|
|
9
12
|
name: string;
|
|
10
13
|
tag: string;
|
|
14
|
+
userStatus: TournamentParticipantStatus;
|
|
11
15
|
startDate?: Date | null | undefined;
|
|
12
16
|
endDate?: Date | null | undefined;
|
|
13
17
|
}, {
|
|
14
18
|
name: string;
|
|
15
19
|
tag: string;
|
|
20
|
+
userStatus: TournamentParticipantStatus;
|
|
16
21
|
startDate?: Date | null | undefined;
|
|
17
22
|
endDate?: Date | null | undefined;
|
|
18
23
|
}>;
|
|
@@ -39,11 +44,13 @@ export declare const ActiveTournamentResponseSchema: z.ZodObject<{
|
|
|
39
44
|
documents: z.ZodArray<z.ZodType<{
|
|
40
45
|
name: string;
|
|
41
46
|
tag: string;
|
|
47
|
+
userStatus: TournamentParticipantStatus;
|
|
42
48
|
startDate?: Date | null | undefined;
|
|
43
49
|
endDate?: Date | null | undefined;
|
|
44
50
|
} | null, z.ZodTypeDef, {
|
|
45
51
|
name: string;
|
|
46
52
|
tag: string;
|
|
53
|
+
userStatus: TournamentParticipantStatus;
|
|
47
54
|
startDate?: Date | null | undefined;
|
|
48
55
|
endDate?: Date | null | undefined;
|
|
49
56
|
} | null>, "many">;
|
|
@@ -51,6 +58,7 @@ export declare const ActiveTournamentResponseSchema: z.ZodObject<{
|
|
|
51
58
|
documents: ({
|
|
52
59
|
name: string;
|
|
53
60
|
tag: string;
|
|
61
|
+
userStatus: TournamentParticipantStatus;
|
|
54
62
|
startDate?: Date | null | undefined;
|
|
55
63
|
endDate?: Date | null | undefined;
|
|
56
64
|
} | null)[];
|
|
@@ -64,6 +72,7 @@ export declare const ActiveTournamentResponseSchema: z.ZodObject<{
|
|
|
64
72
|
documents: ({
|
|
65
73
|
name: string;
|
|
66
74
|
tag: string;
|
|
75
|
+
userStatus: TournamentParticipantStatus;
|
|
67
76
|
startDate?: Date | null | undefined;
|
|
68
77
|
endDate?: Date | null | undefined;
|
|
69
78
|
} | null)[];
|
|
@@ -76,11 +85,13 @@ export declare const ActiveTournamentResponseSchema: z.ZodObject<{
|
|
|
76
85
|
}>, z.ZodType<{
|
|
77
86
|
name: string;
|
|
78
87
|
tag: string;
|
|
88
|
+
userStatus: TournamentParticipantStatus;
|
|
79
89
|
startDate?: Date | null | undefined;
|
|
80
90
|
endDate?: Date | null | undefined;
|
|
81
91
|
} | null, z.ZodTypeDef, {
|
|
82
92
|
name: string;
|
|
83
93
|
tag: string;
|
|
94
|
+
userStatus: TournamentParticipantStatus;
|
|
84
95
|
startDate?: Date | null | undefined;
|
|
85
96
|
endDate?: Date | null | undefined;
|
|
86
97
|
} | null>]>>;
|
|
@@ -90,12 +101,14 @@ export declare const ActiveTournamentResponseSchema: z.ZodObject<{
|
|
|
90
101
|
data?: {
|
|
91
102
|
name: string;
|
|
92
103
|
tag: string;
|
|
104
|
+
userStatus: TournamentParticipantStatus;
|
|
93
105
|
startDate?: Date | null | undefined;
|
|
94
106
|
endDate?: Date | null | undefined;
|
|
95
107
|
} | {
|
|
96
108
|
documents: ({
|
|
97
109
|
name: string;
|
|
98
110
|
tag: string;
|
|
111
|
+
userStatus: TournamentParticipantStatus;
|
|
99
112
|
startDate?: Date | null | undefined;
|
|
100
113
|
endDate?: Date | null | undefined;
|
|
101
114
|
} | null)[];
|
|
@@ -112,12 +125,14 @@ export declare const ActiveTournamentResponseSchema: z.ZodObject<{
|
|
|
112
125
|
data?: {
|
|
113
126
|
name: string;
|
|
114
127
|
tag: string;
|
|
128
|
+
userStatus: TournamentParticipantStatus;
|
|
115
129
|
startDate?: Date | null | undefined;
|
|
116
130
|
endDate?: Date | null | undefined;
|
|
117
131
|
} | {
|
|
118
132
|
documents: ({
|
|
119
133
|
name: string;
|
|
120
134
|
tag: string;
|
|
135
|
+
userStatus: TournamentParticipantStatus;
|
|
121
136
|
startDate?: Date | null | undefined;
|
|
122
137
|
endDate?: Date | null | undefined;
|
|
123
138
|
} | null)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament.validation.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,GAAG,EAAiB,MAAM,2DAA2D,CAAC;AAE/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEjE,eAAO,MAAM,oBAAoB,qDAA4C,CAAC;AAE9E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0D,CAAC;AAEtG,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActiveTournamentResponseSchema = exports.ActiveTournamentSchema = void 0;
|
|
3
|
+
exports.ActiveTournamentResponseSchema = exports.ActiveTournamentSchema = exports.UserTournamentStatus = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const global_validation_1 = require("@lyxa.ai/core/dist/utilities/validation/global-validation");
|
|
6
6
|
const validation_1 = require("@lyxa.ai/core/dist/utilities/validation");
|
|
7
|
+
const tournament_types_1 = require("./tournament.types");
|
|
8
|
+
exports.UserTournamentStatus = zod_1.z.nativeEnum(tournament_types_1.TournamentParticipantStatus);
|
|
7
9
|
exports.ActiveTournamentSchema = zod_1.z.object({
|
|
8
10
|
name: global_validation_1.ZodValidation.string('Tournament name'),
|
|
9
11
|
tag: global_validation_1.ZodValidation.string('Tournament tag'),
|
|
10
12
|
startDate: zod_1.z.date().nullable().optional(),
|
|
11
13
|
endDate: zod_1.z.date().nullable().optional(),
|
|
14
|
+
userStatus: exports.UserTournamentStatus,
|
|
12
15
|
});
|
|
13
16
|
exports.ActiveTournamentResponseSchema = (0, validation_1.createResponseSchema)(exports.ActiveTournamentSchema.nullable());
|
|
14
17
|
//# sourceMappingURL=tournament.validation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.validation.js","sourceRoot":"/","sources":["modules/tournament/tournament.validation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAA+F;AAC/F,wEAA+E;
|
|
1
|
+
{"version":3,"file":"tournament.validation.js","sourceRoot":"/","sources":["modules/tournament/tournament.validation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAA+F;AAC/F,wEAA+E;AAC/E,yDAAiE;AAEpD,QAAA,oBAAoB,GAAG,OAAC,CAAC,UAAU,CAAC,8CAA2B,CAAC,CAAC;AAEjE,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,iCAAa,CAAC,MAAM,CAAC,iBAAiB,CAAC;IAC7C,GAAG,EAAE,iCAAa,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAC3C,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,4BAAoB;CAChC,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,IAAA,iCAAoB,EAAC,8BAAsB,CAAC,QAAQ,EAAE,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { DTO, ZodValidation } from '@lyxa.ai/core/dist/utilities/validation/global-validation';\nimport { createResponseSchema } from '@lyxa.ai/core/dist/utilities/validation';\nimport { TournamentParticipantStatus } from './tournament.types';\n\nexport const UserTournamentStatus = z.nativeEnum(TournamentParticipantStatus);\n\nexport const ActiveTournamentSchema = z.object({\n\tname: ZodValidation.string('Tournament name'),\n\ttag: ZodValidation.string('Tournament tag'),\n\tstartDate: z.date().nullable().optional(),\n\tendDate: z.date().nullable().optional(),\n\tuserStatus: UserTournamentStatus,\n});\n\nexport const ActiveTournamentResponseSchema = createResponseSchema(ActiveTournamentSchema.nullable());\n\nexport type ActiveTournamentOutputDTO = DTO<typeof ActiveTournamentSchema>;\n"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8339,6 +8339,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8339
8339
|
team2: number | null;
|
|
8340
8340
|
};
|
|
8341
8341
|
stage: string;
|
|
8342
|
+
matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
|
|
8342
8343
|
prediction: {
|
|
8343
8344
|
score: {
|
|
8344
8345
|
team1: number | null;
|
|
@@ -8347,7 +8348,6 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8347
8348
|
succeeded: boolean | null;
|
|
8348
8349
|
} | null;
|
|
8349
8350
|
canPredict: boolean;
|
|
8350
|
-
matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
|
|
8351
8351
|
endDate?: Date | null | undefined;
|
|
8352
8352
|
additionalTag?: string | undefined;
|
|
8353
8353
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -8377,6 +8377,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8377
8377
|
team2: number | null;
|
|
8378
8378
|
};
|
|
8379
8379
|
stage: string;
|
|
8380
|
+
matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
|
|
8380
8381
|
prediction: {
|
|
8381
8382
|
score: {
|
|
8382
8383
|
team1: number | null;
|
|
@@ -8385,7 +8386,6 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8385
8386
|
succeeded: boolean | null;
|
|
8386
8387
|
} | null;
|
|
8387
8388
|
canPredict: boolean;
|
|
8388
|
-
matchStatus: import("./modules/tournament/tournament.types").MatchStatus;
|
|
8389
8389
|
endDate?: Date | null | undefined;
|
|
8390
8390
|
additionalTag?: string | undefined;
|
|
8391
8391
|
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -8793,16 +8793,18 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8793
8793
|
message: string;
|
|
8794
8794
|
success: boolean;
|
|
8795
8795
|
data?: {
|
|
8796
|
+
status: "joined" | "seen";
|
|
8796
8797
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8797
8798
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8798
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8799
8799
|
createdAt?: Date | null | undefined;
|
|
8800
|
+
teamId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8800
8801
|
} | {
|
|
8801
8802
|
documents: {
|
|
8803
|
+
status: "joined" | "seen";
|
|
8802
8804
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8803
8805
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8804
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8805
8806
|
createdAt?: Date | null | undefined;
|
|
8807
|
+
teamId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8806
8808
|
}[];
|
|
8807
8809
|
metadata?: {
|
|
8808
8810
|
page: number;
|
|
@@ -8814,6 +8816,25 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8814
8816
|
};
|
|
8815
8817
|
meta: object;
|
|
8816
8818
|
}>;
|
|
8819
|
+
markSeen: import("@trpc/server").TRPCMutationProcedure<{
|
|
8820
|
+
input: {
|
|
8821
|
+
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8822
|
+
};
|
|
8823
|
+
output: {
|
|
8824
|
+
message: string;
|
|
8825
|
+
success: boolean;
|
|
8826
|
+
data?: {
|
|
8827
|
+
documents: null[];
|
|
8828
|
+
metadata?: {
|
|
8829
|
+
page: number;
|
|
8830
|
+
size: number;
|
|
8831
|
+
totalElements: number;
|
|
8832
|
+
totalPages: number;
|
|
8833
|
+
} | undefined;
|
|
8834
|
+
} | null | undefined;
|
|
8835
|
+
};
|
|
8836
|
+
meta: object;
|
|
8837
|
+
}>;
|
|
8817
8838
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
8818
8839
|
input: {
|
|
8819
8840
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
@@ -8822,12 +8843,13 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8822
8843
|
message: string;
|
|
8823
8844
|
success: boolean;
|
|
8824
8845
|
data?: {
|
|
8846
|
+
status: "joined" | "seen";
|
|
8825
8847
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8826
8848
|
userId: string | import("mongoose").Types.ObjectId;
|
|
8827
8849
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8828
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8829
8850
|
createdAt?: Date | null | undefined;
|
|
8830
8851
|
updatedAt?: Date | null | undefined;
|
|
8852
|
+
teamId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8831
8853
|
predictions?: {
|
|
8832
8854
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8833
8855
|
matchId: string | import("mongoose").Types.ObjectId;
|
|
@@ -8841,12 +8863,13 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8841
8863
|
}[] | undefined;
|
|
8842
8864
|
}[] | {
|
|
8843
8865
|
documents: {
|
|
8866
|
+
status: "joined" | "seen";
|
|
8844
8867
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8845
8868
|
userId: string | import("mongoose").Types.ObjectId;
|
|
8846
8869
|
tournamentId: string | import("mongoose").Types.ObjectId;
|
|
8847
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
8848
8870
|
createdAt?: Date | null | undefined;
|
|
8849
8871
|
updatedAt?: Date | null | undefined;
|
|
8872
|
+
teamId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
8850
8873
|
predictions?: {
|
|
8851
8874
|
_id: string | import("mongoose").Types.ObjectId;
|
|
8852
8875
|
matchId: string | import("mongoose").Types.ObjectId;
|
|
@@ -9210,12 +9233,14 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
9210
9233
|
data?: {
|
|
9211
9234
|
name: string;
|
|
9212
9235
|
tag: string;
|
|
9236
|
+
userStatus: import("./modules/tournament/tournament.types").TournamentParticipantStatus;
|
|
9213
9237
|
startDate?: Date | null | undefined;
|
|
9214
9238
|
endDate?: Date | null | undefined;
|
|
9215
9239
|
} | {
|
|
9216
9240
|
documents: ({
|
|
9217
9241
|
name: string;
|
|
9218
9242
|
tag: string;
|
|
9243
|
+
userStatus: import("./modules/tournament/tournament.types").TournamentParticipantStatus;
|
|
9219
9244
|
startDate?: Date | null | undefined;
|
|
9220
9245
|
endDate?: Date | null | undefined;
|
|
9221
9246
|
} | null)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAY2C,CAAC;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAH3E,CAAC;AAuCH,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC"}
|
|
@@ -8,6 +8,8 @@ export declare class TournamentParticipantRepository {
|
|
|
8
8
|
findByUserAndTournament(userId: mongoose.Types.ObjectId, tournamentId: mongoose.Types.ObjectId): Promise<ParticipantModelType | null>;
|
|
9
9
|
findByTournament(tournamentId: mongoose.Types.ObjectId): Promise<ParticipantModelType[]>;
|
|
10
10
|
findByUser(userId: mongoose.Types.ObjectId): Promise<ParticipantModelType | null>;
|
|
11
|
+
updateToJoined(userId: mongoose.Types.ObjectId, tournamentId: mongoose.Types.ObjectId, teamId: mongoose.Types.ObjectId): Promise<ParticipantModelType | null>;
|
|
12
|
+
upsertStatus(userId: mongoose.Types.ObjectId, tournamentId: mongoose.Types.ObjectId, status: string): Promise<void>;
|
|
11
13
|
}
|
|
12
14
|
export declare const tournamentParticipantRepository: TournamentParticipantRepository;
|
|
13
15
|
//# sourceMappingURL=participant.repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"participant.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACH,qBAAqB,IAAI,oBAAoB,EAEhD,MAAM,2CAA2C,CAAC;AAEnD,qBACa,+BAA+B;IACxC,OAAO,CAAC,gBAAgB,CAAoC;;IAMtD,yBAAyB,CAC3B,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GACtC,OAAO,CAAC,OAAO,CAAC;IAIb,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAKpD,uBAAuB,CACzB,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GACtC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAIjC,gBAAgB,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAIxF,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"participant.repository.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACH,qBAAqB,IAAI,oBAAoB,EAEhD,MAAM,2CAA2C,CAAC;AAEnD,qBACa,+BAA+B;IACxC,OAAO,CAAC,gBAAgB,CAAoC;;IAMtD,yBAAyB,CAC3B,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GACtC,OAAO,CAAC,OAAO,CAAC;IAIb,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAKpD,uBAAuB,CACzB,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GACtC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAIjC,gBAAgB,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAIxF,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAOjF,cAAc,CAChB,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAChC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAMjC,YAAY,CACd,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACrC,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;CAOnB;AAED,eAAO,MAAM,+BAA+B,iCAAiD,CAAC"}
|
|
@@ -24,16 +24,18 @@ export declare const participantRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
24
24
|
message: string;
|
|
25
25
|
success: boolean;
|
|
26
26
|
data?: {
|
|
27
|
+
status: "joined" | "seen";
|
|
27
28
|
_id: string | mongoose.Types.ObjectId;
|
|
28
29
|
tournamentId: string | mongoose.Types.ObjectId;
|
|
29
|
-
teamId: string | mongoose.Types.ObjectId;
|
|
30
30
|
createdAt?: Date | null | undefined;
|
|
31
|
+
teamId?: string | mongoose.Types.ObjectId | undefined;
|
|
31
32
|
} | {
|
|
32
33
|
documents: {
|
|
34
|
+
status: "joined" | "seen";
|
|
33
35
|
_id: string | mongoose.Types.ObjectId;
|
|
34
36
|
tournamentId: string | mongoose.Types.ObjectId;
|
|
35
|
-
teamId: string | mongoose.Types.ObjectId;
|
|
36
37
|
createdAt?: Date | null | undefined;
|
|
38
|
+
teamId?: string | mongoose.Types.ObjectId | undefined;
|
|
37
39
|
}[];
|
|
38
40
|
metadata?: {
|
|
39
41
|
page: number;
|
|
@@ -45,6 +47,25 @@ export declare const participantRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
45
47
|
};
|
|
46
48
|
meta: object;
|
|
47
49
|
}>;
|
|
50
|
+
markSeen: import("@trpc/server").TRPCMutationProcedure<{
|
|
51
|
+
input: {
|
|
52
|
+
tournamentId: string | mongoose.Types.ObjectId;
|
|
53
|
+
};
|
|
54
|
+
output: {
|
|
55
|
+
message: string;
|
|
56
|
+
success: boolean;
|
|
57
|
+
data?: {
|
|
58
|
+
documents: null[];
|
|
59
|
+
metadata?: {
|
|
60
|
+
page: number;
|
|
61
|
+
size: number;
|
|
62
|
+
totalElements: number;
|
|
63
|
+
totalPages: number;
|
|
64
|
+
} | undefined;
|
|
65
|
+
} | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
meta: object;
|
|
68
|
+
}>;
|
|
48
69
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
49
70
|
input: {
|
|
50
71
|
tournamentId: string | mongoose.Types.ObjectId;
|
|
@@ -53,12 +74,13 @@ export declare const participantRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
53
74
|
message: string;
|
|
54
75
|
success: boolean;
|
|
55
76
|
data?: {
|
|
77
|
+
status: "joined" | "seen";
|
|
56
78
|
_id: string | mongoose.Types.ObjectId;
|
|
57
79
|
userId: string | mongoose.Types.ObjectId;
|
|
58
80
|
tournamentId: string | mongoose.Types.ObjectId;
|
|
59
|
-
teamId: string | mongoose.Types.ObjectId;
|
|
60
81
|
createdAt?: Date | null | undefined;
|
|
61
82
|
updatedAt?: Date | null | undefined;
|
|
83
|
+
teamId?: string | mongoose.Types.ObjectId | undefined;
|
|
62
84
|
predictions?: {
|
|
63
85
|
_id: string | mongoose.Types.ObjectId;
|
|
64
86
|
matchId: string | mongoose.Types.ObjectId;
|
|
@@ -72,12 +94,13 @@ export declare const participantRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
72
94
|
}[] | undefined;
|
|
73
95
|
}[] | {
|
|
74
96
|
documents: {
|
|
97
|
+
status: "joined" | "seen";
|
|
75
98
|
_id: string | mongoose.Types.ObjectId;
|
|
76
99
|
userId: string | mongoose.Types.ObjectId;
|
|
77
100
|
tournamentId: string | mongoose.Types.ObjectId;
|
|
78
|
-
teamId: string | mongoose.Types.ObjectId;
|
|
79
101
|
createdAt?: Date | null | undefined;
|
|
80
102
|
updatedAt?: Date | null | undefined;
|
|
103
|
+
teamId?: string | mongoose.Types.ObjectId | undefined;
|
|
81
104
|
predictions?: {
|
|
82
105
|
_id: string | mongoose.Types.ObjectId;
|
|
83
106
|
matchId: string | mongoose.Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"participant.router.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"participant.router.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAgBhD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8B5B,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { mongoose } from '@typegoose/typegoose';
|
|
2
|
-
import { JoinTournamentInputDTO, TournamentParticipantOutputDTO } from './participant.validation';
|
|
2
|
+
import { JoinTournamentInputDTO, MarkSeenTournamentInputDTO, TournamentParticipantOutputDTO } from './participant.validation';
|
|
3
3
|
export declare class ParticipantService {
|
|
4
4
|
private repository;
|
|
5
5
|
private matchRepository;
|
|
6
6
|
constructor();
|
|
7
7
|
private ensureTeamExists;
|
|
8
|
-
private ensureNotAlreadyJoined;
|
|
9
8
|
join(userId: mongoose.Types.ObjectId, input: JoinTournamentInputDTO): Promise<TournamentParticipantOutputDTO>;
|
|
9
|
+
markSeen(userId: mongoose.Types.ObjectId, input: MarkSeenTournamentInputDTO): Promise<void>;
|
|
10
10
|
getByUserAndTournament(userId: mongoose.Types.ObjectId, tournamentId: mongoose.Types.ObjectId): Promise<TournamentParticipantOutputDTO>;
|
|
11
11
|
getAll(tournamentId: mongoose.Types.ObjectId): Promise<TournamentParticipantOutputDTO[]>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"participant.service.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.service.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"participant.service.d.ts","sourceRoot":"/","sources":["modules/tournament/participant/participant.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EACH,sBAAsB,EACtB,0BAA0B,EAC1B,8BAA8B,EACjC,MAAM,0BAA0B,CAAC;AAKlC,qBACa,kBAAkB;IAC3B,OAAO,CAAC,UAAU,CAAkC;IACpD,OAAO,CAAC,eAAe,CAA4B;;IAOnD,OAAO,CAAC,gBAAgB;IAKX,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,8BAA8B,CAAC;IA2B7G,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC;IAU3F,sBAAsB,CAC/B,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GACtC,OAAO,CAAC,8BAA8B,CAAC;IAM7B,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,8BAA8B,EAAE,CAAC;CAKxG;AAED,eAAO,MAAM,kBAAkB,oBAAoC,CAAC"}
|