@brimble/models 1.5.37 → 1.5.38
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 +6 -4
- package/dist/project/preview.js +0 -1
- package/dist/types/project/index.d.ts +4 -2
- package/dist/types/project/preview.d.ts +0 -1
- package/dist/types/server.d.ts +0 -1
- package/package.json +2 -2
- package/project/index.ts +8 -6
- package/project/preview.ts +0 -1
- package/types/project/index.ts +4 -2
- package/types/project/preview.ts +0 -1
- package/types/server.ts +0 -2
- package/.turbo/turbo-build.log +0 -1
- package/brimble.json +0 -3
package/dist/project/index.js
CHANGED
|
@@ -88,13 +88,16 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
88
88
|
type: String,
|
|
89
89
|
default: null,
|
|
90
90
|
},
|
|
91
|
-
screenshot:
|
|
91
|
+
screenshot: {
|
|
92
|
+
image: String,
|
|
93
|
+
public_id: String,
|
|
94
|
+
},
|
|
92
95
|
lastProcessed: Number,
|
|
93
96
|
tracking_token: String,
|
|
94
97
|
from: mongoose_1.Schema.Types.ObjectId,
|
|
95
98
|
container_stats_schedule_id: {
|
|
96
99
|
type: String,
|
|
97
|
-
default: null
|
|
100
|
+
default: null
|
|
98
101
|
},
|
|
99
102
|
previews: [
|
|
100
103
|
{
|
|
@@ -106,7 +109,6 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
106
109
|
type: Number,
|
|
107
110
|
default: 3,
|
|
108
111
|
},
|
|
109
|
-
specs: Object
|
|
110
|
-
last_requested: mongoose_1.Schema.Types.Date,
|
|
112
|
+
specs: Object
|
|
111
113
|
}, { timestamps: true });
|
|
112
114
|
exports.default = (0, mongoose_1.model)("Project", projectSchema);
|
package/dist/project/preview.js
CHANGED
|
@@ -42,7 +42,10 @@ export interface IProject extends Document {
|
|
|
42
42
|
passwordEnabled: boolean;
|
|
43
43
|
disabled: boolean;
|
|
44
44
|
password: string | null;
|
|
45
|
-
screenshot:
|
|
45
|
+
screenshot: {
|
|
46
|
+
image: string;
|
|
47
|
+
public_id: string;
|
|
48
|
+
};
|
|
46
49
|
createdAt: Date;
|
|
47
50
|
updatedAt: Date;
|
|
48
51
|
container_stats_schedule_id: string | null;
|
|
@@ -55,5 +58,4 @@ export interface IProject extends Document {
|
|
|
55
58
|
memory: number;
|
|
56
59
|
cpu: number;
|
|
57
60
|
};
|
|
58
|
-
last_requested: Date;
|
|
59
61
|
}
|
package/dist/types/server.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brimble/models",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.38",
|
|
4
4
|
"description": "Brimble models",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@brimble/utils": "^1.5.
|
|
12
|
+
"@brimble/utils": "^1.5.23",
|
|
13
13
|
"dotenv": "^8.2.0",
|
|
14
14
|
"mongoose": "^5.8.11",
|
|
15
15
|
"uuid": "^8.3.2"
|
package/project/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { model, Schema
|
|
1
|
+
import { model, Schema } from "mongoose";
|
|
2
2
|
import { PROJECT_STATUS } from "../enum";
|
|
3
3
|
import { IProject } from "../types";
|
|
4
4
|
|
|
@@ -89,13 +89,16 @@ const projectSchema = new Schema(
|
|
|
89
89
|
type: String,
|
|
90
90
|
default: null,
|
|
91
91
|
},
|
|
92
|
-
screenshot:
|
|
92
|
+
screenshot: {
|
|
93
|
+
image: String,
|
|
94
|
+
public_id: String,
|
|
95
|
+
},
|
|
93
96
|
lastProcessed: Number,
|
|
94
97
|
tracking_token: String,
|
|
95
98
|
from: Schema.Types.ObjectId,
|
|
96
99
|
container_stats_schedule_id: {
|
|
97
|
-
|
|
98
|
-
|
|
100
|
+
type: String,
|
|
101
|
+
default: null
|
|
99
102
|
},
|
|
100
103
|
previews: [
|
|
101
104
|
{
|
|
@@ -107,8 +110,7 @@ const projectSchema = new Schema(
|
|
|
107
110
|
type: Number,
|
|
108
111
|
default: 3,
|
|
109
112
|
},
|
|
110
|
-
specs: Object
|
|
111
|
-
last_requested: Schema.Types.Date,
|
|
113
|
+
specs: Object
|
|
112
114
|
},
|
|
113
115
|
{ timestamps: true },
|
|
114
116
|
);
|
package/project/preview.ts
CHANGED
package/types/project/index.ts
CHANGED
|
@@ -43,7 +43,10 @@ export interface IProject extends Document {
|
|
|
43
43
|
passwordEnabled: boolean;
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
password: string | null;
|
|
46
|
-
screenshot:
|
|
46
|
+
screenshot: {
|
|
47
|
+
image: string,
|
|
48
|
+
public_id: string,
|
|
49
|
+
},
|
|
47
50
|
createdAt: Date;
|
|
48
51
|
updatedAt: Date;
|
|
49
52
|
container_stats_schedule_id: string | null;
|
|
@@ -56,5 +59,4 @@ export interface IProject extends Document {
|
|
|
56
59
|
memory: number;
|
|
57
60
|
cpu: number;
|
|
58
61
|
};
|
|
59
|
-
last_requested: Date;
|
|
60
62
|
}
|
package/types/project/preview.ts
CHANGED
package/types/server.ts
CHANGED
package/.turbo/turbo-build.log
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ rm -rf dist && tsc -p .
|
package/brimble.json
DELETED