@agility/cli
Version:
Agility CLI for working with your content. (Public Beta)
32 lines (31 loc) • 1.52 kB
TypeScript
import * as mgmtApi from "@agility/management-sdk";
interface ContainerMapping {
sourceGuid: string;
targetGuid: string;
sourceContentViewID: number;
targetContentViewID: number;
sourceReferenceName?: string;
targetReferenceName?: string;
sourceLastModifiedDate: string;
targetLastModifiedDate: string;
}
export declare class ContainerMapper {
private fileOps;
private sourceGuid;
private targetGuid;
private mappings;
private directory;
constructor(sourceGuid: string, targetGuid: string);
getContainerMapping(container: mgmtApi.Container, type: 'source' | 'target'): ContainerMapping | null;
getContainerMappingByContentViewID(contentViewID: number, type: 'source' | 'target'): ContainerMapping | null;
getContainerMappingByReferenceName(referenceName: string, type: 'source' | 'target'): ContainerMapping | null;
getMappedEntity(mapping: ContainerMapping, type: 'source' | 'target'): mgmtApi.Container | null;
getContainerByReferenceName(referenceName: string, type: 'source' | 'target'): mgmtApi.Container | null;
addMapping(sourceContainer: mgmtApi.Container, targetContainer: mgmtApi.Container): void;
updateMapping(sourceContainer: mgmtApi.Container, targetContainer: mgmtApi.Container): void;
loadMapping(): any[];
saveMapping(): void;
hasSourceChanged(sourceContainer: mgmtApi.Container | null | undefined): boolean;
hasTargetChanged(targetContainer: mgmtApi.Container | null | undefined): boolean;
}
export {};