import { Dictionary } from "@insite/client-framework/Common/Types";
import { PromotionModel } from "@insite/client-framework/Types/ApiModels";

export interface PromotionsState {
    readonly isLoading: Dictionary<boolean>;
    readonly dataViews: Dictionary<DataView>;
    readonly errorStatusCodeById?: Dictionary<Readonly<number>>;
}

interface DataView {
    readonly fetchedDate: Date;
    readonly isLoading: boolean;
    value?: Readonly<PromotionModel[]>;
}
