Determine the granular "type" of a Trello action.
When a Trello webhook POSTs to your server, the payload contains an "action" with a designated "type". However, the action's type can be a little too high-level and abstract for one's tastes / use cases.
For example, moving a card between two lists is classified by Trello as an updateCard
action type, and so is simply renaming a card. Wouldn't it be nice if the type was something more meaningful like moveCardBetweenLists
or renameCard
?
This package analyzes the structure of an action to find out its low-level, granular type.
Installation
Install the package with NPM:
$ npm install get-trello-action-type
Usage
Example:
; let action = ... ;let type = ; console;
Related
Some thanks to websitesfortrello/trello-webhooks, for providing a comprehensive list of Trello webhook payload examples.