@ludeo/cloud-common 1.2.33 → 1.2.34
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/v4/events/allocate-ludeo-resource-request.d.ts +2 -2
- package/dist/v4/events/allocate-ludeo-resource-request.js +3 -3
- package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -1
- package/dist/v4/events/connection-id-timeout-task.d.ts +1 -0
- package/dist/v4/events/connection-id-timeout-task.js +4 -0
- package/dist/v4/events/connection-id-timeout-task.js.map +1 -1
- package/dist/v4/events/game-allocated-response.d.ts +2 -1
- package/dist/v4/events/game-allocated-response.js +4 -0
- package/dist/v4/events/game-allocated-response.js.map +1 -1
- package/dist/v4/events/game-resource-created-response.d.ts +2 -2
- package/dist/v4/events/game-resource-created-response.js +3 -3
- package/dist/v4/events/game-resource-created-response.js.map +1 -1
- package/dist/v4/events/game-resource-ready-for-creation.d.ts +2 -2
- package/dist/v4/events/game-resource-ready-for-creation.js +4 -4
- package/dist/v4/events/game-resource-ready-for-creation.js.map +1 -1
- package/dist/v4/events/load-ludeo-resource.d.ts +2 -1
- package/dist/v4/events/load-ludeo-resource.js +4 -0
- package/dist/v4/events/load-ludeo-resource.js.map +1 -1
- package/dist/v4/types/pools/resource/base.d.ts +0 -2
- package/dist/v4/types/pools/resource/base.js +0 -6
- package/dist/v4/types/pools/resource/base.js.map +1 -1
- package/dist/v4/types/pools/resource/game.d.ts +7 -0
- package/dist/v4/types/pools/resource/game.js +22 -1
- package/dist/v4/types/pools/resource/game.js.map +1 -1
- package/dist/v4/types/pools/resource/ludeo.d.ts +4 -0
- package/dist/v4/types/pools/resource/ludeo.js +12 -1
- package/dist/v4/types/pools/resource/ludeo.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/allocate-ludeo-resource-request.ts +3 -4
- package/src/v4/events/connection-id-timeout-task.ts +3 -0
- package/src/v4/events/game-allocated-response.ts +4 -0
- package/src/v4/events/game-resource-created-response.ts +3 -7
- package/src/v4/events/game-resource-ready-for-creation.ts +4 -8
- package/src/v4/events/load-ludeo-resource.ts +4 -0
- package/src/v4/types/pools/resource/base.ts +0 -5
- package/src/v4/types/pools/resource/game.ts +20 -1
- package/src/v4/types/pools/resource/ludeo.ts +9 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudSessionContext } from "../contexts";
|
|
3
|
-
import { AllocationRequestData, CloudProvider, CloudProviderSettings,
|
|
3
|
+
import { AllocationRequestData, CloudProvider, CloudProviderSettings, GameResourceSettings } from "../types";
|
|
4
4
|
export declare class AllocateLudeoResourceRequestPayload {
|
|
5
5
|
ludeoResourceId: string;
|
|
6
6
|
ludeoPoolId: string;
|
|
7
7
|
providerSettings: CloudProviderSettings;
|
|
8
8
|
cloudProvider: CloudProvider;
|
|
9
9
|
requestData: AllocationRequestData;
|
|
10
|
-
|
|
10
|
+
settings: GameResourceSettings;
|
|
11
11
|
requestedLudeoId: string;
|
|
12
12
|
preloadedLudeoId: string;
|
|
13
13
|
}
|
|
@@ -39,9 +39,9 @@ __decorate([
|
|
|
39
39
|
__metadata("design:type", types_1.AllocationRequestData)
|
|
40
40
|
], AllocateLudeoResourceRequestPayload.prototype, "requestData", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.
|
|
43
|
-
__metadata("design:type",
|
|
44
|
-
], AllocateLudeoResourceRequestPayload.prototype, "
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
43
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
44
|
+
], AllocateLudeoResourceRequestPayload.prototype, "settings", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, class_validator_1.IsUUID)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"allocate-ludeo-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-ludeo-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAMkB;AAElB,MAAa,mCAAmC;CAwB/C;AAxBD,kFAwBC;AAtBC;IADC,IAAA,wBAAM,GAAE;;4EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wEACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;6EACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;wEAAC;AAGnC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACrC,4BAAoB;qEAAC;AAG/B;IADC,IAAA,wBAAM,GAAE;;6EACgB;AAGzB;IADC,IAAA,wBAAM,GAAE;;6EACgB;AAG3B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA4B;QAE5B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;6DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
export declare class ConnectionIdTimeoutTaskPayload {
|
|
3
3
|
gameResourceId: string;
|
|
4
|
+
gamePoolId: string;
|
|
4
5
|
}
|
|
5
6
|
export declare class ConnectionIdTimeoutTask extends LudeoEvent {
|
|
6
7
|
static readonly EVENT_NAME = "cloud-resources.connection-id-timeout-task";
|
|
@@ -20,6 +20,10 @@ __decorate([
|
|
|
20
20
|
(0, class_validator_1.IsUUID)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], ConnectionIdTimeoutTaskPayload.prototype, "gameResourceId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsUUID)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ConnectionIdTimeoutTaskPayload.prototype, "gamePoolId", void 0);
|
|
23
27
|
class ConnectionIdTimeoutTask extends ludeo_event_1.LudeoEvent {
|
|
24
28
|
constructor(payload, context) {
|
|
25
29
|
super(ConnectionIdTimeoutTask.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-id-timeout-task.js","sourceRoot":"","sources":["../../../src/v4/events/connection-id-timeout-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,qDAAyC;AAEzC,MAAa,8BAA8B;
|
|
1
|
+
{"version":3,"file":"connection-id-timeout-task.js","sourceRoot":"","sources":["../../../src/v4/events/connection-id-timeout-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;AACrF,qDAAyC;AAEzC,MAAa,8BAA8B;CAM1C;AAND,wEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;sEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAGrB,MAAa,uBAAwB,SAAQ,wBAAU;IAGrD,YAAY,OAAuC,EAAE,OAAc;QACjE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,0DAaC;AAZiB,kCAAU,GAAG,4CAA4C,CAAC;AAW1E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings, GameResourceSettings } from "../types";
|
|
4
4
|
export declare class GameAllocatedResponsePayload {
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
gamePoolId: string;
|
|
@@ -9,6 +9,7 @@ export declare class GameAllocatedResponsePayload {
|
|
|
9
9
|
ludeoId: string;
|
|
10
10
|
providerSettings: CloudProviderSettings;
|
|
11
11
|
gameId: string;
|
|
12
|
+
settings: GameResourceSettings;
|
|
12
13
|
cloudProvider: CloudProvider;
|
|
13
14
|
}
|
|
14
15
|
export declare class GameAllocatedResponse extends LudeoEvent {
|
|
@@ -46,6 +46,10 @@ __decorate([
|
|
|
46
46
|
(0, class_validator_1.IsUUID)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], GameAllocatedResponsePayload.prototype, "gameId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
51
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
52
|
+
], GameAllocatedResponsePayload.prototype, "settings", void 0);
|
|
49
53
|
__decorate([
|
|
50
54
|
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
51
55
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAmD;AACnD,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"game-allocated-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-allocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAmD;AACnD,yDAAqD;AACrD,oCAKkB;AAClB,oGAAqF;AACrF,qDAAiD;AAEjD,MAAa,4BAA4B;CA2BxC;AA3BD,oEA2BC;AAzBC;IADC,IAAA,wBAAM,GAAE;;oEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;gEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;qEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;iEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;6DACO;AAGhB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;sEACN;AAGxC;IADC,IAAA,wBAAM,GAAE;;4DACM;AAGf;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACrC,4BAAoB;8DAAC;AAG/B;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;mEACO;AAG/B,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YACE,OAAqC,EACrC,OAA6B;QAE7B,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,+BAAoB,CAAC;8BACtC,+BAAoB;sDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CloudResourceContext } from "../contexts";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
-
import { CloudProvider,
|
|
3
|
+
import { CloudProvider, GameResourceSettings } from "../types";
|
|
4
4
|
export declare class GameResourceCreatedResponsePayload {
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
gamePoolId: string;
|
|
7
7
|
cloudProvider: CloudProvider;
|
|
8
|
-
|
|
8
|
+
settings: GameResourceSettings;
|
|
9
9
|
}
|
|
10
10
|
export declare class GameResourceCreatedResponse extends LudeoEvent {
|
|
11
11
|
static readonly EVENT_NAME = "cloud-resources.game-resource-created-response";
|
|
@@ -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.
|
|
35
|
-
__metadata("design:type",
|
|
36
|
-
], GameResourceCreatedResponsePayload.prototype, "
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
35
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
36
|
+
], GameResourceCreatedResponsePayload.prototype, "settings", 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/v4/events/game-resource-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"game-resource-created-response.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-created-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,oCAA+D;AAE/D,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,4BAAoB,CAAC;8BACrC,4BAAoB;oEAAC;AAGjC,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,10 +1,10 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
|
-
import {
|
|
3
|
+
import { GameResourceSettings } from "../types";
|
|
4
4
|
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
5
5
|
export declare class GameResourceReadyForCreationPayload {
|
|
6
|
-
providerSettings: CloudResourceProviderSettings;
|
|
7
6
|
creationPayload: CreateGameResourceRequestPayload;
|
|
7
|
+
settings: GameResourceSettings;
|
|
8
8
|
}
|
|
9
9
|
export declare class GameResourceReadyForCreation extends LudeoEvent {
|
|
10
10
|
static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation";
|
|
@@ -18,14 +18,14 @@ const create_game_resource_request_1 = require("./create-game-resource-request")
|
|
|
18
18
|
class GameResourceReadyForCreationPayload {
|
|
19
19
|
}
|
|
20
20
|
exports.GameResourceReadyForCreationPayload = GameResourceReadyForCreationPayload;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
|
|
23
|
-
__metadata("design:type", Object)
|
|
24
|
-
], GameResourceReadyForCreationPayload.prototype, "providerSettings", void 0);
|
|
25
21
|
__decorate([
|
|
26
22
|
(0, decorators_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
|
|
27
23
|
__metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
|
|
28
24
|
], GameResourceReadyForCreationPayload.prototype, "creationPayload", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
27
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
28
|
+
], GameResourceReadyForCreationPayload.prototype, "settings", void 0);
|
|
29
29
|
class GameResourceReadyForCreation extends infra_1.LudeoEvent {
|
|
30
30
|
constructor(payload, context) {
|
|
31
31
|
super(GameResourceReadyForCreation.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-ready-for-creation.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,0CAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"game-resource-ready-for-creation.js","sourceRoot":"","sources":["../../../src/v4/events/game-resource-ready-for-creation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,iDAAsD;AACtD,0CAAmD;AACnD,oCAAgD;AAChD,iFAAkF;AAElF,MAAa,mCAAmC;CAM/C;AAND,kFAMC;AAJC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC1C,+DAAgC;4EAAC;AAGlD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACrC,4BAAoB;qEAAC;AAGjC,MAAa,4BAA6B,SAAQ,kBAAU;IAI1D,YACE,OAA4C,EAC5C,OAA6B;QAE7B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,oEAkBC;AAjBiB,uCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC;AAG7C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;6DAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
|
-
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings, GameResourceSettings } from "../types";
|
|
4
4
|
export declare class LoadLudeoResourcePayload {
|
|
5
5
|
gameResourceId: string;
|
|
6
6
|
gamePoolId: string;
|
|
@@ -9,6 +9,7 @@ export declare class LoadLudeoResourcePayload {
|
|
|
9
9
|
gameId: string;
|
|
10
10
|
ludeoId: string;
|
|
11
11
|
ludeoPoolId: string;
|
|
12
|
+
settings: GameResourceSettings;
|
|
12
13
|
providerSettings: CloudProviderSettings;
|
|
13
14
|
cloudProvider: CloudProvider;
|
|
14
15
|
}
|
|
@@ -46,6 +46,10 @@ __decorate([
|
|
|
46
46
|
(0, class_validator_1.IsUUID)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], LoadLudeoResourcePayload.prototype, "ludeoPoolId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
51
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
52
|
+
], LoadLudeoResourcePayload.prototype, "settings", void 0);
|
|
49
53
|
__decorate([
|
|
50
54
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
51
55
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-ludeo-resource.js","sourceRoot":"","sources":["../../../src/v4/events/load-ludeo-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"load-ludeo-resource.js","sourceRoot":"","sources":["../../../src/v4/events/load-ludeo-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AACnD,oCAKkB;AAElB,MAAa,wBAAwB;CA8BpC;AA9BD,4DA8BC;AA5BC;IADC,IAAA,wBAAM,GAAE;;gEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;4DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;iEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;wDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;wDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;yDACO;AAGhB;IADC,IAAA,wBAAM,GAAE;;6DACW;AAGpB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;8BACrC,4BAAoB;0DAAC;AAG/B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;kEACN;AAGxC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;+DACO;AAG/B,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YACE,OAAiC,EACjC,OAA6B;QAE7B,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8CAiBC;AAhBiB,4BAAU,GAAG,iCAAiC,CAAC;AAY/D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { CloudResourceStatus } from "./status";
|
|
2
|
-
import { AWSResourceProviderSettings } from "../../cloud";
|
|
3
2
|
export declare class BaseCloudResource {
|
|
4
3
|
id: string;
|
|
5
4
|
status: CloudResourceStatus;
|
|
6
5
|
createdAt: number;
|
|
7
6
|
poolId: string;
|
|
8
7
|
updatedAt?: number;
|
|
9
|
-
settings?: AWSResourceProviderSettings;
|
|
10
8
|
}
|
|
@@ -12,8 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BaseCloudResource = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const status_1 = require("./status");
|
|
15
|
-
const cloud_1 = require("../../cloud");
|
|
16
|
-
const decorators_1 = require("../../../../decorators");
|
|
17
15
|
class BaseCloudResource {
|
|
18
16
|
}
|
|
19
17
|
exports.BaseCloudResource = BaseCloudResource;
|
|
@@ -38,8 +36,4 @@ __decorate([
|
|
|
38
36
|
(0, class_validator_1.IsOptional)(),
|
|
39
37
|
__metadata("design:type", Number)
|
|
40
38
|
], BaseCloudResource.prototype, "updatedAt", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, decorators_1.ValidateNestedType)(() => cloud_1.AWSResourceProviderSettings),
|
|
43
|
-
__metadata("design:type", cloud_1.AWSResourceProviderSettings)
|
|
44
|
-
], BaseCloudResource.prototype, "settings", void 0);
|
|
45
39
|
//# sourceMappingURL=base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,qCAA+C;
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,qCAA+C;AAE/C,MAAa,iBAAiB;CAgB7B;AAhBD,8CAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;6CACE;AAGX;IADC,IAAA,wBAAM,EAAC,4BAAmB,CAAC;;iDACA;AAG5B;IADC,IAAA,0BAAQ,GAAE;;oDACO;AAGlB;IADC,IAAA,wBAAM,GAAE;;iDACM;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACM"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { BaseCloudResource } from "./base";
|
|
2
|
+
import { CloudResourceProviderSettings } from "../../cloud";
|
|
3
|
+
export declare class GameResourceSettings {
|
|
4
|
+
provider?: CloudResourceProviderSettings;
|
|
5
|
+
connectionId?: string;
|
|
6
|
+
sessionToken?: string;
|
|
7
|
+
}
|
|
2
8
|
export declare class GameCloudResource extends BaseCloudResource {
|
|
3
9
|
machineResourceId?: string;
|
|
4
10
|
ludeoResourceId?: string;
|
|
5
11
|
ludeoPoolId?: string;
|
|
12
|
+
settings?: GameResourceSettings;
|
|
6
13
|
}
|
|
@@ -9,9 +9,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.GameCloudResource = void 0;
|
|
12
|
+
exports.GameCloudResource = exports.GameResourceSettings = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const base_1 = require("./base");
|
|
15
|
+
const decorators_1 = require("../../../../decorators");
|
|
16
|
+
const cloud_1 = require("../../cloud");
|
|
17
|
+
class GameResourceSettings {
|
|
18
|
+
}
|
|
19
|
+
exports.GameResourceSettings = GameResourceSettings;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, decorators_1.ValidateNestedType)(() => cloud_1.AWSResourceProviderSettings),
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
|
+
], GameResourceSettings.prototype, "provider", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], GameResourceSettings.prototype, "connectionId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], GameResourceSettings.prototype, "sessionToken", void 0);
|
|
15
32
|
class GameCloudResource extends base_1.BaseCloudResource {
|
|
16
33
|
}
|
|
17
34
|
exports.GameCloudResource = GameCloudResource;
|
|
@@ -30,4 +47,8 @@ __decorate([
|
|
|
30
47
|
(0, class_validator_1.IsOptional)(),
|
|
31
48
|
__metadata("design:type", String)
|
|
32
49
|
], GameCloudResource.prototype, "ludeoPoolId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
__metadata("design:type", GameResourceSettings)
|
|
53
|
+
], GameCloudResource.prototype, "settings", void 0);
|
|
33
54
|
//# sourceMappingURL=game.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,iCAA2C;AAC3C,uDAA4D;AAC5D,uCAGqB;AAErB,MAAa,oBAAoB;CAShC;AATD,oDASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;sDACb;AAGzC;IADC,IAAA,wBAAM,GAAE;;0DACa;AAGtB;IADC,IAAA,0BAAQ,GAAE;;0DACW;AAGxB,MAAa,iBAAkB,SAAQ,wBAAiB;CAevD;AAfD,8CAeC;AAZC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACc;AAI3B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACQ;AAGrB;IADC,IAAA,4BAAU,GAAE;8BACF,oBAAoB;mDAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { BaseCloudResource } from "./base";
|
|
2
|
+
export declare class LudeoResourceSettings {
|
|
3
|
+
gameplayId: string;
|
|
4
|
+
}
|
|
2
5
|
export declare class LudeoCloudResource extends BaseCloudResource {
|
|
3
6
|
gameResourceId?: string;
|
|
4
7
|
gamePoolId?: string;
|
|
8
|
+
settings?: LudeoResourceSettings;
|
|
5
9
|
}
|
|
@@ -9,9 +9,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.LudeoCloudResource = void 0;
|
|
12
|
+
exports.LudeoCloudResource = exports.LudeoResourceSettings = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const base_1 = require("./base");
|
|
15
|
+
class LudeoResourceSettings {
|
|
16
|
+
}
|
|
17
|
+
exports.LudeoResourceSettings = LudeoResourceSettings;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsUUID)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], LudeoResourceSettings.prototype, "gameplayId", void 0);
|
|
15
22
|
class LudeoCloudResource extends base_1.BaseCloudResource {
|
|
16
23
|
}
|
|
17
24
|
exports.LudeoCloudResource = LudeoCloudResource;
|
|
@@ -25,4 +32,8 @@ __decorate([
|
|
|
25
32
|
(0, class_validator_1.IsOptional)(),
|
|
26
33
|
__metadata("design:type", String)
|
|
27
34
|
], LudeoCloudResource.prototype, "gamePoolId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
__metadata("design:type", LudeoResourceSettings)
|
|
38
|
+
], LudeoCloudResource.prototype, "settings", void 0);
|
|
28
39
|
//# sourceMappingURL=ludeo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeo.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/ludeo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"ludeo.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/ludeo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,iCAA2C;AAE3C,MAAa,qBAAqB;CAGjC;AAHD,sDAGC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACU;AAGrB,MAAa,kBAAmB,SAAQ,wBAAiB;CAWxD;AAXD,gDAWC;AARC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACO;AAGpB;IADC,IAAA,4BAAU,GAAE;8BACF,qBAAqB;oDAAC"}
|
package/package.json
CHANGED
|
@@ -5,10 +5,9 @@ import { CloudSessionContext } from "../contexts";
|
|
|
5
5
|
import {
|
|
6
6
|
AllocationRequestData,
|
|
7
7
|
AWSProviderSettings,
|
|
8
|
-
AWSResourceProviderSettings,
|
|
9
8
|
CloudProvider,
|
|
10
9
|
CloudProviderSettings,
|
|
11
|
-
|
|
10
|
+
GameResourceSettings,
|
|
12
11
|
} from "../types";
|
|
13
12
|
|
|
14
13
|
export class AllocateLudeoResourceRequestPayload {
|
|
@@ -27,8 +26,8 @@ export class AllocateLudeoResourceRequestPayload {
|
|
|
27
26
|
@ValidateNestedType(() => AllocationRequestData)
|
|
28
27
|
requestData: AllocationRequestData;
|
|
29
28
|
|
|
30
|
-
@ValidateNestedType(() =>
|
|
31
|
-
|
|
29
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
30
|
+
settings: GameResourceSettings;
|
|
32
31
|
|
|
33
32
|
@IsUUID()
|
|
34
33
|
requestedLudeoId: string;
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
AWSProviderSettings,
|
|
5
5
|
CloudProvider,
|
|
6
6
|
CloudProviderSettings,
|
|
7
|
+
GameResourceSettings,
|
|
7
8
|
} from "../types";
|
|
8
9
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
9
10
|
import { IsEnum, IsUUID } from "class-validator";
|
|
@@ -30,6 +31,9 @@ export class GameAllocatedResponsePayload {
|
|
|
30
31
|
@IsUUID()
|
|
31
32
|
gameId: string;
|
|
32
33
|
|
|
34
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
35
|
+
settings: GameResourceSettings;
|
|
36
|
+
|
|
33
37
|
@IsEnum(CloudProvider)
|
|
34
38
|
cloudProvider: CloudProvider;
|
|
35
39
|
}
|
|
@@ -3,11 +3,7 @@ import { IsUUID, IsEnum } 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 {
|
|
7
|
-
AWSResourceProviderSettings,
|
|
8
|
-
CloudProvider,
|
|
9
|
-
CloudResourceProviderSettings,
|
|
10
|
-
} from "../types";
|
|
6
|
+
import { CloudProvider, GameResourceSettings } from "../types";
|
|
11
7
|
|
|
12
8
|
export class GameResourceCreatedResponsePayload {
|
|
13
9
|
@IsUUID()
|
|
@@ -19,8 +15,8 @@ export class GameResourceCreatedResponsePayload {
|
|
|
19
15
|
@IsEnum(CloudProvider)
|
|
20
16
|
cloudProvider: CloudProvider;
|
|
21
17
|
|
|
22
|
-
@ValidateNestedType(() =>
|
|
23
|
-
|
|
18
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
19
|
+
settings: GameResourceSettings;
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
export class GameResourceCreatedResponse extends LudeoEvent {
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra";
|
|
2
2
|
import { ValidateNestedType } from "../../decorators";
|
|
3
3
|
import { CloudResourceContext } from "../contexts";
|
|
4
|
-
import {
|
|
5
|
-
AWSResourceProviderSettings,
|
|
6
|
-
CloudProviderSettings,
|
|
7
|
-
CloudResourceProviderSettings,
|
|
8
|
-
} from "../types";
|
|
4
|
+
import { GameResourceSettings } from "../types";
|
|
9
5
|
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
10
6
|
|
|
11
7
|
export class GameResourceReadyForCreationPayload {
|
|
12
|
-
@ValidateNestedType(() => AWSResourceProviderSettings)
|
|
13
|
-
providerSettings: CloudResourceProviderSettings;
|
|
14
|
-
|
|
15
8
|
@ValidateNestedType(() => CreateGameResourceRequestPayload)
|
|
16
9
|
creationPayload: CreateGameResourceRequestPayload;
|
|
10
|
+
|
|
11
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
12
|
+
settings: GameResourceSettings;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
15
|
export class GameResourceReadyForCreation extends LudeoEvent {
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
AWSProviderSettings,
|
|
7
7
|
CloudProvider,
|
|
8
8
|
CloudProviderSettings,
|
|
9
|
+
GameResourceSettings,
|
|
9
10
|
} from "../types";
|
|
10
11
|
|
|
11
12
|
export class LoadLudeoResourcePayload {
|
|
@@ -30,6 +31,9 @@ export class LoadLudeoResourcePayload {
|
|
|
30
31
|
@IsUUID()
|
|
31
32
|
ludeoPoolId: string;
|
|
32
33
|
|
|
34
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
35
|
+
settings: GameResourceSettings;
|
|
36
|
+
|
|
33
37
|
@ValidateNestedType(() => AWSProviderSettings)
|
|
34
38
|
providerSettings: CloudProviderSettings;
|
|
35
39
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { IsEnum, IsNumber, IsOptional, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { CloudResourceStatus } from "./status";
|
|
4
|
-
import { AWSResourceProviderSettings } from "../../cloud";
|
|
5
|
-
import { ValidateNestedType } from "../../../../decorators";
|
|
6
4
|
|
|
7
5
|
export class BaseCloudResource {
|
|
8
6
|
@IsUUID()
|
|
@@ -20,7 +18,4 @@ export class BaseCloudResource {
|
|
|
20
18
|
@IsNumber()
|
|
21
19
|
@IsOptional()
|
|
22
20
|
updatedAt?: number;
|
|
23
|
-
|
|
24
|
-
@ValidateNestedType(() => AWSResourceProviderSettings)
|
|
25
|
-
settings?: AWSResourceProviderSettings;
|
|
26
21
|
}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
import { IsOptional, IsString } from "class-validator";
|
|
1
|
+
import { IsOptional, IsString, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { BaseCloudResource } from "./base";
|
|
4
|
+
import { ValidateNestedType } from "../../../../decorators";
|
|
5
|
+
import {
|
|
6
|
+
AWSResourceProviderSettings,
|
|
7
|
+
CloudResourceProviderSettings,
|
|
8
|
+
} from "../../cloud";
|
|
9
|
+
|
|
10
|
+
export class GameResourceSettings {
|
|
11
|
+
@ValidateNestedType(() => AWSResourceProviderSettings)
|
|
12
|
+
provider?: CloudResourceProviderSettings;
|
|
13
|
+
|
|
14
|
+
@IsUUID()
|
|
15
|
+
connectionId?: string;
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
sessionToken?: string;
|
|
19
|
+
}
|
|
4
20
|
|
|
5
21
|
export class GameCloudResource extends BaseCloudResource {
|
|
6
22
|
@IsString()
|
|
@@ -14,4 +30,7 @@ export class GameCloudResource extends BaseCloudResource {
|
|
|
14
30
|
@IsString()
|
|
15
31
|
@IsOptional()
|
|
16
32
|
ludeoPoolId?: string;
|
|
33
|
+
|
|
34
|
+
@IsOptional()
|
|
35
|
+
settings?: GameResourceSettings;
|
|
17
36
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { IsOptional, IsString } from "class-validator";
|
|
1
|
+
import { IsOptional, IsString, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { BaseCloudResource } from "./base";
|
|
4
4
|
|
|
5
|
+
export class LudeoResourceSettings {
|
|
6
|
+
@IsUUID()
|
|
7
|
+
gameplayId: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
export class LudeoCloudResource extends BaseCloudResource {
|
|
6
11
|
@IsString()
|
|
7
12
|
@IsOptional()
|
|
@@ -10,4 +15,7 @@ export class LudeoCloudResource extends BaseCloudResource {
|
|
|
10
15
|
@IsString()
|
|
11
16
|
@IsOptional()
|
|
12
17
|
gamePoolId?: string;
|
|
18
|
+
|
|
19
|
+
@IsOptional()
|
|
20
|
+
settings?: LudeoResourceSettings;
|
|
13
21
|
}
|