import apiClient from '../client'; import endpoints from '../endpoints'; const userService = { getDocs: (): Promise => apiClient.get(endpoints.USER.DOCS), checkDocs: (data: any): Promise => apiClient.post(endpoints.USER.DOCS_CHECK, data), getAPIKeys: (): Promise => apiClient.get(endpoints.USER.API_KEYS), createAPIKey: (data: any): Promise => apiClient.post(endpoints.USER.CREATE_API_KEY, data), deleteAPIKey: (data: any): Promise => apiClient.post(endpoints.USER.DELETE_API_KEY, data), getPrompts: (): Promise => apiClient.get(endpoints.USER.PROMPTS), createPrompt: (data: any): Promise => apiClient.post(endpoints.USER.CREATE_PROMPT, data), deletePrompt: (data: any): Promise => apiClient.post(endpoints.USER.DELETE_PROMPT, data), updatePrompt: (data: any): Promise => apiClient.post(endpoints.USER.UPDATE_PROMPT, data), getSinglePrompt: (id: string): Promise => apiClient.get(endpoints.USER.SINGLE_PROMPT(id)), deletePath: (docPath: string): Promise => apiClient.get(endpoints.USER.DELETE_PATH(docPath)), getTaskStatus: (task_id: string): Promise => apiClient.get(endpoints.USER.TASK_STATUS(task_id)), }; export default userService;