@lyxa.ai/core 1.4.143 → 1.4.144
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/libraries/mongo/models/tournament-participant.model.d.ts +1 -5
- package/dist/libraries/mongo/models/tournament-participant.model.js +2 -7
- package/dist/libraries/mongo/models/tournament-participant.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,6 @@ import { Types } from 'mongoose';
|
|
|
4
4
|
import { User } from './user.model';
|
|
5
5
|
import { MatchScore, Tournament } from './tournament.model';
|
|
6
6
|
import { Coupon } from './coupon.model';
|
|
7
|
-
export declare enum TournamentParticipantStatus {
|
|
8
|
-
JOINED = "joined",
|
|
9
|
-
REJECTED = "rejected"
|
|
10
|
-
}
|
|
11
7
|
export declare class TournamentPredictionEntry {
|
|
12
8
|
_id: Types.ObjectId;
|
|
13
9
|
matchId: Types.ObjectId;
|
|
@@ -20,6 +16,6 @@ export declare class TournamentParticipant extends TimeStamps {
|
|
|
20
16
|
userId: Ref<User>;
|
|
21
17
|
tournamentId: Ref<Tournament>;
|
|
22
18
|
teamId?: Types.ObjectId;
|
|
23
|
-
status
|
|
19
|
+
status?: string;
|
|
24
20
|
predictions: TournamentPredictionEntry[];
|
|
25
21
|
}
|
|
@@ -9,18 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TournamentParticipant = exports.TournamentPredictionEntry =
|
|
12
|
+
exports.TournamentParticipant = exports.TournamentPredictionEntry = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
15
|
const mongoose_1 = require("mongoose");
|
|
16
16
|
const user_model_1 = require("./user.model");
|
|
17
17
|
const tournament_model_1 = require("./tournament.model");
|
|
18
18
|
const coupon_model_1 = require("./coupon.model");
|
|
19
|
-
var TournamentParticipantStatus;
|
|
20
|
-
(function (TournamentParticipantStatus) {
|
|
21
|
-
TournamentParticipantStatus["JOINED"] = "joined";
|
|
22
|
-
TournamentParticipantStatus["REJECTED"] = "rejected";
|
|
23
|
-
})(TournamentParticipantStatus || (exports.TournamentParticipantStatus = TournamentParticipantStatus = {}));
|
|
24
19
|
class TournamentPredictionEntry {
|
|
25
20
|
_id;
|
|
26
21
|
matchId;
|
|
@@ -75,7 +70,7 @@ __decorate([
|
|
|
75
70
|
__metadata("design:type", mongoose_1.Types.ObjectId)
|
|
76
71
|
], TournamentParticipant.prototype, "teamId", void 0);
|
|
77
72
|
__decorate([
|
|
78
|
-
(0, typegoose_1.prop)({
|
|
73
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
79
74
|
__metadata("design:type", String)
|
|
80
75
|
], TournamentParticipant.prototype, "status", void 0);
|
|
81
76
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/tournament-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,uCAAiC;AACjC,6CAAoC;AACpC,yDAA4D;AAC5D,iDAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"tournament-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/tournament-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,uCAAiC;AACjC,6CAAoC;AACpC,yDAA4D;AAC5D,iDAAwC;AAExC,MAAa,yBAAyB;IAE9B,GAAG,CAAkB;IAGrB,OAAO,CAAkB;IAGzB,KAAK,CAAc;IAGnB,cAAc,CAAQ;IAGtB,SAAS,CAAkB;IAG3B,MAAM,C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C;;2DACV;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,gBAAK,CAAC,QAAQ,EAAE,CAAC;8BACf,gBAAK,CAAC,QAAQ;qDAAC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACA;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,yBAAyB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;0DACd;gCAdrC,qBAAqB;IADjC,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,wBAAwB,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;GAC/E,qBAAqB,CAejC","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Types } from 'mongoose';\nimport { User } from './user.model';\nimport { MatchScore, Tournament } from './tournament.model';\nimport { Coupon } from './coupon.model';\n\nexport class TournamentPredictionEntry {\n\t@prop({ type: Types.ObjectId, default: () => new Types.ObjectId() })\n\tpublic _id!: Types.ObjectId;\n\n\t@prop({ required: true, type: Types.ObjectId })\n\tpublic matchId!: Types.ObjectId;\n\n\t@prop({ required: true, type: () => MatchScore, _id: false })\n\tpublic score!: MatchScore;\n\n\t@prop({ required: true, type: Date })\n\tpublic predictionTime!: Date;\n\n\t@prop({ type: Boolean, default: null })\n\tpublic succeeded!: boolean | null;\n\n\t@prop({ ref: () => Coupon })\n\tpublic coupon?: Ref<Coupon>;\n}\n\n@modelOptions({ schemaOptions: { collection: 'tournamentParticipants', timestamps: true } })\nexport class TournamentParticipant extends TimeStamps {\n\t@prop({ required: true, ref: () => User })\n\tpublic userId!: Ref<User>;\n\n\t@prop({ required: true, ref: () => Tournament })\n\tpublic tournamentId!: Ref<Tournament>;\n\n\t@prop({ type: Types.ObjectId })\n\tpublic teamId?: Types.ObjectId;\n\n\t@prop({ type: String })\n\tpublic status?: string;\n\n\t@prop({ type: () => [TournamentPredictionEntry], default: [] })\n\tpublic predictions!: TournamentPredictionEntry[];\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED