@ludeo/cloud-common 1.2.191-beta-alex-1 → 1.2.191-beta-alex-3
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/ludeocast-agent/resource-update.d.ts +1 -1
- package/dist/v4/events/ludeocast-agent/resource-update.js +1 -0
- package/dist/v4/events/ludeocast-agent/resource-update.js.map +1 -1
- package/dist/v4/events/site-controller/resource-status-update.d.ts +5 -5
- package/dist/v4/events/site-controller/resource-status-update.js +6 -4
- package/dist/v4/events/site-controller/resource-status-update.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/ludeocast-agent/resource-update.ts +2 -1
- package/src/v4/events/site-controller/resource-status-update.ts +8 -7
|
@@ -3,7 +3,7 @@ import { CloudResourceStatus } from '../../types/pools/resource/status';
|
|
|
3
3
|
import { LudeoCastStreamState } from '../ludeocast-stream-state-updated';
|
|
4
4
|
export declare class ResourceUpdatePayload extends BaseCommandPayload {
|
|
5
5
|
gameResourceId?: string;
|
|
6
|
-
status
|
|
6
|
+
status?: CloudResourceStatus;
|
|
7
7
|
streamState?: LudeoCastStreamState;
|
|
8
8
|
reason?: string;
|
|
9
9
|
meta?: Record<string, any>;
|
|
@@ -26,6 +26,7 @@ __decorate([
|
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], ResourceUpdatePayload.prototype, "gameResourceId", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
30
|
(0, class_validator_1.IsEnum)(status_1.CloudResourceStatus),
|
|
30
31
|
__metadata("design:type", String)
|
|
31
32
|
], ResourceUpdatePayload.prototype, "status", void 0);
|
|
@@ -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;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AAG,wBAAY,IAAI,eAAe,EAAE,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
|
-
import {
|
|
2
|
+
import { CloudResourceContext } from '../../contexts';
|
|
3
3
|
import { CloudResourceStatus } from '../../types';
|
|
4
4
|
import { LudeoCastStreamState } from '../ludeocast-stream-state-updated';
|
|
5
5
|
export declare class ResourceStatusUpdatePayload {
|
|
6
6
|
machineResourceId?: string;
|
|
7
7
|
gameResourceId?: string;
|
|
8
|
-
|
|
8
|
+
status?: CloudResourceStatus;
|
|
9
9
|
streamState?: LudeoCastStreamState;
|
|
10
|
-
|
|
10
|
+
reason?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare class ResourceStatusUpdate extends LudeoEvent {
|
|
13
13
|
static readonly EVENT_NAME = "site-controller.resource-status-update";
|
|
14
|
-
constructor(payload: ResourceStatusUpdatePayload, context:
|
|
14
|
+
constructor(payload: ResourceStatusUpdatePayload, context: CloudResourceContext);
|
|
15
15
|
payload: ResourceStatusUpdatePayload;
|
|
16
|
-
context:
|
|
16
|
+
context: CloudResourceContext;
|
|
17
17
|
}
|
|
@@ -13,6 +13,7 @@ exports.ResourceStatusUpdate = exports.ResourceStatusUpdatePayload = 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
17
|
const contexts_1 = require("../../contexts");
|
|
17
18
|
const types_1 = require("../../types");
|
|
18
19
|
const ludeocast_stream_state_updated_1 = require("../ludeocast-stream-state-updated");
|
|
@@ -31,8 +32,9 @@ __decorate([
|
|
|
31
32
|
], ResourceStatusUpdatePayload.prototype, "gameResourceId", void 0);
|
|
32
33
|
__decorate([
|
|
33
34
|
(0, class_validator_1.IsEnum)(types_1.CloudResourceStatus),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
36
|
__metadata("design:type", String)
|
|
35
|
-
], ResourceStatusUpdatePayload.prototype, "
|
|
37
|
+
], ResourceStatusUpdatePayload.prototype, "status", void 0);
|
|
36
38
|
__decorate([
|
|
37
39
|
(0, class_validator_1.IsOptional)(),
|
|
38
40
|
(0, class_validator_1.IsEnum)(ludeocast_stream_state_updated_1.LudeoCastStreamState),
|
|
@@ -42,7 +44,7 @@ __decorate([
|
|
|
42
44
|
(0, class_validator_1.IsOptional)(),
|
|
43
45
|
(0, class_validator_1.IsString)(),
|
|
44
46
|
__metadata("design:type", String)
|
|
45
|
-
], ResourceStatusUpdatePayload.prototype, "
|
|
47
|
+
], ResourceStatusUpdatePayload.prototype, "reason", void 0);
|
|
46
48
|
class ResourceStatusUpdate extends infra_1.LudeoEvent {
|
|
47
49
|
constructor(payload, context) {
|
|
48
50
|
super(ResourceStatusUpdate.EVENT_NAME);
|
|
@@ -57,7 +59,7 @@ __decorate([
|
|
|
57
59
|
__metadata("design:type", ResourceStatusUpdatePayload)
|
|
58
60
|
], ResourceStatusUpdate.prototype, "payload", void 0);
|
|
59
61
|
__decorate([
|
|
60
|
-
(0, decorators_1.ValidateNestedType)(() => contexts_1.
|
|
61
|
-
__metadata("design:type", contexts_1.
|
|
62
|
+
(0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
63
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
62
64
|
], ResourceStatusUpdate.prototype, "context", void 0);
|
|
63
65
|
//# sourceMappingURL=resource-status-update.js.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAAA,CAAC;AACxE,6CAAsD;AACtD,uCAAkD;AAClD,sFAAyE;AAEzE,MAAa,2BAA2B;CAoBvC;AApBD,kEAoBC;AAjBC;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;sEACc;AAI3B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;mEACW;AAIxB;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"}
|
package/package.json
CHANGED
|
@@ -13,8 +13,9 @@ export class ResourceUpdatePayload extends BaseCommandPayload {
|
|
|
13
13
|
@IsUUID()
|
|
14
14
|
gameResourceId?: string;
|
|
15
15
|
|
|
16
|
+
@IsOptional()
|
|
16
17
|
@IsEnum(CloudResourceStatus)
|
|
17
|
-
status
|
|
18
|
+
status?: CloudResourceStatus;
|
|
18
19
|
|
|
19
20
|
@IsOptional()
|
|
20
21
|
@IsEnum(LudeoCastStreamState)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LudeoEvent } from '../../../infra';
|
|
2
2
|
import { ValidateNestedType } from '../../../decorators';
|
|
3
|
-
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator'
|
|
4
|
-
import {
|
|
3
|
+
import { IsEnum, IsOptional, IsString, IsUUID } from 'class-validator';;
|
|
4
|
+
import { CloudResourceContext } from '../../contexts';
|
|
5
5
|
import { CloudResourceStatus } from '../../types';
|
|
6
6
|
import { LudeoCastStreamState } from '../ludeocast-stream-state-updated';
|
|
7
7
|
|
|
@@ -15,7 +15,8 @@ export class ResourceStatusUpdatePayload {
|
|
|
15
15
|
gameResourceId?: string;
|
|
16
16
|
|
|
17
17
|
@IsEnum(CloudResourceStatus)
|
|
18
|
-
|
|
18
|
+
@IsOptional()
|
|
19
|
+
status?: CloudResourceStatus;
|
|
19
20
|
|
|
20
21
|
@IsOptional()
|
|
21
22
|
@IsEnum(LudeoCastStreamState)
|
|
@@ -23,14 +24,14 @@ export class ResourceStatusUpdatePayload {
|
|
|
23
24
|
|
|
24
25
|
@IsOptional()
|
|
25
26
|
@IsString()
|
|
26
|
-
|
|
27
|
+
reason?: string;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
export class ResourceStatusUpdate extends LudeoEvent {
|
|
31
32
|
static readonly EVENT_NAME = 'site-controller.resource-status-update';
|
|
32
33
|
|
|
33
|
-
constructor(payload: ResourceStatusUpdatePayload, context:
|
|
34
|
+
constructor(payload: ResourceStatusUpdatePayload, context: CloudResourceContext) {
|
|
34
35
|
super(ResourceStatusUpdate.EVENT_NAME);
|
|
35
36
|
this.payload = payload;
|
|
36
37
|
this.context = context;
|
|
@@ -39,7 +40,7 @@ export class ResourceStatusUpdate extends LudeoEvent {
|
|
|
39
40
|
@ValidateNestedType(() => ResourceStatusUpdatePayload)
|
|
40
41
|
payload: ResourceStatusUpdatePayload;
|
|
41
42
|
|
|
42
|
-
@ValidateNestedType(() =>
|
|
43
|
-
context:
|
|
43
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
44
|
+
context: CloudResourceContext;
|
|
44
45
|
}
|
|
45
46
|
|