Iván Ovejero
62c096710f
refactor: Run lintfix
(no-changelog) ( #7537 )
...
- Fix autofixable violations
- Remove unused directives
- Allow for PascalCased variables - needed for dynamically imported or
assigned classes, decorators, routers, etc.
2023-10-27 14:15:02 +02:00
Elias Meire
fbcd1d40ed
fix(Notion Node): Handle empty values correctly for Notion selects + multi selects ( #7383 )
...
Github issue / Community forum post (link here to close automatically):
2023-10-09 18:04:41 +02:00
Michael Kret
193181a9c6
feat(Notion Node): Fetch child blocks recursively ( #7304 )
...
Github issue / Community forum post (link here to close automatically):
2023-10-06 14:55:44 +03:00
Iván Ovejero
f50fc8443e
refactor: Reduce usage of IExecuteSingleFunctions
(no-changelog) ( #6944 )
2023-08-16 15:52:41 +02:00
Michael Kret
d3d8522e8f
fix(Notion Node): Version fix ( #6531 )
2023-06-27 10:33:21 +02:00
कारतोफ्फेलस्क्रिप्ट™
87e979c19a
feat: Upgrade TypeScript to v5 (no-changelog) ( #5755 )
2023-03-30 13:59:59 +02:00
कारतोफ्फेलस्क्रिप्ट™
7a4e9ef5fa
refactor: Remove n8n-core dependency in nodes-base (no-changelog) ( #5649 )
2023-03-09 18:13:15 +01:00
Michael Kret
bb4db58819
fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
2023-02-28 05:39:43 +02:00
Ricardo Espinoza
36b1e6ef15
feat(Notion Node): Add image block ( #5237 )
2023-01-31 09:17:45 +00:00
Iván Ovejero
b03e358a12
refactor: Integrate consistent-type-imports
in nodes-base (no-changelog) ( #5267 )
...
* 👕 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
Marcus
8ce85e3759
fix(Notion (Beta) Node): Fix create database page with multiple relation ids not working ( #5260 )
...
🐛 fix
2023-01-27 08:30:49 +01:00
Marcus
11da863a21
fix(Notion (Beta) Node): Fix create database page fails if relation param is empty/undefined ( #5182 )
...
* 🐛 fix create database page fails if relation param is empty/undefined
* ⚡ uuid validation
* ⚡ uuid error handling
Co-authored-by: Michael Kret <michael.k@radency.com>
2023-01-19 18:01:56 +01:00
Michael Kret
e667df783c
fix(core): Revert rule @typescript-eslint/prefer-nullish-coalescing
2023-01-19 14:37:19 +02:00
Michael Kret
6608e69457
refactor(core): Remove linting exceptions in nodes-base (no-changelog) ( #4944 )
2023-01-13 18:11:56 +01:00
कारतोफ्फेलस्क्रिप्ट™
a229788d4b
ci: Fix linting issues on master (no-changelog) ( #5030 )
...
* make CI logs less noisy. suppress linting warning
* fix linting issues
2022-12-23 19:09:52 +01:00
Iván Ovejero
fbb8611ae2
refactor: Deprecate alwaysOpenEditWindow
for string
( #4839 )
...
* 🔥 Remove from client
* 📘 Update interface comment
* ✏️ Update docs
* ⚡ Update nodes
* ✏️ Fix typo
* ⏪ Restore misremoved property
* 🔥 Remove more instances
2022-12-07 15:29:45 +01:00
Michael Kret
61e26804ba
refactor(core): Remove linting exceptions in nodes-base ( #4794 )
...
* ⚡ enabled array-type
* ⚡ await-thenable on
* ⚡ ban-types on
* ⚡ default-param-last on
* ⚡ dot-notation on
* ⚡ member-delimiter-style on
* ⚡ no-duplicate-imports on
* ⚡ no-empty-interface on
* ⚡ no-floating-promises on
* ⚡ no-for-in-array on
* ⚡ no-invalid-void-type on
* ⚡ no-loop-func on
* ⚡ no-shadow on
* ⚡ ban-ts-comment re enabled
* ⚡ @typescript-eslint/lines-between-class-members on
* address my own comment
* @typescript-eslint/return-await on
* @typescript-eslint/promise-function-async on
* @typescript-eslint/no-unnecessary-boolean-literal-compare on
* @typescript-eslint/no-unnecessary-type-assertion on
* prefer-const on
* @typescript-eslint/prefer-optional-chain on
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2022-12-02 21:54:28 +01:00
Iván Ovejero
cfd32d2642
refactor: Phase out TSLint in nodes-base
(no-changelog) ( #4798 )
...
* 🔥 Remove TSLint scripts
* 🔥 Remove TSLint config
* 🔥 Remove TSLint exceptions
* 👕 Adjust lint config
* ✏️ Add story numbers
2022-12-02 15:25:21 +01:00
Iván Ovejero
632f573021
refactor(core): Introduce overload for string-type node parameter (no-changelog) ( #4797 )
...
* 📘 Set up overload
* 🔥 Remove inferrable assertions
2022-12-02 12:53:59 +01:00
Iván Ovejero
eafef019d7
fix: Expand nodes-base
formatting validation (no-changelog) ( #4689 )
...
* ⚡ Simplify `format` command
* 🎨 Format more deeply nested files
2022-11-22 13:43:28 +01:00
Marcus
277b6b73c3
feat(Notion (Beta) Node): Use resource locator component for database and page parameters ( #4340 )
...
* use resource locator component for database -> get (Notion V1/V2)
* getDatabases search function for V1/V2 with url
* updated database get list placeholder
* get database RLC by url - regex support optional workspace domain names
* fixed linting error
* listSearch getDatabases support filter query
* support extractValue in getCurrentNodeParameter for RLC
* RLC for database page create/getAll operation
* RLC for database get operation support "By ID" with optional v param.
* use RLC in append blocks operation
* use RLC in NotionTrigger.nodes.ts
* removed unused loadOptions getDatabases
* support database RLC in createPage/createDbPage operation
* page create operation use RLC for parent page param
* page archive operation use RLC for page param
* removed unused imports
* fixed missing extractPageId in NotionV1.node.ts
* database page get operation use RLC for page param
* database page update operation use RLC for page param
* block getAll children operation use RLC for page param
* block append operation use RLC for block param
* support databaseId with optional '-' characters
* support blockId with optional '-' characters
* support pageId with optional '-' characters
* improved RLC descriptions and hints
* NotionTrigger node support databseId with optional '-' characters
* stricter RLC by ID regex rules for uuids
* stricter RLC by URL regex rules for uuids
* stricter RLC by ID regex rules for uuids (support max length)
* RLC regex from URL allow both http and https
* RLC by ID only allow uuid v4 with optional dash
* removed RLC from URL hint "Use Notion's copy link..."
* RLC from URL only allow uuid v4
* DB Status Column: Support Simplify Properties
* Notion Credentials: Support custom Notion-Version header
Use latest Notion-Version 2022-02-22 if not set
* DB Status Column: Support DB Page Create/Update
* DB Status Column: Support DB Page GetMany Filters
* removed unused paginationToken args
* Database Get: RLC by URL improve validation error message
2022-11-11 13:37:52 +01:00
Ugo Bataillard
3b3405089d
fix(Notion Trigger (Beta) Node): Fix Notion trigger polling strategy
2022-11-09 12:26:13 +02:00
Michael Kret
479644a499
refactor(core): Update rule typescript-eslint/no-unused-vars to not error when variable starts with _ ( #4523 )
...
* ⚡ rule and fixes
* ⚡ clean up
2022-11-08 15:28:21 +01:00
Michael Kret
91d7e16c81
n8n-3867-progressively-apply-prettier-to-all ( #3873 )
...
* 🔨 formatting nodes with prettier
2022-08-17 17:50:24 +02:00
Florian Bachmann
6cb9aefb0b
feat(Notion Node): Allow to ignore Notion URL properties if empty ( #3564 )
...
* Allows to ignore Notion URL properties if empty
* Fixes linting
* Fixes another linting error that was not caught locally
* Reorders options alphabetically
2022-07-20 13:34:52 +02:00
agobrech
683d2dfc98
feat: Add more credentials tests ( #3668 )
...
* ✨ Add injection to notion,
Add test to notion in cred
* 🔥 Remove unuse method
* 🎨 Move testing from node file to cred file
* ✨ Add injection and testing in facebook graph
* Add cred injec with testing
* Add Cred injection and cred test
* Add cred injection, and cred testing for typeform, fix issue in clickup
* Add cred injection, move testing inside creds
* Add cred injection and cred testing to SendGrid
* Add cred injection and cred testing to woocommerce
* Add cred injection, add cred test to gitlab
* 🔥 Fix duplicated imports in Mautic cred
* 🔥 removed unused credentials testing in node
* Add cred injection, cred testing, handles slash trailing for Grafana node
* Add cred injection, cred testing to shopify
* Add cred injection , add cred testing to stripe
* changed cred injection, add testing to cred for mattermost
* add cred injection and testing for dropbox
* Add cred injection, cred testing to webflow
* ✨ Add cred injection and cred test to nocodb
* ✨ Add cred injection, cred testing to mailchimp
* 🐛 fix a bug In credentials testing
* ✨ Add cred injection, cred testing to sms77
* ✨ Add cred injection, cred testing to ActiveCampaign
* Add cred injection, cred testing to TheHive
* ✨ Add cred injection, add cred testing to ApiTemplateio
* ✨ Add cred injection, add cred testing for zoom
* ✨ Add cred injection, cred testing to rocketchat
* ✨ Add cred injection, add cred test to getResponse
* 🔥 Remove useless authentcate creds and testing from facebookGraphApp
* 🔥 Remove useless imports in FacebookGrappApp credentials file
* 🔥 Removed useless imports and if statement
* 🐛 Add version to header when testing cred
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Jan Oberhauser <janober@users.noreply.github.com>
2022-07-15 16:20:41 +02:00
agobrech
d5d4dd3845
feat: Updated multiple credentials with tests and allow to be used on HTTP Request Node ( #3670 )
...
* Notion cred updated
* Airtable new cred
* revamped twilio cred
* urlscanlo revamp cred
* Wordpress revamp cred with testing
* SendGrid cred revamped
* 🐛 Fix imports
* 🐛 Fixes imports in urlscanio
* Fix airtable cred injection
* Fixes notion request, changes way of cred injection
* Change auth type from method to generic
* Fix minor issues
* Fix lint issue
Co-authored-by: Omar Ajoue <krynble@gmail.com>
2022-07-10 13:32:19 +03:00
Erick Friis
0f630b97cb
refactor(core): Fix misspelling of credentials ( #3479 )
2022-06-13 12:41:18 -07:00
Iván Ovejero
63b6c9f128
refactor: Apply more eslint-plugin-n8n-nodes-base
autofixable rules ( #3243 )
...
* ✏️ Alphabetize rules
* 🔖 Update version
* ⚡ Update lintfix command
* ⚡ Run baseline lintfix
* 📦 Update package-lock.json
* 👕 Apply `node-param-description-untrimmed` (#3200 )
* Removing unneeded backticks (#3249 )
* 👕 Apply node-param-description-wrong-for-return-all (#3253 )
* 👕 Apply node-param-description-missing-limit (#3252 )
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
* 👕 Apply node-param-description-excess-final-period (#3250 )
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
* 👕 Apply node-param-description-unencoded-angle-brackets (#3256 )
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
* 👕 Apply node-param-description-url-missing-protocol (#3258 )
* 👕 Apply `node-param-description-miscased-id` (#3254 )
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
* 👕 Apply node-param-description-wrong-for-limit (#3257 )
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
* 👕 Apply node-param-description-wrong-for-ignore-ssl-issues (#3261 )
* 👕 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
Iván Ovejero
0448feec56
refactor: Apply eslint-plugin-n8n-nodes-base
autofixable rules ( #3174 )
...
* ⚡ Initial setup
* 👕 Update `.eslintignore`
* 👕 Autofix node-param-default-missing (#3173 )
* 🔥 Remove duplicate key
* 👕 Add exceptions
* 📦 Update package-lock.json
* 👕 Apply `node-class-description-inputs-wrong-trigger-node` (#3176 )
* 👕 Apply `node-class-description-inputs-wrong-regular-node` (#3177 )
* 👕 Apply `node-class-description-outputs-wrong` (#3178 )
* 👕 Apply `node-execute-block-double-assertion-for-items` (#3179 )
* 👕 Apply `node-param-default-wrong-for-collection` (#3180 )
* 👕 Apply node-param-default-wrong-for-boolean (#3181 )
* Autofixed default missing
* Autofixed booleans, worked well
* ⚡ Fix params
* ⏪ Undo exempted autofixes
* 📦 Update package-lock.json
* 👕 Apply node-class-description-missing-subtitle (#3182 )
* ⚡ Fix missing comma
* 👕 Apply `node-param-default-wrong-for-fixed-collection` (#3184 )
* 👕 Add exception for `node-class-description-missing-subtitle`
* 👕 Apply `node-param-default-wrong-for-multi-options` (#3185 )
* 👕 Apply `node-param-collection-type-unsorted-items` (#3186 )
* Missing coma
* 👕 Apply `node-param-default-wrong-for-simplify` (#3187 )
* 👕 Apply `node-param-description-comma-separated-hyphen` (#3190 )
* 👕 Apply `node-param-description-empty-string` (#3189 )
* 👕 Apply `node-param-description-excess-inner-whitespace` (#3191 )
* Rule looks good
* Add whitespace rule in eslint config
* :zao: fix
* 👕 Apply `node-param-description-identical-to-display-name` (#3193 )
* 👕 Apply `node-param-description-missing-for-ignore-ssl-issues` (#3195 )
* ⏪ Revert ":zao: fix"
This reverts commit ef8a76f3df
.
* 👕 Apply `node-param-description-missing-for-simplify` (#3196 )
* 👕 Apply `node-param-description-missing-final-period` (#3194 )
* Rule working as intended
* Add rule to eslint
* 👕 Apply node-param-description-missing-for-return-all (#3197 )
* ⚡ Restore `lintfix` command
Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: agobrech <ael.gobrecht@gmail.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
2022-04-22 18:29:51 +02:00
Omar Ajoue
d3fecb9f6d
🎨 Centralize error throwing for encryption keys and credentials ( #3105 )
...
* Centralized error throwing for encryption key
* Unifying the error message used by cli and core packages
* Improvements to error messages to make it more DRY
* Removed unnecessary throw
* Throwing error when credential does not exist to simplify node behavior (#3112 )
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2022-04-15 08:00:47 +02:00
Iván Ovejero
027dfb2f0a
⚡ Enable esModuleInterop
compiler option and upgrade to TypeScript 4.6 ( #3106 )
...
* ⚡ Enable `esModuleInterop` for /core
* ⚡ Adjust imports in /core
* ⚡ Enable `esModuleInterop` for /cli
* ⚡ Adjust imports in /cli
* ⚡ Enable `esModuleInterop` for /nodes-base
* ⚡ Adjust imports in /nodes-base
* ⚡ Make imports consistent
* ⬆️ Upgrade TypeScript to 4.6 (#3109 )
* ⬆️ Upgrade TypeScript to 4.6
* 📦 Update package-lock.json
* 🔧 Avoid erroring on untyped errors
* 📘 Fix type error
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2022-04-08 23:32:08 +02:00
Ricardo Espinoza
345fa7c9c3
🐛 Fix bug and add improvements to Notion ( #2750 )
...
* 🐛 Fix bug when filtering columns type number
* 🐛 Fix issue with date filtering
* ⚡ Enable file support in v2
* ⚡ Remvoe spaces when using comma-seperated relation ids
* 🐛 Fix issue that removes url and id when downloading data
* ⚡ Filter out bots when loading users
2022-02-24 23:27:06 +01:00
Ricardo Espinoza
697772b553
⚡ Handle rollup type field - Notion ( #2862 )
...
* Adds support for Notion rollup show_*
* zap: Improvemens to #2811
Co-authored-by: Ugo Bataillard <ugopublic@bataillard.me>
2022-02-24 13:47:47 +01:00
Ricardo Espinoza
7a8425a152
✨ Add Notion node V2 ( #2437 )
...
* ⚡ Add versioning
* ⚡ Add credentials verification
* ⚡ Add folmula filtering
* ⚡ Add file support
* ⚡ Apply internal review
* ⚡ Improvements
* ⚡ Add page updated event to trigger
* ⚡ Use name instead of id when setting expression in select type
* ⚡ improvements
* ⚡ Improvements
* ⚡ Improvement to descriptions
* ⚡ Add filter to databasePage:getAll
* ⚡ Improvements
* ⚡ Add database:search operation
* ⚡ Add page:archive operation
* ⚡ Allow clearing fields date type
* ⚡ Allow setting single value in people type field
* asasas
* asasas
* aaaaa
* ⚡ Improvements
* ⚡ Fix merging issues
* 🐛 Fix filename
* ⚡ Minor fix
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-12-29 23:23:22 +01:00
Ricardo Espinoza
31da7a7bd8
⚡ Handle rich_text when simplifying data on Notion Node ( #2128 )
2021-08-29 11:58:49 +02:00
Omar Ajoue
7ce7285f7a
⚡ Load credentials from the database ( #1741 )
...
* Changes to types so that credentials can be always loaded from DB
This first commit changes all return types from the execute functions
and calls to get credentials to be async so we can use await.
This is a first step as previously credentials were loaded in memory and
always available. We will now be loading them from the DB which requires
turning the whole call chain async.
* Fix updated files
* Removed unnecessary credential loading to improve performance
* Fix typo
* ⚡ Fix issue
* Updated new nodes to load credentials async
* ⚡ Remove not needed comment
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-08-20 18:57:30 +02:00
Ricardo Espinoza
a9987cd541
⚡ Add timezone support to date type field in Notion ( #2082 )
...
* Add timezone in date property on Notion
Signed-off-by: 5pecia1 <pdpxpd@gmail.com>
* ⚡ Improvements to #2036
* ⚡ Minor improvements
Co-authored-by: 5pecia1 <pdpxpd@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-08-13 20:57:18 +02:00
Ricardo Espinoza
5d15d85f08
🐛 Fix issue filtering field date type on Notion-Node ( #2001 )
2021-07-18 14:08:43 +02:00
Ricardo Espinoza
92a2e863f3
🐛 Fix bug paginating databases and users ( #1907 )
2021-06-22 23:59:04 +02:00
Jan Oberhauser
b6d50dfa90
👕 Fix lint issue
2021-06-13 19:42:05 +02:00
Ricardo Espinoza
233fc72dc2
⚡ Add the posiblity to set multi-select fields with the names ( #1892 )
...
* ⚡ Add the posiblity to set multi-select fields with the names
* 🐛 Fix issue with expressions
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-06-13 19:17:39 +02:00
Ricardo Espinoza
d095588ac7
⚡ Add parameter include time when setting field type date on Notion node ( #1879 )
...
* ⚡ Add parameter include time when setting field type date
Fixes issue #1878
* Fix issue with date format
2021-06-12 18:06:47 +02:00
Iván Ovejero
fe354baa55
⚡ Fix parsing for last edited time on Notion node ( #1861 )
2021-06-03 18:10:27 -05:00
Ricardo Espinoza
2a7a87eb4d
🐛 Fix issue when filtering fields type select & multi_select on Notion Node ( #1819 )
...
Also, it adds a change to how the links are handled. Before, if a link were left blank, the node would error. Now, if the link is left blank, it gets ignored.
2021-05-24 16:45:58 -05:00
Jan
ed6f2c5b8a
✨ Add Notion Node ( #1811 )
...
* ✨ Notion Node
* ⚡ Improvements
* test
* ⚡ Improvements
* ⚡ Improvements
* ⚡ Add missing url field
* Remove linter errors
* ⚡ Add filters
* ⚡ Add and & or filters
* ⚡ Improvements
* ⚡ Improvements
* ⚡ Improvements
* ⚡ Improvements
* ⚡ Improvements
* ⚡ Improvements
* ⚡ Fixed style on some options
* ⚡ Improvements
* ⚡ Improvements
* ⚡ Improvements
* ⚡ Improvements
* ⚡ Improvements
* ⚡ improvements
* ⚡ Rename DatabasePage -> Search to Get All
* ⚡ Improvements
* ⚡ Minor improvements
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
2021-05-20 16:31:23 -05:00