@brimble/models 2.4.2 → 2.4.4

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.
@@ -141,6 +141,15 @@ const projectSchema = new mongoose_1.Schema({
141
141
  type: Date,
142
142
  default: null,
143
143
  },
144
+ replica_ready: {
145
+ type: Boolean,
146
+ default: false
147
+ },
148
+ autoscaling_group: {
149
+ ref: "AutoScalingGroup",
150
+ type: mongoose_1.Schema.Types.ObjectId,
151
+ required: false,
152
+ }
144
153
  }, { timestamps: true });
145
154
  exports.default = (0, mongoose_1.model)("Project", projectSchema);
146
155
  exports.DeletedProject = (0, mongoose_1.model)("DeletedProject", projectSchema);
@@ -9,6 +9,8 @@ export interface IAutoScalingGroup extends Document {
9
9
  max_containers: number;
10
10
  min_application_response_time: number;
11
11
  active: boolean;
12
+ max_cpu: number;
13
+ max_memory: number;
12
14
  meta: Record<string, any>;
13
15
  createdAt: Date;
14
16
  updatedAt: Date;
@@ -1,4 +1,4 @@
1
- import { Document } from "mongoose";
1
+ import { Document, Types } from "mongoose";
2
2
  import { GIT_TYPE, PROJECT_STATUS, ServiceType } from "../../enum";
3
3
  import { IDomain } from "../domain";
4
4
  import { IEnv } from "../env";
@@ -71,5 +71,7 @@ export interface IProject extends Document {
71
71
  serviceType?: ServiceType;
72
72
  last_backup_url?: string;
73
73
  last_backup_at?: Date;
74
+ replica_ready: boolean;
75
+ autoscaling_group: Types.ObjectId;
74
76
  isPaid: boolean;
75
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -141,6 +141,15 @@ const projectSchema = new Schema(
141
141
  type: Date,
142
142
  default: null,
143
143
  },
144
+ replica_ready: {
145
+ type: Boolean,
146
+ default: false
147
+ },
148
+ autoscaling_group: {
149
+ ref: "AutoScalingGroup",
150
+ type: Schema.Types.ObjectId,
151
+ required: false,
152
+ }
144
153
  },
145
154
  { timestamps: true },
146
155
  );
@@ -10,6 +10,8 @@ export interface IAutoScalingGroup extends Document {
10
10
  max_containers: number;
11
11
  min_application_response_time: number;
12
12
  active: boolean;
13
+ max_cpu: number;
14
+ max_memory: number;
13
15
  meta: Record<string, any>;
14
16
  createdAt: Date;
15
17
  updatedAt: Date;
@@ -1,4 +1,4 @@
1
- import { Document } from "mongoose";
1
+ import { Document, Types } from "mongoose";
2
2
  import { GIT_TYPE, PROJECT_STATUS, ServiceType } from "../../enum";
3
3
  import { IDomain } from "../domain";
4
4
  import { IEnv } from "../env";
@@ -72,5 +72,7 @@ export interface IProject extends Document {
72
72
  serviceType?: ServiceType;
73
73
  last_backup_url?: string;
74
74
  last_backup_at?: Date;
75
+ replica_ready: boolean;
76
+ autoscaling_group: Types.ObjectId;
75
77
  isPaid: boolean;
76
78
  }