adamo-types 1.0.35 → 1.0.39

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/README.md CHANGED
@@ -97,3 +97,5 @@ try {
97
97
  }
98
98
  ```
99
99
  ---
100
+ ## TODO
101
+ - With DTOS fix exporting types -> class(es) because types don't allow for DTO validation within validators
@@ -36,7 +36,7 @@ export class Users {
36
36
 
37
37
  @IsArray()
38
38
  @IsNotEmpty()
39
- // @ValidateNested({ each: true })
39
+ @ValidateNested({ each: true })
40
40
  channel: string[]
41
41
 
42
42
  @IsNotEmpty()
@@ -44,7 +44,7 @@ export class Users {
44
44
  salesman: boolean
45
45
  }
46
46
 
47
- export class CreateUsersDTO {
47
+ export class CreateUsers {
48
48
  @IsString()
49
49
  @IsNotEmpty()
50
50
  ticket: string
@@ -54,3 +54,5 @@ export class CreateUsersDTO {
54
54
  @Type(() => Users)
55
55
  users: Users[]
56
56
  }
57
+
58
+ export type CreateUsersDTO = CreateUsers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adamo-types",
3
- "version": "1.0.35",
3
+ "version": "1.0.39",
4
4
  "description": "A types library for api communication agreement",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {