UNPKG

n8n

Version:

n8n Workflow Automation Tool

17 lines (16 loc) 1.56 kB
import type { User } from '../../../../databases/entities/User'; import { WorkflowEntity } from '../../../../databases/entities/WorkflowEntity'; import { SharedWorkflow, type WorkflowSharingRole } from '../../../../databases/entities/SharedWorkflow'; import type { Project } from '../../../../databases/entities/Project'; import type { Scope } from '@n8n/permissions'; export declare function getSharedWorkflowIds(user: User, scopes: Scope[], projectId?: string): Promise<string[]>; export declare function getSharedWorkflow(user: User, workflowId?: string | undefined): Promise<SharedWorkflow | null>; export declare function getWorkflowById(id: string): Promise<WorkflowEntity | null>; export declare function createWorkflow(workflow: WorkflowEntity, user: User, personalProject: Project, role: WorkflowSharingRole): Promise<WorkflowEntity>; export declare function setWorkflowAsActive(workflow: WorkflowEntity): Promise<void>; export declare function setWorkflowAsInactive(workflow: WorkflowEntity): Promise<import("@n8n/typeorm").UpdateResult>; export declare function deleteWorkflow(workflow: WorkflowEntity): Promise<WorkflowEntity>; export declare function updateWorkflow(workflowId: string, updateData: WorkflowEntity): Promise<import("@n8n/typeorm").UpdateResult>; export declare function parseTagNames(tags: string): string[]; export declare function getWorkflowTags(workflowId: string): Promise<import("../../../../databases/entities/TagEntity").TagEntity[]>; export declare function updateTags(workflowId: string, newTags: string[]): Promise<any>;