"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRoleFromProject = getRoleFromProject;
exports.createUserConstantsResolver = createUserConstantsResolver;
exports.getRoleNameInRussian = getRoleNameInRussian;
function getRoleFromProject(testInfo) {
    if (testInfo.project.name.includes('Client'))
        return 'Client';
    if (testInfo.project.name.includes('Agent'))
        return 'Agent';
    if (testInfo.project.name.includes('Bank'))
        return 'Bank';
    return 'Admin';
}
function createUserConstantsResolver(mapping) {
    return (role) => mapping[role];
}
function getRoleNameInRussian(role) {
    const roleNames = {
        Admin: 'Админа',
        Client: 'Клиента',
        Agent: 'Агента',
        Bank: 'Банка',
    };
    return roleNames[role] || role;
}
