* WIP * Chunk names * Add auth call * add auth * WIP * Auth management setup * fix a test * fix cypress machine count * some more changes * fix header link * check for auth * fix import * fix imports * Use auth class * WIP * Better loading * Remove unused * Remove qs * Auth loader * Redirect for login * Third part auth * 404 redirects * 404 page handling * Adding custom docker image for performance fixes * Correcting the workflow to get package step to run * Clean up * lazy auth load * remove assertions from delete app and logout calls * remove github workflow changes * roll back lazy auth * Error handling * test editor chunk suspense * Show header in editor before initialization * Changes for app view * Login header fixes * Loader fixes * Fix base login routes Co-authored-by: Arpit Mohan <arpit@appsmith.com>
54 lines
1.4 KiB
TypeScript
54 lines
1.4 KiB
TypeScript
import {
|
|
ReduxActionErrorTypes,
|
|
ReduxActionTypes,
|
|
} from "constants/ReduxActionConstants";
|
|
import { CurrentUserDetailsRequestPayload } from "constants/userConstants";
|
|
import { TokenPasswordUpdateRequest, VerifyTokenRequest } from "api/UserApi";
|
|
|
|
export const logoutUserSuccess = () => ({
|
|
type: ReduxActionTypes.LOGOUT_USER_SUCCESS,
|
|
});
|
|
|
|
export const logoutUserError = (error: any) => ({
|
|
type: ReduxActionErrorTypes.LOGOUT_USER_ERROR,
|
|
payload: {
|
|
error,
|
|
},
|
|
});
|
|
export const setCurrentUserDetails = () => ({
|
|
type: ReduxActionTypes.SET_CURRENT_USER_INIT,
|
|
payload: CurrentUserDetailsRequestPayload,
|
|
});
|
|
|
|
export const verifyInviteSuccess = () => ({
|
|
type: ReduxActionTypes.VERIFY_INVITE_SUCCESS,
|
|
});
|
|
|
|
export const verifyInvite = (payload: VerifyTokenRequest) => ({
|
|
type: ReduxActionTypes.VERIFY_INVITE_INIT,
|
|
payload,
|
|
});
|
|
|
|
export const verifyInviteError = (error: any) => ({
|
|
type: ReduxActionErrorTypes.VERIFY_INVITE_ERROR,
|
|
payload: { error },
|
|
});
|
|
|
|
export const invitedUserSignup = (
|
|
payload: TokenPasswordUpdateRequest & { resolve: any; reject: any },
|
|
) => ({
|
|
type: ReduxActionTypes.INVITED_USER_SIGNUP,
|
|
payload,
|
|
});
|
|
|
|
export const invitedUserSignupSuccess = () => ({
|
|
type: ReduxActionTypes.INVITED_USER_SIGNUP_SUCCESS,
|
|
});
|
|
|
|
export const invitedUserSignupError = (error: any) => ({
|
|
type: ReduxActionErrorTypes.INVITED_USER_SIGNUP_ERROR,
|
|
payload: {
|
|
error,
|
|
},
|
|
});
|