@ludeo/cloud-common 1.0.10 → 1.0.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/v2/events/cloud-resource-created.event.js +2 -2
- package/dist/v2/events/cloud-resource-created.event.js.map +1 -1
- package/dist/v2/events/token-required.event.d.ts +4 -0
- package/dist/v2/events/token-required.event.js +13 -2
- package/dist/v2/events/token-required.event.js.map +1 -1
- package/jest.config.ts +1 -1
- package/package.json +1 -1
- package/src/v2/events/cloud-resource-created.event.ts +2 -2
- package/src/v2/events/token-required.event.ts +10 -1
- package/dist/v2/models/cloud-pool.d.ts +0 -9
- package/dist/v2/models/cloud-pool.js +0 -7
- package/dist/v2/models/cloud-pool.js.map +0 -1
- package/dist/v2/models/index.d.ts +0 -1
- package/dist/v2/models/index.js +0 -18
- package/dist/v2/models/index.js.map +0 -1
|
@@ -31,13 +31,13 @@ __decorate([
|
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], CloudResourceCreatedPayload.prototype, "cloudProvider", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, class_validator_1.
|
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
|
35
35
|
(0, class_validator_1.IsOptional)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], CloudResourceCreatedPayload.prototype, "clientRequestId", void 0);
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
(0, class_validator_1.
|
|
40
|
+
(0, class_validator_1.IsUUID)(),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], CloudResourceCreatedPayload.prototype, "cloudSessionId", void 0);
|
|
43
43
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-resource-created.event.js","sourceRoot":"","sources":["../../../src/v2/events/cloud-resource-created.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oCAAgF;AAChF,6EAAwE;AACxE,qDAAuE;AACvE,oGAAqF;AAErF,MAAa,2BAA2B;CAoBvC;AApBD,kEAoBC;AAlBC;IADC,IAAA,wBAAM,GAAE;;+DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;2DACM;AAGf;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;kEACO;AAI7B;IAFC,IAAA,
|
|
1
|
+
{"version":3,"file":"cloud-resource-created.event.js","sourceRoot":"","sources":["../../../src/v2/events/cloud-resource-created.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oCAAgF;AAChF,6EAAwE;AACxE,qDAAuE;AACvE,oGAAqF;AAErF,MAAa,2BAA2B;CAoBvC;AApBD,kEAoBC;AAlBC;IADC,IAAA,wBAAM,GAAE;;+DACU;AAGnB;IADC,IAAA,wBAAM,GAAE;;2DACM;AAGf;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;kEACO;AAI7B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;oEACY;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mEACe;AAGxB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;qEACX;AAGrC,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YAAY,EAAE,OAAO,GAAG,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE;QAC5C,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,oDAcC;AAbiB,+BAAU,GAAG,wCAAwC,CAAC;AAStE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC;AAGrC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;8BACrC,2CAAmB;qDAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
export declare class TokenRequiredConnectionDetails {
|
|
3
|
+
resourceId: string;
|
|
4
|
+
}
|
|
2
5
|
export declare class TokenRequiredEventData {
|
|
3
6
|
defaultUser: string;
|
|
4
7
|
authSource: string;
|
|
8
|
+
connectionDetails: TokenRequiredConnectionDetails;
|
|
5
9
|
}
|
|
6
10
|
export declare class TokenRequiredEventPayload {
|
|
7
11
|
id: string;
|
|
@@ -9,10 +9,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TokenRequired = exports.TokenRequiredEventPayload = exports.TokenRequiredEventData = void 0;
|
|
12
|
+
exports.TokenRequired = exports.TokenRequiredEventPayload = exports.TokenRequiredEventData = exports.TokenRequiredConnectionDetails = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
13
14
|
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
14
15
|
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
15
|
-
|
|
16
|
+
class TokenRequiredConnectionDetails {
|
|
17
|
+
}
|
|
18
|
+
exports.TokenRequiredConnectionDetails = TokenRequiredConnectionDetails;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], TokenRequiredConnectionDetails.prototype, "resourceId", void 0);
|
|
16
23
|
class TokenRequiredEventData {
|
|
17
24
|
}
|
|
18
25
|
exports.TokenRequiredEventData = TokenRequiredEventData;
|
|
@@ -24,6 +31,10 @@ __decorate([
|
|
|
24
31
|
(0, class_validator_1.IsString)(),
|
|
25
32
|
__metadata("design:type", String)
|
|
26
33
|
], TokenRequiredEventData.prototype, "authSource", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => TokenRequiredConnectionDetails),
|
|
36
|
+
__metadata("design:type", TokenRequiredConnectionDetails)
|
|
37
|
+
], TokenRequiredEventData.prototype, "connectionDetails", void 0);
|
|
27
38
|
class TokenRequiredEventPayload {
|
|
28
39
|
}
|
|
29
40
|
exports.TokenRequiredEventPayload = TokenRequiredEventPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-required.event.js","sourceRoot":"","sources":["../../../src/v2/events/token-required.event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAqD;AACrD,oGAAqF;
|
|
1
|
+
{"version":3,"file":"token-required.event.js","sourceRoot":"","sources":["../../../src/v2/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;;2DACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0DACQ;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BACtC,8BAA8B;iEAAC;AAGpD,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/jest.config.ts
CHANGED
package/package.json
CHANGED
|
@@ -14,12 +14,12 @@ export class CloudResourceCreatedPayload {
|
|
|
14
14
|
@IsEnum(CloudProvider)
|
|
15
15
|
cloudProvider: CloudProvider;
|
|
16
16
|
|
|
17
|
-
@
|
|
17
|
+
@IsUUID()
|
|
18
18
|
@IsOptional()
|
|
19
19
|
clientRequestId?: string;
|
|
20
20
|
|
|
21
21
|
@IsOptional()
|
|
22
|
-
@
|
|
22
|
+
@IsUUID()
|
|
23
23
|
cloudSessionId?: string;
|
|
24
24
|
|
|
25
25
|
@ValidateNestedType(() => AWSCreationResponse)
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import { IsBoolean, IsNumber, IsString } from "class-validator";
|
|
2
|
+
|
|
1
3
|
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
4
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
3
|
-
|
|
5
|
+
|
|
6
|
+
export class TokenRequiredConnectionDetails {
|
|
7
|
+
@IsString()
|
|
8
|
+
resourceId: string;
|
|
9
|
+
}
|
|
4
10
|
|
|
5
11
|
export class TokenRequiredEventData {
|
|
6
12
|
@IsString()
|
|
@@ -8,6 +14,9 @@ export class TokenRequiredEventData {
|
|
|
8
14
|
|
|
9
15
|
@IsString()
|
|
10
16
|
authSource: string;
|
|
17
|
+
|
|
18
|
+
@ValidateNestedType(() => TokenRequiredConnectionDetails)
|
|
19
|
+
connectionDetails: TokenRequiredConnectionDetails;
|
|
11
20
|
}
|
|
12
21
|
|
|
13
22
|
export class TokenRequiredEventPayload {
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CloudPoolConfiguration, CloudPoolStatus, CloudResourcesMap } from "../types";
|
|
2
|
-
export declare class CloudPool {
|
|
3
|
-
id: string;
|
|
4
|
-
status: CloudPoolStatus;
|
|
5
|
-
createdAt: number;
|
|
6
|
-
updatedAt?: number;
|
|
7
|
-
config: CloudPoolConfiguration;
|
|
8
|
-
resources?: CloudResourcesMap;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-pool.js","sourceRoot":"","sources":["../../../src/v2/models/cloud-pool.ts"],"names":[],"mappings":";;;AAMA,MAAa,SAAS;CAOrB;AAPD,8BAOC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./cloud-pool";
|
package/dist/v2/models/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./cloud-pool"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v2/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|