@ludeo/cloud-common 1.2.102 → 1.2.104

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 (34) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/v4/events/build-assignment-failed.d.ts +13 -0
  3. package/dist/v4/events/build-assignment-failed.js +50 -0
  4. package/dist/v4/events/build-assignment-failed.js.map +1 -0
  5. package/dist/v4/events/build-assignment-started.d.ts +2 -3
  6. package/dist/v4/events/build-assignment-started.js +2 -8
  7. package/dist/v4/events/build-assignment-started.js.map +1 -1
  8. package/dist/v4/events/index.d.ts +2 -0
  9. package/dist/v4/events/index.js +2 -0
  10. package/dist/v4/events/index.js.map +1 -1
  11. package/dist/v4/events/pool-status.d.ts +3 -1
  12. package/dist/v4/events/pool-status.js +8 -0
  13. package/dist/v4/events/pool-status.js.map +1 -1
  14. package/dist/v4/events/pools-build-assignment-failed.d.ts +13 -0
  15. package/dist/v4/events/pools-build-assignment-failed.js +50 -0
  16. package/dist/v4/events/pools-build-assignment-failed.js.map +1 -0
  17. package/dist/v4/types/build.d.ts +7 -2
  18. package/dist/v4/types/build.js +4 -1
  19. package/dist/v4/types/build.js.map +1 -1
  20. package/dist/v4/types/pools/configuration/base.d.ts +1 -1
  21. package/dist/v4/types/pools/configuration/base.js +1 -1
  22. package/dist/v4/types/pools/configuration/base.js.map +1 -1
  23. package/dist/v4/types/pools/pool.d.ts +3 -0
  24. package/dist/v4/types/pools/pool.js +14 -1
  25. package/dist/v4/types/pools/pool.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/v4/events/build-assignment-failed.ts +32 -0
  28. package/src/v4/events/build-assignment-started.ts +2 -6
  29. package/src/v4/events/index.ts +2 -0
  30. package/src/v4/events/pool-status.ts +9 -1
  31. package/src/v4/events/pools-build-assignment-failed.ts +35 -0
  32. package/src/v4/types/build.ts +8 -2
  33. package/src/v4/types/pools/configuration/base.ts +1 -1
  34. package/src/v4/types/pools/pool.ts +19 -1
@@ -0,0 +1,13 @@
1
+ import { BuildContext } from "../contexts/build-context";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class BuildAssignmentFailedPayload {
4
+ buildId: string;
5
+ envId: string;
6
+ error?: string;
7
+ }
8
+ export declare class BuildAssignmentFailed extends LudeoEvent {
9
+ static readonly EVENT_NAME = "cloud-builds.build-assignment-failed";
10
+ constructor(payload: BuildAssignmentFailedPayload, context: BuildContext);
11
+ context: BuildContext;
12
+ payload: BuildAssignmentFailedPayload;
13
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BuildAssignmentFailed = exports.BuildAssignmentFailedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const build_context_1 = require("../contexts/build-context");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const ludeo_event_1 = require("../../infra/ludeo-event");
17
+ class BuildAssignmentFailedPayload {
18
+ }
19
+ exports.BuildAssignmentFailedPayload = BuildAssignmentFailedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], BuildAssignmentFailedPayload.prototype, "buildId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], BuildAssignmentFailedPayload.prototype, "envId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", String)
32
+ ], BuildAssignmentFailedPayload.prototype, "error", void 0);
33
+ class BuildAssignmentFailed extends ludeo_event_1.LudeoEvent {
34
+ constructor(payload, context) {
35
+ super(BuildAssignmentFailed.EVENT_NAME);
36
+ this.payload = payload;
37
+ this.context = context;
38
+ }
39
+ }
40
+ exports.BuildAssignmentFailed = BuildAssignmentFailed;
41
+ BuildAssignmentFailed.EVENT_NAME = "cloud-builds.build-assignment-failed";
42
+ __decorate([
43
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
44
+ __metadata("design:type", build_context_1.BuildContext)
45
+ ], BuildAssignmentFailed.prototype, "context", void 0);
46
+ __decorate([
47
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildAssignmentFailedPayload),
48
+ __metadata("design:type", BuildAssignmentFailedPayload)
49
+ ], BuildAssignmentFailed.prototype, "payload", void 0);
50
+ //# sourceMappingURL=build-assignment-failed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-assignment-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-assignment-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,4BAA4B;CAUxC;AAVD,oEAUC;AARC;IADC,IAAA,wBAAM,GAAE;;6DACO;AAGhB;IADC,IAAA,wBAAM,GAAE;;2DACK;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACE;AAGjB,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YAAY,OAAqC,EAAE,OAAqB;QACtE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sDAcC;AAbiB,gCAAU,GAAG,sCAAsC,CAAC;AASpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;sDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
@@ -1,12 +1,11 @@
1
1
  import { BuildContext } from "../contexts/build-context";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { BuildVersionMeta, RolloutConfig, BuildAssignmentCase, BuildAssignmentProvidersSettings } from "../types/build";
3
+ import { BuildVersionMeta, RolloutConfig, BuildAssignmentCase, BuildAssignmentProvidersSettings, MinorBuildsRollout } from "../types/build";
4
4
  export declare class BuildAssignmentStartedPayload {
5
5
  envId: string;
6
6
  targetBuild: BuildVersionMeta;
7
- previousBuild?: BuildVersionMeta;
8
7
  rolloutConfigTargetBuild: RolloutConfig;
9
- rolloutConfigPreviousBuild?: RolloutConfig;
8
+ minorBuildsRollout?: MinorBuildsRollout[];
10
9
  assignmentProvidersSettings?: BuildAssignmentProvidersSettings;
11
10
  buildAssignmentCase: BuildAssignmentCase;
12
11
  friendlyName: string;
@@ -26,20 +26,14 @@ __decorate([
26
26
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.BuildVersionMeta),
27
27
  __metadata("design:type", build_1.BuildVersionMeta)
28
28
  ], BuildAssignmentStartedPayload.prototype, "targetBuild", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsOptional)(),
31
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.BuildVersionMeta),
32
- __metadata("design:type", build_1.BuildVersionMeta)
33
- ], BuildAssignmentStartedPayload.prototype, "previousBuild", void 0);
34
29
  __decorate([
35
30
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.RolloutConfig),
36
31
  __metadata("design:type", build_1.RolloutConfig)
37
32
  ], BuildAssignmentStartedPayload.prototype, "rolloutConfigTargetBuild", void 0);
38
33
  __decorate([
39
34
  (0, class_validator_1.IsOptional)(),
40
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.RolloutConfig),
41
- __metadata("design:type", build_1.RolloutConfig)
42
- ], BuildAssignmentStartedPayload.prototype, "rolloutConfigPreviousBuild", void 0);
35
+ __metadata("design:type", Array)
36
+ ], BuildAssignmentStartedPayload.prototype, "minorBuildsRollout", void 0);
43
37
  __decorate([
44
38
  (0, class_validator_1.IsOptional)(),
45
39
  __metadata("design:type", build_1.BuildAssignmentProvidersSettings)
@@ -1 +1 @@
1
- {"version":3,"file":"build-assignment-started.js","sourceRoot":"","sources":["../../../src/v4/events/build-assignment-started.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AACrD,0CAKwB;AAExB,MAAa,6BAA6B;CA0BzC;AA1BD,sEA0BC;AAxBC;IADC,IAAA,wBAAM,GAAE;;4DACK;AAGd;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;8BAC9B,wBAAgB;kEAAC;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;8BAC3B,wBAAgB;oEAAC;AAGjC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;8BACd,qBAAa;+EAAC;AAIxC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;8BACX,qBAAa;iFAAC;AAG3C;IADC,IAAA,4BAAU,GAAE;8BACiB,wCAAgC;kFAAC;AAG/D;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;0EACa;AAGzC;IADC,IAAA,0BAAQ,GAAE;;mEACU;AAGvB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YAAY,OAAsC,EAAE,OAAqB;QACvE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,wDAcC;AAbiB,iCAAU,GAAG,uCAAuC,CAAC;AASrE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;uDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
1
+ {"version":3,"file":"build-assignment-started.js","sourceRoot":"","sources":["../../../src/v4/events/build-assignment-started.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AACrD,0CAMwB;AAExB,MAAa,6BAA6B;CAqBzC;AArBD,sEAqBC;AAnBC;IADC,IAAA,wBAAM,GAAE;;4DACK;AAGd;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;8BAC9B,wBAAgB;kEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;8BACd,qBAAa;+EAAC;AAGxC;IADC,IAAA,4BAAU,GAAE;;yEAC6B;AAG1C;IADC,IAAA,4BAAU,GAAE;8BACiB,wCAAgC;kFAAC;AAG/D;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;0EACa;AAGzC;IADC,IAAA,0BAAQ,GAAE;;mEACU;AAGvB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YAAY,OAAsC,EAAE,OAAqB;QACvE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,wDAcC;AAbiB,iCAAU,GAAG,uCAAuC,CAAC;AASrE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;uDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
@@ -131,3 +131,5 @@ export * from "./build-assignment-started";
131
131
  export * from "./pools-ready-for-build-assignment";
132
132
  export * from "./build-assigned";
133
133
  export * from "./build-assignment-settings-ready";
134
+ export * from "./pools-build-assignment-failed";
135
+ export * from "./build-assignment-failed";
@@ -147,4 +147,6 @@ __exportStar(require("./build-assignment-started"), exports);
147
147
  __exportStar(require("./pools-ready-for-build-assignment"), exports);
148
148
  __exportStar(require("./build-assigned"), exports);
149
149
  __exportStar(require("./build-assignment-settings-ready"), exports);
150
+ __exportStar(require("./pools-build-assignment-failed"), exports);
151
+ __exportStar(require("./build-assignment-failed"), exports);
150
152
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;A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kDAAgC;AAChC,kEAAgD;AAChD,sEAAoD;AACpD,uEAAqD;AACrD,oDAAkC;AAClC,iEAA+C;AAC/C,mDAAiC;AACjC,iDAA+B;AAC/B,0DAAwC;AACxC,uDAAqC;AACrC,uDAAqC;AACrC,iFAA+D;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA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event";
2
- import { CloudResourcesStatusMap, BasePoolAttributes, LudeoPoolAttributes, MachinePoolAttributes, CloudProviderSettings, GamePoolAttributes } from "../types";
2
+ import { CloudResourcesStatusMap, BasePoolAttributes, LudeoPoolAttributes, MachinePoolAttributes, CloudProviderSettings, GamePoolAttributes, BuildVersionMeta, RolloutConfig } from "../types";
3
3
  export declare class PoolStatusEventBasePool<T extends BasePoolAttributes = BasePoolAttributes> {
4
4
  attributes: T;
5
5
  statusMap: CloudResourcesStatusMap;
6
+ buildMeta?: BuildVersionMeta;
7
+ rollout?: RolloutConfig;
6
8
  poolId: string;
7
9
  manualOverrideSize?: number;
8
10
  }
@@ -22,6 +22,14 @@ __decorate([
22
22
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.BasePoolAttributes),
23
23
  __metadata("design:type", Object)
24
24
  ], PoolStatusEventBasePool.prototype, "attributes", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ __metadata("design:type", types_1.BuildVersionMeta)
28
+ ], PoolStatusEventBasePool.prototype, "buildMeta", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", types_1.RolloutConfig)
32
+ ], PoolStatusEventBasePool.prototype, "rollout", void 0);
25
33
  __decorate([
26
34
  (0, class_validator_1.IsUUID)(),
27
35
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,yDAAqD;AACrD,oCAQkB;AAClB,oGAAqF;AACrF,4FAA4E;AAE5E,MAAa,uBAAuB;CAcnC;AAdD,0DAcC;AAVC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;;2DAC/B;AAKd;IADC,IAAA,wBAAM,GAAE;;uDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACiB;AAG9B,MAAa,wBAAyB,SAAQ,uBAA4C;CAOzF;AAPD,4DAOC;AALC;IADC,IAAA,wBAAM,GAAE;;4DACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;yDACC;AAGnB,MAAa,uBAAwB,SAAQ,uBAA2C;CASvF;AATD,0DASC;AAPC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACgB;AAK7B,MAAa,0BAA2B,SAAQ,uBAA8C;CAK7F;AALD,gEAKC;AADC;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;oEACK;AAGnD,MAAa,sBAAsB;CAKlC;AALD,wDAKC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACS;AAGpB,MAAa,eAAgB,SAAQ,wBAAU;IAG7C,YAAY,OAA+B;QACzC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,0CAUC;AATiB,0BAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACxC,sBAAsB;gDAAC"}
1
+ {"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,yDAAqD;AACrD,oCAUkB;AAClB,oGAAqF;AACrF,4FAA4E;AAE5E,MAAa,uBAAuB;CAoBnC;AApBD,0DAoBC;AAhBC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;;2DAC/B;AAKd;IADC,IAAA,4BAAU,GAAE;8BACD,wBAAgB;0DAAC;AAG7B;IADC,IAAA,4BAAU,GAAE;8BACH,qBAAa;wDAAC;AAGxB;IADC,IAAA,wBAAM,GAAE;;uDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACiB;AAG9B,MAAa,wBAAyB,SAAQ,uBAA4C;CAOzF;AAPD,4DAOC;AALC;IADC,IAAA,wBAAM,GAAE;;4DACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;yDACC;AAGnB,MAAa,uBAAwB,SAAQ,uBAA2C;CASvF;AATD,0DASC;AAPC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACgB;AAK7B,MAAa,0BAA2B,SAAQ,uBAA8C;CAK7F;AALD,gEAKC;AADC;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;oEACK;AAGnD,MAAa,sBAAsB;CAKlC;AALD,wDAKC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACS;AAGpB,MAAa,eAAgB,SAAQ,wBAAU;IAG7C,YAAY,OAA+B;QACzC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,0CAUC;AATiB,0BAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACxC,sBAAsB;gDAAC"}
@@ -0,0 +1,13 @@
1
+ import { BuildContext } from "../contexts/build-context";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class PoolsBuildAssignmentFailedPayload {
4
+ buildId: string;
5
+ envId: string;
6
+ error?: string;
7
+ }
8
+ export declare class PoolsBuildAssignmentFailed extends LudeoEvent {
9
+ static readonly EVENT_NAME = "cloud-builds.pools-build-assignment-failed";
10
+ constructor(payload: PoolsBuildAssignmentFailedPayload, context: BuildContext);
11
+ context: BuildContext;
12
+ payload: PoolsBuildAssignmentFailedPayload;
13
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PoolsBuildAssignmentFailed = exports.PoolsBuildAssignmentFailedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const build_context_1 = require("../contexts/build-context");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const ludeo_event_1 = require("../../infra/ludeo-event");
17
+ class PoolsBuildAssignmentFailedPayload {
18
+ }
19
+ exports.PoolsBuildAssignmentFailedPayload = PoolsBuildAssignmentFailedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], PoolsBuildAssignmentFailedPayload.prototype, "buildId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], PoolsBuildAssignmentFailedPayload.prototype, "envId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", String)
32
+ ], PoolsBuildAssignmentFailedPayload.prototype, "error", void 0);
33
+ class PoolsBuildAssignmentFailed extends ludeo_event_1.LudeoEvent {
34
+ constructor(payload, context) {
35
+ super(PoolsBuildAssignmentFailed.EVENT_NAME);
36
+ this.payload = payload;
37
+ this.context = context;
38
+ }
39
+ }
40
+ exports.PoolsBuildAssignmentFailed = PoolsBuildAssignmentFailed;
41
+ PoolsBuildAssignmentFailed.EVENT_NAME = "cloud-builds.pools-build-assignment-failed";
42
+ __decorate([
43
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
44
+ __metadata("design:type", build_context_1.BuildContext)
45
+ ], PoolsBuildAssignmentFailed.prototype, "context", void 0);
46
+ __decorate([
47
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => PoolsBuildAssignmentFailedPayload),
48
+ __metadata("design:type", PoolsBuildAssignmentFailedPayload)
49
+ ], PoolsBuildAssignmentFailed.prototype, "payload", void 0);
50
+ //# sourceMappingURL=pools-build-assignment-failed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pools-build-assignment-failed.js","sourceRoot":"","sources":["../../../src/v4/events/pools-build-assignment-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AARC;IADC,IAAA,wBAAM,GAAE;;kEACO;AAGhB;IADC,IAAA,wBAAM,GAAE;;gEACK;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACE;AAGjB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAAqB;QAErB,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,4CAA4C,CAAC;AAY1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;2DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
@@ -68,8 +68,8 @@ export declare class CloudBuild {
68
68
  }
69
69
  export declare class BuildCreationInput {
70
70
  basePath: string;
71
- executeableLaunchPath: string;
72
- runtimeEnvironment: RuntimeEnvironment;
71
+ executableLaunchPath: string;
72
+ runtimeEnvironment?: RuntimeEnvironment;
73
73
  buildVersion?: string;
74
74
  logPath?: string;
75
75
  }
@@ -130,8 +130,13 @@ export type BuildAssignmentProviderSettings = AwsBuildAssignmentSettings;
130
130
  export declare class BuildAssignmentData {
131
131
  buildVersion: string;
132
132
  status: BuildAssignmentStatus;
133
+ buildAssignmentCase: BuildAssignmentCase;
133
134
  isActive?: boolean;
134
135
  providers?: Partial<BuildAssignmentProvidersSettings>;
136
+ minorBuildsRollout?: MinorBuildsRollout[];
137
+ }
138
+ export declare class MinorBuildsRollout extends BuildVersionMeta {
139
+ rolloutConfig: RolloutConfig;
135
140
  }
136
141
  export declare enum BuildAssignmentStatus {
137
142
  ASSIGNED = "assigned",
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BuildAssignmentStatus = exports.BuildAssignmentData = exports.BuildsAssignmentsData = exports.EnvBuilds = exports.BuildAssignmentCase = exports.RolloutConfig = exports.BuildVersionMeta = exports.AwsBuildAssignmentSettingsData = exports.StreamGroupStatus = exports.AwsBuildAssignmentSettings = exports.BuildAssignmentProvidersSettings = exports.RuntimeEnvironment = exports.BuildCreationInput = exports.CloudBuild = exports.BuildProviderSettings = exports.AwsArtifacts = exports.AwsDistributions = exports.AwsDistributionData = exports.GamecastRuntimeEnvironment = exports.AwsArtifactData = exports.BuildMetadata = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
12
+ exports.BuildAssignmentStatus = exports.MinorBuildsRollout = exports.BuildAssignmentData = exports.BuildsAssignmentsData = exports.EnvBuilds = exports.BuildAssignmentCase = exports.RolloutConfig = exports.BuildVersionMeta = exports.AwsBuildAssignmentSettingsData = exports.StreamGroupStatus = exports.AwsBuildAssignmentSettings = exports.BuildAssignmentProvidersSettings = exports.RuntimeEnvironment = exports.BuildCreationInput = exports.CloudBuild = exports.BuildProviderSettings = exports.AwsArtifacts = exports.AwsDistributions = exports.AwsDistributionData = exports.GamecastRuntimeEnvironment = exports.AwsArtifactData = exports.BuildMetadata = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const cloud_1 = require("./cloud");
15
15
  var BuildStatus;
@@ -147,6 +147,9 @@ exports.BuildsAssignmentsData = BuildsAssignmentsData;
147
147
  class BuildAssignmentData {
148
148
  }
149
149
  exports.BuildAssignmentData = BuildAssignmentData;
150
+ class MinorBuildsRollout extends BuildVersionMeta {
151
+ }
152
+ exports.MinorBuildsRollout = MinorBuildsRollout;
150
153
  var BuildAssignmentStatus;
151
154
  (function (BuildAssignmentStatus) {
152
155
  BuildAssignmentStatus["ASSIGNED"] = "assigned";
@@ -1 +1 @@
1
- {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,mCAA6D;AAE7D,IAAY,WASX;AATD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,wDAAyC,CAAA;IACzC,sDAAuC,CAAA;IACvC,oCAAqB,CAAA;AACvB,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,cAIX;AAJD,WAAY,c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iB,iCAAjB,iBAAiB,QAK5B;AAED,MAAa,8BAA8B;CAO1C;AAPD,wEAOC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;sDACU;AAGvB,MAAa,aAAa;CAIzB;AAJD,sCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACE;AAGjB,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,kDAA2B,CAAA;IAC3B,4CAAqB,CAAA;IACrB,8DAAuC,CAAA;IACvC,4DAAqC,CAAA;AACvC,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAED,MAAa,SAAS;CAKrB;AALD,8BAKC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAID,MAAa,mBAAmB;CAO/B;AAPD,kDAOC;AAED,MAAa,kBAAmB,SAAQ,gBAAgB;CAEvD;AAFD,gDAEC;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,gDAAuB,CAAA;IACvB,kDAAyB,CAAA;AAC3B,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
@@ -14,5 +14,5 @@ export declare class BaseCloudPoolConfiguration {
14
14
  attributes: BasePoolAttributes;
15
15
  staleResourceTimeout?: number;
16
16
  buildMeta?: BuildVersionMeta;
17
- rolloutConfig?: RolloutConfig;
17
+ rollout?: RolloutConfig;
18
18
  }
@@ -65,5 +65,5 @@ __decorate([
65
65
  (0, decorators_1.ValidateNestedType)(() => build_1.RolloutConfig),
66
66
  (0, class_validator_1.IsOptional)(),
67
67
  __metadata("design:type", build_1.RolloutConfig)
68
- ], BaseCloudPoolConfiguration.prototype, "rolloutConfig", void 0);
68
+ ], BaseCloudPoolConfiguration.prototype, "rollout", void 0);
69
69
  //# sourceMappingURL=base.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,uCAA4C;AAC5C,kCAAwC;AACxC,6CAAkD;AAClD,uDAA4D;AAC5D,uCAA8D;AAE9D,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;oDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACM;AAGnB,MAAa,0BAA0B;CA2BtC;AA3BD,gEA2BC;AAzBC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;iEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;0DACM;AAGf;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACzB,sBAAsB;0EAAC;AAG/C;IADC,IAAA,wBAAM,EAAC,oBAAa,CAAC;;wDACF;AAGpB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;8DAAC;AAI/B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACiB;AAI9B;IAFC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;IAC1C,IAAA,4BAAU,GAAE;8BACD,wBAAgB;6DAAC;AAI7B;IAFC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;IACvC,IAAA,4BAAU,GAAE;8BACG,qBAAa;iEAAC"}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,uCAA4C;AAC5C,kCAAwC;AACxC,6CAAkD;AAClD,uDAA4D;AAC5D,uCAA8D;AAE9D,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;oDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACM;AAGnB,MAAa,0BAA0B;CA2BtC;AA3BD,gEA2BC;AAzBC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;iEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;0DACM;AAGf;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACzB,sBAAsB;0EAAC;AAG/C;IADC,IAAA,wBAAM,EAAC,oBAAa,CAAC;;wDACF;AAGpB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;8DAAC;AAI/B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACiB;AAI9B;IAFC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;IAC1C,IAAA,4BAAU,GAAE;8BACD,wBAAgB;6DAAC;AAI7B;IAFC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;IACvC,IAAA,4BAAU,GAAE;8BACH,qBAAa;2DAAC"}
@@ -6,6 +6,9 @@ import { AWSProviderSettings, CloudProviderSettings, MockProviderSettings } from
6
6
  export type CloudResourcesMap<T extends BaseCloudResource> = Record<string, T>;
7
7
  export declare const isAWSPool: <T extends CloudPoolType | undefined = undefined>(pool: CloudPool<T, CloudProviderSettings>) => pool is CloudPool<T, AWSProviderSettings>;
8
8
  export declare const isMockPool: <T extends CloudPoolType | undefined = undefined>(pool: CloudPool<T, CloudProviderSettings>) => pool is CloudPool<T, MockProviderSettings>;
9
+ export declare const isMachinePool: (pool: CloudPoolConfigurationType) => pool is CloudPoolConfigurationType<CloudPoolType.MACHINE>;
10
+ export declare const isGamePool: (pool: CloudPoolConfigurationType) => pool is CloudPoolConfigurationType<CloudPoolType.GAME>;
11
+ export declare const isLudeoPool: (pool: CloudPoolConfigurationType) => pool is CloudPoolConfigurationType<CloudPoolType.LUDEO>;
9
12
  export declare class CloudPool<T extends CloudPoolType | undefined = undefined, C extends CloudProviderSettings = CloudProviderSettings> {
10
13
  id: string;
11
14
  status: CloudPoolStatus;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CloudPool = exports.isMockPool = exports.isAWSPool = void 0;
3
+ exports.CloudPool = exports.isLudeoPool = exports.isGamePool = exports.isMachinePool = exports.isMockPool = exports.isAWSPool = void 0;
4
+ const type_1 = require("./type");
4
5
  const cloud_1 = require("../cloud");
5
6
  const isAWSPool = (pool) => {
6
7
  return pool.config.cloudProvider === cloud_1.CloudProvider.AWS;
@@ -10,6 +11,18 @@ const isMockPool = (pool) => {
10
11
  return pool.config.cloudProvider === cloud_1.CloudProvider.MOCK;
11
12
  };
12
13
  exports.isMockPool = isMockPool;
14
+ const isMachinePool = (pool) => {
15
+ return pool.type === type_1.CloudPoolType.MACHINE;
16
+ };
17
+ exports.isMachinePool = isMachinePool;
18
+ const isGamePool = (pool) => {
19
+ return pool.type === type_1.CloudPoolType.GAME;
20
+ };
21
+ exports.isGamePool = isGamePool;
22
+ const isLudeoPool = (pool) => {
23
+ return pool.type === type_1.CloudPoolType.LUDEO;
24
+ };
25
+ exports.isLudeoPool = isLudeoPool;
13
26
  class CloudPool {
14
27
  }
15
28
  exports.CloudPool = CloudPool;
@@ -1 +1 @@
1
- {"version":3,"file":"pool.js","sourceRoot":"","sources":["../../../../src/v4/types/pools/pool.ts"],"names":[],"mappings":";;;AAIA,oCAKkB;AAIX,MAAM,SAAS,GAAG,CACvB,IAAyC,EACE,EAAE;IAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,qBAAa,CAAC,GAAG,CAAC;AACzD,CAAC,CAAC;AAJW,QAAA,SAAS,aAIpB;AAEK,MAAM,UAAU,GAAG,CACxB,IAAyC,EACG,EAAE;IAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,qBAAa,CAAC,IAAI,CAAC;AAC1D,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEF,MAAa,SAAS;CASrB;AATD,8BASC"}
1
+ {"version":3,"file":"pool.js","sourceRoot":"","sources":["../../../../src/v4/types/pools/pool.ts"],"names":[],"mappings":";;;AAAA,iCAAuC;AAIvC,oCAKkB;AAIX,MAAM,SAAS,GAAG,CACvB,IAAyC,EACE,EAAE;IAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,qBAAa,CAAC,GAAG,CAAC;AACzD,CAAC,CAAC;AAJW,QAAA,SAAS,aAIpB;AAEK,MAAM,UAAU,GAAG,CACxB,IAAyC,EACG,EAAE;IAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,qBAAa,CAAC,IAAI,CAAC;AAC1D,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEK,MAAM,aAAa,GAAG,CAC3B,IAAgC,EAC2B,EAAE;IAC7D,OAAO,IAAI,CAAC,IAAI,KAAK,oBAAa,CAAC,OAAO,CAAC;AAC7C,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB;AAEK,MAAM,UAAU,GAAG,CACxB,IAAgC,EACwB,EAAE;IAC1D,OAAO,IAAI,CAAC,IAAI,KAAK,oBAAa,CAAC,IAAI,CAAC;AAC1C,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEK,MAAM,WAAW,GAAG,CACzB,IAAgC,EACyB,EAAE;IAC3D,OAAO,IAAI,CAAC,IAAI,KAAK,oBAAa,CAAC,KAAK,CAAC;AAC3C,CAAC,CAAC;AAJW,QAAA,WAAW,eAItB;AAEF,MAAa,SAAS;CASrB;AATD,8BASC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.102",
3
+ "version": "1.2.104",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,32 @@
1
+ import { IsOptional, IsString, IsUUID } from "class-validator";
2
+ import { BuildContext } from "../contexts/build-context";
3
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
4
+ import { LudeoEvent } from "../../infra/ludeo-event";
5
+
6
+ export class BuildAssignmentFailedPayload {
7
+ @IsUUID()
8
+ buildId: string;
9
+
10
+ @IsUUID()
11
+ envId: string;
12
+
13
+ @IsString()
14
+ @IsOptional()
15
+ error?: string;
16
+ }
17
+
18
+ export class BuildAssignmentFailed extends LudeoEvent {
19
+ static readonly EVENT_NAME = "cloud-builds.build-assignment-failed";
20
+
21
+ constructor(payload: BuildAssignmentFailedPayload, context: BuildContext) {
22
+ super(BuildAssignmentFailed.EVENT_NAME);
23
+ this.payload = payload;
24
+ this.context = context;
25
+ }
26
+
27
+ @ValidateNestedType(() => BuildContext)
28
+ context: BuildContext;
29
+
30
+ @ValidateNestedType(() => BuildAssignmentFailedPayload)
31
+ payload: BuildAssignmentFailedPayload;
32
+ }
@@ -7,6 +7,7 @@ import {
7
7
  RolloutConfig,
8
8
  BuildAssignmentCase,
9
9
  BuildAssignmentProvidersSettings,
10
+ MinorBuildsRollout,
10
11
  } from "../types/build";
11
12
 
12
13
  export class BuildAssignmentStartedPayload {
@@ -16,16 +17,11 @@ export class BuildAssignmentStartedPayload {
16
17
  @ValidateNestedType(() => BuildVersionMeta)
17
18
  targetBuild: BuildVersionMeta;
18
19
 
19
- @IsOptional()
20
- @ValidateNestedType(() => BuildVersionMeta)
21
- previousBuild?: BuildVersionMeta;
22
-
23
20
  @ValidateNestedType(() => RolloutConfig)
24
21
  rolloutConfigTargetBuild: RolloutConfig;
25
22
 
26
23
  @IsOptional()
27
- @ValidateNestedType(() => RolloutConfig)
28
- rolloutConfigPreviousBuild?: RolloutConfig;
24
+ minorBuildsRollout?: MinorBuildsRollout[];
29
25
 
30
26
  @IsOptional()
31
27
  assignmentProvidersSettings?: BuildAssignmentProvidersSettings;
@@ -131,3 +131,5 @@ export * from "./build-assignment-started";
131
131
  export * from "./pools-ready-for-build-assignment";
132
132
  export * from "./build-assigned";
133
133
  export * from "./build-assignment-settings-ready";
134
+ export * from "./pools-build-assignment-failed";
135
+ export * from "./build-assignment-failed";
@@ -9,18 +9,26 @@ import {
9
9
  CloudProviderSettings,
10
10
  GamePoolAttributes,
11
11
  getProviderSettingsType,
12
+ BuildVersionMeta,
13
+ RolloutConfig,
12
14
  } from "../types";
13
15
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
14
16
  import { IsUUIDOrEmpty } from "../../decorators/is-uuid-or-empty.decorator";
15
17
 
16
18
  export class PoolStatusEventBasePool<
17
- T extends BasePoolAttributes = BasePoolAttributes,
19
+ T extends BasePoolAttributes = BasePoolAttributes
18
20
  > {
19
21
  @ValidateNestedType(() => BasePoolAttributes)
20
22
  attributes: T;
21
23
 
22
24
  statusMap: CloudResourcesStatusMap;
23
25
 
26
+ @IsOptional()
27
+ buildMeta?: BuildVersionMeta;
28
+
29
+ @IsOptional()
30
+ rollout?: RolloutConfig;
31
+
24
32
  @IsUUID()
25
33
  poolId: string;
26
34
 
@@ -0,0 +1,35 @@
1
+ import { IsOptional, IsString, IsUUID } from "class-validator";
2
+ import { BuildContext } from "../contexts/build-context";
3
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
4
+ import { LudeoEvent } from "../../infra/ludeo-event";
5
+
6
+ export class PoolsBuildAssignmentFailedPayload {
7
+ @IsUUID()
8
+ buildId: string;
9
+
10
+ @IsUUID()
11
+ envId: string;
12
+
13
+ @IsString()
14
+ @IsOptional()
15
+ error?: string;
16
+ }
17
+
18
+ export class PoolsBuildAssignmentFailed extends LudeoEvent {
19
+ static readonly EVENT_NAME = "cloud-builds.pools-build-assignment-failed";
20
+
21
+ constructor(
22
+ payload: PoolsBuildAssignmentFailedPayload,
23
+ context: BuildContext
24
+ ) {
25
+ super(PoolsBuildAssignmentFailed.EVENT_NAME);
26
+ this.payload = payload;
27
+ this.context = context;
28
+ }
29
+
30
+ @ValidateNestedType(() => BuildContext)
31
+ context: BuildContext;
32
+
33
+ @ValidateNestedType(() => PoolsBuildAssignmentFailedPayload)
34
+ payload: PoolsBuildAssignmentFailedPayload;
35
+ }
@@ -97,8 +97,8 @@ export class CloudBuild {
97
97
 
98
98
  export class BuildCreationInput {
99
99
  basePath: string;
100
- executeableLaunchPath: string;
101
- runtimeEnvironment: RuntimeEnvironment;
100
+ executableLaunchPath: string;
101
+ runtimeEnvironment?: RuntimeEnvironment;
102
102
  buildVersion?: string;
103
103
  logPath?: string;
104
104
  }
@@ -177,8 +177,14 @@ export type BuildAssignmentProviderSettings = AwsBuildAssignmentSettings;
177
177
  export class BuildAssignmentData {
178
178
  buildVersion: string;
179
179
  status: BuildAssignmentStatus;
180
+ buildAssignmentCase: BuildAssignmentCase;
180
181
  isActive?: boolean;
181
182
  providers?: Partial<BuildAssignmentProvidersSettings>;
183
+ minorBuildsRollout?: MinorBuildsRollout[];
184
+ }
185
+
186
+ export class MinorBuildsRollout extends BuildVersionMeta {
187
+ rolloutConfig: RolloutConfig;
182
188
  }
183
189
 
184
190
  export enum BuildAssignmentStatus {
@@ -41,5 +41,5 @@ export class BaseCloudPoolConfiguration {
41
41
 
42
42
  @ValidateNestedType(() => RolloutConfig)
43
43
  @IsOptional()
44
- rolloutConfig?: RolloutConfig;
44
+ rollout?: RolloutConfig;
45
45
  }
@@ -23,9 +23,27 @@ export const isMockPool = <T extends CloudPoolType | undefined = undefined>(
23
23
  return pool.config.cloudProvider === CloudProvider.MOCK;
24
24
  };
25
25
 
26
+ export const isMachinePool = (
27
+ pool: CloudPoolConfigurationType
28
+ ): pool is CloudPoolConfigurationType<CloudPoolType.MACHINE> => {
29
+ return pool.type === CloudPoolType.MACHINE;
30
+ };
31
+
32
+ export const isGamePool = (
33
+ pool: CloudPoolConfigurationType
34
+ ): pool is CloudPoolConfigurationType<CloudPoolType.GAME> => {
35
+ return pool.type === CloudPoolType.GAME;
36
+ };
37
+
38
+ export const isLudeoPool = (
39
+ pool: CloudPoolConfigurationType
40
+ ): pool is CloudPoolConfigurationType<CloudPoolType.LUDEO> => {
41
+ return pool.type === CloudPoolType.LUDEO;
42
+ };
43
+
26
44
  export class CloudPool<
27
45
  T extends CloudPoolType | undefined = undefined,
28
- C extends CloudProviderSettings = CloudProviderSettings,
46
+ C extends CloudProviderSettings = CloudProviderSettings
29
47
  > {
30
48
  id: string;
31
49
  status: CloudPoolStatus;