@brimble/models 1.5.22 → 1.5.23
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/.turbo/turbo-build.log +1 -0
- package/brimble.json +3 -0
- package/dist/enum/index.d.ts +0 -1
- package/dist/enum/index.js +0 -1
- package/dist/project/preview.js +10 -0
- package/dist/types/env.d.ts +1 -1
- package/dist/types/project/preview.d.ts +4 -0
- package/enum/index.ts +0 -1
- package/package.json +1 -1
- package/project/preview.ts +10 -0
- package/types/env.ts +1 -1
- package/types/project/preview.ts +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ rm -rf dist && tsc -p .
|
package/brimble.json
ADDED
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -9,7 +9,6 @@ var GIT_TYPE;
|
|
|
9
9
|
})(GIT_TYPE = exports.GIT_TYPE || (exports.GIT_TYPE = {}));
|
|
10
10
|
var ENVIRONMENT;
|
|
11
11
|
(function (ENVIRONMENT) {
|
|
12
|
-
ENVIRONMENT["DEVELOPMENT"] = "DEVELOPMENT";
|
|
13
12
|
ENVIRONMENT["PREVIEW"] = "PREVIEW";
|
|
14
13
|
ENVIRONMENT["PRODUCTION"] = "PRODUCTION";
|
|
15
14
|
})(ENVIRONMENT = exports.ENVIRONMENT || (exports.ENVIRONMENT = {}));
|
package/dist/project/preview.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
|
+
const enum_1 = require("../enum");
|
|
4
5
|
const previewsSchema = new mongoose_1.Schema({
|
|
5
6
|
name: String,
|
|
6
7
|
project: {
|
|
@@ -17,5 +18,14 @@ const previewsSchema = new mongoose_1.Schema({
|
|
|
17
18
|
dir: String,
|
|
18
19
|
branch: String,
|
|
19
20
|
issue_comment_id: Number,
|
|
21
|
+
status: {
|
|
22
|
+
type: String,
|
|
23
|
+
enum: Object.values(enum_1.PROJECT_STATUS),
|
|
24
|
+
default: enum_1.PROJECT_STATUS.PENDING,
|
|
25
|
+
},
|
|
26
|
+
log: {
|
|
27
|
+
ref: "Log",
|
|
28
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
29
|
+
},
|
|
20
30
|
}, { timestamps: true });
|
|
21
31
|
exports.default = (0, mongoose_1.model)("Preview", previewsSchema);
|
package/dist/types/env.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { IServer } from "../server";
|
|
3
3
|
import { IProject } from ".";
|
|
4
|
+
import { PROJECT_STATUS } from "../../enum";
|
|
5
|
+
import { ILog } from "../logs";
|
|
4
6
|
export interface IPreview extends Document {
|
|
5
7
|
name: string;
|
|
6
8
|
pid: number;
|
|
@@ -11,4 +13,6 @@ export interface IPreview extends Document {
|
|
|
11
13
|
server: IServer;
|
|
12
14
|
project: IProject;
|
|
13
15
|
issue_comment_id: number;
|
|
16
|
+
status: PROJECT_STATUS;
|
|
17
|
+
log: ILog;
|
|
14
18
|
}
|
package/enum/index.ts
CHANGED
package/package.json
CHANGED
package/project/preview.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema, model } from "mongoose";
|
|
2
2
|
import { IPreview } from "../types";
|
|
3
|
+
import { PROJECT_STATUS } from "../enum";
|
|
3
4
|
|
|
4
5
|
const previewsSchema = new Schema(
|
|
5
6
|
{
|
|
@@ -18,6 +19,15 @@ const previewsSchema = new Schema(
|
|
|
18
19
|
dir: String,
|
|
19
20
|
branch: String,
|
|
20
21
|
issue_comment_id: Number,
|
|
22
|
+
status: {
|
|
23
|
+
type: String,
|
|
24
|
+
enum: Object.values(PROJECT_STATUS),
|
|
25
|
+
default: PROJECT_STATUS.PENDING,
|
|
26
|
+
},
|
|
27
|
+
log: {
|
|
28
|
+
ref: "Log",
|
|
29
|
+
type: Schema.Types.ObjectId,
|
|
30
|
+
},
|
|
21
31
|
},
|
|
22
32
|
{ timestamps: true },
|
|
23
33
|
);
|
package/types/env.ts
CHANGED
package/types/project/preview.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { IServer } from "../server";
|
|
3
3
|
import { IProject } from ".";
|
|
4
|
+
import { PROJECT_STATUS } from "../../enum";
|
|
5
|
+
import { ILog } from "../logs";
|
|
4
6
|
|
|
5
7
|
export interface IPreview extends Document {
|
|
6
8
|
name: string;
|
|
@@ -12,4 +14,6 @@ export interface IPreview extends Document {
|
|
|
12
14
|
server: IServer;
|
|
13
15
|
project: IProject;
|
|
14
16
|
issue_comment_id: number;
|
|
17
|
+
status: PROJECT_STATUS;
|
|
18
|
+
log: ILog;
|
|
15
19
|
}
|