packages/nodes-base/nodes/Stripe/README.md
All Stripe webhook events are taken from docs: https://stripe.com/docs/api/events/types#event_types
To get the entire list of events as a JS array, scrape the website:
<ul> that contains all event typestypes = [];
$$('ul#event-types li').forEach((el) => {
const value = el.querySelector('.method-list-item-label-name').innerText;
types.push({
name: value
.replace(/(\.|_)/, ' ')
.split(' ')
.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
.join(' '),
value,
description: el.querySelector('.method-list-item-description').innerText,
});
});
copy(types);