@ludeo/cloud-common 1.1.131 → 1.1.132

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.
@@ -1,13 +1,12 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
2
  import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
3
- export declare class PoolStatusEventPoolV2 {
3
+ export declare class PoolStatusEventPool {
4
4
  attributes: BasePoolAttributes;
5
5
  statusMap: CloudResourcesStatusMap;
6
6
  }
7
- export type PoolStatusEventPayloadV1 = Record<string, string | number>;
8
7
  export declare class PoolStatusEventPayload {
9
- games: PoolStatusEventPayloadV1[];
10
- machines: PoolStatusEventPayloadV1[];
8
+ games: PoolStatusEventPool[];
9
+ machines: PoolStatusEventPool[];
11
10
  requestId: string;
12
11
  }
13
12
  export declare class PoolStatusEvent extends LudeoEvent {
@@ -9,18 +9,18 @@ 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.PoolStatusEventPoolV2 = void 0;
12
+ exports.PoolStatusEvent = exports.PoolStatusEventPayload = exports.PoolStatusEventPool = 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");
16
16
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
- class PoolStatusEventPoolV2 {
17
+ class PoolStatusEventPool {
18
18
  }
19
- exports.PoolStatusEventPoolV2 = PoolStatusEventPoolV2;
19
+ exports.PoolStatusEventPool = PoolStatusEventPool;
20
20
  __decorate([
21
21
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.BasePoolAttributes),
22
22
  __metadata("design:type", types_1.BasePoolAttributes)
23
- ], PoolStatusEventPoolV2.prototype, "attributes", void 0);
23
+ ], PoolStatusEventPool.prototype, "attributes", void 0);
24
24
  class PoolStatusEventPayload {
25
25
  }
26
26
  exports.PoolStatusEventPayload = PoolStatusEventPayload;
@@ -1 +1 @@
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"}
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,mBAAmB;CAK/B;AALD,kDAKC;AAHC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;uDAAC;AAKjC,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.131",
3
+ "version": "1.1.132",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -7,20 +7,17 @@ import { ValidateNestedType } from "../../decorators/validate-nested-type.decora
7
7
  /**
8
8
  * Will be used later on in a newer version of the predictor
9
9
  */
10
- export class PoolStatusEventPoolV2 {
10
+ export class PoolStatusEventPool {
11
11
  @ValidateNestedType(() => BasePoolAttributes)
12
12
  attributes: BasePoolAttributes;
13
13
 
14
14
  statusMap: CloudResourcesStatusMap;
15
15
  }
16
16
 
17
- // something like {...attributes, ...statusMap}
18
- export type PoolStatusEventPayloadV1 = Record<string, string | number>;
19
-
20
17
  export class PoolStatusEventPayload {
21
- games: PoolStatusEventPayloadV1[];
18
+ games: PoolStatusEventPool[];
22
19
 
23
- machines: PoolStatusEventPayloadV1[];
20
+ machines: PoolStatusEventPool[];
24
21
 
25
22
  @IsUUID()
26
23
  requestId: string;