improvement: Nothing done is related to subscriptions!!!
This commit is contained in:
@@ -11,6 +11,7 @@ export interface StaffMemberDto {
|
||||
invitationStatus: 'ACTIVE' | 'PENDING' | 'EXPIRED' | 'DISABLED';
|
||||
invitedAt: string | null;
|
||||
acceptedAt: string | null;
|
||||
hasPassword: boolean;
|
||||
permissions: string[] | null;
|
||||
}
|
||||
|
||||
@@ -46,6 +47,7 @@ export interface PreviewInviteResponse {
|
||||
organizationName: string;
|
||||
expiresAt: string;
|
||||
status: 'PENDING' | 'ACCEPTED';
|
||||
mode: 'join' | 'password_setup';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -79,6 +81,21 @@ export const staffApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
clearPassword: async (
|
||||
membershipId: string,
|
||||
): Promise<{
|
||||
success: boolean;
|
||||
data: {
|
||||
membershipId: string;
|
||||
invitationId: string;
|
||||
email: string;
|
||||
invitationUrl: string;
|
||||
};
|
||||
}> => {
|
||||
const response = await apiClient.post(`/staff/members/${membershipId}/clear-password`);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
previewInvite: async (token: string): Promise<PreviewInviteResponse> => {
|
||||
const response = await apiClient.get(`/staff/invitations/preview?token=${encodeURIComponent(token)}`);
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user