File

src/user/dtos/update-user-email-prefs.dto.ts

Index

Properties

Properties

Public display_email
Type : boolean
Decorators :
@ApiProperty({description: 'User Display Public Email', type: Boolean, example: false})
@IsBoolean()
Public receive_collaboration
Type : boolean
Decorators :
@ApiProperty({description: 'User Recieve Collaboration Requests', type: Boolean, example: false})
@IsBoolean()
Public receive_product_updates
Type : boolean
Decorators :
@ApiProperty({description: 'User Recieve Email Product Updates', type: Boolean, example: false})
@IsBoolean()
import { ApiProperty } from "@nestjs/swagger";
import { IsBoolean } from "class-validator";

export class UpdateUserEmailPreferencesDto {
  @ApiProperty({
    description: "User Display Public Email",
    type: Boolean,
    example: false,
  })
  @IsBoolean()
  public display_email: boolean;

  @ApiProperty({
    description: "User Recieve Collaboration Requests",
    type: Boolean,
    example: false,
  })
  @IsBoolean()
  public receive_collaboration: boolean;

  @ApiProperty({
    description: "User Recieve Email Product Updates",
    type: Boolean,
    example: false,
  })
  @IsBoolean()
  public receive_product_updates: boolean;
}

results matching ""

    No results matching ""