See all of your customers, statistics and send e-mails directly from the app
export async function main() {
const res = await fetch("https://dummyjson.com/users");
const json = await res.json();
const users = json.users.map((u: any) => ({
id: u.id,
email: u.email,
lastName: u.lastName,
firstName: u.firstName,
phone: u.phone,
jobTitle: u.company.title,
company: u.company.name,
stage: Math.random() > 0.5 ? "Lead" : "Customer",
}));
return users;
}