c2-climbing-x 1.0.16 → 1.0.18
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.
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Schema, Types } from "mongoose";
|
|
2
2
|
import { MatchStatus } from "../types/MatchStatus";
|
|
3
|
-
import { IChampionshipPhase } from "./ChampionshipPhase";
|
|
4
|
-
import { IChampionshipRound } from "./ChampionshipRound";
|
|
5
|
-
import { ITeam } from "./Team";
|
|
6
3
|
import { IChampionship } from "./Championship";
|
|
4
|
+
import { IChampionshipPhase, IQualifiedsSlots } from "./ChampionshipPhase";
|
|
5
|
+
import { IChampionshipRound } from "./ChampionshipRound";
|
|
7
6
|
export interface IChampionshipMatch {
|
|
8
7
|
_id: Types.ObjectId;
|
|
9
8
|
number: number;
|
|
@@ -11,8 +10,8 @@ export interface IChampionshipMatch {
|
|
|
11
10
|
phase: Types.ObjectId | IChampionshipPhase;
|
|
12
11
|
round: Types.ObjectId | IChampionshipRound;
|
|
13
12
|
group?: string;
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
slotHome: IQualifiedsSlots;
|
|
14
|
+
slotAway: IQualifiedsSlots;
|
|
16
15
|
scheduledAt?: Date;
|
|
17
16
|
homeScore?: number;
|
|
18
17
|
awayScore?: number;
|
|
@@ -3,14 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ChampionshipMatchSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const MatchStatus_1 = require("../types/MatchStatus");
|
|
6
|
+
const ChampionshipPhase_1 = require("./ChampionshipPhase");
|
|
6
7
|
exports.ChampionshipMatchSchema = new mongoose_1.Schema({
|
|
7
8
|
number: { type: Number, required: true },
|
|
8
9
|
championship: { type: mongoose_1.Schema.Types.ObjectId, ref: "championship", required: true },
|
|
9
10
|
phase: { type: mongoose_1.Schema.Types.ObjectId, ref: "championship-phase", required: true },
|
|
10
11
|
round: { type: mongoose_1.Schema.Types.ObjectId, ref: "championship-round", required: true },
|
|
11
12
|
group: { type: String, required: false },
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
slotHome: { type: ChampionshipPhase_1.QualifiedsSlotsSchema, required: true },
|
|
14
|
+
slotAway: { type: ChampionshipPhase_1.QualifiedsSlotsSchema, required: true },
|
|
14
15
|
scheduledAt: { type: Date, required: false },
|
|
15
16
|
homeScore: { type: Number, required: false },
|
|
16
17
|
awayScore: { type: Number, required: false },
|
|
@@ -26,4 +27,3 @@ exports.ChampionshipMatchSchema = new mongoose_1.Schema({
|
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
exports.ChampionshipMatchSchema.index({ round: 1 });
|
|
29
|
-
exports.ChampionshipMatchSchema.index({ round: 1, homeTeam: 1, awayTeam: 1 }, { unique: true });
|
package/package.json
CHANGED