@ludeo/cloud-common 1.2.109 → 1.2.110-ygbeta2
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/build-assigned.d.ts +2 -1
- package/dist/v4/events/build-assigned.js +4 -3
- package/dist/v4/events/build-assigned.js.map +1 -1
- package/dist/v4/events/build-assignment-failed.d.ts +2 -1
- package/dist/v4/events/build-assignment-failed.js +4 -3
- package/dist/v4/events/build-assignment-failed.js.map +1 -1
- package/dist/v4/types/cloud/allocation-data.d.ts +3 -2
- package/dist/v4/types/cloud/allocation-data.js +4 -0
- package/dist/v4/types/cloud/allocation-data.js.map +1 -1
- package/dist/v4/types/cloud/game-creation-response.d.ts +2 -1
- package/dist/v4/types/cloud/index.d.ts +1 -0
- package/dist/v4/types/cloud/index.js +1 -0
- package/dist/v4/types/cloud/index.js.map +1 -1
- package/dist/v4/types/cloud/ludeocast/allocation-data.d.ts +7 -0
- package/dist/v4/types/cloud/ludeocast/allocation-data.js +37 -0
- package/dist/v4/types/cloud/ludeocast/allocation-data.js.map +1 -0
- package/dist/v4/types/cloud/ludeocast/game-creation-response.d.ts +2 -0
- package/dist/v4/types/cloud/ludeocast/game-creation-response.js +7 -0
- package/dist/v4/types/cloud/ludeocast/game-creation-response.js.map +1 -0
- package/dist/v4/types/cloud/ludeocast/index.d.ts +6 -0
- package/dist/v4/types/cloud/ludeocast/index.js +23 -0
- package/dist/v4/types/cloud/ludeocast/index.js.map +1 -0
- package/dist/v4/types/cloud/ludeocast/machine-provider-settings.d.ts +3 -0
- package/dist/v4/types/cloud/ludeocast/machine-provider-settings.js +21 -0
- package/dist/v4/types/cloud/ludeocast/machine-provider-settings.js.map +1 -0
- package/dist/v4/types/cloud/ludeocast/provider-settings.d.ts +8 -0
- package/dist/v4/types/cloud/ludeocast/provider-settings.js +11 -0
- package/dist/v4/types/cloud/ludeocast/provider-settings.js.map +1 -0
- package/dist/v4/types/cloud/ludeocast/request-data.d.ts +3 -0
- package/dist/v4/types/cloud/ludeocast/request-data.js +22 -0
- package/dist/v4/types/cloud/ludeocast/request-data.js.map +1 -0
- package/dist/v4/types/cloud/ludeocast/resource-provider-settings.d.ts +4 -0
- package/dist/v4/types/cloud/ludeocast/resource-provider-settings.js +27 -0
- package/dist/v4/types/cloud/ludeocast/resource-provider-settings.js.map +1 -0
- package/dist/v4/types/cloud/machine-provider-settings.d.ts +2 -1
- package/dist/v4/types/cloud/provider-request.d.ts +2 -1
- package/dist/v4/types/cloud/provider-request.js +4 -0
- package/dist/v4/types/cloud/provider-request.js.map +1 -1
- package/dist/v4/types/cloud/provider-settings.d.ts +3 -2
- package/dist/v4/types/cloud/provider-settings.js +4 -0
- package/dist/v4/types/cloud/provider-settings.js.map +1 -1
- package/dist/v4/types/cloud/provider.d.ts +1 -0
- package/dist/v4/types/cloud/provider.js +1 -0
- package/dist/v4/types/cloud/provider.js.map +1 -1
- package/dist/v4/types/cloud/resource-provider-settings.d.ts +3 -2
- package/dist/v4/types/cloud/resource-provider-settings.js +4 -0
- package/dist/v4/types/cloud/resource-provider-settings.js.map +1 -1
- package/dist/v4/types/cloud/session.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/build-assigned.ts +3 -2
- package/src/v4/events/build-assignment-failed.ts +3 -2
- package/src/v4/types/cloud/allocation-data.ts +7 -1
- package/src/v4/types/cloud/game-creation-response.ts +3 -1
- package/src/v4/types/cloud/index.ts +1 -0
- package/src/v4/types/cloud/ludeocast/allocation-data.ts +18 -0
- package/src/v4/types/cloud/ludeocast/game-creation-response.ts +1 -0
- package/src/v4/types/cloud/ludeocast/index.ts +6 -0
- package/src/v4/types/cloud/ludeocast/machine-provider-settings.ts +6 -0
- package/src/v4/types/cloud/ludeocast/provider-settings.ts +11 -0
- package/src/v4/types/cloud/ludeocast/request-data.ts +7 -0
- package/src/v4/types/cloud/ludeocast/resource-provider-settings.ts +11 -0
- package/src/v4/types/cloud/machine-provider-settings.ts +3 -1
- package/src/v4/types/cloud/provider-request.ts +9 -1
- package/src/v4/types/cloud/provider-settings.ts +9 -1
- package/src/v4/types/cloud/provider.ts +1 -0
- package/src/v4/types/cloud/resource-provider-settings.ts +7 -2
- package/src/v4/types/cloud/session.ts +1 -0
- package/src/v4/types/pools/configuration/type.ts +7 -7
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BuildContext } from "../contexts/build-context";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudBuild } from "../types";
|
|
3
4
|
export declare class BuildAssignedPayload {
|
|
4
5
|
envId: string;
|
|
5
|
-
|
|
6
|
+
build: CloudBuild;
|
|
6
7
|
}
|
|
7
8
|
export declare class BuildAssigned extends LudeoEvent {
|
|
8
9
|
static readonly EVENT_NAME = "cloud-builds.build-assigned";
|
|
@@ -14,6 +14,7 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const build_context_1 = require("../contexts/build-context");
|
|
15
15
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
16
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
+
const types_1 = require("../types");
|
|
17
18
|
class BuildAssignedPayload {
|
|
18
19
|
}
|
|
19
20
|
exports.BuildAssignedPayload = BuildAssignedPayload;
|
|
@@ -22,9 +23,9 @@ __decorate([
|
|
|
22
23
|
__metadata("design:type", String)
|
|
23
24
|
], BuildAssignedPayload.prototype, "envId", void 0);
|
|
24
25
|
__decorate([
|
|
25
|
-
(0,
|
|
26
|
-
__metadata("design:type",
|
|
27
|
-
], BuildAssignedPayload.prototype, "
|
|
26
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.CloudBuild),
|
|
27
|
+
__metadata("design:type", types_1.CloudBuild)
|
|
28
|
+
], BuildAssignedPayload.prototype, "build", void 0);
|
|
28
29
|
class BuildAssigned extends ludeo_event_1.LudeoEvent {
|
|
29
30
|
constructor(payload, context) {
|
|
30
31
|
super(BuildAssigned.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-assigned.js","sourceRoot":"","sources":["../../../src/v4/events/build-assigned.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;
|
|
1
|
+
{"version":3,"file":"build-assigned.js","sourceRoot":"","sources":["../../../src/v4/events/build-assigned.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AACrD,oCAAsC;AAEtC,MAAa,oBAAoB;CAMhC;AAND,oDAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;mDACK;AAGd;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;mDAAC;AAGpB,MAAa,aAAc,SAAQ,wBAAU;IAG3C,YAAY,OAA6B,EAAE,OAAqB;QAC9D,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sCAcC;AAbiB,wBAAU,GAAG,6BAA6B,CAAC;AAS3D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;8CAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;8BACtC,oBAAoB;8CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BuildContext } from "../contexts/build-context";
|
|
2
2
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
3
|
+
import { CloudBuild } from "../types";
|
|
3
4
|
export declare class BuildAssignmentFailedPayload {
|
|
4
|
-
|
|
5
|
+
build: CloudBuild;
|
|
5
6
|
envId: string;
|
|
6
7
|
error?: string;
|
|
7
8
|
}
|
|
@@ -14,13 +14,14 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const build_context_1 = require("../contexts/build-context");
|
|
15
15
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
16
16
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
17
|
+
const types_1 = require("../types");
|
|
17
18
|
class BuildAssignmentFailedPayload {
|
|
18
19
|
}
|
|
19
20
|
exports.BuildAssignmentFailedPayload = BuildAssignmentFailedPayload;
|
|
20
21
|
__decorate([
|
|
21
|
-
(0,
|
|
22
|
-
__metadata("design:type",
|
|
23
|
-
], BuildAssignmentFailedPayload.prototype, "
|
|
22
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.CloudBuild),
|
|
23
|
+
__metadata("design:type", types_1.CloudBuild)
|
|
24
|
+
], BuildAssignmentFailedPayload.prototype, "build", void 0);
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, class_validator_1.IsUUID)(),
|
|
26
27
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-assignment-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-assignment-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;
|
|
1
|
+
{"version":3,"file":"build-assignment-failed.js","sourceRoot":"","sources":["../../../src/v4/events/build-assignment-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAyD;AACzD,oGAAqF;AACrF,yDAAqD;AACrD,oCAAsC;AAEtC,MAAa,4BAA4B;CAUxC;AAVD,oEAUC;AARC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kBAAU,CAAC;8BAC9B,kBAAU;2DAAC;AAGlB;IADC,IAAA,wBAAM,GAAE;;2DACK;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACE;AAGjB,MAAa,qBAAsB,SAAQ,wBAAU;IAGnD,YAAY,OAAqC,EAAE,OAAqB;QACtE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sDAcC;AAbiB,gCAAU,GAAG,sCAAsC,CAAC;AASpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAC9B,4BAAY;sDAAC;AAGtB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;8BAC9C,4BAA4B;sDAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TypeHelpOptions } from "class-transformer";
|
|
2
2
|
import { AwsAllocationData } from "./aws";
|
|
3
3
|
import { MockAllocationData } from "./mock";
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
import { LudeoCastAllocationData } from "./ludeocast";
|
|
5
|
+
export type CloudProviderAllocationData = AwsAllocationData | MockAllocationData | LudeoCastAllocationData;
|
|
6
|
+
export declare const getAllocationDataType: ({ object, property, }: TypeHelpOptions) => typeof AwsAllocationData | typeof MockAllocationData | typeof LudeoCastAllocationData;
|
|
@@ -3,11 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getAllocationDataType = void 0;
|
|
4
4
|
const aws_1 = require("./aws");
|
|
5
5
|
const mock_1 = require("./mock");
|
|
6
|
+
const ludeocast_1 = require("./ludeocast");
|
|
6
7
|
const getAllocationDataType = ({ object, property, }) => {
|
|
7
8
|
const allocationData = object[property];
|
|
8
9
|
if ("streamGroupId" in allocationData) {
|
|
9
10
|
return aws_1.AwsAllocationData;
|
|
10
11
|
}
|
|
12
|
+
if ("signalingURI" in allocationData) {
|
|
13
|
+
return ludeocast_1.LudeoCastAllocationData;
|
|
14
|
+
}
|
|
11
15
|
return mock_1.MockAllocationData;
|
|
12
16
|
};
|
|
13
17
|
exports.getAllocationDataType = getAllocationDataType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-data.ts"],"names":[],"mappings":";;;AAEA,+BAA0C;AAC1C,iCAA4C;
|
|
1
|
+
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-data.ts"],"names":[],"mappings":";;;AAEA,+BAA0C;AAC1C,iCAA4C;AAC5C,2CAAsD;AAO/C,MAAM,qBAAqB,GAAG,CAAC,EACpC,MAAM,EACN,QAAQ,GACQ,EAAE,EAAE;IACpB,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACxC,IAAI,eAAe,IAAI,cAAc,EAAE,CAAC;QACtC,OAAO,uBAAiB,CAAC;IAC3B,CAAC;IAED,IAAI,cAAc,IAAI,cAAc,EAAE,CAAC;QACrC,OAAO,mCAAuB,CAAC;IACjC,CAAC;IAED,OAAO,yBAAkB,CAAC;AAC5B,CAAC,CAAC;AAdW,QAAA,qBAAqB,yBAchC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { AWSGameCreationResponse } from "./aws";
|
|
2
|
+
import { LudeoCastGameCreationResponse } from "./ludeocast";
|
|
2
3
|
import { MockGameCreationResponse } from "./mock";
|
|
3
|
-
export type GameCreationResponse = AWSGameCreationResponse | MockGameCreationResponse;
|
|
4
|
+
export type GameCreationResponse = AWSGameCreationResponse | MockGameCreationResponse | LudeoCastGameCreationResponse;
|
|
@@ -25,4 +25,5 @@ __exportStar(require("./resource-provider-settings"), exports);
|
|
|
25
25
|
__exportStar(require("./session"), exports);
|
|
26
26
|
__exportStar(require("./mock"), exports);
|
|
27
27
|
__exportStar(require("./machine-provider-settings"), exports);
|
|
28
|
+
__exportStar(require("./ludeocast"), exports);
|
|
28
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wCAAsB;AACtB,2DAAyC;AACzC,qDAAmC;AACnC,sDAAoC;AACpC,6CAA2B;AAC3B,+DAA6C;AAC7C,4CAA0B;AAC1B,yCAAuB;AACvB,8DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wCAAsB;AACtB,2DAAyC;AACzC,qDAAmC;AACnC,sDAAoC;AACpC,6CAA2B;AAC3B,+DAA6C;AAC7C,4CAA0B;AAC1B,yCAAuB;AACvB,8DAA4C;AAC5C,8CAA4B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.LudeoCastAllocationData = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class LudeoCastAllocationData {
|
|
15
|
+
}
|
|
16
|
+
exports.LudeoCastAllocationData = LudeoCastAllocationData;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], LudeoCastAllocationData.prototype, "signalingURI", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], LudeoCastAllocationData.prototype, "stunURL", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], LudeoCastAllocationData.prototype, "turnURL", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], LudeoCastAllocationData.prototype, "turnUsername", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], LudeoCastAllocationData.prototype, "turnPassword", void 0);
|
|
37
|
+
//# sourceMappingURL=allocation-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast/allocation-data.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,uBAAuB;CAenC;AAfD,0DAeC;AAbC;IADC,IAAA,0BAAQ,GAAE;;6DACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;wDACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;wDACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;6DACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;6DACU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LudeoCastGameCreationResponse = void 0;
|
|
4
|
+
class LudeoCastGameCreationResponse {
|
|
5
|
+
}
|
|
6
|
+
exports.LudeoCastGameCreationResponse = LudeoCastGameCreationResponse;
|
|
7
|
+
//# sourceMappingURL=game-creation-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-creation-response.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast/game-creation-response.ts"],"names":[],"mappings":";;;AAAA,MAAa,6BAA6B;CAAG;AAA7C,sEAA6C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resource-provider-settings"), exports);
|
|
18
|
+
__exportStar(require("./provider-settings"), exports);
|
|
19
|
+
__exportStar(require("./request-data"), exports);
|
|
20
|
+
__exportStar(require("./game-creation-response"), exports);
|
|
21
|
+
__exportStar(require("./allocation-data"), exports);
|
|
22
|
+
__exportStar(require("./machine-provider-settings"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,sDAAoC;AACpC,iDAA+B;AAC/B,2DAAyC;AACzC,oDAAkC;AAClC,8DAA4C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.LudeoCastMachineResourceProviderSettings = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class LudeoCastMachineResourceProviderSettings {
|
|
15
|
+
}
|
|
16
|
+
exports.LudeoCastMachineResourceProviderSettings = LudeoCastMachineResourceProviderSettings;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], LudeoCastMachineResourceProviderSettings.prototype, "machineId", void 0);
|
|
21
|
+
//# sourceMappingURL=machine-provider-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast/machine-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,wCAAwC;CAGpD;AAHD,4FAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;2EACO"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LudeoCastProviderSettings = exports.LudeoCastCloudProvider = void 0;
|
|
4
|
+
var LudeoCastCloudProvider;
|
|
5
|
+
(function (LudeoCastCloudProvider) {
|
|
6
|
+
LudeoCastCloudProvider["GCP"] = "gcp";
|
|
7
|
+
})(LudeoCastCloudProvider || (exports.LudeoCastCloudProvider = LudeoCastCloudProvider = {}));
|
|
8
|
+
class LudeoCastProviderSettings {
|
|
9
|
+
}
|
|
10
|
+
exports.LudeoCastProviderSettings = LudeoCastProviderSettings;
|
|
11
|
+
//# sourceMappingURL=provider-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast/provider-settings.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IAChC,qCAAW,CAAA;AACb,CAAC,EAFW,sBAAsB,sCAAtB,sBAAsB,QAEjC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.LudeoCastRequestData = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class LudeoCastRequestData {
|
|
15
|
+
}
|
|
16
|
+
exports.LudeoCastRequestData = LudeoCastRequestData;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], LudeoCastRequestData.prototype, "signalRequest", void 0);
|
|
22
|
+
//# sourceMappingURL=request-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-data.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast/request-data.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACS"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.LudeoCastResourceProviderSettings = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class LudeoCastResourceProviderSettings {
|
|
15
|
+
}
|
|
16
|
+
exports.LudeoCastResourceProviderSettings = LudeoCastResourceProviderSettings;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], LudeoCastResourceProviderSettings.prototype, "machineId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], LudeoCastResourceProviderSettings.prototype, "region", void 0);
|
|
27
|
+
//# sourceMappingURL=resource-provider-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../../src/v4/types/cloud/ludeocast/resource-provider-settings.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,iCAAiC;CAQ7C;AARD,8EAQC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACK"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { MockMachineResourceProviderSettings } from "./mock";
|
|
2
|
-
|
|
2
|
+
import { LudeoCastMachineResourceProviderSettings } from "./ludeocast";
|
|
3
|
+
export type MachineResourceProviderSettings = MockMachineResourceProviderSettings | LudeoCastMachineResourceProviderSettings;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TypeHelpOptions } from "class-transformer";
|
|
2
2
|
import { AWSRequestData } from "./aws";
|
|
3
3
|
import { MockRequestData } from "./mock";
|
|
4
|
-
|
|
4
|
+
import { LudeoCastRequestData } from "./ludeocast";
|
|
5
|
+
export type CloudProviderRequest = AWSRequestData | MockRequestData | LudeoCastRequestData;
|
|
5
6
|
export declare const getProviderRequestType: ({ object, property, }: TypeHelpOptions) => typeof AWSRequestData;
|
|
@@ -3,11 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getProviderRequestType = void 0;
|
|
4
4
|
const aws_1 = require("./aws");
|
|
5
5
|
const mock_1 = require("./mock");
|
|
6
|
+
const ludeocast_1 = require("./ludeocast");
|
|
6
7
|
const getProviderRequestType = ({ object, property, }) => {
|
|
7
8
|
const providerRequest = object[property];
|
|
8
9
|
if ("streamGroupId" in providerRequest) {
|
|
9
10
|
return aws_1.AWSRequestData;
|
|
10
11
|
}
|
|
12
|
+
if ("signalRequest" in providerRequest) {
|
|
13
|
+
return ludeocast_1.LudeoCastRequestData;
|
|
14
|
+
}
|
|
11
15
|
return mock_1.MockRequestData;
|
|
12
16
|
};
|
|
13
17
|
exports.getProviderRequestType = getProviderRequestType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-request.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider-request.ts"],"names":[],"mappings":";;;AACA,+BAAuC;AACvC,iCAAyC;
|
|
1
|
+
{"version":3,"file":"provider-request.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider-request.ts"],"names":[],"mappings":";;;AACA,+BAAuC;AACvC,iCAAyC;AACzC,2CAAmD;AAO5C,MAAM,sBAAsB,GAAG,CAAC,EACrC,MAAM,EACN,QAAQ,GACQ,EAAE,EAAE;IACpB,MAAM,eAAe,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACzC,IAAI,eAAe,IAAI,eAAe,EAAE,CAAC;QACvC,OAAO,oBAAc,CAAC;IACxB,CAAC;IAED,IAAI,eAAe,IAAI,eAAe,EAAE,CAAC;QACvC,OAAO,gCAAoB,CAAC;IAC9B,CAAC;IAED,OAAO,sBAAe,CAAC;AACzB,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TypeHelpOptions } from "class-transformer";
|
|
2
2
|
import { AWSProviderSettings } from "./aws";
|
|
3
3
|
import { MockProviderSettings } from "./mock";
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
import { LudeoCastProviderSettings } from "./ludeocast";
|
|
5
|
+
export type CloudProviderSettings = AWSProviderSettings | MockProviderSettings | LudeoCastProviderSettings;
|
|
6
|
+
export declare const getProviderSettingsType: ({ object, property, }: TypeHelpOptions) => typeof MockProviderSettings | typeof LudeoCastProviderSettings;
|
|
@@ -3,11 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getProviderSettingsType = void 0;
|
|
4
4
|
const aws_1 = require("./aws");
|
|
5
5
|
const mock_1 = require("./mock");
|
|
6
|
+
const ludeocast_1 = require("./ludeocast");
|
|
6
7
|
const getProviderSettingsType = ({ object, property, }) => {
|
|
7
8
|
const providerSettings = object[property];
|
|
8
9
|
if ("streamGroupId" in providerSettings) {
|
|
9
10
|
return aws_1.AWSProviderSettings;
|
|
10
11
|
}
|
|
12
|
+
if ("machineClass" in providerSettings) {
|
|
13
|
+
return ludeocast_1.LudeoCastProviderSettings;
|
|
14
|
+
}
|
|
11
15
|
return mock_1.MockProviderSettings;
|
|
12
16
|
};
|
|
13
17
|
exports.getProviderSettingsType = getProviderSettingsType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider-settings.ts"],"names":[],"mappings":";;;AACA,+BAA4C;AAC5C,iCAA8C;
|
|
1
|
+
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider-settings.ts"],"names":[],"mappings":";;;AACA,+BAA4C;AAC5C,iCAA8C;AAC9C,2CAAwD;AAOjD,MAAM,uBAAuB,GAAG,CAAC,EACtC,MAAM,EACN,QAAQ,GACQ,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC1C,IAAI,eAAe,IAAI,gBAAgB,EAAE,CAAC;QACxC,OAAO,yBAAmB,CAAC;IAC7B,CAAC;IAED,IAAI,cAAc,IAAI,gBAAgB,EAAE,CAAC;QACvC,OAAO,qCAAyB,CAAC;IACnC,CAAC;IAED,OAAO,2BAAoB,CAAC;AAC9B,CAAC,CAAC;AAdW,QAAA,uBAAuB,2BAclC"}
|
|
@@ -5,6 +5,7 @@ var CloudProvider;
|
|
|
5
5
|
(function (CloudProvider) {
|
|
6
6
|
CloudProvider["AWS"] = "aws";
|
|
7
7
|
CloudProvider["NVIDIA"] = "nvidia";
|
|
8
|
+
CloudProvider["LUDEOCAST"] = "ludeocast";
|
|
8
9
|
CloudProvider["MOCK"] = "mock";
|
|
9
10
|
})(CloudProvider || (exports.CloudProvider = CloudProvider = {}));
|
|
10
11
|
//# sourceMappingURL=provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,8BAAa,CAAA;AACf,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TypeHelpOptions } from "class-transformer";
|
|
2
2
|
import { AWSResourceProviderSettings } from "./aws";
|
|
3
3
|
import { MockResourceProviderSettings } from "./mock";
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
import { LudeoCastResourceProviderSettings } from "./ludeocast";
|
|
5
|
+
export type CloudResourceProviderSettings = AWSResourceProviderSettings | MockResourceProviderSettings | LudeoCastResourceProviderSettings;
|
|
6
|
+
export declare const getResourceProviderSettingsType: ({ object, property, }: TypeHelpOptions) => typeof AWSResourceProviderSettings | typeof MockResourceProviderSettings | typeof LudeoCastResourceProviderSettings;
|
|
@@ -3,11 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getResourceProviderSettingsType = void 0;
|
|
4
4
|
const aws_1 = require("./aws");
|
|
5
5
|
const mock_1 = require("./mock");
|
|
6
|
+
const ludeocast_1 = require("./ludeocast");
|
|
6
7
|
const getResourceProviderSettingsType = ({ object, property, }) => {
|
|
7
8
|
const providerSettings = object[property];
|
|
8
9
|
if ("streamSessionId" in providerSettings) {
|
|
9
10
|
return aws_1.AWSResourceProviderSettings;
|
|
10
11
|
}
|
|
12
|
+
if ("machineId" in providerSettings) {
|
|
13
|
+
return ludeocast_1.LudeoCastResourceProviderSettings;
|
|
14
|
+
}
|
|
11
15
|
return mock_1.MockResourceProviderSettings;
|
|
12
16
|
};
|
|
13
17
|
exports.getResourceProviderSettingsType = getResourceProviderSettingsType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/resource-provider-settings.ts"],"names":[],"mappings":";;;AACA,+BAAoD;AACpD,iCAAsD;
|
|
1
|
+
{"version":3,"file":"resource-provider-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/resource-provider-settings.ts"],"names":[],"mappings":";;;AACA,+BAAoD;AACpD,iCAAsD;AACtD,2CAAgE;AAMzD,MAAM,+BAA+B,GAAG,CAAC,EAC9C,MAAM,EACN,QAAQ,GACQ,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC1C,IAAI,iBAAiB,IAAI,gBAAgB,EAAE,CAAC;QAC1C,OAAO,iCAA2B,CAAC;IACrC,CAAC;IAED,IAAI,WAAW,IAAI,gBAAgB,EAAE,CAAC;QACpC,OAAO,6CAAiC,CAAC;IAC3C,CAAC;IAED,OAAO,mCAA4B,CAAC;AACtC,CAAC,CAAC;AAdW,QAAA,+BAA+B,mCAc1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/session.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,oDAAyD;AACzD,oCAAsE;AACtE,6DAA6D;AAC7D,uDAA0D;
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/session.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,oDAAyD;AACzD,oCAAsE;AACtE,6DAA6D;AAC7D,uDAA0D;AAE1D,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,mDAA6B,CAAA;IAC7B,8DAAwC,CAAA;IACxC,6CAAuB,CAAA;IACvB,6CAAuB,CAAA;IACvB,+CAAyB,CAAA;IACzB,uCAAiB,CAAA;AACnB,CAAC,EARW,kBAAkB,kCAAlB,kBAAkB,QAQ7B;AAED,MAAa,YAAY;CAmExB;AAnED,oCAmEC;AAjEC;IADC,IAAA,wBAAM,GAAE;;wCACE;AAGX;IADC,IAAA,wBAAM,GAAE;;4CACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4CACM;AAGf;IADC,IAAA,wBAAM,GAAE;;6CACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;+CACO;AAGlB;IADC,IAAA,0BAAQ,GAAE;;+CACO;AAGlB;IADC,IAAA,wBAAM,EAAC,kBAAkB,CAAC;;4CACA;AAG3B;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;mDACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4CACO;AAGhB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,0CAAqB,CAAC;8BACnC,0CAAqB;iDAAC;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,uCAAqB,CAAC;;oDACG;AAG7C;IADC,IAAA,wBAAM,GAAE;;qDACe;AAKxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;iDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;qDACgB;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kDACa;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACc"}
|
package/package.json
CHANGED
|
@@ -2,13 +2,14 @@ import { IsUUID } from "class-validator";
|
|
|
2
2
|
import { BuildContext } from "../contexts/build-context";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { CloudBuild } from "../types";
|
|
5
6
|
|
|
6
7
|
export class BuildAssignedPayload {
|
|
7
8
|
@IsUUID()
|
|
8
9
|
envId: string;
|
|
9
10
|
|
|
10
|
-
@
|
|
11
|
-
|
|
11
|
+
@ValidateNestedType(() => CloudBuild)
|
|
12
|
+
build: CloudBuild;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export class BuildAssigned extends LudeoEvent {
|
|
@@ -2,10 +2,11 @@ import { IsOptional, IsString, IsUUID } from "class-validator";
|
|
|
2
2
|
import { BuildContext } from "../contexts/build-context";
|
|
3
3
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
4
4
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
5
|
+
import { CloudBuild } from "../types";
|
|
5
6
|
|
|
6
7
|
export class BuildAssignmentFailedPayload {
|
|
7
|
-
@
|
|
8
|
-
|
|
8
|
+
@ValidateNestedType(() => CloudBuild)
|
|
9
|
+
build: CloudBuild;
|
|
9
10
|
|
|
10
11
|
@IsUUID()
|
|
11
12
|
envId: string;
|
|
@@ -2,10 +2,12 @@ import { TypeHelpOptions } from "class-transformer";
|
|
|
2
2
|
|
|
3
3
|
import { AwsAllocationData } from "./aws";
|
|
4
4
|
import { MockAllocationData } from "./mock";
|
|
5
|
+
import { LudeoCastAllocationData } from "./ludeocast";
|
|
5
6
|
|
|
6
7
|
export type CloudProviderAllocationData =
|
|
7
8
|
| AwsAllocationData
|
|
8
|
-
| MockAllocationData
|
|
9
|
+
| MockAllocationData
|
|
10
|
+
| LudeoCastAllocationData;
|
|
9
11
|
|
|
10
12
|
export const getAllocationDataType = ({
|
|
11
13
|
object,
|
|
@@ -16,5 +18,9 @@ export const getAllocationDataType = ({
|
|
|
16
18
|
return AwsAllocationData;
|
|
17
19
|
}
|
|
18
20
|
|
|
21
|
+
if ("signalingURI" in allocationData) {
|
|
22
|
+
return LudeoCastAllocationData;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
return MockAllocationData;
|
|
20
26
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AWSGameCreationResponse } from "./aws";
|
|
2
|
+
import { LudeoCastGameCreationResponse } from "./ludeocast";
|
|
2
3
|
import { MockGameCreationResponse } from "./mock";
|
|
3
4
|
|
|
4
5
|
export type GameCreationResponse =
|
|
5
6
|
| AWSGameCreationResponse
|
|
6
|
-
| MockGameCreationResponse
|
|
7
|
+
| MockGameCreationResponse
|
|
8
|
+
| LudeoCastGameCreationResponse;
|