diff options
author | 2017-10-13 12:29:40 +0200 | |
---|---|---|
committer | 2017-10-13 12:29:40 +0200 | |
commit | 58cda9cc7fb79ca9df6746de7f9662bc08dc156a (patch) | |
tree | 1211600c2a5d3b5f81c435c6896618111a611720 /src/actions/user.js | |
download | ferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.tar.gz ferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.tar.zst ferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.zip |
initial commit
Diffstat (limited to 'src/actions/user.js')
-rw-r--r-- | src/actions/user.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/actions/user.js b/src/actions/user.js new file mode 100644 index 000000000..fe32b8a05 --- /dev/null +++ b/src/actions/user.js | |||
@@ -0,0 +1,30 @@ | |||
1 | import PropTypes from 'prop-types'; | ||
2 | |||
3 | export default { | ||
4 | login: { | ||
5 | email: PropTypes.string.isRequired, | ||
6 | password: PropTypes.string.isRequired, | ||
7 | }, | ||
8 | logout: {}, | ||
9 | signup: { | ||
10 | firstname: PropTypes.string.isRequired, | ||
11 | lastname: PropTypes.string.isRequired, | ||
12 | email: PropTypes.string.isRequired, | ||
13 | password: PropTypes.string.isRequired, | ||
14 | accountType: PropTypes.string.isRequired, | ||
15 | company: PropTypes.string, | ||
16 | }, | ||
17 | retrievePassword: { | ||
18 | email: PropTypes.string.isRequired, | ||
19 | }, | ||
20 | invite: { | ||
21 | invites: PropTypes.array.isRequired, | ||
22 | }, | ||
23 | update: { | ||
24 | userData: PropTypes.object.isRequired, | ||
25 | }, | ||
26 | resetStatus: {}, | ||
27 | importLegacyServices: PropTypes.arrayOf(PropTypes.shape({ | ||
28 | recipe: PropTypes.string.isRequired, | ||
29 | })).isRequired, | ||
30 | }; | ||