@ludeo/cloud-common 1.2.143-ygbeta3 → 1.2.143-ygbeta5
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/ludeocast-resource-updated.d.ts +12 -2
- package/dist/v4/events/ludeocast-resource-updated.js +17 -1
- package/dist/v4/events/ludeocast-resource-updated.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/ludeocast-resource-updated.ts +17 -2
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
2
|
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
3
|
+
export declare enum LudeocastResourceType {
|
|
4
|
+
GAME = "Game",
|
|
5
|
+
GAME_MACHINE = "GameMachine"
|
|
6
|
+
}
|
|
7
|
+
export declare enum LudeocastResourceStatus {
|
|
8
|
+
CREATED = "Created",
|
|
9
|
+
TERMINATED = "Terminated",
|
|
10
|
+
ERROR = "Error"
|
|
11
|
+
}
|
|
3
12
|
export declare class LudeocastResourceUpdatedPayload {
|
|
4
|
-
resourceType:
|
|
5
|
-
status:
|
|
13
|
+
resourceType: LudeocastResourceType;
|
|
14
|
+
status: LudeocastResourceStatus;
|
|
6
15
|
reason?: string;
|
|
7
16
|
resourceId: string;
|
|
17
|
+
poolId?: string;
|
|
8
18
|
}
|
|
9
19
|
export declare class LudeocastResourceUpdated extends LudeoEvent {
|
|
10
20
|
static readonly EVENT_NAME = "cloud-resource-monitor.ludeocast-controller.resource-updated";
|
|
@@ -9,11 +9,22 @@ 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.LudeocastResourceUpdated = exports.LudeocastResourceUpdatedPayload = void 0;
|
|
12
|
+
exports.LudeocastResourceUpdated = exports.LudeocastResourceUpdatedPayload = exports.LudeocastResourceStatus = exports.LudeocastResourceType = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
15
|
const cloud_resource_context_1 = require("../contexts/cloud-resource-context");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
var LudeocastResourceType;
|
|
18
|
+
(function (LudeocastResourceType) {
|
|
19
|
+
LudeocastResourceType["GAME"] = "Game";
|
|
20
|
+
LudeocastResourceType["GAME_MACHINE"] = "GameMachine";
|
|
21
|
+
})(LudeocastResourceType || (exports.LudeocastResourceType = LudeocastResourceType = {}));
|
|
22
|
+
var LudeocastResourceStatus;
|
|
23
|
+
(function (LudeocastResourceStatus) {
|
|
24
|
+
LudeocastResourceStatus["CREATED"] = "Created";
|
|
25
|
+
LudeocastResourceStatus["TERMINATED"] = "Terminated";
|
|
26
|
+
LudeocastResourceStatus["ERROR"] = "Error";
|
|
27
|
+
})(LudeocastResourceStatus || (exports.LudeocastResourceStatus = LudeocastResourceStatus = {}));
|
|
17
28
|
class LudeocastResourceUpdatedPayload {
|
|
18
29
|
}
|
|
19
30
|
exports.LudeocastResourceUpdatedPayload = LudeocastResourceUpdatedPayload;
|
|
@@ -34,6 +45,11 @@ __decorate([
|
|
|
34
45
|
(0, class_validator_1.IsString)(),
|
|
35
46
|
__metadata("design:type", String)
|
|
36
47
|
], LudeocastResourceUpdatedPayload.prototype, "resourceId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], LudeocastResourceUpdatedPayload.prototype, "poolId", void 0);
|
|
37
53
|
class LudeocastResourceUpdated extends ludeo_event_1.LudeoEvent {
|
|
38
54
|
constructor(payload, context) {
|
|
39
55
|
super(LudeocastResourceUpdated.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ludeocast-resource-updated.js","sourceRoot":"","sources":["../../../src/v4/events/ludeocast-resource-updated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yDAAqD;AACrD,+EAA0E;AAC1E,oGAAqF;AAErF,MAAa,+BAA+B;
|
|
1
|
+
{"version":3,"file":"ludeocast-resource-updated.js","sourceRoot":"","sources":["../../../src/v4/events/ludeocast-resource-updated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yDAAqD;AACrD,+EAA0E;AAC1E,oGAAqF;AAErF,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,qDAA4B,CAAA;AAC9B,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,oDAAyB,CAAA;IACzB,0CAAe,CAAA;AACjB,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC;AAED,MAAa,+BAA+B;CAiB3C;AAjBD,0EAiBC;AAfC;IADC,IAAA,0BAAQ,GAAE;;qEACyB;AAGpC;IADC,IAAA,0BAAQ,GAAE;;+DACqB;AAIhC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACG;AAGhB;IADC,IAAA,0BAAQ,GAAE;;mEACQ;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACG;AAGlB,MAAa,wBAAyB,SAAQ,wBAAU;IAItD,YACE,OAAwC,EACxC,OAA6B;QAE7B,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,4DAkBC;AAjBiB,mCAAU,GACxB,8DAA8D,CAAC;AAYjE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;yDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
|
package/package.json
CHANGED
|
@@ -3,12 +3,23 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
3
3
|
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
4
4
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
5
5
|
|
|
6
|
+
export enum LudeocastResourceType {
|
|
7
|
+
GAME = "Game",
|
|
8
|
+
GAME_MACHINE = "GameMachine",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum LudeocastResourceStatus {
|
|
12
|
+
CREATED = "Created",
|
|
13
|
+
TERMINATED = "Terminated",
|
|
14
|
+
ERROR = "Error",
|
|
15
|
+
}
|
|
16
|
+
|
|
6
17
|
export class LudeocastResourceUpdatedPayload {
|
|
7
18
|
@IsString()
|
|
8
|
-
resourceType:
|
|
19
|
+
resourceType: LudeocastResourceType;
|
|
9
20
|
|
|
10
21
|
@IsString()
|
|
11
|
-
status:
|
|
22
|
+
status: LudeocastResourceStatus;
|
|
12
23
|
|
|
13
24
|
@IsString()
|
|
14
25
|
@IsOptional()
|
|
@@ -16,6 +27,10 @@ export class LudeocastResourceUpdatedPayload {
|
|
|
16
27
|
|
|
17
28
|
@IsString()
|
|
18
29
|
resourceId: string;
|
|
30
|
+
|
|
31
|
+
@IsString()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
poolId?: string;
|
|
19
34
|
}
|
|
20
35
|
|
|
21
36
|
export class LudeocastResourceUpdated extends LudeoEvent {
|