@ludeo/cloud-common 1.1.85 → 1.1.86

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.
@@ -3,4 +3,5 @@ export declare class CloudPoolContext {
3
3
  cloudProvider: CloudProvider;
4
4
  poolId: string;
5
5
  streamGroupId?: string;
6
+ poolMonitorRequestId?: string;
6
7
  }
@@ -28,4 +28,9 @@ __decorate([
28
28
  (0, class_validator_1.IsString)(),
29
29
  __metadata("design:type", String)
30
30
  ], CloudPoolContext.prototype, "streamGroupId", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsUUID)(),
34
+ __metadata("design:type", String)
35
+ ], CloudPoolContext.prototype, "poolMonitorRequestId", void 0);
31
36
  //# sourceMappingURL=cloud-pool-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-pool-context.js","sourceRoot":"","sources":["../../../src/v3/contexts/cloud-pool-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AARC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uDACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;gDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY"}
1
+ {"version":3,"file":"cloud-pool-context.js","sourceRoot":"","sources":["../../../src/v3/contexts/cloud-pool-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAZC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uDACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;gDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACqB"}
@@ -9,4 +9,5 @@ export declare class CloudResourceContext {
9
9
  gameResourceId?: string;
10
10
  machinePoolId?: string;
11
11
  machineResourceId?: string;
12
+ poolMonitorRequestId?: string;
12
13
  }
@@ -59,4 +59,9 @@ __decorate([
59
59
  (0, class_validator_1.IsUUID)(),
60
60
  __metadata("design:type", String)
61
61
  ], CloudResourceContext.prototype, "machineResourceId", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsUUID)(),
65
+ __metadata("design:type", String)
66
+ ], CloudResourceContext.prototype, "poolMonitorRequestId", void 0);
62
67
  //# sourceMappingURL=cloud-resource-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v3/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CAqChC;AArCD,oDAqCC;AAlCC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACc;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACkB"}
1
+ {"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v3/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CAyChC;AAzCD,oDAyCC;AAtCC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACc;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACqB"}
@@ -1,4 +1,5 @@
1
1
  import { TypeHelpOptions } from "class-transformer";
2
2
  import { CloudPoolContext } from "./cloud-pool-context";
3
+ import { CloudSessionContext } from "./cloud-session-context";
3
4
  import { CloudResourceContext } from "./cloud-resource-context";
4
- export declare const getCloudContextType: ({ object }: TypeHelpOptions) => typeof CloudPoolContext | typeof CloudResourceContext;
5
+ export declare const getCloudContextType: ({ object }: TypeHelpOptions) => typeof CloudPoolContext | typeof CloudResourceContext | typeof CloudSessionContext;
@@ -10,6 +10,7 @@ export declare class SetPoolStateEventPayload {
10
10
  machines: MachinePoolAttributesWithQuantity[];
11
11
  games: GamePoolAttributesWithQuantity[];
12
12
  error_message?: string;
13
+ requestId?: string;
13
14
  }
14
15
  export declare class SetPoolsStateEvent extends LudeoEvent {
15
16
  static readonly EVENT_NAME = "predictor.set_pools_state";
@@ -38,6 +38,11 @@ __decorate([
38
38
  (0, class_validator_1.IsString)(),
39
39
  __metadata("design:type", String)
40
40
  ], SetPoolStateEventPayload.prototype, "error_message", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsUUID)(),
44
+ __metadata("design:type", String)
45
+ ], SetPoolStateEventPayload.prototype, "requestId", void 0);
41
46
  class SetPoolsStateEvent extends ludeo_event_1.LudeoEvent {
42
47
  constructor(payload) {
43
48
  super(SetPoolsStateEvent.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"set-pools-state.js","sourceRoot":"","sources":["../../../src/v3/events/set-pools-state.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAEhE,yDAAqD;AACrD,oCAAqE;AACrE,oGAAqF;AAErF,MAAa,iCAAkC,SAAQ,6BAAqB;CAE3E;AAFD,8EAEC;AAED,MAAa,8BAA+B,SAAQ,0BAAkB;CAErE;AAFD,wEAEC;AAED,MAAa,wBAAwB;CAYpC;AAZD,4DAYC;AATC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,KAAwC,CAAC;;0DACrB;AAI9C;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,KAAqC,CAAC;;uDACxB;AAIxC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACY;AAGzB,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAiC;QAC3C,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,gDAUC;AATiB,6BAAU,GAAG,2BAA2B,CAAC;AAQzD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;mDAAC"}
1
+ {"version":3,"file":"set-pools-state.js","sourceRoot":"","sources":["../../../src/v3/events/set-pools-state.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwE;AAExE,yDAAqD;AACrD,oCAAqE;AACrE,oGAAqF;AAErF,MAAa,iCAAkC,SAAQ,6BAAqB;CAE3E;AAFD,8EAEC;AAED,MAAa,8BAA+B,SAAQ,0BAAkB;CAErE;AAFD,wEAEC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAbC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,KAAwC,CAAC;;0DACrB;AAI9C;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,KAAqC,CAAC;;uDACxB;AAIxC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACU;AAGrB,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAiC;QAC3C,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,gDAUC;AATiB,6BAAU,GAAG,2BAA2B,CAAC;AAQzD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;mDAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.85",
3
+ "version": "1.1.86",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -11,4 +11,8 @@ export class CloudPoolContext {
11
11
  @IsOptional()
12
12
  @IsString()
13
13
  streamGroupId?: string;
14
+
15
+ @IsOptional()
16
+ @IsUUID()
17
+ poolMonitorRequestId?: string;
14
18
  }
@@ -38,4 +38,8 @@ export class CloudResourceContext {
38
38
  @IsOptional()
39
39
  @IsUUID()
40
40
  machineResourceId?: string;
41
+
42
+ @IsOptional()
43
+ @IsUUID()
44
+ poolMonitorRequestId?: string;
41
45
  }
@@ -1,4 +1,4 @@
1
- import { IsArray, IsOptional, IsString } from "class-validator";
1
+ import { IsArray, IsOptional, IsString, IsUUID } from "class-validator";
2
2
 
3
3
  import { LudeoEvent } from "../../infra/ludeo-event";
4
4
  import { MachinePoolAttributes, GamePoolAttributes } from "../types";
@@ -24,6 +24,10 @@ export class SetPoolStateEventPayload {
24
24
  @IsOptional()
25
25
  @IsString()
26
26
  error_message?: string;
27
+
28
+ @IsOptional()
29
+ @IsUUID()
30
+ requestId?: string;
27
31
  }
28
32
 
29
33
  export class SetPoolsStateEvent extends LudeoEvent {