// @flow
// the action types (constants) are defined here
// if you want to add one, youll need to add the constant string to the ActionType below
// and also add a line for the constant
export type ActionType = 'FETCH_ALL'
| 'SAVE_DATABASE' | 'ADD_DATABASE' | 'DELETE_DATABASE' | 'UPDATE_DATABASE'
| 'SAVE_LIBRARY' | 'ADD_LIBRARY' | 'DELETE_LIBRARY' | 'UPDATE_LIBRARY'
| 'SAVE_DATAFORMAT' | 'ADD_DATAFORMAT' | 'DELETE_DATAFORMAT' | 'UPDATE_DATAFORMAT'
| 'SAVE_ALGORITHM' | 'ADD_ALGORITHM' | 'DELETE_ALGORITHM' | 'UPDATE_ALGORITHM'
| 'SAVE_TOOLCHAIN' | 'ADD_TOOLCHAIN' | 'DELETE_TOOLCHAIN' | 'UPDATE_TOOLCHAIN'
| 'SAVE_EXPERIMENT' | 'ADD_EXPERIMENT' | 'DELETE_EXPERIMENT' | 'UPDATE_EXPERIMENT'
| 'SAVE_PLOTTER' | 'ADD_PLOTTER' | 'DELETE_PLOTTER' | 'UPDATE_PLOTTER'
| 'SAVE_PLOTTERPARAMETER' | 'ADD_PLOTTERPARAMETER' | 'DELETE_PLOTTERPARAMETER' | 'UPDATE_PLOTTERPARAMETER'
| 'SAVE_SETTINGS' | 'UPDATE_SETTINGS'
| 'SAVE_ENVIRONMENTS'
| 'CLEAR_UNSAVED';

export const FETCH_ALL: ActionType = 'FETCH_ALL';

export const SAVE_DATABASE: ActionType = 'SAVE_DATABASE';
export const ADD_DATABASE: ActionType = 'ADD_DATABASE';
export const DELETE_DATABASE: ActionType = 'DELETE_DATABASE';
export const UPDATE_DATABASE: ActionType = 'UPDATE_DATABASE';

export const SAVE_LIBRARY: ActionType = 'SAVE_LIBRARY';
export const ADD_LIBRARY: ActionType = 'ADD_LIBRARY';
export const DELETE_LIBRARY: ActionType = 'DELETE_LIBRARY';
export const UPDATE_LIBRARY: ActionType = 'UPDATE_LIBRARY';

export const SAVE_DATAFORMAT: ActionType = 'SAVE_DATAFORMAT';
export const ADD_DATAFORMAT: ActionType = 'ADD_DATAFORMAT';
export const DELETE_DATAFORMAT: ActionType = 'DELETE_DATAFORMAT';
export const UPDATE_DATAFORMAT: ActionType = 'UPDATE_DATAFORMAT';

export const SAVE_ALGORITHM: ActionType = 'SAVE_ALGORITHM';
export const ADD_ALGORITHM: ActionType = 'ADD_ALGORITHM';
export const DELETE_ALGORITHM: ActionType = 'DELETE_ALGORITHM';
export const UPDATE_ALGORITHM: ActionType = 'UPDATE_ALGORITHM';

export const SAVE_TOOLCHAIN: ActionType = 'SAVE_TOOLCHAIN';
export const ADD_TOOLCHAIN: ActionType = 'ADD_TOOLCHAIN';
export const DELETE_TOOLCHAIN: ActionType = 'DELETE_TOOLCHAIN';
export const UPDATE_TOOLCHAIN: ActionType = 'UPDATE_TOOLCHAIN';

export const SAVE_EXPERIMENT: ActionType = 'SAVE_EXPERIMENT';
export const ADD_EXPERIMENT: ActionType = 'ADD_EXPERIMENT';
export const DELETE_EXPERIMENT: ActionType = 'DELETE_EXPERIMENT';
export const UPDATE_EXPERIMENT: ActionType = 'UPDATE_EXPERIMENT';

export const SAVE_PLOTTER: ActionType = 'SAVE_PLOTTER';
export const ADD_PLOTTER: ActionType = 'ADD_PLOTTER';
export const DELETE_PLOTTER: ActionType = 'DELETE_PLOTTER';
export const UPDATE_PLOTTER: ActionType = 'UPDATE_PLOTTER';

export const SAVE_PLOTTERPARAMETER: ActionType = 'SAVE_PLOTTERPARAMETER';
export const ADD_PLOTTERPARAMETER: ActionType = 'ADD_PLOTTERPARAMETER';
export const DELETE_PLOTTERPARAMETER: ActionType = 'DELETE_PLOTTERPARAMETER';
export const UPDATE_PLOTTERPARAMETER: ActionType = 'UPDATE_PLOTTERPARAMETER';

export const SAVE_ENVIRONMENTS: ActionType = 'SAVE_ENVIRONMENTS';

export const SAVE_SETTINGS: ActionType = 'SAVE_SETTINGS';
export const UPDATE_SETTINGS: ActionType = 'UPDATE_SETTINGS';

export const CLEAR_UNSAVED: ActionType = 'CLEAR_UNSAVED';
