mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
24 lines
500 B
TypeScript
24 lines
500 B
TypeScript
import type { IDataObject } from 'n8n-workflow';
|
|
|
|
import type { IMembershipDto } from './CommonDtos';
|
|
|
|
const UserStatuses = {
|
|
ACTIVE: 0,
|
|
PENDING_EMAIL_VERIFICATION: 1,
|
|
DELETED: 2,
|
|
};
|
|
|
|
export type UserStatusEnum = (typeof UserStatuses)[keyof typeof UserStatuses];
|
|
|
|
export interface IUserDto {
|
|
activeWorkspace: string;
|
|
defaultWorkspace: string;
|
|
email: string;
|
|
id: string;
|
|
memberships: IMembershipDto[];
|
|
name: string;
|
|
profilePicture: string;
|
|
settings: IDataObject;
|
|
status: UserStatusEnum;
|
|
}
|