@ludeo/cloud-common 1.1.61 → 1.1.63
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/v3/events/game-resource-terminated-response.d.ts +5 -5
- package/dist/v3/events/game-resource-terminated-response.js +9 -9
- package/dist/v3/events/game-resource-terminated-response.js.map +1 -1
- package/dist/v3/events/game-resource-termination-failed-response.d.ts +3 -3
- package/dist/v3/events/game-resource-termination-failed-response.js +2 -2
- package/dist/v3/events/game-resource-termination-failed-response.js.map +1 -1
- package/dist/v3/events/game-terminated-response.d.ts +5 -5
- package/dist/v3/events/game-terminated-response.js +5 -5
- package/dist/v3/events/game-terminated-response.js.map +1 -1
- package/dist/v3/events/game-termination-failed-response.d.ts +13 -0
- package/dist/v3/events/game-termination-failed-response.js +49 -0
- package/dist/v3/events/game-termination-failed-response.js.map +1 -0
- package/dist/v3/events/index.d.ts +6 -3
- package/dist/v3/events/index.js +6 -3
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/terminate-game-request.d.ts +12 -0
- package/dist/v3/events/terminate-game-request.js +45 -0
- package/dist/v3/events/terminate-game-request.js.map +1 -0
- package/package.json +1 -1
- package/src/v3/events/game-resource-terminated-response.ts +8 -8
- package/src/v3/events/game-resource-termination-failed-response.ts +4 -4
- package/src/v3/events/game-terminated-response.ts +32 -0
- package/src/v3/events/game-termination-failed-response.ts +35 -0
- package/src/v3/events/index.ts +6 -3
- package/src/v3/events/terminate-game-request.ts +32 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class GameResourceTerminatedResponsePayload {
|
|
4
4
|
gameResourceId: string;
|
|
5
5
|
gamePoolId: string;
|
|
6
6
|
}
|
|
7
7
|
export declare class GameResourceTerminatedResponse extends LudeoEvent {
|
|
8
8
|
static readonly EVENT_NAME = "cloud-resources.game-resource-terminated-response";
|
|
9
|
-
constructor(payload:
|
|
10
|
-
context:
|
|
11
|
-
payload:
|
|
9
|
+
constructor(payload: GameResourceTerminatedResponsePayload, context: CloudSessionContext);
|
|
10
|
+
context: CloudSessionContext;
|
|
11
|
+
payload: GameResourceTerminatedResponsePayload;
|
|
12
12
|
}
|
|
@@ -9,22 +9,22 @@ 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.GameResourceTerminatedResponse = exports.
|
|
12
|
+
exports.GameResourceTerminatedResponse = exports.GameResourceTerminatedResponsePayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const contexts_1 = require("../contexts");
|
|
15
15
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
-
class
|
|
17
|
+
class GameResourceTerminatedResponsePayload {
|
|
18
18
|
}
|
|
19
|
-
exports.
|
|
19
|
+
exports.GameResourceTerminatedResponsePayload = GameResourceTerminatedResponsePayload;
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, class_validator_1.IsUUID)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
23
|
+
], GameResourceTerminatedResponsePayload.prototype, "gameResourceId", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
27
|
+
], GameResourceTerminatedResponsePayload.prototype, "gamePoolId", void 0);
|
|
28
28
|
class GameResourceTerminatedResponse extends ludeo_event_1.LudeoEvent {
|
|
29
29
|
constructor(payload, context) {
|
|
30
30
|
super(GameResourceTerminatedResponse.EVENT_NAME);
|
|
@@ -35,11 +35,11 @@ class GameResourceTerminatedResponse extends ludeo_event_1.LudeoEvent {
|
|
|
35
35
|
exports.GameResourceTerminatedResponse = GameResourceTerminatedResponse;
|
|
36
36
|
GameResourceTerminatedResponse.EVENT_NAME = "cloud-resources.game-resource-terminated-response";
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
39
|
-
__metadata("design:type", contexts_1.
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
40
40
|
], GameResourceTerminatedResponse.prototype, "context", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
43
|
-
__metadata("design:type",
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameResourceTerminatedResponsePayload),
|
|
43
|
+
__metadata("design:type", GameResourceTerminatedResponsePayload)
|
|
44
44
|
], GameResourceTerminatedResponse.prototype, "payload", void 0);
|
|
45
45
|
//# sourceMappingURL=game-resource-terminated-response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,
|
|
1
|
+
{"version":3,"file":"game-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,qCAAqC;CAMjD;AAND,sFAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGrB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAA4B;QAE5B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,mDAAmD,CAAC;AAYtD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;+DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
export declare class GameResourceTerminationFailedResponsePayload {
|
|
4
4
|
gameResourceId: string;
|
|
@@ -7,7 +7,7 @@ export declare class GameResourceTerminationFailedResponsePayload {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class GameResourceTerminationFailedResponse extends LudeoEvent {
|
|
9
9
|
static readonly EVENT_NAME = "cloud-resources.game-resource-termination-failed-response";
|
|
10
|
-
constructor(payload: GameResourceTerminationFailedResponsePayload, context:
|
|
11
|
-
context:
|
|
10
|
+
constructor(payload: GameResourceTerminationFailedResponsePayload, context: CloudSessionContext);
|
|
11
|
+
context: CloudSessionContext;
|
|
12
12
|
payload: GameResourceTerminationFailedResponsePayload;
|
|
13
13
|
}
|
|
@@ -39,8 +39,8 @@ class GameResourceTerminationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
|
39
39
|
exports.GameResourceTerminationFailedResponse = GameResourceTerminationFailedResponse;
|
|
40
40
|
GameResourceTerminationFailedResponse.EVENT_NAME = "cloud-resources.game-resource-termination-failed-response";
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
43
|
-
__metadata("design:type", contexts_1.
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
43
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
44
44
|
], GameResourceTerminationFailedResponse.prototype, "context", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameResourceTerminationFailedResponsePayload),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,
|
|
1
|
+
{"version":3,"file":"game-resource-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4CAA4C;CASxD;AATD,oGASC;AAPC;IADC,IAAA,wBAAM,GAAE;;oFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gFACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;kFACU;AAGvB,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAAqD,EACrD,OAA4B;QAE5B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,2DAA2D,CAAC;AAY9D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4CAA4C,CAAC;8BAC9D,4CAA4C;sEAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
export declare class GameTerminatedResponsePayload {
|
|
4
|
-
gameResourceId: string;
|
|
5
4
|
gamePoolId: string;
|
|
5
|
+
gameResourceId: string;
|
|
6
6
|
}
|
|
7
7
|
export declare class GameTerminatedResponse extends LudeoEvent {
|
|
8
|
-
static readonly EVENT_NAME = "cloud-
|
|
9
|
-
constructor(payload: GameTerminatedResponsePayload, context:
|
|
10
|
-
context:
|
|
8
|
+
static readonly EVENT_NAME = "cloud-pools.game-terminated-response";
|
|
9
|
+
constructor(payload: GameTerminatedResponsePayload, context: CloudSessionContext);
|
|
10
|
+
context: CloudSessionContext;
|
|
11
11
|
payload: GameTerminatedResponsePayload;
|
|
12
12
|
}
|
|
@@ -20,11 +20,11 @@ exports.GameTerminatedResponsePayload = GameTerminatedResponsePayload;
|
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, class_validator_1.IsUUID)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
], GameTerminatedResponsePayload.prototype, "
|
|
23
|
+
], GameTerminatedResponsePayload.prototype, "gamePoolId", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
], GameTerminatedResponsePayload.prototype, "
|
|
27
|
+
], GameTerminatedResponsePayload.prototype, "gameResourceId", void 0);
|
|
28
28
|
class GameTerminatedResponse extends ludeo_event_1.LudeoEvent {
|
|
29
29
|
constructor(payload, context) {
|
|
30
30
|
super(GameTerminatedResponse.EVENT_NAME);
|
|
@@ -33,10 +33,10 @@ class GameTerminatedResponse extends ludeo_event_1.LudeoEvent {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
exports.GameTerminatedResponse = GameTerminatedResponse;
|
|
36
|
-
GameTerminatedResponse.EVENT_NAME = "cloud-
|
|
36
|
+
GameTerminatedResponse.EVENT_NAME = "cloud-pools.game-terminated-response";
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
39
|
-
__metadata("design:type", contexts_1.
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
40
40
|
], GameTerminatedResponse.prototype, "context", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameTerminatedResponsePayload),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,
|
|
1
|
+
{"version":3,"file":"game-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;iEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;qEACc;AAGzB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA4B;QAE5B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,sCAAsC,CAAC;AAYpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;uDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class GameTerminationFailedResponsePayload {
|
|
4
|
+
gamePoolId: string;
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
errorMessage: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class GameTerminationFailedResponse extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-pools.game-termination-failed-response";
|
|
10
|
+
constructor(payload: GameTerminationFailedResponsePayload, context: CloudSessionContext);
|
|
11
|
+
context: CloudSessionContext;
|
|
12
|
+
payload: GameTerminationFailedResponsePayload;
|
|
13
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.GameTerminationFailedResponse = exports.GameTerminationFailedResponsePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class GameTerminationFailedResponsePayload {
|
|
18
|
+
}
|
|
19
|
+
exports.GameTerminationFailedResponsePayload = GameTerminationFailedResponsePayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], GameTerminationFailedResponsePayload.prototype, "gamePoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], GameTerminationFailedResponsePayload.prototype, "gameResourceId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], GameTerminationFailedResponsePayload.prototype, "errorMessage", void 0);
|
|
32
|
+
class GameTerminationFailedResponse extends ludeo_event_1.LudeoEvent {
|
|
33
|
+
constructor(payload, context) {
|
|
34
|
+
super(GameTerminationFailedResponse.EVENT_NAME);
|
|
35
|
+
this.payload = payload;
|
|
36
|
+
this.context = context;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.GameTerminationFailedResponse = GameTerminationFailedResponse;
|
|
40
|
+
GameTerminationFailedResponse.EVENT_NAME = "cloud-pools.game-termination-failed-response";
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
43
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
44
|
+
], GameTerminationFailedResponse.prototype, "context", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameTerminationFailedResponsePayload),
|
|
47
|
+
__metadata("design:type", GameTerminationFailedResponsePayload)
|
|
48
|
+
], GameTerminationFailedResponse.prototype, "payload", void 0);
|
|
49
|
+
//# sourceMappingURL=game-termination-failed-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-termination-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-termination-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,oCAAoC;CAShD;AATD,oFASC;AAPC;IADC,IAAA,wBAAM,GAAE;;wEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;0EACU;AAGvB,MAAa,6BAA8B,SAAQ,wBAAU;IAG3D,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sEAiBC;AAhBiB,wCAAU,GAAG,8CAA8C,CAAC;AAY5E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;8DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC"}
|
|
@@ -15,6 +15,8 @@ export * from "./game-resource-created-response";
|
|
|
15
15
|
export * from "./game-resource-creation-failed-response";
|
|
16
16
|
export * from "./game-resource-terminated-response";
|
|
17
17
|
export * from "./game-resource-termination-failed-response";
|
|
18
|
+
export * from "./game-terminated-response";
|
|
19
|
+
export * from "./game-termination-failed-response";
|
|
18
20
|
export * from "./game-resource-status-changed";
|
|
19
21
|
export * from "./machine-allocated-response";
|
|
20
22
|
export * from "./machine-allocation-failed-response";
|
|
@@ -25,14 +27,15 @@ export * from "./machine-resource-created-response";
|
|
|
25
27
|
export * from "./machine-resource-creation-failed-response";
|
|
26
28
|
export * from "./monitor-game-resource-task";
|
|
27
29
|
export * from "./set-pool.event";
|
|
30
|
+
export * from "./swap-cloud-user-completed";
|
|
31
|
+
export * from "./swap-cloud-user-request-failed";
|
|
32
|
+
export * from "./swap-cloud-user-request";
|
|
33
|
+
export * from "./terminate-game-request";
|
|
28
34
|
export * from "./terminate-game-resource-request";
|
|
29
35
|
export * from "./terminate-games-request";
|
|
30
36
|
export * from "./terminate-machine-resource-batch-request";
|
|
31
37
|
export * from "./terminate-machines-request";
|
|
32
|
-
export * from "./swap-cloud-user-request";
|
|
33
|
-
export * from "./swap-cloud-user-request-failed";
|
|
34
38
|
export * from "./prepare-cloud-machine-auth";
|
|
35
39
|
export * from "./prepare-cloud-machine-auth-failed";
|
|
36
40
|
export * from "./token-required.event";
|
|
37
|
-
export * from "./swap-cloud-user-completed";
|
|
38
41
|
export * from "./cloud-machine-auth-ready";
|
package/dist/v3/events/index.js
CHANGED
|
@@ -31,6 +31,8 @@ __exportStar(require("./game-resource-created-response"), exports);
|
|
|
31
31
|
__exportStar(require("./game-resource-creation-failed-response"), exports);
|
|
32
32
|
__exportStar(require("./game-resource-terminated-response"), exports);
|
|
33
33
|
__exportStar(require("./game-resource-termination-failed-response"), exports);
|
|
34
|
+
__exportStar(require("./game-terminated-response"), exports);
|
|
35
|
+
__exportStar(require("./game-termination-failed-response"), exports);
|
|
34
36
|
__exportStar(require("./game-resource-status-changed"), exports);
|
|
35
37
|
__exportStar(require("./machine-allocated-response"), exports);
|
|
36
38
|
__exportStar(require("./machine-allocation-failed-response"), exports);
|
|
@@ -41,15 +43,16 @@ __exportStar(require("./machine-resource-created-response"), exports);
|
|
|
41
43
|
__exportStar(require("./machine-resource-creation-failed-response"), exports);
|
|
42
44
|
__exportStar(require("./monitor-game-resource-task"), exports);
|
|
43
45
|
__exportStar(require("./set-pool.event"), exports);
|
|
46
|
+
__exportStar(require("./swap-cloud-user-completed"), exports);
|
|
47
|
+
__exportStar(require("./swap-cloud-user-request-failed"), exports);
|
|
48
|
+
__exportStar(require("./swap-cloud-user-request"), exports);
|
|
49
|
+
__exportStar(require("./terminate-game-request"), exports);
|
|
44
50
|
__exportStar(require("./terminate-game-resource-request"), exports);
|
|
45
51
|
__exportStar(require("./terminate-games-request"), exports);
|
|
46
52
|
__exportStar(require("./terminate-machine-resource-batch-request"), exports);
|
|
47
53
|
__exportStar(require("./terminate-machines-request"), exports);
|
|
48
|
-
__exportStar(require("./swap-cloud-user-request"), exports);
|
|
49
|
-
__exportStar(require("./swap-cloud-user-request-failed"), exports);
|
|
50
54
|
__exportStar(require("./prepare-cloud-machine-auth"), exports);
|
|
51
55
|
__exportStar(require("./prepare-cloud-machine-auth-failed"), exports);
|
|
52
56
|
__exportStar(require("./token-required.event"), exports);
|
|
53
|
-
__exportStar(require("./swap-cloud-user-completed"), exports);
|
|
54
57
|
__exportStar(require("./cloud-machine-auth-ready"), exports);
|
|
55
58
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,mDAAiC;AACjC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,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,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,mDAAiC;AACjC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class TerminateGameRequestPayload {
|
|
4
|
+
gamePoolId: string;
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class TerminateGameRequest extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-session-allocator.terminate-game-request";
|
|
9
|
+
constructor(payload: TerminateGameRequestPayload, context: CloudSessionContext);
|
|
10
|
+
context: CloudSessionContext;
|
|
11
|
+
payload: TerminateGameRequestPayload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.TerminateGameRequest = exports.TerminateGameRequestPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class TerminateGameRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.TerminateGameRequestPayload = TerminateGameRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], TerminateGameRequestPayload.prototype, "gamePoolId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], TerminateGameRequestPayload.prototype, "gameResourceId", void 0);
|
|
28
|
+
class TerminateGameRequest extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload, context) {
|
|
30
|
+
super(TerminateGameRequest.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.TerminateGameRequest = TerminateGameRequest;
|
|
36
|
+
TerminateGameRequest.EVENT_NAME = "cloud-session-allocator.terminate-game-request";
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
40
|
+
], TerminateGameRequest.prototype, "context", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => TerminateGameRequestPayload),
|
|
43
|
+
__metadata("design:type", TerminateGameRequestPayload)
|
|
44
|
+
], TerminateGameRequest.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=terminate-game-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminate-game-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;+DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;mEACc;AAGzB,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAA4B;QAE5B,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oDAiBC;AAhBiB,+BAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { CloudSessionContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
7
|
-
export class
|
|
7
|
+
export class GameResourceTerminatedResponsePayload {
|
|
8
8
|
@IsUUID()
|
|
9
9
|
gameResourceId: string;
|
|
10
10
|
|
|
@@ -17,17 +17,17 @@ export class GameResourceTerminatedResponse extends LudeoEvent {
|
|
|
17
17
|
"cloud-resources.game-resource-terminated-response";
|
|
18
18
|
|
|
19
19
|
constructor(
|
|
20
|
-
payload:
|
|
21
|
-
context:
|
|
20
|
+
payload: GameResourceTerminatedResponsePayload,
|
|
21
|
+
context: CloudSessionContext
|
|
22
22
|
) {
|
|
23
23
|
super(GameResourceTerminatedResponse.EVENT_NAME);
|
|
24
24
|
this.payload = payload;
|
|
25
25
|
this.context = context;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@ValidateNestedType(() =>
|
|
29
|
-
context:
|
|
28
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
29
|
+
context: CloudSessionContext;
|
|
30
30
|
|
|
31
|
-
@ValidateNestedType(() =>
|
|
32
|
-
payload:
|
|
31
|
+
@ValidateNestedType(() => GameResourceTerminatedResponsePayload)
|
|
32
|
+
payload: GameResourceTerminatedResponsePayload;
|
|
33
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsUUID, IsString } from "class-validator";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { CloudSessionContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
@@ -21,15 +21,15 @@ export class GameResourceTerminationFailedResponse extends LudeoEvent {
|
|
|
21
21
|
|
|
22
22
|
constructor(
|
|
23
23
|
payload: GameResourceTerminationFailedResponsePayload,
|
|
24
|
-
context:
|
|
24
|
+
context: CloudSessionContext
|
|
25
25
|
) {
|
|
26
26
|
super(GameResourceTerminationFailedResponse.EVENT_NAME);
|
|
27
27
|
this.payload = payload;
|
|
28
28
|
this.context = context;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
@ValidateNestedType(() =>
|
|
32
|
-
context:
|
|
31
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
32
|
+
context: CloudSessionContext;
|
|
33
33
|
|
|
34
34
|
@ValidateNestedType(() => GameResourceTerminationFailedResponsePayload)
|
|
35
35
|
payload: GameResourceTerminationFailedResponsePayload;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IsUUID } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { CloudSessionContext } from "../contexts";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
+
|
|
7
|
+
export class GameTerminatedResponsePayload {
|
|
8
|
+
@IsUUID()
|
|
9
|
+
gamePoolId: string;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
gameResourceId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class GameTerminatedResponse extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME = "cloud-pools.game-terminated-response";
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
payload: GameTerminatedResponsePayload,
|
|
20
|
+
context: CloudSessionContext
|
|
21
|
+
) {
|
|
22
|
+
super(GameTerminatedResponse.EVENT_NAME);
|
|
23
|
+
this.payload = payload;
|
|
24
|
+
this.context = context;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
28
|
+
context: CloudSessionContext;
|
|
29
|
+
|
|
30
|
+
@ValidateNestedType(() => GameTerminatedResponsePayload)
|
|
31
|
+
payload: GameTerminatedResponsePayload;
|
|
32
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IsString, IsUUID } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { CloudSessionContext } from "../contexts";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
+
|
|
7
|
+
export class GameTerminationFailedResponsePayload {
|
|
8
|
+
@IsUUID()
|
|
9
|
+
gamePoolId: string;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
gameResourceId: string;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
errorMessage: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class GameTerminationFailedResponse extends LudeoEvent {
|
|
19
|
+
static readonly EVENT_NAME = "cloud-pools.game-termination-failed-response";
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
payload: GameTerminationFailedResponsePayload,
|
|
23
|
+
context: CloudSessionContext
|
|
24
|
+
) {
|
|
25
|
+
super(GameTerminationFailedResponse.EVENT_NAME);
|
|
26
|
+
this.payload = payload;
|
|
27
|
+
this.context = context;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
31
|
+
context: CloudSessionContext;
|
|
32
|
+
|
|
33
|
+
@ValidateNestedType(() => GameTerminationFailedResponsePayload)
|
|
34
|
+
payload: GameTerminationFailedResponsePayload;
|
|
35
|
+
}
|
package/src/v3/events/index.ts
CHANGED
|
@@ -15,6 +15,8 @@ export * from "./game-resource-created-response";
|
|
|
15
15
|
export * from "./game-resource-creation-failed-response";
|
|
16
16
|
export * from "./game-resource-terminated-response";
|
|
17
17
|
export * from "./game-resource-termination-failed-response";
|
|
18
|
+
export * from "./game-terminated-response";
|
|
19
|
+
export * from "./game-termination-failed-response";
|
|
18
20
|
export * from "./game-resource-status-changed";
|
|
19
21
|
export * from "./machine-allocated-response";
|
|
20
22
|
export * from "./machine-allocation-failed-response";
|
|
@@ -25,14 +27,15 @@ export * from "./machine-resource-created-response";
|
|
|
25
27
|
export * from "./machine-resource-creation-failed-response";
|
|
26
28
|
export * from "./monitor-game-resource-task";
|
|
27
29
|
export * from "./set-pool.event";
|
|
30
|
+
export * from "./swap-cloud-user-completed";
|
|
31
|
+
export * from "./swap-cloud-user-request-failed";
|
|
32
|
+
export * from "./swap-cloud-user-request";
|
|
33
|
+
export * from "./terminate-game-request";
|
|
28
34
|
export * from "./terminate-game-resource-request";
|
|
29
35
|
export * from "./terminate-games-request";
|
|
30
36
|
export * from "./terminate-machine-resource-batch-request";
|
|
31
37
|
export * from "./terminate-machines-request";
|
|
32
|
-
export * from "./swap-cloud-user-request";
|
|
33
|
-
export * from "./swap-cloud-user-request-failed";
|
|
34
38
|
export * from "./prepare-cloud-machine-auth";
|
|
35
39
|
export * from "./prepare-cloud-machine-auth-failed";
|
|
36
40
|
export * from "./token-required.event";
|
|
37
|
-
export * from "./swap-cloud-user-completed";
|
|
38
41
|
export * from "./cloud-machine-auth-ready";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IsUUID } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { CloudSessionContext } from "../contexts";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
+
|
|
7
|
+
export class TerminateGameRequestPayload {
|
|
8
|
+
@IsUUID()
|
|
9
|
+
gamePoolId: string;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
gameResourceId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class TerminateGameRequest extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME = "cloud-session-allocator.terminate-game-request";
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
payload: TerminateGameRequestPayload,
|
|
20
|
+
context: CloudSessionContext
|
|
21
|
+
) {
|
|
22
|
+
super(TerminateGameRequest.EVENT_NAME);
|
|
23
|
+
this.payload = payload;
|
|
24
|
+
this.context = context;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
28
|
+
context: CloudSessionContext;
|
|
29
|
+
|
|
30
|
+
@ValidateNestedType(() => TerminateGameRequestPayload)
|
|
31
|
+
payload: TerminateGameRequestPayload;
|
|
32
|
+
}
|