@ludeo/cloud-common 1.2.78 → 1.2.79-beta-yahil-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/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/index.d.ts +2 -0
- package/dist/v4/events/index.js +2 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/monitor-aws-artifacts-status-task.d.ts +12 -0
- package/dist/v4/events/monitor-aws-artifacts-status-task.js +39 -0
- package/dist/v4/events/monitor-aws-artifacts-status-task.js.map +1 -0
- package/dist/v4/events/post-game-creation-delay-task.d.ts +11 -0
- package/dist/v4/events/post-game-creation-delay-task.js +40 -0
- package/dist/v4/events/post-game-creation-delay-task.js.map +1 -0
- package/dist/v4/types/build.d.ts +9 -7
- package/dist/v4/types/build.js +6 -2
- package/dist/v4/types/build.js.map +1 -1
- package/dist/v4/types/pools/configuration/game.d.ts +1 -1
- package/dist/v4/types/pools/configuration/game.js +1 -1
- package/dist/v4/types/pools/configuration/game.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/index.ts +2 -0
- package/src/v4/events/monitor-aws-artifacts-status-task.ts +25 -0
- package/src/v4/events/post-game-creation-delay-task.ts +27 -0
- package/src/v4/types/build.ts +9 -6
- package/src/v4/types/pools/configuration/game.ts +1 -1
|
@@ -111,3 +111,5 @@ export * from "./build-artifacts-job-finished";
|
|
|
111
111
|
export * from "./build-artifacts-job-failed";
|
|
112
112
|
export * from "./build-distributed";
|
|
113
113
|
export * from "./build-created";
|
|
114
|
+
export * from "./post-game-creation-delay-task";
|
|
115
|
+
export * from "./monitor-aws-artifacts-status-task";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -127,4 +127,6 @@ __exportStar(require("./build-artifacts-job-finished"), exports);
|
|
|
127
127
|
__exportStar(require("./build-artifacts-job-failed"), exports);
|
|
128
128
|
__exportStar(require("./build-distributed"), exports);
|
|
129
129
|
__exportStar(require("./build-created"), exports);
|
|
130
|
+
__exportStar(require("./post-game-creation-delay-task"), exports);
|
|
131
|
+
__exportStar(require("./monitor-aws-artifacts-status-task"), exports);
|
|
130
132
|
//# 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,oEAAkD;AAClD,kEAAgD;AAChD,yDAAuC;AACvC,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,kDAAgC"}
|
|
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,oEAAkD;AAClD,kEAAgD;AAChD,yDAAuC;AACvC,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC;AACpC,kDAAgC;AAChC,kEAAgD;AAChD,sEAAoD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { AwsArtifacts, CloudBuild } from "../types/build";
|
|
3
|
+
export declare class MonitorAwsArtifactsStatusTaskPayload {
|
|
4
|
+
build: CloudBuild;
|
|
5
|
+
artifacts: AwsArtifacts;
|
|
6
|
+
}
|
|
7
|
+
export declare class MonitorAwsArtifactsStatusTask extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-builds.monitor-aws-artifacts-status-task";
|
|
9
|
+
constructor(payload: MonitorAwsArtifactsStatusTaskPayload);
|
|
10
|
+
context: never;
|
|
11
|
+
payload: MonitorAwsArtifactsStatusTaskPayload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.MonitorAwsArtifactsStatusTask = exports.MonitorAwsArtifactsStatusTaskPayload = void 0;
|
|
13
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const build_1 = require("../types/build");
|
|
16
|
+
class MonitorAwsArtifactsStatusTaskPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.MonitorAwsArtifactsStatusTaskPayload = MonitorAwsArtifactsStatusTaskPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.CloudBuild),
|
|
21
|
+
__metadata("design:type", build_1.CloudBuild)
|
|
22
|
+
], MonitorAwsArtifactsStatusTaskPayload.prototype, "build", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => build_1.AwsArtifacts),
|
|
25
|
+
__metadata("design:type", build_1.AwsArtifacts)
|
|
26
|
+
], MonitorAwsArtifactsStatusTaskPayload.prototype, "artifacts", void 0);
|
|
27
|
+
class MonitorAwsArtifactsStatusTask extends ludeo_event_1.LudeoEvent {
|
|
28
|
+
constructor(payload) {
|
|
29
|
+
super(MonitorAwsArtifactsStatusTask.EVENT_NAME);
|
|
30
|
+
this.payload = payload;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.MonitorAwsArtifactsStatusTask = MonitorAwsArtifactsStatusTask;
|
|
34
|
+
MonitorAwsArtifactsStatusTask.EVENT_NAME = "cloud-builds.monitor-aws-artifacts-status-task";
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => MonitorAwsArtifactsStatusTaskPayload),
|
|
37
|
+
__metadata("design:type", MonitorAwsArtifactsStatusTaskPayload)
|
|
38
|
+
], MonitorAwsArtifactsStatusTask.prototype, "payload", void 0);
|
|
39
|
+
//# sourceMappingURL=monitor-aws-artifacts-status-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-aws-artifacts-status-task.js","sourceRoot":"","sources":["../../../src/v4/events/monitor-aws-artifacts-status-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oGAAqF;AACrF,yDAAqD;AACrD,0CAA0D;AAE1D,MAAa,oCAAoC;CAMhD;AAND,oFAMC;AAJC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;mEAAC;AAGlB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAY,CAAC;8BAC5B,oBAAY;uEAAC;AAG1B,MAAa,6BAA8B,SAAQ,wBAAU;IAG3D,YAAY,OAA6C;QACvD,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,sEAYC;AAXiB,wCAAU,GAAG,gDAAgD,CAAC;AAU9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC"}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.PostGameCreationDelayTask = exports.PostGameCreationDelayTaskPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const decorators_1 = require("../../decorators");
|
|
16
|
+
class PostGameCreationDelayTaskPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.PostGameCreationDelayTaskPayload = PostGameCreationDelayTaskPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
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 {
|
|
28
|
+
constructor(payload, context) {
|
|
29
|
+
super(PostGameCreationDelayTask.EVENT_NAME);
|
|
30
|
+
this.payload = payload;
|
|
31
|
+
this.context = context;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.PostGameCreationDelayTask = PostGameCreationDelayTask;
|
|
35
|
+
PostGameCreationDelayTask.EVENT_NAME = "cloud-pools.post-game-creation-delay-task";
|
|
36
|
+
__decorate([
|
|
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
|
@@ -14,8 +14,9 @@ export declare enum DistributionStatus {
|
|
|
14
14
|
DISTRIBUTED = "distributed"
|
|
15
15
|
}
|
|
16
16
|
export declare enum ArtifactStatus {
|
|
17
|
-
|
|
18
|
-
CREATED = "created"
|
|
17
|
+
READY = "ready",
|
|
18
|
+
CREATED = "created",
|
|
19
|
+
FAILED = "failed"
|
|
19
20
|
}
|
|
20
21
|
export declare class BuildMetadata {
|
|
21
22
|
studioId: string;
|
|
@@ -26,11 +27,15 @@ export declare class BuildMetadata {
|
|
|
26
27
|
export declare class AwsArtifactData {
|
|
27
28
|
basePath: string;
|
|
28
29
|
executeableLaunchPath: string;
|
|
29
|
-
|
|
30
|
+
runtimeEnvironmentConfigurationMap: RuntimeEnvironmentConfigurationMap;
|
|
30
31
|
applicationName: string;
|
|
31
32
|
applicationIdentifier?: string;
|
|
32
33
|
status?: ArtifactStatus;
|
|
33
34
|
}
|
|
35
|
+
export declare class GamecastRuntimeEnvironment {
|
|
36
|
+
Type: string;
|
|
37
|
+
Version: string;
|
|
38
|
+
}
|
|
34
39
|
export declare class AwsDistributionData {
|
|
35
40
|
path: string;
|
|
36
41
|
}
|
|
@@ -73,8 +78,5 @@ export declare enum RuntimeEnvironment {
|
|
|
73
78
|
}
|
|
74
79
|
export interface RuntimeEnvironmentConfigurationMap {
|
|
75
80
|
streamClass: string;
|
|
76
|
-
runtimeEnvironment:
|
|
77
|
-
Type: string;
|
|
78
|
-
Version: string;
|
|
79
|
-
};
|
|
81
|
+
runtimeEnvironment: GamecastRuntimeEnvironment;
|
|
80
82
|
}
|
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.RuntimeEnvironment = exports.BuildCreationInput = exports.CloudBuild = exports.BuildProviderSettings = exports.AwsArtifacts = exports.AwsDistributions = exports.AwsDistributionData = exports.AwsArtifactData = exports.BuildMetadata = exports.ArtifactStatus = exports.DistributionStatus = exports.BuildStatus = void 0;
|
|
3
|
+
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;
|
|
4
4
|
const cloud_1 = require("./cloud");
|
|
5
5
|
var BuildStatus;
|
|
6
6
|
(function (BuildStatus) {
|
|
@@ -20,8 +20,9 @@ var DistributionStatus;
|
|
|
20
20
|
})(DistributionStatus || (exports.DistributionStatus = DistributionStatus = {}));
|
|
21
21
|
var ArtifactStatus;
|
|
22
22
|
(function (ArtifactStatus) {
|
|
23
|
-
ArtifactStatus["
|
|
23
|
+
ArtifactStatus["READY"] = "ready";
|
|
24
24
|
ArtifactStatus["CREATED"] = "created";
|
|
25
|
+
ArtifactStatus["FAILED"] = "failed";
|
|
25
26
|
})(ArtifactStatus || (exports.ArtifactStatus = ArtifactStatus = {}));
|
|
26
27
|
class BuildMetadata {
|
|
27
28
|
}
|
|
@@ -29,6 +30,9 @@ exports.BuildMetadata = BuildMetadata;
|
|
|
29
30
|
class AwsArtifactData {
|
|
30
31
|
}
|
|
31
32
|
exports.AwsArtifactData = AwsArtifactData;
|
|
33
|
+
class GamecastRuntimeEnvironment {
|
|
34
|
+
}
|
|
35
|
+
exports.GamecastRuntimeEnvironment = GamecastRuntimeEnvironment;
|
|
32
36
|
class AwsDistributionData {
|
|
33
37
|
}
|
|
34
38
|
exports.AwsDistributionData = AwsDistributionData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,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,
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,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,cAAc;IACxB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,MAAa,aAAa;CAKzB;AALD,sCAKC;AAED,MAAa,eAAe;CAO3B;AAPD,0CAOC;AAED,MAAa,0BAA0B;CAGtC;AAHD,gEAGC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAID,MAAa,YAAY;CAExB;AAFD,oCAEC;AAID,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AALE,qBAAa,CAAC,GAAG;AAOpB,MAAa,UAAU;CAStB;AATD,gCASC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,kDAA4B,CAAA;IAC5B,gDAA0B,CAAA;AAC5B,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
|
@@ -38,5 +38,5 @@ __decorate([
|
|
|
38
38
|
(0, class_validator_1.IsOptional)(),
|
|
39
39
|
(0, class_validator_1.IsNumber)(),
|
|
40
40
|
__metadata("design:type", Number)
|
|
41
|
-
], GamePoolConfiguration.prototype, "
|
|
41
|
+
], GamePoolConfiguration.prototype, "postCreationDelay", void 0);
|
|
42
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,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;;
|
|
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
package/src/v4/events/index.ts
CHANGED
|
@@ -111,3 +111,5 @@ export * from "./build-artifacts-job-finished";
|
|
|
111
111
|
export * from "./build-artifacts-job-failed";
|
|
112
112
|
export * from "./build-distributed";
|
|
113
113
|
export * from "./build-created";
|
|
114
|
+
export * from "./post-game-creation-delay-task";
|
|
115
|
+
export * from "./monitor-aws-artifacts-status-task";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { AwsArtifacts, CloudBuild } from "../types/build";
|
|
4
|
+
|
|
5
|
+
export class MonitorAwsArtifactsStatusTaskPayload {
|
|
6
|
+
@ValidateNestedType(() => CloudBuild)
|
|
7
|
+
build: CloudBuild;
|
|
8
|
+
|
|
9
|
+
@ValidateNestedType(() => AwsArtifacts)
|
|
10
|
+
artifacts: AwsArtifacts;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class MonitorAwsArtifactsStatusTask extends LudeoEvent {
|
|
14
|
+
static readonly EVENT_NAME = "cloud-builds.monitor-aws-artifacts-status-task";
|
|
15
|
+
|
|
16
|
+
constructor(payload: MonitorAwsArtifactsStatusTaskPayload) {
|
|
17
|
+
super(MonitorAwsArtifactsStatusTask.EVENT_NAME);
|
|
18
|
+
this.payload = payload;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
context: never;
|
|
22
|
+
|
|
23
|
+
@ValidateNestedType(() => MonitorAwsArtifactsStatusTaskPayload)
|
|
24
|
+
payload: MonitorAwsArtifactsStatusTaskPayload;
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IsUUID } from "class-validator";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { ValidateNestedType } from "../../decorators";
|
|
4
|
+
|
|
5
|
+
export class PostGameCreationDelayTaskPayload {
|
|
6
|
+
@IsUUID()
|
|
7
|
+
gamePoolId: string;
|
|
8
|
+
|
|
9
|
+
@IsUUID()
|
|
10
|
+
gameResourceId: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class PostGameCreationDelayTask extends LudeoEvent {
|
|
14
|
+
public static readonly EVENT_NAME =
|
|
15
|
+
"cloud-pools.post-game-creation-delay-task";
|
|
16
|
+
|
|
17
|
+
constructor(payload: PostGameCreationDelayTaskPayload, context: never) {
|
|
18
|
+
super(PostGameCreationDelayTask.EVENT_NAME);
|
|
19
|
+
this.payload = payload;
|
|
20
|
+
this.context = context;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public context: never;
|
|
24
|
+
|
|
25
|
+
@ValidateNestedType(() => PostGameCreationDelayTaskPayload)
|
|
26
|
+
public payload: PostGameCreationDelayTaskPayload;
|
|
27
|
+
}
|
package/src/v4/types/build.ts
CHANGED
|
@@ -17,8 +17,9 @@ export enum DistributionStatus {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export enum ArtifactStatus {
|
|
20
|
-
|
|
20
|
+
READY = "ready",
|
|
21
21
|
CREATED = "created",
|
|
22
|
+
FAILED = "failed",
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export class BuildMetadata {
|
|
@@ -31,12 +32,17 @@ export class BuildMetadata {
|
|
|
31
32
|
export class AwsArtifactData {
|
|
32
33
|
basePath: string;
|
|
33
34
|
executeableLaunchPath: string;
|
|
34
|
-
|
|
35
|
+
runtimeEnvironmentConfigurationMap: RuntimeEnvironmentConfigurationMap;
|
|
35
36
|
applicationName: string;
|
|
36
37
|
applicationIdentifier?: string;
|
|
37
38
|
status?: ArtifactStatus;
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
export class GamecastRuntimeEnvironment {
|
|
42
|
+
Type: string;
|
|
43
|
+
Version: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
40
46
|
export class AwsDistributionData {
|
|
41
47
|
path: string; // URL or path to the build in the specific region
|
|
42
48
|
}
|
|
@@ -88,8 +94,5 @@ export enum RuntimeEnvironment {
|
|
|
88
94
|
|
|
89
95
|
export interface RuntimeEnvironmentConfigurationMap {
|
|
90
96
|
streamClass: string;
|
|
91
|
-
runtimeEnvironment:
|
|
92
|
-
Type: string;
|
|
93
|
-
Version: string;
|
|
94
|
-
};
|
|
97
|
+
runtimeEnvironment: GamecastRuntimeEnvironment;
|
|
95
98
|
}
|