mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(n8n Evaluation Trigger Node): Add Evaluation Trigger and Evaluation Node (#15194)
This commit is contained in:
2
packages/nodes-base/nodes/Evaluation/methods/index.ts
Normal file
2
packages/nodes-base/nodes/Evaluation/methods/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * as loadOptions from './loadOptions';
|
||||
export * as listSearch from './../../Google/Sheet/v2/methods/listSearch';
|
||||
17
packages/nodes-base/nodes/Evaluation/methods/loadOptions.ts
Normal file
17
packages/nodes-base/nodes/Evaluation/methods/loadOptions.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
|
||||
|
||||
import { getSheetHeaderRow } from '../../Google/Sheet/v2/methods/loadOptions';
|
||||
|
||||
export async function getSheetHeaderRowWithGeneratedColumnNames(
|
||||
this: ILoadOptionsFunctions,
|
||||
): Promise<INodePropertyOptions[]> {
|
||||
const returnData = await getSheetHeaderRow.call(this);
|
||||
return returnData.map((column, i) => {
|
||||
if (column.value !== '') return column;
|
||||
const indexBasedValue = `col_${i + 1}`;
|
||||
return {
|
||||
name: indexBasedValue,
|
||||
value: indexBasedValue,
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user