client/src/constants/actionTypes.js
author Alexandre Segura <mex.zktk@gmail.com>
Mon, 19 Jun 2017 15:36:52 +0200
changeset 52 96f8a4a59bd9
parent 47 64428c7ebc19
child 53 d8588379529e
permissions -rw-r--r--
Implement logout.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
48ddaa42b810 Draft implementation of sessions.
Alexandre Segura <mex.zktk@gmail.com>
parents: 3
diff changeset
     1
export const ADD_NOTE = 'ADD_NOTE';
29
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
     2
export const ADD_NOTE_ASYNC = 'ADD_NOTE_ASYNC';
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
     3
export const LOAD_NOTES_BY_SESSION = 'LOAD_NOTES_BY_SESSION';
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
     4
export const LOAD_NOTES_BY_SESSION_ASYNC = 'LOAD_NOTES_BY_SESSION_ASYNC';
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
     5
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
     6
export const CREATE_SESSION = 'CREATE_SESSION';
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
     7
export const CREATE_SESSION_ASYNC = 'CREATE_SESSION_ASYNC';
12
48ddaa42b810 Draft implementation of sessions.
Alexandre Segura <mex.zktk@gmail.com>
parents: 3
diff changeset
     8
export const UPDATE_SESSION = 'UPDATE_SESSION';
30
4d93f4ed95bc Update session in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 29
diff changeset
     9
export const UPDATE_SESSION_ASYNC = 'UPDATE_SESSION_ASYNC';
29
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
    10
export const LOAD_SESSIONS = 'LOAD_SESSIONS';
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
    11
export const LOAD_SESSIONS_ASYNC = 'LOAD_SESSIONS_ASYNC';
44
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    12
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    13
export const AUTH_LOGIN_SUBMIT = 'AUTH_LOGIN_SUBMIT';
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    14
export const AUTH_LOGIN_REQUEST = 'AUTH_LOGIN_REQUEST';
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    15
export const AUTH_LOGIN_SUCCESS = 'AUTH_LOGIN_SUCCESS';
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    16
export const AUTH_LOGIN_ERROR = 'AUTH_LOGIN_ERROR';
47
64428c7ebc19 Store token & user.
Alexandre Segura <mex.zktk@gmail.com>
parents: 44
diff changeset
    17
export const AUTH_STORE_TOKEN_ASYNC = 'AUTH_STORE_TOKEN_ASYNC';
64428c7ebc19 Store token & user.
Alexandre Segura <mex.zktk@gmail.com>
parents: 44
diff changeset
    18
export const AUTH_STORE_TOKEN = 'AUTH_STORE_TOKEN';
52
96f8a4a59bd9 Implement logout.
Alexandre Segura <mex.zktk@gmail.com>
parents: 47
diff changeset
    19
export const AUTH_LOGOUT = 'AUTH_LOGOUT';