/**
 * Created by igboyes on 03/05/17.
 */

const createRequestActionType = (root) => {
    return {
        REQUESTED: `${root}_REQUESTED`,
        SUCCEEDED: `${root}_SUCCEEDED`,
        FAILED: `${root}_FAILED`
    };
};

// Samples
export const WS_UPDATE_SAMPLE = "WS_UPDATE_SAMPLE";
export const WS_REMOVE_SAMPLE = "WS_REMOVE_SAMPLE";

export const FIND_SAMPLES = createRequestActionType("FIND_SAMPLES");
export const GET_SAMPLE = createRequestActionType("GET_SAMPLE");

// Virus
export const WS_UPDATE_VIRUS = "WS_UPDATE_VIRUS";
export const WS_REMOVE_VIRUS = "WS_REMOVE_VIRUS";

export const FIND_VIRUSES = createRequestActionType("FIND_VIRUSES");
export const GET_VIRUS = createRequestActionType("GET_VIRUS");
export const CREATE_VIRUS = createRequestActionType("CREATE_VIRUS");

export const TOGGLE_ISOLATE_EDITING = "TOGGLE_ISOLATE_EDITING";
export const TOGGLE_SEQUENCE_EDITING = "TOGGLE_SEQUENCE_EDITING";

// Account
export const GET_ACCOUNT_REQUESTED = "GET_ACCOUNT_REQUESTED";
export const GET_ACCOUNT_SUCCEEDED = "GET_ACCOUNT_SUCCEEDED";
export const GET_ACCOUNT_FAILED = "GET_ACCOUNT_FAILED";
export const LOGOUT_REQUESTED = "LOGOUT_REQUESTED";
export const LOGOUT_SUCCEEDED = "LOGOUT_SUCCEEDED";

// Administrative setting actionTypes
export const GET_SETTINGS = createRequestActionType("GET_SETTINGS");
export const UPDATE_SETTINGS = createRequestActionType("UPDATE_SETTINGS");

export const SET_SOURCE_TYPE_VALUE = "SET_SOURCE_TYPE_VALUE";
export const SET_CONTROL_READAHEAD_TERM = "SET_CONTROL_READAHEAD_TERM";
export const GET_CONTROL_READAHEAD_REQUESTED = "GET_CONTROL_READAHEAD_REQUESTED";
export const GET_CONTROL_READAHEAD_SUCCEEDED = "GET_CONTROL_READAHEAD_SUCCEEDED";
export const GET_CONTROL_READAHEAD_FAILED = "GET_CONTROL_READAHEAD_FAILED";

// Users
export const LIST_USERS = createRequestActionType("LIST_USERS");
export const SELECT_USER = "SELECT_USER";
export const CHANGE_SET_PASSWORD = "CHANGE_SET_PASSWORD";
export const CHANGE_SET_CONFIRM = "CHANGE_SET_CONFIRM";
export const SET_PASSWORD = createRequestActionType("SET_PASSWORD");
export const CLEAR_SET_PASSWORD = "CLEAR_SET_PASSWORD";
export const SET_FORCE_RESET = createRequestActionType("SET_FORCE_RESET");
export const SET_PRIMARY_GROUP = createRequestActionType("SET_PRIMARY_GROUP");
export const ADD_USER_TO_GROUP = createRequestActionType("ADD_USER_TO_GROUP");
export const REMOVE_USER_FROM_GROUP = createRequestActionType("REMOVE_USER_FROM_GROUP");

// Groups
export const LIST_GROUPS = createRequestActionType("LIST_GROUPS");

@@ -218,16 +218,121 @@
  %7D;%0A%7D;%0A%0A
+export const SET_APP_PENDING = %22SET_APP_PENDING%22;%0Aexport const UNSET_APP_PENDING = %22UNSET_APP_PENDING%22;%0A%0A
 // Sampl
@@ -903,123 +903,415 @@
 nst 
-TOGGLE_ISOLATE_EDITING = %22TOGGLE_ISOLATE_EDITING%22;%0Aexport const TOGGLE_SEQUENCE_EDITING = %22TOGGLE_SEQUENCE_EDITING%22
+SHOW_ADD_ISOLATE = %22SHOW_ADD_ISOLATE%22;%0Aexport const SHOW_EDIT_ISOLATE = %22SHOW_ADD_ISOLATE%22;%0Aexport const SHOW_REMOVE_ISOLATE = %22SHOW_ADD_ISOLATE%22;%0Aexport const HIDE_VIRUS_MODAL = %22HIDE_VIRUS_MODAL%22;%0A%0Aexport const ADD_ISOLATE = createRequestActionType(%22ADD_ISOLATE%22);%0Aexport const EDIT_ISOLATE = createRequestActionType(%22EDIT_ISOLATE%22);%0Aexport const REMOVE_ISOLATE = createRequestActionType(%22REMOVE_ISOLATE%22)
 ;%0A%0A/

Add and remove some action types