@ludeo/cloud-common 1.1.77-beta → 1.1.77-beta1

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,7 +1,7 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { MachinePoolAttributes, GamePoolAttributes, CloudResourcesStatusMap } from "../types";
2
+ import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
3
3
  export declare class PoolsStatusEventPool {
4
- attributes: MachinePoolAttributes | GamePoolAttributes;
4
+ attributes: BasePoolAttributes;
5
5
  statusMap: CloudResourcesStatusMap;
6
6
  }
7
7
  export declare class PoolsStatusEventPayload {
@@ -11,13 +11,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PoolsStatusEvent = exports.PoolsStatusEventPayload = exports.PoolsStatusEventPool = void 0;
13
13
  const ludeo_event_1 = require("../../infra/ludeo-event");
14
+ const types_1 = require("../types");
14
15
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
15
16
  class PoolsStatusEventPool {
16
17
  }
17
18
  exports.PoolsStatusEventPool = PoolsStatusEventPool;
19
+ __decorate([
20
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.BasePoolAttributes),
21
+ __metadata("design:type", types_1.BasePoolAttributes)
22
+ ], PoolsStatusEventPool.prototype, "attributes", void 0);
18
23
  class PoolsStatusEventPayload {
19
24
  }
20
25
  exports.PoolsStatusEventPayload = PoolsStatusEventPayload;
26
+ __decorate([
27
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => Array),
28
+ __metadata("design:type", Array)
29
+ ], PoolsStatusEventPayload.prototype, "pools", void 0);
21
30
  class PoolsStatusEvent extends ludeo_event_1.LudeoEvent {
22
31
  constructor(payload) {
23
32
  super(PoolsStatusEvent.EVENT_NAME);
@@ -1 +1 @@
1
- {"version":3,"file":"pools-status.js","sourceRoot":"","sources":["../../../src/v3/events/pools-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AAMrD,oGAAqF;AAErF,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAgC;QAC1C,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,4CAUC;AATiB,2BAAU,GAAG,0BAA0B,CAAC;AAQxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
1
+ {"version":3,"file":"pools-status.js","sourceRoot":"","sources":["../../../src/v3/events/pools-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oCAAuE;AACvE,oGAAqF;AAErF,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAHC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;8BACjC,0BAAkB;wDAAC;AAKjC,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AADC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,KAA2B,CAAC;;sDACxB;AAGhC,MAAa,gBAAiB,SAAQ,wBAAU;IAG9C,YAAY,OAAgC;QAC1C,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,4CAUC;AATiB,2BAAU,GAAG,0BAA0B,CAAC;AAQxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;8BACzC,uBAAuB;iDAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.77-beta",
3
+ "version": "1.1.77-beta1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,18 +1,16 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
- import {
3
- MachinePoolAttributes,
4
- GamePoolAttributes,
5
- CloudResourcesStatusMap,
6
- } from "../types";
2
+ import { CloudResourcesStatusMap, BasePoolAttributes } from "../types";
7
3
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
8
4
 
9
5
  export class PoolsStatusEventPool {
10
- attributes: MachinePoolAttributes | GamePoolAttributes;
6
+ @ValidateNestedType(() => BasePoolAttributes)
7
+ attributes: BasePoolAttributes;
11
8
 
12
9
  statusMap: CloudResourcesStatusMap;
13
10
  }
14
11
 
15
12
  export class PoolsStatusEventPayload {
13
+ @ValidateNestedType(() => Array<PoolsStatusEventPool>)
16
14
  pools: PoolsStatusEventPool[];
17
15
  }
18
16