@brimble/models 1.5.18 → 1.5.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.
@@ -1,3 +1,3 @@
1
1
  yarn run v1.22.19
2
2
  $ rm -rf dist && tsc -p .
3
- Done in 2.61s.
3
+ Done in 4.83s.
package/brimble.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "project": {}
3
+ }
package/dist/logs.js CHANGED
@@ -4,6 +4,7 @@ const mongoose_1 = require("mongoose");
4
4
  const enum_1 = require("./enum");
5
5
  const LogSchema = new mongoose_1.Schema({
6
6
  name: String,
7
+ key: String,
7
8
  commit: Object,
8
9
  status: {
9
10
  type: String,
@@ -16,5 +16,6 @@ const previewsSchema = new mongoose_1.Schema({
16
16
  ip: String,
17
17
  dir: String,
18
18
  branch: String,
19
+ vmName: String,
19
20
  }, { timestamps: true });
20
21
  exports.default = (0, mongoose_1.model)("Preview", previewsSchema);
@@ -3,8 +3,8 @@ import { ENVIRONMENT, PROJECT_STATUS } from "../enum";
3
3
  import { IProject } from "./project";
4
4
  import { IUser } from "./user";
5
5
  export interface ILog extends Document {
6
- logFile: string;
7
6
  name: string;
7
+ key: string;
8
8
  commit: {
9
9
  sha: string;
10
10
  branch: string;
@@ -18,6 +18,7 @@ export interface IProject extends Document {
18
18
  dir: string;
19
19
  buildCommand: string;
20
20
  outputDirectory: string;
21
+ installCommand: string;
21
22
  user_id: IUser;
22
23
  repo: {
23
24
  name: string;
@@ -10,4 +10,5 @@ export interface IPreview extends Document {
10
10
  branch: string;
11
11
  server: IServer;
12
12
  project: IProject;
13
+ vmName: string;
13
14
  }
package/logs.ts CHANGED
@@ -5,6 +5,7 @@ import { ILog } from "./types";
5
5
  const LogSchema = new Schema(
6
6
  {
7
7
  name: String,
8
+ key: String,
8
9
  commit: Object,
9
10
  status: {
10
11
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.5.18",
3
+ "version": "1.5.20",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,6 +17,7 @@ const previewsSchema = new Schema(
17
17
  ip: String,
18
18
  dir: String,
19
19
  branch: String,
20
+ vmName: String,
20
21
  },
21
22
  { timestamps: true },
22
23
  );
package/types/logs.ts CHANGED
@@ -4,8 +4,8 @@ import { IProject } from "./project";
4
4
  import { IUser } from "./user";
5
5
 
6
6
  export interface ILog extends Document {
7
- logFile: string;
8
7
  name: string;
8
+ key: string;
9
9
  commit: {
10
10
  sha: string;
11
11
  branch: string;
@@ -19,6 +19,7 @@ export interface IProject extends Document {
19
19
  dir: string;
20
20
  buildCommand: string;
21
21
  outputDirectory: string;
22
+ installCommand: string;
22
23
  user_id: IUser;
23
24
  repo: {
24
25
  name: string;
@@ -11,4 +11,5 @@ export interface IPreview extends Document {
11
11
  branch: string;
12
12
  server: IServer;
13
13
  project: IProject;
14
+ vmName: string;
14
15
  }