@brimble/models 1.5.33 → 1.5.35

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.
File without changes
package/brimble.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "project": {}
3
+ }
@@ -43,7 +43,8 @@ export declare enum PROJECT_STATUS {
43
43
  INPROGRESS = "INPROGRESS",
44
44
  FAILED = "FAILED",
45
45
  PENDING = "PENDING",
46
- CANCELLED = "CANCELLED"
46
+ CANCELLED = "CANCELLED",
47
+ PAYMENT = "PAYMENT DUE"
47
48
  }
48
49
  export declare enum SUBSCRIPTION_STATUS {
49
50
  ACTIVE = "active",
@@ -54,6 +54,7 @@ var PROJECT_STATUS;
54
54
  PROJECT_STATUS["FAILED"] = "FAILED";
55
55
  PROJECT_STATUS["PENDING"] = "PENDING";
56
56
  PROJECT_STATUS["CANCELLED"] = "CANCELLED";
57
+ PROJECT_STATUS["PAYMENT"] = "PAYMENT DUE";
57
58
  })(PROJECT_STATUS = exports.PROJECT_STATUS || (exports.PROJECT_STATUS = {}));
58
59
  var SUBSCRIPTION_STATUS;
59
60
  (function (SUBSCRIPTION_STATUS) {
@@ -80,6 +80,10 @@ const projectSchema = new mongoose_1.Schema({
80
80
  type: Boolean,
81
81
  default: false,
82
82
  },
83
+ disabled: {
84
+ type: Boolean,
85
+ default: false,
86
+ },
83
87
  password: {
84
88
  type: String,
85
89
  default: null,
@@ -40,6 +40,7 @@ export interface IProject extends Document {
40
40
  log: ILog;
41
41
  maintenance: boolean;
42
42
  passwordEnabled: boolean;
43
+ disabled: boolean;
43
44
  password: string | null;
44
45
  screenshot: string;
45
46
  createdAt: Date;
@@ -50,7 +51,7 @@ export interface IProject extends Document {
50
51
  previews: IPreview[];
51
52
  replicas: number;
52
53
  specs: {
53
- cpu: number;
54
54
  memory: number;
55
+ cpu: number;
55
56
  };
56
57
  }
package/dist/user.js CHANGED
@@ -32,7 +32,7 @@ const userSchema = new mongoose_1.Schema({
32
32
  },
33
33
  tenant: { type: mongoose_1.Schema.Types.ObjectId, ref: "Tenancy", required: false },
34
34
  is_waitlist: { type: Boolean, default: true },
35
- notifications: Object
35
+ notifications: Object,
36
36
  }, {
37
37
  timestamps: {
38
38
  createdAt: "created_at",
package/enum/index.ts CHANGED
@@ -50,6 +50,7 @@ export enum PROJECT_STATUS {
50
50
  FAILED = "FAILED",
51
51
  PENDING = "PENDING",
52
52
  CANCELLED = "CANCELLED",
53
+ PAYMENT = "PAYMENT DUE",
53
54
  }
54
55
 
55
56
  export enum SUBSCRIPTION_STATUS {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.5.33",
3
+ "version": "1.5.35",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -81,6 +81,10 @@ const projectSchema = new Schema(
81
81
  type: Boolean,
82
82
  default: false,
83
83
  },
84
+ disabled: {
85
+ type: Boolean,
86
+ default: false,
87
+ },
84
88
  password: {
85
89
  type: String,
86
90
  default: null,
@@ -41,6 +41,7 @@ export interface IProject extends Document {
41
41
  log: ILog;
42
42
  maintenance: boolean;
43
43
  passwordEnabled: boolean;
44
+ disabled: boolean;
44
45
  password: string | null;
45
46
  screenshot: string;
46
47
  createdAt: Date;
@@ -51,7 +52,7 @@ export interface IProject extends Document {
51
52
  previews: IPreview[];
52
53
  replicas: number;
53
54
  specs: {
54
- cpu: number;
55
55
  memory: number;
56
- }
56
+ cpu: number;
57
+ };
57
58
  }
package/user.ts CHANGED
@@ -34,7 +34,7 @@ const userSchema: Schema = new Schema(
34
34
  },
35
35
  tenant: { type: Schema.Types.ObjectId, ref: "Tenancy", required: false },
36
36
  is_waitlist: { type: Boolean, default: true },
37
- notifications: Object
37
+ notifications: Object,
38
38
  },
39
39
  {
40
40
  timestamps: {