@ludeo/cloud-common 1.2.201 → 1.2.202

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.
@@ -2,7 +2,7 @@ import { CloudResourceContext, CloudSessionContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  export declare class GameResourceTerminatedResponsePayload {
4
4
  gameResourceId: string;
5
- gamePoolId: string;
5
+ gamePoolId?: string;
6
6
  shouldDeallocateMachineResource: boolean;
7
7
  }
8
8
  export declare class GameResourceTerminatedResponse extends LudeoEvent {
@@ -22,6 +22,7 @@ __decorate([
22
22
  __metadata("design:type", String)
23
23
  ], GameResourceTerminatedResponsePayload.prototype, "gameResourceId", void 0);
24
24
  __decorate([
25
+ (0, class_validator_1.IsOptional)(),
25
26
  (0, class_validator_1.IsUUID)(),
26
27
  __metadata("design:type", String)
27
28
  ], GameResourceTerminatedResponsePayload.prototype, "gamePoolId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"game-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AAEpD,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,qCAAqC;CASjD;AATD,sFASC;AAPC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,2BAAS,GAAE;;8FAC6B;AAG3C,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAAmD;QAEnD,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,8BAAmB,CAAC;;+DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
1
+ {"version":3,"file":"game-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAEhE,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,qCAAqC;CAUjD;AAVD,sFAUC;AARC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;yEACW;AAGpB;IADC,IAAA,2BAAS,GAAE;;8FAC6B;AAG3C,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAAmD;QAEnD,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,8BAAmB,CAAC;;+DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
@@ -4,7 +4,7 @@ import { SiteOperationStatus } from '../../types/site-controller';
4
4
  import { CloudResourceStatus } from '../../types/pools';
5
5
  export declare class GameLudeocastTerminationEndedPayload {
6
6
  gameResourceId: string;
7
- gamePoolId: string;
7
+ gamePoolId?: string;
8
8
  operationStatus: SiteOperationStatus;
9
9
  status: CloudResourceStatus;
10
10
  reason?: string;
@@ -24,6 +24,7 @@ __decorate([
24
24
  __metadata("design:type", String)
25
25
  ], GameLudeocastTerminationEndedPayload.prototype, "gameResourceId", void 0);
26
26
  __decorate([
27
+ (0, class_validator_1.IsOptional)(),
27
28
  (0, class_validator_1.IsUUID)(),
28
29
  __metadata("design:type", String)
29
30
  ], GameLudeocastTerminationEndedPayload.prototype, "gamePoolId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"game-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,oCAAoC;CAgBhD;AAhBD,oFAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;wEACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGlB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
1
+ {"version":3,"file":"game-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,oCAAoC;CAiBhD;AAjBD,oFAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;4EACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGlB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
@@ -4,7 +4,7 @@ import { SiteOperationStatus } from '../../types/site-controller';
4
4
  import { CloudResourceStatus } from '../../types/pools';
5
5
  export declare class MachineLudeocastTerminationEndedPayload {
6
6
  machineResourceId: string;
7
- machinePoolId: string;
7
+ machinePoolId?: string;
8
8
  operationStatus: SiteOperationStatus;
9
9
  status: CloudResourceStatus;
10
10
  reason?: string;
@@ -25,6 +25,7 @@ __decorate([
25
25
  ], MachineLudeocastTerminationEndedPayload.prototype, "machineResourceId", void 0);
26
26
  __decorate([
27
27
  (0, class_validator_1.IsUUID)(),
28
+ (0, class_validator_1.IsOptional)(),
28
29
  __metadata("design:type", String)
29
30
  ], MachineLudeocastTerminationEndedPayload.prototype, "machinePoolId", void 0);
30
31
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"machine-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,uCAAuC;CAgBnD;AAhBD,0FAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;8EACa;AAGtB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;gFACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;uEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uEACK;AAGlB,MAAa,gCAAiC,SAAQ,kBAAU;IAG9D,YAAY,OAAgD,EAAE,OAA6B;QACzF,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4EAcC;AAbiB,2CAAU,GAAG,qDAAqD,CAAC;AASnF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC;AAGjD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;iEAAC"}
1
+ {"version":3,"file":"machine-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,uCAAuC;CAiBnD;AAjBD,0FAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAI1B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8EACU;AAGvB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;gFACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;uEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uEACK;AAGlB,MAAa,gCAAiC,SAAQ,kBAAU;IAG9D,YAAY,OAAgD,EAAE,OAA6B;QACzF,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4EAcC;AAbiB,2CAAU,GAAG,qDAAqD,CAAC;AASnF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC;AAGjD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;iEAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.201",
3
+ "version": "1.2.202",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,4 +1,4 @@
1
- import { IsUUID, IsBoolean } from "class-validator";
1
+ import { IsUUID, IsBoolean, IsOptional } from "class-validator";
2
2
 
3
3
  import {
4
4
  CloudResourceContext,
@@ -12,8 +12,9 @@ export class GameResourceTerminatedResponsePayload {
12
12
  @IsUUID()
13
13
  gameResourceId: string;
14
14
 
15
+ @IsOptional()
15
16
  @IsUUID()
16
- gamePoolId: string;
17
+ gamePoolId?: string;
17
18
 
18
19
  @IsBoolean()
19
20
  shouldDeallocateMachineResource: boolean;
@@ -9,8 +9,9 @@ export class GameLudeocastTerminationEndedPayload {
9
9
  @IsUUID()
10
10
  gameResourceId: string;
11
11
 
12
+ @IsOptional()
12
13
  @IsUUID()
13
- gamePoolId: string;
14
+ gamePoolId?: string;
14
15
 
15
16
  @IsEnum(SiteOperationStatus)
16
17
  operationStatus: SiteOperationStatus;
@@ -10,7 +10,8 @@ export class MachineLudeocastTerminationEndedPayload {
10
10
  machineResourceId: string;
11
11
 
12
12
  @IsUUID()
13
- machinePoolId: string;
13
+ @IsOptional()
14
+ machinePoolId?: string;
14
15
 
15
16
  @IsEnum(SiteOperationStatus)
16
17
  operationStatus: SiteOperationStatus;