@brimble/models 1.5.20 → 1.5.22

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.
package/dist/logs.js CHANGED
@@ -19,6 +19,10 @@ const LogSchema = new mongoose_1.Schema({
19
19
  ref: "User",
20
20
  type: mongoose_1.Schema.Types.ObjectId,
21
21
  },
22
+ preview: {
23
+ ref: "Preview",
24
+ type: mongoose_1.Schema.Types.ObjectId,
25
+ },
22
26
  environment: {
23
27
  type: String,
24
28
  enum: Object.values(enum_1.ENVIRONMENT),
@@ -18,6 +18,10 @@ const projectSchema = new mongoose_1.Schema({
18
18
  ref: "User",
19
19
  required: true,
20
20
  },
21
+ monitor_id: {
22
+ type: String,
23
+ required: false
24
+ },
21
25
  domains: [
22
26
  {
23
27
  ref: "Domain",
@@ -16,6 +16,6 @@ const previewsSchema = new mongoose_1.Schema({
16
16
  ip: String,
17
17
  dir: String,
18
18
  branch: String,
19
- vmName: String,
19
+ issue_comment_id: Number,
20
20
  }, { timestamps: true });
21
21
  exports.default = (0, mongoose_1.model)("Preview", previewsSchema);
@@ -2,6 +2,7 @@ import { Document } from "mongoose";
2
2
  import { ENVIRONMENT, PROJECT_STATUS } from "../enum";
3
3
  import { IProject } from "./project";
4
4
  import { IUser } from "./user";
5
+ import { IPreview } from "./project/preview";
5
6
  export interface ILog extends Document {
6
7
  name: string;
7
8
  key: string;
@@ -23,6 +24,7 @@ export interface ILog extends Document {
23
24
  name: string;
24
25
  }[];
25
26
  environment: ENVIRONMENT;
27
+ preview: IPreview;
26
28
  startTime: Date | string;
27
29
  endTime: Date | string;
28
30
  createdAt: Date | string;
@@ -20,6 +20,7 @@ export interface IProject extends Document {
20
20
  outputDirectory: string;
21
21
  installCommand: string;
22
22
  user_id: IUser;
23
+ monitor_id: string;
23
24
  repo: {
24
25
  name: string;
25
26
  full_name: string;
@@ -10,5 +10,5 @@ export interface IPreview extends Document {
10
10
  branch: string;
11
11
  server: IServer;
12
12
  project: IProject;
13
- vmName: string;
13
+ issue_comment_id: number;
14
14
  }
package/logs.ts CHANGED
@@ -20,6 +20,10 @@ const LogSchema = new Schema(
20
20
  ref: "User",
21
21
  type: Schema.Types.ObjectId,
22
22
  },
23
+ preview: {
24
+ ref: "Preview",
25
+ type: Schema.Types.ObjectId,
26
+ },
23
27
  environment: {
24
28
  type: String,
25
29
  enum: Object.values(ENVIRONMENT),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.5.20",
3
+ "version": "1.5.22",
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
  ref: "User",
20
20
  required: true,
21
21
  },
22
+ monitor_id: {
23
+ type: String,
24
+ required: false
25
+ },
22
26
  domains: [
23
27
  {
24
28
  ref: "Domain",
@@ -17,7 +17,7 @@ const previewsSchema = new Schema(
17
17
  ip: String,
18
18
  dir: String,
19
19
  branch: String,
20
- vmName: String,
20
+ issue_comment_id: Number,
21
21
  },
22
22
  { timestamps: true },
23
23
  );
package/types/logs.ts CHANGED
@@ -2,6 +2,7 @@ import { Document } from "mongoose";
2
2
  import { ENVIRONMENT, PROJECT_STATUS } from "../enum";
3
3
  import { IProject } from "./project";
4
4
  import { IUser } from "./user";
5
+ import { IPreview } from "./project/preview";
5
6
 
6
7
  export interface ILog extends Document {
7
8
  name: string;
@@ -24,6 +25,7 @@ export interface ILog extends Document {
24
25
  name: string;
25
26
  }[];
26
27
  environment: ENVIRONMENT;
28
+ preview: IPreview;
27
29
  startTime: Date | string;
28
30
  endTime: Date | string;
29
31
  createdAt: Date | string;
@@ -21,6 +21,7 @@ export interface IProject extends Document {
21
21
  outputDirectory: string;
22
22
  installCommand: string;
23
23
  user_id: IUser;
24
+ monitor_id: string;
24
25
  repo: {
25
26
  name: string;
26
27
  full_name: string;
@@ -11,5 +11,5 @@ export interface IPreview extends Document {
11
11
  branch: string;
12
12
  server: IServer;
13
13
  project: IProject;
14
- vmName: string;
14
+ issue_comment_id: number;
15
15
  }
@@ -1,3 +0,0 @@
1
- yarn run v1.22.19
2
- $ rm -rf dist && tsc -p .
3
- Done in 4.83s.
package/brimble.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "project": {}
3
- }