@ludeo/cloud-common 1.2.254 → 1.2.255
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/provisioner/provisioning-ended.d.ts +2 -0
- package/dist/v4/events/provisioner/provisioning-ended.js +5 -0
- package/dist/v4/events/provisioner/provisioning-ended.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/provisioner/provisioning-ended.ts +9 -1
|
@@ -8,6 +8,7 @@ export declare class UserLocationDemandAllocation {
|
|
|
8
8
|
majorVersion: string;
|
|
9
9
|
demand: number;
|
|
10
10
|
}
|
|
11
|
+
export type GamePoolAllocationSplits = Record<string, number>;
|
|
11
12
|
export declare class ProvisionedPoolMetadata {
|
|
12
13
|
instanceType: string;
|
|
13
14
|
region: string;
|
|
@@ -15,6 +16,7 @@ export declare class ProvisionedPoolMetadata {
|
|
|
15
16
|
userLocationDemandAllocations?: UserLocationDemandAllocation[];
|
|
16
17
|
machinePoolId?: string;
|
|
17
18
|
effectiveSupplyConstraint?: number;
|
|
19
|
+
gamePoolAllocationSplits?: GamePoolAllocationSplits;
|
|
18
20
|
}
|
|
19
21
|
export declare class ProvisionedPool {
|
|
20
22
|
poolId: string;
|
|
@@ -66,6 +66,11 @@ __decorate([
|
|
|
66
66
|
(0, class_validator_1.IsOptional)(),
|
|
67
67
|
__metadata("design:type", Number)
|
|
68
68
|
], ProvisionedPoolMetadata.prototype, "effectiveSupplyConstraint", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsObject)(),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], ProvisionedPoolMetadata.prototype, "gamePoolAllocationSplits", void 0);
|
|
69
74
|
class ProvisionedPool {
|
|
70
75
|
}
|
|
71
76
|
exports.ProvisionedPool = ProvisionedPool;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisioning-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/provisioner/provisioning-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"provisioning-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/provisioner/provisioning-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuG;AACvG,6CAAoD;AACpD,qDAAsD;AACtD,6CAAkD;AAElD,MAAa,4BAA4B;CAYxC;AAZD,oEAYC;AAVG;IADC,IAAA,0BAAQ,GAAE;;8DACM;AAGjB;IADC,IAAA,0BAAQ,GAAE;;4DACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;kEACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;4DACI;AAMnB,MAAa,uBAAuB;CA4BnC;AA5BD,0DA4BC;AA1BG;IADC,IAAA,0BAAQ,GAAE;;6DACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;uDACI;AAGf;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;qDACF;AAKpB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;;8EACQ;AAI/D;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACsB;AAKnC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yEACyC;AAIxD,MAAa,eAAe;CAc3B;AAdD,0CAcC;AAZG;IADC,IAAA,0BAAQ,GAAE;;+CACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,yBAAa,CAAC;8BACxB,yBAAa;sDAAC;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACvC,uBAAuB;iDAAC;AAGvC,MAAa,wBAAwB;CAKpC;AALD,4DAKC;AADG;IAHC,IAAA,2BAAS,GAAE;IACX,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,eAAe,CAAC;;uDACjB;AAG7B,MAAa,iBAAkB,SAAQ,kBAAU;IAG7C,YAAY,OAAiC,EAAE,OAA2B;QACtE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;;AAPL,8CAcC;AAbmB,4BAAU,GAAG,gCAAgC,CAAC;AAS9D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC;AAGlC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAAkB,CAAC;8BACpC,6BAAkB;kDAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../../infra";
|
|
2
2
|
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
-
import { IsArray, IsDefined, IsEnum, IsNumber, IsOptional, IsString } from "class-validator";
|
|
3
|
+
import { IsArray, IsDefined, IsEnum, IsNumber, IsObject, IsOptional, IsString } from "class-validator";
|
|
4
4
|
import { ProvisionerContext } from "../../contexts";
|
|
5
5
|
import { LudeoFeatures } from "../../types/predictor";
|
|
6
6
|
import { CloudPoolType } from "../../types/pools";
|
|
@@ -19,6 +19,9 @@ export class UserLocationDemandAllocation {
|
|
|
19
19
|
demand: number;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
/** gamePoolId → allocated units on this machine pool (ProvisioningEnded machine pool metadata only). */
|
|
23
|
+
export type GamePoolAllocationSplits = Record<string, number>;
|
|
24
|
+
|
|
22
25
|
export class ProvisionedPoolMetadata {
|
|
23
26
|
@IsString()
|
|
24
27
|
instanceType: string;
|
|
@@ -42,6 +45,11 @@ export class ProvisionedPoolMetadata {
|
|
|
42
45
|
@IsOptional()
|
|
43
46
|
effectiveSupplyConstraint?: number;
|
|
44
47
|
|
|
48
|
+
/** Machine pools only: allocated units per game pool id on this machine pool (sums to pool size when present). */
|
|
49
|
+
@IsOptional()
|
|
50
|
+
@IsObject()
|
|
51
|
+
gamePoolAllocationSplits?: GamePoolAllocationSplits;
|
|
52
|
+
|
|
45
53
|
}
|
|
46
54
|
|
|
47
55
|
export class ProvisionedPool {
|