@brimble/models 1.5.4 → 1.5.5
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 +3 -5
- package/dist/types/env.d.ts +1 -4
- package/dist/types/logs.d.ts +1 -3
- package/dist/types/member.d.ts +1 -2
- package/dist/types/project.d.ts +2 -2
- package/dist/types/team.d.ts +1 -6
- package/dist/types/user.d.ts +2 -7
- package/package.json +1 -1
- package/types/domain.ts +3 -7
- package/types/env.ts +1 -2
- package/types/logs.ts +1 -2
- package/types/member.ts +1 -2
- package/types/project.ts +2 -2
- package/types/team.ts +2 -5
- package/types/user.ts +2 -5
package/dist/types/domain.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
|
-
import { IProject } from "./
|
|
3
|
-
export interface
|
|
2
|
+
import { IProject } from "./";
|
|
3
|
+
export interface IDomain extends Document {
|
|
4
4
|
name: string;
|
|
5
|
+
project: IProject;
|
|
5
6
|
user_id: string;
|
|
6
7
|
team_id: string;
|
|
7
8
|
primary: boolean;
|
|
@@ -12,6 +13,3 @@ export interface IDomainBase {
|
|
|
12
13
|
expiry: Date;
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
|
-
export interface IDomain extends Document, IDomainBase {
|
|
16
|
-
project: IProject;
|
|
17
|
-
}
|
package/dist/types/env.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { ENVIRONMENT } from "../enum";
|
|
3
|
-
import { IUser } from "./
|
|
3
|
+
import { IProject, IUser } from "./";
|
|
4
4
|
export interface IEnv extends Document {
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
@@ -8,6 +8,3 @@ export interface IEnv extends Document {
|
|
|
8
8
|
user: IUser;
|
|
9
9
|
environment: ENVIRONMENT;
|
|
10
10
|
}
|
|
11
|
-
interface IProject {
|
|
12
|
-
}
|
|
13
|
-
export {};
|
package/dist/types/logs.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { PROJECT_STATUS } from "../enum";
|
|
3
|
+
import { IProject } from "./project";
|
|
3
4
|
import { IUser } from "./user";
|
|
4
5
|
export interface ILog extends Document {
|
|
5
6
|
logFile: string;
|
|
@@ -26,6 +27,3 @@ export interface ILog extends Document {
|
|
|
26
27
|
createdAt: Date | string;
|
|
27
28
|
updatedAt: Date | string;
|
|
28
29
|
}
|
|
29
|
-
interface IProject {
|
|
30
|
-
}
|
|
31
|
-
export {};
|
package/dist/types/member.d.ts
CHANGED
package/dist/types/project.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { GIT_TYPE, PROJECT_STATUS } from "../enum";
|
|
3
|
-
import {
|
|
3
|
+
import { IDomain } from "./domain";
|
|
4
4
|
import { IEnv } from "./env";
|
|
5
5
|
import { ILog } from "./logs";
|
|
6
6
|
import { ITeam } from "./team";
|
|
@@ -8,7 +8,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<IDomain>;
|
|
12
12
|
environments: Array<IEnv>;
|
|
13
13
|
uuid: number;
|
|
14
14
|
pid: number;
|
package/dist/types/team.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
|
-
import { IMember } from "./
|
|
3
|
-
import { ITenancy } from "./tenancy";
|
|
4
|
-
import { ISubscription } from "./subscription";
|
|
2
|
+
import { IMember, IProject, ISubscription, ITenancy } from "./";
|
|
5
3
|
export interface ITeam extends Document {
|
|
6
4
|
name: string;
|
|
7
5
|
description: string;
|
|
@@ -12,6 +10,3 @@ export interface ITeam extends Document {
|
|
|
12
10
|
tenant: ITenancy;
|
|
13
11
|
subscription: ISubscription;
|
|
14
12
|
}
|
|
15
|
-
interface IProject {
|
|
16
|
-
}
|
|
17
|
-
export {};
|
package/dist/types/user.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
|
-
import { IGit } from "
|
|
3
|
-
import { IFollowing } from "./
|
|
4
|
-
import { ITeam } from "./team";
|
|
5
|
-
import { ITenancy } from "./tenancy";
|
|
2
|
+
import { IGit } from ".";
|
|
3
|
+
import { IFollowing, IProject, ITeam, ITenancy } from "./";
|
|
6
4
|
export interface IUser extends Document {
|
|
7
5
|
first_name: string;
|
|
8
6
|
last_name: string;
|
|
@@ -27,6 +25,3 @@ export interface IUser extends Document {
|
|
|
27
25
|
tenant: ITenancy;
|
|
28
26
|
is_waitlist: boolean;
|
|
29
27
|
}
|
|
30
|
-
interface IProject {
|
|
31
|
-
}
|
|
32
|
-
export {};
|
package/package.json
CHANGED
package/types/domain.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// domain.ts
|
|
2
1
|
import { Document } from "mongoose";
|
|
3
|
-
import { IProject } from "./
|
|
2
|
+
import { IProject } from "./";
|
|
4
3
|
|
|
5
|
-
export interface
|
|
4
|
+
export interface IDomain extends Document {
|
|
6
5
|
name: string;
|
|
6
|
+
project: IProject;
|
|
7
7
|
user_id: string;
|
|
8
8
|
team_id: string;
|
|
9
9
|
primary: boolean;
|
|
@@ -14,7 +14,3 @@ export interface IDomainBase {
|
|
|
14
14
|
expiry: Date;
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
export interface IDomain extends Document, IDomainBase {
|
|
19
|
-
project: IProject;
|
|
20
|
-
}
|
package/types/env.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { ENVIRONMENT } from "../enum";
|
|
3
|
-
import { IUser } from "./
|
|
3
|
+
import { IProject, IUser } from "./";
|
|
4
4
|
|
|
5
5
|
export interface IEnv extends Document {
|
|
6
6
|
name: string;
|
|
@@ -9,4 +9,3 @@ export interface IEnv extends Document {
|
|
|
9
9
|
user: IUser;
|
|
10
10
|
environment: ENVIRONMENT;
|
|
11
11
|
}
|
|
12
|
-
interface IProject {}
|
package/types/logs.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { PROJECT_STATUS } from "../enum";
|
|
3
|
+
import { IProject } from "./project";
|
|
3
4
|
import { IUser } from "./user";
|
|
4
5
|
|
|
5
6
|
export interface ILog extends Document {
|
|
@@ -27,5 +28,3 @@ export interface ILog extends Document {
|
|
|
27
28
|
createdAt: Date | string;
|
|
28
29
|
updatedAt: Date | string;
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
-
interface IProject {}
|
package/types/member.ts
CHANGED
package/types/project.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { GIT_TYPE, PROJECT_STATUS } from "../enum";
|
|
3
|
-
import {
|
|
3
|
+
import { IDomain } from "./domain";
|
|
4
4
|
import { IEnv } from "./env";
|
|
5
5
|
import { ILog } from "./logs";
|
|
6
6
|
import { ITeam } from "./team";
|
|
@@ -9,7 +9,7 @@ import { IServer } from "./server";
|
|
|
9
9
|
|
|
10
10
|
export interface IProject extends Document {
|
|
11
11
|
name: string;
|
|
12
|
-
domains: Array<
|
|
12
|
+
domains: Array<IDomain>;
|
|
13
13
|
environments: Array<IEnv>;
|
|
14
14
|
uuid: number;
|
|
15
15
|
pid: number;
|
package/types/team.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
|
-
import {
|
|
3
|
-
import { ITenancy } from "./tenancy";
|
|
4
|
-
import { ISubscription } from "./subscription";
|
|
2
|
+
import {IMember, IProject, ISubscription, ITenancy} from "./";
|
|
5
3
|
|
|
6
4
|
export interface ITeam extends Document {
|
|
7
5
|
name: string;
|
|
@@ -12,5 +10,4 @@ export interface ITeam extends Document {
|
|
|
12
10
|
isCreator: boolean;
|
|
13
11
|
tenant: ITenancy;
|
|
14
12
|
subscription: ISubscription;
|
|
15
|
-
}
|
|
16
|
-
interface IProject {}
|
|
13
|
+
}
|
package/types/user.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
|
-
import { IGit } from "
|
|
3
|
-
import { IFollowing } from "./
|
|
4
|
-
import { ITeam } from "./team";
|
|
5
|
-
import { ITenancy } from "./tenancy";
|
|
2
|
+
import { IGit } from ".";
|
|
3
|
+
import { IFollowing, IProject, ITeam, ITenancy } from "./";
|
|
6
4
|
|
|
7
5
|
export interface IUser extends Document {
|
|
8
6
|
first_name: string;
|
|
@@ -28,4 +26,3 @@ export interface IUser extends Document {
|
|
|
28
26
|
tenant: ITenancy;
|
|
29
27
|
is_waitlist: boolean;
|
|
30
28
|
}
|
|
31
|
-
interface IProject {}
|