Frodo Library - v4.0.0-10
    Preparing search index...

    Type Alias Site

    type Site = {
        createSiteExportTemplate(): SiteExportInterface;
        exportSite(siteId: string): Promise<SiteExportInterface>;
        exportSites(): Promise<SiteExportInterface>;
        importSites(
            importData: SiteExportInterface,
            siteId?: string,
            siteUrl?: string,
        ): Promise<SiteSkeleton[]>;
        readSite(siteId: string): Promise<SiteSkeleton>;
        readSites(): Promise<SiteSkeleton[]>;
        updateSite(siteId: string, siteData: SiteSkeleton): Promise<SiteSkeleton>;
    }
    Index

    Methods

    • Import sites

      Parameters

      • importData: SiteExportInterface

        site import data

      • OptionalsiteId: string

        Optional site id. If supplied, only the site of that id is imported. Takes priority over siteUrl if both are provided.

      • OptionalsiteUrl: string

        Optional site url. If supplied, only the site of that url is imported.

      Returns Promise<SiteSkeleton[]>

      the imported sites