mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(Set Node): Overhaul (#6348)
Github issue / Community forum post (link here to close automatically): https://github.com/n8n-io/n8n/pull/6348 --------- Co-authored-by: Giulio Andreini <g.andreini@gmail.com> Co-authored-by: Marcus <marcus@n8n.io>
This commit is contained in:
27
packages/nodes-base/nodes/Set/v2/helpers/interfaces.ts
Normal file
27
packages/nodes-base/nodes/Set/v2/helpers/interfaces.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
|
||||
export type SetNodeOptions = {
|
||||
dotNotation?: boolean;
|
||||
ignoreConversionErrors?: boolean;
|
||||
include?: IncludeMods;
|
||||
includeBinary?: boolean;
|
||||
};
|
||||
|
||||
export type SetField = {
|
||||
name: string;
|
||||
type: 'stringValue' | 'numberValue' | 'booleanValue' | 'arrayValue' | 'objectValue';
|
||||
stringValue?: string;
|
||||
numberValue?: number;
|
||||
booleanValue?: boolean;
|
||||
arrayValue?: string[] | string | IDataObject | IDataObject[];
|
||||
objectValue?: string | IDataObject;
|
||||
};
|
||||
|
||||
export const INCLUDE = {
|
||||
ALL: 'all',
|
||||
NONE: 'none',
|
||||
SELECTED: 'selected',
|
||||
EXCEPT: 'except',
|
||||
} as const;
|
||||
|
||||
export type IncludeMods = (typeof INCLUDE)[keyof typeof INCLUDE];
|
||||
Reference in New Issue
Block a user