@ludeo/cloud-common 1.2.219 → 1.2.221
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/contexts/cloud-pool-context.d.ts +2 -0
- package/dist/v4/contexts/cloud-pool-context.js +8 -0
- package/dist/v4/contexts/cloud-pool-context.js.map +1 -1
- package/dist/v4/events/provisioner/provisioning-ended.d.ts +15 -0
- package/dist/v4/events/provisioner/provisioning-ended.js +52 -1
- package/dist/v4/events/provisioner/provisioning-ended.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/contexts/cloud-pool-context.ts +6 -0
- package/src/v4/events/provisioner/provisioning-ended.ts +41 -1
|
@@ -36,4 +36,12 @@ __decorate([
|
|
|
36
36
|
(0, class_validator_1.IsOptional)(),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], CloudPoolContext.prototype, "platformStatusRequestId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CloudPoolContext.prototype, "provisioningRequestId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CloudPoolContext.prototype, "forecastRequestId", void 0);
|
|
39
47
|
//# sourceMappingURL=cloud-pool-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-pool-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-pool-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"cloud-pool-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-pool-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,gBAAgB;CAsB5B;AAtBD,4CAsBC;AApBC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uDACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;gDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY;AAGvB;IADC,IAAA,4BAAU,GAAE;;8DACiB;AAG9B;IADC,IAAA,4BAAU,GAAE;;iEACoB;AAGjC;IADC,IAAA,4BAAU,GAAE;;+DACkB;AAG/B;IADC,IAAA,4BAAU,GAAE;;2DACc"}
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../../infra";
|
|
2
2
|
import { ProvisionerContext } from "../../contexts";
|
|
3
3
|
import { LudeoFeatures } from "../../types/predictor";
|
|
4
|
+
import { CloudPoolType } from "../../types/pools";
|
|
5
|
+
export declare class UserLocationDemandAllocation {
|
|
6
|
+
location: string;
|
|
7
|
+
gameId: string;
|
|
8
|
+
majorVersion: string;
|
|
9
|
+
demand: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class ProvisionedPoolMetadata {
|
|
12
|
+
instanceType: string;
|
|
13
|
+
region: string;
|
|
14
|
+
type: CloudPoolType;
|
|
15
|
+
userLocationDemandAllocations?: UserLocationDemandAllocation[];
|
|
16
|
+
effectiveSupplyConstraint?: number;
|
|
17
|
+
}
|
|
4
18
|
export declare class ProvisionedPool {
|
|
5
19
|
poolId: string;
|
|
6
20
|
size: number;
|
|
7
21
|
ludeoFeatures?: LudeoFeatures;
|
|
22
|
+
metadata?: ProvisionedPoolMetadata;
|
|
8
23
|
}
|
|
9
24
|
export declare class ProvisioningEndedPayload {
|
|
10
25
|
pools: ProvisionedPool[];
|
|
@@ -9,12 +9,58 @@ 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.ProvisioningEnded = exports.ProvisioningEndedPayload = exports.ProvisionedPool = void 0;
|
|
12
|
+
exports.ProvisioningEnded = exports.ProvisioningEndedPayload = exports.ProvisionedPool = exports.ProvisionedPoolMetadata = exports.UserLocationDemandAllocation = void 0;
|
|
13
13
|
const infra_1 = require("../../../infra");
|
|
14
14
|
const decorators_1 = require("../../../decorators");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const contexts_1 = require("../../contexts");
|
|
17
17
|
const predictor_1 = require("../../types/predictor");
|
|
18
|
+
const pools_1 = require("../../types/pools");
|
|
19
|
+
class UserLocationDemandAllocation {
|
|
20
|
+
}
|
|
21
|
+
exports.UserLocationDemandAllocation = UserLocationDemandAllocation;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], UserLocationDemandAllocation.prototype, "location", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UserLocationDemandAllocation.prototype, "gameId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UserLocationDemandAllocation.prototype, "majorVersion", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsNumber)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], UserLocationDemandAllocation.prototype, "demand", void 0);
|
|
38
|
+
class ProvisionedPoolMetadata {
|
|
39
|
+
}
|
|
40
|
+
exports.ProvisionedPoolMetadata = ProvisionedPoolMetadata;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ProvisionedPoolMetadata.prototype, "instanceType", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ProvisionedPoolMetadata.prototype, "region", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsEnum)(pools_1.CloudPoolType),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ProvisionedPoolMetadata.prototype, "type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsArray)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, decorators_1.ValidateNestedType)(() => UserLocationDemandAllocation),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], ProvisionedPoolMetadata.prototype, "userLocationDemandAllocations", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsNumber)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], ProvisionedPoolMetadata.prototype, "effectiveSupplyConstraint", void 0);
|
|
18
64
|
class ProvisionedPool {
|
|
19
65
|
}
|
|
20
66
|
exports.ProvisionedPool = ProvisionedPool;
|
|
@@ -31,6 +77,11 @@ __decorate([
|
|
|
31
77
|
(0, decorators_1.ValidateNestedType)(() => predictor_1.LudeoFeatures),
|
|
32
78
|
__metadata("design:type", predictor_1.LudeoFeatures)
|
|
33
79
|
], ProvisionedPool.prototype, "ludeoFeatures", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
(0, decorators_1.ValidateNestedType)(() => ProvisionedPoolMetadata),
|
|
83
|
+
__metadata("design:type", ProvisionedPoolMetadata)
|
|
84
|
+
], ProvisionedPool.prototype, "metadata", void 0);
|
|
34
85
|
class ProvisioningEndedPayload {
|
|
35
86
|
}
|
|
36
87
|
exports.ProvisioningEndedPayload = ProvisioningEndedPayload;
|
|
@@ -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,qDAA6F;AAC7F,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;AAGnB,MAAa,uBAAuB;CAmBnC;AAnBD,0DAmBC;AAjBG;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;;0EACsB;AAIvC,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,8 +1,44 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../../infra";
|
|
2
2
|
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
-
import { IsArray, IsDefined, IsNumber, IsOptional, IsString } from "class-validator";
|
|
3
|
+
import { IsArray, IsDefined, IsEnum, IsNumber, IsOptional, IsString } from "class-validator";
|
|
4
4
|
import { ProvisionerContext } from "../../contexts";
|
|
5
5
|
import { LudeoFeatures } from "../../types/predictor";
|
|
6
|
+
import { CloudPoolType } from "../../types/pools";
|
|
7
|
+
|
|
8
|
+
export class UserLocationDemandAllocation {
|
|
9
|
+
@IsString()
|
|
10
|
+
location: string;
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
gameId: string;
|
|
14
|
+
|
|
15
|
+
@IsString()
|
|
16
|
+
majorVersion: string;
|
|
17
|
+
|
|
18
|
+
@IsNumber()
|
|
19
|
+
demand: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class ProvisionedPoolMetadata {
|
|
23
|
+
@IsString()
|
|
24
|
+
instanceType: string;
|
|
25
|
+
|
|
26
|
+
@IsString()
|
|
27
|
+
region: string;
|
|
28
|
+
|
|
29
|
+
@IsEnum(CloudPoolType)
|
|
30
|
+
type: CloudPoolType;
|
|
31
|
+
|
|
32
|
+
@IsArray()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@ValidateNestedType(() => UserLocationDemandAllocation)
|
|
35
|
+
userLocationDemandAllocations?: UserLocationDemandAllocation[];
|
|
36
|
+
|
|
37
|
+
@IsNumber()
|
|
38
|
+
@IsOptional()
|
|
39
|
+
effectiveSupplyConstraint?: number;
|
|
40
|
+
|
|
41
|
+
}
|
|
6
42
|
|
|
7
43
|
export class ProvisionedPool {
|
|
8
44
|
@IsString()
|
|
@@ -14,6 +50,10 @@ export class ProvisionedPool {
|
|
|
14
50
|
@IsOptional()
|
|
15
51
|
@ValidateNestedType(() => LudeoFeatures)
|
|
16
52
|
ludeoFeatures?: LudeoFeatures;
|
|
53
|
+
|
|
54
|
+
@IsOptional()
|
|
55
|
+
@ValidateNestedType(() => ProvisionedPoolMetadata)
|
|
56
|
+
metadata?: ProvisionedPoolMetadata;
|
|
17
57
|
}
|
|
18
58
|
|
|
19
59
|
export class ProvisioningEndedPayload {
|