UNPKG

@prismatic-io/embedded

Version:

Embed Prismatic's integration marketplace and workflow designer within your existing application.

20 lines (19 loc) 701 B
export interface WorkflowContexts { } export interface CreateWorkflowArgs<TContextData = unknown> { name: string; contextData: TContextData; externalId?: string; } export interface CreateWorkflowData { importWorkflow: { workflow: { id: string; }; errors: { field: string; messages: string[]; }[]; }; } export declare function createWorkflow<TKey extends keyof WorkflowContexts | (string & {})>(contextStableKey: TKey, args: CreateWorkflowArgs<TKey extends keyof WorkflowContexts ? WorkflowContexts[TKey] : Record<string, unknown>>): Promise<import("./graphqlRequest").GraphqlRequestResponse<CreateWorkflowData>>;