diff options
author | 2021-09-14 10:34:04 +0200 | |
---|---|---|
committer | 2021-09-14 10:34:04 +0200 | |
commit | 979ec02c9a1019152be08705986337e470eabb57 (patch) | |
tree | 6021179ad8649112717a499780f475275af487f2 /src/actions/user.ts | |
parent | refactor: defensive programming to avoid javascript error for unread badges (diff) | |
download | ferdium-app-979ec02c9a1019152be08705986337e470eabb57.tar.gz ferdium-app-979ec02c9a1019152be08705986337e470eabb57.tar.zst ferdium-app-979ec02c9a1019152be08705986337e470eabb57.zip |
chore: codebase improvements (#1930)
Diffstat (limited to 'src/actions/user.ts')
-rw-r--r-- | src/actions/user.ts | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/actions/user.ts b/src/actions/user.ts new file mode 100644 index 000000000..20d27ee53 --- /dev/null +++ b/src/actions/user.ts | |||
@@ -0,0 +1,32 @@ | |||
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, | ||
15 | company: PropTypes.string, | ||
16 | currency: PropTypes.string, | ||
17 | }, | ||
18 | retrievePassword: { | ||
19 | email: PropTypes.string.isRequired, | ||
20 | }, | ||
21 | invite: { | ||
22 | invites: PropTypes.array.isRequired, | ||
23 | }, | ||
24 | update: { | ||
25 | userData: PropTypes.object.isRequired, | ||
26 | }, | ||
27 | resetStatus: {}, | ||
28 | importLegacyServices: PropTypes.arrayOf(PropTypes.shape({ | ||
29 | recipe: PropTypes.string.isRequired, | ||
30 | })).isRequired, | ||
31 | delete: {}, | ||
32 | }; | ||