23 lines
924 B
TypeScript
23 lines
924 B
TypeScript
interface TourState {
|
|
currentTour: any;
|
|
legs: any[];
|
|
publicTours: any[];
|
|
userRole: string | null;
|
|
activeLegId: string | null;
|
|
setTour: (tour: any) => void;
|
|
updateLegs: (legs: any[]) => void;
|
|
createTour: (tourData: any) => Promise<any>;
|
|
updateTour: (id: string, data: any) => Promise<void>;
|
|
deleteTour: (id: string) => Promise<void>;
|
|
addLeg: (tourId: string, data: any) => Promise<void>;
|
|
updateLeg: (legId: string, data: any) => Promise<void>;
|
|
deleteLeg: (legId: string) => Promise<void>;
|
|
addLocation: (tourId: string, locationData: any) => Promise<void>;
|
|
optimizeRouting: (legId: string) => Promise<void>;
|
|
setActiveLegId: (id: string | null) => void;
|
|
fetchTour: (id: string) => Promise<void>;
|
|
fetchPublicTours: () => Promise<void>;
|
|
}
|
|
export declare const useTourStore: import("zustand").UseBoundStore<import("zustand").StoreApi<TourState>>;
|
|
export {};
|