Expand description
Constructors§
Source§new Webhook<L extends string, P extends WebhookProps>(
id: L,
props: P,
): Webhook<L, P>
new Webhook<L extends string, P extends WebhookProps>(
id: L,
props: P,
): Webhook<L, P>
Properties§
Methods§
Source§canTakeInput(
_fromState: IChainable,
_withConnectionOptions?: ConnectionOptions,
): boolean
canTakeInput(
_fromState: IChainable,
_withConnectionOptions?: ConnectionOptions,
): boolean
Determines if this state can accept input from another state
Source§clone<Id extends string>(
id: Id,
props?: NodeProps,
cloneOptions?: { preserveChainConnections?: boolean },
): Omit<Webhook<L, P>, "id"> & Node<
Id,
{
body: GetOutputSchemaField<P, "body">;
executionMode: "test" | "production";
headers: GetOutputSchemaField<P, "headers">;
params: GetOutputSchemaField<P, "params">;
query: GetOutputSchemaField<P, "query">;
webhookUrl: string;
},
>
clone<Id extends string>(
id: Id,
props?: NodeProps,
cloneOptions?: { preserveChainConnections?: boolean },
): Omit<Webhook<L, P>, "id"> & Node<
Id,
{
body: GetOutputSchemaField<P, "body">;
executionMode: "test" | "production";
headers: GetOutputSchemaField<P, "headers">;
params: GetOutputSchemaField<P, "params">;
query: GetOutputSchemaField<P, "query">;
webhookUrl: string;
},
>
Creates a deep copy of this node with a new ID and optional property overrides
Source§getCredentials(): (
| undefined
| Credentials<HttpBasicAuthCredentials>
| Credentials<HttpHeaderAuthCredentials>
| Credentials<JwtAuthCredentials>
)[]
getCredentials(): (
| undefined
| Credentials<HttpBasicAuthCredentials>
| Credentials<HttpHeaderAuthCredentials>
| Credentials<JwtAuthCredentials>
)[]
Returns the credentials required by this node
Source§listOutgoing(): IChainable<string, any>[]
listOutgoing(): IChainable<string, any>[]
Returns all states that are connected as next states from this state
Starts the workflow when a webhook is called