feat(Data Table Node): Add isEmpty and isNotEmpty operations (no-changelog) (#19046)

This commit is contained in:
Daria
2025-09-01 14:41:49 +03:00
committed by GitHub
parent 5bcff78174
commit b527edb5f8
5 changed files with 148 additions and 24 deletions

View File

@@ -78,6 +78,11 @@ export function getSelectFields(
name: 'keyValue',
type: 'string',
default: '',
displayOptions: {
hide: {
condition: ['isEmpty', 'isNotEmpty'],
},
},
},
],
},
@@ -89,13 +94,14 @@ export function getSelectFields(
export function getSelectFilter(ctx: IExecuteFunctions, index: number) {
const fields = ctx.getNodeParameter('filters.conditions', index, []);
const matchType = ctx.getNodeParameter('matchType', index, []);
const matchType = ctx.getNodeParameter('matchType', index, 'anyFilter');
const node = ctx.getNode();
if (!isMatchType(matchType)) {
throw new NodeOperationError(ctx.getNode(), 'unexpected match type');
throw new NodeOperationError(node, 'unexpected match type');
}
if (!isFieldArray(fields)) {
throw new NodeOperationError(ctx.getNode(), 'unexpected fields input');
throw new NodeOperationError(node, 'unexpected fields input');
}
return buildGetManyFilter(fields, matchType);