@ludeo/cloud-common 1.2.188-beta-yahil-2 → 1.2.188-beta-yahil-3
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/site-controller/build-snapshot-creation-ended.d.ts +16 -0
- package/dist/v4/events/site-controller/{snapshot-ludeocast-creation-ended.js → build-snapshot-creation-ended.js} +18 -18
- package/dist/v4/events/site-controller/build-snapshot-creation-ended.js.map +1 -0
- package/dist/v4/events/site-controller/build-snapshot-termination-ended.d.ts +14 -0
- package/dist/v4/events/site-controller/{snapshot-ludeocast-termination-ended.js → build-snapshot-termination-ended.js} +17 -17
- package/dist/v4/events/site-controller/build-snapshot-termination-ended.js.map +1 -0
- package/dist/v4/events/site-controller/index.d.ts +2 -2
- package/dist/v4/events/site-controller/index.js +2 -2
- package/dist/v4/events/site-controller/index.js.map +1 -1
- package/dist/v4/types/site-controller/create-snapshot.dto.d.ts +2 -2
- package/dist/v4/types/site-controller/create-snapshot.dto.js +9 -9
- package/dist/v4/types/site-controller/create-snapshot.dto.js.map +1 -1
- package/dist/v4/types/site-controller/types.d.ts +2 -1
- package/package.json +1 -1
- package/src/v4/events/site-controller/{snapshot-ludeocast-creation-ended.ts → build-snapshot-creation-ended.ts} +10 -10
- package/src/v4/events/site-controller/build-snapshot-termination-ended.ts +34 -0
- package/src/v4/events/site-controller/index.ts +2 -2
- package/src/v4/types/site-controller/create-snapshot.dto.ts +2 -2
- package/src/v4/types/site-controller/types.ts +2 -1
- package/dist/v4/events/site-controller/snapshot-ludeocast-creation-ended.d.ts +0 -16
- package/dist/v4/events/site-controller/snapshot-ludeocast-creation-ended.js.map +0 -1
- package/dist/v4/events/site-controller/snapshot-ludeocast-termination-ended.d.ts +0 -14
- package/dist/v4/events/site-controller/snapshot-ludeocast-termination-ended.js.map +0 -1
- package/src/v4/events/site-controller/snapshot-ludeocast-termination-ended.ts +0 -34
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { BuildContext } from '../../contexts';
|
|
3
|
+
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
+
import { LudeocastV2DistributionData } from '../../types/build';
|
|
5
|
+
export declare class BuildSnapshotCreationEndedPayload {
|
|
6
|
+
buildId: string;
|
|
7
|
+
status: SiteOperationStatus;
|
|
8
|
+
reason?: string;
|
|
9
|
+
distributionData?: LudeocastV2DistributionData;
|
|
10
|
+
}
|
|
11
|
+
export declare class BuildSnapshotCreationEnded extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "site-controller.build-snapshot-creation-ended";
|
|
13
|
+
constructor(payload: BuildSnapshotCreationEndedPayload, context: BuildContext);
|
|
14
|
+
payload: BuildSnapshotCreationEndedPayload;
|
|
15
|
+
context: BuildContext;
|
|
16
|
+
}
|
|
@@ -9,49 +9,49 @@ 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.
|
|
12
|
+
exports.BuildSnapshotCreationEnded = exports.BuildSnapshotCreationEndedPayload = 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 site_controller_1 = require("../../types/site-controller");
|
|
18
18
|
const build_1 = require("../../types/build");
|
|
19
|
-
class
|
|
19
|
+
class BuildSnapshotCreationEndedPayload {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.BuildSnapshotCreationEndedPayload = BuildSnapshotCreationEndedPayload;
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsString)(),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
25
|
+
], BuildSnapshotCreationEndedPayload.prototype, "buildId", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
29
|
+
], BuildSnapshotCreationEndedPayload.prototype, "status", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, class_validator_1.IsOptional)(),
|
|
32
32
|
(0, class_validator_1.IsString)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
34
|
+
], BuildSnapshotCreationEndedPayload.prototype, "reason", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, class_validator_1.IsOptional)(),
|
|
37
37
|
(0, decorators_1.ValidateNestedType)(() => build_1.LudeocastV2DistributionData),
|
|
38
38
|
__metadata("design:type", build_1.LudeocastV2DistributionData)
|
|
39
|
-
],
|
|
40
|
-
class
|
|
39
|
+
], BuildSnapshotCreationEndedPayload.prototype, "distributionData", void 0);
|
|
40
|
+
class BuildSnapshotCreationEnded extends infra_1.LudeoEvent {
|
|
41
41
|
constructor(payload, context) {
|
|
42
|
-
super(
|
|
42
|
+
super(BuildSnapshotCreationEnded.EVENT_NAME);
|
|
43
43
|
this.payload = payload;
|
|
44
44
|
this.context = context;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
exports.
|
|
48
|
-
|
|
47
|
+
exports.BuildSnapshotCreationEnded = BuildSnapshotCreationEnded;
|
|
48
|
+
BuildSnapshotCreationEnded.EVENT_NAME = 'site-controller.build-snapshot-creation-ended';
|
|
49
49
|
__decorate([
|
|
50
|
-
(0, decorators_1.ValidateNestedType)(() =>
|
|
51
|
-
__metadata("design:type",
|
|
52
|
-
],
|
|
50
|
+
(0, decorators_1.ValidateNestedType)(() => BuildSnapshotCreationEndedPayload),
|
|
51
|
+
__metadata("design:type", BuildSnapshotCreationEndedPayload)
|
|
52
|
+
], BuildSnapshotCreationEnded.prototype, "payload", void 0);
|
|
53
53
|
__decorate([
|
|
54
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.
|
|
55
|
-
__metadata("design:type", contexts_1.
|
|
56
|
-
],
|
|
57
|
-
//# sourceMappingURL=snapshot-
|
|
54
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.BuildContext),
|
|
55
|
+
__metadata("design:type", contexts_1.BuildContext)
|
|
56
|
+
], BuildSnapshotCreationEnded.prototype, "context", void 0);
|
|
57
|
+
//# sourceMappingURL=build-snapshot-creation-ended.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-snapshot-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/build-snapshot-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAC/D,6CAA8C;AAC9C,iEAAkE;AAClE,6CAAgE;AAEhE,MAAa,iCAAiC;CAc7C;AAdD,8EAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;kEACK;AAGhB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;iEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACnC,mCAA2B;2EAAC;AAGjD,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAAqB;QAC3E,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,+CAA+C,CAAC;AAS7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAY,CAAC;8BAC9B,uBAAY;2DAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { BuildContext } from '../../contexts';
|
|
3
|
+
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
+
export declare class BuildSnapshotTerminationEndedPayload {
|
|
5
|
+
buildId: string;
|
|
6
|
+
status: SiteOperationStatus;
|
|
7
|
+
reason?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class BuildSnapshotTerminationEnded extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "site-controller.build-snapshot-termination-ended";
|
|
11
|
+
constructor(payload: BuildSnapshotTerminationEndedPayload, context: BuildContext);
|
|
12
|
+
payload: BuildSnapshotTerminationEndedPayload;
|
|
13
|
+
context: BuildContext;
|
|
14
|
+
}
|
|
@@ -9,43 +9,43 @@ 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.
|
|
12
|
+
exports.BuildSnapshotTerminationEnded = exports.BuildSnapshotTerminationEndedPayload = 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 site_controller_1 = require("../../types/site-controller");
|
|
18
|
-
class
|
|
18
|
+
class BuildSnapshotTerminationEndedPayload {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.BuildSnapshotTerminationEndedPayload = BuildSnapshotTerminationEndedPayload;
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsString)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
24
|
+
], BuildSnapshotTerminationEndedPayload.prototype, "buildId", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], BuildSnapshotTerminationEndedPayload.prototype, "status", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, class_validator_1.IsOptional)(),
|
|
31
31
|
(0, class_validator_1.IsString)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
34
|
-
class
|
|
33
|
+
], BuildSnapshotTerminationEndedPayload.prototype, "reason", void 0);
|
|
34
|
+
class BuildSnapshotTerminationEnded extends infra_1.LudeoEvent {
|
|
35
35
|
constructor(payload, context) {
|
|
36
|
-
super(
|
|
36
|
+
super(BuildSnapshotTerminationEnded.EVENT_NAME);
|
|
37
37
|
this.payload = payload;
|
|
38
38
|
this.context = context;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
exports.
|
|
42
|
-
|
|
41
|
+
exports.BuildSnapshotTerminationEnded = BuildSnapshotTerminationEnded;
|
|
42
|
+
BuildSnapshotTerminationEnded.EVENT_NAME = 'site-controller.build-snapshot-termination-ended';
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, decorators_1.ValidateNestedType)(() =>
|
|
45
|
-
__metadata("design:type",
|
|
46
|
-
],
|
|
44
|
+
(0, decorators_1.ValidateNestedType)(() => BuildSnapshotTerminationEndedPayload),
|
|
45
|
+
__metadata("design:type", BuildSnapshotTerminationEndedPayload)
|
|
46
|
+
], BuildSnapshotTerminationEnded.prototype, "payload", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.
|
|
49
|
-
__metadata("design:type", contexts_1.
|
|
50
|
-
],
|
|
51
|
-
//# sourceMappingURL=snapshot-
|
|
48
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.BuildContext),
|
|
49
|
+
__metadata("design:type", contexts_1.BuildContext)
|
|
50
|
+
], BuildSnapshotTerminationEnded.prototype, "context", void 0);
|
|
51
|
+
//# sourceMappingURL=build-snapshot-termination-ended.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-snapshot-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/build-snapshot-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAC/D,6CAA8C;AAC9C,iEAAkE;AAElE,MAAa,oCAAoC;CAUhD;AAVD,oFAUC;AARC;IADC,IAAA,0BAAQ,GAAE;;qEACK;AAGhB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGlB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAAqB;QAC9E,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAY,CAAC;8BAC9B,uBAAY;8DAAC"}
|
|
@@ -2,8 +2,8 @@ export * from './machine-ludeocast-creation-ended';
|
|
|
2
2
|
export * from './game-ludeocast-creation-ended';
|
|
3
3
|
export * from './game-ludeocast-termination-ended';
|
|
4
4
|
export * from './machine-ludeocast-termination-ended';
|
|
5
|
-
export * from './snapshot-
|
|
6
|
-
export * from './snapshot-
|
|
5
|
+
export * from './build-snapshot-creation-ended';
|
|
6
|
+
export * from './build-snapshot-termination-ended';
|
|
7
7
|
export * from './resource-status-update';
|
|
8
8
|
export * from '../base/base';
|
|
9
9
|
export * from '../base/constants';
|
|
@@ -18,8 +18,8 @@ __exportStar(require("./machine-ludeocast-creation-ended"), exports);
|
|
|
18
18
|
__exportStar(require("./game-ludeocast-creation-ended"), exports);
|
|
19
19
|
__exportStar(require("./game-ludeocast-termination-ended"), exports);
|
|
20
20
|
__exportStar(require("./machine-ludeocast-termination-ended"), exports);
|
|
21
|
-
__exportStar(require("./snapshot-
|
|
22
|
-
__exportStar(require("./snapshot-
|
|
21
|
+
__exportStar(require("./build-snapshot-creation-ended"), exports);
|
|
22
|
+
__exportStar(require("./build-snapshot-termination-ended"), exports);
|
|
23
23
|
__exportStar(require("./resource-status-update"), exports);
|
|
24
24
|
__exportStar(require("../base/base"), exports);
|
|
25
25
|
__exportStar(require("../base/constants"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,kEAAgD;AAChD,qEAAmD;AAEnD,2DAAyC;AAGzC,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class CreateBuildSnapshotRequestDto {
|
|
2
2
|
downloadURL: string;
|
|
3
3
|
buildId: string;
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class CreateBuildSnapshotResponseDto {
|
|
6
6
|
status: 'success' | 'error';
|
|
7
7
|
message?: string;
|
|
8
8
|
snapshotName?: string;
|
|
@@ -9,30 +9,30 @@ 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.
|
|
12
|
+
exports.CreateBuildSnapshotResponseDto = exports.CreateBuildSnapshotRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
class
|
|
14
|
+
class CreateBuildSnapshotRequestDto {
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.CreateBuildSnapshotRequestDto = CreateBuildSnapshotRequestDto;
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, class_validator_1.IsString)(),
|
|
19
19
|
__metadata("design:type", String)
|
|
20
|
-
],
|
|
20
|
+
], CreateBuildSnapshotRequestDto.prototype, "downloadURL", void 0);
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsString)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
25
|
-
class
|
|
24
|
+
], CreateBuildSnapshotRequestDto.prototype, "buildId", void 0);
|
|
25
|
+
class CreateBuildSnapshotResponseDto {
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
27
|
+
exports.CreateBuildSnapshotResponseDto = CreateBuildSnapshotResponseDto;
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsOptional)(),
|
|
30
30
|
(0, class_validator_1.IsString)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
32
|
+
], CreateBuildSnapshotResponseDto.prototype, "message", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, class_validator_1.IsOptional)(),
|
|
35
35
|
(0, class_validator_1.IsString)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
37
|
+
], CreateBuildSnapshotResponseDto.prototype, "snapshotName", void 0);
|
|
38
38
|
//# sourceMappingURL=create-snapshot.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-snapshot.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-snapshot.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,
|
|
1
|
+
{"version":3,"file":"create-snapshot.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-snapshot.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;kEACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;8DACK;AAGlB,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACW"}
|
|
@@ -49,6 +49,7 @@ export interface MachineSiteAdapterStatusPayload extends SiteAdapterStatusPayloa
|
|
|
49
49
|
export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
50
50
|
reason?: GameStatusReason;
|
|
51
51
|
}
|
|
52
|
-
export interface
|
|
52
|
+
export interface BuildSnapshotAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
53
|
+
buildId?: string;
|
|
53
54
|
distributionData?: LudeocastV2DistributionData;
|
|
54
55
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsEnum, IsOptional, IsString } from 'class-validator';
|
|
4
|
-
import {
|
|
4
|
+
import { BuildContext } from '../../contexts';
|
|
5
5
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
6
|
import { LudeocastV2DistributionData } from '../../types/build';
|
|
7
7
|
|
|
8
|
-
export class
|
|
8
|
+
export class BuildSnapshotCreationEndedPayload {
|
|
9
9
|
@IsString()
|
|
10
10
|
buildId: string;
|
|
11
11
|
|
|
@@ -21,19 +21,19 @@ export class SnapshotCreationEndedPayload {
|
|
|
21
21
|
distributionData?: LudeocastV2DistributionData;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export class
|
|
25
|
-
static readonly EVENT_NAME = 'site-controller.snapshot-creation-ended';
|
|
24
|
+
export class BuildSnapshotCreationEnded extends LudeoEvent {
|
|
25
|
+
static readonly EVENT_NAME = 'site-controller.build-snapshot-creation-ended';
|
|
26
26
|
|
|
27
|
-
constructor(payload:
|
|
28
|
-
super(
|
|
27
|
+
constructor(payload: BuildSnapshotCreationEndedPayload, context: BuildContext) {
|
|
28
|
+
super(BuildSnapshotCreationEnded.EVENT_NAME);
|
|
29
29
|
this.payload = payload;
|
|
30
30
|
this.context = context;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
@ValidateNestedType(() =>
|
|
34
|
-
payload:
|
|
33
|
+
@ValidateNestedType(() => BuildSnapshotCreationEndedPayload)
|
|
34
|
+
payload: BuildSnapshotCreationEndedPayload;
|
|
35
35
|
|
|
36
|
-
@ValidateNestedType(() =>
|
|
37
|
-
context:
|
|
36
|
+
@ValidateNestedType(() => BuildContext)
|
|
37
|
+
context: BuildContext;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LudeoEvent } from '../../../infra';
|
|
2
|
+
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
+
import { IsEnum, IsOptional, IsString } from 'class-validator';
|
|
4
|
+
import { BuildContext } from '../../contexts';
|
|
5
|
+
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
+
|
|
7
|
+
export class BuildSnapshotTerminationEndedPayload {
|
|
8
|
+
@IsString()
|
|
9
|
+
buildId: string;
|
|
10
|
+
|
|
11
|
+
@IsEnum(SiteOperationStatus)
|
|
12
|
+
status: SiteOperationStatus;
|
|
13
|
+
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsString()
|
|
16
|
+
reason?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class BuildSnapshotTerminationEnded extends LudeoEvent {
|
|
20
|
+
static readonly EVENT_NAME = 'site-controller.build-snapshot-termination-ended';
|
|
21
|
+
|
|
22
|
+
constructor(payload: BuildSnapshotTerminationEndedPayload, context: BuildContext) {
|
|
23
|
+
super(BuildSnapshotTerminationEnded.EVENT_NAME);
|
|
24
|
+
this.payload = payload;
|
|
25
|
+
this.context = context;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@ValidateNestedType(() => BuildSnapshotTerminationEndedPayload)
|
|
29
|
+
payload: BuildSnapshotTerminationEndedPayload;
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => BuildContext)
|
|
32
|
+
context: BuildContext;
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -4,8 +4,8 @@ export * from './game-ludeocast-creation-ended';
|
|
|
4
4
|
export * from './game-ludeocast-termination-ended';
|
|
5
5
|
export * from './machine-ludeocast-termination-ended';
|
|
6
6
|
|
|
7
|
-
export * from './snapshot-
|
|
8
|
-
export * from './snapshot-
|
|
7
|
+
export * from './build-snapshot-creation-ended';
|
|
8
|
+
export * from './build-snapshot-termination-ended';
|
|
9
9
|
|
|
10
10
|
export * from './resource-status-update';
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsOptional, IsString } from 'class-validator';
|
|
2
2
|
|
|
3
|
-
export class
|
|
3
|
+
export class CreateBuildSnapshotRequestDto {
|
|
4
4
|
@IsString()
|
|
5
5
|
downloadURL: string; // S3 URL (e.g., s3://bucket/path)
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ export class CreateSnapshotRequestDto {
|
|
|
8
8
|
buildId: string; // Build ID for snapshot naming (e.g., 'build-{buildId}')
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export class
|
|
11
|
+
export class CreateBuildSnapshotResponseDto {
|
|
12
12
|
status: 'success' | 'error';
|
|
13
13
|
|
|
14
14
|
@IsOptional()
|
|
@@ -78,6 +78,7 @@ export interface GameSiteAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
|
78
78
|
reason?: GameStatusReason;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export interface
|
|
81
|
+
export interface BuildSnapshotAdapterStatusPayload extends SiteAdapterStatusPayload {
|
|
82
|
+
buildId?: string;
|
|
82
83
|
distributionData?: LudeocastV2DistributionData;
|
|
83
84
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import { SiteControllerContext } from '../../contexts';
|
|
3
|
-
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
-
import { LudeocastV2DistributionData } from '../../types/build';
|
|
5
|
-
export declare class SnapshotCreationEndedPayload {
|
|
6
|
-
buildId: string;
|
|
7
|
-
status: SiteOperationStatus;
|
|
8
|
-
reason?: string;
|
|
9
|
-
distributionData?: LudeocastV2DistributionData;
|
|
10
|
-
}
|
|
11
|
-
export declare class SnapshotCreationEnded extends LudeoEvent {
|
|
12
|
-
static readonly EVENT_NAME = "site-controller.snapshot-creation-ended";
|
|
13
|
-
constructor(payload: SnapshotCreationEndedPayload, context: SiteControllerContext);
|
|
14
|
-
payload: SnapshotCreationEndedPayload;
|
|
15
|
-
context: SiteControllerContext;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/snapshot-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAC/D,6CAAuD;AACvD,iEAAkE;AAClE,6CAAgE;AAEhE,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;6DACK;AAGhB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;4DACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACnC,mCAA2B;sEAAC;AAGjD,MAAa,qBAAsB,SAAQ,kBAAU;IAGnD,YAAY,OAAqC,EAAE,OAA8B;QAC/E,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sDAcC;AAbiB,gCAAU,GAAG,yCAAyC,CAAC;AASvE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC;AAGtC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;sDAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import { SiteControllerContext } from '../../contexts';
|
|
3
|
-
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
-
export declare class SnapshotTerminationEndedPayload {
|
|
5
|
-
buildId: string;
|
|
6
|
-
status: SiteOperationStatus;
|
|
7
|
-
reason?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class SnapshotTerminationEnded extends LudeoEvent {
|
|
10
|
-
static readonly EVENT_NAME = "site-controller.snapshot-termination-ended";
|
|
11
|
-
constructor(payload: SnapshotTerminationEndedPayload, context: SiteControllerContext);
|
|
12
|
-
payload: SnapshotTerminationEndedPayload;
|
|
13
|
-
context: SiteControllerContext;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-ludeocast-termination-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/snapshot-ludeocast-termination-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAC/D,6CAAuD;AACvD,iEAAkE;AAElE,MAAa,+BAA+B;CAU3C;AAVD,0EAUC;AARC;IADC,IAAA,0BAAQ,GAAE;;gEACK;AAGhB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;+DACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACK;AAGlB,MAAa,wBAAyB,SAAQ,kBAAU;IAGtD,YAAY,OAAwC,EAAE,OAA8B;QAClF,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4DAcC;AAbiB,mCAAU,GAAG,4CAA4C,CAAC;AAS1E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC;AAGzC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACvC,gCAAqB;yDAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import { IsEnum, IsOptional, IsString } from 'class-validator';
|
|
4
|
-
import { SiteControllerContext } from '../../contexts';
|
|
5
|
-
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
-
|
|
7
|
-
export class SnapshotTerminationEndedPayload {
|
|
8
|
-
@IsString()
|
|
9
|
-
buildId: string;
|
|
10
|
-
|
|
11
|
-
@IsEnum(SiteOperationStatus)
|
|
12
|
-
status: SiteOperationStatus;
|
|
13
|
-
|
|
14
|
-
@IsOptional()
|
|
15
|
-
@IsString()
|
|
16
|
-
reason?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class SnapshotTerminationEnded extends LudeoEvent {
|
|
20
|
-
static readonly EVENT_NAME = 'site-controller.snapshot-termination-ended';
|
|
21
|
-
|
|
22
|
-
constructor(payload: SnapshotTerminationEndedPayload, context: SiteControllerContext) {
|
|
23
|
-
super(SnapshotTerminationEnded.EVENT_NAME);
|
|
24
|
-
this.payload = payload;
|
|
25
|
-
this.context = context;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@ValidateNestedType(() => SnapshotTerminationEndedPayload)
|
|
29
|
-
payload: SnapshotTerminationEndedPayload;
|
|
30
|
-
|
|
31
|
-
@ValidateNestedType(() => SiteControllerContext)
|
|
32
|
-
context: SiteControllerContext;
|
|
33
|
-
}
|
|
34
|
-
|