@ludeo/cloud-common 1.1.52 → 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.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v3/events/game-allocated-response.d.ts +2 -2
- package/dist/v3/events/game-allocated-response.js +4 -4
- package/dist/v3/events/game-allocated-response.js.map +1 -1
- package/dist/v3/events/game-resource-allocated-response.d.ts +2 -1
- package/dist/v3/events/game-resource-allocated-response.js +4 -0
- package/dist/v3/events/game-resource-allocated-response.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/game-allocated-response.ts +3 -3
- package/src/v3/events/game-resource-allocated-response.ts +8 -1
|
@@ -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
|
-
|
|
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.
|
|
22
|
-
__metadata("design:type",
|
|
23
|
-
], GameAllocatedResponsePayload.prototype, "
|
|
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,
|
|
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,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -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(() =>
|
|
8
|
-
|
|
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 {
|
|
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 {
|