import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const buildEvents = await client.buildEvents.list();
buildEvents.forEach((buildEvent) => {
console.log(buildEvent);
});
}
run();