UNPKG

@agility/cli

Version:

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

23 lines (22 loc) 790 B
import * as mgmtApi from '@agility/management-sdk'; import { ContentItemMapper } from 'lib/mappers/content-item-mapper'; import { ChangeDetection } from './change-detection'; interface Props { sourceContent: mgmtApi.ContentItem; referenceMapper: ContentItemMapper; } interface FindResult { content: mgmtApi.ContentItem | null; shouldUpdate: boolean; shouldCreate: boolean; shouldSkip: boolean; isConflict: boolean; decision?: ChangeDetection; reason?: string; } /** * Enhanced content item finder with proper target safety and conflict resolution * Logic Flow: Target Safety FIRST → Change Delta SECOND → Conflict Resolution */ export declare function findContentInTargetInstance({ sourceContent, referenceMapper }: Props): FindResult; export {};