@brimble/models 1.5.36 → 1.5.37
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.js +3 -2
- package/dist/project/preview.js +1 -0
- package/dist/types/project/index.d.ts +1 -0
- package/dist/types/project/preview.d.ts +1 -0
- package/package.json +1 -1
- package/project/index.ts +5 -4
- package/project/preview.ts +1 -0
- package/types/project/index.ts +1 -0
- package/types/project/preview.ts +1 -0
package/dist/project/index.js
CHANGED
|
@@ -94,7 +94,7 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
94
94
|
from: mongoose_1.Schema.Types.ObjectId,
|
|
95
95
|
container_stats_schedule_id: {
|
|
96
96
|
type: String,
|
|
97
|
-
default: null
|
|
97
|
+
default: null,
|
|
98
98
|
},
|
|
99
99
|
previews: [
|
|
100
100
|
{
|
|
@@ -106,6 +106,7 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
106
106
|
type: Number,
|
|
107
107
|
default: 3,
|
|
108
108
|
},
|
|
109
|
-
specs: Object
|
|
109
|
+
specs: Object,
|
|
110
|
+
last_requested: mongoose_1.Schema.Types.Date,
|
|
110
111
|
}, { timestamps: true });
|
|
111
112
|
exports.default = (0, mongoose_1.model)("Project", projectSchema);
|
package/dist/project/preview.js
CHANGED
package/package.json
CHANGED
package/project/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
1
|
+
import { model, Schema, } from "mongoose";
|
|
2
2
|
import { PROJECT_STATUS } from "../enum";
|
|
3
3
|
import { IProject } from "../types";
|
|
4
4
|
|
|
@@ -94,8 +94,8 @@ const projectSchema = new Schema(
|
|
|
94
94
|
tracking_token: String,
|
|
95
95
|
from: Schema.Types.ObjectId,
|
|
96
96
|
container_stats_schedule_id: {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
type: String,
|
|
98
|
+
default: null,
|
|
99
99
|
},
|
|
100
100
|
previews: [
|
|
101
101
|
{
|
|
@@ -107,7 +107,8 @@ const projectSchema = new Schema(
|
|
|
107
107
|
type: Number,
|
|
108
108
|
default: 3,
|
|
109
109
|
},
|
|
110
|
-
specs: Object
|
|
110
|
+
specs: Object,
|
|
111
|
+
last_requested: Schema.Types.Date,
|
|
111
112
|
},
|
|
112
113
|
{ timestamps: true },
|
|
113
114
|
);
|
package/project/preview.ts
CHANGED
package/types/project/index.ts
CHANGED