@ludeo/cloud-common 1.1.53 → 1.1.55

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,15 +1,14 @@
1
- import { CloudResourceContext } from "../contexts";
1
+ import { CloudSessionContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { AllocationRequestData, CloudProviderAllocationData } from "../types";
3
+ import { CloudProviderAllocationData } from "../types";
4
4
  export declare class GameResourceAllocatedResponsePayload {
5
5
  gameResourceId: string;
6
6
  gamePoolId: string;
7
7
  allocationData: CloudProviderAllocationData;
8
- requestData: AllocationRequestData;
9
8
  }
10
9
  export declare class GameResourceAllocatedResponse extends LudeoEvent {
11
10
  static readonly EVENT_NAME = "cloud-resources.game-resource-allocated-response";
12
- constructor(payload: GameResourceAllocatedResponsePayload, context: CloudResourceContext);
13
- context: CloudResourceContext;
11
+ constructor(payload: GameResourceAllocatedResponsePayload, context: CloudSessionContext);
12
+ context: CloudSessionContext;
14
13
  payload: GameResourceAllocatedResponsePayload;
15
14
  }
@@ -30,10 +30,6 @@ __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);
37
33
  class GameResourceAllocatedResponse extends ludeo_event_1.LudeoEvent {
38
34
  constructor(payload, context) {
39
35
  super(GameResourceAllocatedResponse.EVENT_NAME);
@@ -44,8 +40,8 @@ class GameResourceAllocatedResponse extends ludeo_event_1.LudeoEvent {
44
40
  exports.GameResourceAllocatedResponse = GameResourceAllocatedResponse;
45
41
  GameResourceAllocatedResponse.EVENT_NAME = "cloud-resources.game-resource-allocated-response";
46
42
  __decorate([
47
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
48
- __metadata("design:type", contexts_1.CloudResourceContext)
43
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
44
+ __metadata("design:type", contexts_1.CloudSessionContext)
49
45
  ], GameResourceAllocatedResponse.prototype, "context", void 0);
50
46
  __decorate([
51
47
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameResourceAllocatedResponsePayload),
@@ -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,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
+ {"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,4 +1,4 @@
1
- import { CloudResourceContext } from "../contexts";
1
+ import { CloudSessionContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  export declare class GameResourceAllocationFailedResponsePayload {
4
4
  gameResourceId: string;
@@ -7,7 +7,7 @@ export declare class GameResourceAllocationFailedResponsePayload {
7
7
  }
8
8
  export declare class GameResourceAllocationFailedResponse extends LudeoEvent {
9
9
  static readonly EVENT_NAME = "cloud-resources.game-resource-allocation-failed-response";
10
- constructor(payload: GameResourceAllocationFailedResponsePayload, context: CloudResourceContext);
11
- context: CloudResourceContext;
10
+ constructor(payload: GameResourceAllocationFailedResponsePayload, context: CloudSessionContext);
11
+ context: CloudSessionContext;
12
12
  payload: GameResourceAllocationFailedResponsePayload;
13
13
  }
@@ -39,8 +39,8 @@ class GameResourceAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
39
39
  exports.GameResourceAllocationFailedResponse = GameResourceAllocationFailedResponse;
40
40
  GameResourceAllocationFailedResponse.EVENT_NAME = "cloud-resources.game-resource-allocation-failed-response";
41
41
  __decorate([
42
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
43
- __metadata("design:type", contexts_1.CloudResourceContext)
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
43
+ __metadata("design:type", contexts_1.CloudSessionContext)
44
44
  ], GameResourceAllocationFailedResponse.prototype, "context", void 0);
45
45
  __decorate([
46
46
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameResourceAllocationFailedResponsePayload),
@@ -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,0CAAmD;AACnD,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,OAA6B;QAE7B,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,+BAAoB,CAAC;8BACtC,+BAAoB;qEAAC;AAG9B;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,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.53",
3
+ "version": "1.1.55",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,13 +1,9 @@
1
1
  import { IsUUID } from "class-validator";
2
2
 
3
- import { CloudResourceContext } from "../contexts";
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 {
7
- AllocationRequestData,
8
- AwsAllocationData,
9
- CloudProviderAllocationData,
10
- } from "../types";
6
+ import { AwsAllocationData, CloudProviderAllocationData } from "../types";
11
7
 
12
8
  export class GameResourceAllocatedResponsePayload {
13
9
  @IsUUID()
@@ -18,9 +14,6 @@ export class GameResourceAllocatedResponsePayload {
18
14
 
19
15
  @ValidateNestedType(() => AwsAllocationData)
20
16
  allocationData: CloudProviderAllocationData;
21
-
22
- @ValidateNestedType(() => AllocationRequestData)
23
- requestData: AllocationRequestData;
24
17
  }
25
18
 
26
19
  export class GameResourceAllocatedResponse extends LudeoEvent {
@@ -29,15 +22,15 @@ export class GameResourceAllocatedResponse extends LudeoEvent {
29
22
 
30
23
  constructor(
31
24
  payload: GameResourceAllocatedResponsePayload,
32
- context: CloudResourceContext
25
+ context: CloudSessionContext
33
26
  ) {
34
27
  super(GameResourceAllocatedResponse.EVENT_NAME);
35
28
  this.payload = payload;
36
29
  this.context = context;
37
30
  }
38
31
 
39
- @ValidateNestedType(() => CloudResourceContext)
40
- context: CloudResourceContext;
32
+ @ValidateNestedType(() => CloudSessionContext)
33
+ context: CloudSessionContext;
41
34
 
42
35
  @ValidateNestedType(() => GameResourceAllocatedResponsePayload)
43
36
  payload: GameResourceAllocatedResponsePayload;
@@ -1,6 +1,6 @@
1
1
  import { IsString, IsUUID } from "class-validator";
2
2
 
3
- import { CloudResourceContext } from "../contexts";
3
+ import { CloudSessionContext } from "../contexts";
4
4
  import { LudeoEvent } from "../../infra/ludeo-event";
5
5
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
6
6
 
@@ -21,15 +21,15 @@ export class GameResourceAllocationFailedResponse extends LudeoEvent {
21
21
 
22
22
  constructor(
23
23
  payload: GameResourceAllocationFailedResponsePayload,
24
- context: CloudResourceContext
24
+ context: CloudSessionContext
25
25
  ) {
26
26
  super(GameResourceAllocationFailedResponse.EVENT_NAME);
27
27
  this.payload = payload;
28
28
  this.context = context;
29
29
  }
30
30
 
31
- @ValidateNestedType(() => CloudResourceContext)
32
- context: CloudResourceContext;
31
+ @ValidateNestedType(() => CloudSessionContext)
32
+ context: CloudSessionContext;
33
33
 
34
34
  @ValidateNestedType(() => GameResourceAllocationFailedResponsePayload)
35
35
  payload: GameResourceAllocationFailedResponsePayload;