apps/meteor/app/importer/server/classes/ImporterSelectionUser.ts
import type { IImporterSelectionUser } from '@rocket.chat/core-typings';
export class SelectionUser implements IImporterSelectionUser {
public user_id: string;
public username: string | undefined;
public email: string;
public is_deleted: boolean;
public is_bot: boolean;
public do_import: boolean;
public is_email_taken: boolean;
/**
* Constructs a new selection user.
*
* @param userId the unique user identifier
* @param username the user's username
* @param email the user's email
* @param isDeleted whether the user was deleted or not
* @param isBot whether the user is a bot or not
* @param doImport whether we are going to import this user or not
* @param isEmailTaken whether there's an existing user with the same email
*/
constructor(
userId: string,
username: string | undefined,
email: string,
isDeleted: boolean,
isBot: boolean,
doImport: boolean,
isEmailTaken = false,
) {
this.user_id = userId;
this.username = username;
this.email = email;
this.is_deleted = isDeleted;
this.is_bot = isBot;
this.do_import = doImport;
this.is_email_taken = isEmailTaken;
}
}