UNPKG

@agility/cli

Version:

Agility CLI for working with your content. (Public Beta)

34 lines (33 loc) 1.09 kB
import { GuidEntities } from './guid-data-loader'; import { PusherResult } from 'types/sourceData'; export interface PushOperationConfig { name: string; description: string; handler: (sourceData: GuidEntities, targetData: GuidEntities, locale: string) => Promise<PusherResult>; elements: string[]; dataKey: string; dependencies?: string[]; } export declare const PUSH_OPERATIONS: Record<string, PushOperationConfig>; export declare class PushOperationsRegistry { /** * Get operations based on elements filter with dependency resolution */ static getOperationsForElements(): PushOperationConfig[]; /** * Get all available operations */ static getAllOperations(): PushOperationConfig[]; /** * Get operation by name */ static getOperationByName(name: string): PushOperationConfig | undefined; /** * Get operations by element type */ static getOperationsByElement(element: string): PushOperationConfig[]; /** * Resolve element dependencies */ private static resolveDependencies; }