@lyxa.ai/marketing 1.0.50 → 1.0.52
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 +47 -22
- package/dist/lib/index.d.ts.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 +36 -37
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.js +3 -4
- 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 +6 -3
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.router.d.ts +4 -4
- 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 +4 -4
- 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 +164 -138
- 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 -3
- package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.types.js +7 -5
- 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 +47 -22
- package/dist/types/index.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 +36 -37
- 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.router.d.ts +4 -4
- 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 +4 -4
- 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 +164 -138
- 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 -3
- 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkB3B,CAAC"}
|
|
@@ -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"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export declare enum TournamentTag {
|
|
2
|
-
FOOTBALL_WORLD_CUP = "world-cup"
|
|
3
|
-
}
|
|
4
1
|
export declare enum MatchStatus {
|
|
5
2
|
UPCOMING = "upcoming",
|
|
6
3
|
STARTED = "started",
|
|
7
4
|
ENDED = "ended"
|
|
8
5
|
}
|
|
6
|
+
export declare enum TournamentParticipantStatus {
|
|
7
|
+
JOINED = "joined",
|
|
8
|
+
SEEN = "seen",
|
|
9
|
+
NOT_SEEN = "not_seen"
|
|
10
|
+
}
|
|
9
11
|
//# sourceMappingURL=tournament.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.types.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,
|
|
1
|
+
{"version":3,"file":"tournament.types.d.ts","sourceRoot":"/","sources":["modules/tournament/tournament.types.ts"],"names":[],"mappings":"AAAA,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,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/marketing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"description": "The Lyxa Marketing microservice",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/lib/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test:watch": "jest --watch"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@lyxa.ai/core": "1.4.
|
|
22
|
+
"@lyxa.ai/core": "1.4.144",
|
|
23
23
|
"@lyxa.ai/notification": "^1.0.7",
|
|
24
24
|
"@trpc/client": "^11.4.3",
|
|
25
25
|
"@trpc/server": "^11.4.3",
|