@ludeo/cloud-common 1.2.200-ygbeta2 → 1.2.200
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/cloud-builds/index.d.ts +0 -1
- package/dist/v4/events/cloud-builds/index.js +0 -1
- package/dist/v4/events/cloud-builds/index.js.map +1 -1
- package/dist/v4/events/site-controller/index.d.ts +14 -15
- package/dist/v4/events/site-controller/index.js +0 -1
- package/dist/v4/events/site-controller/index.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/cloud-builds/index.ts +1 -2
- package/src/v4/events/site-controller/index.ts +15 -15
- package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.d.ts +0 -15
- package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js +0 -55
- package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js.map +0 -1
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.d.ts +0 -16
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.js +0 -57
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.js.map +0 -1
- package/src/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.ts +0 -41
- package/src/v4/events/site-controller/ludeocast-build-distribution-copy-ended.ts +0 -43
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-ludeocast-build-distribution-request"), exports);
|
|
18
18
|
__exportStar(require("./terminate-ludeocast-build-distribution-request"), exports);
|
|
19
|
-
__exportStar(require("./copy-ludeocast-build-distibution-request"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gFAA8D;AAC9D,mFAAiE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gFAA8D;AAC9D,mFAAiE"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from "./export-logs.command";
|
|
1
|
+
export * from './machine-ludeocast-creation-ended';
|
|
2
|
+
export * from './game-ludeocast-creation-ended';
|
|
3
|
+
export * from './game-ludeocast-termination-ended';
|
|
4
|
+
export * from './machine-ludeocast-termination-ended';
|
|
5
|
+
export * from './ludeocast-build-distribution-creation-ended';
|
|
6
|
+
export * from './ludeocast-build-distribution-termination-ended';
|
|
7
|
+
export * from './ludeocast-resource-status-update';
|
|
8
|
+
export * from '../base/base';
|
|
9
|
+
export * from '../base/constants';
|
|
10
|
+
export * from './init.command';
|
|
11
|
+
export * from './terminate-game.command';
|
|
12
|
+
export * from './start-game.command';
|
|
13
|
+
export * from './shutdown.command';
|
|
14
|
+
export * from './export-logs.command';
|
|
@@ -20,7 +20,6 @@ __exportStar(require("./game-ludeocast-termination-ended"), exports);
|
|
|
20
20
|
__exportStar(require("./machine-ludeocast-termination-ended"), exports);
|
|
21
21
|
__exportStar(require("./ludeocast-build-distribution-creation-ended"), exports);
|
|
22
22
|
__exportStar(require("./ludeocast-build-distribution-termination-ended"), exports);
|
|
23
|
-
__exportStar(require("./ludeocast-build-distribution-copy-ended"), exports);
|
|
24
23
|
__exportStar(require("./ludeocast-resource-status-update"), exports);
|
|
25
24
|
__exportStar(require("../base/base"), exports);
|
|
26
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":";;;;;;;;;;;;;;;;
|
|
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,gFAA8D;AAC9D,mFAAiE;AAEjE,qEAAmD;AAGnD,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export * from "./machine-ludeocast-creation-ended";
|
|
2
|
-
export * from "./game-ludeocast-creation-ended";
|
|
3
|
-
export * from "./game-ludeocast-termination-ended";
|
|
4
|
-
export * from "./machine-ludeocast-termination-ended";
|
|
5
1
|
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
2
|
+
export * from './machine-ludeocast-creation-ended';
|
|
3
|
+
export * from './game-ludeocast-creation-ended';
|
|
4
|
+
export * from './game-ludeocast-termination-ended';
|
|
5
|
+
export * from './machine-ludeocast-termination-ended';
|
|
9
6
|
|
|
10
|
-
export * from
|
|
7
|
+
export * from './ludeocast-build-distribution-creation-ended';
|
|
8
|
+
export * from './ludeocast-build-distribution-termination-ended';
|
|
9
|
+
|
|
10
|
+
export * from './ludeocast-resource-status-update';
|
|
11
11
|
|
|
12
12
|
//commands
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
13
|
+
export * from '../base/base';
|
|
14
|
+
export * from '../base/constants';
|
|
15
|
+
export * from './init.command';
|
|
16
|
+
export * from './terminate-game.command';
|
|
17
|
+
export * from './start-game.command';
|
|
18
|
+
export * from './shutdown.command';
|
|
19
|
+
export * from './export-logs.command';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from "../../../infra";
|
|
2
|
-
import { BuildContext } from "../../contexts";
|
|
3
|
-
import { LudeocastV2DistributionData } from "../../types/build";
|
|
4
|
-
export declare class CopyLudeocastBuildDistributionRequestPayload {
|
|
5
|
-
buildId: string;
|
|
6
|
-
sourceDistribution: LudeocastV2DistributionData;
|
|
7
|
-
site: string;
|
|
8
|
-
regions: string[];
|
|
9
|
-
}
|
|
10
|
-
export declare class CopyLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
11
|
-
static readonly EVENT_NAME = "cloud-builds.copy-ludeocast-build-distribution-request";
|
|
12
|
-
constructor(payload: CopyLudeocastBuildDistributionRequestPayload, context: BuildContext);
|
|
13
|
-
payload: CopyLudeocastBuildDistributionRequestPayload;
|
|
14
|
-
context: BuildContext;
|
|
15
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
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.CopyLudeocastBuildDistributionRequest = exports.CopyLudeocastBuildDistributionRequestPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const decorators_1 = require("../../../decorators");
|
|
15
|
-
const infra_1 = require("../../../infra");
|
|
16
|
-
const contexts_1 = require("../../contexts");
|
|
17
|
-
const build_1 = require("../../types/build");
|
|
18
|
-
class CopyLudeocastBuildDistributionRequestPayload {
|
|
19
|
-
}
|
|
20
|
-
exports.CopyLudeocastBuildDistributionRequestPayload = CopyLudeocastBuildDistributionRequestPayload;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], CopyLudeocastBuildDistributionRequestPayload.prototype, "buildId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, decorators_1.ValidateNestedType)(() => build_1.LudeocastV2DistributionData),
|
|
27
|
-
__metadata("design:type", build_1.LudeocastV2DistributionData)
|
|
28
|
-
], CopyLudeocastBuildDistributionRequestPayload.prototype, "sourceDistribution", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], CopyLudeocastBuildDistributionRequestPayload.prototype, "site", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsArray)(),
|
|
35
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
36
|
-
__metadata("design:type", Array)
|
|
37
|
-
], CopyLudeocastBuildDistributionRequestPayload.prototype, "regions", void 0);
|
|
38
|
-
class CopyLudeocastBuildDistributionRequest extends infra_1.LudeoEvent {
|
|
39
|
-
constructor(payload, context) {
|
|
40
|
-
super(CopyLudeocastBuildDistributionRequest.EVENT_NAME);
|
|
41
|
-
this.payload = payload;
|
|
42
|
-
this.context = context;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.CopyLudeocastBuildDistributionRequest = CopyLudeocastBuildDistributionRequest;
|
|
46
|
-
CopyLudeocastBuildDistributionRequest.EVENT_NAME = "cloud-builds.copy-ludeocast-build-distribution-request";
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, decorators_1.ValidateNestedType)(() => CopyLudeocastBuildDistributionRequestPayload),
|
|
49
|
-
__metadata("design:type", CopyLudeocastBuildDistributionRequestPayload)
|
|
50
|
-
], CopyLudeocastBuildDistributionRequest.prototype, "payload", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.BuildContext),
|
|
53
|
-
__metadata("design:type", contexts_1.BuildContext)
|
|
54
|
-
], CopyLudeocastBuildDistributionRequest.prototype, "context", void 0);
|
|
55
|
-
//# sourceMappingURL=copy-ludeocast-build-distibution-request.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copy-ludeocast-build-distibution-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AAEpD,oDAAyD;AACzD,0CAA4C;AAC5C,6CAA8C;AAC9C,6CAAgE;AAEhE,MAAa,4CAA4C;CAaxD;AAbD,oGAaC;AAXC;IADC,IAAA,0BAAQ,GAAE;;6EACK;AAGhB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BAClC,mCAA2B;wFAAC;AAGhD;IADC,IAAA,0BAAQ,GAAE;;0EACE;AAIb;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6EACP;AAGpB,MAAa,qCAAsC,SAAQ,kBAAU;IAInE,YACE,OAAqD,EACrD,OAAqB;QAErB,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,wDAAwD,CAAC;AAY3D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,4CAA4C,CAAC;8BAC9D,4CAA4C;sEAAC;AAGtD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAY,CAAC;8BAC9B,uBAAY;sEAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LudeoEvent } from "../../../infra";
|
|
2
|
-
import { BuildContext } from "../../contexts";
|
|
3
|
-
import { SiteOperationStatus } from "../../types";
|
|
4
|
-
import { LudeocastV2Distributions } from "../../types/build";
|
|
5
|
-
export declare class LudeocastBuildDistributionCopyEndedPayload {
|
|
6
|
-
buildId: string;
|
|
7
|
-
status: SiteOperationStatus;
|
|
8
|
-
reason?: string;
|
|
9
|
-
distributions?: LudeocastV2Distributions;
|
|
10
|
-
}
|
|
11
|
-
export declare class LudeocastBuildDistributionCopyEnded extends LudeoEvent {
|
|
12
|
-
static readonly EVENT_NAME = "site-controller.ludeocast-build-distribution-copy-ended";
|
|
13
|
-
constructor(payload: LudeocastBuildDistributionCopyEndedPayload, context: BuildContext);
|
|
14
|
-
payload: LudeocastBuildDistributionCopyEndedPayload;
|
|
15
|
-
context: BuildContext;
|
|
16
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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.LudeocastBuildDistributionCopyEnded = exports.LudeocastBuildDistributionCopyEndedPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const decorators_1 = require("../../../decorators");
|
|
15
|
-
const infra_1 = require("../../../infra");
|
|
16
|
-
const contexts_1 = require("../../contexts");
|
|
17
|
-
const types_1 = require("../../types");
|
|
18
|
-
const build_1 = require("../../types/build");
|
|
19
|
-
class LudeocastBuildDistributionCopyEndedPayload {
|
|
20
|
-
}
|
|
21
|
-
exports.LudeocastBuildDistributionCopyEndedPayload = LudeocastBuildDistributionCopyEndedPayload;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], LudeocastBuildDistributionCopyEndedPayload.prototype, "buildId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsEnum)(types_1.SiteOperationStatus),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], LudeocastBuildDistributionCopyEndedPayload.prototype, "status", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsString)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], LudeocastBuildDistributionCopyEndedPayload.prototype, "reason", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, decorators_1.ValidateNestedType)(() => build_1.LudeocastV2Distributions),
|
|
38
|
-
__metadata("design:type", build_1.LudeocastV2Distributions)
|
|
39
|
-
], LudeocastBuildDistributionCopyEndedPayload.prototype, "distributions", void 0);
|
|
40
|
-
class LudeocastBuildDistributionCopyEnded extends infra_1.LudeoEvent {
|
|
41
|
-
constructor(payload, context) {
|
|
42
|
-
super(LudeocastBuildDistributionCopyEnded.EVENT_NAME);
|
|
43
|
-
this.payload = payload;
|
|
44
|
-
this.context = context;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.LudeocastBuildDistributionCopyEnded = LudeocastBuildDistributionCopyEnded;
|
|
48
|
-
LudeocastBuildDistributionCopyEnded.EVENT_NAME = "site-controller.ludeocast-build-distribution-copy-ended";
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, decorators_1.ValidateNestedType)(() => LudeocastBuildDistributionCopyEndedPayload),
|
|
51
|
-
__metadata("design:type", LudeocastBuildDistributionCopyEndedPayload)
|
|
52
|
-
], LudeocastBuildDistributionCopyEnded.prototype, "payload", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.BuildContext),
|
|
55
|
-
__metadata("design:type", contexts_1.BuildContext)
|
|
56
|
-
], LudeocastBuildDistributionCopyEnded.prototype, "context", void 0);
|
|
57
|
-
//# sourceMappingURL=ludeocast-build-distribution-copy-ended.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ludeocast-build-distribution-copy-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/ludeocast-build-distribution-copy-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,oDAAyD;AACzD,0CAA4C;AAC5C,6CAA8C;AAC9C,uCAAkD;AAClD,6CAA6D;AAE7D,MAAa,0CAA0C;CActD;AAdD,gGAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;2EACK;AAGhB;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;0EACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0EACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAwB,CAAC;8BACnC,gCAAwB;iFAAC;AAG3C,MAAa,mCAAoC,SAAQ,kBAAU;IAIjE,YACE,OAAmD,EACnD,OAAqB;QAErB,KAAK,CAAC,mCAAmC,CAAC,UAAU,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,kFAkBC;AAjBiB,8CAAU,GACxB,yDAAyD,CAAC;AAY5D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,0CAA0C,CAAC;8BAC5D,0CAA0C;oEAAC;AAGpD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAY,CAAC;8BAC9B,uBAAY;oEAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { IsArray, IsString } from "class-validator";
|
|
2
|
-
|
|
3
|
-
import { ValidateNestedType } from "../../../decorators";
|
|
4
|
-
import { LudeoEvent } from "../../../infra";
|
|
5
|
-
import { BuildContext } from "../../contexts";
|
|
6
|
-
import { LudeocastV2DistributionData } from "../../types/build";
|
|
7
|
-
|
|
8
|
-
export class CopyLudeocastBuildDistributionRequestPayload {
|
|
9
|
-
@IsString()
|
|
10
|
-
buildId: string;
|
|
11
|
-
|
|
12
|
-
@ValidateNestedType(() => LudeocastV2DistributionData)
|
|
13
|
-
sourceDistribution: LudeocastV2DistributionData;
|
|
14
|
-
|
|
15
|
-
@IsString()
|
|
16
|
-
site: string;
|
|
17
|
-
|
|
18
|
-
@IsArray()
|
|
19
|
-
@IsString({ each: true })
|
|
20
|
-
regions: string[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export class CopyLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
24
|
-
static readonly EVENT_NAME =
|
|
25
|
-
"cloud-builds.copy-ludeocast-build-distribution-request";
|
|
26
|
-
|
|
27
|
-
constructor(
|
|
28
|
-
payload: CopyLudeocastBuildDistributionRequestPayload,
|
|
29
|
-
context: BuildContext
|
|
30
|
-
) {
|
|
31
|
-
super(CopyLudeocastBuildDistributionRequest.EVENT_NAME);
|
|
32
|
-
this.payload = payload;
|
|
33
|
-
this.context = context;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@ValidateNestedType(() => CopyLudeocastBuildDistributionRequestPayload)
|
|
37
|
-
payload: CopyLudeocastBuildDistributionRequestPayload;
|
|
38
|
-
|
|
39
|
-
@ValidateNestedType(() => BuildContext)
|
|
40
|
-
context: BuildContext;
|
|
41
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { IsEnum, IsOptional, IsString } from "class-validator";
|
|
2
|
-
|
|
3
|
-
import { ValidateNestedType } from "../../../decorators";
|
|
4
|
-
import { LudeoEvent } from "../../../infra";
|
|
5
|
-
import { BuildContext } from "../../contexts";
|
|
6
|
-
import { SiteOperationStatus } from "../../types";
|
|
7
|
-
import { LudeocastV2Distributions } from "../../types/build";
|
|
8
|
-
|
|
9
|
-
export class LudeocastBuildDistributionCopyEndedPayload {
|
|
10
|
-
@IsString()
|
|
11
|
-
buildId: string;
|
|
12
|
-
|
|
13
|
-
@IsEnum(SiteOperationStatus)
|
|
14
|
-
status: SiteOperationStatus;
|
|
15
|
-
|
|
16
|
-
@IsOptional()
|
|
17
|
-
@IsString()
|
|
18
|
-
reason?: string;
|
|
19
|
-
|
|
20
|
-
@IsOptional()
|
|
21
|
-
@ValidateNestedType(() => LudeocastV2Distributions)
|
|
22
|
-
distributions?: LudeocastV2Distributions;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export class LudeocastBuildDistributionCopyEnded extends LudeoEvent {
|
|
26
|
-
static readonly EVENT_NAME =
|
|
27
|
-
"site-controller.ludeocast-build-distribution-copy-ended";
|
|
28
|
-
|
|
29
|
-
constructor(
|
|
30
|
-
payload: LudeocastBuildDistributionCopyEndedPayload,
|
|
31
|
-
context: BuildContext
|
|
32
|
-
) {
|
|
33
|
-
super(LudeocastBuildDistributionCopyEnded.EVENT_NAME);
|
|
34
|
-
this.payload = payload;
|
|
35
|
-
this.context = context;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@ValidateNestedType(() => LudeocastBuildDistributionCopyEndedPayload)
|
|
39
|
-
payload: LudeocastBuildDistributionCopyEndedPayload;
|
|
40
|
-
|
|
41
|
-
@ValidateNestedType(() => BuildContext)
|
|
42
|
-
context: BuildContext;
|
|
43
|
-
}
|