@ludeo/cloud-common 1.2.21 → 1.2.22-ygbeta1

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.
@@ -2,6 +2,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
2
2
  import { CloudResourceContext } from "../contexts";
3
3
  export declare class LudeoResourceLoadingFailedPayload {
4
4
  ludeoResourceId: string;
5
+ errorMessage: string;
5
6
  }
6
7
  export declare class LudeoResourceLoadingFailed extends LudeoEvent {
7
8
  static readonly EVENT_NAME = "cloud-resources.ludeo-resource-loading-failed";
@@ -21,6 +21,10 @@ __decorate([
21
21
  (0, class_validator_1.IsUUID)(),
22
22
  __metadata("design:type", String)
23
23
  ], LudeoResourceLoadingFailedPayload.prototype, "ludeoResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], LudeoResourceLoadingFailedPayload.prototype, "errorMessage", void 0);
24
28
  class LudeoResourceLoadingFailed extends ludeo_event_1.LudeoEvent {
25
29
  constructor(payload, context) {
26
30
  super(LudeoResourceLoadingFailed.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"ludeo-resource-loading-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-loading-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,iCAAiC;CAG7C;AAHD,8EAGC;AADC;IADC,IAAA,wBAAM,GAAE;;0EACe;AAG1B,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA6B;QAE7B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
1
+ {"version":3,"file":"ludeo-resource-loading-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-loading-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;0EACe;AAGxB;IADC,IAAA,0BAAQ,GAAE;;uEACU;AAGvB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA6B;QAE7B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
@@ -5,11 +5,17 @@ export declare class PoolStatusEventBasePool {
5
5
  statusMap: CloudResourcesStatusMap;
6
6
  poolId: string;
7
7
  }
8
+ export declare class PoolStatusEventLudeoPool extends PoolStatusEventBasePool {
9
+ gamePoolId: string;
10
+ ludeoId: string;
11
+ }
8
12
  export declare class PoolStatusEventGamePool extends PoolStatusEventBasePool {
9
13
  machinePoolId: string;
10
14
  }
11
- export declare class PoolStatusEventPayload {
15
+ export declare class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
12
16
  games: PoolStatusEventGamePool[];
17
+ }
18
+ export declare class PoolStatusEventPayload {
13
19
  machines: PoolStatusEventBasePool[];
14
20
  requestId: string;
15
21
  }
@@ -9,7 +9,7 @@ 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.PoolStatusEvent = exports.PoolStatusEventPayload = exports.PoolStatusEventGamePool = exports.PoolStatusEventBasePool = void 0;
12
+ exports.PoolStatusEvent = exports.PoolStatusEventPayload = exports.PoolStatusEventMachinePool = exports.PoolStatusEventGamePool = exports.PoolStatusEventLudeoPool = exports.PoolStatusEventBasePool = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const ludeo_event_1 = require("../../infra/ludeo-event");
15
15
  const types_1 = require("../types");
@@ -25,6 +25,17 @@ __decorate([
25
25
  (0, class_validator_1.IsUUID)(),
26
26
  __metadata("design:type", String)
27
27
  ], PoolStatusEventBasePool.prototype, "poolId", void 0);
28
+ class PoolStatusEventLudeoPool extends PoolStatusEventBasePool {
29
+ }
30
+ exports.PoolStatusEventLudeoPool = PoolStatusEventLudeoPool;
31
+ __decorate([
32
+ (0, class_validator_1.IsString)(),
33
+ __metadata("design:type", String)
34
+ ], PoolStatusEventLudeoPool.prototype, "gamePoolId", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsString)(),
37
+ __metadata("design:type", String)
38
+ ], PoolStatusEventLudeoPool.prototype, "ludeoId", void 0);
28
39
  class PoolStatusEventGamePool extends PoolStatusEventBasePool {
29
40
  }
30
41
  exports.PoolStatusEventGamePool = PoolStatusEventGamePool;
@@ -32,6 +43,9 @@ __decorate([
32
43
  (0, class_validator_1.IsUUID)(),
33
44
  __metadata("design:type", String)
34
45
  ], PoolStatusEventGamePool.prototype, "machinePoolId", void 0);
46
+ class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
47
+ }
48
+ exports.PoolStatusEventMachinePool = PoolStatusEventMachinePool;
35
49
  class PoolStatusEventPayload {
36
50
  }
37
51
  exports.PoolStatusEventPayload = PoolStatusEventPayload;
@@ -1 +1 @@
1
- {"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oCAAuE;AACvE,oGAAqF;AAErF,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AANC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;2DAAC;AAK/B;IADC,IAAA,wBAAM,GAAE;;uDACM;AAGjB,MAAa,uBAAwB,SAAQ,uBAAuB;CAGnE;AAHD,0DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAGxB,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"}
1
+ {"version":3,"file":"pool-status.js","sourceRoot":"","sources":["../../../src/v4/events/pool-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oCAAuE;AACvE,oGAAqF;AAErF,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AANC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;2DAAC;AAK/B;IADC,IAAA,wBAAM,GAAE;;uDACM;AAGjB,MAAa,wBAAyB,SAAQ,uBAAuB;CAMpE;AAND,4DAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;4DACQ;AAGnB;IADC,IAAA,0BAAQ,GAAE;;yDACK;AAGlB,MAAa,uBAAwB,SAAQ,uBAAuB;CAGnE;AAHD,0DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;8DACa;AAGxB,MAAa,0BAA2B,SAAQ,uBAAuB;CAEtE;AAFD,gEAEC;AAED,MAAa,sBAAsB;CAKlC;AALD,wDAKC;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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.21",
3
+ "version": "1.2.22-ygbeta1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,4 +1,4 @@
1
- import { IsUUID } from "class-validator";
1
+ import { IsUUID, IsString } from "class-validator";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
4
4
  import { CloudResourceContext } from "../contexts";
@@ -6,6 +6,9 @@ import { CloudResourceContext } from "../contexts";
6
6
  export class LudeoResourceLoadingFailedPayload {
7
7
  @IsUUID()
8
8
  ludeoResourceId: string;
9
+
10
+ @IsString()
11
+ errorMessage: string;
9
12
  }
10
13
 
11
14
  export class LudeoResourceLoadingFailed extends LudeoEvent {
@@ -14,14 +14,24 @@ export class PoolStatusEventBasePool {
14
14
  poolId: string;
15
15
  }
16
16
 
17
+ export class PoolStatusEventLudeoPool extends PoolStatusEventBasePool {
18
+ @IsString()
19
+ gamePoolId: string;
20
+
21
+ @IsString()
22
+ ludeoId: string;
23
+ }
24
+
17
25
  export class PoolStatusEventGamePool extends PoolStatusEventBasePool {
18
26
  @IsUUID()
19
27
  machinePoolId: string;
20
28
  }
21
29
 
22
- export class PoolStatusEventPayload {
30
+ export class PoolStatusEventMachinePool extends PoolStatusEventBasePool {
23
31
  games: PoolStatusEventGamePool[];
32
+ }
24
33
 
34
+ export class PoolStatusEventPayload {
25
35
  machines: PoolStatusEventBasePool[];
26
36
 
27
37
  @IsUUID()