@ludeo/cloud-common 1.2.218 → 1.2.219

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,9 +1,10 @@
1
1
  import { CloudPoolContext } from "../contexts";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { BaseCloudPoolConfiguration } from "../types";
3
+ import { BaseCloudPoolConfiguration, LudeoPoolConfiguration } from "../types";
4
+ export type SetPoolPayload = Partial<BaseCloudPoolConfiguration | LudeoPoolConfiguration>;
4
5
  export declare class SetPoolEvent extends LudeoEvent {
5
6
  static readonly EVENT_NAME = "cloud-pools.set-pool";
6
- constructor(payload: Partial<BaseCloudPoolConfiguration>, context: CloudPoolContext);
7
+ constructor(payload: SetPoolPayload, context: CloudPoolContext);
7
8
  context: CloudPoolContext;
8
- payload: Partial<BaseCloudPoolConfiguration>;
9
+ payload: SetPoolPayload;
9
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"set-pool.js","sourceRoot":"","sources":["../../../src/v4/events/set-pool.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
+ {"version":3,"file":"set-pool.js","sourceRoot":"","sources":["../../../src/v4/events/set-pool.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA+C;AAC/C,oGAAqF;AACrF,yDAAqD;AAWrD,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YAAY,OAAuB,EAAE,OAAyB;QAC5D,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oCAaC;AAZiB,uBAAU,GAAG,sBAAsB,CAAC;AASpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,2BAAgB;6CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.218",
3
+ "version": "1.2.219",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,15 +1,20 @@
1
1
  import { CloudPoolContext } from "../contexts";
2
2
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
3
3
  import { LudeoEvent } from "../../infra/ludeo-event";
4
- import { BaseCloudPoolConfiguration } from "../types";
4
+ import {
5
+ BaseCloudPoolConfiguration,
6
+ LudeoPoolConfiguration,
7
+ } from "../types";
8
+
9
+ export type SetPoolPayload = Partial<
10
+ | BaseCloudPoolConfiguration
11
+ | LudeoPoolConfiguration
12
+ >;
5
13
 
6
14
  export class SetPoolEvent extends LudeoEvent {
7
15
  static readonly EVENT_NAME = "cloud-pools.set-pool";
8
16
 
9
- constructor(
10
- payload: Partial<BaseCloudPoolConfiguration>,
11
- context: CloudPoolContext
12
- ) {
17
+ constructor(payload: SetPoolPayload, context: CloudPoolContext) {
13
18
  super(SetPoolEvent.EVENT_NAME);
14
19
  this.payload = payload;
15
20
  this.context = context;
@@ -18,5 +23,5 @@ export class SetPoolEvent extends LudeoEvent {
18
23
  @ValidateNestedType(() => CloudPoolContext)
19
24
  context: CloudPoolContext;
20
25
 
21
- payload: Partial<BaseCloudPoolConfiguration>;
26
+ payload: SetPoolPayload;
22
27
  }