c2-climbing-x 1.0.5 → 1.0.7
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.
|
@@ -19,9 +19,14 @@ export interface IChampionshipPhase {
|
|
|
19
19
|
matchRules?: IMatchRules;
|
|
20
20
|
groups: IGroup[];
|
|
21
21
|
qualifiedRules: IQualifiedRule[];
|
|
22
|
+
qualifiedsTeams: IQualifiedsTeams[];
|
|
22
23
|
createdAtDateTime: Date;
|
|
23
24
|
updatedAtDateTime: Date;
|
|
24
25
|
}
|
|
26
|
+
export interface IQualifiedsTeams {
|
|
27
|
+
label: string;
|
|
28
|
+
teams: Types.ObjectId | ITeam;
|
|
29
|
+
}
|
|
25
30
|
export interface IMatchRules {
|
|
26
31
|
mode: GroupMatchMode;
|
|
27
32
|
twoLegs: boolean;
|
|
@@ -59,6 +64,15 @@ export declare const MatchRulesSchema: Schema<IMatchRules, import("mongoose").Mo
|
|
|
59
64
|
} & {
|
|
60
65
|
__v: number;
|
|
61
66
|
}>;
|
|
67
|
+
export declare const QualifiedsTeamsSchema: Schema<IQualifiedsTeams, import("mongoose").Model<IQualifiedsTeams, any, any, any, import("mongoose").Document<unknown, any, IQualifiedsTeams, any> & IQualifiedsTeams & {
|
|
68
|
+
_id: Types.ObjectId;
|
|
69
|
+
} & {
|
|
70
|
+
__v: number;
|
|
71
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IQualifiedsTeams, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IQualifiedsTeams>, {}> & import("mongoose").FlatRecord<IQualifiedsTeams> & {
|
|
72
|
+
_id: Types.ObjectId;
|
|
73
|
+
} & {
|
|
74
|
+
__v: number;
|
|
75
|
+
}>;
|
|
62
76
|
export declare const ChampionshipPhaseSchema: Schema<IChampionshipPhase, import("mongoose").Model<IChampionshipPhase, any, any, any, import("mongoose").Document<unknown, any, IChampionshipPhase, any> & IChampionshipPhase & Required<{
|
|
63
77
|
_id: Types.ObjectId;
|
|
64
78
|
}> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChampionshipPhaseSchema = exports.MatchRulesSchema = exports.QualifiedRuleSchema = exports.GroupSchema = void 0;
|
|
3
|
+
exports.ChampionshipPhaseSchema = exports.QualifiedsTeamsSchema = exports.MatchRulesSchema = exports.QualifiedRuleSchema = exports.GroupSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const GroupMatchMode_1 = require("../types/GroupMatchMode");
|
|
6
6
|
const QualificationMode_1 = require("../types/QualificationMode");
|
|
@@ -18,6 +18,10 @@ exports.MatchRulesSchema = new mongoose_1.Schema({
|
|
|
18
18
|
mode: { type: String, required: true, enum: GroupMatchMode_1.GroupMatchMode },
|
|
19
19
|
twoLegs: { type: Boolean, required: true, default: false },
|
|
20
20
|
});
|
|
21
|
+
exports.QualifiedsTeamsSchema = new mongoose_1.Schema({
|
|
22
|
+
label: { type: String, required: true },
|
|
23
|
+
teams: { type: [mongoose_1.Schema.Types.ObjectId], ref: "team", required: true, default: [] },
|
|
24
|
+
}, { _id: false });
|
|
21
25
|
exports.ChampionshipPhaseSchema = new mongoose_1.Schema({
|
|
22
26
|
description: { type: String, required: true },
|
|
23
27
|
championship: {
|
|
@@ -28,7 +32,8 @@ exports.ChampionshipPhaseSchema = new mongoose_1.Schema({
|
|
|
28
32
|
order: { type: Number, required: true },
|
|
29
33
|
groups: { type: [exports.GroupSchema], required: true, default: [] },
|
|
30
34
|
matchRules: { type: exports.MatchRulesSchema, required: true },
|
|
31
|
-
qualifiedRules: { type: [exports.QualifiedRuleSchema], required: true }
|
|
35
|
+
qualifiedRules: { type: [exports.QualifiedRuleSchema], required: true },
|
|
36
|
+
qualifiedsTeams: { type: [exports.QualifiedsTeamsSchema], required: true, default: [] }
|
|
32
37
|
}, {
|
|
33
38
|
timestamps: {
|
|
34
39
|
createdAt: "createdAtDateTime",
|
package/package.json
CHANGED