@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.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/contexts/cloud-session-context.js +2 -3
- package/dist/v4/contexts/cloud-session-context.js.map +1 -1
- package/dist/v4/contexts/index.d.ts +1 -0
- package/dist/v4/contexts/index.js +1 -0
- package/dist/v4/contexts/index.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/contexts/cloud-session-context.ts +3 -4
- package/src/v4/contexts/index.ts +1 -0
|
@@ -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,
|
|
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,
|
|
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"}
|
|
@@ -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,7 +1,7 @@
|
|
|
1
|
-
import { IsEnum,
|
|
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
|
-
@
|
|
97
|
-
@Type(() => ClientGeoData)
|
|
96
|
+
@ValidateNestedType(() => ClientGeoData)
|
|
98
97
|
clientGeoData?: ClientGeoData;
|
|
99
98
|
}
|
package/src/v4/contexts/index.ts
CHANGED