@brimble/models 3.8.19 → 3.8.20

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.
@@ -238,7 +238,7 @@ const projectSchema = new mongoose_1.Schema({
238
238
  type: String,
239
239
  required: false,
240
240
  },
241
- volume_id: {
241
+ volume: {
242
242
  type: mongoose_1.Schema.Types.ObjectId,
243
243
  ref: "Volume",
244
244
  default: null,
@@ -1,4 +1,4 @@
1
- import { Document, Types } from "mongoose";
1
+ import { Document } from "mongoose";
2
2
  import { GIT_TYPE, PROJECT_STATUS, ServiceType } from "../../enum";
3
3
  import { IDomain } from "../domain";
4
4
  import { IEnv } from "../env";
@@ -11,6 +11,7 @@ import { IDbImage } from "../db-image";
11
11
  import { IAutoScalingGroup } from "../auto-scaling-group";
12
12
  import { IProjectEnvironment } from "../project-environment";
13
13
  import { IRegion } from "../region";
14
+ import { IVolume } from "../volume";
14
15
  export interface IProject extends Document {
15
16
  name: string;
16
17
  healthCheckPath?: string;
@@ -94,5 +95,5 @@ export interface IProject extends Document {
94
95
  whiteListedIps?: string[];
95
96
  diskSize?: number;
96
97
  volumeMount: string;
97
- volume_id: Types.ObjectId | null;
98
+ volume: IVolume | null;
98
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.19",
3
+ "version": "3.8.20",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -238,7 +238,7 @@ const projectSchema = new Schema(
238
238
  type: String,
239
239
  required: false,
240
240
  },
241
- volume_id: {
241
+ volume: {
242
242
  type: Schema.Types.ObjectId,
243
243
  ref: "Volume",
244
244
  default: null,
@@ -11,6 +11,7 @@ import { IDbImage } from "../db-image";
11
11
  import { IAutoScalingGroup } from "../auto-scaling-group";
12
12
  import { IProjectEnvironment } from "../project-environment";
13
13
  import { IRegion } from "../region";
14
+ import { IVolume } from "../volume";
14
15
 
15
16
  export interface IProject extends Document {
16
17
  name: string;
@@ -95,5 +96,5 @@ export interface IProject extends Document {
95
96
  whiteListedIps?: string[];
96
97
  diskSize?: number;
97
98
  volumeMount: string;
98
- volume_id: Types.ObjectId | null;
99
+ volume: IVolume | null;
99
100
  }