13 lines
444 B
TypeScript
13 lines
444 B
TypeScript
import { DashboardResponce, OnBoardPayload, UserProfile } from '@interfaces';
|
|
import { apiClient } from '@services';
|
|
|
|
export const onBoardComplete = async (
|
|
payload: OnBoardPayload,
|
|
): Promise<UserProfile> => {
|
|
return await apiClient.post<UserProfile>('/auth/onboard', payload);
|
|
};
|
|
|
|
export const getDashboardApi = async (): Promise<DashboardResponce> => {
|
|
return await apiClient.get<DashboardResponce>('/delivery-partners/dashboard');
|
|
};
|