@ludeo/cloud-common 1.1.88 → 1.1.89-beta
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/v3/events/index.d.ts +1 -0
- package/dist/v3/events/index.js +1 -0
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/machine-resource-terminated-response.d.ts +12 -0
- package/dist/v3/events/machine-resource-terminated-response.js +45 -0
- package/dist/v3/events/machine-resource-terminated-response.js.map +1 -0
- package/package.json +1 -1
- package/src/v3/events/index.ts +1 -0
- package/src/v3/events/machine-resource-terminated-response.ts +33 -0
|
@@ -25,6 +25,7 @@ export * from "./machine-deallocation-failed-response";
|
|
|
25
25
|
export * from "./machine-pool-resizing-task";
|
|
26
26
|
export * from "./machine-resource-created-response";
|
|
27
27
|
export * from "./machine-resource-creation-failed-response";
|
|
28
|
+
export * from "./machine-resource-terminated-response";
|
|
28
29
|
export * from "./monitor-game-resource-task";
|
|
29
30
|
export * from "./pool-status";
|
|
30
31
|
export * from "./send-pools-to-predictor";
|
package/dist/v3/events/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __exportStar(require("./machine-deallocation-failed-response"), exports);
|
|
|
41
41
|
__exportStar(require("./machine-pool-resizing-task"), exports);
|
|
42
42
|
__exportStar(require("./machine-resource-created-response"), exports);
|
|
43
43
|
__exportStar(require("./machine-resource-creation-failed-response"), exports);
|
|
44
|
+
__exportStar(require("./machine-resource-terminated-response"), exports);
|
|
44
45
|
__exportStar(require("./monitor-game-resource-task"), exports);
|
|
45
46
|
__exportStar(require("./pool-status"), exports);
|
|
46
47
|
__exportStar(require("./send-pools-to-predictor"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,i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C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CloudResourceContext } from "../contexts";
|
|
2
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
export declare class MachineResourceTerminatedResponsePayload {
|
|
4
|
+
machineResourceId: string;
|
|
5
|
+
machinePoolId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class MachineResourceTerminatedResponse extends LudeoEvent {
|
|
8
|
+
static readonly EVENT_NAME = "cloud-pools.machine-resource-terminated-response";
|
|
9
|
+
constructor(payload: MachineResourceTerminatedResponsePayload, context: CloudResourceContext);
|
|
10
|
+
context: CloudResourceContext;
|
|
11
|
+
payload: MachineResourceTerminatedResponsePayload;
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.MachineResourceTerminatedResponse = exports.MachineResourceTerminatedResponsePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const contexts_1 = require("../contexts");
|
|
15
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
16
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
17
|
+
class MachineResourceTerminatedResponsePayload {
|
|
18
|
+
}
|
|
19
|
+
exports.MachineResourceTerminatedResponsePayload = MachineResourceTerminatedResponsePayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], MachineResourceTerminatedResponsePayload.prototype, "machineResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], MachineResourceTerminatedResponsePayload.prototype, "machinePoolId", void 0);
|
|
28
|
+
class MachineResourceTerminatedResponse extends ludeo_event_1.LudeoEvent {
|
|
29
|
+
constructor(payload, context) {
|
|
30
|
+
super(MachineResourceTerminatedResponse.EVENT_NAME);
|
|
31
|
+
this.payload = payload;
|
|
32
|
+
this.context = context;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.MachineResourceTerminatedResponse = MachineResourceTerminatedResponse;
|
|
36
|
+
MachineResourceTerminatedResponse.EVENT_NAME = "cloud-pools.machine-resource-terminated-response";
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
39
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
40
|
+
], MachineResourceTerminatedResponse.prototype, "context", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => MachineResourceTerminatedResponsePayload),
|
|
43
|
+
__metadata("design:type", MachineResourceTerminatedResponsePayload)
|
|
44
|
+
], MachineResourceTerminatedResponse.prototype, "payload", void 0);
|
|
45
|
+
//# sourceMappingURL=machine-resource-terminated-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-resource-terminated-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-resource-terminated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,0CAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,wCAAwC;CAMpD;AAND,4FAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;mFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;+EACa;AAGxB,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAiD,EACjD,OAA6B;QAE7B,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wCAAwC,CAAC;8BAC1D,wCAAwC;kEAAC"}
|
package/package.json
CHANGED
package/src/v3/events/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from "./machine-deallocation-failed-response";
|
|
|
25
25
|
export * from "./machine-pool-resizing-task";
|
|
26
26
|
export * from "./machine-resource-created-response";
|
|
27
27
|
export * from "./machine-resource-creation-failed-response";
|
|
28
|
+
export * from "./machine-resource-terminated-response";
|
|
28
29
|
export * from "./monitor-game-resource-task";
|
|
29
30
|
export * from "./pool-status";
|
|
30
31
|
export * from "./send-pools-to-predictor";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IsUUID } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { CloudResourceContext } from "../contexts";
|
|
4
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
|
+
|
|
7
|
+
export class MachineResourceTerminatedResponsePayload {
|
|
8
|
+
@IsUUID()
|
|
9
|
+
machineResourceId: string;
|
|
10
|
+
|
|
11
|
+
@IsUUID()
|
|
12
|
+
machinePoolId: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class MachineResourceTerminatedResponse extends LudeoEvent {
|
|
16
|
+
static readonly EVENT_NAME =
|
|
17
|
+
"cloud-pools.machine-resource-terminated-response";
|
|
18
|
+
|
|
19
|
+
constructor(
|
|
20
|
+
payload: MachineResourceTerminatedResponsePayload,
|
|
21
|
+
context: CloudResourceContext
|
|
22
|
+
) {
|
|
23
|
+
super(MachineResourceTerminatedResponse.EVENT_NAME);
|
|
24
|
+
this.payload = payload;
|
|
25
|
+
this.context = context;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
29
|
+
context: CloudResourceContext;
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => MachineResourceTerminatedResponsePayload)
|
|
32
|
+
payload: MachineResourceTerminatedResponsePayload;
|
|
33
|
+
}
|