From 4bb16b47a3c836c485747077ac215e6abcddf58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Sat, 11 Sep 2021 10:31:43 +0200 Subject: [PATCH] :sparkles: Baserow filters expansion (#2183) * Added filters The API was changed to add filters: date_before and date_after Directly added the other filters that weren't in the node yet: link_row_has and link_row_has_not Not sure about the description of the second set. * :hammer: Refactor Baserow filters expansion Co-authored-by: bramknuever <60007341+bramknuever@users.noreply.github.com> --- .../nodes/Baserow/OperationDescription.ts | 68 ++++++++++++------- 1 file changed, 44 insertions(+), 24 deletions(-) diff --git a/packages/nodes-base/nodes/Baserow/OperationDescription.ts b/packages/nodes-base/nodes/Baserow/OperationDescription.ts index 76d20e0dab..745fad968b 100644 --- a/packages/nodes-base/nodes/Baserow/OperationDescription.ts +++ b/packages/nodes-base/nodes/Baserow/OperationDescription.ts @@ -284,6 +284,16 @@ export const operationFields = [ value: 'not_equal', description: 'Field is not equal to value', }, + { + name: 'Contains', + value: 'contains', + description: 'Field contains value', + }, + { + name: 'Contains Not', + value: 'contains_not', + description: 'Field does not contain value', + }, { name: 'Date Equal', value: 'date_equal', @@ -310,20 +320,20 @@ export const operationFields = [ description: 'Field in this year. Format: string', }, { - name: 'Contains', - value: 'contains', - description: 'Field contains value', + name: 'Date Before Date', + value: 'date_before', + description: 'Field before this date. Format: \'YYYY-MM-DD\'', }, { - name: 'File Name Contains', + name: 'Date After Date', + value: 'date_after', + description: 'Field after this date. Format: \'YYYY-MM-DD\'', + }, + { + name: 'Filename Contains', value: 'filename_contains', description: 'Field filename contains value', }, - { - name: 'Contains Not', - value: 'contains_not', - description: 'Field does not contain value', - }, { name: 'Higher Than', value: 'higher_than', @@ -334,6 +344,31 @@ export const operationFields = [ value: 'lower_than', description: 'Field is lower than value', }, + { + name: 'Is Empty', + value: 'empty', + description: 'Field is empty', + }, + { + name: 'Is Not Empty', + value: 'not_empty', + description: 'Field is not empty', + }, + { + name: 'Is True', + value: 'boolean', + description: 'Boolean field is true', + }, + { + name: 'Link Row Has', + value: 'link_row_has', + description: 'Field has link ID', + }, + { + name: 'Link Row Does Not Have', + value: 'link_row_has_not', + description: 'Field does not have link ID', + }, { name: 'Single Select Equal', value: 'single_select_equal', @@ -344,21 +379,6 @@ export const operationFields = [ value: 'single_select_not_equal', description: 'Field selected option is not value', }, - { - name: 'Is True', - value: 'boolean', - description: 'Boolean field is true', - }, - { - name: 'Is Empty', - value: 'empty', - description: 'Field is empty', - }, - { - name: 'Not Empty', - value: 'not_empty', - description: 'Field is not empty', - }, ], default: 'equal', },