@ludeo/cloud-common 1.1.118 → 1.1.120
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/invalid-game-resource.d.ts +1 -1
- package/dist/v3/events/invalid-game-resource.js +7 -7
- package/dist/v3/events/invalid-game-resource.js.map +1 -1
- package/dist/v3/events/terminate-game-request.d.ts +1 -0
- package/dist/v3/events/terminate-game-request.js +5 -0
- package/dist/v3/events/terminate-game-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/invalid-game-resource.ts +2 -2
- package/src/v3/events/terminate-game-request.ts +5 -1
|
@@ -5,7 +5,7 @@ export declare class InvalidGameResourcePayload {
|
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
errorMessage: string;
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class InvalidGameResource extends LudeoEvent {
|
|
9
9
|
static readonly EVENT_NAME = "cloud-resource-monitor.invalid-game-resource";
|
|
10
10
|
constructor(payload: InvalidGameResourcePayload, context: CloudResourceContext);
|
|
11
11
|
context: CloudResourceContext;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.InvalidGameResource = exports.InvalidGameResourcePayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
15
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
@@ -29,21 +29,21 @@ __decorate([
|
|
|
29
29
|
(0, class_validator_1.IsString)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], InvalidGameResourcePayload.prototype, "errorMessage", void 0);
|
|
32
|
-
class
|
|
32
|
+
class InvalidGameResource extends ludeo_event_1.LudeoEvent {
|
|
33
33
|
constructor(payload, context) {
|
|
34
|
-
super(
|
|
34
|
+
super(InvalidGameResource.EVENT_NAME);
|
|
35
35
|
this.payload = payload;
|
|
36
36
|
this.context = context;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
exports.
|
|
40
|
-
|
|
39
|
+
exports.InvalidGameResource = InvalidGameResource;
|
|
40
|
+
InvalidGameResource.EVENT_NAME = "cloud-resource-monitor.invalid-game-resource";
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
43
43
|
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
44
|
-
],
|
|
44
|
+
], InvalidGameResource.prototype, "context", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => InvalidGameResourcePayload),
|
|
47
47
|
__metadata("design:type", InvalidGameResourcePayload)
|
|
48
|
-
],
|
|
48
|
+
], InvalidGameResource.prototype, "payload", void 0);
|
|
49
49
|
//# sourceMappingURL=invalid-game-resource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-game-resource.js","sourceRoot":"","sources":["../../../src/v3/events/invalid-game-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,0BAA0B;CAStC;AATD,gEASC;AAPC;IADC,IAAA,wBAAM,GAAE;;8DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;kEACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;gEACU;AAGvB,MAAa,
|
|
1
|
+
{"version":3,"file":"invalid-game-resource.js","sourceRoot":"","sources":["../../../src/v3/events/invalid-game-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,0BAA0B;CAStC;AATD,gEASC;AAPC;IADC,IAAA,wBAAM,GAAE;;8DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;kEACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;gEACU;AAGvB,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YACE,OAAmC,EACnC,OAA6B;QAE7B,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kDAiBC;AAhBiB,8BAAU,GAAG,8CAA8C,CAAC;AAY5E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;oDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}
|
|
@@ -3,6 +3,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
3
3
|
export declare class TerminateGameRequestPayload {
|
|
4
4
|
gamePoolId: string;
|
|
5
5
|
gameResourceId: string;
|
|
6
|
+
uploadLogs?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare class TerminateGameRequest extends LudeoEvent {
|
|
8
9
|
static readonly EVENT_NAME = "cloud-session-allocator.terminate-game-request";
|
|
@@ -25,6 +25,11 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], TerminateGameRequestPayload.prototype, "gameResourceId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsBoolean)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], TerminateGameRequestPayload.prototype, "uploadLogs", void 0);
|
|
28
33
|
class TerminateGameRequest extends ludeo_event_1.LudeoEvent {
|
|
29
34
|
constructor(payload, context) {
|
|
30
35
|
super(TerminateGameRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-game-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"terminate-game-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAEhE,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AARC;IADC,IAAA,wBAAM,GAAE;;+DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;mEACc;AAIvB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACQ;AAGvB,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAAmD;QAEnD,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,8BAAmB,CAAC;;qDACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
|
package/package.json
CHANGED
|
@@ -14,14 +14,14 @@ export class InvalidGameResourcePayload {
|
|
|
14
14
|
errorMessage: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class
|
|
17
|
+
export class InvalidGameResource extends LudeoEvent {
|
|
18
18
|
static readonly EVENT_NAME = "cloud-resource-monitor.invalid-game-resource";
|
|
19
19
|
|
|
20
20
|
constructor(
|
|
21
21
|
payload: InvalidGameResourcePayload,
|
|
22
22
|
context: CloudResourceContext
|
|
23
23
|
) {
|
|
24
|
-
super(
|
|
24
|
+
super(InvalidGameResource.EVENT_NAME);
|
|
25
25
|
this.payload = payload;
|
|
26
26
|
this.context = context;
|
|
27
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsUUID } from "class-validator";
|
|
1
|
+
import { IsBoolean, IsOptional, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
CloudResourceContext,
|
|
@@ -14,6 +14,10 @@ export class TerminateGameRequestPayload {
|
|
|
14
14
|
|
|
15
15
|
@IsUUID()
|
|
16
16
|
gameResourceId: string;
|
|
17
|
+
|
|
18
|
+
@IsBoolean()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
uploadLogs?: boolean;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
export class TerminateGameRequest extends LudeoEvent {
|