@ludeo/cloud-common 1.2.33-beta-yahil → 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/game-resource-created-response.d.ts +2 -3
- package/dist/v4/events/game-resource-created-response.js +2 -6
- package/dist/v4/events/game-resource-created-response.js.map +1 -1
- package/dist/v4/events/game-resource-ready-for-creation.d.ts +2 -3
- package/dist/v4/events/game-resource-ready-for-creation.js +2 -6
- package/dist/v4/events/game-resource-ready-for-creation.js.map +1 -1
- package/dist/v4/types/cloud.d.ts +0 -5
- package/dist/v4/types/cloud.js +1 -12
- package/dist/v4/types/cloud.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/game-resource-created-response.ts +3 -11
- package/src/v4/events/game-resource-ready-for-creation.ts +3 -11
- package/src/v4/types/cloud.ts +0 -10
- 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,12 +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
|
-
|
|
9
|
-
settings: ResourceCreatedSettings;
|
|
8
|
+
settings: GameResourceSettings;
|
|
10
9
|
}
|
|
11
10
|
export declare class GameResourceCreatedResponse extends LudeoEvent {
|
|
12
11
|
static readonly EVENT_NAME = "cloud-resources.game-resource-created-response";
|
|
@@ -31,12 +31,8 @@ __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, "resourceProviderSettings", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.ResourceCreatedSettings),
|
|
39
|
-
__metadata("design:type", types_1.ResourceCreatedSettings)
|
|
34
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
35
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
40
36
|
], GameResourceCreatedResponsePayload.prototype, "settings", void 0);
|
|
41
37
|
class GameResourceCreatedResponse extends ludeo_event_1.LudeoEvent {
|
|
42
38
|
constructor(payload, context) {
|
|
@@ -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,11 +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;
|
|
8
|
-
settings:
|
|
7
|
+
settings: GameResourceSettings;
|
|
9
8
|
}
|
|
10
9
|
export declare class GameResourceReadyForCreation extends LudeoEvent {
|
|
11
10
|
static readonly EVENT_NAME = "cloud-resources.game-resource-ready-for-creation";
|
|
@@ -18,17 +18,13 @@ 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);
|
|
29
25
|
__decorate([
|
|
30
|
-
(0, decorators_1.ValidateNestedType)(() => types_1.
|
|
31
|
-
__metadata("design:type",
|
|
26
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.GameResourceSettings),
|
|
27
|
+
__metadata("design:type", types_1.GameResourceSettings)
|
|
32
28
|
], GameResourceReadyForCreationPayload.prototype, "settings", void 0);
|
|
33
29
|
class GameResourceReadyForCreation extends infra_1.LudeoEvent {
|
|
34
30
|
constructor(payload, context) {
|
|
@@ -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"}
|
package/dist/v4/types/cloud.d.ts
CHANGED
|
@@ -67,8 +67,3 @@ export declare class CloudSession {
|
|
|
67
67
|
resourceId?: string;
|
|
68
68
|
gamePoolId?: string;
|
|
69
69
|
}
|
|
70
|
-
export declare class ResourceCreatedSettings {
|
|
71
|
-
sessionToken: string;
|
|
72
|
-
connectionId: string;
|
|
73
|
-
}
|
|
74
|
-
export type CloudResourceCreatedSettings = ResourceCreatedSettings;
|
package/dist/v4/types/cloud.js
CHANGED
|
@@ -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.
|
|
12
|
+
exports.CloudSession = exports.CloudSessionStatus = exports.AllocationRequestData = exports.AWSGameCreationResponse = exports.AWSResourceProviderSettings = exports.AwsAllocationData = exports.AWSProviderSettings = exports.CloudProvider = exports.AWSRequestData = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const decorators_1 = require("../../decorators");
|
|
15
15
|
class AWSRequestData {
|
|
@@ -175,15 +175,4 @@ __decorate([
|
|
|
175
175
|
(0, class_validator_1.IsString)(),
|
|
176
176
|
__metadata("design:type", String)
|
|
177
177
|
], CloudSession.prototype, "gamePoolId", void 0);
|
|
178
|
-
class ResourceCreatedSettings {
|
|
179
|
-
}
|
|
180
|
-
exports.ResourceCreatedSettings = ResourceCreatedSettings;
|
|
181
|
-
__decorate([
|
|
182
|
-
(0, class_validator_1.IsString)(),
|
|
183
|
-
__metadata("design:type", String)
|
|
184
|
-
], ResourceCreatedSettings.prototype, "sessionToken", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
(0, class_validator_1.IsUUID)(),
|
|
187
|
-
__metadata("design:type", String)
|
|
188
|
-
], ResourceCreatedSettings.prototype, "connectionId", void 0);
|
|
189
178
|
//# sourceMappingURL=cloud.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../../src/v4/types/cloud.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAQyB;AACzB,iDAAsD;AAEtD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAKxB,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,mBAAmB;CAS/B;AATD,kDASC;AAID,MAAa,iBAAiB;CAS7B;AATD,8CASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;wDACW;AAGtB;IADC,IAAA,0BAAQ,GAAE;;0DACa;AAGxB;IADC,IAAA,0BAAQ,GAAE;;yDACY;AAKzB,MAAa,2BAA2B;CAgBvC;AAhBD,kEAgBC;AAbC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACc;AAIzB;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,GAAE;;4CACO;AAGhB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACnC,qBAAqB;iDAAC;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;;oDACC;AAG7C;IADC,IAAA,wBAAM,GAAE;;qDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACW;AAKtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS"}
|
|
@@ -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,12 +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
|
-
ResourceCreatedSettings,
|
|
11
|
-
} from "../types";
|
|
6
|
+
import { CloudProvider, GameResourceSettings } from "../types";
|
|
12
7
|
|
|
13
8
|
export class GameResourceCreatedResponsePayload {
|
|
14
9
|
@IsUUID()
|
|
@@ -20,11 +15,8 @@ export class GameResourceCreatedResponsePayload {
|
|
|
20
15
|
@IsEnum(CloudProvider)
|
|
21
16
|
cloudProvider: CloudProvider;
|
|
22
17
|
|
|
23
|
-
@ValidateNestedType(() =>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@ValidateNestedType(() => ResourceCreatedSettings)
|
|
27
|
-
settings: ResourceCreatedSettings;
|
|
18
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
19
|
+
settings: GameResourceSettings;
|
|
28
20
|
}
|
|
29
21
|
|
|
30
22
|
export class GameResourceCreatedResponse extends LudeoEvent {
|
|
@@ -1,23 +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
|
-
CloudResourceCreatedSettings,
|
|
7
|
-
CloudResourceProviderSettings,
|
|
8
|
-
ResourceCreatedSettings,
|
|
9
|
-
} from "../types";
|
|
4
|
+
import { GameResourceSettings } from "../types";
|
|
10
5
|
import { CreateGameResourceRequestPayload } from "./create-game-resource-request";
|
|
11
6
|
|
|
12
7
|
export class GameResourceReadyForCreationPayload {
|
|
13
|
-
@ValidateNestedType(() => AWSResourceProviderSettings)
|
|
14
|
-
providerSettings: CloudResourceProviderSettings;
|
|
15
|
-
|
|
16
8
|
@ValidateNestedType(() => CreateGameResourceRequestPayload)
|
|
17
9
|
creationPayload: CreateGameResourceRequestPayload;
|
|
18
10
|
|
|
19
|
-
@ValidateNestedType(() =>
|
|
20
|
-
settings:
|
|
11
|
+
@ValidateNestedType(() => GameResourceSettings)
|
|
12
|
+
settings: GameResourceSettings;
|
|
21
13
|
}
|
|
22
14
|
|
|
23
15
|
export class GameResourceReadyForCreation extends LudeoEvent {
|
package/src/v4/types/cloud.ts
CHANGED
|
@@ -157,13 +157,3 @@ export class CloudSession {
|
|
|
157
157
|
@IsString()
|
|
158
158
|
gamePoolId?: string;
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
export class ResourceCreatedSettings {
|
|
162
|
-
@IsString()
|
|
163
|
-
sessionToken: string;
|
|
164
|
-
|
|
165
|
-
@IsUUID()
|
|
166
|
-
connectionId: string;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export type CloudResourceCreatedSettings = ResourceCreatedSettings;
|
|
@@ -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
|
}
|