@ludeo/cloud-common 1.1.51 → 1.1.53

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,8 +1,8 @@
1
- import { AllocationRequestData } from "../types";
2
1
  import { CloudSessionContext } from "../contexts";
3
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
+ import { CloudProviderAllocationData } from "../types";
4
4
  export declare class GameAllocatedResponsePayload {
5
- requestData: AllocationRequestData;
5
+ allocationData: CloudProviderAllocationData;
6
6
  }
7
7
  export declare class GameAllocatedResponse extends LudeoEvent {
8
8
  static readonly EVENT_NAME = "cloud-pools.game-allocated-response";
@@ -10,17 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.GameAllocatedResponse = exports.GameAllocatedResponsePayload = void 0;
13
- const types_1 = require("../types");
14
13
  const contexts_1 = require("../contexts");
15
14
  const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const types_1 = require("../types");
16
16
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
17
  class GameAllocatedResponsePayload {
18
18
  }
19
19
  exports.GameAllocatedResponsePayload = GameAllocatedResponsePayload;
20
20
  __decorate([
21
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
22
- __metadata("design:type", types_1.AllocationRequestData)
23
- ], GameAllocatedResponsePayload.prototype, "requestData", void 0);
21
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AwsAllocationData),
22
+ __metadata("design:type", Object)
23
+ ], GameAllocatedResponsePayload.prototype, "allocationData", void 0);
24
24
  class GameAllocatedResponse extends ludeo_event_1.LudeoEvent {
25
25
  constructor(payload, context) {
26
26
  super(GameAllocatedResponse.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAiD;AACjD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;iEAAC;AAGrC,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA4B;QAE5B,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sDAiBC;AAhBiB,gCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
1
+ {"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAkD;AAClD,yDAAqD;AACrD,oCAA0E;AAC1E,oGAAqF;AAErF,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;oEACA;AAG9C,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA4B;QAE5B,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,sDAiBC;AAhBiB,gCAAU,GAAG,qCAAqC,CAAC;AAYnE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
@@ -1,10 +1,11 @@
1
1
  import { CloudResourceContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { CloudProviderAllocationData } from "../types";
3
+ import { AllocationRequestData, CloudProviderAllocationData } from "../types";
4
4
  export declare class GameResourceAllocatedResponsePayload {
5
5
  gameResourceId: string;
6
6
  gamePoolId: string;
7
7
  allocationData: CloudProviderAllocationData;
8
+ requestData: AllocationRequestData;
8
9
  }
9
10
  export declare class GameResourceAllocatedResponse extends LudeoEvent {
10
11
  static readonly EVENT_NAME = "cloud-resources.game-resource-allocated-response";
@@ -30,6 +30,10 @@ __decorate([
30
30
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AwsAllocationData),
31
31
  __metadata("design:type", Object)
32
32
  ], GameResourceAllocatedResponsePayload.prototype, "allocationData", void 0);
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
35
+ __metadata("design:type", types_1.AllocationRequestData)
36
+ ], GameResourceAllocatedResponsePayload.prototype, "requestData", void 0);
33
37
  class GameResourceAllocatedResponse extends ludeo_event_1.LudeoEvent {
34
38
  constructor(payload, context) {
35
39
  super(GameResourceAllocatedResponse.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"game-resource-allocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAA0E;AAE1E,MAAa,oCAAoC;CAShD;AATD,oFASC;AAPC;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;wEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;4EACA;AAG9C,MAAa,6BAA8B,SAAQ,wBAAU;IAI3D,YACE,OAA6C,EAC7C,OAA6B;QAE7B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sEAkBC;AAjBiB,wCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC"}
1
+ {"version":3,"file":"game-resource-allocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;wEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;4EACA;AAG5C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;yEAAC;AAGrC,MAAa,6BAA8B,SAAQ,wBAAU;IAI3D,YACE,OAA6C,EAC7C,OAA6B;QAE7B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sEAkBC;AAjBiB,wCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC"}
@@ -1,11 +1,11 @@
1
1
  import { CloudResourceContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { CloudProvider, GameCreationResponse } from "../types";
3
+ import { CloudProvider, CloudResourceProviderSettings } from "../types";
4
4
  export declare class GameResourceCreatedResponsePayload {
5
5
  gameResourceId: string;
6
6
  gamePoolId: string;
7
7
  cloudProvider: CloudProvider;
8
- creationResponse: GameCreationResponse;
8
+ resourceProviderSettings: CloudResourceProviderSettings;
9
9
  }
10
10
  export declare class GameResourceCreatedResponse extends LudeoEvent {
11
11
  static readonly EVENT_NAME = "cloud-resources.game-resource-created-response";
@@ -13,8 +13,8 @@ exports.GameResourceCreatedResponse = exports.GameResourceCreatedResponsePayload
13
13
  const class_validator_1 = require("class-validator");
14
14
  const contexts_1 = require("../contexts");
15
15
  const ludeo_event_1 = require("../../infra/ludeo-event");
16
- const types_1 = require("../types");
17
16
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ const types_1 = require("../types");
18
18
  class GameResourceCreatedResponsePayload {
19
19
  }
20
20
  exports.GameResourceCreatedResponsePayload = GameResourceCreatedResponsePayload;
@@ -31,9 +31,9 @@ __decorate([
31
31
  __metadata("design:type", String)
32
32
  ], GameResourceCreatedResponsePayload.prototype, "cloudProvider", void 0);
33
33
  __decorate([
34
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSGameCreationResponse),
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
35
35
  __metadata("design:type", Object)
36
- ], GameResourceCreatedResponsePayload.prototype, "creationResponse", void 0);
36
+ ], GameResourceCreatedResponsePayload.prototype, "resourceProviderSettings", void 0);
37
37
  class GameResourceCreatedResponse extends ludeo_event_1.LudeoEvent {
38
38
  constructor(payload, context) {
39
39
  super(GameResourceCreatedResponse.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"game-resource-created-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oCAIkB;AAClB,oGAAqF;AAErF,MAAa,kCAAkC;CAY9C;AAZD,gFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;0EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;sEACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yEACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC;;4EACX;AAGzC,MAAa,2BAA4B,SAAQ,wBAAU;IAGzD,YACE,OAA2C,EAC3C,OAA6B;QAE7B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;4DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;8BACpD,kCAAkC;4DAAC"}
1
+ {"version":3,"file":"game-resource-created-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAIkB;AAElB,MAAa,kCAAkC;CAY9C;AAZD,gFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;0EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;sEACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yEACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;oFACE;AAG1D,MAAa,2BAA4B,SAAQ,wBAAU;IAGzD,YACE,OAA2C,EAC3C,OAA6B;QAE7B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;4DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;8BACpD,kCAAkC;4DAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.51",
3
+ "version": "1.1.53",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,11 +1,11 @@
1
- import { AllocationRequestData } from "../types";
2
1
  import { CloudSessionContext } from "../contexts";
3
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
+ import { AwsAllocationData, CloudProviderAllocationData } from "../types";
4
4
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
5
5
 
6
6
  export class GameAllocatedResponsePayload {
7
- @ValidateNestedType(() => AllocationRequestData)
8
- requestData: AllocationRequestData;
7
+ @ValidateNestedType(() => AwsAllocationData)
8
+ allocationData: CloudProviderAllocationData;
9
9
  }
10
10
 
11
11
  export class GameAllocatedResponse extends LudeoEvent {
@@ -3,7 +3,11 @@ import { IsUUID } from "class-validator";
3
3
  import { CloudResourceContext } from "../contexts";
4
4
  import { LudeoEvent } from "../../infra/ludeo-event";
5
5
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
6
- import { AwsAllocationData, CloudProviderAllocationData } from "../types";
6
+ import {
7
+ AllocationRequestData,
8
+ AwsAllocationData,
9
+ CloudProviderAllocationData,
10
+ } from "../types";
7
11
 
8
12
  export class GameResourceAllocatedResponsePayload {
9
13
  @IsUUID()
@@ -14,6 +18,9 @@ export class GameResourceAllocatedResponsePayload {
14
18
 
15
19
  @ValidateNestedType(() => AwsAllocationData)
16
20
  allocationData: CloudProviderAllocationData;
21
+
22
+ @ValidateNestedType(() => AllocationRequestData)
23
+ requestData: AllocationRequestData;
17
24
  }
18
25
 
19
26
  export class GameResourceAllocatedResponse extends LudeoEvent {
@@ -2,12 +2,12 @@ import { IsUUID, IsEnum } from "class-validator";
2
2
 
3
3
  import { CloudResourceContext } from "../contexts";
4
4
  import { LudeoEvent } from "../../infra/ludeo-event";
5
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
5
6
  import {
6
- AWSGameCreationResponse,
7
+ AWSResourceProviderSettings,
7
8
  CloudProvider,
8
- GameCreationResponse,
9
+ CloudResourceProviderSettings,
9
10
  } from "../types";
10
- import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
11
11
 
12
12
  export class GameResourceCreatedResponsePayload {
13
13
  @IsUUID()
@@ -19,8 +19,8 @@ export class GameResourceCreatedResponsePayload {
19
19
  @IsEnum(CloudProvider)
20
20
  cloudProvider: CloudProvider;
21
21
 
22
- @ValidateNestedType(() => AWSGameCreationResponse)
23
- creationResponse: GameCreationResponse;
22
+ @ValidateNestedType(() => AWSResourceProviderSettings)
23
+ resourceProviderSettings: CloudResourceProviderSettings;
24
24
  }
25
25
 
26
26
  export class GameResourceCreatedResponse extends LudeoEvent {