@agility/cli
Version:
Agility CLI for working with your content. (Public Beta)
30 lines (29 loc) • 975 B
TypeScript
import * as mgmtApi from "@agility/management-sdk";
import { PageMapper } from "../../mappers/page-mapper";
import { SitemapNode } from "types/index";
import { Logs } from "core/logs";
interface ReturnType {
successful: number;
failed: number;
skipped: number;
publishableIds: number[];
}
interface Props {
channel: string;
pageMapper: PageMapper;
sitemapNodes: SitemapNode[];
sourceGuid: string;
targetGuid: string;
locale: string;
apiClient: mgmtApi.ApiClient;
overwrite: boolean;
sourcePages: mgmtApi.PageItem[];
parentPageID: number;
logger: Logs;
}
/**
* We need to process each page in the sitemap nodes recursively IN REVERSE ORDER to get the hierarchy and the ordering correct.
* @param param0
*/
export declare function processSitemap({ channel, pageMapper, sitemapNodes, sourceGuid, targetGuid, locale, apiClient, overwrite, sourcePages, parentPageID, logger }: Props): Promise<ReturnType>;
export {};