feat(ui): Massive frontend modernization including customer table redesign, new map features, and consistent styling
This commit is contained in:
@@ -5,6 +5,8 @@ import {
|
||||
UpdateDeliveryRequest,
|
||||
DeliveriesResponse,
|
||||
DeliveryResponse,
|
||||
DeliveriesMapResponse,
|
||||
DeliveryHistoryResponse,
|
||||
AxiosResponse
|
||||
} from '../types/models';
|
||||
|
||||
@@ -23,6 +25,12 @@ export const deliveryService = {
|
||||
getOrder: (id: number): Promise<AxiosResponse<DeliveryResponse>> =>
|
||||
api.get(`/delivery/order/${id}`),
|
||||
|
||||
getForMap: (date: string): Promise<AxiosResponse<DeliveriesMapResponse>> =>
|
||||
api.get(`/delivery/map`, { params: { date } }),
|
||||
|
||||
getHistory: (startDate: string, endDate: string): Promise<AxiosResponse<DeliveryHistoryResponse>> =>
|
||||
api.get(`/delivery/history`, { params: { start_date: startDate, end_date: endDate } }),
|
||||
|
||||
update: (id: number, data: UpdateDeliveryRequest): Promise<AxiosResponse<DeliveryResponse>> =>
|
||||
api.put(`/delivery/edit/${id}`, data),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user