@ludeo/cloud-common 1.2.193 → 1.2.195-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/site-controller/index.d.ts +1 -1
- package/dist/v4/events/site-controller/index.js +1 -1
- package/dist/v4/events/site-controller/index.js.map +1 -1
- package/dist/v4/events/site-controller/{resource-status-update.d.ts → ludeocast-resource-status-update.d.ts} +5 -5
- package/dist/v4/events/site-controller/{resource-status-update.js → ludeocast-resource-status-update.js} +19 -19
- package/dist/v4/events/site-controller/ludeocast-resource-status-update.js.map +1 -0
- package/dist/v4/events/terminate-game-resource-request.d.ts +1 -0
- package/dist/v4/events/terminate-game-resource-request.js +5 -0
- package/dist/v4/events/terminate-game-resource-request.js.map +1 -1
- package/dist/v4/types/cloud/allocation-data.d.ts +2 -1
- 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/provider-request.d.ts +2 -1
- package/dist/v4/types/cloud/provider-request.js.map +1 -1
- package/dist/v4/types/cloud/provider-settings.d.ts +1 -1
- package/dist/v4/types/cloud/provider-settings.js +4 -0
- package/dist/v4/types/cloud/provider-settings.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/site-controller/index.ts +1 -1
- package/src/v4/events/site-controller/{resource-status-update.ts → ludeocast-resource-status-update.ts} +7 -7
- package/src/v4/events/terminate-game-resource-request.ts +4 -0
- package/src/v4/types/cloud/allocation-data.ts +4 -2
- package/src/v4/types/cloud/game-creation-response.ts +3 -1
- package/src/v4/types/cloud/provider-request.ts +3 -1
- package/src/v4/types/cloud/provider-settings.ts +4 -0
- package/dist/v4/events/site-controller/resource-status-update.js.map +0 -1
|
@@ -4,7 +4,7 @@ export * from './game-ludeocast-termination-ended';
|
|
|
4
4
|
export * from './machine-ludeocast-termination-ended';
|
|
5
5
|
export * from './ludeocast-build-distribution-creation-ended';
|
|
6
6
|
export * from './ludeocast-build-distribution-termination-ended';
|
|
7
|
-
export * from './resource-status-update';
|
|
7
|
+
export * from './ludeocast-resource-status-update';
|
|
8
8
|
export * from '../base/base';
|
|
9
9
|
export * from '../base/constants';
|
|
10
10
|
export * from './init.command';
|
|
@@ -20,7 +20,7 @@ __exportStar(require("./game-ludeocast-termination-ended"), exports);
|
|
|
20
20
|
__exportStar(require("./machine-ludeocast-termination-ended"), exports);
|
|
21
21
|
__exportStar(require("./ludeocast-build-distribution-creation-ended"), exports);
|
|
22
22
|
__exportStar(require("./ludeocast-build-distribution-termination-ended"), exports);
|
|
23
|
-
__exportStar(require("./resource-status-update"), exports);
|
|
23
|
+
__exportStar(require("./ludeocast-resource-status-update"), exports);
|
|
24
24
|
__exportStar(require("../base/base"), exports);
|
|
25
25
|
__exportStar(require("../base/constants"), exports);
|
|
26
26
|
__exportStar(require("./init.command"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,gFAA8D;AAC9D,mFAAiE;AAEjE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,gFAA8D;AAC9D,mFAAiE;AAEjE,qEAAmD;AAGnD,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC"}
|
|
@@ -2,7 +2,7 @@ import { LudeoEvent } from '../../../infra';
|
|
|
2
2
|
import { CloudResourceContext } from '../../contexts';
|
|
3
3
|
import { CloudResourceStatus } from '../../types';
|
|
4
4
|
import { LudeoCastStreamState } from '../ludeocast-stream-state-updated';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class LudeocastResourceStatusUpdatePayload {
|
|
6
6
|
machineResourceId?: string;
|
|
7
7
|
machinePoolId?: string;
|
|
8
8
|
gameResourceId?: string;
|
|
@@ -11,9 +11,9 @@ export declare class ResourceStatusUpdatePayload {
|
|
|
11
11
|
streamState?: LudeoCastStreamState;
|
|
12
12
|
reason?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare class
|
|
15
|
-
static readonly EVENT_NAME = "site-controller.resource-status-update";
|
|
16
|
-
constructor(payload:
|
|
17
|
-
payload:
|
|
14
|
+
export declare class LudeocastResourceStatusUpdate extends LudeoEvent {
|
|
15
|
+
static readonly EVENT_NAME = "site-controller.ludeocast-resource-status-update";
|
|
16
|
+
constructor(payload: LudeocastResourceStatusUpdatePayload, context: CloudResourceContext);
|
|
17
|
+
payload: LudeocastResourceStatusUpdatePayload;
|
|
18
18
|
context: CloudResourceContext;
|
|
19
19
|
}
|
|
@@ -9,66 +9,66 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.LudeocastResourceStatusUpdate = exports.LudeocastResourceStatusUpdatePayload = void 0;
|
|
13
13
|
const infra_1 = require("../../../infra");
|
|
14
14
|
const decorators_1 = require("../../../decorators");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const contexts_1 = require("../../contexts");
|
|
17
17
|
const types_1 = require("../../types");
|
|
18
18
|
const ludeocast_stream_state_updated_1 = require("../ludeocast-stream-state-updated");
|
|
19
|
-
class
|
|
19
|
+
class LudeocastResourceStatusUpdatePayload {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.LudeocastResourceStatusUpdatePayload = LudeocastResourceStatusUpdatePayload;
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsUUID)(),
|
|
24
24
|
(0, class_validator_1.IsOptional)(),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
26
|
+
], LudeocastResourceStatusUpdatePayload.prototype, "machineResourceId", void 0);
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, class_validator_1.IsUUID)(),
|
|
29
29
|
(0, class_validator_1.IsOptional)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
31
|
+
], LudeocastResourceStatusUpdatePayload.prototype, "machinePoolId", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, class_validator_1.IsUUID)(),
|
|
34
34
|
(0, class_validator_1.IsOptional)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
|
-
],
|
|
36
|
+
], LudeocastResourceStatusUpdatePayload.prototype, "gameResourceId", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, class_validator_1.IsUUID)(),
|
|
39
39
|
(0, class_validator_1.IsOptional)(),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
|
-
],
|
|
41
|
+
], LudeocastResourceStatusUpdatePayload.prototype, "gamePoolId", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, class_validator_1.IsEnum)(types_1.CloudResourceStatus),
|
|
44
44
|
(0, class_validator_1.IsOptional)(),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
|
-
],
|
|
46
|
+
], LudeocastResourceStatusUpdatePayload.prototype, "status", void 0);
|
|
47
47
|
__decorate([
|
|
48
48
|
(0, class_validator_1.IsOptional)(),
|
|
49
49
|
(0, class_validator_1.IsEnum)(ludeocast_stream_state_updated_1.LudeoCastStreamState),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
|
-
],
|
|
51
|
+
], LudeocastResourceStatusUpdatePayload.prototype, "streamState", void 0);
|
|
52
52
|
__decorate([
|
|
53
53
|
(0, class_validator_1.IsOptional)(),
|
|
54
54
|
(0, class_validator_1.IsString)(),
|
|
55
55
|
__metadata("design:type", String)
|
|
56
|
-
],
|
|
57
|
-
class
|
|
56
|
+
], LudeocastResourceStatusUpdatePayload.prototype, "reason", void 0);
|
|
57
|
+
class LudeocastResourceStatusUpdate extends infra_1.LudeoEvent {
|
|
58
58
|
constructor(payload, context) {
|
|
59
|
-
super(
|
|
59
|
+
super(LudeocastResourceStatusUpdate.EVENT_NAME);
|
|
60
60
|
this.payload = payload;
|
|
61
61
|
this.context = context;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
exports.
|
|
65
|
-
|
|
64
|
+
exports.LudeocastResourceStatusUpdate = LudeocastResourceStatusUpdate;
|
|
65
|
+
LudeocastResourceStatusUpdate.EVENT_NAME = 'site-controller.ludeocast-resource-status-update';
|
|
66
66
|
__decorate([
|
|
67
|
-
(0, decorators_1.ValidateNestedType)(() =>
|
|
68
|
-
__metadata("design:type",
|
|
69
|
-
],
|
|
67
|
+
(0, decorators_1.ValidateNestedType)(() => LudeocastResourceStatusUpdatePayload),
|
|
68
|
+
__metadata("design:type", LudeocastResourceStatusUpdatePayload)
|
|
69
|
+
], LudeocastResourceStatusUpdate.prototype, "payload", void 0);
|
|
70
70
|
__decorate([
|
|
71
71
|
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
72
72
|
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
73
|
-
],
|
|
74
|
-
//# sourceMappingURL=resource-status-update.js.map
|
|
73
|
+
], LudeocastResourceStatusUpdate.prototype, "context", void 0);
|
|
74
|
+
//# sourceMappingURL=ludeocast-resource-status-update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ludeocast-resource-status-update.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/ludeocast-resource-status-update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,uCAAkD;AAClD,sFAAyE;AAEzE,MAAa,oCAAoC;CA4BhD;AA5BD,oFA4BC;AAzBC;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;+EACc;AAI3B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;2EACU;AAIvB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4EACW;AAIxB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;wEACO;AAIpB;IAFC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;oEACgB;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qDAAoB,CAAC;;yEACM;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAIlB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;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"}
|
|
@@ -11,6 +11,7 @@ export declare class TerminateGameResourceRequestPayload<T extends CloudProvider
|
|
|
11
11
|
shouldDeallocateMachineResource: boolean;
|
|
12
12
|
attemptNumber?: number;
|
|
13
13
|
buildId: string;
|
|
14
|
+
machineResourceId?: string;
|
|
14
15
|
}
|
|
15
16
|
export declare class TerminateGameResourceRequest extends LudeoEvent {
|
|
16
17
|
static readonly EVENT_NAME = "cloud-pools.terminate-game-resource-request";
|
|
@@ -56,6 +56,11 @@ __decorate([
|
|
|
56
56
|
(0, class_validator_1.IsString)(),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], TerminateGameResourceRequestPayload.prototype, "buildId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], TerminateGameResourceRequestPayload.prototype, "machineResourceId", void 0);
|
|
59
64
|
class TerminateGameResourceRequest extends ludeo_event_1.LudeoEvent {
|
|
60
65
|
constructor(payload, context) {
|
|
61
66
|
super(TerminateGameResourceRequest.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAEzB,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AACrF,oCAOkB;AAElB,MAAa,mCAAmC;
|
|
1
|
+
{"version":3,"file":"terminate-game-resource-request.js","sourceRoot":"","sources":["../../../src/v4/events/terminate-game-resource-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAEzB,0CAIqB;AACrB,yDAAqD;AACrD,oGAAqF;AACrF,oCAOkB;AAElB,MAAa,mCAAmC;CAoC/C;AApCD,kFAoCC;AA/BC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAInB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uEACQ;AAGrB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG7B;IADC,IAAA,mDAAkB,EAAC,+BAAuB,CAAC;;6EACxB;AAGpB;IADC,IAAA,mDAAkB,EAAC,uCAA+B,CAAC;;qFACxB;AAG5B;IADC,IAAA,2BAAS,GAAE;;4FAC6B;AAIzC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACU;AAGvB;IADC,IAAA,0BAAQ,GAAE;;oEACK;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8EACc;AAG7B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAAmD;QAEnD,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,6CAA6C,CAAC;AAY3E;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;6DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
|
@@ -2,5 +2,6 @@ import { TypeHelpOptions } from "class-transformer";
|
|
|
2
2
|
import { AwsAllocationData } from "./aws";
|
|
3
3
|
import { MockAllocationData } from "./mock";
|
|
4
4
|
import { LudeoCastAllocationData } from "./ludeocast";
|
|
5
|
-
|
|
5
|
+
import { LudeoCastV2AllocationData } from "./ludeocast-v2/allocation-data";
|
|
6
|
+
export type CloudProviderAllocationData = AwsAllocationData | MockAllocationData | LudeoCastAllocationData | LudeoCastV2AllocationData;
|
|
6
7
|
export declare const getAllocationDataType: ({ object, property, }: TypeHelpOptions) => typeof AwsAllocationData | typeof MockAllocationData | typeof LudeoCastAllocationData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-data.ts"],"names":[],"mappings":";;;AAEA,+BAA0C;AAC1C,iCAA4C;AAC5C,2CAAsD;
|
|
1
|
+
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-data.ts"],"names":[],"mappings":";;;AAEA,+BAA0C;AAC1C,iCAA4C;AAC5C,2CAAsD;AAS/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,4 +1,5 @@
|
|
|
1
1
|
import { AWSGameCreationResponse } from "./aws";
|
|
2
2
|
import { LudeoCastGameCreationResponse } from "./ludeocast";
|
|
3
|
+
import { LudeoCastV2GameCreationResponse } from "./ludeocast-v2/game-creation-response";
|
|
3
4
|
import { MockGameCreationResponse } from "./mock";
|
|
4
|
-
export type GameCreationResponse = AWSGameCreationResponse | MockGameCreationResponse | LudeoCastGameCreationResponse;
|
|
5
|
+
export type GameCreationResponse = AWSGameCreationResponse | MockGameCreationResponse | LudeoCastGameCreationResponse | LudeoCastV2GameCreationResponse;
|
|
@@ -2,5 +2,6 @@ import { TypeHelpOptions } from "class-transformer";
|
|
|
2
2
|
import { AWSRequestData } from "./aws";
|
|
3
3
|
import { MockRequestData } from "./mock";
|
|
4
4
|
import { LudeoCastRequestData } from "./ludeocast";
|
|
5
|
-
|
|
5
|
+
import { LudeoCastV2RequestData } from "./ludeocast-v2/request-data";
|
|
6
|
+
export type CloudProviderRequest = AWSRequestData | MockRequestData | LudeoCastRequestData | LudeoCastV2RequestData;
|
|
6
7
|
export declare const getProviderRequestType: ({ object, property, }: TypeHelpOptions) => typeof AWSRequestData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-request.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider-request.ts"],"names":[],"mappings":";;;AACA,+BAAuC;AACvC,iCAAyC;AACzC,2CAAmD;
|
|
1
|
+
{"version":3,"file":"provider-request.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider-request.ts"],"names":[],"mappings":";;;AACA,+BAAuC;AACvC,iCAAyC;AACzC,2CAAmD;AAS5C,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"}
|
|
@@ -4,4 +4,4 @@ import { MockProviderSettings } from "./mock";
|
|
|
4
4
|
import { LudeoCastProviderSettings } from "./ludeocast";
|
|
5
5
|
import { LudeoCastV2ProviderSettings } from "./ludeocast-v2/provider-settings";
|
|
6
6
|
export type CloudProviderSettings = AWSProviderSettings | MockProviderSettings | LudeoCastProviderSettings | LudeoCastV2ProviderSettings;
|
|
7
|
-
export declare const getProviderSettingsType: ({ object, property, }: TypeHelpOptions) => typeof MockProviderSettings | typeof LudeoCastProviderSettings;
|
|
7
|
+
export declare const getProviderSettingsType: ({ object, property, }: TypeHelpOptions) => typeof MockProviderSettings | typeof LudeoCastV2ProviderSettings | typeof LudeoCastProviderSettings;
|
|
@@ -4,6 +4,7 @@ exports.getProviderSettingsType = void 0;
|
|
|
4
4
|
const aws_1 = require("./aws");
|
|
5
5
|
const mock_1 = require("./mock");
|
|
6
6
|
const ludeocast_1 = require("./ludeocast");
|
|
7
|
+
const provider_settings_1 = require("./ludeocast-v2/provider-settings");
|
|
7
8
|
const getProviderSettingsType = ({ object, property, }) => {
|
|
8
9
|
const providerSettings = object[property];
|
|
9
10
|
if ("streamGroupId" in providerSettings) {
|
|
@@ -12,6 +13,9 @@ const getProviderSettingsType = ({ object, property, }) => {
|
|
|
12
13
|
if ("machineClass" in providerSettings) {
|
|
13
14
|
return ludeocast_1.LudeoCastProviderSettings;
|
|
14
15
|
}
|
|
16
|
+
if ("mode" in providerSettings) {
|
|
17
|
+
return provider_settings_1.LudeoCastV2ProviderSettings;
|
|
18
|
+
}
|
|
15
19
|
return mock_1.MockProviderSettings;
|
|
16
20
|
};
|
|
17
21
|
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;AAC9C,2CAAwD;
|
|
1
|
+
{"version":3,"file":"provider-settings.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/provider-settings.ts"],"names":[],"mappings":";;;AACA,+BAA4C;AAC5C,iCAA8C;AAC9C,2CAAwD;AACxD,wEAA+E;AAQxE,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,IAAI,MAAM,IAAI,gBAAgB,EAAE,CAAC;QAC/B,OAAO,+CAA2B,CAAC;IACrC,CAAC;IAED,OAAO,2BAAoB,CAAC;AAC9B,CAAC,CAAC;AAlBW,QAAA,uBAAuB,2BAkBlC"}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export * from './machine-ludeocast-termination-ended';
|
|
|
7
7
|
export * from './ludeocast-build-distribution-creation-ended';
|
|
8
8
|
export * from './ludeocast-build-distribution-termination-ended';
|
|
9
9
|
|
|
10
|
-
export * from './resource-status-update';
|
|
10
|
+
export * from './ludeocast-resource-status-update';
|
|
11
11
|
|
|
12
12
|
//commands
|
|
13
13
|
export * from '../base/base';
|
|
@@ -5,7 +5,7 @@ import { CloudResourceContext } from '../../contexts';
|
|
|
5
5
|
import { CloudResourceStatus } from '../../types';
|
|
6
6
|
import { LudeoCastStreamState } from '../ludeocast-stream-state-updated';
|
|
7
7
|
|
|
8
|
-
export class
|
|
8
|
+
export class LudeocastResourceStatusUpdatePayload {
|
|
9
9
|
@IsUUID()
|
|
10
10
|
@IsOptional()
|
|
11
11
|
machineResourceId?: string;
|
|
@@ -36,17 +36,17 @@ export class ResourceStatusUpdatePayload {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
export class
|
|
40
|
-
static readonly EVENT_NAME = 'site-controller.resource-status-update';
|
|
39
|
+
export class LudeocastResourceStatusUpdate extends LudeoEvent {
|
|
40
|
+
static readonly EVENT_NAME = 'site-controller.ludeocast-resource-status-update';
|
|
41
41
|
|
|
42
|
-
constructor(payload:
|
|
43
|
-
super(
|
|
42
|
+
constructor(payload: LudeocastResourceStatusUpdatePayload, context: CloudResourceContext) {
|
|
43
|
+
super(LudeocastResourceStatusUpdate.EVENT_NAME);
|
|
44
44
|
this.payload = payload;
|
|
45
45
|
this.context = context;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
@ValidateNestedType(() =>
|
|
49
|
-
payload:
|
|
48
|
+
@ValidateNestedType(() => LudeocastResourceStatusUpdatePayload)
|
|
49
|
+
payload: LudeocastResourceStatusUpdatePayload;
|
|
50
50
|
|
|
51
51
|
@ValidateNestedType(() => CloudResourceContext)
|
|
52
52
|
context: CloudResourceContext;
|
|
@@ -3,12 +3,14 @@ import { TypeHelpOptions } from "class-transformer";
|
|
|
3
3
|
import { AwsAllocationData } from "./aws";
|
|
4
4
|
import { MockAllocationData } from "./mock";
|
|
5
5
|
import { LudeoCastAllocationData } from "./ludeocast";
|
|
6
|
+
import { LudeoCastV2AllocationData } from "./ludeocast-v2/allocation-data";
|
|
6
7
|
|
|
7
8
|
export type CloudProviderAllocationData =
|
|
8
9
|
| AwsAllocationData
|
|
9
10
|
| MockAllocationData
|
|
10
|
-
| LudeoCastAllocationData
|
|
11
|
-
|
|
11
|
+
| LudeoCastAllocationData
|
|
12
|
+
| LudeoCastV2AllocationData;
|
|
13
|
+
|
|
12
14
|
export const getAllocationDataType = ({
|
|
13
15
|
object,
|
|
14
16
|
property,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AWSGameCreationResponse } from "./aws";
|
|
2
2
|
import { LudeoCastGameCreationResponse } from "./ludeocast";
|
|
3
|
+
import { LudeoCastV2GameCreationResponse } from "./ludeocast-v2/game-creation-response";
|
|
3
4
|
import { MockGameCreationResponse } from "./mock";
|
|
4
5
|
|
|
5
6
|
export type GameCreationResponse =
|
|
6
7
|
| AWSGameCreationResponse
|
|
7
8
|
| MockGameCreationResponse
|
|
8
|
-
| LudeoCastGameCreationResponse
|
|
9
|
+
| LudeoCastGameCreationResponse
|
|
10
|
+
| LudeoCastV2GameCreationResponse;
|
|
@@ -2,11 +2,13 @@ import { TypeHelpOptions } from "class-transformer";
|
|
|
2
2
|
import { AWSRequestData } from "./aws";
|
|
3
3
|
import { MockRequestData } from "./mock";
|
|
4
4
|
import { LudeoCastRequestData } from "./ludeocast";
|
|
5
|
+
import { LudeoCastV2RequestData } from "./ludeocast-v2/request-data";
|
|
5
6
|
|
|
6
7
|
export type CloudProviderRequest =
|
|
7
8
|
| AWSRequestData
|
|
8
9
|
| MockRequestData
|
|
9
|
-
| LudeoCastRequestData
|
|
10
|
+
| LudeoCastRequestData
|
|
11
|
+
| LudeoCastV2RequestData;
|
|
10
12
|
|
|
11
13
|
export const getProviderRequestType = ({
|
|
12
14
|
object,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-status-update.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/resource-status-update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,uCAAkD;AAClD,sFAAyE;AAEzE,MAAa,2BAA2B;CA4BvC;AA5BD,kEA4BC;AAzBC;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;sEACc;AAI3B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;kEACU;AAIvB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;mEACW;AAIxB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;+DACO;AAIpB;IAFC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;2DACgB;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qDAAoB,CAAC;;gEACM;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACK;AAIlB,MAAa,oBAAqB,SAAQ,kBAAU;IAGlD,YAAY,OAAoC,EAAE,OAA6B;QAC7E,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oDAcC;AAbiB,+BAAU,GAAG,wCAAwC,CAAC;AAStE;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC;AAGrC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;qDAAC"}
|