codebase-models 2.0.2 → 2.0.3
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/src/models/Hypothesis.js +1 -1
- package/dist/src/models/HypothesisSheet.d.ts +3 -1
- package/dist/src/models/HypothesisSheet.js +1 -1
- package/dist/src/models/NewIdeas.d.ts +3 -1
- package/dist/src/models/NewIdeas.js +1 -1
- package/package.json +1 -1
- package/src/models/Hypothesis.ts +1 -1
- package/src/models/HypothesisSheet.ts +1 -1
- package/src/models/NewIdeas.ts +1 -1
|
@@ -70,5 +70,5 @@ const HypothesisSchema = new mongoose_1.Schema({
|
|
|
70
70
|
HypothesisSchema.index({ hypothesisNumber: 1, isActive: 1 });
|
|
71
71
|
HypothesisSchema.index({ tagged: 1, isActive: 1 });
|
|
72
72
|
HypothesisSchema.index({ name: 1, isActive: 1 });
|
|
73
|
-
const Hypothesis = mongoose_1.default.models.
|
|
73
|
+
const Hypothesis = mongoose_1.default.models.hypos || (0, mongoose_1.model)("hypos", HypothesisSchema);
|
|
74
74
|
exports.default = Hypothesis;
|
|
@@ -43,5 +43,7 @@ export interface IHypothesisSheet extends Document {
|
|
|
43
43
|
thoughtsOfTeam?: Number;
|
|
44
44
|
tested?: Boolean;
|
|
45
45
|
}
|
|
46
|
-
declare const HypothesisSheet: mongoose.Model<
|
|
46
|
+
declare const HypothesisSheet: mongoose.Model<IHypothesisSheet, {}, {}, {}, mongoose.Document<unknown, {}, IHypothesisSheet> & IHypothesisSheet & {
|
|
47
|
+
_id: mongoose.Types.ObjectId;
|
|
48
|
+
}, any>;
|
|
47
49
|
export default HypothesisSheet;
|
|
@@ -109,5 +109,5 @@ const HypothesisSheetSchema = new mongoose_1.Schema({
|
|
|
109
109
|
}, {
|
|
110
110
|
timestamps: true,
|
|
111
111
|
});
|
|
112
|
-
const HypothesisSheet =
|
|
112
|
+
const HypothesisSheet = (0, mongoose_1.model)("hypothesisSheet", HypothesisSheetSchema);
|
|
113
113
|
exports.default = HypothesisSheet;
|
|
@@ -34,5 +34,7 @@ export interface INewIdeas extends Document {
|
|
|
34
34
|
totalPriority?: string;
|
|
35
35
|
createdBy?: mongoose.Schema.Types.ObjectId;
|
|
36
36
|
}
|
|
37
|
-
declare const NewIdeas: mongoose.Model<
|
|
37
|
+
declare const NewIdeas: mongoose.Model<INewIdeas, {}, {}, {}, mongoose.Document<unknown, {}, INewIdeas> & INewIdeas & {
|
|
38
|
+
_id: mongoose.Types.ObjectId;
|
|
39
|
+
}, any>;
|
|
38
40
|
export default NewIdeas;
|
|
@@ -67,5 +67,5 @@ NewIdeasSchema.index({
|
|
|
67
67
|
client: 1,
|
|
68
68
|
viewId: 1,
|
|
69
69
|
});
|
|
70
|
-
const NewIdeas =
|
|
70
|
+
const NewIdeas = (0, mongoose_1.model)("Newideas", NewIdeasSchema);
|
|
71
71
|
exports.default = NewIdeas;
|
package/package.json
CHANGED
package/src/models/Hypothesis.ts
CHANGED
|
@@ -62,6 +62,6 @@ HypothesisSchema.index({ tagged: 1, isActive: 1 });
|
|
|
62
62
|
HypothesisSchema.index({ name: 1, isActive: 1 });
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
const Hypothesis = mongoose.models.
|
|
65
|
+
const Hypothesis = mongoose.models.hypos || model<IHypothesis>("hypos", HypothesisSchema);
|
|
66
66
|
|
|
67
67
|
export default Hypothesis;
|
|
@@ -107,7 +107,7 @@ const HypothesisSheetSchema = new Schema<IHypothesisSheet>(
|
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
|
|
110
|
-
const HypothesisSheet =
|
|
110
|
+
const HypothesisSheet = model<IHypothesisSheet>(
|
|
111
111
|
"hypothesisSheet",
|
|
112
112
|
HypothesisSheetSchema
|
|
113
113
|
);
|
package/src/models/NewIdeas.ts
CHANGED