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