@ludeo/cloud-common 1.2.32 → 1.2.33-beta-yahil-2
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/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-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/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/connection-id-timeout-task.ts +3 -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/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,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,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,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";
|
|
2
3
|
export declare class GameCloudResource extends BaseCloudResource {
|
|
3
4
|
machineResourceId?: string;
|
|
4
5
|
ludeoResourceId?: string;
|
|
5
6
|
ludeoPoolId?: string;
|
|
7
|
+
settings?: GameResourceSettings;
|
|
8
|
+
}
|
|
9
|
+
export declare class GameResourceSettings {
|
|
10
|
+
provider?: CloudResourceProviderSettings;
|
|
11
|
+
conectionId?: string;
|
|
12
|
+
sessionToken?: string;
|
|
6
13
|
}
|
|
@@ -9,9 +9,11 @@ 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.GameResourceSettings = exports.GameCloudResource = 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");
|
|
15
17
|
class GameCloudResource extends base_1.BaseCloudResource {
|
|
16
18
|
}
|
|
17
19
|
exports.GameCloudResource = GameCloudResource;
|
|
@@ -30,4 +32,23 @@ __decorate([
|
|
|
30
32
|
(0, class_validator_1.IsOptional)(),
|
|
31
33
|
__metadata("design:type", String)
|
|
32
34
|
], GameCloudResource.prototype, "ludeoPoolId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
__metadata("design:type", GameResourceSettings)
|
|
38
|
+
], GameCloudResource.prototype, "settings", void 0);
|
|
39
|
+
class GameResourceSettings {
|
|
40
|
+
}
|
|
41
|
+
exports.GameResourceSettings = GameResourceSettings;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, decorators_1.ValidateNestedType)(() => cloud_1.AWSResourceProviderSettings),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], GameResourceSettings.prototype, "provider", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsUUID)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], GameResourceSettings.prototype, "conectionId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], GameResourceSettings.prototype, "sessionToken", 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,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;AAGlC,MAAa,oBAAoB;CAShC;AATD,oDASC;AAPC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;sDACb;AAGzC;IADC,IAAA,wBAAM,GAAE;;yDACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;0DACW"}
|
|
@@ -2,4 +2,8 @@ import { BaseCloudResource } from "./base";
|
|
|
2
2
|
export declare class LudeoCloudResource extends BaseCloudResource {
|
|
3
3
|
gameResourceId?: string;
|
|
4
4
|
gamePoolId?: string;
|
|
5
|
+
settings: LudeoResourceSettings;
|
|
6
|
+
}
|
|
7
|
+
export declare class LudeoResourceSettings {
|
|
8
|
+
gameplayId: string;
|
|
5
9
|
}
|
|
@@ -9,7 +9,7 @@ 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.LudeoResourceSettings = exports.LudeoCloudResource = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const base_1 = require("./base");
|
|
15
15
|
class LudeoCloudResource extends base_1.BaseCloudResource {
|
|
@@ -25,4 +25,15 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsOptional)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], LudeoCloudResource.prototype, "gamePoolId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", LudeoResourceSettings)
|
|
31
|
+
], LudeoCloudResource.prototype, "settings", void 0);
|
|
32
|
+
class LudeoResourceSettings {
|
|
33
|
+
}
|
|
34
|
+
exports.LudeoResourceSettings = LudeoResourceSettings;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsUUID)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], LudeoResourceSettings.prototype, "gameplayId", 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,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;8BACH,qBAAqB;oDAAC;AAGlC,MAAa,qBAAqB;CAGjC;AAHD,sDAGC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACU"}
|
package/package.json
CHANGED
|
@@ -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 {
|
|
@@ -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,11 @@
|
|
|
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";
|
|
4
9
|
|
|
5
10
|
export class GameCloudResource extends BaseCloudResource {
|
|
6
11
|
@IsString()
|
|
@@ -14,4 +19,18 @@ export class GameCloudResource extends BaseCloudResource {
|
|
|
14
19
|
@IsString()
|
|
15
20
|
@IsOptional()
|
|
16
21
|
ludeoPoolId?: string;
|
|
22
|
+
|
|
23
|
+
@IsOptional()
|
|
24
|
+
settings?: GameResourceSettings;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class GameResourceSettings {
|
|
28
|
+
@ValidateNestedType(() => AWSResourceProviderSettings)
|
|
29
|
+
provider?: CloudResourceProviderSettings;
|
|
30
|
+
|
|
31
|
+
@IsUUID()
|
|
32
|
+
conectionId?: string;
|
|
33
|
+
|
|
34
|
+
@IsString()
|
|
35
|
+
sessionToken?: string;
|
|
17
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
|
@@ -10,4 +10,12 @@ export class LudeoCloudResource extends BaseCloudResource {
|
|
|
10
10
|
@IsString()
|
|
11
11
|
@IsOptional()
|
|
12
12
|
gamePoolId?: string;
|
|
13
|
+
|
|
14
|
+
@IsOptional()
|
|
15
|
+
settings: LudeoResourceSettings;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class LudeoResourceSettings {
|
|
19
|
+
@IsUUID()
|
|
20
|
+
gameplayId: string;
|
|
13
21
|
}
|