@ludeo/cloud-common 1.0.11 → 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.
@@ -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
- const class_validator_1 = require("class-validator");
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;AACrF,qDAAgE;AAEhE,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;2DACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0DACQ;AAGrB,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"}
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
@@ -1,5 +1,5 @@
1
1
  export default {
2
- displayName: "cloud-commom",
2
+ displayName: "cloud-common",
3
3
  preset: "ts-jest",
4
4
  clearMocks: true,
5
5
  testEnvironment: "node",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -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
- import { IsBoolean, IsNumber, IsString } from "class-validator";
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,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CloudPool = void 0;
4
- class CloudPool {
5
- }
6
- exports.CloudPool = CloudPool;
7
- //# sourceMappingURL=cloud-pool.js.map
@@ -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";
@@ -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"}