c2-climbing-x 1.0.57 → 1.0.60
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.
|
@@ -2,14 +2,18 @@ import { Schema, Types } from "mongoose";
|
|
|
2
2
|
import { IChampionship } from "./Championship";
|
|
3
3
|
import { IChampionshipRound } from "./ChampionshipRound";
|
|
4
4
|
import { ChallengeStatus } from "../types/ChallengeStatus";
|
|
5
|
+
import { IFile } from "./File";
|
|
5
6
|
export interface IChallenge {
|
|
6
7
|
_id: Types.ObjectId;
|
|
7
8
|
name: string;
|
|
8
9
|
slug: string;
|
|
9
|
-
description: string;
|
|
10
10
|
championship: Types.ObjectId | IChampionship;
|
|
11
11
|
roundStart: IChampionshipRound;
|
|
12
12
|
roundEnd: IChampionshipRound;
|
|
13
|
+
descriptionShort: string;
|
|
14
|
+
descriptionLong: string;
|
|
15
|
+
thumb: IFile;
|
|
16
|
+
ticketsLimitDateTime: Date;
|
|
13
17
|
createdAtDateTime: Date;
|
|
14
18
|
updatedAtDateTime: Date;
|
|
15
19
|
status: ChallengeStatus;
|
package/dist/models/Challenge.js
CHANGED
|
@@ -3,10 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ChallengeSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const ChallengeStatus_1 = require("../types/ChallengeStatus");
|
|
6
|
+
const File_1 = require("./File");
|
|
6
7
|
exports.ChallengeSchema = new mongoose_1.Schema({
|
|
7
8
|
name: { type: String, required: true },
|
|
8
9
|
slug: { type: String, required: true },
|
|
9
|
-
|
|
10
|
+
descriptionShort: { type: String, required: false },
|
|
11
|
+
descriptionLong: { type: String, required: false },
|
|
12
|
+
thumb: { type: File_1.FileSchema, required: false },
|
|
10
13
|
championship: {
|
|
11
14
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
12
15
|
ref: "championship",
|
|
@@ -14,7 +17,8 @@ exports.ChallengeSchema = new mongoose_1.Schema({
|
|
|
14
17
|
},
|
|
15
18
|
roundStart: { type: mongoose_1.Schema.Types.ObjectId, ref: "championship-round", required: true },
|
|
16
19
|
roundEnd: { type: mongoose_1.Schema.Types.ObjectId, ref: "championship-round", required: true },
|
|
17
|
-
status: { type: String, enum: ChallengeStatus_1.ChallengeStatus, default: ChallengeStatus_1.ChallengeStatus.
|
|
20
|
+
status: { type: String, enum: ChallengeStatus_1.ChallengeStatus, default: ChallengeStatus_1.ChallengeStatus.DRAFT },
|
|
21
|
+
ticketsLimitDateTime: { type: Date, required: false },
|
|
18
22
|
}, {
|
|
19
23
|
timestamps: {
|
|
20
24
|
createdAt: "createdAtDateTime",
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ChallengeStatus = void 0;
|
|
4
4
|
var ChallengeStatus;
|
|
5
5
|
(function (ChallengeStatus) {
|
|
6
|
-
ChallengeStatus["
|
|
6
|
+
ChallengeStatus["DRAFT"] = "DRAFT";
|
|
7
7
|
ChallengeStatus["ACTIVE"] = "ACTIVE";
|
|
8
8
|
ChallengeStatus["COMPLETED"] = "COMPLETED";
|
|
9
9
|
})(ChallengeStatus || (exports.ChallengeStatus = ChallengeStatus = {}));
|
package/package.json
CHANGED