@brimble/models 1.3.7 → 1.3.10

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 29b510b8b7235235
2
2
  @brimble/models:build: $ tsc -p .
package/brimble.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "project": {}
3
+ }
@@ -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);
@@ -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/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.7",
3
+ "version": "1.3.10",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
  }