@ludeo/cloud-common 1.1.11 → 1.1.13
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/v3/events/prepare-cloud-machine-auth.d.ts +0 -2
- package/dist/v3/events/prepare-cloud-machine-auth.js +0 -5
- package/dist/v3/events/prepare-cloud-machine-auth.js.map +1 -1
- package/dist/v3/events/token-required.event.d.ts +0 -1
- package/dist/v3/events/token-required.event.js +0 -4
- package/dist/v3/events/token-required.event.js.map +1 -1
- package/package.json +1 -1
- package/src/v3/events/prepare-cloud-machine-auth.ts +0 -4
- package/src/v3/events/token-required.event.ts +0 -3
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { V3 } from "@ludeo/cloud-common";
|
|
2
1
|
import { LudeoEvent } from "../../infra";
|
|
3
2
|
import { CloudResourceContext } from "../contexts";
|
|
4
3
|
export declare class PrepareCloudMachineAuthPayload {
|
|
5
4
|
cloudUserId: string;
|
|
6
5
|
authTokenId: string;
|
|
7
6
|
resourceId: string;
|
|
8
|
-
context: V3.Contexts.CloudResourceContext;
|
|
9
7
|
}
|
|
10
8
|
export declare class PrepareCloudMachineAuth extends LudeoEvent {
|
|
11
9
|
static readonly EVENT_NAME = "cloud-pools.prepare-cloud-machine-auth";
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PrepareCloudMachineAuth = exports.PrepareCloudMachineAuthPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
-
const cloud_common_1 = require("@ludeo/cloud-common");
|
|
16
15
|
const infra_1 = require("../../infra");
|
|
17
16
|
const contexts_1 = require("../contexts");
|
|
18
17
|
class PrepareCloudMachineAuthPayload {
|
|
@@ -30,10 +29,6 @@ __decorate([
|
|
|
30
29
|
(0, class_validator_1.IsUUID)(),
|
|
31
30
|
__metadata("design:type", String)
|
|
32
31
|
], PrepareCloudMachineAuthPayload.prototype, "resourceId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_common_1.V3.Contexts.CloudResourceContext),
|
|
35
|
-
__metadata("design:type", cloud_common_1.V3.Contexts.CloudResourceContext)
|
|
36
|
-
], PrepareCloudMachineAuthPayload.prototype, "context", void 0);
|
|
37
32
|
class PrepareCloudMachineAuth extends infra_1.LudeoEvent {
|
|
38
33
|
constructor(payload, context) {
|
|
39
34
|
super(PrepareCloudMachineAuth.EVENT_NAME);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,oGAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v3/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AAEnD,MAAa,8BAA8B;CAS1C;AATD,wEASC;AAPC;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAGrB,MAAa,uBAAwB,SAAQ,kBAAU;IAGrD,YACE,OAAuC,EACvC,OAA6B;QAE7B,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0DAiBC;AAhBiB,kCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;wDAAC"}
|
|
@@ -23,10 +23,6 @@ __decorate([
|
|
|
23
23
|
class TokenRequiredEventData {
|
|
24
24
|
}
|
|
25
25
|
exports.TokenRequiredEventData = TokenRequiredEventData;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], TokenRequiredEventData.prototype, "defaultUser", void 0);
|
|
30
26
|
__decorate([
|
|
31
27
|
(0, class_validator_1.IsString)(),
|
|
32
28
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-required.event.js","sourceRoot":"","sources":["../../../src/v3/events/token-required.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAEhE,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,8BAA8B;CAG1C;AAHD,wEAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;kEACQ;AAGrB,MAAa,sBAAsB;
|
|
1
|
+
{"version":3,"file":"token-required.event.js","sourceRoot":"","sources":["../../../src/v3/events/token-required.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAEhE,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,8BAA8B;CAG1C;AAHD,wEAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;kEACQ;AAGrB,MAAa,sBAAsB;CASlC;AATD,wDASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;0DACQ;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BACtC,8BAA8B;iEAAC;AAGlD;IADC,IAAA,0BAAQ,GAAE;;yDACO;AAGpB,MAAa,yBAAyB;CAqBrC;AArBD,8DAqBC;AAnBC;IADC,IAAA,0BAAQ,GAAE;;qDACA;AAGX;IADC,IAAA,0BAAQ,GAAE;;uDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;yDACI;AAGf;IADC,IAAA,0BAAQ,GAAE;;2DACM;AAGjB;IADC,IAAA,0BAAQ,GAAE;;wDACG;AAGd;IADC,IAAA,2BAAS,GAAE;;2DACM;AAGlB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BAC3C,sBAAsB;uDAAC;AAG/B,MAAa,aAAc,SAAQ,wBAAU;IAQ3C,YAAY,OAAkC,EAAE,OAAe;QAC7D,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAZH,sCAaC;AAZiB,wBAAU,GAAG,uBAAuB,CAAC;AAGrD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC3C,yBAAyB;8CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IsUUID } from "class-validator";
|
|
2
2
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
|
-
import { V3 } from "@ludeo/cloud-common";
|
|
4
3
|
import { LudeoEvent } from "../../infra";
|
|
5
4
|
import { CloudResourceContext } from "../contexts";
|
|
6
5
|
|
|
@@ -13,9 +12,6 @@ export class PrepareCloudMachineAuthPayload {
|
|
|
13
12
|
|
|
14
13
|
@IsUUID()
|
|
15
14
|
resourceId: string;
|
|
16
|
-
|
|
17
|
-
@ValidateNestedType(() => V3.Contexts.CloudResourceContext)
|
|
18
|
-
context: V3.Contexts.CloudResourceContext;
|
|
19
15
|
}
|
|
20
16
|
|
|
21
17
|
export class PrepareCloudMachineAuth extends LudeoEvent {
|