@ludeo/cloud-common 1.1.53 → 1.1.54
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.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v3/events/game-resource-allocated-response.d.ts +3 -3
- package/dist/v3/events/game-resource-allocated-response.js +2 -2
- package/dist/v3/events/game-resource-allocated-response.js.map +1 -1
- package/dist/v3/events/game-resource-allocation-failed-response.d.ts +3 -3
- package/dist/v3/events/game-resource-allocation-failed-response.js +2 -2
- package/dist/v3/events/game-resource-allocation-failed-response.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/game-resource-allocated-response.ts +4 -4
- package/src/v3/events/game-resource-allocation-failed-response.ts +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CloudSessionContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { AllocationRequestData, CloudProviderAllocationData } from "../types";
|
|
4
4
|
export declare class GameResourceAllocatedResponsePayload {
|
|
@@ -9,7 +9,7 @@ export declare class GameResourceAllocatedResponsePayload {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class GameResourceAllocatedResponse extends LudeoEvent {
|
|
11
11
|
static readonly EVENT_NAME = "cloud-resources.game-resource-allocated-response";
|
|
12
|
-
constructor(payload: GameResourceAllocatedResponsePayload, context:
|
|
13
|
-
context:
|
|
12
|
+
constructor(payload: GameResourceAllocatedResponsePayload, context: CloudSessionContext);
|
|
13
|
+
context: CloudSessionContext;
|
|
14
14
|
payload: GameResourceAllocatedResponsePayload;
|
|
15
15
|
}
|
|
@@ -44,8 +44,8 @@ class GameResourceAllocatedResponse extends ludeo_event_1.LudeoEvent {
|
|
|
44
44
|
exports.GameResourceAllocatedResponse = GameResourceAllocatedResponse;
|
|
45
45
|
GameResourceAllocatedResponse.EVENT_NAME = "cloud-resources.game-resource-allocated-response";
|
|
46
46
|
__decorate([
|
|
47
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.
|
|
48
|
-
__metadata("design:type", contexts_1.
|
|
47
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
|
|
48
|
+
__metadata("design:type", contexts_1.CloudSessionContext)
|
|
49
49
|
], GameResourceAllocatedResponse.prototype, "context", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(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,
|
|
1
|
+
{"version":3,"file":"game-resource-allocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAwE;AACxE,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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
11
|
-
context:
|
|
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.
|
|
43
|
-
__metadata("design:type", contexts_1.
|
|
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,
|
|
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
|
import { IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
|
-
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
import { CloudResourceContext, CloudSessionContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
import {
|
|
@@ -29,15 +29,15 @@ export class GameResourceAllocatedResponse extends LudeoEvent {
|
|
|
29
29
|
|
|
30
30
|
constructor(
|
|
31
31
|
payload: GameResourceAllocatedResponsePayload,
|
|
32
|
-
context:
|
|
32
|
+
context: CloudSessionContext
|
|
33
33
|
) {
|
|
34
34
|
super(GameResourceAllocatedResponse.EVENT_NAME);
|
|
35
35
|
this.payload = payload;
|
|
36
36
|
this.context = context;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
@ValidateNestedType(() =>
|
|
40
|
-
context:
|
|
39
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
40
|
+
context: CloudSessionContext;
|
|
41
41
|
|
|
42
42
|
@ValidateNestedType(() => GameResourceAllocatedResponsePayload)
|
|
43
43
|
payload: GameResourceAllocatedResponsePayload;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsString, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
|
-
import {
|
|
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:
|
|
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(() =>
|
|
32
|
-
context:
|
|
31
|
+
@ValidateNestedType(() => CloudSessionContext)
|
|
32
|
+
context: CloudSessionContext;
|
|
33
33
|
|
|
34
34
|
@ValidateNestedType(() => GameResourceAllocationFailedResponsePayload)
|
|
35
35
|
payload: GameResourceAllocationFailedResponsePayload;
|