mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 09:04:07 -08:00
2799de491b
Co-authored-by: Giulio Andreini <andreini@netseven.it>
34 lines
755 B
TypeScript
34 lines
755 B
TypeScript
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 type AssignmentSetField = {
|
|
name: string;
|
|
value: unknown;
|
|
type: string;
|
|
};
|
|
|
|
export const INCLUDE = {
|
|
ALL: 'all',
|
|
NONE: 'none',
|
|
SELECTED: 'selected',
|
|
EXCEPT: 'except',
|
|
} as const;
|
|
|
|
export type IncludeMods = (typeof INCLUDE)[keyof typeof INCLUDE];
|