2024-07-02 03:47:04 -07:00
|
|
|
import {
|
|
|
|
type IExecuteFunctions,
|
|
|
|
type INodeExecutionData,
|
|
|
|
type INodeProperties,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
import { numberInputsProperty } from '../../helpers/descriptions';
|
2024-08-29 06:55:53 -07:00
|
|
|
import { updateDisplayOptions } from '@utils/utilities';
|
2024-07-02 03:47:04 -07:00
|
|
|
|
|
|
|
export const properties: INodeProperties[] = [numberInputsProperty];
|
|
|
|
|
|
|
|
const displayOptions = {
|
|
|
|
show: {
|
|
|
|
mode: ['append'],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const description = updateDisplayOptions(displayOptions, properties);
|
|
|
|
|
|
|
|
export async function execute(
|
|
|
|
this: IExecuteFunctions,
|
|
|
|
inputsData: INodeExecutionData[][],
|
|
|
|
): Promise<INodeExecutionData[]> {
|
|
|
|
const returnData: INodeExecutionData[] = [];
|
|
|
|
|
|
|
|
for (let i = 0; i < inputsData.length; i++) {
|
|
|
|
returnData.push.apply(returnData, inputsData[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
return returnData;
|
|
|
|
}
|