@ludeo/cloud-common 1.1.134-ygbeta3 → 1.1.134

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,9 +1,9 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { AWSResourceProviderSettings, CloudProvider } from "../types";
2
+ import { CloudProvider, CloudResourceProviderSettings } from "../types";
3
3
  export declare class MonitorGameResourceTaskEventPayload {
4
4
  gameResourceId: string;
5
5
  gamePoolId: string;
6
- providerSettings: AWSResourceProviderSettings;
6
+ providerSettings: CloudResourceProviderSettings;
7
7
  cloudProvider: CloudProvider;
8
8
  }
9
9
  export declare class MonitorGameResourceTaskEvent extends LudeoEvent {
@@ -27,7 +27,7 @@ __decorate([
27
27
  ], MonitorGameResourceTaskEventPayload.prototype, "gamePoolId", void 0);
28
28
  __decorate([
29
29
  (0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
30
- __metadata("design:type", types_1.AWSResourceProviderSettings)
30
+ __metadata("design:type", Object)
31
31
  ], MonitorGameResourceTaskEventPayload.prototype, "providerSettings", void 0);
32
32
  __decorate([
33
33
  (0, class_validator_1.IsEnum)(types_1.CloudProvider),
@@ -1 +1 @@
1
- {"version":3,"file":"monitor-game-resource-task.js","sourceRoot":"","sources":["../../../src/v3/events/monitor-game-resource-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oCAAsE;AACtE,iDAAsD;AAEtD,MAAa,mCAAmC;CAY/C;AAZD,kFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;6EAAC;AAG9C;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG/B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YAAY,OAA4C;QACtD,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,oEAYC;AAXiB,uCAAU,GAAG,4CAA4C,CAAC;AAU1E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
1
+ {"version":3,"file":"monitor-game-resource-task.js","sourceRoot":"","sources":["../../../src/v3/events/monitor-game-resource-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oCAIkB;AAClB,iDAAsD;AAEtD,MAAa,mCAAmC;CAY/C;AAZD,kFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;6EACN;AAGhD;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG/B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YAAY,OAA4C;QACtD,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,oEAYC;AAXiB,uCAAU,GAAG,4CAA4C,CAAC;AAU1E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
@@ -1,16 +1,12 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
2
  import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
3
- export declare class PoolStatusEventBasePool {
3
+ export declare class PoolStatusEventPool {
4
4
  attributes: BasePoolAttributes;
5
5
  statusMap: CloudResourcesStatusMap;
6
- poolId: string;
7
- }
8
- export declare class PoolStatusEventGamePool extends PoolStatusEventBasePool {
9
- machinePoolId: string;
10
6
  }
11
7
  export declare class PoolStatusEventPayload {
12
- games: PoolStatusEventGamePool[];
13
- machines: PoolStatusEventBasePool[];
8
+ games: PoolStatusEventPool[];
9
+ machines: PoolStatusEventPool[];
14
10
  requestId: string;
15
11
  }
16
12
  export declare class PoolStatusEvent extends LudeoEvent {
@@ -9,29 +9,18 @@ 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.PoolStatusEvent = exports.PoolStatusEventPayload = exports.PoolStatusEventGamePool = exports.PoolStatusEventBasePool = void 0;
12
+ exports.PoolStatusEvent = exports.PoolStatusEventPayload = exports.PoolStatusEventPool = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const ludeo_event_1 = require("../../infra/ludeo-event");
15
15
  const types_1 = require("../types");
16
16
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
- class PoolStatusEventBasePool {
17
+ class PoolStatusEventPool {
18
18
  }
19
- exports.PoolStatusEventBasePool = PoolStatusEventBasePool;
19
+ exports.PoolStatusEventPool = PoolStatusEventPool;
20
20
  __decorate([
21
21
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.BasePoolAttributes),
22
22
  __metadata("design:type", types_1.BasePoolAttributes)
23
- ], PoolStatusEventBasePool.prototype, "attributes", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsUUID)(),
26
- __metadata("design:type", String)
27
- ], PoolStatusEventBasePool.prototype, "poolId", void 0);
28
- class PoolStatusEventGamePool extends PoolStatusEventBasePool {
29
- }
30
- exports.PoolStatusEventGamePool = PoolStatusEventGamePool;
31
- __decorate([
32
- (0, class_validator_1.IsUUID)(),
33
- __metadata("design:type", String)
34
- ], PoolStatusEventGamePool.prototype, "machinePoolId", void 0);
23
+ ], PoolStatusEventPool.prototype, "attributes", void 0);
35
24
  class PoolStatusEventPayload {
36
25
  }
37
26
  exports.PoolStatusEventPayload = PoolStatusEventPayload;
@@ -1 +1 @@
1
- {"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v3/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oCAAuE;AACvE,oGAAqF;AAErF,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AANC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;2DAAC;AAK/B;IADC,IAAA,wBAAM,GAAE;;uDACM;AAGjB,MAAa,uBAAwB,SAAQ,uBAAuB;CAGnE;AAHD,0DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAGxB,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACS;AAGpB,MAAa,eAAgB,SAAQ,wBAAU;IAG7C,YAAY,OAA+B;QACzC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,0CAUC;AATiB,0BAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACxC,sBAAsB;gDAAC"}
1
+ {"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v3/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,oCAAuE;AACvE,oGAAqF;AAKrF,MAAa,mBAAmB;CAK/B;AALD,kDAKC;AAHC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;uDAAC;AAKjC,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACS;AAGpB,MAAa,eAAgB,SAAQ,wBAAU;IAG7C,YAAY,OAA+B;QACzC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,0CAUC;AATiB,0BAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACxC,sBAAsB;gDAAC"}
@@ -2,11 +2,9 @@ import { LudeoEvent } from "../../infra/ludeo-event";
2
2
  import { MachinePoolAttributes, GamePoolAttributes } from "../types";
3
3
  export declare class MachinePoolAttributesWithQuantity extends MachinePoolAttributes {
4
4
  quantity: number;
5
- poolId: string;
6
5
  }
7
6
  export declare class GamePoolAttributesWithQuantity extends GamePoolAttributes {
8
7
  quantity: number;
9
- poolId: string;
10
8
  }
11
9
  export declare class SetPoolsStateEventRequestId {
12
10
  poolMonitorRequestId: string;
@@ -1 +1 @@
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;CAI3E;AAJD,8EAIC;AAED,MAAa,8BAA+B,SAAQ,0BAAkB;CAIrE;AAJD,wEAIC;AAED,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;yEACoB;AAG7B;IADC,IAAA,wBAAM,GAAE;;4EACuB;AAGlC,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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AAC,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"}
@@ -27,6 +27,7 @@ export declare class AWSResourceProviderSettings {
27
27
  streamSessionId?: string;
28
28
  streamGroupId?: string;
29
29
  cloudProvider?: CloudProvider;
30
+ region?: string;
30
31
  }
31
32
  export type CloudResourceProviderSettings = AWSResourceProviderSettings;
32
33
  export declare class AWSGameCreationResponse {
@@ -60,6 +60,11 @@ __decorate([
60
60
  (0, class_validator_1.IsOptional)(),
61
61
  __metadata("design:type", String)
62
62
  ], AWSResourceProviderSettings.prototype, "cloudProvider", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsOptional)(),
65
+ (0, class_validator_1.IsString)(),
66
+ __metadata("design:type", String)
67
+ ], AWSResourceProviderSettings.prototype, "region", void 0);
63
68
  class AWSGameCreationResponse {
64
69
  }
65
70
  exports.AWSGameCreationResponse = AWSGameCreationResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v3/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAKxB,IAAY,aAEX;AAFD,WAAY,aAAa;IACvB,4BAAW,CAAA;AACb,CAAC,EAFW,aAAa,6BAAb,aAAa,QAExB;AAED,MAAa,mBAAmB;CAS/B;AATD,kDASC;AAID,MAAa,iBAAiB;CAS7B;AATD,8CASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;wDACW;AAGtB;IADC,IAAA,0BAAQ,GAAE;;0DACa;AAGxB;IADC,IAAA,0BAAQ,GAAE;;yDACY;AAKzB,MAAa,2BAA2B;CAY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U,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.134-ygbeta3",
3
+ "version": "1.1.134",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -22,7 +22,7 @@ export class GameResourceReadyForCreation extends LudeoEvent {
22
22
 
23
23
  constructor(
24
24
  payload: GameResourceReadyForCreationPayload,
25
- context: CloudResourceContext,
25
+ context: CloudResourceContext
26
26
  ) {
27
27
  super(GameResourceReadyForCreation.EVENT_NAME);
28
28
  this.payload = payload;
@@ -1,6 +1,10 @@
1
1
  import { IsEnum, IsUUID } from "class-validator";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { AWSResourceProviderSettings, CloudProvider } from "../types";
3
+ import {
4
+ AWSResourceProviderSettings,
5
+ CloudProvider,
6
+ CloudResourceProviderSettings,
7
+ } from "../types";
4
8
  import { ValidateNestedType } from "../../decorators";
5
9
 
6
10
  export class MonitorGameResourceTaskEventPayload {
@@ -11,7 +15,7 @@ export class MonitorGameResourceTaskEventPayload {
11
15
  gamePoolId: string;
12
16
 
13
17
  @ValidateNestedType(() => AWSResourceProviderSettings)
14
- providerSettings: AWSResourceProviderSettings;
18
+ providerSettings: CloudResourceProviderSettings;
15
19
 
16
20
  @IsEnum(CloudProvider)
17
21
  cloudProvider: CloudProvider;
@@ -1,28 +1,23 @@
1
- import { IsString, IsUUID } from "class-validator";
1
+ import { IsUUID } from "class-validator";
2
2
 
3
3
  import { LudeoEvent } from "../../infra/ludeo-event";
4
4
  import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
5
5
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
6
6
 
7
- export class PoolStatusEventBasePool {
7
+ /**
8
+ * Will be used later on in a newer version of the predictor
9
+ */
10
+ export class PoolStatusEventPool {
8
11
  @ValidateNestedType(() => BasePoolAttributes)
9
12
  attributes: BasePoolAttributes;
10
13
 
11
14
  statusMap: CloudResourcesStatusMap;
12
-
13
- @IsUUID()
14
- poolId: string;
15
- }
16
-
17
- export class PoolStatusEventGamePool extends PoolStatusEventBasePool {
18
- @IsUUID()
19
- machinePoolId: string;
20
15
  }
21
16
 
22
17
  export class PoolStatusEventPayload {
23
- games: PoolStatusEventGamePool[];
18
+ games: PoolStatusEventPool[];
24
19
 
25
- machines: PoolStatusEventBasePool[];
20
+ machines: PoolStatusEventPool[];
26
21
 
27
22
  @IsUUID()
28
23
  requestId: string;
@@ -6,14 +6,10 @@ import { ValidateNestedType } from "../../decorators/validate-nested-type.decora
6
6
 
7
7
  export class MachinePoolAttributesWithQuantity extends MachinePoolAttributes {
8
8
  quantity: number;
9
-
10
- poolId: string;
11
9
  }
12
10
 
13
11
  export class GamePoolAttributesWithQuantity extends GamePoolAttributes {
14
12
  quantity: number;
15
-
16
- poolId: string;
17
13
  }
18
14
 
19
15
  export class SetPoolsStateEventRequestId {
@@ -60,6 +60,10 @@ export class AWSResourceProviderSettings {
60
60
  @IsEnum(CloudProvider)
61
61
  @IsOptional()
62
62
  cloudProvider?: CloudProvider;
63
+
64
+ @IsOptional()
65
+ @IsString()
66
+ region?: string;
63
67
  }
64
68
 
65
69
  export type CloudResourceProviderSettings = AWSResourceProviderSettings;