@lyxa.ai/marketing 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/event/event-initializations.js +2 -2
- package/dist/lib/event/event-initializations.js.map +1 -1
- package/dist/lib/index.d.ts +228 -493
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -2
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.js +2 -0
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +2 -0
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +2 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +2 -0
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +5 -4
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +13 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +11 -2
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.builder.js +4 -0
- package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.d.ts +1 -0
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.js +7 -1
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.router.d.ts +96 -208
- package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.service.d.ts +2 -2
- package/dist/lib/modules/tournament/config/config.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.service.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.d.ts +412 -659
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.js +40 -25
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts +2 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +20 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +12 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts +5 -2
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.builder.js +12 -7
- package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.router.d.ts +50 -187
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.router.js +0 -7
- package/dist/lib/modules/tournament/match/match.router.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.d.ts +1 -11
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.js +17 -61
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.validation.d.ts +46 -34
- package/dist/lib/modules/tournament/match/match.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.validation.js +4 -2
- package/dist/lib/modules/tournament/match/match.validation.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.d.ts +2 -1
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.js +16 -11
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.router.d.ts +9 -9
- package/dist/lib/modules/tournament/participant/participant.validation.d.ts +84 -84
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +4 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.js +20 -2
- package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.router.d.ts +12 -12
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +8 -0
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.js +20 -3
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.validation.d.ts +64 -64
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +21 -5
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts +6 -0
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.builder.js +43 -0
- package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -0
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.d.ts +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
- package/dist/lib/modules/tournament/score/score.repository.d.ts +6 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.repository.js +60 -0
- package/dist/lib/modules/tournament/score/score.repository.js.map +1 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts +6 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/score/score.service.js +60 -0
- package/dist/lib/modules/tournament/score/score.service.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.router.d.ts +22 -54
- package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.d.ts +14 -14
- package/dist/lib/modules/tournament/tournament.router.d.ts +216 -470
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.router.js +8 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.d.ts +8 -0
- package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.service.js +63 -0
- package/dist/lib/modules/tournament/tournament.service.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.validation.d.ts +133 -0
- package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.validation.js +14 -0
- package/dist/lib/modules/tournament/tournament.validation.js.map +1 -0
- package/dist/types/index.d.ts +228 -493
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -2
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +10 -21
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +154 -0
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +8 -2
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +10 -21
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.repository.d.ts +1 -0
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.router.d.ts +96 -208
- package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.service.d.ts +2 -2
- package/dist/types/modules/tournament/config/config.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.validation.d.ts +412 -659
- 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 +2 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +15 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts +5 -2
- package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.router.d.ts +50 -187
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.service.d.ts +1 -11
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.validation.d.ts +46 -34
- package/dist/types/modules/tournament/match/match.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification.service.d.ts +2 -1
- package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.router.d.ts +9 -9
- package/dist/types/modules/tournament/participant/participant.validation.d.ts +84 -84
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +4 -1
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.router.d.ts +12 -12
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts +8 -0
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.validation.d.ts +64 -64
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +3 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.builder.d.ts +6 -0
- package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.types.d.ts +1 -1
- package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/types/modules/tournament/score/score.repository.d.ts +6 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/score/score.service.d.ts +6 -0
- package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.router.d.ts +22 -54
- package/dist/types/modules/tournament/team/team.router.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 +216 -470
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.service.d.ts +8 -0
- package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.validation.d.ts +133 -0
- package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -16,81 +16,58 @@ export declare const configRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
16
16
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
17
17
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
18
18
|
input: {
|
|
19
|
+
name: string;
|
|
19
20
|
startDate: string | Date;
|
|
20
21
|
endDate: string | Date;
|
|
21
22
|
tag: string;
|
|
22
23
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
24
|
+
reward?: {
|
|
25
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
26
|
+
} | {
|
|
27
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
28
|
+
couponNamePrefix: string;
|
|
29
|
+
percentage: number;
|
|
30
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
31
|
+
} | undefined;
|
|
23
32
|
};
|
|
24
33
|
output: {
|
|
25
34
|
message: string;
|
|
26
35
|
success: boolean;
|
|
27
36
|
data?: {
|
|
28
37
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
29
|
-
|
|
38
|
+
name: string;
|
|
30
39
|
tag: string;
|
|
40
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
31
41
|
createdAt?: Date | null | undefined;
|
|
32
42
|
startDate?: Date | null | undefined;
|
|
33
43
|
endDate?: Date | null | undefined;
|
|
34
44
|
updatedAt?: Date | null | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
44
|
-
};
|
|
45
|
-
score: {
|
|
46
|
-
team1: number | null;
|
|
47
|
-
team2: number | null;
|
|
48
|
-
};
|
|
49
|
-
stage: string;
|
|
50
|
-
endDate?: Date | null | undefined;
|
|
51
|
-
startingDate?: Date | null | undefined;
|
|
52
|
-
additionalTag?: string | undefined;
|
|
53
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
54
|
-
}[] | undefined;
|
|
55
|
-
teams?: {
|
|
56
|
-
name: string;
|
|
57
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
58
|
-
picture?: string | null | undefined;
|
|
59
|
-
}[] | undefined;
|
|
45
|
+
reward?: {
|
|
46
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
47
|
+
} | {
|
|
48
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
49
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
50
|
+
couponNamePrefix?: string | undefined;
|
|
51
|
+
percentage?: number | undefined;
|
|
52
|
+
} | undefined;
|
|
60
53
|
} | {
|
|
61
54
|
documents: {
|
|
62
55
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
63
|
-
|
|
56
|
+
name: string;
|
|
64
57
|
tag: string;
|
|
58
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
65
59
|
createdAt?: Date | null | undefined;
|
|
66
60
|
startDate?: Date | null | undefined;
|
|
67
61
|
endDate?: Date | null | undefined;
|
|
68
62
|
updatedAt?: Date | null | undefined;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
78
|
-
};
|
|
79
|
-
score: {
|
|
80
|
-
team1: number | null;
|
|
81
|
-
team2: number | null;
|
|
82
|
-
};
|
|
83
|
-
stage: string;
|
|
84
|
-
endDate?: Date | null | undefined;
|
|
85
|
-
startingDate?: Date | null | undefined;
|
|
86
|
-
additionalTag?: string | undefined;
|
|
87
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
88
|
-
}[] | undefined;
|
|
89
|
-
teams?: {
|
|
90
|
-
name: string;
|
|
91
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
92
|
-
picture?: string | null | undefined;
|
|
93
|
-
}[] | undefined;
|
|
63
|
+
reward?: {
|
|
64
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
65
|
+
} | {
|
|
66
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
67
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
68
|
+
couponNamePrefix?: string | undefined;
|
|
69
|
+
percentage?: number | undefined;
|
|
70
|
+
} | undefined;
|
|
94
71
|
}[];
|
|
95
72
|
metadata?: {
|
|
96
73
|
page: number;
|
|
@@ -109,71 +86,37 @@ export declare const configRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
109
86
|
success: boolean;
|
|
110
87
|
data?: {
|
|
111
88
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
112
|
-
|
|
89
|
+
name: string;
|
|
113
90
|
tag: string;
|
|
91
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
114
92
|
createdAt?: Date | null | undefined;
|
|
115
93
|
startDate?: Date | null | undefined;
|
|
116
94
|
endDate?: Date | null | undefined;
|
|
117
95
|
updatedAt?: Date | null | undefined;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
name: string;
|
|
126
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
127
|
-
};
|
|
128
|
-
score: {
|
|
129
|
-
team1: number | null;
|
|
130
|
-
team2: number | null;
|
|
131
|
-
};
|
|
132
|
-
stage: string;
|
|
133
|
-
endDate?: Date | null | undefined;
|
|
134
|
-
startingDate?: Date | null | undefined;
|
|
135
|
-
additionalTag?: string | undefined;
|
|
136
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
137
|
-
}[] | undefined;
|
|
138
|
-
teams?: {
|
|
139
|
-
name: string;
|
|
140
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
141
|
-
picture?: string | null | undefined;
|
|
142
|
-
}[] | undefined;
|
|
96
|
+
reward?: {
|
|
97
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
98
|
+
} | {
|
|
99
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
100
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
101
|
+
percentage?: number | undefined;
|
|
102
|
+
} | undefined;
|
|
143
103
|
}[] | {
|
|
144
104
|
documents: {
|
|
145
105
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
146
|
-
|
|
106
|
+
name: string;
|
|
147
107
|
tag: string;
|
|
108
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
148
109
|
createdAt?: Date | null | undefined;
|
|
149
110
|
startDate?: Date | null | undefined;
|
|
150
111
|
endDate?: Date | null | undefined;
|
|
151
112
|
updatedAt?: Date | null | undefined;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
name: string;
|
|
160
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
161
|
-
};
|
|
162
|
-
score: {
|
|
163
|
-
team1: number | null;
|
|
164
|
-
team2: number | null;
|
|
165
|
-
};
|
|
166
|
-
stage: string;
|
|
167
|
-
endDate?: Date | null | undefined;
|
|
168
|
-
startingDate?: Date | null | undefined;
|
|
169
|
-
additionalTag?: string | undefined;
|
|
170
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
171
|
-
}[] | undefined;
|
|
172
|
-
teams?: {
|
|
173
|
-
name: string;
|
|
174
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
175
|
-
picture?: string | null | undefined;
|
|
176
|
-
}[] | undefined;
|
|
113
|
+
reward?: {
|
|
114
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
115
|
+
} | {
|
|
116
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
117
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
118
|
+
percentage?: number | undefined;
|
|
119
|
+
} | undefined;
|
|
177
120
|
}[][];
|
|
178
121
|
metadata?: {
|
|
179
122
|
page: number;
|
|
@@ -194,71 +137,39 @@ export declare const configRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
194
137
|
success: boolean;
|
|
195
138
|
data?: {
|
|
196
139
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
197
|
-
|
|
140
|
+
name: string;
|
|
198
141
|
tag: string;
|
|
142
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
199
143
|
createdAt?: Date | null | undefined;
|
|
200
144
|
startDate?: Date | null | undefined;
|
|
201
145
|
endDate?: Date | null | undefined;
|
|
202
146
|
updatedAt?: Date | null | undefined;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
212
|
-
};
|
|
213
|
-
score: {
|
|
214
|
-
team1: number | null;
|
|
215
|
-
team2: number | null;
|
|
216
|
-
};
|
|
217
|
-
stage: string;
|
|
218
|
-
endDate?: Date | null | undefined;
|
|
219
|
-
startingDate?: Date | null | undefined;
|
|
220
|
-
additionalTag?: string | undefined;
|
|
221
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
222
|
-
}[] | undefined;
|
|
223
|
-
teams?: {
|
|
224
|
-
name: string;
|
|
225
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
226
|
-
picture?: string | null | undefined;
|
|
227
|
-
}[] | undefined;
|
|
147
|
+
reward?: {
|
|
148
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
149
|
+
} | {
|
|
150
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
151
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
152
|
+
couponNamePrefix?: string | undefined;
|
|
153
|
+
percentage?: number | undefined;
|
|
154
|
+
} | undefined;
|
|
228
155
|
} | {
|
|
229
156
|
documents: {
|
|
230
157
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
231
|
-
|
|
158
|
+
name: string;
|
|
232
159
|
tag: string;
|
|
160
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
233
161
|
createdAt?: Date | null | undefined;
|
|
234
162
|
startDate?: Date | null | undefined;
|
|
235
163
|
endDate?: Date | null | undefined;
|
|
236
164
|
updatedAt?: Date | null | undefined;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
246
|
-
};
|
|
247
|
-
score: {
|
|
248
|
-
team1: number | null;
|
|
249
|
-
team2: number | null;
|
|
250
|
-
};
|
|
251
|
-
stage: string;
|
|
252
|
-
endDate?: Date | null | undefined;
|
|
253
|
-
startingDate?: Date | null | undefined;
|
|
254
|
-
additionalTag?: string | undefined;
|
|
255
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
256
|
-
}[] | undefined;
|
|
257
|
-
teams?: {
|
|
258
|
-
name: string;
|
|
259
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
260
|
-
picture?: string | null | undefined;
|
|
261
|
-
}[] | undefined;
|
|
165
|
+
reward?: {
|
|
166
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
167
|
+
} | {
|
|
168
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
169
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
170
|
+
couponNamePrefix?: string | undefined;
|
|
171
|
+
percentage?: number | undefined;
|
|
172
|
+
} | undefined;
|
|
262
173
|
}[];
|
|
263
174
|
metadata?: {
|
|
264
175
|
page: number;
|
|
@@ -274,80 +185,57 @@ export declare const configRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
274
185
|
input: {
|
|
275
186
|
_id: string | import("mongoose").Types.ObjectId;
|
|
276
187
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
188
|
+
name?: string | undefined;
|
|
277
189
|
startDate?: string | Date | undefined;
|
|
278
190
|
endDate?: string | Date | undefined;
|
|
279
191
|
tag?: string | undefined;
|
|
192
|
+
reward?: {
|
|
193
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
194
|
+
} | {
|
|
195
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
196
|
+
couponNamePrefix: string;
|
|
197
|
+
percentage: number;
|
|
198
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
199
|
+
} | undefined;
|
|
280
200
|
};
|
|
281
201
|
output: {
|
|
282
202
|
message: string;
|
|
283
203
|
success: boolean;
|
|
284
204
|
data?: {
|
|
285
205
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
286
|
-
|
|
206
|
+
name: string;
|
|
287
207
|
tag: string;
|
|
208
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
288
209
|
createdAt?: Date | null | undefined;
|
|
289
210
|
startDate?: Date | null | undefined;
|
|
290
211
|
endDate?: Date | null | undefined;
|
|
291
212
|
updatedAt?: Date | null | undefined;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
301
|
-
};
|
|
302
|
-
score: {
|
|
303
|
-
team1: number | null;
|
|
304
|
-
team2: number | null;
|
|
305
|
-
};
|
|
306
|
-
stage: string;
|
|
307
|
-
endDate?: Date | null | undefined;
|
|
308
|
-
startingDate?: Date | null | undefined;
|
|
309
|
-
additionalTag?: string | undefined;
|
|
310
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
311
|
-
}[] | undefined;
|
|
312
|
-
teams?: {
|
|
313
|
-
name: string;
|
|
314
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
315
|
-
picture?: string | null | undefined;
|
|
316
|
-
}[] | undefined;
|
|
213
|
+
reward?: {
|
|
214
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
215
|
+
} | {
|
|
216
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
217
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
218
|
+
couponNamePrefix?: string | undefined;
|
|
219
|
+
percentage?: number | undefined;
|
|
220
|
+
} | undefined;
|
|
317
221
|
} | {
|
|
318
222
|
documents: {
|
|
319
223
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
320
|
-
|
|
224
|
+
name: string;
|
|
321
225
|
tag: string;
|
|
226
|
+
_id?: string | import("mongoose").Types.ObjectId | undefined;
|
|
322
227
|
createdAt?: Date | null | undefined;
|
|
323
228
|
startDate?: Date | null | undefined;
|
|
324
229
|
endDate?: Date | null | undefined;
|
|
325
230
|
updatedAt?: Date | null | undefined;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
teamId: string | import("mongoose").Types.ObjectId;
|
|
335
|
-
};
|
|
336
|
-
score: {
|
|
337
|
-
team1: number | null;
|
|
338
|
-
team2: number | null;
|
|
339
|
-
};
|
|
340
|
-
stage: string;
|
|
341
|
-
endDate?: Date | null | undefined;
|
|
342
|
-
startingDate?: Date | null | undefined;
|
|
343
|
-
additionalTag?: string | undefined;
|
|
344
|
-
winnerId?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
345
|
-
}[] | undefined;
|
|
346
|
-
teams?: {
|
|
347
|
-
name: string;
|
|
348
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
349
|
-
picture?: string | null | undefined;
|
|
350
|
-
}[] | undefined;
|
|
231
|
+
reward?: {
|
|
232
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.FREE_DELIVERY;
|
|
233
|
+
} | {
|
|
234
|
+
type: import("@lyxa.ai/core/dist/utilities/enum").TournamentRewardType.COUPON;
|
|
235
|
+
maxDiscountPerOrder?: number | null | undefined;
|
|
236
|
+
couponNamePrefix?: string | undefined;
|
|
237
|
+
percentage?: number | undefined;
|
|
238
|
+
} | undefined;
|
|
351
239
|
}[];
|
|
352
240
|
metadata?: {
|
|
353
241
|
page: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.router.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.router.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"config.router.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.router.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCvB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { mongoose } from '@typegoose/typegoose';
|
|
2
|
-
import { CreateTournamentConfigInputDTO, TournamentConfigOutputDTO, UpdateTournamentConfigInputDTO } from './config.validation';
|
|
2
|
+
import { CreateTournamentConfigInputDTO, TournamentConfigListItemOutputDTO, TournamentConfigOutputDTO, UpdateTournamentConfigInputDTO } from './config.validation';
|
|
3
3
|
export declare class TournamentConfigService {
|
|
4
4
|
private repository;
|
|
5
5
|
constructor();
|
|
6
6
|
private ensureTagUnique;
|
|
7
7
|
private validateDates;
|
|
8
8
|
create(input: CreateTournamentConfigInputDTO): Promise<TournamentConfigOutputDTO>;
|
|
9
|
-
getAll(): Promise<
|
|
9
|
+
getAll(): Promise<TournamentConfigListItemOutputDTO[]>;
|
|
10
10
|
getById(id: mongoose.Types.ObjectId): Promise<TournamentConfigOutputDTO>;
|
|
11
11
|
update(input: UpdateTournamentConfigInputDTO): Promise<TournamentConfigOutputDTO>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.service.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.service.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"config.service.d.ts","sourceRoot":"/","sources":["modules/tournament/config/config.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EACH,8BAA8B,EAC9B,iCAAiC,EACjC,yBAAyB,EACzB,8BAA8B,EACjC,MAAM,qBAAqB,CAAC;AAI7B,qBACa,uBAAuB;IAChC,OAAO,CAAC,UAAU,CAA6B;;YAMjC,eAAe;IAO7B,OAAO,CAAC,aAAa;IAIR,MAAM,CAAC,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAKjF,MAAM,IAAI,OAAO,CAAC,iCAAiC,EAAE,CAAC;IAItD,OAAO,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAMxE,MAAM,CAAC,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAejG;AAED,eAAO,MAAM,uBAAuB,yBAAyC,CAAC"}
|