2023-09-19 03:16:35 -07:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2024-02-06 09:34:34 -08:00
|
|
|
export type AssignmentSetField = {
|
|
|
|
name: string;
|
|
|
|
value: unknown;
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
|
2023-09-19 03:16:35 -07:00
|
|
|
export const INCLUDE = {
|
|
|
|
ALL: 'all',
|
|
|
|
NONE: 'none',
|
|
|
|
SELECTED: 'selected',
|
|
|
|
EXCEPT: 'except',
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type IncludeMods = (typeof INCLUDE)[keyof typeof INCLUDE];
|