@brimble/models 2.8.5 → 2.8.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/dist/enum/index.d.ts +1 -2
- package/dist/enum/index.js +0 -1
- package/dist/project/index.js +4 -4
- package/dist/types/project/index.d.ts +2 -3
- package/enum/index.ts +1 -2
- package/package.json +1 -1
- package/project/index.ts +4 -4
- package/types/project/index.ts +2 -3
package/dist/enum/index.d.ts
CHANGED
|
@@ -53,8 +53,7 @@ export declare enum PROJECT_STATUS {
|
|
|
53
53
|
PENDING = "PENDING",
|
|
54
54
|
CANCELLED = "CANCELLED",
|
|
55
55
|
DEGRADED = "DEGRADED",
|
|
56
|
-
PAYMENT = "PAYMENT DUE"
|
|
57
|
-
REPLICA_SETUP = "REPLICA_SETUP"
|
|
56
|
+
PAYMENT = "PAYMENT DUE"
|
|
58
57
|
}
|
|
59
58
|
export declare enum SUBSCRIPTION_STATUS {
|
|
60
59
|
ACTIVE = "active",
|
package/dist/enum/index.js
CHANGED
|
@@ -65,7 +65,6 @@ var PROJECT_STATUS;
|
|
|
65
65
|
PROJECT_STATUS["CANCELLED"] = "CANCELLED";
|
|
66
66
|
PROJECT_STATUS["DEGRADED"] = "DEGRADED";
|
|
67
67
|
PROJECT_STATUS["PAYMENT"] = "PAYMENT DUE";
|
|
68
|
-
PROJECT_STATUS["REPLICA_SETUP"] = "REPLICA_SETUP";
|
|
69
68
|
})(PROJECT_STATUS = exports.PROJECT_STATUS || (exports.PROJECT_STATUS = {}));
|
|
70
69
|
var SUBSCRIPTION_STATUS;
|
|
71
70
|
(function (SUBSCRIPTION_STATUS) {
|
package/dist/project/index.js
CHANGED
|
@@ -171,7 +171,7 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
171
171
|
type: Boolean,
|
|
172
172
|
default: false,
|
|
173
173
|
},
|
|
174
|
-
|
|
174
|
+
diskSize: {
|
|
175
175
|
type: Number,
|
|
176
176
|
default: 0,
|
|
177
177
|
},
|
|
@@ -208,9 +208,9 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
208
208
|
type: String,
|
|
209
209
|
default: null,
|
|
210
210
|
},
|
|
211
|
-
|
|
212
|
-
type:
|
|
213
|
-
|
|
211
|
+
volumeMount: {
|
|
212
|
+
type: String,
|
|
213
|
+
required: false,
|
|
214
214
|
},
|
|
215
215
|
}, { timestamps: true });
|
|
216
216
|
exports.default = (0, mongoose_1.model)("Project", projectSchema);
|
|
@@ -30,7 +30,6 @@ export interface IProject extends Document {
|
|
|
30
30
|
outputDirectory: string;
|
|
31
31
|
user_id: IUser;
|
|
32
32
|
monitor_id: string;
|
|
33
|
-
diskSize?: number;
|
|
34
33
|
nomadJobId: string;
|
|
35
34
|
repo: {
|
|
36
35
|
name: string;
|
|
@@ -86,6 +85,6 @@ export interface IProject extends Document {
|
|
|
86
85
|
isPaid: boolean;
|
|
87
86
|
hasUpdates?: boolean;
|
|
88
87
|
whiteListedIps?: string[];
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
diskSize?: number;
|
|
89
|
+
volumeMount: string;
|
|
91
90
|
}
|
package/enum/index.ts
CHANGED
package/package.json
CHANGED
package/project/index.ts
CHANGED
|
@@ -171,7 +171,7 @@ const projectSchema = new Schema(
|
|
|
171
171
|
type: Boolean,
|
|
172
172
|
default: false,
|
|
173
173
|
},
|
|
174
|
-
|
|
174
|
+
diskSize: {
|
|
175
175
|
type: Number,
|
|
176
176
|
default: 0,
|
|
177
177
|
},
|
|
@@ -208,9 +208,9 @@ const projectSchema = new Schema(
|
|
|
208
208
|
type: String,
|
|
209
209
|
default: null,
|
|
210
210
|
},
|
|
211
|
-
|
|
212
|
-
type:
|
|
213
|
-
|
|
211
|
+
volumeMount: {
|
|
212
|
+
type: String,
|
|
213
|
+
required: false,
|
|
214
214
|
},
|
|
215
215
|
},
|
|
216
216
|
{ timestamps: true },
|
package/types/project/index.ts
CHANGED
|
@@ -31,7 +31,6 @@ export interface IProject extends Document {
|
|
|
31
31
|
outputDirectory: string;
|
|
32
32
|
user_id: IUser;
|
|
33
33
|
monitor_id: string;
|
|
34
|
-
diskSize?: number;
|
|
35
34
|
nomadJobId: string;
|
|
36
35
|
repo: {
|
|
37
36
|
name: string;
|
|
@@ -87,6 +86,6 @@ export interface IProject extends Document {
|
|
|
87
86
|
isPaid: boolean;
|
|
88
87
|
hasUpdates?: boolean;
|
|
89
88
|
whiteListedIps?: string[];
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
diskSize?: number;
|
|
90
|
+
volumeMount: string;
|
|
92
91
|
}
|