@ludeo/cloud-common 1.2.11 → 1.2.12
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.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/events/swap-to-default-user-completed.d.ts +2 -0
- package/dist/v4/events/swap-to-default-user-completed.js +8 -0
- package/dist/v4/events/swap-to-default-user-completed.js.map +1 -1
- package/dist/v4/events/swap-to-default-user.d.ts +2 -0
- package/dist/v4/events/swap-to-default-user.js +8 -0
- package/dist/v4/events/swap-to-default-user.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/events/swap-to-default-user-completed.ts +7 -1
- package/src/v4/events/swap-to-default-user.ts +7 -1
|
@@ -2,6 +2,8 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
3
|
export declare class SwapToDefaultUserCompletedPayload {
|
|
4
4
|
ludeoResourceId: string;
|
|
5
|
+
connectionId: string;
|
|
6
|
+
sourceService: string;
|
|
5
7
|
}
|
|
6
8
|
export declare class SwapToDefaultUserCompleted extends LudeoEvent {
|
|
7
9
|
static readonly EVENT_NAME = "authentication.swap-to-default-user-completed";
|
|
@@ -21,6 +21,14 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsUUID)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], SwapToDefaultUserCompletedPayload.prototype, "ludeoResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SwapToDefaultUserCompletedPayload.prototype, "connectionId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SwapToDefaultUserCompletedPayload.prototype, "sourceService", void 0);
|
|
24
32
|
class SwapToDefaultUserCompleted extends ludeo_event_1.LudeoEvent {
|
|
25
33
|
constructor(payload, context) {
|
|
26
34
|
super(SwapToDefaultUserCompleted.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-to-default-user-completed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user-completed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"swap-to-default-user-completed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user-completed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,iCAAiC;CAS7C;AATD,8EASC;AAPC;IADC,IAAA,wBAAM,GAAE;;0EACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;uEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;wEACW;AAGxB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA6B;QAE7B,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,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
|
|
@@ -2,6 +2,8 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
2
2
|
import { CloudResourceContext } from "../contexts";
|
|
3
3
|
export declare class SwapToDefaultUserPayload {
|
|
4
4
|
ludeoResourceId: string;
|
|
5
|
+
connectionId: string;
|
|
6
|
+
defaultUserSessionToken: string;
|
|
5
7
|
}
|
|
6
8
|
export declare class SwapToDefaultUser extends LudeoEvent {
|
|
7
9
|
static readonly EVENT_NAME = "cloud-resources.swap-to-default-user";
|
|
@@ -21,6 +21,14 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsUUID)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], SwapToDefaultUserPayload.prototype, "ludeoResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SwapToDefaultUserPayload.prototype, "connectionId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SwapToDefaultUserPayload.prototype, "defaultUserSessionToken", void 0);
|
|
24
32
|
class SwapToDefaultUser extends ludeo_event_1.LudeoEvent {
|
|
25
33
|
constructor(payload, context) {
|
|
26
34
|
super(SwapToDefaultUser.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-to-default-user.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"swap-to-default-user.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AACnD,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,wBAAwB;CASpC;AATD,4DASC;AAPC;IADC,IAAA,wBAAM,GAAE;;iEACe;AAGxB;IADC,IAAA,wBAAM,GAAE;;8DACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;yEACqB;AAGlC,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YACE,OAAiC,EACjC,OAA6B;QAE7B,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8CAiBC;AAhBiB,4BAAU,GAAG,sCAAsC,CAAC;AAYpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsUUID } from "class-validator";
|
|
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
4
|
import { CloudResourceContext } from "../contexts";
|
|
@@ -6,6 +6,12 @@ import { CloudResourceContext } from "../contexts";
|
|
|
6
6
|
export class SwapToDefaultUserCompletedPayload {
|
|
7
7
|
@IsUUID()
|
|
8
8
|
ludeoResourceId: string;
|
|
9
|
+
|
|
10
|
+
@IsUUID()
|
|
11
|
+
connectionId: string;
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
sourceService: string;
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
export class SwapToDefaultUserCompleted extends LudeoEvent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsUUID } from "class-validator";
|
|
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
4
|
import { CloudResourceContext } from "../contexts";
|
|
@@ -6,6 +6,12 @@ import { CloudResourceContext } from "../contexts";
|
|
|
6
6
|
export class SwapToDefaultUserPayload {
|
|
7
7
|
@IsUUID()
|
|
8
8
|
ludeoResourceId: string;
|
|
9
|
+
|
|
10
|
+
@IsUUID()
|
|
11
|
+
connectionId: string;
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
defaultUserSessionToken: string;
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
export class SwapToDefaultUser extends LudeoEvent {
|