@ludeo/cloud-common 1.2.76-beta-yahil-3 → 1.2.77-ygarbage
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/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/build-distributed-successfully.d.ts +15 -0
- package/dist/v4/events/{build-artifacts-job-finished.js → build-distributed-successfully.js} +16 -16
- package/dist/v4/events/build-distributed-successfully.js.map +1 -0
- package/dist/v4/events/{build-distribution-job-failed.d.ts → build-distribution-failed-response.d.ts} +5 -5
- package/dist/v4/events/{build-artifacts-job-failed.js → build-distribution-failed-response.js} +14 -14
- package/dist/v4/events/build-distribution-failed-response.js.map +1 -0
- package/dist/v4/events/{distribute-build-job.d.ts → distribute-build-request.d.ts} +5 -5
- package/dist/v4/events/{distribute-build-job.js → distribute-build-request.js} +14 -14
- package/dist/v4/events/distribute-build-request.js.map +1 -0
- package/dist/v4/events/index.d.ts +4 -8
- package/dist/v4/events/index.js +4 -8
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/post-game-creation-delay-task.d.ts +11 -0
- package/dist/v4/events/{build-created.js → post-game-creation-delay-task.js} +17 -18
- package/dist/v4/events/post-game-creation-delay-task.js.map +1 -0
- package/dist/v4/types/build.d.ts +23 -38
- package/dist/v4/types/build.js +5 -34
- package/dist/v4/types/build.js.map +1 -1
- package/dist/v4/types/pools/configuration/game.d.ts +1 -0
- package/dist/v4/types/pools/configuration/game.js +5 -0
- package/dist/v4/types/pools/configuration/game.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/build-distributed-successfully.ts +36 -0
- package/src/v4/events/{build-distribution-job-failed.ts → build-distribution-failed-response.ts} +8 -7
- package/src/v4/events/{distribute-build-job.ts → distribute-build-request.ts} +7 -7
- package/src/v4/events/index.ts +4 -8
- package/src/v4/events/post-game-creation-delay-task.ts +27 -0
- package/src/v4/types/build.ts +24 -41
- package/src/v4/types/pools/configuration/game.ts +9 -1
- package/dist/v4/events/build-artifacts-job-failed.d.ts +0 -13
- package/dist/v4/events/build-artifacts-job-failed.js.map +0 -1
- package/dist/v4/events/build-artifacts-job-finished.d.ts +0 -15
- package/dist/v4/events/build-artifacts-job-finished.js.map +0 -1
- package/dist/v4/events/build-created.d.ts +0 -11
- package/dist/v4/events/build-created.js.map +0 -1
- package/dist/v4/events/build-distributed.d.ts +0 -11
- package/dist/v4/events/build-distributed.js +0 -41
- package/dist/v4/events/build-distributed.js.map +0 -1
- package/dist/v4/events/build-distribution-job-failed.js +0 -46
- package/dist/v4/events/build-distribution-job-failed.js.map +0 -1
- package/dist/v4/events/build-distribution-job-finished.d.ts +0 -14
- package/dist/v4/events/build-distribution-job-finished.js +0 -50
- package/dist/v4/events/build-distribution-job-finished.js.map +0 -1
- package/dist/v4/events/create-build-artifacts-job.d.ts +0 -14
- package/dist/v4/events/create-build-artifacts-job.js +0 -47
- package/dist/v4/events/create-build-artifacts-job.js.map +0 -1
- package/dist/v4/events/distribute-build-job.js.map +0 -1
- package/src/v4/events/build-artifacts-job-failed.ts +0 -29
- package/src/v4/events/build-artifacts-job-finished.ts +0 -36
- package/src/v4/events/build-created.ts +0 -25
- package/src/v4/events/build-distributed.ts +0 -25
- package/src/v4/events/build-distribution-job-finished.ts +0 -35
- package/src/v4/events/create-build-artifacts-job.ts +0 -30
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BuildContext } from "../contexts/build-context";
|
|
2
|
+
import { CloudProvider } from "../types";
|
|
3
|
+
import { DistributorResponse } from "../types/build";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
export declare class BuildDistributedSuccessfullyPayload {
|
|
6
|
+
cloudProvider: CloudProvider;
|
|
7
|
+
distributorResponse: DistributorResponse;
|
|
8
|
+
buildId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class BuildDistributedSuccessfully extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-builds.build-distributed-successfully";
|
|
12
|
+
constructor(payload: BuildDistributedSuccessfullyPayload, context: BuildContext);
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
payload: BuildDistributedSuccessfullyPayload;
|
|
15
|
+
}
|
package/dist/v4/events/{build-artifacts-job-finished.js → build-distributed-successfully.js}
RENAMED
|
@@ -9,43 +9,43 @@ 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.
|
|
12
|
+
exports.BuildDistributedSuccessfully = exports.BuildDistributedSuccessfullyPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const build_context_1 = require("../contexts/build-context");
|
|
15
15
|
const types_1 = require("../types");
|
|
16
16
|
const build_1 = require("../types/build");
|
|
17
17
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
18
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
19
|
-
class
|
|
19
|
+
class BuildDistributedSuccessfullyPayload {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.BuildDistributedSuccessfullyPayload = BuildDistributedSuccessfullyPayload;
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
25
|
+
], BuildDistributedSuccessfullyPayload.prototype, "cloudProvider", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.
|
|
27
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.AwsDistributorResponse),
|
|
28
28
|
__metadata("design:type", Object)
|
|
29
|
-
],
|
|
29
|
+
], BuildDistributedSuccessfullyPayload.prototype, "distributorResponse", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, class_validator_1.IsUUID)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
34
|
-
class
|
|
33
|
+
], BuildDistributedSuccessfullyPayload.prototype, "buildId", void 0);
|
|
34
|
+
class BuildDistributedSuccessfully extends ludeo_event_1.LudeoEvent {
|
|
35
35
|
constructor(payload, context) {
|
|
36
|
-
super(
|
|
36
|
+
super(BuildDistributedSuccessfully.EVENT_NAME);
|
|
37
37
|
this.payload = payload;
|
|
38
38
|
this.context = context;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
exports.
|
|
42
|
-
|
|
41
|
+
exports.BuildDistributedSuccessfully = BuildDistributedSuccessfully;
|
|
42
|
+
BuildDistributedSuccessfully.EVENT_NAME = "cloud-builds.build-distributed-successfully";
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
45
45
|
__metadata("design:type", build_context_1.BuildContext)
|
|
46
|
-
],
|
|
46
|
+
], BuildDistributedSuccessfully.prototype, "context", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
49
|
-
__metadata("design:type",
|
|
50
|
-
],
|
|
51
|
-
//# sourceMappingURL=build-
|
|
48
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDistributedSuccessfullyPayload),
|
|
49
|
+
__metadata("design:type", BuildDistributedSuccessfullyPayload)
|
|
50
|
+
], BuildDistributedSuccessfully.prototype, "payload", void 0);
|
|
51
|
+
//# sourceMappingURL=build-distributed-successfully.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-distributed-successfully.js","sourceRoot":"","sources":["../../../src/v4/events/build-distributed-successfully.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,6DAAyD;AACzD,oCAAyC;AACzC,0CAA6E;AAC7E,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,mCAAmC;CAS/C;AATD,kFASC;AAPC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAsB,CAAC;;gFACR;AAGzC;IADC,IAAA,wBAAM,GAAE;;oEACO;AAGlB,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAAqB;QAErB,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;6DAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CloudProvider } from "../types";
|
|
2
2
|
import { BuildContext } from "../contexts/build-context";
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class BuildDistributionFailedResponsePayload {
|
|
5
5
|
cloudProvider: CloudProvider;
|
|
6
6
|
buildId: string;
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
9
|
-
static readonly EVENT_NAME = "cloud-builds.build-distribution-
|
|
10
|
-
constructor(payload:
|
|
8
|
+
export declare class BuildDistributionFailedResponse extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.build-distribution-failed-response";
|
|
10
|
+
constructor(payload: BuildDistributionFailedResponsePayload, context: BuildContext);
|
|
11
11
|
context: BuildContext;
|
|
12
|
-
payload:
|
|
12
|
+
payload: BuildDistributionFailedResponsePayload;
|
|
13
13
|
}
|
package/dist/v4/events/{build-artifacts-job-failed.js → build-distribution-failed-response.js}
RENAMED
|
@@ -9,38 +9,38 @@ 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.
|
|
12
|
+
exports.BuildDistributionFailedResponse = exports.BuildDistributionFailedResponsePayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const types_1 = require("../types");
|
|
15
15
|
const build_context_1 = require("../contexts/build-context");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
17
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
18
|
-
class
|
|
18
|
+
class BuildDistributionFailedResponsePayload {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.BuildDistributionFailedResponsePayload = BuildDistributionFailedResponsePayload;
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
24
|
+
], BuildDistributionFailedResponsePayload.prototype, "cloudProvider", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsUUID)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
29
|
-
class
|
|
28
|
+
], BuildDistributionFailedResponsePayload.prototype, "buildId", void 0);
|
|
29
|
+
class BuildDistributionFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
30
30
|
constructor(payload, context) {
|
|
31
|
-
super(
|
|
31
|
+
super(BuildDistributionFailedResponse.EVENT_NAME);
|
|
32
32
|
this.payload = payload;
|
|
33
33
|
this.context = context;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
exports.
|
|
37
|
-
|
|
36
|
+
exports.BuildDistributionFailedResponse = BuildDistributionFailedResponse;
|
|
37
|
+
BuildDistributionFailedResponse.EVENT_NAME = "cloud-builds.build-distribution-failed-response";
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
40
40
|
__metadata("design:type", build_context_1.BuildContext)
|
|
41
|
-
],
|
|
41
|
+
], BuildDistributionFailedResponse.prototype, "context", void 0);
|
|
42
42
|
__decorate([
|
|
43
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
44
|
-
__metadata("design:type",
|
|
45
|
-
],
|
|
46
|
-
//# sourceMappingURL=build-
|
|
43
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => BuildDistributionFailedResponsePayload),
|
|
44
|
+
__metadata("design:type", BuildDistributionFailedResponsePayload)
|
|
45
|
+
], BuildDistributionFailedResponse.prototype, "payload", void 0);
|
|
46
|
+
//# sourceMappingURL=build-distribution-failed-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-distribution-failed-response.js","sourceRoot":"","sources":["../../../src/v4/events/build-distribution-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,oCAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,sCAAsC;CAMlD;AAND,wFAMC;AAJC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;6EACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;uEACO;AAGlB,MAAa,+BAAgC,SAAQ,wBAAU;IAI7D,YACE,OAA+C,EAC/C,OAAqB;QAErB,KAAK,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,0EAkBC;AAjBiB,0CAAU,GACxB,iDAAiD,CAAC;AAYpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;gEAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;8BACxD,sCAAsC;gEAAC"}
|
|
@@ -2,13 +2,13 @@ import { CloudProvider } from "../types";
|
|
|
2
2
|
import { BuildContext } from "../contexts/build-context";
|
|
3
3
|
import { CloudBuild } from "../types/build";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class DistributeBuildRequestPayload {
|
|
6
6
|
build: CloudBuild;
|
|
7
7
|
cloudProvider: CloudProvider;
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
10
|
-
static readonly EVENT_NAME = "cloud-builds.distribute-build-
|
|
11
|
-
constructor(payload:
|
|
9
|
+
export declare class DistributeBuildRequest extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-builds.distribute-build-request";
|
|
11
|
+
constructor(payload: DistributeBuildRequestPayload, context: BuildContext);
|
|
12
12
|
context: BuildContext;
|
|
13
|
-
payload:
|
|
13
|
+
payload: DistributeBuildRequestPayload;
|
|
14
14
|
}
|
|
@@ -9,39 +9,39 @@ 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.
|
|
12
|
+
exports.DistributeBuildRequest = exports.DistributeBuildRequestPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const types_1 = require("../types");
|
|
15
15
|
const build_context_1 = require("../contexts/build-context");
|
|
16
16
|
const build_1 = require("../types/build");
|
|
17
17
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
18
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
19
|
-
class
|
|
19
|
+
class DistributeBuildRequestPayload {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.DistributeBuildRequestPayload = DistributeBuildRequestPayload;
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
24
24
|
__metadata("design:type", build_1.CloudBuild)
|
|
25
|
-
],
|
|
25
|
+
], DistributeBuildRequestPayload.prototype, "build", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
30
|
-
class
|
|
29
|
+
], DistributeBuildRequestPayload.prototype, "cloudProvider", void 0);
|
|
30
|
+
class DistributeBuildRequest extends ludeo_event_1.LudeoEvent {
|
|
31
31
|
constructor(payload, context) {
|
|
32
|
-
super(
|
|
32
|
+
super(DistributeBuildRequest.EVENT_NAME);
|
|
33
33
|
this.payload = payload;
|
|
34
34
|
this.context = context;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
exports.
|
|
38
|
-
|
|
37
|
+
exports.DistributeBuildRequest = DistributeBuildRequest;
|
|
38
|
+
DistributeBuildRequest.EVENT_NAME = "cloud-builds.distribute-build-request";
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
41
41
|
__metadata("design:type", build_context_1.BuildContext)
|
|
42
|
-
],
|
|
42
|
+
], DistributeBuildRequest.prototype, "context", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
45
|
-
__metadata("design:type",
|
|
46
|
-
],
|
|
47
|
-
//# sourceMappingURL=distribute-build-
|
|
44
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => DistributeBuildRequestPayload),
|
|
45
|
+
__metadata("design:type", DistributeBuildRequestPayload)
|
|
46
|
+
], DistributeBuildRequest.prototype, "payload", void 0);
|
|
47
|
+
//# sourceMappingURL=distribute-build-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distribute-build-request.js","sourceRoot":"","sources":["../../../src/v4/events/distribute-build-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,oCAAyC;AACzC,6DAAyD;AACzD,0CAA4C;AAC5C,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;4DAAC;AAGlB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;oEACO;AAG/B,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"}
|
|
@@ -103,11 +103,7 @@ export * from "./terminate-stale-ludeos";
|
|
|
103
103
|
export * from "./terminate-ludeo-request";
|
|
104
104
|
export * from "./ludeo-allocation-timeout-task";
|
|
105
105
|
export * from "./monitor-stream-groups-task";
|
|
106
|
-
export * from "./build-
|
|
107
|
-
export * from "./build-distribution-
|
|
108
|
-
export * from "./distribute-build-
|
|
109
|
-
export * from "./
|
|
110
|
-
export * from "./build-artifacts-job-finished";
|
|
111
|
-
export * from "./build-artifacts-job-failed";
|
|
112
|
-
export * from "./build-distributed";
|
|
113
|
-
export * from "./build-created";
|
|
106
|
+
export * from "./build-distributed-successfully";
|
|
107
|
+
export * from "./build-distribution-failed-response";
|
|
108
|
+
export * from "./distribute-build-request";
|
|
109
|
+
export * from "./post-game-creation-delay-task";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -119,12 +119,8 @@ __exportStar(require("./terminate-stale-ludeos"), exports);
|
|
|
119
119
|
__exportStar(require("./terminate-ludeo-request"), exports);
|
|
120
120
|
__exportStar(require("./ludeo-allocation-timeout-task"), exports);
|
|
121
121
|
__exportStar(require("./monitor-stream-groups-task"), exports);
|
|
122
|
-
__exportStar(require("./build-
|
|
123
|
-
__exportStar(require("./build-distribution-
|
|
124
|
-
__exportStar(require("./distribute-build-
|
|
125
|
-
__exportStar(require("./
|
|
126
|
-
__exportStar(require("./build-artifacts-job-finished"), exports);
|
|
127
|
-
__exportStar(require("./build-artifacts-job-failed"), exports);
|
|
128
|
-
__exportStar(require("./build-distributed"), exports);
|
|
129
|
-
__exportStar(require("./build-created"), exports);
|
|
122
|
+
__exportStar(require("./build-distributed-successfully"), exports);
|
|
123
|
+
__exportStar(require("./build-distribution-failed-response"), exports);
|
|
124
|
+
__exportStar(require("./distribute-build-request"), exports);
|
|
125
|
+
__exportStar(require("./post-game-creation-delay-task"), exports);
|
|
130
126
|
//# 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;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,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,+DAA6C;AAC7C,
|
|
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,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yEAAuD;AACvD,+DAA6C;AAC7C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,qEAAmD;AACnD,4EAA0D;AAC1D,4DAA0C;AAC1C,oDAAkC;AAClC,kEAAgD;AAChD,8DAA4C;AAC5C,sEAAoD;AACpD,2DAAyC;AACzC,4DAA0C;AAC1C,kEAAgD;AAChD,+DAA6C;AAC7C,mEAAiD;AACjD,uEAAqD;AACrD,6DAA2C;AAC3C,kEAAgD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare class PostGameCreationDelayTaskPayload {
|
|
3
|
+
gamePoolId: string;
|
|
4
|
+
gameResourceId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class PostGameCreationDelayTask extends LudeoEvent {
|
|
7
|
+
static readonly EVENT_NAME = "cloud-pools.post-game-creation-delay-task";
|
|
8
|
+
constructor(payload: PostGameCreationDelayTaskPayload, context: never);
|
|
9
|
+
context: never;
|
|
10
|
+
payload: PostGameCreationDelayTaskPayload;
|
|
11
|
+
}
|
|
@@ -9,33 +9,32 @@ 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.
|
|
12
|
+
exports.PostGameCreationDelayTask = exports.PostGameCreationDelayTaskPayload = void 0;
|
|
13
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
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
-
|
|
15
|
+
const decorators_1 = require("../../decorators");
|
|
16
|
+
class PostGameCreationDelayTaskPayload {
|
|
18
17
|
}
|
|
19
|
-
exports.
|
|
18
|
+
exports.PostGameCreationDelayTaskPayload = PostGameCreationDelayTaskPayload;
|
|
20
19
|
__decorate([
|
|
21
20
|
(0, class_validator_1.IsUUID)(),
|
|
22
21
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
24
|
-
|
|
22
|
+
], PostGameCreationDelayTaskPayload.prototype, "gamePoolId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsUUID)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PostGameCreationDelayTaskPayload.prototype, "gameResourceId", void 0);
|
|
27
|
+
class PostGameCreationDelayTask extends ludeo_event_1.LudeoEvent {
|
|
25
28
|
constructor(payload, context) {
|
|
26
|
-
super(
|
|
29
|
+
super(PostGameCreationDelayTask.EVENT_NAME);
|
|
27
30
|
this.payload = payload;
|
|
28
31
|
this.context = context;
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
|
-
exports.
|
|
32
|
-
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_context_1.BuildContext),
|
|
35
|
-
__metadata("design:type", build_context_1.BuildContext)
|
|
36
|
-
], BuildCreated.prototype, "context", void 0);
|
|
34
|
+
exports.PostGameCreationDelayTask = PostGameCreationDelayTask;
|
|
35
|
+
PostGameCreationDelayTask.EVENT_NAME = "cloud-pools.post-game-creation-delay-task";
|
|
37
36
|
__decorate([
|
|
38
|
-
(0,
|
|
39
|
-
__metadata("design:type",
|
|
40
|
-
],
|
|
41
|
-
//# sourceMappingURL=
|
|
37
|
+
(0, decorators_1.ValidateNestedType)(() => PostGameCreationDelayTaskPayload),
|
|
38
|
+
__metadata("design:type", PostGameCreationDelayTaskPayload)
|
|
39
|
+
], PostGameCreationDelayTask.prototype, "payload", void 0);
|
|
40
|
+
//# sourceMappingURL=post-game-creation-delay-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-game-creation-delay-task.js","sourceRoot":"","sources":["../../../src/v4/events/post-game-creation-delay-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,iDAAsD;AAEtD,MAAa,gCAAgC;CAM5C;AAND,4EAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;oEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;wEACc;AAGzB,MAAa,yBAA0B,SAAQ,wBAAU;IAIvD,YAAY,OAAyC,EAAE,OAAc;QACnE,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AARH,8DAcC;AAbwB,oCAAU,GAC/B,2CAA2C,CAAC;AAWvC;IADN,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;8BAC3C,gCAAgC;0DAAC"}
|
package/dist/v4/types/build.d.ts
CHANGED
|
@@ -5,9 +5,8 @@ export declare enum BuildStatus {
|
|
|
5
5
|
DISTRIBUTING = "distributing",
|
|
6
6
|
DISTRIBUTED = "distributed",
|
|
7
7
|
FAILED = "failed",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
ASSIGNED = "assigned"
|
|
8
|
+
CREATING = "creating",
|
|
9
|
+
CREATED = "created"
|
|
11
10
|
}
|
|
12
11
|
export declare enum DistributionStatus {
|
|
13
12
|
DISTRIBUTING = "distributing",
|
|
@@ -17,38 +16,43 @@ export declare enum ArtifactStatus {
|
|
|
17
16
|
CREATING = "creating",
|
|
18
17
|
CREATED = "created"
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export type BuildMetadata = {
|
|
21
20
|
studioId: string;
|
|
22
21
|
gameId: string;
|
|
23
22
|
versionId: string;
|
|
24
23
|
friendlyName?: string;
|
|
25
|
-
}
|
|
26
|
-
export
|
|
24
|
+
};
|
|
25
|
+
export type AwsArtifactData = {
|
|
27
26
|
basePath: string;
|
|
28
27
|
executeableLaunchPath: string;
|
|
29
28
|
runtimeEnvironment: string;
|
|
30
29
|
applicationName: string;
|
|
31
30
|
applicationIdentifier?: string;
|
|
32
31
|
status?: ArtifactStatus;
|
|
33
|
-
}
|
|
34
|
-
export
|
|
32
|
+
};
|
|
33
|
+
export type AwsDistributionData = {
|
|
35
34
|
path: string;
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
status?: DistributionStatus;
|
|
36
|
+
};
|
|
37
|
+
export type AwsDistributions = {
|
|
38
38
|
[region: string]: AwsDistributionData;
|
|
39
|
-
}
|
|
40
|
-
export type
|
|
41
|
-
export declare class AwsArtifacts {
|
|
39
|
+
};
|
|
40
|
+
export type AwsArtifacts = {
|
|
42
41
|
[region: string]: AwsArtifactData;
|
|
43
|
-
}
|
|
44
|
-
export type Artifacts =
|
|
45
|
-
|
|
42
|
+
};
|
|
43
|
+
export type Artifacts = {
|
|
44
|
+
[CloudProvider.AWS]: AwsArtifacts;
|
|
45
|
+
};
|
|
46
|
+
export type Distributions = {
|
|
47
|
+
[CloudProvider.AWS]: AwsDistributions;
|
|
48
|
+
};
|
|
49
|
+
export type BuildProviderSettings = {
|
|
46
50
|
[CloudProvider.AWS]: {
|
|
47
51
|
status?: BuildStatus;
|
|
48
52
|
artifacts?: AwsArtifacts;
|
|
49
53
|
distributions?: AwsDistributions;
|
|
50
54
|
};
|
|
51
|
-
}
|
|
55
|
+
};
|
|
52
56
|
export declare class CloudBuild {
|
|
53
57
|
id: string;
|
|
54
58
|
createdAt: number;
|
|
@@ -56,28 +60,9 @@ export declare class CloudBuild {
|
|
|
56
60
|
status: BuildStatus;
|
|
57
61
|
centralizedPath?: string;
|
|
58
62
|
meta?: BuildMetadata;
|
|
59
|
-
creationInput?: BuildCreationInput;
|
|
60
63
|
providers?: Partial<BuildProviderSettings>;
|
|
61
64
|
}
|
|
62
|
-
export declare class
|
|
65
|
+
export declare class AwsDistributorResponse {
|
|
63
66
|
distributions: AwsDistributions;
|
|
64
67
|
}
|
|
65
|
-
export
|
|
66
|
-
applicationName: string;
|
|
67
|
-
basePath: string;
|
|
68
|
-
executeableLaunchPath: string;
|
|
69
|
-
runtimeEnvironment: RuntimeEnvironment;
|
|
70
|
-
logPath?: string;
|
|
71
|
-
}
|
|
72
|
-
export declare enum RuntimeEnvironment {
|
|
73
|
-
WINDOWS = "windows",
|
|
74
|
-
NVIDIA_ULTRA = "nvidiaUltra",
|
|
75
|
-
NVIDIA_HIGH = "nvidiaHigh"
|
|
76
|
-
}
|
|
77
|
-
export interface RuntimeEnvironmentConfigurationMap {
|
|
78
|
-
streamClass: string;
|
|
79
|
-
runtimeEnvironment: {
|
|
80
|
-
Type: string;
|
|
81
|
-
Version: string;
|
|
82
|
-
};
|
|
83
|
-
}
|
|
68
|
+
export type DistributorResponse = AwsDistributorResponse;
|
package/dist/v4/types/build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AwsDistributorResponse = exports.CloudBuild = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
|
|
4
4
|
const cloud_1 = require("./cloud");
|
|
5
5
|
var BuildStatus;
|
|
6
6
|
(function (BuildStatus) {
|
|
@@ -9,9 +9,8 @@ var BuildStatus;
|
|
|
9
9
|
BuildStatus["DISTRIBUTING"] = "distributing";
|
|
10
10
|
BuildStatus["DISTRIBUTED"] = "distributed";
|
|
11
11
|
BuildStatus["FAILED"] = "failed";
|
|
12
|
-
BuildStatus["
|
|
13
|
-
BuildStatus["
|
|
14
|
-
BuildStatus["ASSIGNED"] = "assigned";
|
|
12
|
+
BuildStatus["CREATING"] = "creating";
|
|
13
|
+
BuildStatus["CREATED"] = "created";
|
|
15
14
|
})(BuildStatus || (exports.BuildStatus = BuildStatus = {}));
|
|
16
15
|
var DistributionStatus;
|
|
17
16
|
(function (DistributionStatus) {
|
|
@@ -23,38 +22,10 @@ var ArtifactStatus;
|
|
|
23
22
|
ArtifactStatus["CREATING"] = "creating";
|
|
24
23
|
ArtifactStatus["CREATED"] = "created";
|
|
25
24
|
})(ArtifactStatus || (exports.ArtifactStatus = ArtifactStatus = {}));
|
|
26
|
-
class BuildMetadata {
|
|
27
|
-
}
|
|
28
|
-
exports.BuildMetadata = BuildMetadata;
|
|
29
|
-
class AwsArtifactData {
|
|
30
|
-
}
|
|
31
|
-
exports.AwsArtifactData = AwsArtifactData;
|
|
32
|
-
class AwsDistributionData {
|
|
33
|
-
}
|
|
34
|
-
exports.AwsDistributionData = AwsDistributionData;
|
|
35
|
-
class AwsDistributions {
|
|
36
|
-
}
|
|
37
|
-
exports.AwsDistributions = AwsDistributions;
|
|
38
|
-
class AwsArtifacts {
|
|
39
|
-
}
|
|
40
|
-
exports.AwsArtifacts = AwsArtifacts;
|
|
41
|
-
class BuildProviderSettings {
|
|
42
|
-
}
|
|
43
|
-
exports.BuildProviderSettings = BuildProviderSettings;
|
|
44
|
-
cloud_1.CloudProvider.AWS;
|
|
45
25
|
class CloudBuild {
|
|
46
26
|
}
|
|
47
27
|
exports.CloudBuild = CloudBuild;
|
|
48
|
-
class
|
|
49
|
-
}
|
|
50
|
-
exports.Aws = Aws;
|
|
51
|
-
class BuildCreationInput {
|
|
28
|
+
class AwsDistributorResponse {
|
|
52
29
|
}
|
|
53
|
-
exports.
|
|
54
|
-
var RuntimeEnvironment;
|
|
55
|
-
(function (RuntimeEnvironment) {
|
|
56
|
-
RuntimeEnvironment["WINDOWS"] = "windows";
|
|
57
|
-
RuntimeEnvironment["NVIDIA_ULTRA"] = "nvidiaUltra";
|
|
58
|
-
RuntimeEnvironment["NVIDIA_HIGH"] = "nvidiaHigh";
|
|
59
|
-
})(RuntimeEnvironment || (exports.RuntimeEnvironment = RuntimeEnvironment = {}));
|
|
30
|
+
exports.AwsDistributorResponse = AwsDistributorResponse;
|
|
60
31
|
//# sourceMappingURL=build.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,IAAY,
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACrB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AA+CD,MAAa,UAAU;CAQtB;AARD,gCAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC"}
|
|
@@ -34,4 +34,9 @@ __decorate([
|
|
|
34
34
|
(0, decorators_1.ValidateNestedType)(() => attributes_1.GamePoolAttributes),
|
|
35
35
|
__metadata("design:type", attributes_1.GamePoolAttributes)
|
|
36
36
|
], GamePoolConfiguration.prototype, "attributes", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsNumber)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], GamePoolConfiguration.prototype, "postCreationDelay", void 0);
|
|
37
42
|
//# sourceMappingURL=game.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,kCAAwC;AACxC,6CAAkD;AAClD,iCAAoD;AACpD,uDAA4D;AAE5D,MAAa,qBAAsB,SAAQ,iCAA0B;CAoBpE;AApBD,sDAoBC;AAlBC;IADC,IAAA,wBAAM,EAAC,oBAAa,CAAC;;mDACG;AAGzB;IADC,IAAA,wBAAM,GAAE;;qDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4DACa;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;yDAAC;AAQ/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACgB"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IsEnum, IsUUID } from "class-validator";
|
|
2
|
+
import { BuildContext } from "../contexts/build-context";
|
|
3
|
+
import { CloudProvider } from "../types";
|
|
4
|
+
import { AwsDistributorResponse, DistributorResponse } from "../types/build";
|
|
5
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
7
|
+
|
|
8
|
+
export class BuildDistributedSuccessfullyPayload {
|
|
9
|
+
@IsEnum(CloudProvider)
|
|
10
|
+
cloudProvider: CloudProvider;
|
|
11
|
+
|
|
12
|
+
@ValidateNestedType(() => AwsDistributorResponse)
|
|
13
|
+
distributorResponse: DistributorResponse;
|
|
14
|
+
|
|
15
|
+
@IsUUID()
|
|
16
|
+
buildId: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class BuildDistributedSuccessfully extends LudeoEvent {
|
|
20
|
+
static readonly EVENT_NAME = "cloud-builds.build-distributed-successfully";
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
payload: BuildDistributedSuccessfullyPayload,
|
|
24
|
+
context: BuildContext
|
|
25
|
+
) {
|
|
26
|
+
super(BuildDistributedSuccessfully.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => BuildContext)
|
|
32
|
+
context: BuildContext;
|
|
33
|
+
|
|
34
|
+
@ValidateNestedType(() => BuildDistributedSuccessfullyPayload)
|
|
35
|
+
payload: BuildDistributedSuccessfullyPayload;
|
|
36
|
+
}
|
package/src/v4/events/{build-distribution-job-failed.ts → build-distribution-failed-response.ts}
RENAMED
|
@@ -4,7 +4,7 @@ import { BuildContext } from "../contexts/build-context";
|
|
|
4
4
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
5
5
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
6
6
|
|
|
7
|
-
export class
|
|
7
|
+
export class BuildDistributionFailedResponsePayload {
|
|
8
8
|
@IsEnum(CloudProvider)
|
|
9
9
|
cloudProvider: CloudProvider;
|
|
10
10
|
|
|
@@ -12,14 +12,15 @@ export class BuildDistributionJobFailedPayload {
|
|
|
12
12
|
buildId: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export class
|
|
16
|
-
static readonly EVENT_NAME =
|
|
15
|
+
export class BuildDistributionFailedResponse extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME =
|
|
17
|
+
"cloud-builds.build-distribution-failed-response";
|
|
17
18
|
|
|
18
19
|
constructor(
|
|
19
|
-
payload:
|
|
20
|
+
payload: BuildDistributionFailedResponsePayload,
|
|
20
21
|
context: BuildContext
|
|
21
22
|
) {
|
|
22
|
-
super(
|
|
23
|
+
super(BuildDistributionFailedResponse.EVENT_NAME);
|
|
23
24
|
this.payload = payload;
|
|
24
25
|
this.context = context;
|
|
25
26
|
}
|
|
@@ -27,6 +28,6 @@ export class BuildDistributionJobFailed extends LudeoEvent {
|
|
|
27
28
|
@ValidateNestedType(() => BuildContext)
|
|
28
29
|
context: BuildContext;
|
|
29
30
|
|
|
30
|
-
@ValidateNestedType(() =>
|
|
31
|
-
payload:
|
|
31
|
+
@ValidateNestedType(() => BuildDistributionFailedResponsePayload)
|
|
32
|
+
payload: BuildDistributionFailedResponsePayload;
|
|
32
33
|
}
|