@ludeo/cloud-common 1.2.9 → 1.2.11

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.
@@ -87,3 +87,4 @@ export * from "./allocate-ludeo-resource-request";
87
87
  export * from "./terminate-ludeos-request";
88
88
  export * from "./ludeo-status-updated";
89
89
  export * from "./connection-id-timeout-task";
90
+ export * from "./swap-to-default-user-request-failed";
@@ -103,4 +103,5 @@ __exportStar(require("./allocate-ludeo-resource-request"), exports);
103
103
  __exportStar(require("./terminate-ludeos-request"), exports);
104
104
  __exportStar(require("./ludeo-status-updated"), exports);
105
105
  __exportStar(require("./connection-id-timeout-task"), exports);
106
+ __exportStar(require("./swap-to-default-user-request-failed"), exports);
106
107
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yDAAuC;AACvC,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,uEAAqD;AACrD,4EAA0D;AAC1D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,4DAA0C;AAC1C,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,6DAA2C;AAC3C,qEAAmD;AACnD,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,oFAAkE;AAClE,uFAAqE;AACrE,sEAAoD;AACpD,8EAA4D;AAC5D,yEAAuD;AACvD,6DAA2C;AAC3C,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,4DAA0C;AAC1C,uEAAqD;AACrD,6EAA2D;AAC3D,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,mEAAiD;AACjD,wDAAsC;AACtC,0DAAwC;AACxC,2EAAyD;AACzD,iEAA+C;AAC/C,qEAAmD;AACnD,4EAA0D;AAC1D,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,sEAAoD;AACpD,qEAAmD;AACnD,0DAAwC;AACxC,kEAAgD;AAChD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,oEAAkD;AAClD,6DAA2C;AAC3C,yDAAuC;AACvC,+DAA6C;AAC7C,wEAAsD"}
@@ -1,5 +1,5 @@
1
1
  import { LudeoEvent } from "../../infra/ludeo-event";
2
- import { CloudResourceContext } from "../contexts";
2
+ import { CloudSessionContext } from "../contexts";
3
3
  import { AllocationRequestData } from "../types";
4
4
  export declare class LudeoResourceAllocationFailedPayload {
5
5
  ludeoResourceId: string;
@@ -9,7 +9,7 @@ export declare class LudeoResourceAllocationFailedPayload {
9
9
  }
10
10
  export declare class LudeoResourceAllocationFailedResponse extends LudeoEvent {
11
11
  static readonly EVENT_NAME = "cloud-resources.ludeo-resource-allocation-failed";
12
- constructor(payload: LudeoResourceAllocationFailedPayload, context: CloudResourceContext);
13
- context: CloudResourceContext;
12
+ constructor(payload: LudeoResourceAllocationFailedPayload, context: CloudSessionContext);
13
+ context: CloudSessionContext;
14
14
  payload: LudeoResourceAllocationFailedPayload;
15
15
  }
@@ -44,8 +44,8 @@ class LudeoResourceAllocationFailedResponse extends ludeo_event_1.LudeoEvent {
44
44
  exports.LudeoResourceAllocationFailedResponse = LudeoResourceAllocationFailedResponse;
45
45
  LudeoResourceAllocationFailedResponse.EVENT_NAME = "cloud-resources.ludeo-resource-allocation-failed";
46
46
  __decorate([
47
- (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
48
- __metadata("design:type", contexts_1.CloudResourceContext)
47
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
48
+ __metadata("design:type", contexts_1.CloudSessionContext)
49
49
  ], LudeoResourceAllocationFailedResponse.prototype, "context", void 0);
50
50
  __decorate([
51
51
  (0, validate_nested_type_decorator_1.ValidateNestedType)(() => LudeoResourceAllocationFailedPayload),
@@ -1 +1 @@
1
- {"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AACnD,oCAAiD;AAEjD,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;6EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;yEACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0EACU;AAGrB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;yEAAC;AAGrC,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAA6C,EAC7C,OAA6B;QAE7B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;sEAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;sEAAC"}
1
+ {"version":3,"file":"ludeo-resource-allocation-failed.js","sourceRoot":"","sources":["../../../src/v4/events/ludeo-resource-allocation-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAkD;AAClD,oCAAiD;AAEjD,MAAa,oCAAoC;CAYhD;AAZD,oFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;6EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;yEACW;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0EACU;AAGrB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;yEAAC;AAGrC,MAAa,qCAAsC,SAAQ,wBAAU;IAInE,YACE,OAA6C,EAC7C,OAA4B;QAE5B,KAAK,CAAC,qCAAqC,CAAC,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,sFAkBC;AAjBiB,gDAAU,GACxB,kDAAkD,CAAC;AAYrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;sEAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;sEAAC"}
@@ -0,0 +1,14 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext } from "../contexts";
3
+ export declare class SwapToDefaultUserRequestFailedPayload {
4
+ connectionId: string;
5
+ defaultUserSessionToken: string;
6
+ errorMessage: string;
7
+ sourceService: string;
8
+ }
9
+ export declare class SwapToDefaultUserRequestFailed extends LudeoEvent {
10
+ static readonly EVENT_NAME = "cloud-resources.swap-to-default-user-request-failed";
11
+ constructor(payload: SwapToDefaultUserRequestFailedPayload, context: CloudResourceContext);
12
+ context: CloudResourceContext;
13
+ payload: SwapToDefaultUserRequestFailedPayload;
14
+ }
@@ -0,0 +1,53 @@
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
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SwapToDefaultUserRequestFailed = exports.SwapToDefaultUserRequestFailedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class SwapToDefaultUserRequestFailedPayload {
18
+ }
19
+ exports.SwapToDefaultUserRequestFailedPayload = SwapToDefaultUserRequestFailedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], SwapToDefaultUserRequestFailedPayload.prototype, "connectionId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], SwapToDefaultUserRequestFailedPayload.prototype, "defaultUserSessionToken", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], SwapToDefaultUserRequestFailedPayload.prototype, "errorMessage", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], SwapToDefaultUserRequestFailedPayload.prototype, "sourceService", void 0);
36
+ class SwapToDefaultUserRequestFailed extends ludeo_event_1.LudeoEvent {
37
+ constructor(payload, context) {
38
+ super(SwapToDefaultUserRequestFailed.EVENT_NAME);
39
+ this.payload = payload;
40
+ this.context = context;
41
+ }
42
+ }
43
+ exports.SwapToDefaultUserRequestFailed = SwapToDefaultUserRequestFailed;
44
+ SwapToDefaultUserRequestFailed.EVENT_NAME = "cloud-resources.swap-to-default-user-request-failed";
45
+ __decorate([
46
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
47
+ __metadata("design:type", contexts_1.CloudResourceContext)
48
+ ], SwapToDefaultUserRequestFailed.prototype, "context", void 0);
49
+ __decorate([
50
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapToDefaultUserRequestFailedPayload),
51
+ __metadata("design:type", SwapToDefaultUserRequestFailedPayload)
52
+ ], SwapToDefaultUserRequestFailed.prototype, "payload", void 0);
53
+ //# sourceMappingURL=swap-to-default-user-request-failed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap-to-default-user-request-failed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,qCAAqC;CAYjD;AAZD,sFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;2EACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;sFACqB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;2EACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;4EACW;AAGxB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,qDAAqD,CAAC;AAYxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;+DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -87,3 +87,4 @@ export * from "./allocate-ludeo-resource-request";
87
87
  export * from "./terminate-ludeos-request";
88
88
  export * from "./ludeo-status-updated";
89
89
  export * from "./connection-id-timeout-task";
90
+ export * from "./swap-to-default-user-request-failed";
@@ -1,7 +1,7 @@
1
1
  import { IsString, IsUUID } from "class-validator";
2
2
  import { LudeoEvent } from "../../infra/ludeo-event";
3
3
  import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
4
- import { CloudResourceContext } from "../contexts";
4
+ import { CloudSessionContext } from "../contexts";
5
5
  import { AllocationRequestData } from "../types";
6
6
 
7
7
  export class LudeoResourceAllocationFailedPayload {
@@ -24,15 +24,15 @@ export class LudeoResourceAllocationFailedResponse extends LudeoEvent {
24
24
 
25
25
  constructor(
26
26
  payload: LudeoResourceAllocationFailedPayload,
27
- context: CloudResourceContext
27
+ context: CloudSessionContext
28
28
  ) {
29
29
  super(LudeoResourceAllocationFailedResponse.EVENT_NAME);
30
30
  this.payload = payload;
31
31
  this.context = context;
32
32
  }
33
33
 
34
- @ValidateNestedType(() => CloudResourceContext)
35
- context: CloudResourceContext;
34
+ @ValidateNestedType(() => CloudSessionContext)
35
+ context: CloudSessionContext;
36
36
 
37
37
  @ValidateNestedType(() => LudeoResourceAllocationFailedPayload)
38
38
  payload: LudeoResourceAllocationFailedPayload;
@@ -0,0 +1,39 @@
1
+ import { IsString, IsUUID } from "class-validator";
2
+
3
+ import { LudeoEvent } from "../../infra/ludeo-event";
4
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
5
+ import { CloudResourceContext } from "../contexts";
6
+
7
+ export class SwapToDefaultUserRequestFailedPayload {
8
+ @IsUUID()
9
+ connectionId: string;
10
+
11
+ @IsString()
12
+ defaultUserSessionToken: string;
13
+
14
+ @IsString()
15
+ errorMessage: string;
16
+
17
+ @IsString()
18
+ sourceService: string;
19
+ }
20
+
21
+ export class SwapToDefaultUserRequestFailed extends LudeoEvent {
22
+ static readonly EVENT_NAME =
23
+ "cloud-resources.swap-to-default-user-request-failed";
24
+
25
+ constructor(
26
+ payload: SwapToDefaultUserRequestFailedPayload,
27
+ context: CloudResourceContext
28
+ ) {
29
+ super(SwapToDefaultUserRequestFailed.EVENT_NAME);
30
+ this.payload = payload;
31
+ this.context = context;
32
+ }
33
+
34
+ @ValidateNestedType(() => CloudResourceContext)
35
+ context: CloudResourceContext;
36
+
37
+ @ValidateNestedType(() => SwapToDefaultUserRequestFailedPayload)
38
+ payload: SwapToDefaultUserRequestFailedPayload;
39
+ }