Fare and route-coach, production checklist updates

This commit is contained in:
Stephanos A
2026-07-02 22:42:15 +03:00
parent 4aadf588d4
commit 200476dfd6
37 changed files with 1672 additions and 248 deletions

View File

@@ -442,6 +442,14 @@ export const excessBaggageApi = {
delete: (id: string) => apiClient.delete(`/agents/excess-baggage/${id}`),
};
// Route Coach Templates API
export const routeCoachTemplatesApi = {
get: (routeId: string) => apiClient.get<any>(`/routes/${routeId}/coaches`),
set: (routeId: string, coaches: Array<{ coachId: string; positionNumber: number }>) =>
apiClient.put<any>(`/routes/${routeId}/coaches`, { coaches }),
clear: (routeId: string) => apiClient.delete(`/routes/${routeId}/coaches`),
};
// System Config API
export const systemConfigApi = {
getAll: () => apiClient.get<Record<string, string>>('/config'),