@ludeo/cloud-common 1.2.2 → 1.2.3
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.
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
|
+
import { CloudProvider, CloudProviderSettings } from "../types";
|
|
3
4
|
export declare class LoadLudeoResourcePayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
4
7
|
ludeoResourceId: string;
|
|
8
|
+
ludeoPoolId: string;
|
|
9
|
+
providerSettings: CloudProviderSettings;
|
|
10
|
+
cloudProvider: CloudProvider;
|
|
5
11
|
}
|
|
6
12
|
export declare class LoadLudeoResource extends LudeoEvent {
|
|
7
13
|
static readonly EVENT_NAME = "cloud-pools.load-ludeo-resource";
|
|
@@ -14,13 +14,34 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
15
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
16
|
const contexts_1 = require("../contexts");
|
|
17
|
+
const types_1 = require("../types");
|
|
17
18
|
class LoadLudeoResourcePayload {
|
|
18
19
|
}
|
|
19
20
|
exports.LoadLudeoResourcePayload = LoadLudeoResourcePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], LoadLudeoResourcePayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], LoadLudeoResourcePayload.prototype, "gamePoolId", void 0);
|
|
20
29
|
__decorate([
|
|
21
30
|
(0, class_validator_1.IsUUID)(),
|
|
22
31
|
__metadata("design:type", String)
|
|
23
32
|
], LoadLudeoResourcePayload.prototype, "ludeoResourceId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], LoadLudeoResourcePayload.prototype, "ludeoPoolId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], LoadLudeoResourcePayload.prototype, "providerSettings", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], LoadLudeoResourcePayload.prototype, "cloudProvider", void 0);
|
|
24
45
|
class LoadLudeoResource extends ludeo_event_1.LudeoEvent {
|
|
25
46
|
constructor(payload, context) {
|
|
26
47
|
super(LoadLudeoResource.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-ludeo-resource.js","sourceRoot":"","sources":["../../../src/v4/events/load-ludeo-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"load-ludeo-resource.js","sourceRoot":"","sources":["../../../src/v4/events/load-ludeo-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AACnD,oCAIkB;AAElB,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;gEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;4DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;iEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;6DACW;AAGpB;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"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
1
|
-
import { IsUUID } from "class-validator";
|
|
1
|
+
import { IsEnum, IsUUID } from "class-validator";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { CloudResourceContext } from "../contexts";
|
|
5
|
+
import {
|
|
6
|
+
AWSProviderSettings,
|
|
7
|
+
CloudProvider,
|
|
8
|
+
CloudProviderSettings,
|
|
9
|
+
} from "../types";
|
|
5
10
|
|
|
6
11
|
export class LoadLudeoResourcePayload {
|
|
12
|
+
@IsUUID()
|
|
13
|
+
gameResourceId: string;
|
|
14
|
+
|
|
15
|
+
@IsUUID()
|
|
16
|
+
gamePoolId: string;
|
|
17
|
+
|
|
7
18
|
@IsUUID()
|
|
8
19
|
ludeoResourceId: string;
|
|
20
|
+
|
|
21
|
+
@IsUUID()
|
|
22
|
+
ludeoPoolId: string;
|
|
23
|
+
|
|
24
|
+
@ValidateNestedType(() => AWSProviderSettings)
|
|
25
|
+
providerSettings: CloudProviderSettings;
|
|
26
|
+
|
|
27
|
+
@IsEnum(CloudProvider)
|
|
28
|
+
cloudProvider: CloudProvider;
|
|
9
29
|
}
|
|
10
30
|
|
|
11
31
|
export class LoadLudeoResource extends LudeoEvent {
|