@ludeo/cloud-common 1.2.183 → 1.2.184-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-resources/create-ludeocast-game-request.d.ts +3 -3
- package/dist/v4/events/cloud-resources/create-ludeocast-game-request.js +2 -2
- 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 +3 -3
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js +2 -2
- package/dist/v4/events/cloud-resources/create-ludeocast-machine-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.d.ts +3 -3
- package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.js +2 -2
- package/dist/v4/events/cloud-resources/terminate-ludeocast-game-request.js.map +1 -1
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.d.ts +3 -3
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js +2 -2
- package/dist/v4/events/cloud-resources/terminate-ludeocast-machine-request.js.map +1 -1
- package/dist/v4/events/ludeocast-agent/resource-update.d.ts +2 -0
- package/dist/v4/events/ludeocast-agent/resource-update.js +6 -0
- package/dist/v4/events/ludeocast-agent/resource-update.js.map +1 -1
- package/dist/v4/events/site-controller/game-ludeocast-creation-ended.d.ts +10 -8
- package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js +21 -16
- package/dist/v4/events/site-controller/game-ludeocast-creation-ended.js.map +1 -1
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.d.ts +10 -8
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.js +21 -16
- package/dist/v4/events/site-controller/machine-ludeocast-creation-ended.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/package.json +1 -1
- package/src/v4/events/cloud-resources/create-ludeocast-game-request.ts +4 -4
- package/src/v4/events/cloud-resources/create-ludeocast-machine-request.ts +4 -4
- package/src/v4/events/cloud-resources/terminate-ludeocast-game-request.ts +4 -4
- package/src/v4/events/cloud-resources/terminate-ludeocast-machine-request.ts +4 -4
- package/src/v4/events/ludeocast-agent/resource-update.ts +5 -0
- package/src/v4/events/site-controller/game-ludeocast-creation-ended.ts +15 -11
- package/src/v4/events/site-controller/machine-ludeocast-creation-ended.ts +15 -11
- package/src/v4/types/cloud/provider.ts +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { GameCreationPayload } from '../../types/site-controller';
|
|
3
|
-
import {
|
|
3
|
+
import { CloudResourceContext } from '../../contexts';
|
|
4
4
|
export declare class CreateLudeocastGameRequestPayload {
|
|
5
5
|
machineResourceId: string;
|
|
6
6
|
gameResourceId: string;
|
|
@@ -11,7 +11,7 @@ export declare class CreateLudeocastGameRequestPayload {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class CreateLudeocastGameRequest extends LudeoEvent {
|
|
13
13
|
static readonly EVENT_NAME = "cloud-resources.create-ludeocast-game-request";
|
|
14
|
-
constructor(payload: CreateLudeocastGameRequestPayload, context:
|
|
14
|
+
constructor(payload: CreateLudeocastGameRequestPayload, context: CloudResourceContext);
|
|
15
15
|
payload: CreateLudeocastGameRequestPayload;
|
|
16
|
-
context:
|
|
16
|
+
context: CloudResourceContext;
|
|
17
17
|
}
|
|
@@ -52,7 +52,7 @@ __decorate([
|
|
|
52
52
|
__metadata("design:type", CreateLudeocastGameRequestPayload)
|
|
53
53
|
], CreateLudeocastGameRequest.prototype, "payload", void 0);
|
|
54
54
|
__decorate([
|
|
55
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.
|
|
56
|
-
__metadata("design:type", contexts_1.
|
|
55
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
56
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
57
57
|
], CreateLudeocastGameRequest.prototype, "context", void 0);
|
|
58
58
|
//# sourceMappingURL=create-ludeocast-game-request.js.map
|
|
@@ -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,qDAA+D;AAE/D,
|
|
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;AAEtD,MAAa,iCAAiC;CAkB7C;AAlBD,8EAkBC;AAhBC;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;yEACc;AAKvB;IADC,IAAA,0BAAQ,GAAE;;+DACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;iEACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACQ;AAGnB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAA6B;QACnF,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gEAcC;AAbiB,qCAAU,GAAG,+CAA+C,CAAC;AAS7E;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
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { MachineMode } from '../../types/site-controller';
|
|
3
|
-
import {
|
|
3
|
+
import { CloudResourceContext } from '../../contexts';
|
|
4
4
|
export declare class AndroidMachineCreationPayload {
|
|
5
5
|
}
|
|
6
6
|
export type MachineCreationPayload = AndroidMachineCreationPayload;
|
|
@@ -14,7 +14,7 @@ export declare class CreateLudeocastMachineRequestPayload {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
16
16
|
static readonly EVENT_NAME = "cloud-resources.create-ludeocast-machine-request";
|
|
17
|
-
constructor(payload: CreateLudeocastMachineRequestPayload, context:
|
|
17
|
+
constructor(payload: CreateLudeocastMachineRequestPayload, context: CloudResourceContext);
|
|
18
18
|
payload: CreateLudeocastMachineRequestPayload;
|
|
19
|
-
context:
|
|
19
|
+
context: CloudResourceContext;
|
|
20
20
|
}
|
|
@@ -60,7 +60,7 @@ __decorate([
|
|
|
60
60
|
__metadata("design:type", CreateLudeocastMachineRequestPayload)
|
|
61
61
|
], CreateLudeocastMachineRequest.prototype, "payload", void 0);
|
|
62
62
|
__decorate([
|
|
63
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.
|
|
64
|
-
__metadata("design:type", contexts_1.
|
|
63
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
64
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
65
65
|
], CreateLudeocastMachineRequest.prototype, "context", void 0);
|
|
66
66
|
//# sourceMappingURL=create-ludeocast-machine-request.js.map
|
|
@@ -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,qDAAuE;AACvE,iEAA0D;AAC1D,
|
|
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,qDAAuE;AACvE,iEAA0D;AAC1D,6CAAsD;AAEtD,MAAa,6BAA6B;CAAG;AAA7C,sEAA6C;AAI7C,MAAa,oCAAoC;CAmBhD;AAnBD,oFAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,EAAC,6BAAW,CAAC;;kEACF;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;;oFACR;AAGhD;IADC,IAAA,0BAAQ,GAAE;;kEACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;oEACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;yEACS;AAGtB,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import {
|
|
2
|
+
import { CloudResourceContext } from '../../contexts';
|
|
3
3
|
export declare class TerminateLudeocastGameRequestPayload {
|
|
4
4
|
machineResourceId: string;
|
|
5
5
|
gameResourceId: string;
|
|
@@ -8,7 +8,7 @@ export declare class TerminateLudeocastGameRequestPayload {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class TerminateLudeocastGameRequest extends LudeoEvent {
|
|
10
10
|
static readonly EVENT_NAME = "cloud-resources.terminate-ludeocast-game-request";
|
|
11
|
-
constructor(payload: TerminateLudeocastGameRequestPayload, context:
|
|
11
|
+
constructor(payload: TerminateLudeocastGameRequestPayload, context: CloudResourceContext);
|
|
12
12
|
payload: TerminateLudeocastGameRequestPayload;
|
|
13
|
-
context:
|
|
13
|
+
context: CloudResourceContext;
|
|
14
14
|
}
|
|
@@ -47,7 +47,7 @@ __decorate([
|
|
|
47
47
|
__metadata("design:type", TerminateLudeocastGameRequestPayload)
|
|
48
48
|
], TerminateLudeocastGameRequest.prototype, "payload", void 0);
|
|
49
49
|
__decorate([
|
|
50
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.
|
|
51
|
-
__metadata("design:type", contexts_1.
|
|
50
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
51
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
52
52
|
], TerminateLudeocastGameRequest.prototype, "context", void 0);
|
|
53
53
|
//# sourceMappingURL=terminate-ludeocast-game-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminate-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"terminate-ludeocast-game-request.js","sourceRoot":"","sources":["../../../../src/v4/events/cloud-resources/terminate-ludeocast-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAmD;AACnD,6CAAsD;AAEtD,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;kEACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;oEACI;AAGjB,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import {
|
|
2
|
+
import { CloudResourceContext } from '../../contexts';
|
|
3
3
|
export declare class TerminateLudeocastMachineRequestPayload {
|
|
4
4
|
machineResourceId: string;
|
|
5
5
|
site: string;
|
|
@@ -7,7 +7,7 @@ export declare class TerminateLudeocastMachineRequestPayload {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
9
9
|
static readonly EVENT_NAME = "cloud-resources.terminate-ludeocast-machine-request";
|
|
10
|
-
constructor(payload: TerminateLudeocastMachineRequestPayload, context:
|
|
10
|
+
constructor(payload: TerminateLudeocastMachineRequestPayload, context: CloudResourceContext);
|
|
11
11
|
payload: TerminateLudeocastMachineRequestPayload;
|
|
12
|
-
context:
|
|
12
|
+
context: CloudResourceContext;
|
|
13
13
|
}
|
|
@@ -43,7 +43,7 @@ __decorate([
|
|
|
43
43
|
__metadata("design:type", TerminateLudeocastMachineRequestPayload)
|
|
44
44
|
], TerminateLudeocastMachineRequest.prototype, "payload", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.
|
|
47
|
-
__metadata("design:type", contexts_1.
|
|
46
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
47
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
48
48
|
], TerminateLudeocastMachineRequest.prototype, "context", void 0);
|
|
49
49
|
//# sourceMappingURL=terminate-ludeocast-machine-request.js.map
|
|
@@ -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,qDAAmD;AACnD,
|
|
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;AAEtD,MAAa,uCAAuC;CASnD;AATD,0FASC;AAPC;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,0BAAQ,GAAE;;qEACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;uEACI;AAGjB,MAAa,gCAAiC,SAAQ,kBAAU;IAG9D,YAAY,OAAgD,EAAE,OAA6B;QACzF,KAAK,CAAC,gCAAgC,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,4EAcC;AAbiB,2CAAU,GAAG,qDAAqD,CAAC;AASnF;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"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { BaseCommand, BaseCommandPayload } from '../base/base';
|
|
2
2
|
import { CloudResourceStatus } from '../../types/pools/resource/status';
|
|
3
|
+
import { LudeoCastStreamState } from '../ludeocast-stream-state-updated';
|
|
3
4
|
export declare class ResourceUpdatePayload extends BaseCommandPayload {
|
|
4
5
|
gameResourceId?: string;
|
|
5
6
|
status: CloudResourceStatus;
|
|
7
|
+
streamState?: LudeoCastStreamState;
|
|
6
8
|
reason?: string;
|
|
7
9
|
meta?: Record<string, any>;
|
|
8
10
|
}
|
|
@@ -15,6 +15,7 @@ const base_1 = require("../base/base");
|
|
|
15
15
|
const status_1 = require("../../types/pools/resource/status");
|
|
16
16
|
const validate_nested_type_decorator_1 = require("../../../decorators/validate-nested-type.decorator");
|
|
17
17
|
const constants_1 = require("../base/constants");
|
|
18
|
+
const ludeocast_stream_state_updated_1 = require("../ludeocast-stream-state-updated");
|
|
18
19
|
const RESOURCE_UPDATE = 'resource-update';
|
|
19
20
|
class ResourceUpdatePayload extends base_1.BaseCommandPayload {
|
|
20
21
|
}
|
|
@@ -28,6 +29,11 @@ __decorate([
|
|
|
28
29
|
(0, class_validator_1.IsEnum)(status_1.CloudResourceStatus),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
31
|
], ResourceUpdatePayload.prototype, "status", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsEnum)(ludeocast_stream_state_updated_1.LudeoCastStreamState),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ResourceUpdatePayload.prototype, "streamState", void 0);
|
|
31
37
|
__decorate([
|
|
32
38
|
(0, class_validator_1.IsOptional)(),
|
|
33
39
|
(0, class_validator_1.IsString)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-update.js","sourceRoot":"","sources":["../../../../src/v4/events/ludeocast-agent/resource-update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,uCAA+D;AAC/D,8DAAwE;AACxE,uGAAwF;AACxF,iDAAuE;
|
|
1
|
+
{"version":3,"file":"resource-update.js","sourceRoot":"","sources":["../../../../src/v4/events/ludeocast-agent/resource-update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,uCAA+D;AAC/D,8DAAwE;AACxE,uGAAwF;AACxF,iDAAuE;AACvE,sFAAyE;AAGzE,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAE1C,MAAa,qBAAsB,SAAQ,yBAAkB;CAkB5D;AAlBD,sDAkBC;AAfC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6DACe;AAGxB;IADC,IAAA,wBAAM,EAAC,4BAAmB,CAAC;;qDACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qDAAoB,CAAC;;0DACM;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACK;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACc;AAG7B,MAAa,cAAe,SAAQ,kBAAkC;IAKpE,YAAY,OAA8B;QACxC,KAAK,CAAC,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,QAAQ;QACN,OAAM,GAAG,wBAAY,IAAI,eAAe,IAAI,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAA;IAC9E,CAAC;CACF;AAZD,wCAYC;AATC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;8BACvC,qBAAqB;+CAAC;AAWpB,QAAA,iCAAiC,GAAG,gCAAgC,wBAAY,IAAI,eAAe,IAAI,gCAAoB,EAAE,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import {
|
|
2
|
+
import { CloudResourceContext } from '../../contexts';
|
|
3
3
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
-
|
|
4
|
+
import { CloudResourceStatus } from '../../types/pools';
|
|
5
|
+
export declare class GameLudeocastCreationEndedPayload {
|
|
5
6
|
gameResourceId: string;
|
|
6
|
-
|
|
7
|
+
operationStatus: SiteOperationStatus;
|
|
8
|
+
status: CloudResourceStatus;
|
|
7
9
|
reason?: string;
|
|
8
10
|
}
|
|
9
|
-
export declare class
|
|
10
|
-
static readonly EVENT_NAME = "site-controller.game-creation-ended";
|
|
11
|
-
constructor(payload:
|
|
12
|
-
payload:
|
|
13
|
-
context:
|
|
11
|
+
export declare class GameLudeocastCreationEnded extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "site-controller.game-ludeocast-creation-ended";
|
|
13
|
+
constructor(payload: GameLudeocastCreationEndedPayload, context: CloudResourceContext);
|
|
14
|
+
payload: GameLudeocastCreationEndedPayload;
|
|
15
|
+
context: CloudResourceContext;
|
|
14
16
|
}
|
|
@@ -9,43 +9,48 @@ 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.GameLudeocastCreationEnded = exports.GameLudeocastCreationEndedPayload = 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 site_controller_1 = require("../../types/site-controller");
|
|
18
|
-
|
|
18
|
+
const pools_1 = require("../../types/pools");
|
|
19
|
+
class GameLudeocastCreationEndedPayload {
|
|
19
20
|
}
|
|
20
|
-
exports.
|
|
21
|
+
exports.GameLudeocastCreationEndedPayload = GameLudeocastCreationEndedPayload;
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, class_validator_1.IsUUID)(),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
25
|
+
], GameLudeocastCreationEndedPayload.prototype, "gameResourceId", void 0);
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
29
|
+
], GameLudeocastCreationEndedPayload.prototype, "operationStatus", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], GameLudeocastCreationEndedPayload.prototype, "status", void 0);
|
|
29
34
|
__decorate([
|
|
30
35
|
(0, class_validator_1.IsOptional)(),
|
|
31
36
|
(0, class_validator_1.IsString)(),
|
|
32
37
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
34
|
-
class
|
|
38
|
+
], GameLudeocastCreationEndedPayload.prototype, "reason", void 0);
|
|
39
|
+
class GameLudeocastCreationEnded extends infra_1.LudeoEvent {
|
|
35
40
|
constructor(payload, context) {
|
|
36
|
-
super(
|
|
41
|
+
super(GameLudeocastCreationEnded.EVENT_NAME);
|
|
37
42
|
this.payload = payload;
|
|
38
43
|
this.context = context;
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
|
-
exports.
|
|
42
|
-
|
|
46
|
+
exports.GameLudeocastCreationEnded = GameLudeocastCreationEnded;
|
|
47
|
+
GameLudeocastCreationEnded.EVENT_NAME = 'site-controller.game-ludeocast-creation-ended';
|
|
43
48
|
__decorate([
|
|
44
|
-
(0, decorators_1.ValidateNestedType)(() =>
|
|
45
|
-
__metadata("design:type",
|
|
46
|
-
],
|
|
49
|
+
(0, decorators_1.ValidateNestedType)(() => GameLudeocastCreationEndedPayload),
|
|
50
|
+
__metadata("design:type", GameLudeocastCreationEndedPayload)
|
|
51
|
+
], GameLudeocastCreationEnded.prototype, "payload", void 0);
|
|
47
52
|
__decorate([
|
|
48
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.
|
|
49
|
-
__metadata("design:type", contexts_1.
|
|
50
|
-
],
|
|
53
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
54
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
55
|
+
], GameLudeocastCreationEnded.prototype, "context", void 0);
|
|
51
56
|
//# sourceMappingURL=game-ludeocast-creation-ended.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"game-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/game-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,iCAAiC;CAa7C;AAbD,8EAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGvB;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;0EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;iEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACK;AAGlB,MAAa,0BAA2B,SAAQ,kBAAU;IAGxD,YAAY,OAA0C,EAAE,OAA6B;QACnF,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,gEAcC;AAbiB,qCAAU,GAAG,+CAA+C,CAAC;AAS7E;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,14 +1,16 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import {
|
|
2
|
+
import { CloudResourceContext } from '../../contexts';
|
|
3
3
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
4
|
-
|
|
4
|
+
import { CloudResourceStatus } from '../../types/pools';
|
|
5
|
+
export declare class MachineLudeocastCreationEndedPayload {
|
|
5
6
|
machineResourceId: string;
|
|
6
|
-
|
|
7
|
+
operationStatus: SiteOperationStatus;
|
|
8
|
+
status: CloudResourceStatus;
|
|
7
9
|
reason?: string;
|
|
8
10
|
}
|
|
9
|
-
export declare class
|
|
10
|
-
static readonly EVENT_NAME = "site-controller.machine-creation-ended";
|
|
11
|
-
constructor(payload:
|
|
12
|
-
payload:
|
|
13
|
-
context:
|
|
11
|
+
export declare class MachineLudeocastCreationEnded extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "site-controller.machine-ludeocast-creation-ended";
|
|
13
|
+
constructor(payload: MachineLudeocastCreationEndedPayload, context: CloudResourceContext);
|
|
14
|
+
payload: MachineLudeocastCreationEndedPayload;
|
|
15
|
+
context: CloudResourceContext;
|
|
14
16
|
}
|
|
@@ -9,43 +9,48 @@ 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.MachineLudeocastCreationEnded = exports.MachineLudeocastCreationEndedPayload = 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 site_controller_1 = require("../../types/site-controller");
|
|
18
|
-
|
|
18
|
+
const pools_1 = require("../../types/pools");
|
|
19
|
+
class MachineLudeocastCreationEndedPayload {
|
|
19
20
|
}
|
|
20
|
-
exports.
|
|
21
|
+
exports.MachineLudeocastCreationEndedPayload = MachineLudeocastCreationEndedPayload;
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, class_validator_1.IsUUID)(),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
25
|
+
], MachineLudeocastCreationEndedPayload.prototype, "machineResourceId", void 0);
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, class_validator_1.IsEnum)(site_controller_1.SiteOperationStatus),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
29
|
+
], MachineLudeocastCreationEndedPayload.prototype, "operationStatus", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(pools_1.CloudResourceStatus),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], MachineLudeocastCreationEndedPayload.prototype, "status", void 0);
|
|
29
34
|
__decorate([
|
|
30
35
|
(0, class_validator_1.IsOptional)(),
|
|
31
36
|
(0, class_validator_1.IsString)(),
|
|
32
37
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
34
|
-
class
|
|
38
|
+
], MachineLudeocastCreationEndedPayload.prototype, "reason", void 0);
|
|
39
|
+
class MachineLudeocastCreationEnded extends infra_1.LudeoEvent {
|
|
35
40
|
constructor(payload, context) {
|
|
36
|
-
super(
|
|
41
|
+
super(MachineLudeocastCreationEnded.EVENT_NAME);
|
|
37
42
|
this.payload = payload;
|
|
38
43
|
this.context = context;
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
|
-
exports.
|
|
42
|
-
|
|
46
|
+
exports.MachineLudeocastCreationEnded = MachineLudeocastCreationEnded;
|
|
47
|
+
MachineLudeocastCreationEnded.EVENT_NAME = 'site-controller.machine-ludeocast-creation-ended';
|
|
43
48
|
__decorate([
|
|
44
|
-
(0, decorators_1.ValidateNestedType)(() =>
|
|
45
|
-
__metadata("design:type",
|
|
46
|
-
],
|
|
49
|
+
(0, decorators_1.ValidateNestedType)(() => MachineLudeocastCreationEndedPayload),
|
|
50
|
+
__metadata("design:type", MachineLudeocastCreationEndedPayload)
|
|
51
|
+
], MachineLudeocastCreationEnded.prototype, "payload", void 0);
|
|
47
52
|
__decorate([
|
|
48
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.
|
|
49
|
-
__metadata("design:type", contexts_1.
|
|
50
|
-
],
|
|
53
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
54
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
55
|
+
], MachineLudeocastCreationEnded.prototype, "context", void 0);
|
|
51
56
|
//# sourceMappingURL=machine-ludeocast-creation-ended.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"machine-ludeocast-creation-ended.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/machine-ludeocast-creation-ended.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAC5C,oDAAyD;AACzD,qDAAuE;AACvE,6CAAsD;AACtD,iEAAkE;AAClE,6CAAwD;AAExD,MAAa,oCAAoC;CAahD;AAbD,oFAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;6EACS;AAGrC;IADC,IAAA,wBAAM,EAAC,2BAAmB,CAAC;;oEACA;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACK;AAGlB,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"}
|
|
@@ -6,6 +6,7 @@ var CloudProvider;
|
|
|
6
6
|
CloudProvider["AWS"] = "aws";
|
|
7
7
|
CloudProvider["NVIDIA"] = "nvidia";
|
|
8
8
|
CloudProvider["LUDEOCAST"] = "ludeocast";
|
|
9
|
+
CloudProvider["LUDEOCAST_V2"] = "ludeocast-v2";
|
|
9
10
|
CloudProvider["MOCK"] = "mock";
|
|
10
11
|
CloudProvider["GAMELIFT"] = "gamelift";
|
|
11
12
|
})(CloudProvider || (exports.CloudProvider = CloudProvider = {}));
|
|
@@ -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,aAOX;AAPD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,8CAA6B,CAAA;IAC7B,8BAAa,CAAA;IACb,sCAAqB,CAAA;AACvB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { LudeoEvent } from '../../../infra';
|
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsString, IsUUID, IsOptional } from 'class-validator';
|
|
4
4
|
import { GameCreationPayload } from '../../types/site-controller';
|
|
5
|
-
import {
|
|
5
|
+
import { CloudResourceContext } from '../../contexts';
|
|
6
6
|
|
|
7
7
|
export class CreateLudeocastGameRequestPayload {
|
|
8
8
|
@IsUUID()
|
|
@@ -27,7 +27,7 @@ export class CreateLudeocastGameRequestPayload {
|
|
|
27
27
|
export class CreateLudeocastGameRequest extends LudeoEvent {
|
|
28
28
|
static readonly EVENT_NAME = 'cloud-resources.create-ludeocast-game-request';
|
|
29
29
|
|
|
30
|
-
constructor(payload: CreateLudeocastGameRequestPayload, context:
|
|
30
|
+
constructor(payload: CreateLudeocastGameRequestPayload, context: CloudResourceContext) {
|
|
31
31
|
super(CreateLudeocastGameRequest.EVENT_NAME);
|
|
32
32
|
this.payload = payload;
|
|
33
33
|
this.context = context;
|
|
@@ -36,7 +36,7 @@ export class CreateLudeocastGameRequest extends LudeoEvent {
|
|
|
36
36
|
@ValidateNestedType(() => CreateLudeocastGameRequestPayload)
|
|
37
37
|
payload: CreateLudeocastGameRequestPayload;
|
|
38
38
|
|
|
39
|
-
@ValidateNestedType(() =>
|
|
40
|
-
context:
|
|
39
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
40
|
+
context: CloudResourceContext;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -2,7 +2,7 @@ import { LudeoEvent } from '../../../infra';
|
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
4
|
import { MachineMode } from '../../types/site-controller';
|
|
5
|
-
import {
|
|
5
|
+
import { CloudResourceContext } from '../../contexts';
|
|
6
6
|
|
|
7
7
|
export class AndroidMachineCreationPayload {}
|
|
8
8
|
|
|
@@ -32,7 +32,7 @@ export class CreateLudeocastMachineRequestPayload {
|
|
|
32
32
|
export class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
33
33
|
static readonly EVENT_NAME = 'cloud-resources.create-ludeocast-machine-request';
|
|
34
34
|
|
|
35
|
-
constructor(payload: CreateLudeocastMachineRequestPayload, context:
|
|
35
|
+
constructor(payload: CreateLudeocastMachineRequestPayload, context: CloudResourceContext) {
|
|
36
36
|
super(CreateLudeocastMachineRequest.EVENT_NAME);
|
|
37
37
|
this.payload = payload;
|
|
38
38
|
this.context = context;
|
|
@@ -41,7 +41,7 @@ export class CreateLudeocastMachineRequest extends LudeoEvent {
|
|
|
41
41
|
@ValidateNestedType(() => CreateLudeocastMachineRequestPayload)
|
|
42
42
|
payload: CreateLudeocastMachineRequestPayload;
|
|
43
43
|
|
|
44
|
-
@ValidateNestedType(() =>
|
|
45
|
-
context:
|
|
44
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
45
|
+
context: CloudResourceContext;
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsString, IsUUID } from 'class-validator';
|
|
4
|
-
import {
|
|
4
|
+
import { CloudResourceContext } from '../../contexts';
|
|
5
5
|
|
|
6
6
|
export class TerminateLudeocastGameRequestPayload {
|
|
7
7
|
@IsUUID()
|
|
@@ -20,7 +20,7 @@ export class TerminateLudeocastGameRequestPayload {
|
|
|
20
20
|
export class TerminateLudeocastGameRequest extends LudeoEvent {
|
|
21
21
|
static readonly EVENT_NAME = 'cloud-resources.terminate-ludeocast-game-request';
|
|
22
22
|
|
|
23
|
-
constructor(payload: TerminateLudeocastGameRequestPayload, context:
|
|
23
|
+
constructor(payload: TerminateLudeocastGameRequestPayload, context: CloudResourceContext) {
|
|
24
24
|
super(TerminateLudeocastGameRequest.EVENT_NAME);
|
|
25
25
|
this.payload = payload;
|
|
26
26
|
this.context = context;
|
|
@@ -29,7 +29,7 @@ export class TerminateLudeocastGameRequest extends LudeoEvent {
|
|
|
29
29
|
@ValidateNestedType(() => TerminateLudeocastGameRequestPayload)
|
|
30
30
|
payload: TerminateLudeocastGameRequestPayload;
|
|
31
31
|
|
|
32
|
-
@ValidateNestedType(() =>
|
|
33
|
-
context:
|
|
32
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
33
|
+
context: CloudResourceContext;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsString, IsUUID } from 'class-validator';
|
|
4
|
-
import {
|
|
4
|
+
import { CloudResourceContext } from '../../contexts';
|
|
5
5
|
|
|
6
6
|
export class TerminateLudeocastMachineRequestPayload {
|
|
7
7
|
@IsUUID()
|
|
@@ -17,7 +17,7 @@ export class TerminateLudeocastMachineRequestPayload {
|
|
|
17
17
|
export class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
18
18
|
static readonly EVENT_NAME = 'cloud-resources.terminate-ludeocast-machine-request';
|
|
19
19
|
|
|
20
|
-
constructor(payload: TerminateLudeocastMachineRequestPayload, context:
|
|
20
|
+
constructor(payload: TerminateLudeocastMachineRequestPayload, context: CloudResourceContext) {
|
|
21
21
|
super(TerminateLudeocastMachineRequest.EVENT_NAME);
|
|
22
22
|
this.payload = payload;
|
|
23
23
|
this.context = context;
|
|
@@ -26,7 +26,7 @@ export class TerminateLudeocastMachineRequest extends LudeoEvent {
|
|
|
26
26
|
@ValidateNestedType(() => TerminateLudeocastMachineRequestPayload)
|
|
27
27
|
payload: TerminateLudeocastMachineRequestPayload;
|
|
28
28
|
|
|
29
|
-
@ValidateNestedType(() =>
|
|
30
|
-
context:
|
|
29
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
30
|
+
context: CloudResourceContext;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -3,6 +3,7 @@ import { BaseCommand, BaseCommandPayload } from '../base/base';
|
|
|
3
3
|
import { CloudResourceStatus } from '../../types/pools/resource/status';
|
|
4
4
|
import { ValidateNestedType } from '../../../decorators/validate-nested-type.decorator';
|
|
5
5
|
import { AGENT_STRING, WILDCARD_MQTT_STRING } from '../base/constants';
|
|
6
|
+
import { LudeoCastStreamState } from '../ludeocast-stream-state-updated';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
const RESOURCE_UPDATE = 'resource-update';
|
|
@@ -15,6 +16,10 @@ export class ResourceUpdatePayload extends BaseCommandPayload {
|
|
|
15
16
|
@IsEnum(CloudResourceStatus)
|
|
16
17
|
status: CloudResourceStatus;
|
|
17
18
|
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsEnum(LudeoCastStreamState)
|
|
21
|
+
streamState?: LudeoCastStreamState;
|
|
22
|
+
|
|
18
23
|
@IsOptional()
|
|
19
24
|
@IsString()
|
|
20
25
|
reason?: string;
|
|
@@ -1,34 +1,38 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
3
|
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';
|
|
4
|
-
import {
|
|
4
|
+
import { CloudResourceContext } from '../../contexts';
|
|
5
5
|
import { SiteOperationStatus } from '../../types/site-controller';
|
|
6
|
+
import { CloudResourceStatus } from '../../types/pools';
|
|
6
7
|
|
|
7
|
-
export class
|
|
8
|
+
export class GameLudeocastCreationEndedPayload {
|
|
8
9
|
@IsUUID()
|
|
9
10
|
gameResourceId: string;
|
|
10
11
|
|
|
11
12
|
@IsEnum(SiteOperationStatus)
|
|
12
|
-
|
|
13
|
+
operationStatus: SiteOperationStatus;
|
|
14
|
+
|
|
15
|
+
@IsEnum(CloudResourceStatus)
|
|
16
|
+
status: CloudResourceStatus;
|
|
13
17
|
|
|
14
18
|
@IsOptional()
|
|
15
19
|
@IsString()
|
|
16
20
|
reason?: string;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
|
-
export class
|
|
20
|
-
static readonly EVENT_NAME = 'site-controller.game-creation-ended';
|
|
23
|
+
export class GameLudeocastCreationEnded extends LudeoEvent {
|
|
24
|
+
static readonly EVENT_NAME = 'site-controller.game-ludeocast-creation-ended';
|
|
21
25
|
|
|
22
|
-
constructor(payload:
|
|
23
|
-
super(
|
|
26
|
+
constructor(payload: GameLudeocastCreationEndedPayload, context: CloudResourceContext) {
|
|
27
|
+
super(GameLudeocastCreationEnded.EVENT_NAME);
|
|
24
28
|
this.payload = payload;
|
|
25
29
|
this.context = context;
|
|
26
30
|
}
|
|
27
31
|
|
|
28
|
-
@ValidateNestedType(() =>
|
|
29
|
-
payload:
|
|
32
|
+
@ValidateNestedType(() => GameLudeocastCreationEndedPayload)
|
|
33
|
+
payload: GameLudeocastCreationEndedPayload;
|
|
30
34
|
|
|
31
|
-
@ValidateNestedType(() =>
|
|
32
|
-
context:
|
|
35
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
36
|
+
context: CloudResourceContext;
|
|
33
37
|
}
|
|
34
38
|
|