@ludeo/cloud-common 1.2.178-beta.2 → 1.2.179

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.
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CloudSessionContext = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
14
  const types_1 = require("../types");
16
15
  const client_geo_data_1 = require("./client-geo-data");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
17
  class CloudSessionContext {
18
18
  }
19
19
  exports.CloudSessionContext = CloudSessionContext;
@@ -130,8 +130,7 @@ __decorate([
130
130
  ], CloudSessionContext.prototype, "atpId", void 0);
131
131
  __decorate([
132
132
  (0, class_validator_1.IsOptional)(),
133
- (0, class_validator_1.ValidateNested)(),
134
- (0, class_transformer_1.Type)(() => client_geo_data_1.ClientGeoData),
133
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => client_geo_data_1.ClientGeoData),
135
134
  __metadata("design:type", client_geo_data_1.ClientGeoData)
136
135
  ], CloudSessionContext.prototype, "clientGeoData", void 0);
137
136
  //# sourceMappingURL=cloud-session-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiG;AACjG,yDAAyC;AACzC,oCAAyC;AACzC,uDAAkD;AAElD,MAAa,mBAAmB;CA6F/B;AA7FD,kDA6FC;AA1FC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAG7B;IADC,IAAA,4BAAU,GAAE;;4DACY;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACG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C;8BACV,+BAAa;0DAAC"}
1
+ {"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AACzC,uDAAkD;AAClD,oGAAqF;AAErF,MAAa,mBAAmB;CA4F/B;AA5FD,kDA4FC;AAzFC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAG7B;IADC,IAAA,4BAAU,GAAE;;4DACY;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;oDACI;AAGjB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAKzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAa,CAAC;8BACxB,+BAAa;0DAAC"}
@@ -4,3 +4,4 @@ export * from "./cloud-session-context";
4
4
  export * from "./getCloudContextType";
5
5
  export * from "./build-context";
6
6
  export * from "./site-controller-context";
7
+ export * from "./client-geo-data";
@@ -20,4 +20,5 @@ __exportStar(require("./cloud-session-context"), exports);
20
20
  __exportStar(require("./getCloudContextType"), exports);
21
21
  __exportStar(require("./build-context"), exports);
22
22
  __exportStar(require("./site-controller-context"), exports);
23
+ __exportStar(require("./client-geo-data"), exports);
23
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC;AACtC,kDAAgC;AAChC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC;AACtC,kDAAgC;AAChC,4DAA0C;AAC1C,oDAAkC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.178-beta.2",
3
+ "version": "1.2.179",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -1,7 +1,7 @@
1
- import { IsEnum, IsNumber, IsOptional, IsString, IsUUID, ValidateNested } from "class-validator";
2
- import { Type } from "class-transformer";
1
+ import { IsEnum, IsOptional, IsString, IsUUID } from "class-validator";
3
2
  import { CloudProvider } from "../types";
4
3
  import { ClientGeoData } from "./client-geo-data";
4
+ import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
5
5
 
6
6
  export class CloudSessionContext {
7
7
  @IsOptional()
@@ -93,7 +93,6 @@ export class CloudSessionContext {
93
93
  atpId?: string;
94
94
 
95
95
  @IsOptional()
96
- @ValidateNested()
97
- @Type(() => ClientGeoData)
96
+ @ValidateNestedType(() => ClientGeoData)
98
97
  clientGeoData?: ClientGeoData;
99
98
  }
@@ -4,3 +4,4 @@ export * from "./cloud-session-context";
4
4
  export * from "./getCloudContextType";
5
5
  export * from "./build-context";
6
6
  export * from "./site-controller-context";
7
+ export * from "./client-geo-data";