Expand description
Constructors§
Properties§
Methods§
Source§canTakeInput(
_fromState: IChainable,
_withConnectionOptions?: ConnectionOptions,
): boolean
canTakeInput(
_fromState: IChainable,
_withConnectionOptions?: ConnectionOptions,
): boolean
Determines if this If node can accept additional input connections
Source§clone<Id extends string>(
id: Id,
props?: NodeProps,
cloneOptions?: { preserveChainConnections?: boolean },
): Omit<If<L, True, False, CC, IdsInContext>, "id"> & Node<
Id,
never,
>
clone<Id extends string>(
id: Id,
props?: NodeProps,
cloneOptions?: { preserveChainConnections?: boolean },
): Omit<If<L, True, False, CC, IdsInContext>, "id"> & Node<
Id,
never,
>
Creates a deep copy of this node with a new ID and optional property overrides
Source§false<N extends IChainable<string, any>>(
next: IsNullable<False> extends true
? N
: "false() node is already set ",
connectionOptions?: Omit<ConnectionOptions, "from">,
): If<
L,
True,
N["~context"],
{
[K in string
| number
| symbol]: (
N extends Chain<C_CC, any, false>
? IgnoreContext<C_CC> extends true
? Omit<CC, "json">
: Omit<CC, "json"> & C_CC
: N extends Group<_, G_Chain_CC, any>
? IgnoreContext<G_Chain_CC> extends true
? Omit<CC, "json">
: Omit<CC, "json"> & G_Chain_CC
: N extends If<any, any, any, I_Chain_CC, any>
? IgnoreContext<I_Chain_CC> extends true
? Omit<CC, "json">
: Omit<CC & I_Chain_CC, "json">
: N extends IChainable<Id, C>
? IgnoreContext<C> extends true
? Omit<CC, "json">
: { [k in string]: C } & Omit<CC, "json"> & {
json: C;
}
: CC
)[K]
},
AddNodeIdToIds<N, IdsInContext>,
>
false<N extends IChainable<string, any>>(
next: IsNullable<False> extends true
? N
: "false() node is already set ",
connectionOptions?: Omit<ConnectionOptions, "from">,
): If<
L,
True,
N["~context"],
{
[K in string
| number
| symbol]: (
N extends Chain<C_CC, any, false>
? IgnoreContext<C_CC> extends true
? Omit<CC, "json">
: Omit<CC, "json"> & C_CC
: N extends Group<_, G_Chain_CC, any>
? IgnoreContext<G_Chain_CC> extends true
? Omit<CC, "json">
: Omit<CC, "json"> & G_Chain_CC
: N extends If<any, any, any, I_Chain_CC, any>
? IgnoreContext<I_Chain_CC> extends true
? Omit<CC, "json">
: Omit<CC & I_Chain_CC, "json">
: N extends IChainable<Id, C>
? IgnoreContext<C> extends true
? Omit<CC, "json">
: { [k in string]: C } & Omit<CC, "json"> & {
json: C;
}
: CC
)[K]
},
AddNodeIdToIds<N, IdsInContext>,
>
Connects a node or chain to execute when the If condition evaluates to false
Source§getCredentials(): | (Credentials<any> | undefined)[]
| undefined
getCredentials(): | (Credentials<any> | undefined)[]
| undefined
Returns the credentials required by this node
Source§getParameters(): Promise<
{
conditions: | {
combinator: ConditionCombinator;
conditions: (
| StringCondition
| NumberCondition
| DateTimeCondition
| BooleanCondition
| ArrayCondition
| ObjectCondition
)[];
options: {
caseSensitive: boolean;
typeValidation: string;
version: number;
};
}
| undefined;
looseTypeValidation: boolean
| undefined;
options:
| {
ignoreCase?: boolean;
looseTypeValidation?: boolean;
}
| undefined;
},
>
getParameters(): Promise<
{
conditions: | {
combinator: ConditionCombinator;
conditions: (
| StringCondition
| NumberCondition
| DateTimeCondition
| BooleanCondition
| ArrayCondition
| ObjectCondition
)[];
options: {
caseSensitive: boolean;
typeValidation: string;
version: number;
};
}
| undefined;
looseTypeValidation: boolean
| undefined;
options:
| {
ignoreCase?: boolean;
looseTypeValidation?: boolean;
}
| undefined;
},
>
Retrieves the parameters configured for this node
Source§listOutgoing(): IChainable<string, any>[]
listOutgoing(): IChainable<string, any>[]
Returns all states that are connected as next states from this state
Source§toNode(): Promise<
{
alwaysOutputData: boolean
| undefined;
credentials:
| { [type: string]: { id: string } }
| undefined;
disabled: boolean | undefined;
executeOnce: boolean | undefined;
id: L;
maxTries: number | undefined;
name: string;
notes: string | undefined;
notesInFlow: boolean | undefined;
onError:
| "continueRegularOutput"
| "continueErrorOutput"
| undefined;
parameters: {}
| undefined;
position: NodePosition | undefined;
retryOnFail: boolean | undefined;
type: string;
typeVersion: number;
},
>
toNode(): Promise<
{
alwaysOutputData: boolean
| undefined;
credentials:
| { [type: string]: { id: string } }
| undefined;
disabled: boolean | undefined;
executeOnce: boolean | undefined;
id: L;
maxTries: number | undefined;
name: string;
notes: string | undefined;
notesInFlow: boolean | undefined;
onError:
| "continueRegularOutput"
| "continueErrorOutput"
| undefined;
parameters: {}
| undefined;
position: NodePosition | undefined;
retryOnFail: boolean | undefined;
type: string;
typeVersion: number;
},
>
Source§true<N extends IChainable<string, any>>(
next: IsNullable<True> extends true
? N
: "true() node is already set ",
connectionOptions?: Omit<ConnectionOptions, "from">,
): If<
L,
N["~context"],
False,
{
[K in string
| number
| symbol]: (
N extends Chain<C_CC, any, false>
? IgnoreContext<C_CC> extends true
? Omit<CC, "json">
: Omit<CC, "json"> & C_CC
: N extends Group<_, G_Chain_CC, any>
? IgnoreContext<G_Chain_CC> extends true
? Omit<CC, "json">
: Omit<CC, "json"> & G_Chain_CC
: N extends If<any, any, any, I_Chain_CC, any>
? IgnoreContext<I_Chain_CC> extends true
? Omit<CC, "json">
: Omit<CC & I_Chain_CC, "json">
: N extends IChainable<Id, C>
? IgnoreContext<C> extends true
? Omit<CC, "json">
: { [k in string]: C } & Omit<CC, "json"> & {
json: C;
}
: CC
)[K]
},
AddNodeIdToIds<N, IdsInContext>,
>
true<N extends IChainable<string, any>>(
next: IsNullable<True> extends true
? N
: "true() node is already set ",
connectionOptions?: Omit<ConnectionOptions, "from">,
): If<
L,
N["~context"],
False,
{
[K in string
| number
| symbol]: (
N extends Chain<C_CC, any, false>
? IgnoreContext<C_CC> extends true
? Omit<CC, "json">
: Omit<CC, "json"> & C_CC
: N extends Group<_, G_Chain_CC, any>
? IgnoreContext<G_Chain_CC> extends true
? Omit<CC, "json">
: Omit<CC, "json"> & G_Chain_CC
: N extends If<any, any, any, I_Chain_CC, any>
? IgnoreContext<I_Chain_CC> extends true
? Omit<CC, "json">
: Omit<CC & I_Chain_CC, "json">
: N extends IChainable<Id, C>
? IgnoreContext<C> extends true
? Omit<CC, "json">
: { [k in string]: C } & Omit<CC, "json"> & {
json: C;
}
: CC
)[K]
},
AddNodeIdToIds<N, IdsInContext>,
>
Connects a node or chain to execute when the If condition evaluates to true
Route items to different branches (true/false)