@devcycle/types
Advanced tools
Comparing version 1.0.7 to 1.0.9
{ | ||
"name": "@devcycle/types", | ||
"version": "1.0.7", | ||
"version": "1.0.9", | ||
"type": "commonjs", | ||
@@ -12,4 +12,5 @@ "main": "./src/index.js", | ||
"lodash": "^4.17.21", | ||
"class-transformer": "0.5.1" | ||
"class-transformer": "0.5.1", | ||
"iso-639-1": "^2.1.13" | ||
} | ||
} |
@@ -15,5 +15,2 @@ import { PublicEnvironment, PublicFeature, PublicProject, PublicVariable } from '../../config/configBody'; | ||
isAnonymous?: boolean; | ||
/** | ||
* Must be defined if `isAnonymous = false` | ||
*/ | ||
user_id: string; | ||
@@ -31,3 +28,3 @@ /** | ||
/** | ||
* ISO 639-1 two letter codes | ||
* ISO 639-1 two-letter codes | ||
*/ | ||
@@ -99,5 +96,2 @@ language?: string; | ||
isAnonymous: boolean; | ||
/** | ||
* Must be defined if `isAnonymous = false` | ||
*/ | ||
user_id: string; | ||
@@ -115,3 +109,3 @@ /** | ||
/** | ||
* ISO 639-1 two letter codes | ||
* ISO 639-1 two-letter codes | ||
*/ | ||
@@ -118,0 +112,0 @@ language?: string; |
@@ -18,2 +18,4 @@ "use strict"; | ||
const dvcJSON_1 = require("../../validators/dvcJSON"); | ||
const isNotBlank_1 = require("../../validators/isNotBlank"); | ||
const iso_639_1_1 = require("../../validators/iso-639-1"); | ||
exports.SDKTypeValues = ['client', 'server', 'mobile', 'api']; | ||
@@ -48,2 +50,3 @@ const boolTransform = ({ value }) => { | ||
class_validator_1.IsString(), | ||
isNotBlank_1.IsNotBlank(), | ||
class_validator_1.IsNotEmpty(), | ||
@@ -63,2 +66,3 @@ __metadata("design:type", String) | ||
__decorate([ | ||
iso_639_1_1.IsISO6391(), | ||
class_validator_1.IsString(), | ||
@@ -158,2 +162,3 @@ class_validator_1.IsOptional(), | ||
class_validator_1.IsString(), | ||
isNotBlank_1.IsNotBlank(), | ||
class_validator_1.IsNotEmpty(), | ||
@@ -173,2 +178,3 @@ __metadata("design:type", String) | ||
__decorate([ | ||
iso_639_1_1.IsISO6391(), | ||
class_validator_1.IsString(), | ||
@@ -175,0 +181,0 @@ class_validator_1.IsOptional(), |
Sorry, the diff of this file is not supported yet
72105
53
1601
5