@brimble/models 2.4.78 → 2.4.80

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,7 +1,8 @@
1
1
  export declare enum GIT_TYPE {
2
2
  GITHUB = "GITHUB",
3
3
  GITLAB = "GITLAB",
4
- BITBUCKET = "BITBUCKET"
4
+ BITBUCKET = "BITBUCKET",
5
+ DOCKER = "DOCKER"
5
6
  }
6
7
  export declare enum REQUEST_TYPE {
7
8
  GET = "GET",
@@ -6,6 +6,7 @@ var GIT_TYPE;
6
6
  GIT_TYPE["GITHUB"] = "GITHUB";
7
7
  GIT_TYPE["GITLAB"] = "GITLAB";
8
8
  GIT_TYPE["BITBUCKET"] = "BITBUCKET";
9
+ GIT_TYPE["DOCKER"] = "DOCKER";
9
10
  })(GIT_TYPE = exports.GIT_TYPE || (exports.GIT_TYPE = {}));
10
11
  var REQUEST_TYPE;
11
12
  (function (REQUEST_TYPE) {
@@ -19,6 +19,10 @@ const projectSchema = new mongoose_1.Schema({
19
19
  type: String,
20
20
  required: false,
21
21
  },
22
+ healthCheckPath: {
23
+ type: String,
24
+ required: false
25
+ },
22
26
  domains: [
23
27
  {
24
28
  ref: "Domain",
@@ -12,6 +12,10 @@ const previewsSchema = new mongoose_1.Schema({
12
12
  ref: "Server",
13
13
  type: mongoose_1.Schema.Types.ObjectId,
14
14
  },
15
+ healthCheckPath: {
16
+ type: String,
17
+ required: false
18
+ },
15
19
  pid: Number,
16
20
  port: Number,
17
21
  ip: String,
@@ -11,6 +11,7 @@ import { IDbImage } from "../db-image";
11
11
  import { IAutoScalingGroup } from "../auto-scaling-group";
12
12
  export interface IProject extends Document {
13
13
  name: string;
14
+ healthCheckPath?: string;
14
15
  domains: Array<IDomain>;
15
16
  environments: Array<IEnv>;
16
17
  uuid: number;
@@ -5,6 +5,7 @@ import { PROJECT_STATUS } from "../../enum";
5
5
  import { ILog } from "../logs";
6
6
  export interface IPreview extends Document {
7
7
  name: string;
8
+ healthCheckPath?: string;
8
9
  pid: number;
9
10
  port: number;
10
11
  ip: string;
package/enum/index.ts CHANGED
@@ -2,6 +2,7 @@ export enum GIT_TYPE {
2
2
  GITHUB = "GITHUB",
3
3
  GITLAB = "GITLAB",
4
4
  BITBUCKET = "BITBUCKET",
5
+ DOCKER = "DOCKER"
5
6
  }
6
7
 
7
8
  export enum REQUEST_TYPE {
package/env.ts CHANGED
@@ -30,4 +30,4 @@ const envSchema = new Schema(
30
30
  { timestamps: true },
31
31
  );
32
32
 
33
- export default model<IEnv>("Env", envSchema);
33
+ export default model<IEnv>("Env", envSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.4.78",
3
+ "version": "2.4.80",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -19,6 +19,10 @@ const projectSchema = new Schema(
19
19
  type: String,
20
20
  required: false,
21
21
  },
22
+ healthCheckPath: {
23
+ type: String,
24
+ required: false
25
+ },
22
26
  domains: [
23
27
  {
24
28
  ref: "Domain",
@@ -13,6 +13,10 @@ const previewsSchema = new Schema(
13
13
  ref: "Server",
14
14
  type: Schema.Types.ObjectId,
15
15
  },
16
+ healthCheckPath: {
17
+ type: String,
18
+ required: false
19
+ },
16
20
  pid: Number,
17
21
  port: Number,
18
22
  ip: String,
@@ -12,6 +12,7 @@ import { IAutoScalingGroup } from "../auto-scaling-group";
12
12
 
13
13
  export interface IProject extends Document {
14
14
  name: string;
15
+ healthCheckPath?: string;
15
16
  domains: Array<IDomain>;
16
17
  environments: Array<IEnv>;
17
18
  uuid: number;
@@ -6,6 +6,7 @@ import { ILog } from "../logs";
6
6
 
7
7
  export interface IPreview extends Document {
8
8
  name: string;
9
+ healthCheckPath?: string;
9
10
  pid: number;
10
11
  port: number;
11
12
  ip: string;