bugfix: a new flow added to disable staffs and free the used seats.
This commit is contained in:
@@ -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 }> => {
|
||||
|
||||
Reference in New Issue
Block a user