@ludeo/cloud-common 1.2.173 → 1.2.174-beta-yahil-2
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/index.d.ts +1 -0
- package/dist/v4/contexts/index.js +1 -0
- package/dist/v4/contexts/index.js.map +1 -1
- package/dist/v4/contexts/site-controller-context.d.ts +8 -0
- package/dist/v4/contexts/site-controller-context.js +47 -0
- package/dist/v4/contexts/site-controller-context.js.map +1 -0
- package/dist/v4/events/index.d.ts +1 -0
- package/dist/v4/events/index.js +2 -0
- package/dist/v4/events/index.js.map +1 -1
- package/dist/v4/events/site-controller/create-game-request.event.d.ts +16 -0
- package/dist/v4/events/site-controller/create-game-request.event.js +53 -0
- package/dist/v4/events/site-controller/create-game-request.event.js.map +1 -0
- package/dist/v4/events/site-controller/create-machine-request.event.d.ts +15 -0
- package/dist/v4/events/site-controller/create-machine-request.event.js +54 -0
- package/dist/v4/events/site-controller/create-machine-request.event.js.map +1 -0
- package/dist/v4/events/site-controller/create-snapshot-request.event.d.ts +14 -0
- package/dist/v4/events/site-controller/create-snapshot-request.event.js +53 -0
- package/dist/v4/events/site-controller/create-snapshot-request.event.js.map +1 -0
- package/dist/v4/events/site-controller/game-creation-ended.event.d.ts +14 -0
- package/dist/v4/events/site-controller/game-creation-ended.event.js +51 -0
- package/dist/v4/events/site-controller/game-creation-ended.event.js.map +1 -0
- package/dist/v4/events/site-controller/index.d.ts +11 -0
- package/dist/v4/events/site-controller/index.js +28 -0
- package/dist/v4/events/site-controller/index.js.map +1 -0
- package/dist/v4/events/site-controller/machine-creation-ended.event.d.ts +14 -0
- package/dist/v4/events/site-controller/machine-creation-ended.event.js +51 -0
- package/dist/v4/events/site-controller/machine-creation-ended.event.js.map +1 -0
- package/dist/v4/events/site-controller/resource-status-update.event.d.ts +15 -0
- package/dist/v4/events/site-controller/resource-status-update.event.js +55 -0
- package/dist/v4/events/site-controller/resource-status-update.event.js.map +1 -0
- package/dist/v4/events/site-controller/snapshot-creation-ended.event.d.ts +14 -0
- package/dist/v4/events/site-controller/snapshot-creation-ended.event.js +51 -0
- package/dist/v4/events/site-controller/snapshot-creation-ended.event.js.map +1 -0
- package/dist/v4/events/site-controller/snapshot-termination-ended.event.d.ts +14 -0
- package/dist/v4/events/site-controller/snapshot-termination-ended.event.js +51 -0
- package/dist/v4/events/site-controller/snapshot-termination-ended.event.js.map +1 -0
- package/dist/v4/events/site-controller/terminate-game-request.event.d.ts +14 -0
- package/dist/v4/events/site-controller/terminate-game-request.event.js +53 -0
- package/dist/v4/events/site-controller/terminate-game-request.event.js.map +1 -0
- package/dist/v4/events/site-controller/terminate-machine-request.event.d.ts +13 -0
- package/dist/v4/events/site-controller/terminate-machine-request.event.js +49 -0
- package/dist/v4/events/site-controller/terminate-machine-request.event.js.map +1 -0
- package/dist/v4/events/site-controller/terminate-snapshot-request.event.d.ts +13 -0
- package/dist/v4/events/site-controller/terminate-snapshot-request.event.js +49 -0
- package/dist/v4/events/site-controller/terminate-snapshot-request.event.js.map +1 -0
- package/dist/v4/types/index.d.ts +2 -0
- package/dist/v4/types/index.js +2 -0
- package/dist/v4/types/index.js.map +1 -1
- package/dist/v4/types/mqtt/index.d.ts +1 -0
- package/dist/v4/types/mqtt/index.js +18 -0
- package/dist/v4/types/mqtt/index.js.map +1 -0
- package/dist/v4/types/mqtt/types.d.ts +69 -0
- package/dist/v4/types/mqtt/types.js +184 -0
- package/dist/v4/types/mqtt/types.js.map +1 -0
- package/dist/v4/types/site-controller/index.d.ts +1 -0
- package/dist/v4/types/site-controller/index.js +18 -0
- package/dist/v4/types/site-controller/index.js.map +1 -0
- package/dist/v4/types/site-controller/types.d.ts +16 -0
- package/dist/v4/types/site-controller/types.js +14 -0
- package/dist/v4/types/site-controller/types.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/contexts/index.ts +1 -0
- package/src/v4/contexts/site-controller-context.ts +32 -0
- package/src/v4/events/index.ts +3 -0
- package/src/v4/events/site-controller/create-game-request.event.ts +39 -0
- package/src/v4/events/site-controller/create-machine-request.event.ts +36 -0
- package/src/v4/events/site-controller/create-snapshot-request.event.ts +35 -0
- package/src/v4/events/site-controller/game-creation-ended.event.ts +34 -0
- package/src/v4/events/site-controller/index.ts +26 -0
- package/src/v4/events/site-controller/machine-creation-ended.event.ts +34 -0
- package/src/v4/events/site-controller/resource-status-update.event.ts +38 -0
- package/src/v4/events/site-controller/snapshot-creation-ended.event.ts +34 -0
- package/src/v4/events/site-controller/snapshot-termination-ended.event.ts +34 -0
- package/src/v4/events/site-controller/terminate-game-request.event.ts +35 -0
- package/src/v4/events/site-controller/terminate-machine-request.event.ts +32 -0
- package/src/v4/events/site-controller/terminate-snapshot-request.event.ts +32 -0
- package/src/v4/types/build.ts +1 -1
- package/src/v4/types/index.ts +2 -0
- package/src/v4/types/mqtt/index.ts +6 -0
- package/src/v4/types/mqtt/types.ts +237 -0
- package/src/v4/types/site-controller/index.ts +2 -0
- package/src/v4/types/site-controller/types.ts +32 -0
|
@@ -19,4 +19,5 @@ __exportStar(require("./cloud-resource-context"), exports);
|
|
|
19
19
|
__exportStar(require("./cloud-session-context"), exports);
|
|
20
20
|
__exportStar(require("./getCloudContextType"), exports);
|
|
21
21
|
__exportStar(require("./build-context"), exports);
|
|
22
|
+
__exportStar(require("./site-controller-context"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC;AACtC,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC;AACtC,kDAAgC;AAChC,4DAA0C"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.SiteControllerContext = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SiteControllerContext {
|
|
15
|
+
}
|
|
16
|
+
exports.SiteControllerContext = SiteControllerContext;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], SiteControllerContext.prototype, "site", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SiteControllerContext.prototype, "region", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SiteControllerContext.prototype, "machineResourceId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SiteControllerContext.prototype, "gameResourceId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], SiteControllerContext.prototype, "buildId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], SiteControllerContext.prototype, "snapshotId", void 0);
|
|
47
|
+
//# sourceMappingURL=site-controller-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-controller-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/site-controller-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAM/D,MAAa,qBAAqB;CAwBjC;AAxBD,sDAwBC;AArBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACS"}
|
|
@@ -171,3 +171,4 @@ export * from "./pools-deleted-for-build";
|
|
|
171
171
|
export * from "./pools-deletion-for-build-failed";
|
|
172
172
|
export * from "./monitor-ludeocast-transfer-status-task";
|
|
173
173
|
export * from "./ludeocast-machine-resource-error-timeout-task";
|
|
174
|
+
export * as SiteController from "./site-controller";
|
package/dist/v4/events/index.js
CHANGED
|
@@ -14,6 +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.SiteController = void 0;
|
|
17
18
|
__exportStar(require("./allocate-game-request"), exports);
|
|
18
19
|
__exportStar(require("./allocate-game-resource-request"), exports);
|
|
19
20
|
__exportStar(require("./allocate-machine-request"), exports);
|
|
@@ -187,4 +188,5 @@ __exportStar(require("./pools-deleted-for-build"), exports);
|
|
|
187
188
|
__exportStar(require("./pools-deletion-for-build-failed"), exports);
|
|
188
189
|
__exportStar(require("./monitor-ludeocast-transfer-status-task"), exports);
|
|
189
190
|
__exportStar(require("./ludeocast-machine-resource-error-timeout-task"), exports);
|
|
191
|
+
exports.SiteController = require("./site-controller");
|
|
190
192
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { GameCreationPayload } from '../../types/site-controller';
|
|
3
|
+
import { SiteControllerContext } from '../../contexts';
|
|
4
|
+
export declare class CreateGameRequestPayload {
|
|
5
|
+
machineResourceId: string;
|
|
6
|
+
gameResourceId: string;
|
|
7
|
+
gameCreationPayload: GameCreationPayload;
|
|
8
|
+
site: string;
|
|
9
|
+
region: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class CreateGameRequestEvent extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "site-controller.create-game-request";
|
|
13
|
+
constructor(payload: CreateGameRequestPayload, context: SiteControllerContext);
|
|
14
|
+
payload: CreateGameRequestPayload;
|
|
15
|
+
context: SiteControllerContext;
|
|
16
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.CreateGameRequestEvent = exports.CreateGameRequestPayload = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const contexts_1 = require("../../contexts");
|
|
17
|
+
class CreateGameRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.CreateGameRequestPayload = CreateGameRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateGameRequestPayload.prototype, "machineResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateGameRequestPayload.prototype, "gameResourceId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateGameRequestPayload.prototype, "site", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateGameRequestPayload.prototype, "region", void 0);
|
|
36
|
+
class CreateGameRequestEvent extends infra_1.LudeoEvent {
|
|
37
|
+
constructor(payload, context) {
|
|
38
|
+
super(CreateGameRequestEvent.EVENT_NAME);
|
|
39
|
+
this.payload = payload;
|
|
40
|
+
this.context = context;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.CreateGameRequestEvent = CreateGameRequestEvent;
|
|
44
|
+
CreateGameRequestEvent.EVENT_NAME = 'site-controller.create-game-request';
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, decorators_1.ValidateNestedType)(() => CreateGameRequestPayload),
|
|
47
|
+
__metadata("design:type", CreateGameRequestPayload)
|
|
48
|
+
], CreateGameRequestEvent.prototype, "payload", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
|
|
51
|
+
__metadata("design:type", contexts_1.SiteControllerContext)
|
|
52
|
+
], CreateGameRequestEvent.prototype, "context", void 0);
|
|
53
|
+
//# sourceMappingURL=create-game-request.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-game-request.event.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/create-game-request.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAmD;AAEnD,6CAAuD;AAEvD,MAAa,wBAAwB;CAepC;AAfD,4DAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;mEACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;gEACc;AAMvB;IADC,IAAA,0BAAQ,GAAE;;sDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;wDACI;AAGjB,MAAa,sBAAuB,SAAQ,kBAAU;IAGpD,YAAY,OAAiC,EAAE,OAA8B;QAC3E,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,wDAcC;AAbiB,iCAAU,GAAG,qCAAqC,CAAC;AASnE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;uDAAC;AAGlC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;uDAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { MachineMode } from '../../types/site-controller';
|
|
3
|
+
import { SiteControllerContext } from '../../contexts';
|
|
4
|
+
export declare class CreateMachineRequestPayload {
|
|
5
|
+
machineResourceId: string;
|
|
6
|
+
mode: MachineMode;
|
|
7
|
+
site: string;
|
|
8
|
+
region: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateMachineRequestEvent extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "site-controller.create-machine-request";
|
|
12
|
+
constructor(payload: CreateMachineRequestPayload, context: SiteControllerContext);
|
|
13
|
+
payload: CreateMachineRequestPayload;
|
|
14
|
+
context: SiteControllerContext;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.CreateMachineRequestEvent = exports.CreateMachineRequestPayload = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const site_controller_1 = require("../../types/site-controller");
|
|
17
|
+
const contexts_1 = require("../../contexts");
|
|
18
|
+
class CreateMachineRequestPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.CreateMachineRequestPayload = CreateMachineRequestPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateMachineRequestPayload.prototype, "machineResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(site_controller_1.MachineMode),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateMachineRequestPayload.prototype, "mode", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateMachineRequestPayload.prototype, "site", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateMachineRequestPayload.prototype, "region", void 0);
|
|
37
|
+
class CreateMachineRequestEvent extends infra_1.LudeoEvent {
|
|
38
|
+
constructor(payload, context) {
|
|
39
|
+
super(CreateMachineRequestEvent.EVENT_NAME);
|
|
40
|
+
this.payload = payload;
|
|
41
|
+
this.context = context;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateMachineRequestEvent = CreateMachineRequestEvent;
|
|
45
|
+
CreateMachineRequestEvent.EVENT_NAME = 'site-controller.create-machine-request';
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, decorators_1.ValidateNestedType)(() => CreateMachineRequestPayload),
|
|
48
|
+
__metadata("design:type", CreateMachineRequestPayload)
|
|
49
|
+
], CreateMachineRequestEvent.prototype, "payload", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
|
|
52
|
+
__metadata("design:type", contexts_1.SiteControllerContext)
|
|
53
|
+
], CreateMachineRequestEvent.prototype, "context", void 0);
|
|
54
|
+
//# sourceMappingURL=create-machine-request.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-machine-request.event.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/create-machine-request.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA2D;AAC3D,iEAA0D;AAC1D,6CAAuD;AAEvD,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;sEACiB;AAG1B;IADC,IAAA,wBAAM,EAAC,6BAAW,CAAC;;yDACF;AAGlB;IADC,IAAA,0BAAQ,GAAE;;yDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;2DACI;AAGjB,MAAa,yBAA0B,SAAQ,kBAAU;IAGvD,YAAY,OAAoC,EAAE,OAA8B;QAC9E,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,8DAcC;AAbiB,oCAAU,GAAG,wCAAwC,CAAC;AAStE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;0DAAC;AAGrC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;0DAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { SiteControllerContext } from '../../contexts';
|
|
3
|
+
export declare class CreateSnapshotRequestPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
downloadURL: string;
|
|
6
|
+
site: string;
|
|
7
|
+
region: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class CreateSnapshotRequestEvent extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-builds.create-snapshot-request";
|
|
11
|
+
constructor(payload: CreateSnapshotRequestPayload, context: SiteControllerContext);
|
|
12
|
+
payload: CreateSnapshotRequestPayload;
|
|
13
|
+
context: SiteControllerContext;
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.CreateSnapshotRequestEvent = exports.CreateSnapshotRequestPayload = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const contexts_1 = require("../../contexts");
|
|
17
|
+
class CreateSnapshotRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.CreateSnapshotRequestPayload = CreateSnapshotRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateSnapshotRequestPayload.prototype, "buildId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateSnapshotRequestPayload.prototype, "downloadURL", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateSnapshotRequestPayload.prototype, "site", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateSnapshotRequestPayload.prototype, "region", void 0);
|
|
36
|
+
class CreateSnapshotRequestEvent extends infra_1.LudeoEvent {
|
|
37
|
+
constructor(payload, context) {
|
|
38
|
+
super(CreateSnapshotRequestEvent.EVENT_NAME);
|
|
39
|
+
this.payload = payload;
|
|
40
|
+
this.context = context;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.CreateSnapshotRequestEvent = CreateSnapshotRequestEvent;
|
|
44
|
+
CreateSnapshotRequestEvent.EVENT_NAME = 'cloud-builds.create-snapshot-request';
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, decorators_1.ValidateNestedType)(() => CreateSnapshotRequestPayload),
|
|
47
|
+
__metadata("design:type", CreateSnapshotRequestPayload)
|
|
48
|
+
], CreateSnapshotRequestEvent.prototype, "payload", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
|
|
51
|
+
__metadata("design:type", contexts_1.SiteControllerContext)
|
|
52
|
+
], CreateSnapshotRequestEvent.prototype, "context", void 0);
|
|
53
|
+
//# sourceMappingURL=create-snapshot-request.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-snapshot-request.event.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/create-snapshot-request.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA2C;AAC3C,6CAAuD;AAEvD,MAAa,4BAA4B;CAYxC;AAZD,oEAYC;AAVC;IADC,IAAA,0BAAQ,GAAE;;6DACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;iEACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0DACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;4DACI;AAGjB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAAqC,EAAE,OAA8B;QAC/E,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gEAcC;AAbiB,qCAAU,GAAG,sCAAsC,CAAC;AASpE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;2DAAC;AAGtC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;2DAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { SiteControllerContext } from '../../contexts';
|
|
3
|
+
import { OperationStatus } from '../../types/site-controller';
|
|
4
|
+
export declare class GameCreationEndedPayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
status: OperationStatus;
|
|
7
|
+
reason?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class GameCreationEndedEvent extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "site-controller.game-creation-ended";
|
|
11
|
+
constructor(payload: GameCreationEndedPayload, context: SiteControllerContext);
|
|
12
|
+
payload: GameCreationEndedPayload;
|
|
13
|
+
context: SiteControllerContext;
|
|
14
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.GameCreationEndedEvent = exports.GameCreationEndedPayload = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const contexts_1 = require("../../contexts");
|
|
17
|
+
const site_controller_1 = require("../../types/site-controller");
|
|
18
|
+
class GameCreationEndedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.GameCreationEndedPayload = GameCreationEndedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GameCreationEndedPayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(site_controller_1.OperationStatus),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GameCreationEndedPayload.prototype, "status", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], GameCreationEndedPayload.prototype, "reason", void 0);
|
|
34
|
+
class GameCreationEndedEvent extends infra_1.LudeoEvent {
|
|
35
|
+
constructor(payload, context) {
|
|
36
|
+
super(GameCreationEndedEvent.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.GameCreationEndedEvent = GameCreationEndedEvent;
|
|
42
|
+
GameCreationEndedEvent.EVENT_NAME = 'site-controller.game-creation-ended';
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, decorators_1.ValidateNestedType)(() => GameCreationEndedPayload),
|
|
45
|
+
__metadata("design:type", GameCreationEndedPayload)
|
|
46
|
+
], GameCreationEndedEvent.prototype, "payload", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
|
|
49
|
+
__metadata("design:type", contexts_1.SiteControllerContext)
|
|
50
|
+
], GameCreationEndedEvent.prototype, "context", void 0);
|
|
51
|
+
//# sourceMappingURL=game-creation-ended.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-creation-ended.event.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-creation-ended.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAuD;AACvD,iEAA8D;AAE9D,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AARC;IADC,IAAA,wBAAM,GAAE;;gEACc;AAGvB;IADC,IAAA,wBAAM,EAAC,iCAAe,CAAC;;wDACA;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACK;AAGlB,MAAa,sBAAuB,SAAQ,kBAAU;IAGpD,YAAY,OAAiC,EAAE,OAA8B;QAC3E,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,wDAcC;AAbiB,iCAAU,GAAG,qCAAqC,CAAC;AASnE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;uDAAC;AAGlC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;uDAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './create-machine-request.event';
|
|
2
|
+
export * from './terminate-machine-request.event';
|
|
3
|
+
export * from './create-game-request.event';
|
|
4
|
+
export * from './terminate-game-request.event';
|
|
5
|
+
export * from './create-snapshot-request.event';
|
|
6
|
+
export * from './terminate-snapshot-request.event';
|
|
7
|
+
export * from './machine-creation-ended.event';
|
|
8
|
+
export * from './game-creation-ended.event';
|
|
9
|
+
export * from './snapshot-creation-ended.event';
|
|
10
|
+
export * from './snapshot-termination-ended.event';
|
|
11
|
+
export * from './resource-status-update.event';
|
|
@@ -0,0 +1,28 @@
|
|
|
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("./create-machine-request.event"), exports);
|
|
18
|
+
__exportStar(require("./terminate-machine-request.event"), exports);
|
|
19
|
+
__exportStar(require("./create-game-request.event"), exports);
|
|
20
|
+
__exportStar(require("./terminate-game-request.event"), exports);
|
|
21
|
+
__exportStar(require("./create-snapshot-request.event"), exports);
|
|
22
|
+
__exportStar(require("./terminate-snapshot-request.event"), exports);
|
|
23
|
+
__exportStar(require("./machine-creation-ended.event"), exports);
|
|
24
|
+
__exportStar(require("./game-creation-ended.event"), exports);
|
|
25
|
+
__exportStar(require("./snapshot-creation-ended.event"), exports);
|
|
26
|
+
__exportStar(require("./snapshot-termination-ended.event"), exports);
|
|
27
|
+
__exportStar(require("./resource-status-update.event"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,iEAA+C;AAC/C,oEAAkD;AAClD,8DAA4C;AAC5C,iEAA+C;AAG/C,kEAAgD;AAChD,qEAAmD;AAGnD,iEAA+C;AAC/C,8DAA4C;AAG5C,kEAAgD;AAChD,qEAAmD;AAGnD,iEAA+C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { SiteControllerContext } from '../../contexts';
|
|
3
|
+
import { OperationStatus } from '../../types/site-controller';
|
|
4
|
+
export declare class MachineCreationEndedPayload {
|
|
5
|
+
machineResourceId: string;
|
|
6
|
+
status: OperationStatus;
|
|
7
|
+
reason?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class MachineCreationEndedEvent extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "site-controller.machine-creation-ended";
|
|
11
|
+
constructor(payload: MachineCreationEndedPayload, context: SiteControllerContext);
|
|
12
|
+
payload: MachineCreationEndedPayload;
|
|
13
|
+
context: SiteControllerContext;
|
|
14
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.MachineCreationEndedEvent = exports.MachineCreationEndedPayload = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const contexts_1 = require("../../contexts");
|
|
17
|
+
const site_controller_1 = require("../../types/site-controller");
|
|
18
|
+
class MachineCreationEndedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.MachineCreationEndedPayload = MachineCreationEndedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], MachineCreationEndedPayload.prototype, "machineResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(site_controller_1.OperationStatus),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], MachineCreationEndedPayload.prototype, "status", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], MachineCreationEndedPayload.prototype, "reason", void 0);
|
|
34
|
+
class MachineCreationEndedEvent extends infra_1.LudeoEvent {
|
|
35
|
+
constructor(payload, context) {
|
|
36
|
+
super(MachineCreationEndedEvent.EVENT_NAME);
|
|
37
|
+
this.payload = payload;
|
|
38
|
+
this.context = context;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.MachineCreationEndedEvent = MachineCreationEndedEvent;
|
|
42
|
+
MachineCreationEndedEvent.EVENT_NAME = 'site-controller.machine-creation-ended';
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, decorators_1.ValidateNestedType)(() => MachineCreationEndedPayload),
|
|
45
|
+
__metadata("design:type", MachineCreationEndedPayload)
|
|
46
|
+
], MachineCreationEndedEvent.prototype, "payload", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
|
|
49
|
+
__metadata("design:type", contexts_1.SiteControllerContext)
|
|
50
|
+
], MachineCreationEndedEvent.prototype, "context", void 0);
|
|
51
|
+
//# sourceMappingURL=machine-creation-ended.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-creation-ended.event.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-creation-ended.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAuD;AACvD,iEAA8D;AAE9D,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AARC;IADC,IAAA,wBAAM,GAAE;;sEACiB;AAG1B;IADC,IAAA,wBAAM,EAAC,iCAAe,CAAC;;2DACA;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACK;AAGlB,MAAa,yBAA0B,SAAQ,kBAAU;IAGvD,YAAY,OAAoC,EAAE,OAA8B;QAC9E,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,8DAcC;AAbiB,oCAAU,GAAG,wCAAwC,CAAC;AAStE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;0DAAC;AAGrC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;0DAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { SiteControllerContext } from '../../contexts';
|
|
3
|
+
import { CloudResourceStatus, CloudPoolType } from '../../types';
|
|
4
|
+
export declare class ResourceStatusUpdatePayload {
|
|
5
|
+
resourceId: string;
|
|
6
|
+
resourceType: CloudPoolType;
|
|
7
|
+
resourceStatus: CloudResourceStatus;
|
|
8
|
+
statusReason?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class ResourceStatusUpdateEvent extends LudeoEvent {
|
|
11
|
+
static readonly EVENT_NAME = "site-controller.resource-status-update";
|
|
12
|
+
constructor(payload: ResourceStatusUpdatePayload, context: SiteControllerContext);
|
|
13
|
+
payload: ResourceStatusUpdatePayload;
|
|
14
|
+
context: SiteControllerContext;
|
|
15
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.ResourceStatusUpdateEvent = exports.ResourceStatusUpdatePayload = void 0;
|
|
13
|
+
const infra_1 = require("../../../infra");
|
|
14
|
+
const decorators_1 = require("../../../decorators");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const contexts_1 = require("../../contexts");
|
|
17
|
+
const types_1 = require("../../types");
|
|
18
|
+
class ResourceStatusUpdatePayload {
|
|
19
|
+
}
|
|
20
|
+
exports.ResourceStatusUpdatePayload = ResourceStatusUpdatePayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ResourceStatusUpdatePayload.prototype, "resourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(types_1.CloudPoolType),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ResourceStatusUpdatePayload.prototype, "resourceType", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEnum)(types_1.CloudResourceStatus),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ResourceStatusUpdatePayload.prototype, "resourceStatus", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ResourceStatusUpdatePayload.prototype, "statusReason", void 0);
|
|
38
|
+
class ResourceStatusUpdateEvent extends infra_1.LudeoEvent {
|
|
39
|
+
constructor(payload, context) {
|
|
40
|
+
super(ResourceStatusUpdateEvent.EVENT_NAME);
|
|
41
|
+
this.payload = payload;
|
|
42
|
+
this.context = context;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ResourceStatusUpdateEvent = ResourceStatusUpdateEvent;
|
|
46
|
+
ResourceStatusUpdateEvent.EVENT_NAME = 'site-controller.resource-status-update';
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, decorators_1.ValidateNestedType)(() => ResourceStatusUpdatePayload),
|
|
49
|
+
__metadata("design:type", ResourceStatusUpdatePayload)
|
|
50
|
+
], ResourceStatusUpdateEvent.prototype, "payload", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.SiteControllerContext),
|
|
53
|
+
__metadata("design:type", contexts_1.SiteControllerContext)
|
|
54
|
+
], ResourceStatusUpdateEvent.prototype, "context", void 0);
|
|
55
|
+
//# sourceMappingURL=resource-status-update.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-status-update.event.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/resource-status-update.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAuD;AACvD,uCAAiE;AAEjE,MAAa,2BAA2B;CAavC;AAbD,kEAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;+DACU;AAGnB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;iEACM;AAG5B;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;mEACQ;AAIpC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACW;AAIxB,MAAa,yBAA0B,SAAQ,kBAAU;IAGvD,YAAY,OAAoC,EAAE,OAA8B;QAC9E,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,8DAcC;AAbiB,oCAAU,GAAG,wCAAwC,CAAC;AAStE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;0DAAC;AAGrC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;0DAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { SiteControllerContext } from '../../contexts';
|
|
3
|
+
import { OperationStatus } from '../../types/site-controller';
|
|
4
|
+
export declare class SnapshotCreationEndedPayload {
|
|
5
|
+
buildId: string;
|
|
6
|
+
status: OperationStatus;
|
|
7
|
+
reason?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class SnapshotCreationEndedEvent extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "site-controller.snapshot-creation-ended";
|
|
11
|
+
constructor(payload: SnapshotCreationEndedPayload, context: SiteControllerContext);
|
|
12
|
+
payload: SnapshotCreationEndedPayload;
|
|
13
|
+
context: SiteControllerContext;
|
|
14
|
+
}
|