bugfix: org invitation flow updated so that the invited org follows the exact steps of free trial registration.

This commit is contained in:
2026-05-17 02:03:18 +03:30
parent 201be53ddd
commit 09b511a136
7 changed files with 373 additions and 158 deletions

View File

@@ -1,4 +1,4 @@
import { IsString, MinLength } from 'class-validator';
import { IsEmail, IsEnum, IsString, MinLength } from 'class-validator';
export class AcceptOrganizationInviteDto {
@IsString()
@@ -9,6 +9,12 @@ export class AcceptOrganizationInviteDto {
@MinLength(1)
organizationName: string;
@IsEmail()
organizationEmail: string;
@IsEnum(['CLINIC', 'LAB'])
organizationType: 'CLINIC' | 'LAB';
@IsString()
@MinLength(1)
ownerName: string;