@brimble/models 1.3.8 → 1.3.11

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.
@@ -1,2 +1,2 @@
1
- @brimble/models:build: cache hit, replaying output 19130403943cff82
1
+ @brimble/models:build: cache hit, replaying output ce21049f602082b1
2
2
  @brimble/models:build: $ tsc -p .
package/brimble.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "project": {}
3
+ }
package/dist/env.js CHANGED
@@ -14,5 +14,10 @@ const envSchema = new mongoose_1.Schema({
14
14
  type: String,
15
15
  required: true,
16
16
  },
17
+ user: {
18
+ type: mongoose_1.Schema.Types.ObjectId,
19
+ ref: "User",
20
+ required: true,
21
+ }
17
22
  }, { timestamps: true });
18
23
  exports.default = mongoose_1.model("Env", envSchema);
@@ -15,7 +15,9 @@ const integrationSchema = new mongoose_1.Schema({
15
15
  },
16
16
  app_id: String,
17
17
  hook: String,
18
+ scope_description: String,
18
19
  reference: String,
19
20
  token: String,
21
+ extra: Object,
20
22
  }, { timestamps: true });
21
23
  exports.default = mongoose_1.model("Integration", integrationSchema);
@@ -1,7 +1,9 @@
1
1
  import { Document } from "mongoose";
2
2
  import { IProject } from "./project";
3
+ import { IUser } from "./user";
3
4
  export interface IEnv extends Document {
4
5
  name: string;
5
6
  value: string;
6
7
  project: IProject;
8
+ user: IUser;
7
9
  }
@@ -4,7 +4,9 @@ export interface IIntegration extends Document {
4
4
  user_id: string;
5
5
  app_id?: string;
6
6
  name: INTEGRATION_TYPE;
7
+ scope_description?: string;
7
8
  hook?: string;
8
9
  reference?: string;
9
10
  token?: string;
11
+ extra?: any;
10
12
  }
@@ -18,6 +18,7 @@ export interface IProject extends Document {
18
18
  full_name: string;
19
19
  id: number;
20
20
  branch: string;
21
+ deployment_id: number;
21
22
  };
22
23
  rootDir?: string;
23
24
  }
package/env.ts CHANGED
@@ -15,6 +15,11 @@ const envSchema = new Schema(
15
15
  type: String,
16
16
  required: true,
17
17
  },
18
+ user: {
19
+ type: Schema.Types.ObjectId,
20
+ ref: "User",
21
+ required: true,
22
+ }
18
23
  },
19
24
  { timestamps: true },
20
25
  );
package/integration.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { model, Schema } from "mongoose";
2
- import { GIT_TYPE, INTEGRATION_TYPE } from "./enum";
2
+ import { INTEGRATION_TYPE } from "./enum";
3
3
  import { IIntegration } from "./types";
4
4
 
5
5
  const integrationSchema: Schema = new Schema(
@@ -16,8 +16,10 @@ const integrationSchema: Schema = new Schema(
16
16
  },
17
17
  app_id: String,
18
18
  hook: String,
19
+ scope_description: String,
19
20
  reference: String,
20
21
  token: String,
22
+ extra: Object,
21
23
  },
22
24
  { timestamps: true },
23
25
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.3.8",
3
+ "version": "1.3.11",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,5 +43,5 @@
43
43
  "ts-node": "^8.10.2",
44
44
  "typescript": "^3.9.5"
45
45
  },
46
- "gitHead": "eeef00c1b6de43b7469df12cc3d317fa1b7fa4ae"
46
+ "gitHead": "fdbeabb61a5658821c2c6f12909881de5e00d0b9"
47
47
  }
package/types/env.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { Document } from "mongoose";
2
2
  import { IProject } from "./project";
3
+ import { IUser } from "./user";
3
4
 
4
5
  export interface IEnv extends Document {
5
6
  name: string;
6
7
  value: string;
7
8
  project: IProject;
9
+ user: IUser;
8
10
  }
@@ -8,9 +8,13 @@ export interface IIntegration extends Document {
8
8
 
9
9
  name: INTEGRATION_TYPE;
10
10
 
11
+ scope_description?: string;
12
+
11
13
  hook?: string;
12
14
 
13
15
  reference?: string;
14
16
 
15
17
  token?: string;
18
+
19
+ extra?: any;
16
20
  }
package/types/project.ts CHANGED
@@ -19,6 +19,7 @@ export interface IProject extends Document {
19
19
  full_name: string;
20
20
  id: number;
21
21
  branch: string;
22
+ deployment_id: number;
22
23
  };
23
24
  rootDir?: string;
24
25
  }