@ludeo/cloud-common 1.1.79-beta → 1.1.79-beta2

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.
@@ -13,7 +13,6 @@ exports.SetPoolEvent = void 0;
13
13
  const contexts_1 = require("../contexts");
14
14
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
15
15
  const ludeo_event_1 = require("../../infra/ludeo-event");
16
- const types_1 = require("../types");
17
16
  class SetPoolEvent extends ludeo_event_1.LudeoEvent {
18
17
  constructor(payload, context) {
19
18
  super(SetPoolEvent.EVENT_NAME);
@@ -27,8 +26,4 @@ __decorate([
27
26
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
28
27
  __metadata("design:type", contexts_1.CloudPoolContext)
29
28
  ], SetPoolEvent.prototype, "context", void 0);
30
- __decorate([
31
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.BaseCloudPoolConfiguration),
32
- __metadata("design:type", Object)
33
- ], SetPoolEvent.prototype, "payload", void 0);
34
29
  //# sourceMappingURL=set-pool.event.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"set-pool.event.js","sourceRoot":"","sources":["../../../src/v3/events/set-pool.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA+C;AAC/C,oGAAqF;AACrF,yDAAqD;AACrD,oCAAsD;AAEtD,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YACE,OAA4C,EAC5C,OAAyB;QAEzB,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oCAiBC;AAhBiB,uBAAU,GAAG,sBAAsB,CAAC;AAYpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,2BAAgB;6CAAC;AAG1B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,kCAA0B,CAAC;;6CACR"}
1
+ {"version":3,"file":"set-pool.event.js","sourceRoot":"","sources":["../../../src/v3/events/set-pool.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA+C;AAC/C,oGAAqF;AACrF,yDAAqD;AAGrD,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YACE,OAA4C,EAC5C,OAAyB;QAEzB,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oCAgBC;AAfiB,uBAAU,GAAG,sBAAsB,CAAC;AAYpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,2BAAgB;6CAAC"}
@@ -1,2 +1,4 @@
1
+ import { CloudProvider } from "../../../cloud";
1
2
  export declare class BasePoolAttributes {
3
+ cloudProvider: CloudProvider;
2
4
  }
@@ -1,7 +1,22 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.BasePoolAttributes = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const cloud_1 = require("../../../cloud");
4
15
  class BasePoolAttributes {
5
16
  }
6
17
  exports.BasePoolAttributes = BasePoolAttributes;
18
+ __decorate([
19
+ (0, class_validator_1.IsEnum)(cloud_1.CloudProvider),
20
+ __metadata("design:type", String)
21
+ ], BasePoolAttributes.prototype, "cloudProvider", void 0);
7
22
  //# sourceMappingURL=base.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/base.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;CAAG;AAAlC,gDAAkC"}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../src/v3/types/pools/configuration/attributes/base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,0CAA+C;AAE/C,MAAa,kBAAkB;CAG9B;AAHD,gDAGC;AADC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;yDACO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.79-beta",
3
+ "version": "1.1.79-beta2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -18,6 +18,5 @@ export class SetPoolEvent extends LudeoEvent {
18
18
  @ValidateNestedType(() => CloudPoolContext)
19
19
  context: CloudPoolContext;
20
20
 
21
- @ValidateNestedType(() => BaseCloudPoolConfiguration)
22
21
  payload: Partial<BaseCloudPoolConfiguration>;
23
22
  }
@@ -1 +1,7 @@
1
- export class BasePoolAttributes {}
1
+ import { IsEnum } from "class-validator";
2
+ import { CloudProvider } from "../../../cloud";
3
+
4
+ export class BasePoolAttributes {
5
+ @IsEnum(CloudProvider)
6
+ cloudProvider: CloudProvider;
7
+ }