import { Dictionary } from "@insite/client-framework/Common/Types";
import { DataView, DataViewState } from "@insite/client-framework/Store/Data/DataState";
import { DealerModel } from "@insite/client-framework/Types/ApiModels";

export interface DealersDataView extends DataView {
    readonly defaultLatitude: number;
    readonly defaultLongitude: number;
    readonly defaultRadius: number;
    readonly distanceUnitOfMeasure: string;
}

export interface DealersState extends DataViewState<DealerModel, DealersDataView> {
    readonly idByPath: Dictionary<string>;
    readonly pathNotFound: Dictionary<boolean>;
    readonly defaultLocation: {
        readonly latitude: number;
        readonly longitude: number;
    };
}
