@ludeo/cloud-common 1.2.72 → 1.2.73
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/v3/events/pool-status.d.ts +5 -2
- package/dist/v3/events/pool-status.js +8 -1
- package/dist/v3/events/pool-status.js.map +1 -1
- package/dist/v4/events/pool-status.d.ts +2 -1
- package/dist/v4/events/pool-status.js +4 -0
- package/dist/v4/events/pool-status.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/pool-status.ts +12 -2
- package/src/v4/events/pool-status.ts +6 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
|
|
2
|
+
import { CloudResourcesStatusMap, BasePoolAttributes, CloudProviderSettings } from "../types";
|
|
3
3
|
export declare class PoolStatusEventBasePool {
|
|
4
4
|
attributes: BasePoolAttributes;
|
|
5
5
|
statusMap: CloudResourcesStatusMap;
|
|
@@ -8,9 +8,12 @@ export declare class PoolStatusEventBasePool {
|
|
|
8
8
|
export declare class PoolStatusEventGamePool extends PoolStatusEventBasePool {
|
|
9
9
|
machinePoolId: string;
|
|
10
10
|
}
|
|
11
|
+
export declare class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
|
|
12
|
+
providerSettings: Partial<CloudProviderSettings>;
|
|
13
|
+
}
|
|
11
14
|
export declare class PoolStatusEventPayload {
|
|
12
15
|
games: PoolStatusEventGamePool[];
|
|
13
|
-
machines:
|
|
16
|
+
machines: PoolStatusEventMachinePool[];
|
|
14
17
|
requestId: string;
|
|
15
18
|
}
|
|
16
19
|
export declare class PoolStatusEvent extends LudeoEvent {
|
|
@@ -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.PoolStatusEvent = exports.PoolStatusEventPayload = exports.PoolStatusEventGamePool = exports.PoolStatusEventBasePool = void 0;
|
|
12
|
+
exports.PoolStatusEvent = exports.PoolStatusEventPayload = exports.PoolStatusEventMachinePool = exports.PoolStatusEventGamePool = exports.PoolStatusEventBasePool = 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");
|
|
@@ -32,6 +32,13 @@ __decorate([
|
|
|
32
32
|
(0, class_validator_1.IsUUID)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], PoolStatusEventGamePool.prototype, "machinePoolId", void 0);
|
|
35
|
+
class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
|
|
36
|
+
}
|
|
37
|
+
exports.PoolStatusEventMachinePool = PoolStatusEventMachinePool;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], PoolStatusEventMachinePool.prototype, "providerSettings", void 0);
|
|
35
42
|
class PoolStatusEventPayload {
|
|
36
43
|
}
|
|
37
44
|
exports.PoolStatusEventPayload = PoolStatusEventPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v3/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v3/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oCAKkB;AAClB,oGAAqF;AAErF,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AANC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;2DAAC;AAK/B;IADC,IAAA,wBAAM,GAAE;;uDACM;AAGjB,MAAa,uBAAwB,SAAQ,uBAAuB;CAGnE;AAHD,0DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAGxB,MAAa,0BAA2B,SAAQ,uBAAuB;CAGtE;AAHD,gEAGC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;oEACG;AAGnD,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
-
import { CloudResourcesStatusMap, BasePoolAttributes, LudeoPoolAttributes, MachinePoolAttributes } from "../types";
|
|
2
|
+
import { CloudResourcesStatusMap, BasePoolAttributes, LudeoPoolAttributes, MachinePoolAttributes, CloudProviderSettings } from "../types";
|
|
3
3
|
import { GamePoolAttributes } from "../../v3/types";
|
|
4
4
|
export declare class PoolStatusEventBasePool<T extends BasePoolAttributes = BasePoolAttributes> {
|
|
5
5
|
attributes: T;
|
|
@@ -16,6 +16,7 @@ export declare class PoolStatusEventGamePool extends PoolStatusEventBasePool<Gam
|
|
|
16
16
|
}
|
|
17
17
|
export declare class PoolStatusEventMachinePool extends PoolStatusEventBasePool<MachinePoolAttributes> {
|
|
18
18
|
games: PoolStatusEventGamePool[];
|
|
19
|
+
providerSettings: Partial<CloudProviderSettings>;
|
|
19
20
|
}
|
|
20
21
|
export declare class PoolStatusEventPayload {
|
|
21
22
|
machines: PoolStatusEventMachinePool[];
|
|
@@ -48,6 +48,10 @@ __decorate([
|
|
|
48
48
|
class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
|
|
49
49
|
}
|
|
50
50
|
exports.PoolStatusEventMachinePool = PoolStatusEventMachinePool;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSProviderSettings),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], PoolStatusEventMachinePool.prototype, "providerSettings", void 0);
|
|
51
55
|
class PoolStatusEventPayload {
|
|
52
56
|
}
|
|
53
57
|
exports.PoolStatusEventPayload = PoolStatusEventPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,yDAAqD;AACrD,oCAOkB;AAClB,oGAAqF;AAErF,4FAA4E;AAE5E,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;CAOzF;AAPD,4DAOC;AALC;IADC,IAAA,wBAAM,GAAE;;4DACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0CAAa,GAAE;;yDACC;AAGnB,MAAa,uBAAwB,SAAQ,uBAA2C;CAKvF;AALD,0DAKC;AAHC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAKxB,MAAa,0BAA2B,SAAQ,uBAA8C;CAK7F;AALD,gEAKC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;oEACG;AAGnD,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,7 +1,12 @@
|
|
|
1
1
|
import { IsString, IsUUID } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
CloudResourcesStatusMap,
|
|
6
|
+
BasePoolAttributes,
|
|
7
|
+
AWSProviderSettings,
|
|
8
|
+
CloudProviderSettings,
|
|
9
|
+
} from "../types";
|
|
5
10
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
11
|
|
|
7
12
|
export class PoolStatusEventBasePool {
|
|
@@ -19,10 +24,15 @@ export class PoolStatusEventGamePool extends PoolStatusEventBasePool {
|
|
|
19
24
|
machinePoolId: string;
|
|
20
25
|
}
|
|
21
26
|
|
|
27
|
+
export class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
|
|
28
|
+
@ValidateNestedType(() => AWSProviderSettings)
|
|
29
|
+
providerSettings: Partial<CloudProviderSettings>;
|
|
30
|
+
}
|
|
31
|
+
|
|
22
32
|
export class PoolStatusEventPayload {
|
|
23
33
|
games: PoolStatusEventGamePool[];
|
|
24
34
|
|
|
25
|
-
machines:
|
|
35
|
+
machines: PoolStatusEventMachinePool[];
|
|
26
36
|
|
|
27
37
|
@IsUUID()
|
|
28
38
|
requestId: string;
|
|
@@ -6,13 +6,15 @@ import {
|
|
|
6
6
|
BasePoolAttributes,
|
|
7
7
|
LudeoPoolAttributes,
|
|
8
8
|
MachinePoolAttributes,
|
|
9
|
+
AWSProviderSettings,
|
|
10
|
+
CloudProviderSettings,
|
|
9
11
|
} from "../types";
|
|
10
12
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
11
13
|
import { GamePoolAttributes } from "../../v3/types";
|
|
12
14
|
import { IsUUIDOrEmpty } from "../../decorators/is-uuid-or-empty.decorator";
|
|
13
15
|
|
|
14
16
|
export class PoolStatusEventBasePool<
|
|
15
|
-
T extends BasePoolAttributes = BasePoolAttributes
|
|
17
|
+
T extends BasePoolAttributes = BasePoolAttributes,
|
|
16
18
|
> {
|
|
17
19
|
@ValidateNestedType(() => BasePoolAttributes)
|
|
18
20
|
attributes: T;
|
|
@@ -41,6 +43,9 @@ export class PoolStatusEventGamePool extends PoolStatusEventBasePool<GamePoolAtt
|
|
|
41
43
|
|
|
42
44
|
export class PoolStatusEventMachinePool extends PoolStatusEventBasePool<MachinePoolAttributes> {
|
|
43
45
|
games: PoolStatusEventGamePool[];
|
|
46
|
+
|
|
47
|
+
@ValidateNestedType(() => AWSProviderSettings)
|
|
48
|
+
providerSettings: Partial<CloudProviderSettings>;
|
|
44
49
|
}
|
|
45
50
|
|
|
46
51
|
export class PoolStatusEventPayload {
|