@ludeo/cloud-common 1.2.200-beta-yahil-2 → 1.2.200-ygbeta3
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/copy-ludeocast-build-distibution-request.d.ts +15 -0
- package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js +55 -0
- package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js.map +1 -0
- package/dist/v4/events/cloud-builds/index.d.ts +1 -0
- package/dist/v4/events/cloud-builds/index.js +1 -0
- package/dist/v4/events/cloud-builds/index.js.map +1 -1
- package/dist/v4/events/site-controller/index.d.ts +15 -14
- package/dist/v4/events/site-controller/index.js +1 -0
- package/dist/v4/events/site-controller/index.js.map +1 -1
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.d.ts +16 -0
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.js +57 -0
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.js.map +1 -0
- package/dist/v4/types/site-controller/types.d.ts +5 -4
- package/dist/v4/types/site-controller/types.js +1 -0
- package/dist/v4/types/site-controller/types.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.ts +41 -0
- package/src/v4/events/cloud-builds/index.ts +2 -1
- package/src/v4/events/site-controller/index.ts +15 -15
- package/src/v4/events/site-controller/ludeocast-build-distribution-copy-ended.ts +43 -0
- package/src/v4/types/site-controller/types.ts +5 -4
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -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.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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -16,4 +16,5 @@ 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);
|
|
19
20
|
//# 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;AACjE,6EAA2D"}
|
|
@@ -1,14 +1,15 @@
|
|
|
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
|
|
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-build-distribution-copy-ended";
|
|
8
|
+
export * from "./ludeocast-resource-status-update";
|
|
9
|
+
export * from "../base/base";
|
|
10
|
+
export * from "../base/constants";
|
|
11
|
+
export * from "./init.command";
|
|
12
|
+
export * from "./terminate-game.command";
|
|
13
|
+
export * from "./start-game.command";
|
|
14
|
+
export * from "./shutdown.command";
|
|
15
|
+
export * from "./export-logs.command";
|
|
@@ -20,6 +20,7 @@ __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);
|
|
23
24
|
__exportStar(require("./ludeocast-resource-status-update"), exports);
|
|
24
25
|
__exportStar(require("../base/base"), exports);
|
|
25
26
|
__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":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,gFAA8D;AAC9D,mFAAiE;AACjE,4EAA0D;AAE1D,qEAAmD;AAGnD,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { LudeocastV2Distributions } from
|
|
2
|
-
import { MachineResourceSettings } from
|
|
3
|
-
import { LudeoCastV2MachineResourceProviderSettings } from
|
|
1
|
+
import { LudeocastV2Distributions } from "../build";
|
|
2
|
+
import { MachineResourceSettings } from "../pools";
|
|
3
|
+
import { LudeoCastV2MachineResourceProviderSettings } from "../cloud";
|
|
4
4
|
export declare enum MachineMode {
|
|
5
5
|
PROTON = "proton",
|
|
6
6
|
ANDROID = "android",
|
|
@@ -40,7 +40,8 @@ export declare enum AgentRunMode {
|
|
|
40
40
|
}
|
|
41
41
|
export declare enum SiteAdapterFlow {
|
|
42
42
|
Creation = "creation",
|
|
43
|
-
Termination = "termination"
|
|
43
|
+
Termination = "termination",
|
|
44
|
+
Copy = "copy"
|
|
44
45
|
}
|
|
45
46
|
export interface SiteAdapterStatusPayload {
|
|
46
47
|
status: SiteOperationStatus;
|
|
@@ -79,5 +79,6 @@ var SiteAdapterFlow;
|
|
|
79
79
|
(function (SiteAdapterFlow) {
|
|
80
80
|
SiteAdapterFlow["Creation"] = "creation";
|
|
81
81
|
SiteAdapterFlow["Termination"] = "termination";
|
|
82
|
+
SiteAdapterFlow["Copy"] = "copy";
|
|
82
83
|
})(SiteAdapterFlow || (exports.SiteAdapterFlow = SiteAdapterFlow = {}));
|
|
83
84
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAK1E,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AACzB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;kEACa;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iFAC6C;AAIxD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;uEACsB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;0DACK;AAGlB,MAAa,0BAA0B;CAOtC;AAPD,gEAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;6DACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kFAC6C;AAO1D,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,sEAA+C,CAAA;IAC/C,oEAA6C,CAAA;IAC7C,oDAA6B,CAAA;IAC7B,0DAAmC,CAAA;AACrC,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;IAC7B,qDAAiC,CAAA;IACjC,iDAA6B,CAAA;AAC/B,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,yCAAyB,CAAA;IACzB,6CAA6B,CAAA;AAC/B,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAK1E,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AACzB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;kEACa;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iFAC6C;AAIxD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;uEACsB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;0DACK;AAGlB,MAAa,0BAA0B;CAOtC;AAPD,gEAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;6DACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kFAC6C;AAO1D,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,sEAA+C,CAAA;IAC/C,oEAA6C,CAAA;IAC7C,oDAA6B,CAAA;IAC7B,0DAAmC,CAAA;AACrC,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;IAC7B,qDAAiC,CAAA;IACjC,iDAA6B,CAAA;AAC/B,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,yCAAyB,CAAA;IACzB,6CAA6B,CAAA;AAC/B,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;IAC3B,gCAAa,CAAA;AACf,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
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,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";
|
|
1
5
|
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from './machine-ludeocast-termination-ended';
|
|
6
|
+
export * from "./ludeocast-build-distribution-creation-ended";
|
|
7
|
+
export * from "./ludeocast-build-distribution-termination-ended";
|
|
8
|
+
export * from "./ludeocast-build-distribution-copy-ended";
|
|
6
9
|
|
|
7
|
-
export * from
|
|
8
|
-
export * from './ludeocast-build-distribution-termination-ended';
|
|
9
|
-
|
|
10
|
-
export * from './ludeocast-resource-status-update';
|
|
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";
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IsString, IsOptional, IsObject, IsArray } from
|
|
2
|
-
import { LudeocastV2Distributions } from
|
|
3
|
-
import { MachineResourceSettings } from
|
|
4
|
-
import { LudeoCastV2MachineResourceProviderSettings } from
|
|
1
|
+
import { IsString, IsOptional, IsObject, IsArray } from "class-validator";
|
|
2
|
+
import { LudeocastV2Distributions } from "../build";
|
|
3
|
+
import { MachineResourceSettings } from "../pools";
|
|
4
|
+
import { LudeoCastV2MachineResourceProviderSettings } from "../cloud";
|
|
5
5
|
|
|
6
6
|
export enum MachineMode {
|
|
7
7
|
PROTON = "proton",
|
|
@@ -66,6 +66,7 @@ export enum AgentRunMode {
|
|
|
66
66
|
export enum SiteAdapterFlow {
|
|
67
67
|
Creation = "creation",
|
|
68
68
|
Termination = "termination",
|
|
69
|
+
Copy = "copy",
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
export interface SiteAdapterStatusPayload {
|