@brimble/models 2.4.1 → 2.4.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.
Files changed (58) hide show
  1. package/auto-scaling.ts +72 -0
  2. package/db-image.ts +6 -6
  3. package/dist/auto-scaling.d.ts +56 -0
  4. package/dist/auto-scaling.js +63 -0
  5. package/dist/domain/index.js +3 -3
  6. package/dist/enum/index.d.ts +12 -0
  7. package/dist/enum/index.js +15 -1
  8. package/dist/index.d.ts +3 -2
  9. package/dist/index.js +3 -1
  10. package/dist/job.js +1 -1
  11. package/dist/license.js +19 -17
  12. package/dist/logs.js +2 -2
  13. package/dist/member-permission.js +3 -3
  14. package/dist/member.js +1 -1
  15. package/dist/permission.js +2 -2
  16. package/dist/plan_configuration.d.ts +2 -2
  17. package/dist/plan_configuration.js +6 -2
  18. package/dist/project/index.js +5 -1
  19. package/dist/role.js +1 -1
  20. package/dist/server.js +5 -5
  21. package/dist/subscription.js +4 -4
  22. package/dist/team.js +2 -2
  23. package/dist/types/auto-scaling-group.d.ts +17 -0
  24. package/dist/types/auto-scaling-group.js +2 -0
  25. package/dist/types/index.d.ts +1 -0
  26. package/dist/types/project/index.d.ts +1 -0
  27. package/dist/user.js +2 -2
  28. package/dist/wallet.js +2 -2
  29. package/domain/index.ts +3 -3
  30. package/enum/index.ts +37 -23
  31. package/index.ts +6 -4
  32. package/job.ts +2 -3
  33. package/license.ts +57 -52
  34. package/logs.ts +2 -2
  35. package/member-permission.ts +7 -4
  36. package/member.ts +1 -1
  37. package/package.json +1 -1
  38. package/permission.ts +6 -6
  39. package/plan_configuration.ts +32 -21
  40. package/project/index.ts +5 -1
  41. package/role.ts +5 -5
  42. package/server.ts +8 -8
  43. package/subscription.ts +5 -5
  44. package/team.ts +2 -2
  45. package/types/auto-scaling-group.ts +18 -0
  46. package/types/db-image.ts +9 -9
  47. package/types/index.ts +3 -2
  48. package/types/job.ts +16 -16
  49. package/types/license.ts +14 -15
  50. package/types/member-permission.ts +4 -4
  51. package/types/plan_configuration.ts +16 -17
  52. package/types/project/index.ts +1 -0
  53. package/types/role.ts +5 -5
  54. package/types/server.ts +2 -2
  55. package/types/subscription.ts +1 -1
  56. package/types/user.ts +1 -1
  57. package/user.ts +2 -2
  58. 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
- 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
- }
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
+ }
@@ -72,5 +72,6 @@ export interface IProject extends Document {
72
72
  serviceType?: ServiceType;
73
73
  last_backup_url?: string;
74
74
  last_backup_at?: Date;
75
+ replica_ready: boolean;
75
76
  isPaid: boolean;
76
77
  }
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
- type: ROLES;
6
+ type: ROLES;
7
7
 
8
- description?: string;
8
+ description?: string;
9
9
 
10
- is_custom?: boolean;
10
+ is_custom?: boolean;
11
11
 
12
- permissions: IPermission[];
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;
@@ -24,4 +24,4 @@ export interface ISubscription extends Document {
24
24
  specifications: {
25
25
  [key: string]: any;
26
26
  };
27
- }
27
+ }
package/types/user.ts CHANGED
@@ -31,5 +31,5 @@ export interface IUser extends Document {
31
31
  notifications: {
32
32
  email: boolean;
33
33
  mute: boolean;
34
- }
34
+ };
35
35
  }
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
- balance: {
7
- type: Number,
8
- required: true
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);