@brimble/models 1.9.0 → 2.0.2

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,4 +1,4 @@
1
- import { Document } from "mongoose";
1
+ import { IProject } from "../types";
2
2
  import { SoftDeleteModel } from 'soft-delete-plugin-mongoose';
3
- declare const _default: SoftDeleteModel<Document<any, any, any>>;
3
+ declare const _default: SoftDeleteModel<IProject>;
4
4
  export default _default;
@@ -109,7 +109,7 @@ const projectSchema = new mongoose_1.Schema({
109
109
  },
110
110
  specs: Object,
111
111
  last_requested: mongoose_1.Schema.Types.Date,
112
- isPaused: Boolean
112
+ isPaused: Boolean,
113
113
  }, { timestamps: true });
114
114
  projectSchema.plugin(soft_delete_plugin_mongoose_1.softDeletePlugin);
115
- exports.default = (0, mongoose_1.model)("Project", projectSchema);
115
+ 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": "1.9.0",
3
+ "version": "2.0.2",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { model, Schema, Document } from "mongoose";
1
+ import { model, Schema } from "mongoose";
2
2
  import { PROJECT_STATUS } from "../enum";
3
3
  import { IProject } from "../types";
4
4
  import { softDeletePlugin, SoftDeleteModel } from 'soft-delete-plugin-mongoose';
@@ -110,11 +110,11 @@ const projectSchema = new Schema(
110
110
  },
111
111
  specs: Object,
112
112
  last_requested: Schema.Types.Date,
113
- isPaused: Boolean
113
+ isPaused: Boolean,
114
114
  },
115
115
  { timestamps: true },
116
116
  );
117
117
 
118
118
  projectSchema.plugin(softDeletePlugin);
119
119
 
120
- export default model<IProject, SoftDeleteModel<Document>>("Project", projectSchema);
120
+ export default model<IProject, SoftDeleteModel<IProject>>('Project', projectSchema);