1
0
Fork 0
mirror of https://github.com/n8n-io/n8n.git synced 2025-02-21 02:56:40 -08:00
Commit graph

9 commits

Author SHA1 Message Date
Iván Ovejero b03e358a12
refactor: Integrate consistent-type-imports in nodes-base (no-changelog) ()
* 👕 Enable `consistent-type-imports` for nodes-base

* 👕 Apply to nodes-base

*  Undo unrelated changes

* 🚚 Move to `.eslintrc.js` in nodes-base

*  Revert "Enable `consistent-type-imports` for nodes-base"

This reverts commit 529ad72b05.

* 👕 Fix severity
2023-01-27 12:22:44 +01:00
Michael Kret 91d7e16c81
n8n-3867-progressively-apply-prettier-to-all ()
* 🔨 formatting nodes with prettier
2022-08-17 17:50:24 +02:00
Iván Ovejero 6f95121fac
refactor: Add action to all operations on all nodes ()
* 👕 Add `action` to `INodePropertyOptions`

* 👕 Apply `node-param-operation-option-without-action`

* ✏️ Fix add/remove phrasing

* ✏️ Fix email template phrasing

* ✏️ Fix add/remove phrasing

* ✏️ Fix custom fields phrasing

* ✏️ Fix job report phrasing

* ✏️ Fix query phrasing

* ✏️ Various phrasing fixes

* ✏️ Fix final phrasings

* ✏️ Remove `conversation`

* ✏️ Fix plural
2022-07-10 23:50:51 +03:00
Iván Ovejero 70ae90fa3c
refactor: Apply more eslint-plugin-n8n-nodes-base autofixable rules ()
*  Update `lintfix` script

* 👕 Remove unneeded lint exceptions

* 👕 Run baseline `lintfix`

* 👕 Apply `node-param-description-miscased-url` ()

* 👕 Apply `rule node-param-placeholder-miscased-id` ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-option-name-wrong-for-upsert` ()

* 👕 Apply `node-param-min-value-wrong-for-limit` ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Apply `node-param-display-name-wrong-for-dynamic-options` ()

* 🔨 fix

*  Fix `Assigned To` fields

Co-authored-by: Michael Kret <michael.k@radency.com>

* 👕 Apply `rule node-param-default-wrong-for-number` ()

* 👕 Apply `node-param-default-wrong-for-string` ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Apply `node-param-display-name-miscased` ()

* 🔨 fix

* 🔨 exceptions

*  review fixes

* 👕 Apply `node-param-description-lowercase-first-char` ()

*  fix

*  review fixes

*  fix

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-description-wrong-for-dynamic-options` ()

* Rule working as intended

* Add rule

* 🔥 Remove repetitions

* 👕 Add exceptions

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Small fix for `node-param-description-wrong-for-dynamic-options`

* 👕 Apply `node-param-default-wrong-for-fixed-collection` ()

* 👕 Apply `node-param-description-line-break-html-tag` ()

* 👕 Run baseline `lintfix`

* 👕 Apply `node-param-options-type-unsorted-items` ()

*  fix

* 🔨 exceptions

* Add exception for Salesmate and Zoom

Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

*  Restore `lintfix` command

Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
2022-06-03 19:23:49 +02:00
Iván Ovejero 6dcdb30bf4
refactor: Apply more nodelinting rules ()
* ✏️ Alphabetize lint rules

* 🔥 Remove duplicates

*  Update `lintfix` script

* 👕 Apply `node-param-operation-without-no-data-expression` ()

* 👕 Apply `node-param-operation-without-no-data-expression`

* 👕 Add exceptions

* 👕 Apply `node-param-description-weak` ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-option-value-duplicate` ()

* 👕 Apply `node-param-description-miscased-json` ()

* 👕 Apply `node-param-display-name-excess-inner-whitespace` ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-type-options-missing-from-limit` ()

* Rule workig as intended

* ✏️ Uncomment rules

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-option-name-duplicate` ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-description-wrong-for-simplify` ()

*  fix

*  exceptions

*  changed rule ignoring from file to line

* 👕 Apply `node-param-resource-without-no-data-expression` ()

* 👕 Apply `node-param-display-name-untrimmed` ()

* 👕 Apply `node-param-display-name-miscased-id` ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-resource-with-plural-option` ()

* 👕 Apply `node-param-description-wrong-for-upsert` ()

*  fix

*  replaced record with contact in description

*  fix

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-option-description-identical-to-name` ()

* 👕 Apply `node-param-option-name-containing-star` ()

* 👕 Apply `node-param-display-name-wrong-for-update-fields` ()

* 👕 Apply `node-param-option-name-wrong-for-get-all` ()

*  fix

*  exceptions

* 👕 Apply node-param-display-name-wrong-for-simplify ()

* Rule working as intended

* Uncomented other rules

* 👕 Undo and add exceptions

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

*  Alphabetize lint rules

*  Restore `lintfix` script

Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
2022-05-20 23:47:24 +02:00
Iván Ovejero 63b6c9f128
refactor: Apply more eslint-plugin-n8n-nodes-base autofixable rules ()
* ✏️ Alphabetize rules

* 🔖 Update version

*  Update lintfix command

*  Run baseline lintfix

* 📦 Update package-lock.json

* 👕 Apply `node-param-description-untrimmed` ()

* Removing unneeded backticks ()

* 👕 Apply node-param-description-wrong-for-return-all ()

* 👕 Apply node-param-description-missing-limit ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply node-param-description-excess-final-period ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply node-param-description-unencoded-angle-brackets ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply node-param-description-url-missing-protocol ()

* 👕 Apply `node-param-description-miscased-id` ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply node-param-description-wrong-for-limit ()

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply node-param-description-wrong-for-ignore-ssl-issues ()

* 👕 Apply rule

*  Restore lintfix script

*  Restore lintfix script

Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
2022-05-06 23:01:25 +02:00
Jonathan Bennetts 5ba4c27d8c
feat(Reddit Node): Add possibility to query saved posts ()
* chore: add nvmrc with required node version

* feat: added saved posts to reddit node with credentials on User resource

* Changed Details order

* Fixed lint issue

* Moved saved posts to profile as it only works for the logged in user, This avoids the breaking change

* Removed .nvmrc

*  Improvements

Co-authored-by: Yassine Fathi <hi@m4tt72.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
2022-03-27 10:57:45 +02:00
Iván Ovejero a783288338
Enforce type checking in all node params () 2021-12-03 09:44:16 +01:00
Iván Ovejero eb2f14d06d
Add Reddit Node ()
* Set up initial scaffolding and auth

* Add grant type to credentials

* Add Account operations and OAuth2 request

* Add post submission functionality

* Refactor resources into resource descriptions

* Refactor request for no auth URL

* Refactor submission description for consistency

* Add listing resource

* Refactor My Account resource into details

* Add request for all items

* Add listings for specific subreddits

* Fix minor linting details

* Add subreddit resource

* Add All-Reddit and Subreddit resource descriptions

* Adjust display options for credentials

* Add subreddit search functionality

* Clean up auth parameter

* Add user resource with GET endpoint

* Add user description

* Add submission search and commenting functionality

* Clean up logging and comments

* Fix minor details

* Fix casing in properties

* Add dividers to execute() method

* Refactor per feedback

* Remove unused description

* Add punctuation to property descriptions

* Fix resources indentation

* Add resource dividers

* Remove deprecated sidebar option

* Make subreddit:get responses consistent

* Remove returnAll and limit from subreddit:get

* Flatten user:get response for about

* Rename comment target property

* Remove best property from post:getAll

* Enrich subreddit search by keyword operation

* Remove unneeded scopes

* Add endpoint documentation

* Add scaffolding for post comment

* Add all operations for postComment resource

* Add all operations for post resource

* Refactor subreddit:getAll

* Fix postComment:getAll

* Flatten responses for profile:get

*  Improvements

* Fix response traversal for postComment:add

* Flatten response for postComment:reply

* Fix subreddit:getAll with keyword search

* Fix pagination to enforce limit

* Wrap unauthenticated API call in try-catch block

* Add 404 error for empty array responses

* Revert "Fix pagination to enforce limit"

This reverts commit 72548d9523.

* Turn user:get (gilded) into listing

*  Small improvement

*  Improve Reddit-Node

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-02-04 09:37:03 +01:00