@ludeo/cloud-common 1.1.29 → 1.1.30
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/terminate-game-resource-request.d.ts +3 -2
- package/dist/v3/events/terminate-game-resource-request.js +8 -3
- package/dist/v3/events/terminate-game-resource-request.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/terminate-game-resource-request.ts +9 -4
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
import { CloudProviderSettings,
|
|
3
|
+
import { CloudProviderSettings, CloudResourceProviderSettings } from "../types";
|
|
4
4
|
export declare class TerminateGameResourceRequestPayload {
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
gamePoolId: string;
|
|
7
|
+
uploadLogs?: boolean;
|
|
7
8
|
providerSettings: CloudProviderSettings;
|
|
8
|
-
|
|
9
|
+
resourceProviderSettings: CloudResourceProviderSettings;
|
|
9
10
|
}
|
|
10
11
|
export declare class TerminateGameResourceRequest extends LudeoEvent {
|
|
11
12
|
static readonly EVENT_NAME = "cloud-pools.terminate-game-resource-request";
|
|
@@ -26,14 +26,19 @@ __decorate([
|
|
|
26
26
|
(0, class_validator_1.IsUUID)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], TerminateGameResourceRequestPayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsBoolean)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], TerminateGameResourceRequestPayload.prototype, "uploadLogs", void 0);
|
|
29
34
|
__decorate([
|
|
30
35
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
31
36
|
__metadata("design:type", Object)
|
|
32
37
|
], TerminateGameResourceRequestPayload.prototype, "providerSettings", void 0);
|
|
33
38
|
__decorate([
|
|
34
|
-
(0,
|
|
35
|
-
__metadata("design:type",
|
|
36
|
-
], TerminateGameResourceRequestPayload.prototype, "
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], TerminateGameResourceRequestPayload.prototype, "resourceProviderSettings", void 0);
|
|
37
42
|
class TerminateGameResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
38
43
|
constructor(payload, context) {
|
|
39
44
|
super(TerminateGameResourceRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v3/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAEhE,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAKkB;AAElB,MAAa,mCAAmC;CAgB/C;AAhBD,kFAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAInB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uEACQ;AAGrB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;qFACE;AAG1D,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,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,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsUUID,
|
|
1
|
+
import { IsUUID, IsBoolean, IsOptional } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { CloudResourceContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
@@ -6,7 +6,8 @@ import { ValidateNestedType } from "../../decorators/validate-nested-type.decora
|
|
|
6
6
|
import {
|
|
7
7
|
AWSProviderSettings,
|
|
8
8
|
CloudProviderSettings,
|
|
9
|
-
|
|
9
|
+
AWSResourceProviderSettings,
|
|
10
|
+
CloudResourceProviderSettings,
|
|
10
11
|
} from "../types";
|
|
11
12
|
|
|
12
13
|
export class TerminateGameResourceRequestPayload {
|
|
@@ -16,11 +17,15 @@ export class TerminateGameResourceRequestPayload {
|
|
|
16
17
|
@IsUUID()
|
|
17
18
|
gamePoolId: string;
|
|
18
19
|
|
|
20
|
+
@IsBoolean()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
uploadLogs?: boolean;
|
|
23
|
+
|
|
19
24
|
@ValidateNestedType(() => AWSProviderSettings)
|
|
20
25
|
providerSettings: CloudProviderSettings;
|
|
21
26
|
|
|
22
|
-
@
|
|
23
|
-
|
|
27
|
+
@ValidateNestedType(() => AWSResourceProviderSettings)
|
|
28
|
+
resourceProviderSettings: CloudResourceProviderSettings;
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
export class TerminateGameResourceRequest extends LudeoEvent {
|