@ludeo/cloud-common 1.1.104 → 1.1.106
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/v3/events/game-resource-status-changed.d.ts +1 -0
- package/dist/v3/events/game-resource-status-changed.js +4 -0
- package/dist/v3/events/game-resource-status-changed.js.map +1 -1
- package/dist/v3/events/pool-status.d.ts +1 -0
- package/dist/v3/events/pool-status.js +5 -0
- package/dist/v3/events/pool-status.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/game-resource-status-changed.ts +4 -1
- package/src/v3/events/pool-status.ts +5 -0
|
@@ -6,6 +6,7 @@ export declare class GameResourceStatusChangedEventPayload {
|
|
|
6
6
|
gamePoolId: string;
|
|
7
7
|
providerSettings: AWSResourceProviderSettings;
|
|
8
8
|
status: CloudResourceStatus;
|
|
9
|
+
previousStatus: CloudResourceStatus;
|
|
9
10
|
error?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare class GameResourceStatusChangedEvent extends LudeoEvent {
|
|
@@ -34,6 +34,10 @@ __decorate([
|
|
|
34
34
|
(0, class_validator_1.IsString)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], GameResourceStatusChangedEventPayload.prototype, "status", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GameResourceStatusChangedEventPayload.prototype, "previousStatus", void 0);
|
|
37
41
|
__decorate([
|
|
38
42
|
(0, class_validator_1.IsOptional)(),
|
|
39
43
|
(0, class_validator_1.IsString)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-resource-status-changed.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAA4E;AAC5E,oGAAqF;AAErF,MAAa,qCAAqC;
|
|
1
|
+
{"version":3,"file":"game-resource-status-changed.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAA4E;AAC5E,oGAAqF;AAErF,MAAa,qCAAqC;CAmBjD;AAnBD,sFAmBC;AAjBC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;+EAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;qEACiB;AAG5B;IADC,IAAA,0BAAQ,GAAE;;6EACyB;AAIpC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACI;AAGjB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,qDAAqD,CAAC;AAYxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;+DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
|
|
@@ -8,6 +8,7 @@ export type PoolStatusEventPayloadV1 = Record<string, string | number>;
|
|
|
8
8
|
export declare class PoolStatusEventPayload {
|
|
9
9
|
games: PoolStatusEventPayloadV1[];
|
|
10
10
|
machines: PoolStatusEventPayloadV1[];
|
|
11
|
+
requestId: string;
|
|
11
12
|
}
|
|
12
13
|
export declare class PoolStatusEvent extends LudeoEvent {
|
|
13
14
|
static readonly EVENT_NAME = "cloud-pools.pool-status";
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PoolStatusEvent = exports.PoolStatusEventPayload = exports.PoolStatusEventPoolV2 = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
13
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
14
15
|
const types_1 = require("../types");
|
|
15
16
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
@@ -23,6 +24,10 @@ __decorate([
|
|
|
23
24
|
class PoolStatusEventPayload {
|
|
24
25
|
}
|
|
25
26
|
exports.PoolStatusEventPayload = PoolStatusEventPayload;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsUUID)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], PoolStatusEventPayload.prototype, "requestId", void 0);
|
|
26
31
|
class PoolStatusEvent extends ludeo_event_1.LudeoEvent {
|
|
27
32
|
constructor(payload) {
|
|
28
33
|
super(PoolStatusEvent.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v3/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oCAAuE;AACvE,oGAAqF;AAKrF,MAAa,qBAAqB;CAKjC;AALD,sDAKC;AAHC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;yDAAC;AAQjC,MAAa,sBAAsB;
|
|
1
|
+
{"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v3/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,oCAAuE;AACvE,oGAAqF;AAKrF,MAAa,qBAAqB;CAKjC;AALD,sDAKC;AAHC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;yDAAC;AAQjC,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AADC;IADC,IAAA,wBAAM,GAAE;;yDACS;AAGpB,MAAa,eAAgB,SAAQ,wBAAU;IAG7C,YAAY,OAA+B;QACzC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,0CAUC;AATiB,0BAAU,GAAG,yBAAyB,CAAC;AAQvD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BACxC,sBAAsB;gDAAC"}
|
package/package.json
CHANGED
|
@@ -17,6 +17,9 @@ export class GameResourceStatusChangedEventPayload {
|
|
|
17
17
|
@IsString()
|
|
18
18
|
status: CloudResourceStatus;
|
|
19
19
|
|
|
20
|
+
@IsString()
|
|
21
|
+
previousStatus: CloudResourceStatus;
|
|
22
|
+
|
|
20
23
|
@IsOptional()
|
|
21
24
|
@IsString()
|
|
22
25
|
error?: string;
|
|
@@ -28,7 +31,7 @@ export class GameResourceStatusChangedEvent extends LudeoEvent {
|
|
|
28
31
|
|
|
29
32
|
constructor(
|
|
30
33
|
payload: GameResourceStatusChangedEventPayload,
|
|
31
|
-
context: CloudResourceContext
|
|
34
|
+
context: CloudResourceContext,
|
|
32
35
|
) {
|
|
33
36
|
super(GameResourceStatusChangedEvent.EVENT_NAME);
|
|
34
37
|
this.payload = payload;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IsUUID } from "class-validator";
|
|
2
|
+
|
|
1
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
4
|
import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
|
|
3
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
@@ -19,6 +21,9 @@ export class PoolStatusEventPayload {
|
|
|
19
21
|
games: PoolStatusEventPayloadV1[];
|
|
20
22
|
|
|
21
23
|
machines: PoolStatusEventPayloadV1[];
|
|
24
|
+
|
|
25
|
+
@IsUUID()
|
|
26
|
+
requestId: string;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
export class PoolStatusEvent extends LudeoEvent {
|