@ludeo/cloud-common 1.1.90 → 1.1.91
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.
|
@@ -6,11 +6,15 @@ export declare class MachinePoolAttributesWithQuantity extends MachinePoolAttrib
|
|
|
6
6
|
export declare class GamePoolAttributesWithQuantity extends GamePoolAttributes {
|
|
7
7
|
quantity: number;
|
|
8
8
|
}
|
|
9
|
+
export declare class SetPoolsStateEventRequestId {
|
|
10
|
+
"cloud-pools.pool-status": string;
|
|
11
|
+
"data.feature-store.gamecast-platform-metrics": string;
|
|
12
|
+
}
|
|
9
13
|
export declare class SetPoolStateEventPayload {
|
|
10
14
|
machines: MachinePoolAttributesWithQuantity[];
|
|
11
15
|
games: GamePoolAttributesWithQuantity[];
|
|
12
16
|
error_message?: string;
|
|
13
|
-
requestId?:
|
|
17
|
+
requestId?: SetPoolsStateEventRequestId;
|
|
14
18
|
}
|
|
15
19
|
export declare class SetPoolsStateEvent extends LudeoEvent {
|
|
16
20
|
static readonly EVENT_NAME = "predictor.set_pools_state";
|
|
@@ -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.SetPoolsStateEvent = exports.SetPoolStateEventPayload = exports.GamePoolAttributesWithQuantity = exports.MachinePoolAttributesWithQuantity = void 0;
|
|
12
|
+
exports.SetPoolsStateEvent = exports.SetPoolStateEventPayload = exports.SetPoolsStateEventRequestId = exports.GamePoolAttributesWithQuantity = exports.MachinePoolAttributesWithQuantity = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
15
|
const types_1 = require("../types");
|
|
@@ -20,6 +20,17 @@ exports.MachinePoolAttributesWithQuantity = MachinePoolAttributesWithQuantity;
|
|
|
20
20
|
class GamePoolAttributesWithQuantity extends types_1.GamePoolAttributes {
|
|
21
21
|
}
|
|
22
22
|
exports.GamePoolAttributesWithQuantity = GamePoolAttributesWithQuantity;
|
|
23
|
+
class SetPoolsStateEventRequestId {
|
|
24
|
+
}
|
|
25
|
+
exports.SetPoolsStateEventRequestId = SetPoolsStateEventRequestId;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsUUID)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SetPoolsStateEventRequestId.prototype, "cloud-pools.pool-status", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsUUID)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SetPoolsStateEventRequestId.prototype, "data.feature-store.gamecast-platform-metrics", void 0);
|
|
23
34
|
class SetPoolStateEventPayload {
|
|
24
35
|
}
|
|
25
36
|
exports.SetPoolStateEventPayload = SetPoolStateEventPayload;
|
|
@@ -40,8 +51,8 @@ __decorate([
|
|
|
40
51
|
], SetPoolStateEventPayload.prototype, "error_message", void 0);
|
|
41
52
|
__decorate([
|
|
42
53
|
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0,
|
|
44
|
-
__metadata("design:type",
|
|
54
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => SetPoolsStateEventRequestId),
|
|
55
|
+
__metadata("design:type", SetPoolsStateEventRequestId)
|
|
45
56
|
], SetPoolStateEventPayload.prototype, "requestId", void 0);
|
|
46
57
|
class SetPoolsStateEvent extends ludeo_event_1.LudeoEvent {
|
|
47
58
|
constructor(payload) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-pools-state.js","sourceRoot":"","sources":["../../../src/v3/events/set-pools-state.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwE;AAExE,yDAAqD;AACrD,oCAAqE;AACrE,oGAAqF;AAErF,MAAa,iCAAkC,SAAQ,6BA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DAAC;AAG1C,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAiC;QAC3C,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,gDAUC;AATiB,6BAAU,GAAG,2BAA2B,CAAC;AAQzD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;mDAAC"}
|
package/package.json
CHANGED
|
@@ -12,6 +12,14 @@ export class GamePoolAttributesWithQuantity extends GamePoolAttributes {
|
|
|
12
12
|
quantity: number;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export class SetPoolsStateEventRequestId {
|
|
16
|
+
@IsUUID()
|
|
17
|
+
"cloud-pools.pool-status": string;
|
|
18
|
+
|
|
19
|
+
@IsUUID()
|
|
20
|
+
"data.feature-store.gamecast-platform-metrics": string;
|
|
21
|
+
}
|
|
22
|
+
|
|
15
23
|
export class SetPoolStateEventPayload {
|
|
16
24
|
@IsArray()
|
|
17
25
|
@ValidateNestedType(() => Array<MachinePoolAttributesWithQuantity>)
|
|
@@ -26,8 +34,8 @@ export class SetPoolStateEventPayload {
|
|
|
26
34
|
error_message?: string;
|
|
27
35
|
|
|
28
36
|
@IsOptional()
|
|
29
|
-
@
|
|
30
|
-
requestId?:
|
|
37
|
+
@ValidateNestedType(() => SetPoolsStateEventRequestId)
|
|
38
|
+
requestId?: SetPoolsStateEventRequestId;
|
|
31
39
|
}
|
|
32
40
|
|
|
33
41
|
export class SetPoolsStateEvent extends LudeoEvent {
|