import { apiClient } from '@services'; import { Order, OrderRequest, PlaceOrderResponse } from '@interfaces'; export const placeOrderApi = async (payload: OrderRequest) => { return await apiClient.post('/orders', payload); }; export const getOrderHistoryApi = async () => { return await apiClient.get('/orders'); }; export const getOrderByIdApi = async (orderId: string) => { return await apiClient.get(`/orders/${orderId}`); };