61 lines
1.3 KiB
TypeScript
61 lines
1.3 KiB
TypeScript
import {
|
|
RegimenProps,
|
|
CalendarRow,
|
|
RegimenItemCalendarRow
|
|
} from "../interfaces";
|
|
import { TaggedRegimen } from "farmbot";
|
|
import { Actions } from "../../constants";
|
|
import { ResourceIndex, VariableNameSet } from "../../resources/interfaces";
|
|
import { ShouldDisplay } from "../../devices/interfaces";
|
|
|
|
export interface ActiveEditorProps {
|
|
regimen: TaggedRegimen;
|
|
calendar: CalendarRow[];
|
|
dispatch: Function;
|
|
resources: ResourceIndex;
|
|
shouldDisplay: ShouldDisplay;
|
|
variableData: VariableNameSet;
|
|
}
|
|
|
|
export interface ActiveEditorState {
|
|
variablesCollapsed: boolean;
|
|
}
|
|
|
|
export interface RegimenItemListProps {
|
|
calendar: RegimenItemCalendarRow[];
|
|
dispatch: Function;
|
|
}
|
|
|
|
export interface RegimenItemStepProps {
|
|
item: CalendarRow;
|
|
dispatch: Function;
|
|
}
|
|
|
|
export interface RegimenItemDayGroupProps {
|
|
row: CalendarRow;
|
|
dispatch: Function;
|
|
}
|
|
|
|
export interface RegimenEditorProps {
|
|
current: TaggedRegimen | undefined;
|
|
dispatch: Function;
|
|
calendar: CalendarRow[];
|
|
resources: ResourceIndex;
|
|
shouldDisplay: ShouldDisplay;
|
|
variableData: VariableNameSet;
|
|
}
|
|
|
|
export interface CopyButtonProps {
|
|
dispatch: Function;
|
|
regimen: TaggedRegimen;
|
|
}
|
|
|
|
export interface DeleteButtonProps extends RegimenProps {
|
|
baseUrl: string;
|
|
}
|
|
|
|
export interface SelectRegimen {
|
|
type: Actions.SELECT_REGIMEN;
|
|
payload: string;
|
|
}
|