mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
6e8e4f5937
* fix(nodes-base): fix and harmonize all primaryDocumentation links * feat(workflow, cli): expose documentation links to UI via node codex * fix(editor-ui): link to correct node and credential documentation URLs * config(nodes-base): update 'format' script to also format node descriptor json * chore: fix outdated links to node reference documentation |
||
---|---|---|
.. | ||
descriptions | ||
helpers.ts | ||
README.md | ||
Stripe.node.json | ||
Stripe.node.ts | ||
stripe.svg | ||
StripeTrigger.node.json | ||
StripeTrigger.node.ts |
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:
- manually add the id #event-types to
<ul>
that contains all event types - copy-paste the function in the JS console
- the result is copied into in the clipboard
- paste the prepared array in StripeTrigger.node.ts
types = []
$$('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)