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

@@ -92,6 +92,7 @@ export const organizationApi = {
ownerEmail: string;
organizationName: string;
organizationType: 'CLINIC' | 'LAB';
organizationEmail?: string;
inviterOrganizationName: string;
expiresAt: string;
status: 'PENDING' | 'ACCEPTED';
@@ -106,6 +107,8 @@ export const organizationApi = {
acceptInvite: async (body: {
token: string;
organizationName: string;
organizationEmail: string;
organizationType: 'CLINIC' | 'LAB';
ownerName: string;
password: string;
}): Promise<{ success: boolean; message: string; data: { organizationId: string } }> => {