@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.
@@ -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",
@@ -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) {
@@ -171,7 +171,7 @@ const projectSchema = new mongoose_1.Schema({
171
171
  type: Boolean,
172
172
  default: false,
173
173
  },
174
- persistentDiskSize: {
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
- volumeMounts: {
212
- type: Array,
213
- default: [],
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
- persistentDiskSize?: number;
90
- volumeMounts: string[];
88
+ diskSize?: number;
89
+ volumeMount: string;
91
90
  }
package/enum/index.ts CHANGED
@@ -60,8 +60,7 @@ export enum PROJECT_STATUS {
60
60
  PENDING = "PENDING",
61
61
  CANCELLED = "CANCELLED",
62
62
  DEGRADED = "DEGRADED",
63
- PAYMENT = "PAYMENT DUE",
64
- REPLICA_SETUP = "REPLICA_SETUP",
63
+ PAYMENT = "PAYMENT DUE"
65
64
  }
66
65
 
67
66
  export enum SUBSCRIPTION_STATUS {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.8.5",
3
+ "version": "2.8.7",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -171,7 +171,7 @@ const projectSchema = new Schema(
171
171
  type: Boolean,
172
172
  default: false,
173
173
  },
174
- persistentDiskSize: {
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
- volumeMounts: {
212
- type: Array,
213
- default: [],
211
+ volumeMount: {
212
+ type: String,
213
+ required: false,
214
214
  },
215
215
  },
216
216
  { timestamps: true },
@@ -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
- persistentDiskSize?: number;
91
- volumeMounts: string[];
89
+ diskSize?: number;
90
+ volumeMount: string;
92
91
  }