resurgence-data 1.0.21 → 1.0.22

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.
@@ -63,7 +63,7 @@ __decorate([
63
63
  (0, class_validator_1.IsOptional)(),
64
64
  (0, class_validator_1.IsString)({ message: "Please confirm your password" }),
65
65
  (0, custom_validation_1.isSameAs)("password", { message: "Your passwords to not match. Please check" }),
66
- (0, swagger_1.ApiProperty)({ description: "Confirmed password from user" }),
66
+ (0, swagger_1.ApiProperty)({ description: "Confirmed password from user", required: false }),
67
67
  __metadata("design:type", String)
68
68
  ], ActivationRequestDTO.prototype, "passwordConfirm", void 0);
69
69
  class UpdateAuthenticationDTO {
@@ -65,6 +65,6 @@ class RevokeInviteDTO {
65
65
  exports.RevokeInviteDTO = RevokeInviteDTO;
66
66
  __decorate([
67
67
  (0, class_validator_1.IsUUID)(4, { message: "Please select a valid invite to revoke." }),
68
- (0, swagger_1.ApiProperty)({ description: "Id of the invite" }),
68
+ (0, swagger_1.ApiProperty)({ description: "ID of the invite" }),
69
69
  __metadata("design:type", String)
70
70
  ], RevokeInviteDTO.prototype, "id", void 0);
package/dist/user/user.js CHANGED
@@ -41,13 +41,13 @@ __decorate([
41
41
  (0, class_validator_1.IsOptional)() // Allows the property to be optional
42
42
  ,
43
43
  (0, class_validator_1.IsString)({ message: "Please provide a valid link for the avatar (optional)." }),
44
- (0, swagger_1.ApiProperty)({ description: "User's profile link" }),
44
+ (0, swagger_1.ApiProperty)({ description: "User's profile link", required: false }),
45
45
  __metadata("design:type", String)
46
46
  ], CreateUserDTO.prototype, "avatarUrl", void 0);
47
47
  __decorate([
48
48
  (0, class_validator_1.IsOptional)(),
49
49
  (0, class_validator_1.IsBoolean)({ message: "Corporate should be true or false (optional)." }),
50
- (0, swagger_1.ApiProperty)({ description: "Corporate or private user" }),
50
+ (0, swagger_1.ApiProperty)({ description: "Corporate or private user", required: false }),
51
51
  __metadata("design:type", Boolean)
52
52
  ], CreateUserDTO.prototype, "corporate", void 0);
53
53
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -40,7 +40,7 @@ export class ActivationRequestDTO {
40
40
  @IsOptional()
41
41
  @IsString({ message: "Please confirm your password" })
42
42
  @isSameAs("password", { message: "Your passwords to not match. Please check" })
43
- @ApiProperty({ description: "Confirmed password from user" })
43
+ @ApiProperty({ description: "Confirmed password from user", required: false })
44
44
  passwordConfirm?: string;
45
45
  }
46
46
 
@@ -41,6 +41,6 @@ export class AcceptInviteInviteDTO {
41
41
 
42
42
  export class RevokeInviteDTO {
43
43
  @IsUUID(4, { message: "Please select a valid invite to revoke." })
44
- @ApiProperty({ description: "Id of the invite" })
44
+ @ApiProperty({ description: "ID of the invite" })
45
45
  id: string;
46
46
  }
package/src/user/user.ts CHANGED
@@ -22,12 +22,12 @@ export class CreateUserDTO {
22
22
 
23
23
  @IsOptional() // Allows the property to be optional
24
24
  @IsString({ message: "Please provide a valid link for the avatar (optional)." })
25
- @ApiProperty({ description: "User's profile link" })
25
+ @ApiProperty({ description: "User's profile link", required: false })
26
26
  avatarUrl?: string;
27
27
 
28
28
  @IsOptional()
29
29
  @IsBoolean({ message: "Corporate should be true or false (optional)." })
30
- @ApiProperty({ description: "Corporate or private user" })
30
+ @ApiProperty({ description: "Corporate or private user", required: false })
31
31
  corporate?: boolean;
32
32
 
33
33
  @IsString({ message: "Account type is required. Please specify it." })