@ludeo/cloud-common 1.2.198 → 1.2.200-beta-yahil-1
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/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/types/build.d.ts +1 -0
- package/dist/v4/types/build.js.map +1 -1
- package/dist/v4/types/cloud/ludeocast-v2/provider-settings.d.ts +2 -1
- package/dist/v4/types/cloud/ludeocast-v2/provider-settings.js.map +1 -1
- package/dist/v4/types/site-controller/create-distribution.dto.d.ts +2 -2
- package/dist/v4/types/site-controller/create-distribution.dto.js +4 -3
- package/dist/v4/types/site-controller/create-distribution.dto.js.map +1 -1
- package/dist/v4/types/site-controller/create-game.dto.d.ts +2 -1
- package/dist/v4/types/site-controller/create-game.dto.js +5 -3
- package/dist/v4/types/site-controller/create-game.dto.js.map +1 -1
- package/package.json +1 -1
- 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/types/build.ts +1 -0
- package/src/v4/types/cloud/ludeocast-v2/provider-settings.ts +3 -1
- package/src/v4/types/site-controller/create-distribution.dto.ts +5 -4
- package/src/v4/types/site-controller/create-game.dto.ts +4 -2
|
@@ -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"}
|
package/dist/v4/types/build.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/v4/types/build.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,mCAKiB;AAGjB,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,8CAA+B,CAAA;IAC/B,kDAAmC,CAAA;IACnC,gDAAiC,CAAA;IACjC,sEAAuD,CAAA;IACvD,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,gCAAiB,CAAA;IACjB,wDAAyC,CAAA;IACzC,sDAAuC,CAAA;IACvC,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;AACvB,CAAC,EAfW,WAAW,2BAAX,WAAW,QAetB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;AAC7B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,MAAa,aAAa;CA8BzB;AA9BD,sCA8BC;AA3BC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACG;AAIhB;IAFC,IAAA,0BAAQ,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AmB;CAO/B;AAPD,kDAOC;AAED,MAAa,kBAAmB,SAAQ,gBAAgB;CAEvD;AAFD,gDAEC;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,gDAAuB,CAAA;IACvB,gEAAuC,CAAA;IACvC,kDAAyB,CAAA;AAC3B,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MachineMode } from "../..";
|
|
1
|
+
import { LudeocastV2DistributionData, MachineMode } from "../..";
|
|
2
2
|
import { CloudProviderSettings } from "../provider-settings";
|
|
3
3
|
export declare class LudeoCastV2ProviderSettings {
|
|
4
4
|
site: string;
|
|
@@ -8,5 +8,6 @@ export declare class LudeoCastV2ProviderSettings {
|
|
|
8
8
|
machineClass?: string;
|
|
9
9
|
additionalEnvironmentVariables?: Record<string, string>;
|
|
10
10
|
additionalLaunchArgs?: string[];
|
|
11
|
+
distributionData?: LudeocastV2DistributionData;
|
|
11
12
|
}
|
|
12
13
|
export declare const isLudeoCastV2ProviderSettings: (settings: CloudProviderSettings) => settings is LudeoCastV2ProviderSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/provider-settings.ts"],"names":[],"mappings":";;;AAGA,MAAa,2BAA2B;
|
|
1
|
+
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast-v2/provider-settings.ts"],"names":[],"mappings":";;;AAGA,MAAa,2BAA2B;CAgBvC;AAhBD,kEAgBC;AAEM,MAAM,6BAA6B,GAAG,CAC3C,QAA+B,EACU,EAAE;IAC3C,OAAO,CACL,QAAQ;QACR,MAAM,IAAI,QAAQ;QAClB,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAClC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,6BAA6B,iCAQxC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LudeocastV2Distributions } from '../build';
|
|
1
|
+
import { LudeocastV2DistributionData, LudeocastV2Distributions } from '../build';
|
|
2
2
|
export declare class CreateBuildDistributionRequestDto {
|
|
3
3
|
downloadURL: string;
|
|
4
|
-
|
|
4
|
+
distributionData: LudeocastV2DistributionData;
|
|
5
5
|
buildId: string;
|
|
6
6
|
regions: string[];
|
|
7
7
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateBuildDistributionResponseDto = exports.CreateBuildDistributionRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const build_1 = require("../build");
|
|
15
|
+
const decorators_1 = require("../../../decorators");
|
|
15
16
|
class CreateBuildDistributionRequestDto {
|
|
16
17
|
}
|
|
17
18
|
exports.CreateBuildDistributionRequestDto = CreateBuildDistributionRequestDto;
|
|
@@ -20,9 +21,9 @@ __decorate([
|
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], CreateBuildDistributionRequestDto.prototype, "downloadURL", void 0);
|
|
22
23
|
__decorate([
|
|
23
|
-
(0,
|
|
24
|
-
__metadata("design:type",
|
|
25
|
-
], CreateBuildDistributionRequestDto.prototype, "
|
|
24
|
+
(0, decorators_1.ValidateNestedType)(() => build_1.LudeocastV2DistributionData),
|
|
25
|
+
__metadata("design:type", build_1.LudeocastV2DistributionData)
|
|
26
|
+
], CreateBuildDistributionRequestDto.prototype, "distributionData", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, class_validator_1.IsString)(),
|
|
28
29
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-distribution.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-distribution.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-distribution.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-distribution.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,oCAAiF;AACjF,oDAAyD;AAEzD,MAAa,iCAAiC;CAa7C;AAbD,8EAaC;AAXC;IADC,IAAA,0BAAQ,GAAE;;sEACS;AAGpB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;2EAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;kEACK;AAIhB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACP;AAGpB,MAAa,kCAAkC;CAS9C;AATD,gFASC;AAJC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACM;AAGjB;IADC,IAAA,4BAAU,GAAE;8BACG,gCAAwB;yEAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { MachineMode } from './types';
|
|
2
|
+
import { LudeocastV2DistributionData } from '../build';
|
|
2
3
|
export declare class CreateGameRequestDto {
|
|
3
4
|
gameResourceId: string;
|
|
4
5
|
machineResourceId: string;
|
|
5
6
|
region: string;
|
|
6
7
|
machineMode: MachineMode;
|
|
7
8
|
machineType: string;
|
|
8
|
-
|
|
9
|
+
distributionData: LudeocastV2DistributionData;
|
|
9
10
|
additionalEnvironmentVariables?: Record<string, string>;
|
|
10
11
|
metadata?: Record<string, string>;
|
|
11
12
|
buildId: string;
|
|
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateGameRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const types_1 = require("./types");
|
|
15
|
+
const build_1 = require("../build");
|
|
16
|
+
const decorators_1 = require("../../../decorators");
|
|
15
17
|
class CreateGameRequestDto {
|
|
16
18
|
}
|
|
17
19
|
exports.CreateGameRequestDto = CreateGameRequestDto;
|
|
@@ -36,9 +38,9 @@ __decorate([
|
|
|
36
38
|
__metadata("design:type", String)
|
|
37
39
|
], CreateGameRequestDto.prototype, "machineType", void 0);
|
|
38
40
|
__decorate([
|
|
39
|
-
(0,
|
|
40
|
-
__metadata("design:type",
|
|
41
|
-
], CreateGameRequestDto.prototype, "
|
|
41
|
+
(0, decorators_1.ValidateNestedType)(() => build_1.LudeocastV2DistributionData),
|
|
42
|
+
__metadata("design:type", build_1.LudeocastV2DistributionData)
|
|
43
|
+
], CreateGameRequestDto.prototype, "distributionData", void 0);
|
|
42
44
|
__decorate([
|
|
43
45
|
(0, class_validator_1.IsOptional)(),
|
|
44
46
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-game.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-game.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,mCAAsC;
|
|
1
|
+
{"version":3,"file":"create-game.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/create-game.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,mCAAsC;AACtC,oCAAuD;AACvD,oDAAyD;AAEzD,MAAa,oBAAoB;CA2BhC;AA3BD,oDA2BC;AAzBC;IADC,IAAA,0BAAQ,GAAE;;4DACY;AAGvB;IADC,IAAA,0BAAQ,GAAE;;+DACe;AAG1B;IADC,IAAA,0BAAQ,GAAE;;oDACI;AAGf;IADC,IAAA,wBAAM,EAAC,mBAAW,CAAC;;yDACK;AAGzB;IADC,IAAA,0BAAQ,GAAE;;yDACS;AAGpB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;8DAAC;AAG9C;IADC,IAAA,4BAAU,GAAE;;4EAC2C;AAGxD;IADC,IAAA,4BAAU,GAAE;;sDACqB;AAGlC;IADC,IAAA,0BAAQ,GAAE;;qDACK"}
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LudeoEvent } from
|
|
2
|
-
import { ValidateNestedType } from
|
|
3
|
-
import { IsUUID } from
|
|
4
|
-
import { CloudResourceContext } from
|
|
5
|
-
import { LudeoCastV2ProviderSettings } from
|
|
1
|
+
import { LudeoEvent } from "../../../infra";
|
|
2
|
+
import { ValidateNestedType } from "../../../decorators";
|
|
3
|
+
import { IsString, IsUUID } from "class-validator";
|
|
4
|
+
import { CloudResourceContext } from "../../contexts";
|
|
5
|
+
import { LudeoCastV2ProviderSettings } from "../../types";
|
|
6
6
|
|
|
7
7
|
export class TerminateLudeocastMachineRequestPayload {
|
|
8
8
|
@IsUUID()
|
|
@@ -10,12 +10,19 @@ export class TerminateLudeocastMachineRequestPayload {
|
|
|
10
10
|
|
|
11
11
|
@ValidateNestedType(() => LudeoCastV2ProviderSettings)
|
|
12
12
|
providerSettings: LudeoCastV2ProviderSettings;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
site: string;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
export class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
16
|
-
static readonly EVENT_NAME =
|
|
19
|
+
static readonly EVENT_NAME =
|
|
20
|
+
"cloud-resources.terminate-ludeocast-machine-request";
|
|
17
21
|
|
|
18
|
-
constructor(
|
|
22
|
+
constructor(
|
|
23
|
+
payload: TerminateLudeocastMachineRequestPayload,
|
|
24
|
+
context: CloudResourceContext
|
|
25
|
+
) {
|
|
19
26
|
super(TerminateLudeocastMachineRequest.EVENT_NAME);
|
|
20
27
|
this.payload = payload;
|
|
21
28
|
this.context = context;
|
|
@@ -27,4 +34,3 @@ export class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
|
27
34
|
@ValidateNestedType(() => CloudResourceContext)
|
|
28
35
|
context: CloudResourceContext;
|
|
29
36
|
}
|
|
30
|
-
|
package/src/v4/types/build.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MachineMode } from "../..";
|
|
1
|
+
import { LudeocastV2DistributionData, MachineMode } from "../..";
|
|
2
2
|
import { CloudProviderSettings } from "../provider-settings";
|
|
3
3
|
|
|
4
4
|
export class LudeoCastV2ProviderSettings {
|
|
@@ -15,6 +15,8 @@ export class LudeoCastV2ProviderSettings {
|
|
|
15
15
|
additionalEnvironmentVariables?: Record<string, string>;
|
|
16
16
|
|
|
17
17
|
additionalLaunchArgs?: string[];
|
|
18
|
+
|
|
19
|
+
distributionData?: LudeocastV2DistributionData;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export const isLudeoCastV2ProviderSettings = (
|