@brimble/models 3.8.195 → 3.8.198

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.
@@ -389,7 +389,9 @@ const projectSchema = new mongoose_1.Schema({
389
389
  region: {
390
390
  type: mongoose_1.Schema.Types.ObjectId,
391
391
  ref: "Region",
392
- required: true,
392
+ required: function () {
393
+ return this.serviceType !== enum_1.ServiceType.Static;
394
+ },
393
395
  },
394
396
  },
395
397
  desiredSpecs: {
package/dist/team.js CHANGED
@@ -47,6 +47,14 @@ const teamSchema = new mongoose_1.Schema({
47
47
  type: Date,
48
48
  default: null,
49
49
  },
50
+ concurrent_builds: {
51
+ type: Number,
52
+ default: null,
53
+ },
54
+ max_concurrent_builds_per_project: {
55
+ type: Number,
56
+ default: null,
57
+ },
50
58
  spending_limit: {
51
59
  type: Number,
52
60
  },
@@ -41,7 +41,7 @@ export interface IProjectSpecs {
41
41
  memory: number;
42
42
  cpu: number;
43
43
  storage: number;
44
- region: IRegion;
44
+ region?: IRegion | Types.ObjectId;
45
45
  }
46
46
  export interface IDedicatedEgress {
47
47
  enabled: boolean;
@@ -14,6 +14,8 @@ export interface ITeam extends Document {
14
14
  build_minutes: number;
15
15
  build_minutes_last_reset_at: Date | null;
16
16
  build_minutes_cycle_anchor: Date | null;
17
+ concurrent_builds?: number | null;
18
+ max_concurrent_builds_per_project?: number | null;
17
19
  spending_limit: number;
18
20
  spending_limit_action: SPENDING_LIMIT_ACTION | null;
19
21
  spending_limit_breached_at: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.195",
3
+ "version": "3.8.198",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",