/*
 * Copyright (c) 2023-2025 Datalayer, Inc.
 * Distributed under the terms of the Modified BSD License.
 */
import { uniqueNamesGenerator, animals, names } from 'unique-names-generator';
import { newUlid, asDisplayName, namesAsInitials } from '../../utils/index.js';
export const newUserMock = (firstName, lastName) => {
    const mockFistName = firstName ?? uniqueNamesGenerator({ dictionaries: [names] });
    const mockLastName = lastName ?? uniqueNamesGenerator({ dictionaries: [names] });
    const user = {
        id: newUlid(),
        handle: uniqueNamesGenerator({ dictionaries: [animals] }).toLowerCase(),
        email: mockFistName + '@datalayer.test',
        firstName: mockFistName,
        lastName: mockLastName,
        initials: namesAsInitials(mockFistName, mockLastName),
        displayName: asDisplayName(mockFistName, mockLastName),
        roles: ['mock_role'],
        iamProviders: [],
        setRoles: (roles) => { },
        unsubscribedFromOutbounds: false,
        onboarding: {},
        events: [],
        settings: {},
    };
    return user;
};
