@brimble/models 1.6.6 → 1.6.7
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/.turbo/turbo-build.log +0 -0
- package/brimble.json +3 -0
- package/dist/project/index.js +3 -1
- package/dist/project/preview.js +1 -0
- package/dist/server.js +3 -7
- package/dist/types/project/index.d.ts +3 -1
- package/dist/types/project/preview.d.ts +1 -0
- package/package.json +1 -1
- package/project/index.ts +3 -2
- package/types/project/index.ts +5 -4
package/.turbo/turbo-build.log
CHANGED
|
File without changes
|
package/brimble.json
ADDED
package/dist/project/index.js
CHANGED
|
@@ -46,9 +46,10 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
46
46
|
port: Number,
|
|
47
47
|
ip: String,
|
|
48
48
|
dir: String,
|
|
49
|
+
installCommand: String,
|
|
49
50
|
buildCommand: String,
|
|
51
|
+
startCommand: String,
|
|
50
52
|
outputDirectory: String,
|
|
51
|
-
installCommand: String,
|
|
52
53
|
repo: Object,
|
|
53
54
|
rootDir: String,
|
|
54
55
|
isPrivate: {
|
|
@@ -111,5 +112,6 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
111
112
|
},
|
|
112
113
|
specs: Object,
|
|
113
114
|
last_requested: mongoose_1.Schema.Types.Date,
|
|
115
|
+
isPaused: Boolean,
|
|
114
116
|
}, { timestamps: true });
|
|
115
117
|
exports.default = (0, mongoose_1.model)("Project", projectSchema);
|
package/dist/project/preview.js
CHANGED
|
@@ -28,5 +28,6 @@ const previewsSchema = new mongoose_1.Schema({
|
|
|
28
28
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
29
29
|
},
|
|
30
30
|
last_requested: mongoose_1.Schema.Types.Date,
|
|
31
|
+
isPaused: Boolean,
|
|
31
32
|
}, { timestamps: true });
|
|
32
33
|
exports.default = (0, mongoose_1.model)("Preview", previewsSchema);
|
package/dist/server.js
CHANGED
|
@@ -4,18 +4,14 @@ const mongoose_1 = require("mongoose");
|
|
|
4
4
|
const enum_1 = require("./enum");
|
|
5
5
|
const serverSchema = new mongoose_1.Schema({
|
|
6
6
|
name: {
|
|
7
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
-
ref: "User",
|
|
9
|
-
required: true,
|
|
10
|
-
},
|
|
11
|
-
url: {
|
|
12
7
|
type: String,
|
|
13
8
|
required: true,
|
|
14
9
|
},
|
|
15
10
|
ip_address: {
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
18
13
|
},
|
|
14
|
+
url: String,
|
|
19
15
|
server_type: String,
|
|
20
16
|
status: {
|
|
21
17
|
type: String,
|
|
@@ -16,9 +16,10 @@ export interface IProject extends Document {
|
|
|
16
16
|
port: number;
|
|
17
17
|
ip: string;
|
|
18
18
|
dir: string;
|
|
19
|
+
installCommand: string;
|
|
19
20
|
buildCommand: string;
|
|
21
|
+
startCommand: string;
|
|
20
22
|
outputDirectory: string;
|
|
21
|
-
installCommand: string;
|
|
22
23
|
user_id: IUser;
|
|
23
24
|
monitor_id: string;
|
|
24
25
|
repo: {
|
|
@@ -59,4 +60,5 @@ export interface IProject extends Document {
|
|
|
59
60
|
cpu: number;
|
|
60
61
|
};
|
|
61
62
|
last_requested: Date;
|
|
63
|
+
isPaused: boolean;
|
|
62
64
|
}
|
package/package.json
CHANGED
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
|
|
|
@@ -47,9 +47,10 @@ const projectSchema = new Schema(
|
|
|
47
47
|
port: Number,
|
|
48
48
|
ip: String,
|
|
49
49
|
dir: String,
|
|
50
|
+
installCommand: String,
|
|
50
51
|
buildCommand: String,
|
|
52
|
+
startCommand: String,
|
|
51
53
|
outputDirectory: String,
|
|
52
|
-
installCommand: String,
|
|
53
54
|
repo: Object,
|
|
54
55
|
rootDir: String,
|
|
55
56
|
isPrivate: {
|
package/types/project/index.ts
CHANGED
|
@@ -17,9 +17,10 @@ export interface IProject extends Document {
|
|
|
17
17
|
port: number;
|
|
18
18
|
ip: string;
|
|
19
19
|
dir: string;
|
|
20
|
+
installCommand: string;
|
|
20
21
|
buildCommand: string;
|
|
22
|
+
startCommand: string;
|
|
21
23
|
outputDirectory: string;
|
|
22
|
-
installCommand: string;
|
|
23
24
|
user_id: IUser;
|
|
24
25
|
monitor_id: string;
|
|
25
26
|
repo: {
|
|
@@ -44,9 +45,9 @@ export interface IProject extends Document {
|
|
|
44
45
|
disabled: boolean;
|
|
45
46
|
password: string | null;
|
|
46
47
|
screenshot: {
|
|
47
|
-
image: string
|
|
48
|
-
public_id: string
|
|
49
|
-
}
|
|
48
|
+
image: string;
|
|
49
|
+
public_id: string;
|
|
50
|
+
};
|
|
50
51
|
createdAt: Date;
|
|
51
52
|
updatedAt: Date;
|
|
52
53
|
container_stats_schedule_id: string | null;
|