@ludeo/cloud-common 1.2.53 → 1.2.54
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,19 +1,20 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { CloudResourcesStatusMap, BasePoolAttributes, LudeoPoolAttributes, MachinePoolAttributes } from "../types";
|
|
3
|
+
import { GamePoolAttributes } from "../../v3/types";
|
|
4
|
+
export declare class PoolStatusEventBasePool<T extends BasePoolAttributes = BasePoolAttributes> {
|
|
5
|
+
attributes: T;
|
|
5
6
|
statusMap: CloudResourcesStatusMap;
|
|
6
7
|
poolId: string;
|
|
7
8
|
}
|
|
8
|
-
export declare class PoolStatusEventLudeoPool extends PoolStatusEventBasePool {
|
|
9
|
+
export declare class PoolStatusEventLudeoPool extends PoolStatusEventBasePool<LudeoPoolAttributes> {
|
|
9
10
|
gamePoolId: string;
|
|
10
11
|
ludeoId: string;
|
|
11
12
|
}
|
|
12
|
-
export declare class PoolStatusEventGamePool extends PoolStatusEventBasePool {
|
|
13
|
+
export declare class PoolStatusEventGamePool extends PoolStatusEventBasePool<GamePoolAttributes> {
|
|
13
14
|
machinePoolId: string;
|
|
14
15
|
ludeos: PoolStatusEventLudeoPool[];
|
|
15
16
|
}
|
|
16
|
-
export declare class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
|
|
17
|
+
export declare class PoolStatusEventMachinePool extends PoolStatusEventBasePool<MachinePoolAttributes> {
|
|
17
18
|
games: PoolStatusEventGamePool[];
|
|
18
19
|
}
|
|
19
20
|
export declare class PoolStatusEventPayload {
|
|
@@ -19,7 +19,7 @@ class PoolStatusEventBasePool {
|
|
|
19
19
|
exports.PoolStatusEventBasePool = PoolStatusEventBasePool;
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.BasePoolAttributes),
|
|
22
|
-
__metadata("design:type",
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
23
|
], PoolStatusEventBasePool.prototype, "attributes", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsUUID)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,oCAKkB;AAClB,oGAAqF;AAGrF,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AANC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;;2DAC/B;AAKd;IADC,IAAA,wBAAM,GAAE;;uDACM;AAGjB,MAAa,wBAAyB,SAAQ,uBAA4C;CAMzF;AAND,4DAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;4DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;yDACO;AAGlB,MAAa,uBAAwB,SAAQ,uBAA2C;CAKvF;AALD,0DAKC;AAHC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAKxB,MAAa,0BAA2B,SAAQ,uBAA8C;CAE7F;AAFD,gEAEC;AAED,MAAa,sBAAsB;CAKlC;AALD,wDAKC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACS;AAGpB,MAAa,eAAgB,SAAQ,wBAAU;IAG7C,YAAY,OAA+B;QACzC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,0CAUC;AATiB,0BAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACxC,sBAAsB;gDAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
CloudResourcesStatusMap,
|
|
6
|
+
BasePoolAttributes,
|
|
7
|
+
LudeoPoolAttributes,
|
|
8
|
+
MachinePoolAttributes,
|
|
9
|
+
} from "../types";
|
|
5
10
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
11
|
+
import { GamePoolAttributes } from "../../v3/types";
|
|
6
12
|
|
|
7
|
-
export class PoolStatusEventBasePool
|
|
13
|
+
export class PoolStatusEventBasePool<
|
|
14
|
+
T extends BasePoolAttributes = BasePoolAttributes,
|
|
15
|
+
> {
|
|
8
16
|
@ValidateNestedType(() => BasePoolAttributes)
|
|
9
|
-
attributes:
|
|
17
|
+
attributes: T;
|
|
10
18
|
|
|
11
19
|
statusMap: CloudResourcesStatusMap;
|
|
12
20
|
|
|
@@ -14,7 +22,7 @@ export class PoolStatusEventBasePool {
|
|
|
14
22
|
poolId: string;
|
|
15
23
|
}
|
|
16
24
|
|
|
17
|
-
export class PoolStatusEventLudeoPool extends PoolStatusEventBasePool {
|
|
25
|
+
export class PoolStatusEventLudeoPool extends PoolStatusEventBasePool<LudeoPoolAttributes> {
|
|
18
26
|
@IsUUID()
|
|
19
27
|
gamePoolId: string;
|
|
20
28
|
|
|
@@ -22,14 +30,14 @@ export class PoolStatusEventLudeoPool extends PoolStatusEventBasePool {
|
|
|
22
30
|
ludeoId: string;
|
|
23
31
|
}
|
|
24
32
|
|
|
25
|
-
export class PoolStatusEventGamePool extends PoolStatusEventBasePool {
|
|
33
|
+
export class PoolStatusEventGamePool extends PoolStatusEventBasePool<GamePoolAttributes> {
|
|
26
34
|
@IsUUID()
|
|
27
35
|
machinePoolId: string;
|
|
28
36
|
|
|
29
37
|
ludeos: PoolStatusEventLudeoPool[];
|
|
30
38
|
}
|
|
31
39
|
|
|
32
|
-
export class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
|
|
40
|
+
export class PoolStatusEventMachinePool extends PoolStatusEventBasePool<MachinePoolAttributes> {
|
|
33
41
|
games: PoolStatusEventGamePool[];
|
|
34
42
|
}
|
|
35
43
|
|