(request: NodeExecutionRequest)
| 253 | }; |
| 254 | |
| 255 | export const executeNodeAction = async (request: NodeExecutionRequest): Promise<NodeExecutionResult> => { |
| 256 | const { nodeId, nodeType, textValue, inputData, config, executionContext } = request; |
| 257 | |
| 258 | try { |
| 259 | switch (nodeType) { |
| 260 | case "packedfiles": |
| 261 | return await executePackFilesNode(nodeId, textValue); |
| 262 | |
| 263 | case "packfilesdropdown": |
| 264 | return await executePackFilesDropdownNode(nodeId, textValue, config); |
| 265 | |
| 266 | case "allenabledmods": |
| 267 | return await executeAllEnabledModsNode(nodeId, textValue, config); |
| 268 | |
| 269 | case "tableselection": |
| 270 | return await executeTableSelectionNode(nodeId, textValue, inputData, executionContext); |
| 271 | |
| 272 | case "tableselectiondropdown": |
| 273 | return await executeTableSelectionDropdownNode(nodeId, textValue, inputData, executionContext, config); |
| 274 | |
| 275 | case "columnselection": |
| 276 | return await executeColumnSelectionNode(nodeId, textValue, inputData, executionContext); |
| 277 | |
| 278 | case "columnselectiondropdown": |
| 279 | return await executeColumnSelectionDropdownNode(nodeId, textValue, inputData, executionContext, config); |
| 280 | |
| 281 | case "groupbycolumns": |
| 282 | return await executeGroupByColumnsNode(nodeId, textValue, inputData, config); |
| 283 | |
| 284 | case "filter": |
| 285 | return await executeFilterNode(nodeId, textValue, inputData, config); |
| 286 | |
| 287 | case "multifilter": |
| 288 | return await executeMultiFilterNode(nodeId, textValue, inputData, config); |
| 289 | |
| 290 | case "referencelookup": |
| 291 | return await executeReferenceLookupNode(nodeId, textValue, inputData, config, executionContext); |
| 292 | |
| 293 | case "reversereferencelookup": |
| 294 | return await executeReverseReferenceLookupNode(nodeId, textValue, inputData, config, executionContext); |
| 295 | |
| 296 | case "numericadjustment": |
| 297 | return await executeNumericAdjustmentNode(nodeId, textValue, inputData, executionContext); |
| 298 | |
| 299 | case "mathmax": |
| 300 | return await executeMathMaxNode(nodeId, textValue, inputData, executionContext); |
| 301 | |
| 302 | case "mathceil": |
| 303 | return await executeMathCeilNode(nodeId, inputData, executionContext); |
| 304 | |
| 305 | case "mergechanges": |
| 306 | return await executeMergeChangesNode(nodeId, inputData, executionContext); |
| 307 | |
| 308 | case "savechanges": |
| 309 | return await executeSaveChangesNode(nodeId, textValue, inputData, config, executionContext); |
| 310 | |
| 311 | case "textsurround": |
| 312 | return await executeTextSurroundNode(nodeId, textValue, inputData, config); |
no test coverage detected