feat: Add voice management functionality with delete capability and UI integration
This commit is contained in:
@@ -432,6 +432,10 @@ export const voiceDesignApi = {
|
||||
return response.data
|
||||
},
|
||||
|
||||
delete: async (id: number): Promise<void> => {
|
||||
await apiClient.delete(API_ENDPOINTS.VOICE_DESIGNS.DELETE(id))
|
||||
},
|
||||
|
||||
prepareAndCreate: async (data: VoiceDesignCreate): Promise<VoiceDesign> => {
|
||||
const response = await apiClient.post<VoiceDesign>(
|
||||
API_ENDPOINTS.VOICE_DESIGNS.PREPARE_AND_CREATE,
|
||||
|
||||
@@ -31,6 +31,7 @@ export const API_ENDPOINTS = {
|
||||
LIST: '/voice-designs',
|
||||
CREATE: '/voice-designs',
|
||||
PREPARE_AND_CREATE: '/voice-designs/prepare-and-create',
|
||||
DELETE: (id: number) => `/voice-designs/${id}`,
|
||||
PREPARE_CLONE: (id: number) => `/voice-designs/${id}/prepare-clone`,
|
||||
},
|
||||
} as const
|
||||
|
||||
Reference in New Issue
Block a user