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!

520 B
Raw Blame
import { IsEmail, IsEnum, IsString, Length } from 'class-validator'
import { OrganisationRole } from '../entity/organisation-member.entity'

export class CreateOrganisationDTO {
  @IsString()
  @Length(1, 50)
  name: string
}

export class InviteMemberDTO {
  @IsEmail()
  email: string

  @IsEnum(OrganisationRole)
  role: OrganisationRole
}

export class UpdateMemberRoleDTO {
  @IsEnum(OrganisationRole)
  role: OrganisationRole
}

export class UpdateOrganisationDTO {
  @IsString()
  @Length(1, 50)
  name: string
}