PromucFlow_constructor/app/client/src/constants/userConstants.ts
Nikhil Nandagopal c421ab12b1
removed duplicate user object (#513)
removed id field which is never populated
added help modal in applications page and intercom to load in help modal
shutdown intercom on signout to clear existing chats

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-09-09 10:48:36 +05:30

23 lines
417 B
TypeScript

export const ANONYMOUS_USERNAME = "anonymousUser";
type Gender = "MALE" | "FEMALE";
export type User = {
email: string;
currentOrganizationId: string;
organizationIds: string[];
applications: UserApplication[];
username: string;
name: string;
gender: Gender;
};
export interface UserApplication {
id: string;
name: string;
}
export const CurrentUserDetailsRequestPayload = {
id: "profile",
};