@brimble/models 1.5.3 → 1.5.4
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/types/logs.d.ts +6 -6
- package/dist/types/project.d.ts +3 -3
- package/package.json +1 -1
- package/types/logs.ts +6 -7
- package/types/project.ts +3 -3
package/dist/types/logs.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { PROJECT_STATUS } from "../enum";
|
|
3
3
|
import { IUser } from "./user";
|
|
4
|
-
|
|
5
|
-
export interface ILogBase {
|
|
4
|
+
export interface ILog extends Document {
|
|
6
5
|
logFile: string;
|
|
7
6
|
name: string;
|
|
8
7
|
commit: {
|
|
@@ -15,6 +14,9 @@ export interface ILogBase {
|
|
|
15
14
|
username: string;
|
|
16
15
|
};
|
|
17
16
|
};
|
|
17
|
+
status: PROJECT_STATUS;
|
|
18
|
+
project: IProject;
|
|
19
|
+
user?: IUser;
|
|
18
20
|
jobs: {
|
|
19
21
|
id: number;
|
|
20
22
|
name: string;
|
|
@@ -24,8 +26,6 @@ export interface ILogBase {
|
|
|
24
26
|
createdAt: Date | string;
|
|
25
27
|
updatedAt: Date | string;
|
|
26
28
|
}
|
|
27
|
-
|
|
28
|
-
status: PROJECT_STATUS;
|
|
29
|
-
project: IProject;
|
|
30
|
-
user?: IUser;
|
|
29
|
+
interface IProject {
|
|
31
30
|
}
|
|
31
|
+
export {};
|
package/dist/types/project.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Document } from "mongoose";
|
|
|
2
2
|
import { GIT_TYPE, PROJECT_STATUS } from "../enum";
|
|
3
3
|
import { IDomainBase } from "./domain";
|
|
4
4
|
import { IEnv } from "./env";
|
|
5
|
-
import {
|
|
5
|
+
import { ILog } from "./logs";
|
|
6
6
|
import { ITeam } from "./team";
|
|
7
7
|
import { IUser } from "./user";
|
|
8
8
|
import { IServer } from "./server";
|
|
@@ -33,8 +33,8 @@ export interface IProject extends Document {
|
|
|
33
33
|
status: PROJECT_STATUS;
|
|
34
34
|
framework: string;
|
|
35
35
|
description: string;
|
|
36
|
-
logs: Array<
|
|
37
|
-
log:
|
|
36
|
+
logs: Array<ILog>;
|
|
37
|
+
log: ILog;
|
|
38
38
|
maintenance: boolean;
|
|
39
39
|
passwordEnabled: boolean;
|
|
40
40
|
password: string | null;
|
package/package.json
CHANGED
package/types/logs.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { PROJECT_STATUS } from "../enum";
|
|
3
3
|
import { IUser } from "./user";
|
|
4
|
-
import { IProject } from "./project";
|
|
5
4
|
|
|
6
|
-
export interface
|
|
5
|
+
export interface ILog extends Document {
|
|
7
6
|
logFile: string;
|
|
8
7
|
name: string;
|
|
9
8
|
commit: {
|
|
@@ -16,6 +15,9 @@ export interface ILogBase {
|
|
|
16
15
|
username: string;
|
|
17
16
|
};
|
|
18
17
|
};
|
|
18
|
+
status: PROJECT_STATUS;
|
|
19
|
+
project: IProject;
|
|
20
|
+
user?: IUser;
|
|
19
21
|
jobs: {
|
|
20
22
|
id: number;
|
|
21
23
|
name: string;
|
|
@@ -25,8 +27,5 @@ export interface ILogBase {
|
|
|
25
27
|
createdAt: Date | string;
|
|
26
28
|
updatedAt: Date | string;
|
|
27
29
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
project: IProject;
|
|
31
|
-
user?: IUser;
|
|
32
|
-
}
|
|
30
|
+
|
|
31
|
+
interface IProject {}
|
package/types/project.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Document } from "mongoose";
|
|
|
2
2
|
import { GIT_TYPE, PROJECT_STATUS } from "../enum";
|
|
3
3
|
import { IDomainBase } from "./domain";
|
|
4
4
|
import { IEnv } from "./env";
|
|
5
|
-
import {
|
|
5
|
+
import { ILog } from "./logs";
|
|
6
6
|
import { ITeam } from "./team";
|
|
7
7
|
import { IUser } from "./user";
|
|
8
8
|
import { IServer } from "./server";
|
|
@@ -34,8 +34,8 @@ export interface IProject extends Document {
|
|
|
34
34
|
status: PROJECT_STATUS;
|
|
35
35
|
framework: string;
|
|
36
36
|
description: string;
|
|
37
|
-
logs: Array<
|
|
38
|
-
log:
|
|
37
|
+
logs: Array<ILog>;
|
|
38
|
+
log: ILog;
|
|
39
39
|
maintenance: boolean;
|
|
40
40
|
passwordEnabled: boolean;
|
|
41
41
|
password: string | null;
|