Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

482 B
Raw Blame
import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty } from 'class-validator'

import { Role } from '../entity/project-share.entity'

export class ShareDTO {
  @ApiProperty({
    example: '[email protected]',
    required: true,
    description: 'User you want to invite to your project',
  })
  @IsNotEmpty()
  email: string

  @ApiProperty({
    example: 'viewer',
    required: true,
    description: 'Users role in your project',
  })
  @IsNotEmpty()
  role: Role
}