@ludeo/cloud-common 1.1.115 → 1.1.117
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,12 +1,13 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
3
|
export declare class InvalidGameResourcePayload {
|
|
3
|
-
gamePoolId:
|
|
4
|
-
gameResourceId:
|
|
5
|
-
errorMessage:
|
|
4
|
+
gamePoolId: string;
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
errorMessage: string;
|
|
6
7
|
}
|
|
7
8
|
export declare class InvalidGameResourceEvent extends LudeoEvent {
|
|
8
9
|
static readonly EVENT_NAME = "cloud-resource-monitor.invalid-game-resource";
|
|
9
|
-
constructor(payload: InvalidGameResourcePayload, context:
|
|
10
|
-
context:
|
|
10
|
+
constructor(payload: InvalidGameResourcePayload, context: CloudResourceContext);
|
|
11
|
+
context: CloudResourceContext;
|
|
11
12
|
payload: InvalidGameResourcePayload;
|
|
12
13
|
}
|
|
@@ -13,20 +13,21 @@ exports.InvalidGameResourceEvent = exports.InvalidGameResourcePayload = void 0;
|
|
|
13
13
|
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
|
+
const contexts_1 = require("../contexts");
|
|
16
17
|
class InvalidGameResourcePayload {
|
|
17
18
|
}
|
|
18
19
|
exports.InvalidGameResourcePayload = InvalidGameResourcePayload;
|
|
19
20
|
__decorate([
|
|
20
21
|
(0, class_validator_1.IsUUID)(),
|
|
21
|
-
__metadata("design:type",
|
|
22
|
+
__metadata("design:type", String)
|
|
22
23
|
], InvalidGameResourcePayload.prototype, "gamePoolId", void 0);
|
|
23
24
|
__decorate([
|
|
24
25
|
(0, class_validator_1.IsUUID)(),
|
|
25
|
-
__metadata("design:type",
|
|
26
|
+
__metadata("design:type", String)
|
|
26
27
|
], InvalidGameResourcePayload.prototype, "gameResourceId", void 0);
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, class_validator_1.IsString)(),
|
|
29
|
-
__metadata("design:type",
|
|
30
|
+
__metadata("design:type", String)
|
|
30
31
|
], InvalidGameResourcePayload.prototype, "errorMessage", void 0);
|
|
31
32
|
class InvalidGameResourceEvent extends ludeo_event_1.LudeoEvent {
|
|
32
33
|
constructor(payload, context) {
|
|
@@ -37,6 +38,10 @@ class InvalidGameResourceEvent extends ludeo_event_1.LudeoEvent {
|
|
|
37
38
|
}
|
|
38
39
|
exports.InvalidGameResourceEvent = InvalidGameResourceEvent;
|
|
39
40
|
InvalidGameResourceEvent.EVENT_NAME = "cloud-resource-monitor.invalid-game-resource";
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
43
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
44
|
+
], InvalidGameResourceEvent.prototype, "context", void 0);
|
|
40
45
|
__decorate([
|
|
41
46
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => InvalidGameResourcePayload),
|
|
42
47
|
__metadata("design:type", InvalidGameResourcePayload)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-game-resource.js","sourceRoot":"","sources":["../../../src/v3/events/invalid-game-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;
|
|
1
|
+
{"version":3,"file":"invalid-game-resource.js","sourceRoot":"","sources":["../../../src/v3/events/invalid-game-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,0BAA0B;CAStC;AATD,gEASC;AAPC;IADC,IAAA,wBAAM,GAAE;;8DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;kEACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;gEACU;AAGvB,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YACE,OAAmC,EACnC,OAA6B;QAE7B,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,4DAiBC;AAhBiB,mCAAU,GAAG,8CAA8C,CAAC;AAY5E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;yDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;yDAAC"}
|
package/package.json
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
import { IsString, IsUUID } from "class-validator";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
|
+
import { CloudResourceContext } from "../contexts";
|
|
4
5
|
|
|
5
6
|
export class InvalidGameResourcePayload {
|
|
6
7
|
@IsUUID()
|
|
7
|
-
gamePoolId;
|
|
8
|
+
gamePoolId: string;
|
|
8
9
|
|
|
9
10
|
@IsUUID()
|
|
10
|
-
gameResourceId;
|
|
11
|
+
gameResourceId: string;
|
|
11
12
|
|
|
12
13
|
@IsString()
|
|
13
|
-
errorMessage;
|
|
14
|
+
errorMessage: string;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export class InvalidGameResourceEvent extends LudeoEvent {
|
|
17
18
|
static readonly EVENT_NAME = "cloud-resource-monitor.invalid-game-resource";
|
|
18
19
|
|
|
19
|
-
constructor(
|
|
20
|
+
constructor(
|
|
21
|
+
payload: InvalidGameResourcePayload,
|
|
22
|
+
context: CloudResourceContext
|
|
23
|
+
) {
|
|
20
24
|
super(InvalidGameResourceEvent.EVENT_NAME);
|
|
21
25
|
this.payload = payload;
|
|
22
26
|
this.context = context;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
30
|
+
context: CloudResourceContext;
|
|
26
31
|
|
|
27
32
|
@ValidateNestedType(() => InvalidGameResourcePayload)
|
|
28
33
|
payload: InvalidGameResourcePayload;
|