@brimble/models 2.6.7 → 2.6.9

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.
@@ -106,6 +106,10 @@ const projectSchema = new mongoose_1.Schema({
106
106
  image: String,
107
107
  public_id: String,
108
108
  },
109
+ hasUpdates: {
110
+ type: Boolean,
111
+ default: false
112
+ },
109
113
  lastProcessed: Number,
110
114
  tracking_token: String,
111
115
  from: mongoose_1.Schema.Types.ObjectId,
package/dist/region.js CHANGED
@@ -7,5 +7,6 @@ const regionSchema = new mongoose_1.Schema({
7
7
  country: { type: String, required: true },
8
8
  continent: { type: String, enum: Object.values(enum_1.REGION_CONTINENT) },
9
9
  enabled: { type: Boolean, default: false, select: true },
10
+ dbVolumePath: { type: String, required: true }
10
11
  });
11
12
  exports.default = (0, mongoose_1.model)("Region", regionSchema, "regions");
@@ -81,5 +81,6 @@ export interface IProject extends Document {
81
81
  replica_ready: boolean;
82
82
  autoscaling_group?: IAutoScalingGroup;
83
83
  isPaid: boolean;
84
+ hasUpdates?: boolean;
84
85
  whiteListedIps?: string[];
85
86
  }
@@ -4,4 +4,5 @@ export interface IRegion extends Document {
4
4
  country: string;
5
5
  continent?: REGION_CONTINENT;
6
6
  enabled?: boolean;
7
+ dbVolumePath: string;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.6.7",
3
+ "version": "2.6.9",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -106,6 +106,10 @@ const projectSchema = new Schema(
106
106
  image: String,
107
107
  public_id: String,
108
108
  },
109
+ hasUpdates: {
110
+ type: Boolean,
111
+ default: false
112
+ },
109
113
  lastProcessed: Number,
110
114
  tracking_token: String,
111
115
  from: Schema.Types.ObjectId,
package/region.ts CHANGED
@@ -7,6 +7,7 @@ const regionSchema = new Schema({
7
7
  country: { type: String, required: true },
8
8
  continent: { type: String, enum: Object.values(REGION_CONTINENT) },
9
9
  enabled: { type: Boolean, default: false, select: true },
10
+ dbVolumePath: {type: String, required: true}
10
11
  });
11
12
 
12
13
  export default model<IRegion>("Region", regionSchema, "regions");
@@ -82,5 +82,6 @@ export interface IProject extends Document {
82
82
  replica_ready: boolean;
83
83
  autoscaling_group?: IAutoScalingGroup;
84
84
  isPaid: boolean;
85
+ hasUpdates?: boolean;
85
86
  whiteListedIps?: string[];
86
87
  }
package/types/region.ts CHANGED
@@ -5,4 +5,5 @@ export interface IRegion extends Document {
5
5
  country: string;
6
6
  continent?: REGION_CONTINENT;
7
7
  enabled?: boolean;
8
+ dbVolumePath: string;
8
9
  }