UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

31 lines (30 loc) 1.04 kB
import type { OperationHandler } from '@directus/extensions'; import type { Accountability, SchemaOverview } from '@directus/types'; export declare function getFlowManager(): FlowManager; declare class FlowManager { private isLoaded; private operations; private triggerHandlers; private operationFlowHandlers; private webhookFlowHandlers; private reloadQueue; private envs; constructor(); initialize(): Promise<void>; reload(): Promise<void>; addOperation(id: string, operation: OperationHandler): void; removeOperation(id: string): void; runOperationFlow(id: string, data: unknown, context: Record<string, unknown>): Promise<unknown>; runWebhookFlow(id: string, data: unknown, context: { schema: SchemaOverview; accountability: Accountability | undefined; } & Record<string, unknown>): Promise<{ result: unknown; cacheEnabled?: boolean; }>; private load; private unload; private executeFlow; private executeOperation; } export {};