@ludeo/cloud-common 1.1.76 → 1.1.77-2
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/index.d.ts +1 -0
- package/dist/v3/events/index.js +1 -0
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/pools-status.d.ts +14 -0
- package/dist/v3/events/pools-status.js +33 -0
- package/dist/v3/events/pools-status.js.map +1 -0
- package/dist/v3/types/pools/configuration/attributes/base.d.ts +2 -0
- package/dist/v3/types/pools/configuration/attributes/base.js +7 -0
- package/dist/v3/types/pools/configuration/attributes/base.js.map +1 -0
- package/dist/v3/types/pools/configuration/attributes/index.d.ts +1 -0
- package/dist/v3/types/pools/configuration/attributes/index.js +1 -0
- package/dist/v3/types/pools/configuration/attributes/index.js.map +1 -1
- package/dist/v3/types/pools/configuration/attributes/machine.d.ts +2 -1
- package/dist/v3/types/pools/configuration/attributes/machine.js +2 -1
- package/dist/v3/types/pools/configuration/attributes/machine.js.map +1 -1
- package/dist/v3/types/pools/configuration/base.d.ts +3 -1
- package/dist/v3/types/pools/configuration/base.js +6 -1
- package/dist/v3/types/pools/configuration/base.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/index.ts +1 -0
- package/src/v3/events/pools-status.ts +29 -0
- package/src/v3/types/pools/configuration/attributes/base.ts +1 -0
- package/src/v3/types/pools/configuration/attributes/index.ts +1 -0
- package/src/v3/types/pools/configuration/attributes/machine.ts +3 -1
- package/src/v3/types/pools/configuration/base.ts +6 -2
|
@@ -26,6 +26,7 @@ export * from "./machine-pool-resizing-task";
|
|
|
26
26
|
export * from "./machine-resource-created-response";
|
|
27
27
|
export * from "./machine-resource-creation-failed-response";
|
|
28
28
|
export * from "./monitor-game-resource-task";
|
|
29
|
+
export * from "./pools-status";
|
|
29
30
|
export * from "./set-pool.event";
|
|
30
31
|
export * from "./set-pools-state";
|
|
31
32
|
export * from "./swap-cloud-user-completed";
|
package/dist/v3/events/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __exportStar(require("./machine-pool-resizing-task"), exports);
|
|
|
42
42
|
__exportStar(require("./machine-resource-created-response"), exports);
|
|
43
43
|
__exportStar(require("./machine-resource-creation-failed-response"), exports);
|
|
44
44
|
__exportStar(require("./monitor-game-resource-task"), exports);
|
|
45
|
+
__exportStar(require("./pools-status"), exports);
|
|
45
46
|
__exportStar(require("./set-pool.event"), exports);
|
|
46
47
|
__exportStar(require("./set-pools-state"), exports);
|
|
47
48
|
__exportStar(require("./swap-cloud-user-completed"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,mDAAiC;AACjC,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,iDAA+B;AAC/B,mDAAiC;AACjC,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { MachinePoolAttributes, GamePoolAttributes, CloudResourcesStatusMap } from "../types";
|
|
3
|
+
export declare class PoolsStatusEventPool {
|
|
4
|
+
attributes: MachinePoolAttributes | GamePoolAttributes;
|
|
5
|
+
statusMap: CloudResourcesStatusMap;
|
|
6
|
+
}
|
|
7
|
+
export declare class PoolsStatusEventPayload {
|
|
8
|
+
pools: PoolsStatusEventPool[];
|
|
9
|
+
}
|
|
10
|
+
export declare class PoolsStatusEvent extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "cloud-pools.pools-status";
|
|
12
|
+
constructor(payload: PoolsStatusEventPayload);
|
|
13
|
+
payload: PoolsStatusEventPayload;
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PoolsStatusEvent = exports.PoolsStatusEventPayload = exports.PoolsStatusEventPool = void 0;
|
|
13
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
14
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
+
class PoolsStatusEventPool {
|
|
16
|
+
}
|
|
17
|
+
exports.PoolsStatusEventPool = PoolsStatusEventPool;
|
|
18
|
+
class PoolsStatusEventPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.PoolsStatusEventPayload = PoolsStatusEventPayload;
|
|
21
|
+
class PoolsStatusEvent extends ludeo_event_1.LudeoEvent {
|
|
22
|
+
constructor(payload) {
|
|
23
|
+
super(PoolsStatusEvent.EVENT_NAME);
|
|
24
|
+
this.payload = payload;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.PoolsStatusEvent = PoolsStatusEvent;
|
|
28
|
+
PoolsStatusEvent.EVENT_NAME = "cloud-pools.pools-status";
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => PoolsStatusEventPayload),
|
|
31
|
+
__metadata("design:type", PoolsStatusEventPayload)
|
|
32
|
+
], PoolsStatusEvent.prototype, "payload", void 0);
|
|
33
|
+
//# sourceMappingURL=pools-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pools-status.js","sourceRoot":"","sources":["../../../src/v3/events/pools-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AAMrD,oGAAqF;AAErF,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAgC;QAC1C,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,4CAUC;AATiB,2BAAU,GAAG,0BAA0B,CAAC;AAQxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/base.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;CAAG;AAAlC,gDAAkC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./game"), exports);
|
|
18
18
|
__exportStar(require("./machine"), exports);
|
|
19
|
+
__exportStar(require("./base"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,yCAAuB"}
|
|
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.MachinePoolAttributes = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
14
|
+
const base_1 = require("./base");
|
|
15
|
+
class MachinePoolAttributes extends base_1.BasePoolAttributes {
|
|
15
16
|
}
|
|
16
17
|
exports.MachinePoolAttributes = MachinePoolAttributes;
|
|
17
18
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,
|
|
1
|
+
{"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,iCAA4C;AAE5C,MAAa,qBAAsB,SAAQ,yBAAkB;CAG5D;AAHD,sDAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;2DACU"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CloudPoolType } from "../type";
|
|
2
1
|
import { CloudProvider, CloudProviderSettings } from "../../cloud";
|
|
2
|
+
import { CloudPoolType } from "../type";
|
|
3
|
+
import { BasePoolAttributes } from "./attributes";
|
|
3
4
|
export declare class PoolScaleConfiguration {
|
|
4
5
|
size: number;
|
|
5
6
|
}
|
|
@@ -9,4 +10,5 @@ export declare class BaseCloudPoolConfiguration {
|
|
|
9
10
|
poolId: string;
|
|
10
11
|
poolScaleConfiguration: PoolScaleConfiguration;
|
|
11
12
|
type: CloudPoolType;
|
|
13
|
+
attributes: BasePoolAttributes;
|
|
12
14
|
}
|
|
@@ -11,9 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.BaseCloudPoolConfiguration = exports.PoolScaleConfiguration = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const cloud_1 = require("../../cloud");
|
|
14
15
|
const type_1 = require("../type");
|
|
16
|
+
const attributes_1 = require("./attributes");
|
|
15
17
|
const decorators_1 = require("../../../../decorators");
|
|
16
|
-
const cloud_1 = require("../../cloud");
|
|
17
18
|
class PoolScaleConfiguration {
|
|
18
19
|
}
|
|
19
20
|
exports.PoolScaleConfiguration = PoolScaleConfiguration;
|
|
@@ -45,4 +46,8 @@ __decorate([
|
|
|
45
46
|
(0, class_validator_1.IsEnum)(type_1.CloudPoolType),
|
|
46
47
|
__metadata("design:type", String)
|
|
47
48
|
], BaseCloudPoolConfiguration.prototype, "type", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, decorators_1.ValidateNestedType)(() => attributes_1.BasePoolAttributes),
|
|
51
|
+
__metadata("design:type", attributes_1.BasePoolAttributes)
|
|
52
|
+
], BaseCloudPoolConfiguration.prototype, "attributes", void 0);
|
|
48
53
|
//# sourceMappingURL=base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/configuration/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,kCAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/v3/types/pools/configuration/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,uCAIqB;AACrB,kCAAwC;AACxC,6CAAkD;AAClD,uDAA4D;AAE5D,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;oDACE;AAGf,MAAa,0BAA0B;CAmBtC;AAnBD,gEAmBC;AAhBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;oEACL;AAGzC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;iEACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;0DACM;AAGf;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACzB,sBAAsB;0EAAC;AAG/C;IADC,IAAA,wBAAM,EAAC,oBAAa,CAAC;;wDACF;AAGpB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;8DAAC"}
|
package/package.json
CHANGED
package/src/v3/events/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from "./machine-pool-resizing-task";
|
|
|
26
26
|
export * from "./machine-resource-created-response";
|
|
27
27
|
export * from "./machine-resource-creation-failed-response";
|
|
28
28
|
export * from "./monitor-game-resource-task";
|
|
29
|
+
export * from "./pools-status";
|
|
29
30
|
export * from "./set-pool.event";
|
|
30
31
|
export * from "./set-pools-state";
|
|
31
32
|
export * from "./swap-cloud-user-completed";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import {
|
|
3
|
+
MachinePoolAttributes,
|
|
4
|
+
GamePoolAttributes,
|
|
5
|
+
CloudResourcesStatusMap,
|
|
6
|
+
} from "../types";
|
|
7
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
8
|
+
|
|
9
|
+
export class PoolsStatusEventPool {
|
|
10
|
+
attributes: MachinePoolAttributes | GamePoolAttributes;
|
|
11
|
+
|
|
12
|
+
statusMap: CloudResourcesStatusMap;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class PoolsStatusEventPayload {
|
|
16
|
+
pools: PoolsStatusEventPool[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class PoolsStatusEvent extends LudeoEvent {
|
|
20
|
+
static readonly EVENT_NAME = "cloud-pools.pools-status";
|
|
21
|
+
|
|
22
|
+
constructor(payload: PoolsStatusEventPayload) {
|
|
23
|
+
super(PoolsStatusEvent.EVENT_NAME);
|
|
24
|
+
this.payload = payload;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@ValidateNestedType(() => PoolsStatusEventPayload)
|
|
28
|
+
payload: PoolsStatusEventPayload;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export class BasePoolAttributes {}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { IsNumber, IsEnum, IsUUID, IsOptional } from "class-validator";
|
|
2
2
|
|
|
3
|
-
import { CloudPoolType } from "../type";
|
|
4
|
-
import { ValidateNestedType } from "../../../../decorators";
|
|
5
3
|
import {
|
|
6
4
|
AWSProviderSettings,
|
|
7
5
|
CloudProvider,
|
|
8
6
|
CloudProviderSettings,
|
|
9
7
|
} from "../../cloud";
|
|
8
|
+
import { CloudPoolType } from "../type";
|
|
9
|
+
import { BasePoolAttributes } from "./attributes";
|
|
10
|
+
import { ValidateNestedType } from "../../../../decorators";
|
|
10
11
|
|
|
11
12
|
export class PoolScaleConfiguration {
|
|
12
13
|
@IsNumber()
|
|
@@ -29,4 +30,7 @@ export class BaseCloudPoolConfiguration {
|
|
|
29
30
|
|
|
30
31
|
@IsEnum(CloudPoolType)
|
|
31
32
|
type: CloudPoolType;
|
|
33
|
+
|
|
34
|
+
@ValidateNestedType(() => BasePoolAttributes)
|
|
35
|
+
attributes: BasePoolAttributes;
|
|
32
36
|
}
|