feature: phase0 - Global patients + mobile normalization
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { apiClient } from './client';
|
||||
import {
|
||||
CreatePatientInput,
|
||||
CreatePatientResponse,
|
||||
Patient,
|
||||
PatientsListResponse,
|
||||
} from '@/types/patient';
|
||||
@@ -11,7 +12,7 @@ export const patientsApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
create: async (data: CreatePatientInput): Promise<{ success: boolean; data: Patient }> => {
|
||||
create: async (data: CreatePatientInput): Promise<CreatePatientResponse> => {
|
||||
const response = await apiClient.post('/patients', data);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user