UNPKG

@agility/cli

Version:

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

32 lines (31 loc) 1.29 kB
import * as mgmtApi from "@agility/management-sdk"; interface PageMapping { sourceGuid: string; targetGuid: string; sourcePageID: number; targetPageID: number; sourceVersionID: number; targetVersionID: number; sourcePageTemplateName: string; targetPageTemplateName: string; } export declare class PageMapper { private fileOps; private sourceGuid; private targetGuid; private mappings; private directory; private locale; constructor(sourceGuid: string, targetGuid: string, locale: string); getPageMapping(page: mgmtApi.PageItem, type: 'source' | 'target'): PageMapping | null; getPageMappingByPageID(pageID: number, type: 'source' | 'target'): PageMapping | null; getPageMappingByPageTemplateName(pageTemplateName: string, type: 'source' | 'target'): PageMapping | null; getMappedEntity(mapping: PageMapping, type: 'source' | 'target'): mgmtApi.PageItem | null; addMapping(sourcePage: mgmtApi.PageItem, targetPage: mgmtApi.PageItem): void; updateMapping(sourcePage: mgmtApi.PageItem, targetPage: mgmtApi.PageItem): void; loadMapping(): any[]; saveMapping(): void; hasSourceChanged(sourcePage: mgmtApi.PageItem): boolean; hasTargetChanged(targetPage: mgmtApi.PageItem): boolean; } export {};