UNPKG

n8n-nodes-advanced-output-parser

Version:

Advanced Output Parser node for n8n with dynamic expression support

18 lines (17 loc) 810 B
import type { ISupplyDataFunctions } from "n8n-workflow"; import { z } from "zod"; interface JSONSchema7 { type?: string; properties?: Record<string, JSONSchema7>; items?: JSONSchema7; required?: string[]; oneOf?: JSONSchema7[]; anyOf?: JSONSchema7[]; [key: string]: any; } export declare function generateSchemaFromExample(exampleJsonString: string, allFieldsRequired?: boolean): JSONSchema7; export declare function convertJsonSchemaToZod<T extends z.ZodTypeAny = z.ZodTypeAny>(schema: JSONSchema7): T; export declare function evaluateExpression(this: ISupplyDataFunctions, expression: string, itemIndex: number): string; export declare function validateDynamicSchema(resolvedSchema: string): JSONSchema7; export declare function hasExpressions(text: string): boolean; export {};