@ludeo/cloud-common 1.2.173-beta-yahil-1 → 1.2.173-beta-yahil-3
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/v4/events/allocate-machine-request.d.ts +1 -0
- package/dist/v4/events/allocate-machine-request.js +5 -0
- package/dist/v4/events/allocate-machine-request.js.map +1 -1
- package/dist/v4/types/pools/configuration/game.d.ts +1 -0
- package/dist/v4/types/pools/configuration/game.js +5 -0
- package/dist/v4/types/pools/configuration/game.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/allocate-machine-request.ts +5 -1
- package/src/v4/types/pools/configuration/game.ts +5 -1
|
@@ -4,6 +4,7 @@ export declare class AllocateMachineRequestPayload {
|
|
|
4
4
|
gameResourceId: string;
|
|
5
5
|
machinePoolId: string;
|
|
6
6
|
gamePoolId: string;
|
|
7
|
+
resourceWeight?: number;
|
|
7
8
|
}
|
|
8
9
|
export declare class AllocateMachineRequest extends LudeoEvent {
|
|
9
10
|
static readonly EVENT_NAME = "cloud-pools.allocate-machine-request";
|
|
@@ -29,6 +29,11 @@ __decorate([
|
|
|
29
29
|
(0, class_validator_1.IsUUID)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], AllocateMachineRequestPayload.prototype, "gamePoolId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNumber)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], AllocateMachineRequestPayload.prototype, "resourceWeight", void 0);
|
|
32
37
|
class AllocateMachineRequest extends ludeo_event_1.LudeoEvent {
|
|
33
38
|
constructor(payload, context) {
|
|
34
39
|
super(AllocateMachineRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocate-machine-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"allocate-machine-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,6BAA6B;CAazC;AAbD,sEAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;qEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;oEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;iEACU;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACW;AAG1B,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA6B;QAE7B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,sCAAsC,CAAC;AAYpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;uDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
|
|
@@ -45,4 +45,9 @@ __decorate([
|
|
|
45
45
|
(0, class_validator_1.IsNumber)(),
|
|
46
46
|
__metadata("design:type", Number)
|
|
47
47
|
], GamePoolConfiguration.prototype, "postCreationDelay", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.IsNumber)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], GamePoolConfiguration.prototype, "resourceWeight", void 0);
|
|
48
53
|
//# sourceMappingURL=game.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,kCAAwC;AACxC,6CAAkD;AAClD,iCAAoD;AACpD,uDAA4D;AAC5D,uCAA6E;AAE7E,MAAa,qBAEX,SAAQ,iCAA0B;
|
|
1
|
+
{"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,kCAAwC;AACxC,6CAAkD;AAClD,iCAAoD;AACpD,uDAA4D;AAC5D,uCAA6E;AAE7E,MAAa,qBAEX,SAAQ,iCAA0B;CA4BnC;AA9BD,sDA8BC;AAzBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,+BAAuB,CAAC;;+DACvB;AAGrB;IADC,IAAA,wBAAM,EAAC,oBAAa,CAAC;;mDACG;AAGzB;IADC,IAAA,wBAAM,GAAE;;qDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4DACa;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;yDAAC;AAQ/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACgB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACa"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsUUID } from "class-validator";
|
|
1
|
+
import { IsUUID, IsNumber, IsOptional } from "class-validator";
|
|
2
2
|
|
|
3
3
|
import { CloudResourceContext } from "../contexts";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
@@ -13,6 +13,10 @@ export class AllocateMachineRequestPayload {
|
|
|
13
13
|
|
|
14
14
|
@IsUUID()
|
|
15
15
|
gamePoolId: string;
|
|
16
|
+
|
|
17
|
+
@IsNumber()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
resourceWeight?: number;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
export class AllocateMachineRequest extends LudeoEvent {
|
|
@@ -7,7 +7,7 @@ import { ValidateNestedType } from "../../../../decorators";
|
|
|
7
7
|
import { CloudProviderSettings, getProviderSettingsType } from "../../cloud";
|
|
8
8
|
|
|
9
9
|
export class GamePoolConfiguration<
|
|
10
|
-
T extends CloudProviderSettings = CloudProviderSettings
|
|
10
|
+
T extends CloudProviderSettings = CloudProviderSettings
|
|
11
11
|
> extends BaseCloudPoolConfiguration {
|
|
12
12
|
@IsOptional()
|
|
13
13
|
@ValidateNestedType(getProviderSettingsType)
|
|
@@ -32,4 +32,8 @@ export class GamePoolConfiguration<
|
|
|
32
32
|
@IsOptional()
|
|
33
33
|
@IsNumber()
|
|
34
34
|
postCreationDelay?: number;
|
|
35
|
+
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsNumber()
|
|
38
|
+
resourceWeight?: number;
|
|
35
39
|
}
|