UNPKG

@agility/cli

Version:

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

15 lines (14 loc) 556 B
import { ContentItemMapping } from "lib/mappers/content-item-mapper"; import * as mgmtApi from '@agility/management-sdk'; /** * Simple change detection for content items */ export interface ChangeDetection { entity: mgmtApi.ContentItem | null; shouldUpdate: boolean; shouldCreate: boolean; shouldSkip: boolean; isConflict: boolean; reason: string; } export declare function changeDetection(sourceEntity: mgmtApi.ContentItem, targetEntity: mgmtApi.ContentItem | null, mapping: ContentItemMapping, locale: string): ChangeDetection;