@brimble/models 2.4.1 → 2.4.2
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/auto-scaling.ts +72 -0
- package/db-image.ts +6 -6
- package/dist/auto-scaling.d.ts +56 -0
- package/dist/auto-scaling.js +63 -0
- package/dist/domain/index.js +3 -3
- package/dist/enum/index.d.ts +12 -0
- package/dist/enum/index.js +15 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -1
- package/dist/job.js +1 -1
- package/dist/license.js +19 -17
- package/dist/logs.js +2 -2
- package/dist/member-permission.js +3 -3
- package/dist/member.js +1 -1
- package/dist/permission.js +2 -2
- package/dist/plan_configuration.d.ts +2 -2
- package/dist/plan_configuration.js +6 -2
- package/dist/project/index.js +1 -1
- package/dist/role.js +1 -1
- package/dist/server.js +5 -5
- package/dist/subscription.js +4 -4
- package/dist/team.js +2 -2
- package/dist/types/auto-scaling-group.d.ts +15 -0
- package/dist/types/auto-scaling-group.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/user.js +2 -2
- package/dist/wallet.js +2 -2
- package/domain/index.ts +3 -3
- package/enum/index.ts +37 -23
- package/index.ts +6 -4
- package/job.ts +2 -3
- package/license.ts +57 -52
- package/logs.ts +2 -2
- package/member-permission.ts +7 -4
- package/member.ts +1 -1
- package/package.json +1 -1
- package/permission.ts +6 -6
- package/plan_configuration.ts +32 -21
- package/project/index.ts +1 -1
- package/role.ts +5 -5
- package/server.ts +8 -8
- package/subscription.ts +5 -5
- package/team.ts +2 -2
- package/types/auto-scaling-group.ts +16 -0
- package/types/db-image.ts +9 -9
- package/types/index.ts +3 -2
- package/types/job.ts +16 -16
- package/types/license.ts +14 -15
- package/types/member-permission.ts +4 -4
- package/types/plan_configuration.ts +16 -17
- package/types/role.ts +5 -5
- package/types/server.ts +2 -2
- package/types/subscription.ts +1 -1
- package/types/user.ts +1 -1
- package/user.ts +2 -2
- package/wallet.ts +6 -8
|
@@ -2,20 +2,19 @@ import { Document } from "mongoose";
|
|
|
2
2
|
import { SUBSCRIPTION_PLAN_TYPE } from "../enum";
|
|
3
3
|
|
|
4
4
|
export interface IPlanConfiguration extends Document {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
tag: string;
|
|
6
|
+
slack_support: boolean;
|
|
7
|
+
concurrent_builds: number;
|
|
8
|
+
project_limit: number;
|
|
9
|
+
deploy_private_organization: boolean;
|
|
10
|
+
preview_comments: boolean;
|
|
11
|
+
analytics: boolean;
|
|
12
|
+
build_minutes: number;
|
|
13
|
+
log_retention: number;
|
|
14
|
+
bandwidth: number;
|
|
15
|
+
plan_type: SUBSCRIPTION_PLAN_TYPE;
|
|
16
|
+
memory: number;
|
|
17
|
+
build_timeout: number;
|
|
18
|
+
storage: number;
|
|
19
|
+
cpu: number;
|
|
20
|
+
}
|
package/types/role.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { ROLES } from "../enum";
|
|
|
3
3
|
import { IPermission } from "./permission";
|
|
4
4
|
|
|
5
5
|
export interface IRole extends Document {
|
|
6
|
-
|
|
6
|
+
type: ROLES;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
description?: string;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
is_custom?: boolean;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
}
|
|
12
|
+
permissions: IPermission[];
|
|
13
|
+
}
|
package/types/server.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface IServer extends Document {
|
|
|
8
8
|
|
|
9
9
|
grpc_address?: string;
|
|
10
10
|
|
|
11
|
-
ipv6?: string
|
|
11
|
+
ipv6?: string;
|
|
12
12
|
|
|
13
13
|
userId: mongoose.Types.ObjectId;
|
|
14
14
|
|
|
@@ -17,7 +17,7 @@ export interface IServer extends Document {
|
|
|
17
17
|
ip_address: string;
|
|
18
18
|
|
|
19
19
|
private_ip_address: string;
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
tunnel_token: string;
|
|
22
22
|
|
|
23
23
|
type: string;
|
package/types/subscription.ts
CHANGED
package/types/user.ts
CHANGED
package/user.ts
CHANGED
|
@@ -35,14 +35,14 @@ const userSchema: Schema = new Schema(
|
|
|
35
35
|
build_disabled: {
|
|
36
36
|
type: Boolean,
|
|
37
37
|
default: false,
|
|
38
|
-
required: false
|
|
38
|
+
required: false,
|
|
39
39
|
},
|
|
40
40
|
tenant: { type: Schema.Types.ObjectId, ref: "Tenancy", required: false },
|
|
41
41
|
is_waitlist: { type: Boolean, default: true },
|
|
42
42
|
spending_limit: { type: Number },
|
|
43
43
|
notifications: Object,
|
|
44
44
|
disabled: Boolean,
|
|
45
|
-
disabled_at: Date
|
|
45
|
+
disabled_at: Date,
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
timestamps: {
|
package/wallet.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { model, Schema } from "mongoose";
|
|
2
2
|
import { IWallet } from "./types/wallet";
|
|
3
3
|
|
|
4
|
-
const walletSchema: Schema = new Schema(
|
|
5
|
-
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
);
|
|
4
|
+
const walletSchema: Schema = new Schema({
|
|
5
|
+
balance: {
|
|
6
|
+
type: Number,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
});
|
|
12
10
|
|
|
13
11
|
export default model<IWallet>("Wallet", walletSchema);
|