bugfix: a new flow added to disable staffs and free the used seats.

This commit is contained in:
2026-05-18 14:56:07 +03:30
parent 81fe14823f
commit 4487d3260b
5 changed files with 184 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ export interface StaffMemberDto {
name: string;
isOwner: boolean;
isActive: boolean;
invitationStatus: 'ACTIVE' | 'PENDING' | 'EXPIRED';
invitationStatus: 'ACTIVE' | 'PENDING' | 'EXPIRED' | 'DISABLED';
invitedAt: string | null;
acceptedAt: string | null;
permissions: string[] | null;
@@ -100,6 +100,13 @@ export const staffApi = {
return response.data;
},
disableMember: async (
membershipId: string,
): Promise<{ success: boolean; message: string }> => {
const response = await apiClient.patch(`/staff/members/${membershipId}/disable`);
return response.data;
},
removeMember: async (
membershipId: string,
): Promise<{ success: boolean; message: string }> => {