@brimble/models 2.7.9 → 2.8.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.js +20 -2
- package/dist/types/project/index.d.ts +2 -1
- package/package.json +1 -1
- package/project/index.ts +20 -2
- package/types/project/index.ts +2 -1
- package/.turbo/turbo-build.log +0 -1
- package/brimble.json +0 -3
package/dist/project/index.js
CHANGED
|
@@ -29,7 +29,7 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
29
29
|
},
|
|
30
30
|
buildCacheEnabled: {
|
|
31
31
|
type: Boolean,
|
|
32
|
-
default:
|
|
32
|
+
default: true,
|
|
33
33
|
},
|
|
34
34
|
domains: [
|
|
35
35
|
{
|
|
@@ -132,7 +132,25 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
132
132
|
default: 3,
|
|
133
133
|
},
|
|
134
134
|
nomadJobId: String,
|
|
135
|
-
specs:
|
|
135
|
+
specs: {
|
|
136
|
+
memory: {
|
|
137
|
+
type: Number,
|
|
138
|
+
default: 0.5,
|
|
139
|
+
},
|
|
140
|
+
cpu: {
|
|
141
|
+
type: Number,
|
|
142
|
+
default: 0.2,
|
|
143
|
+
},
|
|
144
|
+
storage: {
|
|
145
|
+
type: Number,
|
|
146
|
+
default: 1,
|
|
147
|
+
},
|
|
148
|
+
region: {
|
|
149
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
150
|
+
ref: "Region",
|
|
151
|
+
required: true,
|
|
152
|
+
},
|
|
153
|
+
},
|
|
136
154
|
last_requested: mongoose_1.Schema.Types.Date,
|
|
137
155
|
isPaused: Boolean,
|
|
138
156
|
dbImage: {
|
|
@@ -9,6 +9,7 @@ import { IServer } from "../server";
|
|
|
9
9
|
import { IPreview } from "./preview";
|
|
10
10
|
import { IDbImage } from "../db-image";
|
|
11
11
|
import { IAutoScalingGroup } from "../auto-scaling-group";
|
|
12
|
+
import { IRegion } from "../region";
|
|
12
13
|
export interface IProject extends Document {
|
|
13
14
|
name: string;
|
|
14
15
|
healthCheckPath?: string;
|
|
@@ -71,7 +72,7 @@ export interface IProject extends Document {
|
|
|
71
72
|
memory: number;
|
|
72
73
|
cpu: number;
|
|
73
74
|
storage: number;
|
|
74
|
-
region:
|
|
75
|
+
region: IRegion;
|
|
75
76
|
};
|
|
76
77
|
last_requested: Date;
|
|
77
78
|
isPaused: boolean;
|
package/package.json
CHANGED
package/project/index.ts
CHANGED
|
@@ -29,7 +29,7 @@ const projectSchema = new Schema(
|
|
|
29
29
|
},
|
|
30
30
|
buildCacheEnabled: {
|
|
31
31
|
type: Boolean,
|
|
32
|
-
default:
|
|
32
|
+
default: true,
|
|
33
33
|
},
|
|
34
34
|
domains: [
|
|
35
35
|
{
|
|
@@ -132,7 +132,25 @@ const projectSchema = new Schema(
|
|
|
132
132
|
default: 3,
|
|
133
133
|
},
|
|
134
134
|
nomadJobId: String,
|
|
135
|
-
specs:
|
|
135
|
+
specs: {
|
|
136
|
+
memory: {
|
|
137
|
+
type: Number,
|
|
138
|
+
default: 0.5,
|
|
139
|
+
},
|
|
140
|
+
cpu: {
|
|
141
|
+
type: Number,
|
|
142
|
+
default: 0.2,
|
|
143
|
+
},
|
|
144
|
+
storage: {
|
|
145
|
+
type: Number,
|
|
146
|
+
default: 1,
|
|
147
|
+
},
|
|
148
|
+
region: {
|
|
149
|
+
type: Schema.Types.ObjectId,
|
|
150
|
+
ref: "Region",
|
|
151
|
+
required: true,
|
|
152
|
+
},
|
|
153
|
+
},
|
|
136
154
|
last_requested: Schema.Types.Date,
|
|
137
155
|
isPaused: Boolean,
|
|
138
156
|
dbImage: {
|
package/types/project/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { IServer } from "../server";
|
|
|
9
9
|
import { IPreview } from "./preview";
|
|
10
10
|
import { IDbImage } from "../db-image";
|
|
11
11
|
import { IAutoScalingGroup } from "../auto-scaling-group";
|
|
12
|
+
import { IRegion } from "../region";
|
|
12
13
|
|
|
13
14
|
export interface IProject extends Document {
|
|
14
15
|
name: string;
|
|
@@ -72,7 +73,7 @@ export interface IProject extends Document {
|
|
|
72
73
|
memory: number;
|
|
73
74
|
cpu: number;
|
|
74
75
|
storage: number;
|
|
75
|
-
region:
|
|
76
|
+
region: IRegion;
|
|
76
77
|
};
|
|
77
78
|
last_requested: Date;
|
|
78
79
|
isPaused: boolean;
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ rm -rf dist && tsc -p .
|
package/brimble.json
DELETED