/** * Set Node - Version 1 * Sets values on items and optionally remove other values */ export interface SetV1Params { /** * Whether only the values set on this node should be kept and all others removed * @default false */ keepOnlySet?: boolean | Expression; /** * The value to set * @default {} */ values?: { /** Boolean */ boolean?: Array<{ /** Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name" * @default propertyName */ name?: string | Expression | PlaceholderValue; /** The boolean value to write in the property * @default false */ value?: boolean | Expression; }>; /** Number */ number?: Array<{ /** Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name" * @default propertyName */ name?: string | Expression | PlaceholderValue; /** The number value to write in the property * @default 0 */ value?: number | Expression; }>; /** String */ string?: Array<{ /** Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name" * @default propertyName */ name?: string | Expression | PlaceholderValue; /** The string value to write in the property */ value?: string | Expression | PlaceholderValue; }>; }; options?: { /** <p>By default, dot-notation is used in property names. This means that "a.b" will set the property "b" underneath "a" so { "a": { "b": value} }.<p></p>If that is not intended this can be deactivated, it will then set { "a.b": value } instead.</p>. * @default true */ dotNotation?: boolean | Expression; }; } interface SetV1NodeBase { type: 'n8n-nodes-base.set'; version: 1; } export type SetV1ParamsNode = SetV1NodeBase & { config: NodeConfig; }; export type SetV1Node = SetV1ParamsNode;