@ludeo/cloud-common 1.1.55 → 1.1.57

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,10 +1,11 @@
1
1
  import { CloudSessionContext } 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,0CAAkD;AAClD,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,OAA4B;QAE5B,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,8BAAmB,CAAC;8BACrC,8BAAmB;8DAAC;AAG7B;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,0CAAkD;AAClD,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,OAA4B;QAE5B,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,8BAAmB,CAAC;8BACrC,8BAAmB;8DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC"}
@@ -1,9 +1,11 @@
1
+ import { AllocationRequestData } from "../types";
1
2
  import { CloudSessionContext } from "../contexts";
2
3
  import { LudeoEvent } from "../../infra/ludeo-event";
3
4
  export declare class GameResourceAllocationFailedResponsePayload {
4
5
  gameResourceId: string;
5
6
  gamePoolId: string;
6
7
  errorMessage: string;
8
+ requestData: AllocationRequestData;
7
9
  }
8
10
  export declare class GameResourceAllocationFailedResponse extends LudeoEvent {
9
11
  static readonly EVENT_NAME = "cloud-resources.game-resource-allocation-failed-response";
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.GameResourceAllocationFailedResponse = exports.GameResourceAllocationFailedResponsePayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const types_1 = require("../types");
14
15
  const contexts_1 = require("../contexts");
15
16
  const ludeo_event_1 = require("../../infra/ludeo-event");
16
17
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
@@ -29,6 +30,10 @@ __decorate([
29
30
  (0, class_validator_1.IsString)(),
30
31
  __metadata("design:type", String)
31
32
  ], GameResourceAllocationFailedResponsePayload.prototype, "errorMessage", void 0);
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
35
+ __metadata("design:type", types_1.AllocationRequestData)
36
+ ], GameResourceAllocationFailedResponsePayload.prototype, "requestData", void 0);
32
37
  class GameResourceAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
33
38
  constructor(payload, context) {
34
39
  super(GameResourceAllocationFailedResponse.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"game-resource-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2CAA2C;CASvD;AATD,kGASC;AAPC;IADC,IAAA,wBAAM,GAAE;;mFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;+EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;iFACU;AAGvB,MAAa,oCAAqC,SAAQ,wBAAU;IAIlE,YACE,OAAoD,EACpD,OAA4B;QAE5B,KAAK,CAAC,oCAAoC,CAAC,UAAU,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oFAkBC;AAjBiB,+CAAU,GACxB,0DAA0D,CAAC;AAY7D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAA2C,CAAC;8BAC7D,2CAA2C;qEAAC"}
1
+ {"version":3,"file":"game-resource-allocation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-allocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,oCAAiD;AACjD,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2CAA2C;CAYvD;AAZD,kGAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;mFACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;+EACU;AAGnB;IADC,IAAA,0BAAQ,GAAE;;iFACU;AAGrB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;gFAAC;AAGrC,MAAa,oCAAqC,SAAQ,wBAAU;IAIlE,YACE,OAAoD,EACpD,OAA4B;QAE5B,KAAK,CAAC,oCAAoC,CAAC,UAAU,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oFAkBC;AAjBiB,+CAAU,GACxB,0DAA0D,CAAC;AAY7D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAA2C,CAAC;8BAC7D,2CAA2C;qEAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.55",
3
+ "version": "1.1.57",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -3,7 +3,11 @@ import { IsUUID } from "class-validator";
3
3
  import { CloudSessionContext } 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 {
@@ -1,5 +1,6 @@
1
1
  import { IsString, IsUUID } from "class-validator";
2
2
 
3
+ import { AllocationRequestData } from "../types";
3
4
  import { CloudSessionContext } from "../contexts";
4
5
  import { LudeoEvent } from "../../infra/ludeo-event";
5
6
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
@@ -13,6 +14,9 @@ export class GameResourceAllocationFailedResponsePayload {
13
14
 
14
15
  @IsString()
15
16
  errorMessage: string;
17
+
18
+ @ValidateNestedType(() => AllocationRequestData)
19
+ requestData: AllocationRequestData;
16
20
  }
17
21
 
18
22
  export class GameResourceAllocationFailedResponse extends LudeoEvent {