@ludeo/cloud-common 1.1.19 → 1.1.20

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,6 +1,5 @@
1
- import { CloudPoolContext } from "../contexts";
2
1
  import { LudeoEvent } from "../../infra/ludeo-event";
3
- import { CloudSessionContext } from "../contexts";
2
+ import { CloudSessionContext, CloudResourceContext } from "../contexts";
4
3
  export declare class DeallocateMachineRequestPayload {
5
4
  machinePoolId: string;
6
5
  machineResourceId: string;
@@ -9,7 +8,7 @@ export declare class DeallocateMachineRequestPayload {
9
8
  }
10
9
  export declare class DeallocateMachineRequest extends LudeoEvent {
11
10
  static readonly EVENT_NAME = "cloud-pools.deallocate-machine-request";
12
- constructor(payload: DeallocateMachineRequestPayload, context: CloudSessionContext);
13
- context: CloudSessionContext | CloudPoolContext;
11
+ constructor(payload: DeallocateMachineRequestPayload, context: CloudSessionContext | CloudResourceContext);
12
+ context: CloudSessionContext | CloudResourceContext;
14
13
  payload: DeallocateMachineRequestPayload;
15
14
  }
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DeallocateMachineRequest = exports.DeallocateMachineRequestPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const ludeo_event_1 = require("../../infra/ludeo-event");
15
- const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
15
  const getCloudContextType_1 = require("../contexts/getCloudContextType");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
17
  class DeallocateMachineRequestPayload {
18
18
  }
19
19
  exports.DeallocateMachineRequestPayload = DeallocateMachineRequestPayload;
@@ -1 +1 @@
1
- {"version":3,"file":"deallocate-machine-request.js","sourceRoot":"","sources":["../../../src/v3/events/deallocate-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAGzC,yDAAqD;AAErD,oGAAqF;AACrF,yEAAsE;AAEtE,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;sEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;0EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;mEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;uEACc;AAGzB,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YACE,OAAwC,EACxC,OAA4B;QAE5B,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,4DAiBC;AAhBiB,mCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,yCAAmB,CAAC;;yDACQ;AAGhD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
1
+ {"version":3,"file":"deallocate-machine-request.js","sourceRoot":"","sources":["../../../src/v3/events/deallocate-machine-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,yEAAsE;AAEtE,oGAAqF;AAErF,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;sEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;0EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;mEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;uEACc;AAGzB,MAAa,wBAAyB,SAAQ,wBAAU;IAGtD,YACE,OAAwC,EACxC,OAAmD;QAEnD,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,4DAiBC;AAhBiB,mCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,yCAAmB,CAAC;;yDACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;yDAAC"}
@@ -1,6 +1,5 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { CloudSessionContext } from "../contexts";
3
- import { CloudPoolContext } from "../contexts";
2
+ import { CloudResourceContext, CloudSessionContext } from "../contexts";
4
3
  export declare class MachineDeallocatedResponsePayload {
5
4
  machinePoolId: string;
6
5
  machineResourceId: string;
@@ -9,7 +8,7 @@ export declare class MachineDeallocatedResponsePayload {
9
8
  }
10
9
  export declare class MachineDeallocatedResponse extends LudeoEvent {
11
10
  static readonly EVENT_NAME = "cloud-pools.machine-deallocated-response";
12
- constructor(payload: MachineDeallocatedResponsePayload, context: CloudSessionContext);
13
- context: CloudSessionContext | CloudPoolContext;
11
+ constructor(payload: MachineDeallocatedResponsePayload, context: CloudSessionContext | CloudResourceContext);
12
+ context: CloudSessionContext | CloudResourceContext;
14
13
  payload: MachineDeallocatedResponsePayload;
15
14
  }
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MachineDeallocatedResponse = exports.MachineDeallocatedResponsePayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const ludeo_event_1 = require("../../infra/ludeo-event");
15
- const contexts_1 = require("../contexts");
16
15
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
17
  class MachineDeallocatedResponsePayload {
18
18
  }
19
19
  exports.MachineDeallocatedResponsePayload = MachineDeallocatedResponsePayload;
@@ -1 +1 @@
1
- {"version":3,"file":"machine-deallocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-deallocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AAErD,0CAAoE;AACpE,oGAAqF;AAErF,MAAa,iCAAiC;CAY7C;AAZD,8EAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;wEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;qEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGzB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA4B;QAE5B,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,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;2DACQ;AAGhD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
1
+ {"version":3,"file":"machine-deallocated-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-deallocated-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AAEzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAIqB;AAErB,MAAa,iCAAiC;CAY7C;AAZD,8EAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;wEACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;4EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;qEACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;yEACc;AAGzB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAAmD;QAEnD,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,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;2DACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
@@ -1,6 +1,5 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { CloudSessionContext } from "../contexts";
3
- import { CloudPoolContext } from "../contexts";
2
+ import { CloudResourceContext, CloudSessionContext } from "../contexts";
4
3
  export declare class MachineDeallocatedFailedResponsePayload {
5
4
  machinePoolId: string;
6
5
  machineResourceId: string;
@@ -10,7 +9,7 @@ export declare class MachineDeallocatedFailedResponsePayload {
10
9
  }
11
10
  export declare class MachineDeallocationFailedResponse extends LudeoEvent {
12
11
  static readonly EVENT_NAME = "cloud-pools.machine-deallocation-failed-response";
13
- constructor(payload: MachineDeallocatedFailedResponsePayload, context: CloudSessionContext);
14
- context: CloudSessionContext | CloudPoolContext;
12
+ constructor(payload: MachineDeallocatedFailedResponsePayload, context: CloudSessionContext | CloudResourceContext);
13
+ context: CloudSessionContext | CloudResourceContext;
15
14
  payload: MachineDeallocatedFailedResponsePayload;
16
15
  }
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MachineDeallocationFailedResponse = exports.MachineDeallocatedFailedResponsePayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const ludeo_event_1 = require("../../infra/ludeo-event");
15
- const contexts_1 = require("../contexts");
16
15
  const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
17
  class MachineDeallocatedFailedResponsePayload {
18
18
  }
19
19
  exports.MachineDeallocatedFailedResponsePayload = MachineDeallocatedFailedResponsePayload;
@@ -1 +1 @@
1
- {"version":3,"file":"machine-deallocation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-deallocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AAErD,0CAAoE;AACpE,oGAAqF;AAErF,MAAa,uCAAuC;CAenD;AAfD,0FAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;8EACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;+EACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;6EACU;AAGvB,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAgD,EAChD,OAA4B;QAE5B,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;kEACQ;AAGhD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;kEAAC"}
1
+ {"version":3,"file":"machine-deallocation-failed-response.js","sourceRoot":"","sources":["../../../src/v3/events/machine-deallocation-failed-response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAIqB;AAErB,MAAa,uCAAuC;CAenD;AAfD,0FAeC;AAbC;IADC,IAAA,wBAAM,GAAE;;8EACa;AAGtB;IADC,IAAA,wBAAM,GAAE;;kFACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;2EACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;+EACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;6EACU;AAGvB,MAAa,iCAAkC,SAAQ,wBAAU;IAI/D,YACE,OAAgD,EAChD,OAAmD;QAEnD,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,8EAkBC;AAjBiB,4CAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,8BAAmB,CAAC;;kEACY;AAGpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,uCAAuC,CAAC;8BACzD,uCAAuC;kEAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,10 +1,9 @@
1
1
  import { IsUUID } from "class-validator";
2
2
 
3
- import { CloudPoolContext } from "../contexts";
4
3
  import { LudeoEvent } from "../../infra/ludeo-event";
5
- import { CloudSessionContext } from "../contexts";
6
- import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
7
4
  import { getCloudContextType } from "../contexts/getCloudContextType";
5
+ import { CloudSessionContext, CloudResourceContext } from "../contexts";
6
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
8
7
 
9
8
  export class DeallocateMachineRequestPayload {
10
9
  @IsUUID()
@@ -25,7 +24,7 @@ export class DeallocateMachineRequest extends LudeoEvent {
25
24
 
26
25
  constructor(
27
26
  payload: DeallocateMachineRequestPayload,
28
- context: CloudSessionContext
27
+ context: CloudSessionContext | CloudResourceContext
29
28
  ) {
30
29
  super(DeallocateMachineRequest.EVENT_NAME);
31
30
  this.payload = payload;
@@ -33,7 +32,7 @@ export class DeallocateMachineRequest extends LudeoEvent {
33
32
  }
34
33
 
35
34
  @ValidateNestedType(getCloudContextType)
36
- context: CloudSessionContext | CloudPoolContext;
35
+ context: CloudSessionContext | CloudResourceContext;
37
36
 
38
37
  @ValidateNestedType(() => DeallocateMachineRequestPayload)
39
38
  payload: DeallocateMachineRequestPayload;
@@ -1,9 +1,12 @@
1
1
  import { IsUUID } from "class-validator";
2
2
 
3
3
  import { LudeoEvent } from "../../infra/ludeo-event";
4
- import { CloudSessionContext } from "../contexts";
5
- import { CloudPoolContext, getCloudContextType } from "../contexts";
6
4
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
5
+ import {
6
+ CloudResourceContext,
7
+ CloudSessionContext,
8
+ getCloudContextType,
9
+ } from "../contexts";
7
10
 
8
11
  export class MachineDeallocatedResponsePayload {
9
12
  @IsUUID()
@@ -24,7 +27,7 @@ export class MachineDeallocatedResponse extends LudeoEvent {
24
27
 
25
28
  constructor(
26
29
  payload: MachineDeallocatedResponsePayload,
27
- context: CloudSessionContext
30
+ context: CloudSessionContext | CloudResourceContext
28
31
  ) {
29
32
  super(MachineDeallocatedResponse.EVENT_NAME);
30
33
  this.payload = payload;
@@ -32,7 +35,7 @@ export class MachineDeallocatedResponse extends LudeoEvent {
32
35
  }
33
36
 
34
37
  @ValidateNestedType(getCloudContextType)
35
- context: CloudSessionContext | CloudPoolContext;
38
+ context: CloudSessionContext | CloudResourceContext;
36
39
 
37
40
  @ValidateNestedType(() => MachineDeallocatedResponsePayload)
38
41
  payload: MachineDeallocatedResponsePayload;
@@ -1,9 +1,12 @@
1
1
  import { IsString, IsUUID } from "class-validator";
2
2
 
3
3
  import { LudeoEvent } from "../../infra/ludeo-event";
4
- import { CloudSessionContext } from "../contexts";
5
- import { CloudPoolContext, getCloudContextType } from "../contexts";
6
4
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
5
+ import {
6
+ CloudResourceContext,
7
+ CloudSessionContext,
8
+ getCloudContextType,
9
+ } from "../contexts";
7
10
 
8
11
  export class MachineDeallocatedFailedResponsePayload {
9
12
  @IsUUID()
@@ -28,7 +31,7 @@ export class MachineDeallocationFailedResponse extends LudeoEvent {
28
31
 
29
32
  constructor(
30
33
  payload: MachineDeallocatedFailedResponsePayload,
31
- context: CloudSessionContext
34
+ context: CloudSessionContext | CloudResourceContext
32
35
  ) {
33
36
  super(MachineDeallocationFailedResponse.EVENT_NAME);
34
37
  this.payload = payload;
@@ -36,7 +39,7 @@ export class MachineDeallocationFailedResponse extends LudeoEvent {
36
39
  }
37
40
 
38
41
  @ValidateNestedType(getCloudContextType)
39
- context: CloudSessionContext | CloudPoolContext;
42
+ context: CloudSessionContext | CloudResourceContext;
40
43
 
41
44
  @ValidateNestedType(() => MachineDeallocatedFailedResponsePayload)
42
45
  payload: MachineDeallocatedFailedResponsePayload;