@brimble/models 2.6.3 → 2.6.5

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.
@@ -48,6 +48,7 @@ export declare enum PROJECT_STATUS {
48
48
  FAILED = "FAILED",
49
49
  PENDING = "PENDING",
50
50
  CANCELLED = "CANCELLED",
51
+ DEGRADED = "DEGRADED",
51
52
  PAYMENT = "PAYMENT DUE"
52
53
  }
53
54
  export declare enum SUBSCRIPTION_STATUS {
@@ -58,6 +58,7 @@ var PROJECT_STATUS;
58
58
  PROJECT_STATUS["FAILED"] = "FAILED";
59
59
  PROJECT_STATUS["PENDING"] = "PENDING";
60
60
  PROJECT_STATUS["CANCELLED"] = "CANCELLED";
61
+ PROJECT_STATUS["DEGRADED"] = "DEGRADED";
61
62
  PROJECT_STATUS["PAYMENT"] = "PAYMENT DUE";
62
63
  })(PROJECT_STATUS = exports.PROJECT_STATUS || (exports.PROJECT_STATUS = {}));
63
64
  var SUBSCRIPTION_STATUS;
package/dist/env.js CHANGED
@@ -25,5 +25,10 @@ const envSchema = new mongoose_1.Schema({
25
25
  default: enum_1.ENVIRONMENT.PRODUCTION,
26
26
  required: true,
27
27
  },
28
+ is_system: {
29
+ type: Boolean,
30
+ default: false,
31
+ required: false
32
+ },
28
33
  }, { timestamps: true });
29
34
  exports.default = (0, mongoose_1.model)("Env", envSchema);
@@ -149,10 +149,6 @@ const projectSchema = new mongoose_1.Schema({
149
149
  type: Boolean,
150
150
  default: false,
151
151
  },
152
- uri: {
153
- type: String,
154
- default: null,
155
- },
156
152
  last_backup_url: {
157
153
  type: String,
158
154
  default: null,
@@ -7,4 +7,5 @@ export interface IEnv extends Document {
7
7
  project: IProject;
8
8
  user: IUser;
9
9
  environment: ENVIRONMENT | string;
10
+ is_system?: boolean;
10
11
  }
@@ -75,7 +75,6 @@ export interface IProject extends Document {
75
75
  last_requested: Date;
76
76
  isPaused: boolean;
77
77
  billable: boolean;
78
- uri?: string;
79
78
  serviceType?: ServiceType;
80
79
  last_backup_url?: string;
81
80
  last_backup_at?: Date;
package/enum/index.ts CHANGED
@@ -54,6 +54,7 @@ export enum PROJECT_STATUS {
54
54
  FAILED = "FAILED",
55
55
  PENDING = "PENDING",
56
56
  CANCELLED = "CANCELLED",
57
+ DEGRADED = "DEGRADED",
57
58
  PAYMENT = "PAYMENT DUE",
58
59
  }
59
60
 
package/env.ts CHANGED
@@ -26,6 +26,11 @@ const envSchema = new Schema(
26
26
  default: ENVIRONMENT.PRODUCTION,
27
27
  required: true,
28
28
  },
29
+ is_system: {
30
+ type: Boolean,
31
+ default: false,
32
+ required: false
33
+ },
29
34
  },
30
35
  { timestamps: true },
31
36
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.6.3",
3
+ "version": "2.6.5",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -149,10 +149,6 @@ const projectSchema = new Schema(
149
149
  type: Boolean,
150
150
  default: false,
151
151
  },
152
- uri: {
153
- type: String,
154
- default: null,
155
- },
156
152
  last_backup_url: {
157
153
  type: String,
158
154
  default: null,
package/types/env.ts CHANGED
@@ -8,4 +8,5 @@ export interface IEnv extends Document {
8
8
  project: IProject;
9
9
  user: IUser;
10
10
  environment: ENVIRONMENT | string;
11
+ is_system?: boolean;
11
12
  }
@@ -76,7 +76,6 @@ export interface IProject extends Document {
76
76
  last_requested: Date;
77
77
  isPaused: boolean;
78
78
  billable: boolean;
79
- uri?: string;
80
79
  serviceType?: ServiceType;
81
80
  last_backup_url?: string;
82
81
  last_backup_at?: Date;