resurgence-data 1.1.37 → 1.1.38

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.
@@ -9,7 +9,7 @@ export declare class InviteRequestDTO {
9
9
  }
10
10
  export declare class AcceptInviteInviteDTO {
11
11
  token: string;
12
- password: string;
12
+ password?: string;
13
13
  }
14
14
  export declare class RevokeInviteDTO {
15
15
  id: string;
@@ -63,6 +63,7 @@ __decorate([
63
63
  __decorate([
64
64
  (0, class_validator_1.IsString)({ message: "Looks like your password isn't valid. Please provide one." }),
65
65
  (0, swagger_1.ApiProperty)({ description: "Users password" }),
66
+ (0, class_validator_1.IsOptional)(),
66
67
  __metadata("design:type", String)
67
68
  ], AcceptInviteInviteDTO.prototype, "password", void 0);
68
69
  class RevokeInviteDTO {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -1,4 +1,4 @@
1
- import { IsEmail, IsIn, IsString, IsUUID } from "class-validator";
1
+ import { IsEmail, IsIn, IsOptional, IsString, IsUUID } from "class-validator";
2
2
  import { accountTypes } from "../types/account.type";
3
3
  import { ApiProperty } from "@nestjs/swagger";
4
4
 
@@ -40,7 +40,8 @@ export class AcceptInviteInviteDTO {
40
40
 
41
41
  @IsString({ message: "Looks like your password isn't valid. Please provide one." })
42
42
  @ApiProperty({ description: "Users password" })
43
- password: string;
43
+ @IsOptional()
44
+ password?: string;
44
45
  }
45
46
 
46
47
  export class RevokeInviteDTO {