@ludeo/cloud-common 1.2.25 → 1.2.27

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.
@@ -1,7 +1,7 @@
1
1
  import { CloudResourceContext, CloudSessionContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  export declare class TerminateGameRequestPayload {
4
- gamePoolId: string;
4
+ gamePoolId?: string;
5
5
  gameResourceId: string;
6
6
  uploadLogs?: boolean;
7
7
  }
@@ -18,6 +18,7 @@ class TerminateGameRequestPayload {
18
18
  }
19
19
  exports.TerminateGameRequestPayload = TerminateGameRequestPayload;
20
20
  __decorate([
21
+ (0, class_validator_1.IsOptional)(),
21
22
  (0, class_validator_1.IsUUID)(),
22
23
  __metadata("design:type", String)
23
24
  ], TerminateGameRequestPayload.prototype, "gamePoolId", void 0);
@@ -1 +1 @@
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"}
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;CAWvC;AAXD,kEAWC;AARC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACW;AAGpB;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"}
@@ -17,7 +17,7 @@ export declare class PoolStatusEventMachinePool extends PoolStatusEventBasePool
17
17
  games: PoolStatusEventGamePool[];
18
18
  }
19
19
  export declare class PoolStatusEventPayload {
20
- machines: PoolStatusEventBasePool[];
20
+ machines: PoolStatusEventMachinePool[];
21
21
  requestId: string;
22
22
  }
23
23
  export declare class PoolStatusEvent extends LudeoEvent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.25",
3
+ "version": "1.2.27",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -9,8 +9,9 @@ import { LudeoEvent } from "../../infra/ludeo-event";
9
9
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
10
10
 
11
11
  export class TerminateGameRequestPayload {
12
+ @IsOptional()
12
13
  @IsUUID()
13
- gamePoolId: string;
14
+ gamePoolId?: string;
14
15
 
15
16
  @IsUUID()
16
17
  gameResourceId: string;
@@ -34,7 +34,7 @@ export class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
34
34
  }
35
35
 
36
36
  export class PoolStatusEventPayload {
37
- machines: PoolStatusEventBasePool[];
37
+ machines: PoolStatusEventMachinePool[];
38
38
 
39
39
  @IsUUID()
40
40
  requestId: string;