84 lines
1.9 KiB
TypeScript
84 lines
1.9 KiB
TypeScript
import { FirmwareHardware, Enigma } from "farmbot";
|
|
import { TimeSettings } from "../interfaces";
|
|
import { BotState } from "../devices/interfaces";
|
|
import { UUID } from "../resources/interfaces";
|
|
|
|
export interface MessagesProps {
|
|
alerts: Alert[];
|
|
apiFirmwareValue: FirmwareHardware | undefined;
|
|
timeSettings: TimeSettings;
|
|
dispatch: Function;
|
|
findApiAlertById(id: number): UUID;
|
|
}
|
|
|
|
export interface AlertsProps {
|
|
alerts: Alert[];
|
|
apiFirmwareValue: string | undefined;
|
|
timeSettings: TimeSettings;
|
|
dispatch: Function;
|
|
findApiAlertById(id: number): UUID;
|
|
}
|
|
|
|
export interface ProblemTag {
|
|
author: string;
|
|
noun: string;
|
|
verb: string;
|
|
}
|
|
|
|
export interface FirmwareAlertsProps {
|
|
bot: BotState;
|
|
apiFirmwareValue: string | undefined;
|
|
timeSettings: TimeSettings;
|
|
dispatch: Function;
|
|
}
|
|
|
|
export interface Alert extends Enigma { }
|
|
|
|
export interface AlertCardProps {
|
|
alert: Alert;
|
|
apiFirmwareValue: string | undefined;
|
|
timeSettings: TimeSettings;
|
|
dispatch: Function;
|
|
findApiAlertById?(id: number): UUID;
|
|
}
|
|
|
|
export interface CommonAlertCardProps {
|
|
alert: Alert;
|
|
timeSettings: TimeSettings;
|
|
findApiAlertById?(id: number): UUID;
|
|
dispatch?: Function;
|
|
}
|
|
|
|
export interface AlertCardTemplateProps {
|
|
className: string;
|
|
title: string;
|
|
alert: Alert;
|
|
message: string;
|
|
timeSettings: TimeSettings;
|
|
children?: React.ReactNode;
|
|
findApiAlertById?(id: number): UUID;
|
|
dispatch?: Function;
|
|
}
|
|
|
|
export interface DismissAlertProps {
|
|
id?: number;
|
|
findApiAlertById?(id: number): UUID;
|
|
dispatch?: Function;
|
|
}
|
|
|
|
export interface FirmwareMissingProps extends CommonAlertCardProps {
|
|
apiFirmwareValue: string | undefined;
|
|
}
|
|
|
|
export interface SeedDataMissingProps extends CommonAlertCardProps {
|
|
dispatch: Function;
|
|
}
|
|
|
|
export interface SeedDataMissingState {
|
|
selection: string;
|
|
}
|
|
|
|
export interface TourNotTakenProps extends CommonAlertCardProps {
|
|
dispatch: Function;
|
|
}
|