@ludeo/cloud-common 1.2.208 → 1.2.209-beta-yahil-1
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/forecast/forecast-ended.d.ts +28 -0
- package/dist/v4/events/forecast/forecast-ended.js +65 -0
- package/dist/v4/events/forecast/forecast-ended.js.map +1 -0
- package/dist/v4/events/forecast/index.d.ts +1 -0
- package/dist/v4/events/forecast/index.js +18 -0
- package/dist/v4/events/forecast/index.js.map +1 -0
- package/dist/v4/events/index.d.ts +1 -0
- package/dist/v4/events/index.js +2 -1
- package/dist/v4/events/index.js.map +1 -1
- package/package.json +2 -2
- package/src/v4/events/forecast/forecast-ended.ts +52 -0
- package/src/v4/events/forecast/index.ts +1 -0
- package/src/v4/events/index.ts +1 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
export declare class LudeoIdsToLoad {
|
|
3
|
+
[ludeoId: string]: number;
|
|
4
|
+
}
|
|
5
|
+
export declare class LudeosRatio {
|
|
6
|
+
[ludeoId: string]: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class ForecastMajorVersion {
|
|
9
|
+
totalDemand: number;
|
|
10
|
+
ludeoIdsToLoad?: LudeoIdsToLoad;
|
|
11
|
+
ludeosRatio?: LudeosRatio;
|
|
12
|
+
}
|
|
13
|
+
export declare class ForecastEnvironment {
|
|
14
|
+
[majorVersion: string]: ForecastMajorVersion;
|
|
15
|
+
}
|
|
16
|
+
export declare class ForecastLocation {
|
|
17
|
+
[envId: string]: ForecastEnvironment;
|
|
18
|
+
}
|
|
19
|
+
export declare class ForecastEndedPayload {
|
|
20
|
+
forecasts: {
|
|
21
|
+
[location: string]: ForecastLocation;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare class ForecastEnded extends LudeoEvent {
|
|
25
|
+
static readonly EVENT_NAME = "forecast.forecast-ended";
|
|
26
|
+
constructor(payload: ForecastEndedPayload);
|
|
27
|
+
payload: ForecastEndedPayload;
|
|
28
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.ForecastEnded = exports.ForecastEndedPayload = exports.ForecastLocation = exports.ForecastEnvironment = exports.ForecastMajorVersion = exports.LudeosRatio = exports.LudeoIdsToLoad = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class LudeoIdsToLoad {
|
|
17
|
+
}
|
|
18
|
+
exports.LudeoIdsToLoad = LudeoIdsToLoad;
|
|
19
|
+
class LudeosRatio {
|
|
20
|
+
}
|
|
21
|
+
exports.LudeosRatio = LudeosRatio;
|
|
22
|
+
class ForecastMajorVersion {
|
|
23
|
+
}
|
|
24
|
+
exports.ForecastMajorVersion = ForecastMajorVersion;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsNumber)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], ForecastMajorVersion.prototype, "totalDemand", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, decorators_1.ValidateNestedType)(() => LudeoIdsToLoad),
|
|
32
|
+
__metadata("design:type", LudeoIdsToLoad)
|
|
33
|
+
], ForecastMajorVersion.prototype, "ludeoIdsToLoad", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, decorators_1.ValidateNestedType)(() => LudeosRatio),
|
|
37
|
+
__metadata("design:type", LudeosRatio)
|
|
38
|
+
], ForecastMajorVersion.prototype, "ludeosRatio", void 0);
|
|
39
|
+
class ForecastEnvironment {
|
|
40
|
+
}
|
|
41
|
+
exports.ForecastEnvironment = ForecastEnvironment;
|
|
42
|
+
class ForecastLocation {
|
|
43
|
+
}
|
|
44
|
+
exports.ForecastLocation = ForecastLocation;
|
|
45
|
+
class ForecastEndedPayload {
|
|
46
|
+
}
|
|
47
|
+
exports.ForecastEndedPayload = ForecastEndedPayload;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsDefined)(),
|
|
50
|
+
(0, decorators_1.ValidateNestedType)(() => Object),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], ForecastEndedPayload.prototype, "forecasts", void 0);
|
|
53
|
+
class ForecastEnded extends infra_1.LudeoEvent {
|
|
54
|
+
constructor(payload) {
|
|
55
|
+
super(ForecastEnded.EVENT_NAME);
|
|
56
|
+
this.payload = payload;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.ForecastEnded = ForecastEnded;
|
|
60
|
+
ForecastEnded.EVENT_NAME = "forecast.forecast-ended";
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, decorators_1.ValidateNestedType)(() => ForecastEndedPayload),
|
|
63
|
+
__metadata("design:type", ForecastEndedPayload)
|
|
64
|
+
], ForecastEnded.prototype, "payload", void 0);
|
|
65
|
+
//# sourceMappingURL=forecast-ended.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forecast-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/forecast/forecast-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAkE;AAElE,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAWhC;AAXD,oDAWC;AATG;IADC,IAAA,0BAAQ,GAAE;;yDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC;8BACxB,cAAc;4DAAC;AAIhC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,WAAW,CAAC;8BACxB,WAAW;yDAAC;AAG9B,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAMhC;AAND,oDAMC;AAHG;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uDAG/B;AAGN,MAAa,aAAc,SAAQ,kBAAU;IAGzC,YAAY,OAA6B;QACrC,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;;AANL,sCAUC;AATmB,wBAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BACtC,oBAAoB;8CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./forecast-ended";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./forecast-ended"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/forecast/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -177,5 +177,6 @@ export * from "./ludeocast-machine-resource-error-timeout-task";
|
|
|
177
177
|
export * as SiteController from "./site-controller";
|
|
178
178
|
export * as CloudResources from "./cloud-resources";
|
|
179
179
|
export * as CloudBuilds from "./cloud-builds";
|
|
180
|
+
export * as Forecast from "./forecast";
|
|
180
181
|
export * as LudeocastAgent from "./ludeocast-agent";
|
|
181
182
|
export * as SonicServer from "./sonic-server";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.SonicServer = exports.LudeocastAgent = exports.CloudBuilds = exports.CloudResources = exports.SiteController = void 0;
|
|
17
|
+
exports.SonicServer = exports.LudeocastAgent = exports.Forecast = exports.CloudBuilds = exports.CloudResources = exports.SiteController = void 0;
|
|
18
18
|
__exportStar(require("./allocate-game-request"), exports);
|
|
19
19
|
__exportStar(require("./allocate-game-resource-request"), exports);
|
|
20
20
|
__exportStar(require("./allocate-machine-request"), exports);
|
|
@@ -194,6 +194,7 @@ __exportStar(require("./ludeocast-machine-resource-error-timeout-task"), exports
|
|
|
194
194
|
exports.SiteController = require("./site-controller");
|
|
195
195
|
exports.CloudResources = require("./cloud-resources");
|
|
196
196
|
exports.CloudBuilds = require("./cloud-builds");
|
|
197
|
+
exports.Forecast = require("./forecast");
|
|
197
198
|
exports.LudeocastAgent = require("./ludeocast-agent");
|
|
198
199
|
exports.SonicServer = require("./sonic-server");
|
|
199
200
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,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,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C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oD;AACpD,uEAAqD;AACrD,oDAAkC;AAClC,iEAA+C;AAC/C,mDAAiC;AACjC,iDAA+B;AAC/B,0DAAwC;AACxC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,iFAA+D;AAC/D,iDAA+B;AAC/B,2EAAyD;AACzD,iFAA+D;AAC/D,yEAAuD;AACvD,sFAAoE;AACpE,6DAA2C;AAC3C,qEAAmD;AACnD,mDAAiC;AACjC,oEAAkD;AAClD,kEAAgD;AAChD,4DAA0C;AAC1C,8EAA4D;AAC5D,wDAAsC;AACtC,iEAA+C;AAC/C,8EAA4D;AAC5D,iEAA+C;AAC/C,0EAAwD;AACxD,wEAAsD;AACtD,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,mDAAiC;AACjC,4EAA0D;AAC1D,+EAA6D;AAC7D,uDAAqC;AACrC,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,4DAA0C;AAC1C,sEAAoD;AACpD,oEAAkD;AAClD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,iDAA+B;AAC/B,qDAAmC;AACnC,4DAA0C;AAC1C,8DAA4C;AAC5C,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,oEAAkD;AAClD,2EAAyD;AACzD,kFAAgE;AAEhE,sDAAoD;AACpD,sDAAoD;AACpD,gDAA8C;AAC9C,sDAAoD;AACpD,gDAA8C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDA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AA8C;AAC9C,yCAAuC;AACvC,sDAAoD;AACpD,gDAA8C"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ludeo/cloud-common",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.209-beta-yahil-1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "Yahil Didi",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "rm -rf dist && tsc",
|
|
9
9
|
"test": "jest",
|
|
10
|
-
"manual-publish": "npm run build && npm publish --tag beta"
|
|
10
|
+
"manual-publish": "npm run build && npm config set @ludeo:registry https://registry.npmjs.org/ && npm config set '//registry.npmjs.org/:_authToken' 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 && npm publish --tag beta"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@aws-sdk/client-gameliftstreams": "^3.0.0",
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
+
import { IsDefined, IsNumber, IsOptional } from "class-validator";
|
|
4
|
+
|
|
5
|
+
export class LudeoIdsToLoad {
|
|
6
|
+
[ludeoId: string]: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class LudeosRatio {
|
|
10
|
+
[ludeoId: string]: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class ForecastMajorVersion {
|
|
14
|
+
@IsNumber()
|
|
15
|
+
totalDemand: number;
|
|
16
|
+
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@ValidateNestedType(() => LudeoIdsToLoad)
|
|
19
|
+
ludeoIdsToLoad?: LudeoIdsToLoad;
|
|
20
|
+
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@ValidateNestedType(() => LudeosRatio)
|
|
23
|
+
ludeosRatio?: LudeosRatio;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class ForecastEnvironment {
|
|
27
|
+
[majorVersion: string]: ForecastMajorVersion;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class ForecastLocation {
|
|
31
|
+
[envId: string]: ForecastEnvironment;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class ForecastEndedPayload {
|
|
35
|
+
@IsDefined()
|
|
36
|
+
@ValidateNestedType(() => Object)
|
|
37
|
+
forecasts: {
|
|
38
|
+
[location: string]: ForecastLocation;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class ForecastEnded extends LudeoEvent {
|
|
43
|
+
static readonly EVENT_NAME = "forecast.forecast-ended";
|
|
44
|
+
|
|
45
|
+
constructor(payload: ForecastEndedPayload) {
|
|
46
|
+
super(ForecastEnded.EVENT_NAME);
|
|
47
|
+
this.payload = payload;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@ValidateNestedType(() => ForecastEndedPayload)
|
|
51
|
+
payload: ForecastEndedPayload;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./forecast-ended";
|
package/src/v4/events/index.ts
CHANGED
|
@@ -178,5 +178,6 @@ export * from "./ludeocast-machine-resource-error-timeout-task";
|
|
|
178
178
|
export * as SiteController from "./site-controller";
|
|
179
179
|
export * as CloudResources from "./cloud-resources";
|
|
180
180
|
export * as CloudBuilds from "./cloud-builds";
|
|
181
|
+
export * as Forecast from "./forecast";
|
|
181
182
|
export * as LudeocastAgent from "./ludeocast-agent";
|
|
182
183
|
export * as SonicServer from "./sonic-server";
|