PromucFlow_constructor/app/client/src/constants/userConstants.ts

33 lines
649 B
TypeScript
Raw Normal View History

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;
};
2020-01-03 08:49:47 +00:00
export interface UserApplication {
id: string;
name: string;
}
2020-01-03 08:49:47 +00:00
export const CurrentUserDetailsRequestPayload = {
id: "profile",
2020-01-03 08:49:47 +00:00
};
export const DefaultCurrentUserDetails: User = {
name: ANONYMOUS_USERNAME,
email: ANONYMOUS_USERNAME,
currentOrganizationId: "",
organizationIds: [],
username: ANONYMOUS_USERNAME,
applications: [],
gender: "MALE",
};