{"size": 2331, "ext": "js", "max_stars_repo_path": "config/prompts.js", "max_stars_repo_name": "Diegopie/CLI-Employee-Management", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "config/prompts.js", "max_issues_repo_name": "Diegopie/CLI-Employee-Management", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "config/prompts.js", "max_forks_repo_name": "Diegopie/CLI-Employee-Management", "max_forks_repo_forks_event_min_datetime": "2021-09-09T18:38:51.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-09T18:38:51.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 24.5368421053, "max_line_length": 108, "alphanum_fraction": 0.3938223938}
const prompts = {
    case: {
        type: 'list',
        name: 'userCase',
        message: 'Select an Option',
        choices: [
            'View Employees',
            'View Roles',
            'View Departments',
            'Add Employee',
            'Add Role',
            'Add Department',
            'Update Employee',
            'Quit',
        ],
    },

    addEmp: [
        {
            type: 'input',
            message: "Enter Employee's First Name",
            name: 'first_name'
        },
        {
            type: 'input',
            message: "Enter Employee's Last Name",
            name: 'last_name'
        },
        {
            type: 'input',
            message: "Enter Role ID Employee's Title (Select View Roles in the Main Menu to Find Role ID's",
            name: 'role_id',
            validate: (inp) => {
                check = parseInt(inp);
                console.log(typeof(check));
                // if (check !== Number) {
                //     return "Please Enter a Number"
                // }
                return true;
            }
        },
        {
            type: 'input',
            message: "Enter ID of Employee's Manager",
            name: 'manager_id',
            validate: (inp) => {
                check = parseInt(inp);
                // if (check !== Number) {
                //     return "Please Enter a Number"
                // }
                return true;
            }
        },
    ],

    addRole: [
        {
            type: 'input',
            message: "Enter New Title",
            name: 'title'
        },
        {
            type: 'input',
            message: "Enter Salary for this Role",
            name: 'salary'
        },
        {
            type: 'input',
            message: "Enter Department ID for this Role",
            name: 'department_id',
            
        },
    ],

    addDept: {
        type: 'input',
        message: "Enter New Department Name",
        name: 'name'
    },

    updateEmp: [
        {
            type: 'input',
            message: "Enter ID of Employee to Update",
            name: 'employee_id'
        },
        {
            type: 'input',
            message: "Enter ID of Their New Role",
            name: 'role_id'
        },
    ]
}

exports.prompts = prompts;