@brimble/models 1.9.0 → 2.0.1
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/project/index.d.ts +29 -3
- package/dist/project/index.js +1 -3
- package/package.json +1 -2
- package/project/index.ts +3 -6
package/dist/project/index.d.ts
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose" />
|
|
25
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
+
import { IProject } from "../types";
|
|
27
|
+
declare const _default: import("mongoose").Model<IProject, {}, {}, {}, import("mongoose").Document<unknown, {}, IProject> & IProject & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
}, any>;
|
|
4
30
|
export default _default;
|
package/dist/project/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
4
|
const enum_1 = require("../enum");
|
|
5
|
-
const soft_delete_plugin_mongoose_1 = require("soft-delete-plugin-mongoose");
|
|
6
5
|
const projectSchema = new mongoose_1.Schema({
|
|
7
6
|
name: {
|
|
8
7
|
type: String,
|
|
@@ -109,7 +108,6 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
109
108
|
},
|
|
110
109
|
specs: Object,
|
|
111
110
|
last_requested: mongoose_1.Schema.Types.Date,
|
|
112
|
-
isPaused: Boolean
|
|
111
|
+
isPaused: Boolean,
|
|
113
112
|
}, { timestamps: true });
|
|
114
|
-
projectSchema.plugin(soft_delete_plugin_mongoose_1.softDeletePlugin);
|
|
115
113
|
exports.default = (0, mongoose_1.model)("Project", projectSchema);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brimble/models",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Brimble models",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"@brimble/utils": "^1.5.23",
|
|
13
13
|
"dotenv": "^8.2.0",
|
|
14
14
|
"mongoose": "^8.2.1",
|
|
15
|
-
"soft-delete-plugin-mongoose": "^1.0.17",
|
|
16
15
|
"uuid": "^8.3.2"
|
|
17
16
|
},
|
|
18
17
|
"devDependencies": {
|
package/project/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { model, Schema
|
|
1
|
+
import { model, Schema } from "mongoose";
|
|
2
2
|
import { PROJECT_STATUS } from "../enum";
|
|
3
3
|
import { IProject } from "../types";
|
|
4
|
-
import { softDeletePlugin, SoftDeleteModel } from 'soft-delete-plugin-mongoose';
|
|
5
4
|
|
|
6
5
|
const projectSchema = new Schema(
|
|
7
6
|
{
|
|
@@ -110,11 +109,9 @@ const projectSchema = new Schema(
|
|
|
110
109
|
},
|
|
111
110
|
specs: Object,
|
|
112
111
|
last_requested: Schema.Types.Date,
|
|
113
|
-
isPaused: Boolean
|
|
112
|
+
isPaused: Boolean,
|
|
114
113
|
},
|
|
115
114
|
{ timestamps: true },
|
|
116
115
|
);
|
|
117
116
|
|
|
118
|
-
projectSchema
|
|
119
|
-
|
|
120
|
-
export default model<IProject, SoftDeleteModel<Document>>("Project", projectSchema);
|
|
117
|
+
export default model<IProject>("Project", projectSchema);
|