@brimble/models 1.5.26 → 1.5.27

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.
@@ -20,7 +20,7 @@ const projectSchema = new mongoose_1.Schema({
20
20
  },
21
21
  monitor_id: {
22
22
  type: String,
23
- required: false
23
+ required: false,
24
24
  },
25
25
  domains: [
26
26
  {
@@ -94,5 +94,9 @@ const projectSchema = new mongoose_1.Schema({
94
94
  type: mongoose_1.Schema.Types.ObjectId,
95
95
  },
96
96
  ],
97
+ replicas: {
98
+ type: Number,
99
+ default: 3,
100
+ },
97
101
  }, { timestamps: true });
98
102
  exports.default = (0, mongoose_1.model)("Project", projectSchema);
@@ -48,4 +48,5 @@ export interface IProject extends Document {
48
48
  tracking_token: string;
49
49
  from: string;
50
50
  previews: IPreview[];
51
+ replicas: number;
51
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.5.26",
3
+ "version": "1.5.27",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -21,7 +21,7 @@ const projectSchema = new Schema(
21
21
  },
22
22
  monitor_id: {
23
23
  type: String,
24
- required: false
24
+ required: false,
25
25
  },
26
26
  domains: [
27
27
  {
@@ -95,6 +95,10 @@ const projectSchema = new Schema(
95
95
  type: Schema.Types.ObjectId,
96
96
  },
97
97
  ],
98
+ replicas: {
99
+ type: Number,
100
+ default: 3,
101
+ },
98
102
  },
99
103
  { timestamps: true },
100
104
  );
@@ -49,4 +49,5 @@ export interface IProject extends Document {
49
49
  tracking_token: string;
50
50
  from: string;
51
51
  previews: IPreview[];
52
+ replicas: number;
52
53
  }