@ludeo/cloud-common 1.2.198 → 1.2.199-ygbeta0
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 +13 -0
- package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js +49 -0
- package/dist/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.js.map +1 -0
- package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.d.ts +3 -3
- package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.js +1 -2
- package/dist/v4/events/cloud-builds/create-ludeocast-build-distribution-request.js.map +1 -1
- package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.d.ts +4 -4
- package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.js +1 -2
- package/dist/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.d.ts +5 -4
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +5 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.d.ts +4 -3
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +5 -1
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.d.ts +4 -3
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js +5 -1
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.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 +61 -0
- package/dist/v4/events/site-controller/ludeocast-build-distribution-copy-ended.js.map +1 -0
- package/package.json +1 -1
- package/src/v4/events/cloud-builds/copy-ludeocast-build-distibution-request.ts +36 -0
- package/src/v4/events/cloud-builds/create-ludeocast-build-distribution-request.ts +11 -9
- package/src/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.ts +13 -11
- package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +14 -9
- package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +14 -8
- package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +14 -8
- package/src/v4/events/site-controller/ludeocast-build-distribution-copy-ended.ts +46 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { BuildContext } from "../../contexts";
|
|
3
|
+
export declare class CopyLudeocastBuildDistributionRequestPayload {
|
|
4
|
+
buildId: string;
|
|
5
|
+
site: string;
|
|
6
|
+
destination: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class CopyLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
9
|
+
static readonly EVENT_NAME = "cloud-builds.copy-ludeocast-build-distribution-request";
|
|
10
|
+
constructor(payload: CopyLudeocastBuildDistributionRequestPayload, context: BuildContext);
|
|
11
|
+
payload: CopyLudeocastBuildDistributionRequestPayload;
|
|
12
|
+
context: BuildContext;
|
|
13
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
class CopyLudeocastBuildDistributionRequestPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.CopyLudeocastBuildDistributionRequestPayload = CopyLudeocastBuildDistributionRequestPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CopyLudeocastBuildDistributionRequestPayload.prototype, "buildId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CopyLudeocastBuildDistributionRequestPayload.prototype, "site", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CopyLudeocastBuildDistributionRequestPayload.prototype, "destination", void 0);
|
|
32
|
+
class CopyLudeocastBuildDistributionRequest extends infra_1.LudeoEvent {
|
|
33
|
+
constructor(payload, context) {
|
|
34
|
+
super(CopyLudeocastBuildDistributionRequest.EVENT_NAME);
|
|
35
|
+
this.payload = payload;
|
|
36
|
+
this.context = context;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.CopyLudeocastBuildDistributionRequest = CopyLudeocastBuildDistributionRequest;
|
|
40
|
+
CopyLudeocastBuildDistributionRequest.EVENT_NAME = "cloud-builds.copy-ludeocast-build-distribution-request";
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, decorators_1.ValidateNestedType)(() => CopyLudeocastBuildDistributionRequestPayload),
|
|
43
|
+
__metadata("design:type", CopyLudeocastBuildDistributionRequestPayload)
|
|
44
|
+
], CopyLudeocastBuildDistributionRequest.prototype, "payload", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.BuildContext),
|
|
47
|
+
__metadata("design:type", contexts_1.BuildContext)
|
|
48
|
+
], CopyLudeocastBuildDistributionRequest.prototype, "context", void 0);
|
|
49
|
+
//# 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,qDAA2C;AAE3C,oDAAyD;AACzD,0CAA4C;AAC5C,6CAA8C;AAE9C,MAAa,4CAA4C;CASxD;AATD,oGASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;6EACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;0EACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;iFACS;AAGtB,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,10 +1,10 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { BuildContext } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { BuildContext } from "../../contexts";
|
|
3
3
|
export declare class CreateLudeocastBuildDistributionRequestPayload {
|
|
4
4
|
buildId: string;
|
|
5
5
|
downloadURL: string;
|
|
6
6
|
sizeGB: number;
|
|
7
|
-
site
|
|
7
|
+
site: string;
|
|
8
8
|
regions: string[];
|
|
9
9
|
}
|
|
10
10
|
export declare class CreateLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
@@ -30,7 +30,6 @@ __decorate([
|
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
31
|
], CreateLudeocastBuildDistributionRequestPayload.prototype, "sizeGB", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, class_validator_1.IsOptional)(),
|
|
34
33
|
(0, class_validator_1.IsString)(),
|
|
35
34
|
__metadata("design:type", String)
|
|
36
35
|
], CreateLudeocastBuildDistributionRequestPayload.prototype, "site", void 0);
|
|
@@ -47,7 +46,7 @@ class CreateLudeocastBuildDistributionRequest extends infra_1.LudeoEvent {
|
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
exports.CreateLudeocastBuildDistributionRequest = CreateLudeocastBuildDistributionRequest;
|
|
50
|
-
CreateLudeocastBuildDistributionRequest.EVENT_NAME =
|
|
49
|
+
CreateLudeocastBuildDistributionRequest.EVENT_NAME = "cloud-builds.create-ludeocast-build-distribution-request";
|
|
51
50
|
__decorate([
|
|
52
51
|
(0, decorators_1.ValidateNestedType)(() => CreateLudeocastBuildDistributionRequestPayload),
|
|
53
52
|
__metadata("design:type", CreateLudeocastBuildDistributionRequestPayload)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-ludeocast-build-distribution-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/create-ludeocast-build-distribution-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"create-ludeocast-build-distribution-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/create-ludeocast-build-distribution-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA8D;AAC9D,6CAA8C;AAE9C,MAAa,8CAA8C;CAgB1D;AAhBD,wGAgBC;AAdC;IADC,IAAA,0BAAQ,GAAE;;+EACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;mFACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;8EACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;4EACE;AAIb;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+EACP;AAGpB,MAAa,uCAAwC,SAAQ,kBAAU;IAIrE,YACE,OAAuD,EACvD,OAAqB;QAErB,KAAK,CAAC,uCAAuC,CAAC,UAAU,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,0FAkBC;AAjBiB,kDAAU,GACxB,0DAA0D,CAAC;AAY7D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8CAA8C,CAAC;8BAChE,8CAA8C;wEAAC;AAGxD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAY,CAAC;8BAC9B,uBAAY;wEAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { BuildContext } from
|
|
3
|
-
import { LudeocastV2Distributions } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { BuildContext } from "../../contexts";
|
|
3
|
+
import { LudeocastV2Distributions } from "../../types/build";
|
|
4
4
|
export declare class TerminateLudeocastBuildDistributionRequestPayload {
|
|
5
5
|
buildId: string;
|
|
6
|
-
site
|
|
6
|
+
site: string;
|
|
7
7
|
region?: string;
|
|
8
8
|
distributions?: LudeocastV2Distributions;
|
|
9
9
|
envIds?: string[];
|
|
@@ -23,7 +23,6 @@ __decorate([
|
|
|
23
23
|
__metadata("design:type", String)
|
|
24
24
|
], TerminateLudeocastBuildDistributionRequestPayload.prototype, "buildId", void 0);
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, class_validator_1.IsOptional)(),
|
|
27
26
|
(0, class_validator_1.IsString)(),
|
|
28
27
|
__metadata("design:type", String)
|
|
29
28
|
], TerminateLudeocastBuildDistributionRequestPayload.prototype, "site", void 0);
|
|
@@ -51,7 +50,7 @@ class TerminateLudeocastBuildDistributionRequest extends infra_1.LudeoEvent {
|
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
exports.TerminateLudeocastBuildDistributionRequest = TerminateLudeocastBuildDistributionRequest;
|
|
54
|
-
TerminateLudeocastBuildDistributionRequest.EVENT_NAME =
|
|
53
|
+
TerminateLudeocastBuildDistributionRequest.EVENT_NAME = "cloud-builds.terminate-ludeocast-build-distribution-request";
|
|
55
54
|
__decorate([
|
|
56
55
|
(0, decorators_1.ValidateNestedType)(() => TerminateLudeocastBuildDistributionRequestPayload),
|
|
57
56
|
__metadata("design:type", TerminateLudeocastBuildDistributionRequestPayload)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-ludeocast-build-distribution-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAgE;AAChE,6CAA8C;AAC9C,6CAA6D;AAE7D,MAAa,iDAAiD;
|
|
1
|
+
{"version":3,"file":"terminate-ludeocast-build-distribution-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-builds/terminate-ludeocast-build-distribution-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAgE;AAChE,6CAA8C;AAC9C,6CAA6D;AAE7D,MAAa,iDAAiD;CAmB7D;AAnBD,8GAmBC;AAjBC;IADC,IAAA,0BAAQ,GAAE;;kFACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;+EACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iFACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gCAAwB,CAAC;8BACnC,gCAAwB;wFAAC;AAKzC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iFACP;AAGpB,MAAa,0CAA2C,SAAQ,kBAAU;IAIxE,YACE,OAA0D,EAC1D,OAAqB;QAErB,KAAK,CAAC,0CAA0C,CAAC,UAAU,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,gGAkBC;AAjBiB,qDAAU,GACxB,6DAA6D,CAAC;AAYhE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iDAAiD,CAAC;8BACnE,iDAAiD;2EAAC;AAG3D;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uBAAY,CAAC;8BAC9B,uBAAY;2EAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { GameCreationPayload } from
|
|
3
|
-
import { CloudResourceContext } from
|
|
4
|
-
import { LudeoCastV2ProviderSettings } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { GameCreationPayload } from "../../types/site-controller";
|
|
3
|
+
import { CloudResourceContext } from "../../contexts";
|
|
4
|
+
import { LudeoCastV2ProviderSettings } from "../../types/cloud/ludeocast-v2/provider-settings";
|
|
5
5
|
export declare class CreateLudeocastGameRequestPayload {
|
|
6
6
|
machineResourceId: string;
|
|
7
7
|
gameResourceId: string;
|
|
@@ -9,6 +9,7 @@ export declare class CreateLudeocastGameRequestPayload {
|
|
|
9
9
|
gameCreationPayload?: GameCreationPayload;
|
|
10
10
|
providerSettings: LudeoCastV2ProviderSettings;
|
|
11
11
|
buildId: string;
|
|
12
|
+
site: string;
|
|
12
13
|
}
|
|
13
14
|
export declare class CreateLudeocastGameRequest extends LudeoEvent {
|
|
14
15
|
static readonly EVENT_NAME = "cloud-resources.create-ludeocast-game-request";
|
|
@@ -37,6 +37,10 @@ __decorate([
|
|
|
37
37
|
(0, class_validator_1.IsUUID)(),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], CreateLudeocastGameRequestPayload.prototype, "buildId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateLudeocastGameRequestPayload.prototype, "site", void 0);
|
|
40
44
|
class CreateLudeocastGameRequest extends infra_1.LudeoEvent {
|
|
41
45
|
constructor(payload, context) {
|
|
42
46
|
super(CreateLudeocastGameRequest.EVENT_NAME);
|
|
@@ -45,7 +49,7 @@ class CreateLudeocastGameRequest extends infra_1.LudeoEvent {
|
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
51
|
exports.CreateLudeocastGameRequest = CreateLudeocastGameRequest;
|
|
48
|
-
CreateLudeocastGameRequest.EVENT_NAME =
|
|
52
|
+
CreateLudeocastGameRequest.EVENT_NAME = "cloud-resources.create-ludeocast-game-request";
|
|
49
53
|
__decorate([
|
|
50
54
|
(0, decorators_1.ValidateNestedType)(() => CreateLudeocastGameRequestPayload),
|
|
51
55
|
__metadata("design:type", CreateLudeocastGameRequestPayload)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"create-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAE/D,6CAAsD;AAGtD,MAAa,iCAAiC;CAoB7C;AApBD,8EAoBC;AAlBC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;qEACU;AAGnB;IADC,IAAA,4BAAU,GAAE;;8EAC6B;AAK1C;IADC,IAAA,wBAAM,GAAE;;kEACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;+DACE;AAGf,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA6B;QAE7B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { CloudResourceContext } from
|
|
3
|
-
import { LudeoCastV2ProviderSettings } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { CloudResourceContext } from "../../contexts";
|
|
3
|
+
import { LudeoCastV2ProviderSettings } from "../../types";
|
|
4
4
|
export declare class AndroidMachineCreationPayload {
|
|
5
5
|
}
|
|
6
6
|
export type MachineCreationPayload = AndroidMachineCreationPayload;
|
|
@@ -9,6 +9,7 @@ export declare class CreateLudeocastMachineRequestPayload {
|
|
|
9
9
|
machinePoolId: string;
|
|
10
10
|
machineCreationPayload?: MachineCreationPayload;
|
|
11
11
|
providerSettings: LudeoCastV2ProviderSettings;
|
|
12
|
+
site: string;
|
|
12
13
|
}
|
|
13
14
|
export declare class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
14
15
|
static readonly EVENT_NAME = "cloud-resources.create-ludeocast-machine-request";
|
|
@@ -33,6 +33,10 @@ __decorate([
|
|
|
33
33
|
(0, decorators_1.ValidateNestedType)(() => AndroidMachineCreationPayload),
|
|
34
34
|
__metadata("design:type", Object)
|
|
35
35
|
], CreateLudeocastMachineRequestPayload.prototype, "machineCreationPayload", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateLudeocastMachineRequestPayload.prototype, "site", void 0);
|
|
36
40
|
class CreateLudeocastMachineRequest extends infra_1.LudeoEvent {
|
|
37
41
|
constructor(payload, context) {
|
|
38
42
|
super(CreateLudeocastMachineRequest.EVENT_NAME);
|
|
@@ -41,7 +45,7 @@ class CreateLudeocastMachineRequest extends infra_1.LudeoEvent {
|
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
exports.CreateLudeocastMachineRequest = CreateLudeocastMachineRequest;
|
|
44
|
-
CreateLudeocastMachineRequest.EVENT_NAME =
|
|
48
|
+
CreateLudeocastMachineRequest.EVENT_NAME = "cloud-resources.create-ludeocast-machine-request";
|
|
45
49
|
__decorate([
|
|
46
50
|
(0, decorators_1.ValidateNestedType)(() => CreateLudeocastMachineRequestPayload),
|
|
47
51
|
__metadata("design:type", CreateLudeocastMachineRequestPayload)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"create-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/create-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAA+D;AAC/D,6CAAsD;AAGtD,MAAa,6BAA6B;CAAG;AAA7C,sEAA6C;AAI7C,MAAa,oCAAoC;CAehD;AAfD,oFAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACa;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;;oFACR;AAKhD;IADC,IAAA,0BAAQ,GAAE;;kEACE;AAGf,MAAa,6BAA8B,SAAQ,kBAAU;IAI3D,YACE,OAA6C,EAC7C,OAA6B;QAE7B,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sEAkBC;AAjBiB,wCAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { CloudResourceContext } from
|
|
3
|
-
import { LudeoCastV2ProviderSettings } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { CloudResourceContext } from "../../contexts";
|
|
3
|
+
import { LudeoCastV2ProviderSettings } from "../../types";
|
|
4
4
|
export declare class TerminateLudeocastMachineRequestPayload {
|
|
5
5
|
machineResourceId: string;
|
|
6
6
|
providerSettings: LudeoCastV2ProviderSettings;
|
|
7
|
+
site: string;
|
|
7
8
|
}
|
|
8
9
|
export declare class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
9
10
|
static readonly EVENT_NAME = "cloud-resources.terminate-ludeocast-machine-request";
|
|
@@ -26,6 +26,10 @@ __decorate([
|
|
|
26
26
|
(0, decorators_1.ValidateNestedType)(() => types_1.LudeoCastV2ProviderSettings),
|
|
27
27
|
__metadata("design:type", types_1.LudeoCastV2ProviderSettings)
|
|
28
28
|
], TerminateLudeocastMachineRequestPayload.prototype, "providerSettings", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TerminateLudeocastMachineRequestPayload.prototype, "site", void 0);
|
|
29
33
|
class TerminateLudeocastMachineRequest extends infra_1.LudeoEvent {
|
|
30
34
|
constructor(payload, context) {
|
|
31
35
|
super(TerminateLudeocastMachineRequest.EVENT_NAME);
|
|
@@ -34,7 +38,7 @@ class TerminateLudeocastMachineRequest extends infra_1.LudeoEvent {
|
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
40
|
exports.TerminateLudeocastMachineRequest = TerminateLudeocastMachineRequest;
|
|
37
|
-
TerminateLudeocastMachineRequest.EVENT_NAME =
|
|
41
|
+
TerminateLudeocastMachineRequest.EVENT_NAME = "cloud-resources.terminate-ludeocast-machine-request";
|
|
38
42
|
__decorate([
|
|
39
43
|
(0, decorators_1.ValidateNestedType)(() => TerminateLudeocastMachineRequestPayload),
|
|
40
44
|
__metadata("design:type", TerminateLudeocastMachineRequestPayload)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"terminate-ludeocast-machine-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAmD;AACnD,6CAAsD;AACtD,uCAA0D;AAE1D,MAAa,uCAAuC;CASnD;AATD,0FASC;AAPC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;iFAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;qEACE;AAGf,MAAa,gCAAiC,SAAQ,kBAAU;IAI9D,YACE,OAAgD,EAChD,OAA6B;QAE7B,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,4EAkBC;AAjBiB,2CAAU,GACxB,qDAAqD,CAAC;AAYxD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;iEAAC;AAGjD;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;iEAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { BuildContext } from "../../contexts";
|
|
3
|
+
import { SiteOperationStatus } from "../../types";
|
|
4
|
+
export declare class LudeocastBuildDistributionCopyEndedPayload {
|
|
5
|
+
buildId: string;
|
|
6
|
+
status: SiteOperationStatus;
|
|
7
|
+
reason?: string;
|
|
8
|
+
imageName?: string;
|
|
9
|
+
region?: string;
|
|
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,61 @@
|
|
|
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
|
+
class LudeocastBuildDistributionCopyEndedPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.LudeocastBuildDistributionCopyEndedPayload = LudeocastBuildDistributionCopyEndedPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], LudeocastBuildDistributionCopyEndedPayload.prototype, "buildId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(types_1.SiteOperationStatus),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], LudeocastBuildDistributionCopyEndedPayload.prototype, "status", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], LudeocastBuildDistributionCopyEndedPayload.prototype, "reason", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], LudeocastBuildDistributionCopyEndedPayload.prototype, "imageName", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], LudeocastBuildDistributionCopyEndedPayload.prototype, "region", void 0);
|
|
44
|
+
class LudeocastBuildDistributionCopyEnded extends infra_1.LudeoEvent {
|
|
45
|
+
constructor(payload, context) {
|
|
46
|
+
super(LudeocastBuildDistributionCopyEnded.EVENT_NAME);
|
|
47
|
+
this.payload = payload;
|
|
48
|
+
this.context = context;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.LudeocastBuildDistributionCopyEnded = LudeocastBuildDistributionCopyEnded;
|
|
52
|
+
LudeocastBuildDistributionCopyEnded.EVENT_NAME = "site-controller.ludeocast-build-distribution-copy-ended";
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, decorators_1.ValidateNestedType)(() => LudeocastBuildDistributionCopyEndedPayload),
|
|
55
|
+
__metadata("design:type", LudeocastBuildDistributionCopyEndedPayload)
|
|
56
|
+
], LudeocastBuildDistributionCopyEnded.prototype, "payload", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.BuildContext),
|
|
59
|
+
__metadata("design:type", contexts_1.BuildContext)
|
|
60
|
+
], LudeocastBuildDistributionCopyEnded.prototype, "context", void 0);
|
|
61
|
+
//# 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;AAElD,MAAa,0CAA0C;CAkBtD;AAlBD,gGAkBC;AAhBC;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,0BAAQ,GAAE;;6EACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0EACK;AAGlB,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"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
4
|
+
import { LudeoEvent } from "../../../infra";
|
|
5
|
+
import { BuildContext } from "../../contexts";
|
|
6
|
+
|
|
7
|
+
export class CopyLudeocastBuildDistributionRequestPayload {
|
|
8
|
+
@IsString()
|
|
9
|
+
buildId: string;
|
|
10
|
+
|
|
11
|
+
@IsString()
|
|
12
|
+
site: string;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
destination: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class CopyLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
19
|
+
static readonly EVENT_NAME =
|
|
20
|
+
"cloud-builds.copy-ludeocast-build-distribution-request";
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
payload: CopyLudeocastBuildDistributionRequestPayload,
|
|
24
|
+
context: BuildContext
|
|
25
|
+
) {
|
|
26
|
+
super(CopyLudeocastBuildDistributionRequest.EVENT_NAME);
|
|
27
|
+
this.payload = payload;
|
|
28
|
+
this.context = context;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@ValidateNestedType(() => CopyLudeocastBuildDistributionRequestPayload)
|
|
32
|
+
payload: CopyLudeocastBuildDistributionRequestPayload;
|
|
33
|
+
|
|
34
|
+
@ValidateNestedType(() => BuildContext)
|
|
35
|
+
context: BuildContext;
|
|
36
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { ValidateNestedType } from
|
|
3
|
-
import { IsString,
|
|
4
|
-
import { BuildContext } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
+
import { IsString, IsNumber, IsArray } from "class-validator";
|
|
4
|
+
import { BuildContext } from "../../contexts";
|
|
5
5
|
|
|
6
6
|
export class CreateLudeocastBuildDistributionRequestPayload {
|
|
7
7
|
@IsString()
|
|
@@ -13,9 +13,8 @@ export class CreateLudeocastBuildDistributionRequestPayload {
|
|
|
13
13
|
@IsNumber()
|
|
14
14
|
sizeGB: number;
|
|
15
15
|
|
|
16
|
-
@IsOptional()
|
|
17
16
|
@IsString()
|
|
18
|
-
site
|
|
17
|
+
site: string;
|
|
19
18
|
|
|
20
19
|
@IsArray()
|
|
21
20
|
@IsString({ each: true })
|
|
@@ -23,9 +22,13 @@ export class CreateLudeocastBuildDistributionRequestPayload {
|
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
export class CreateLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
26
|
-
static readonly EVENT_NAME =
|
|
25
|
+
static readonly EVENT_NAME =
|
|
26
|
+
"cloud-builds.create-ludeocast-build-distribution-request";
|
|
27
27
|
|
|
28
|
-
constructor(
|
|
28
|
+
constructor(
|
|
29
|
+
payload: CreateLudeocastBuildDistributionRequestPayload,
|
|
30
|
+
context: BuildContext
|
|
31
|
+
) {
|
|
29
32
|
super(CreateLudeocastBuildDistributionRequest.EVENT_NAME);
|
|
30
33
|
this.payload = payload;
|
|
31
34
|
this.context = context;
|
|
@@ -37,4 +40,3 @@ export class CreateLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
|
37
40
|
@ValidateNestedType(() => BuildContext)
|
|
38
41
|
context: BuildContext;
|
|
39
42
|
}
|
|
40
|
-
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { ValidateNestedType } from
|
|
3
|
-
import { IsArray, IsOptional, IsString } from
|
|
4
|
-
import { BuildContext } from
|
|
5
|
-
import { LudeocastV2Distributions } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
+
import { IsArray, IsOptional, IsString } from "class-validator";
|
|
4
|
+
import { BuildContext } from "../../contexts";
|
|
5
|
+
import { LudeocastV2Distributions } from "../../types/build";
|
|
6
6
|
|
|
7
7
|
export class TerminateLudeocastBuildDistributionRequestPayload {
|
|
8
8
|
@IsString()
|
|
9
9
|
buildId: string;
|
|
10
10
|
|
|
11
|
-
@IsOptional()
|
|
12
11
|
@IsString()
|
|
13
|
-
site
|
|
12
|
+
site: string;
|
|
14
13
|
|
|
15
14
|
@IsOptional()
|
|
16
15
|
@IsString()
|
|
@@ -18,7 +17,7 @@ export class TerminateLudeocastBuildDistributionRequestPayload {
|
|
|
18
17
|
|
|
19
18
|
@IsOptional()
|
|
20
19
|
@ValidateNestedType(() => LudeocastV2Distributions)
|
|
21
|
-
distributions?: LudeocastV2Distributions;
|
|
20
|
+
distributions?: LudeocastV2Distributions;
|
|
22
21
|
|
|
23
22
|
@IsOptional()
|
|
24
23
|
@IsArray()
|
|
@@ -27,9 +26,13 @@ export class TerminateLudeocastBuildDistributionRequestPayload {
|
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
export class TerminateLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
30
|
-
static readonly EVENT_NAME =
|
|
29
|
+
static readonly EVENT_NAME =
|
|
30
|
+
"cloud-builds.terminate-ludeocast-build-distribution-request";
|
|
31
31
|
|
|
32
|
-
constructor(
|
|
32
|
+
constructor(
|
|
33
|
+
payload: TerminateLudeocastBuildDistributionRequestPayload,
|
|
34
|
+
context: BuildContext
|
|
35
|
+
) {
|
|
33
36
|
super(TerminateLudeocastBuildDistributionRequest.EVENT_NAME);
|
|
34
37
|
this.payload = payload;
|
|
35
38
|
this.context = context;
|
|
@@ -41,4 +44,3 @@ export class TerminateLudeocastBuildDistributionRequest extends LudeoEvent {
|
|
|
41
44
|
@ValidateNestedType(() => BuildContext)
|
|
42
45
|
context: BuildContext;
|
|
43
46
|
}
|
|
44
|
-
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { ValidateNestedType } from
|
|
3
|
-
import { IsUUID, IsOptional } from
|
|
4
|
-
import { GameCreationPayload } from
|
|
5
|
-
import { CloudResourceContext } from
|
|
6
|
-
import { LudeoCastV2ProviderSettings } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
+
import { IsUUID, IsOptional, IsString } from "class-validator";
|
|
4
|
+
import { GameCreationPayload } from "../../types/site-controller";
|
|
5
|
+
import { CloudResourceContext } from "../../contexts";
|
|
6
|
+
import { LudeoCastV2ProviderSettings } from "../../types/cloud/ludeocast-v2/provider-settings";
|
|
7
7
|
|
|
8
8
|
export class CreateLudeocastGameRequestPayload {
|
|
9
9
|
@IsUUID()
|
|
@@ -22,12 +22,18 @@ export class CreateLudeocastGameRequestPayload {
|
|
|
22
22
|
|
|
23
23
|
@IsUUID()
|
|
24
24
|
buildId: string;
|
|
25
|
+
|
|
26
|
+
@IsString()
|
|
27
|
+
site: string;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
export class CreateLudeocastGameRequest extends LudeoEvent {
|
|
28
|
-
static readonly EVENT_NAME =
|
|
31
|
+
static readonly EVENT_NAME = "cloud-resources.create-ludeocast-game-request";
|
|
29
32
|
|
|
30
|
-
constructor(
|
|
33
|
+
constructor(
|
|
34
|
+
payload: CreateLudeocastGameRequestPayload,
|
|
35
|
+
context: CloudResourceContext
|
|
36
|
+
) {
|
|
31
37
|
super(CreateLudeocastGameRequest.EVENT_NAME);
|
|
32
38
|
this.payload = payload;
|
|
33
39
|
this.context = context;
|
|
@@ -39,4 +45,3 @@ export class CreateLudeocastGameRequest extends LudeoEvent {
|
|
|
39
45
|
@ValidateNestedType(() => CloudResourceContext)
|
|
40
46
|
context: CloudResourceContext;
|
|
41
47
|
}
|
|
42
|
-
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { ValidateNestedType } from
|
|
3
|
-
import { IsOptional, IsUUID } from
|
|
4
|
-
import { CloudResourceContext } from
|
|
5
|
-
import { LudeoCastV2ProviderSettings } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
+
import { IsOptional, IsUUID, IsString } from "class-validator";
|
|
4
|
+
import { CloudResourceContext } from "../../contexts";
|
|
5
|
+
import { LudeoCastV2ProviderSettings } from "../../types";
|
|
6
6
|
|
|
7
7
|
export class AndroidMachineCreationPayload {}
|
|
8
8
|
|
|
@@ -20,12 +20,19 @@ export class CreateLudeocastMachineRequestPayload {
|
|
|
20
20
|
machineCreationPayload?: MachineCreationPayload;
|
|
21
21
|
|
|
22
22
|
providerSettings: LudeoCastV2ProviderSettings;
|
|
23
|
+
|
|
24
|
+
@IsString()
|
|
25
|
+
site: string;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
26
|
-
static readonly EVENT_NAME =
|
|
29
|
+
static readonly EVENT_NAME =
|
|
30
|
+
"cloud-resources.create-ludeocast-machine-request";
|
|
27
31
|
|
|
28
|
-
constructor(
|
|
32
|
+
constructor(
|
|
33
|
+
payload: CreateLudeocastMachineRequestPayload,
|
|
34
|
+
context: CloudResourceContext
|
|
35
|
+
) {
|
|
29
36
|
super(CreateLudeocastMachineRequest.EVENT_NAME);
|
|
30
37
|
this.payload = payload;
|
|
31
38
|
this.context = context;
|
|
@@ -37,4 +44,3 @@ export class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
|
37
44
|
@ValidateNestedType(() => CloudResourceContext)
|
|
38
45
|
context: CloudResourceContext;
|
|
39
46
|
}
|
|
40
|
-
|