@ludeo/cloud-common 1.1.10 → 1.1.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/v3/events/index.d.ts +1 -0
- package/dist/v3/events/index.js +1 -0
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/prepare-cloud-machine-auth.d.ts +1 -2
- package/dist/v3/events/prepare-cloud-machine-auth.js +2 -3
- 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/index.ts +1 -0
- package/src/v3/events/prepare-cloud-machine-auth.ts +2 -3
- package/src/v3/events/token-required.event.ts +0 -3
package/dist/v3/events/index.js
CHANGED
|
@@ -41,4 +41,5 @@ __exportStar(require("./terminate-machine-resource-batch-request"), exports);
|
|
|
41
41
|
__exportStar(require("./terminate-machines-request"), exports);
|
|
42
42
|
__exportStar(require("./swap-cloud-user-request"), exports);
|
|
43
43
|
__exportStar(require("./swap-cloud-user-request-failed"), exports);
|
|
44
|
+
__exportStar(require("./prepare-cloud-machine-auth"), exports);
|
|
44
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,4DAA0C;AAC1C,+DAA6C;AAC7C,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,sEAAoD;AACpD,8EAA4D;AAC5D,mDAAiC;AACjC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,4DAA0C;AAC1C,+DAA6C;AAC7C,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,sEAAoD;AACpD,8EAA4D;AAC5D,mDAAiC;AACjC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD;AACjD,+DAA6C"}
|
|
@@ -1,11 +1,10 @@
|
|
|
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:
|
|
7
|
+
context: CloudResourceContext;
|
|
9
8
|
}
|
|
10
9
|
export declare class PrepareCloudMachineAuth extends LudeoEvent {
|
|
11
10
|
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 {
|
|
@@ -31,8 +30,8 @@ __decorate([
|
|
|
31
30
|
__metadata("design:type", String)
|
|
32
31
|
], PrepareCloudMachineAuthPayload.prototype, "resourceId", void 0);
|
|
33
32
|
__decorate([
|
|
34
|
-
(0, validate_nested_type_decorator_1.ValidateNestedType)(() =>
|
|
35
|
-
__metadata("design:type",
|
|
33
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
|
|
34
|
+
__metadata("design:type", contexts_1.CloudResourceContext)
|
|
36
35
|
], PrepareCloudMachineAuthPayload.prototype, "context", void 0);
|
|
37
36
|
class PrepareCloudMachineAuth extends infra_1.LudeoEvent {
|
|
38
37
|
constructor(payload, context) {
|
|
@@ -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;CAY1C;AAZD,wEAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;+DAAC;AAGhC,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
package/src/v3/events/index.ts
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
|
|
|
@@ -14,8 +13,8 @@ export class PrepareCloudMachineAuthPayload {
|
|
|
14
13
|
@IsUUID()
|
|
15
14
|
resourceId: string;
|
|
16
15
|
|
|
17
|
-
@ValidateNestedType(() =>
|
|
18
|
-
context:
|
|
16
|
+
@ValidateNestedType(() => CloudResourceContext)
|
|
17
|
+
context: CloudResourceContext;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
export class PrepareCloudMachineAuth extends LudeoEvent {
|