Type alias ArboretumClientT

ArboretumClientT: {
    cachedData: (() => CachedDataT);
    homePage: ((localeCode, options?) => Either<string, ArboretumPageT>);
    locales: (() => LocaleT[]);
    pageById: ((localeCode, id, options?) => Either<string, ArboretumPageNodeT>);
    pageByPath: ((path, options?) => Either<string, ArboretumPageNodeT>);
    pages: ((options?) => Either<string, ArboretumPageNodeT[]>);
    pagesByIds: ((localeCode, ids, options?) => Either<string, ArboretumPageNodeT>[]);
    pagesByPaths: ((paths, options?) => Either<string, ArboretumPageNodeT>[]);
    pagesByTagId: ((localeCode, tagId, options?) => Either<string, ArboretumPageNodeT[]>);
    regenerate: (() => Promise<{
        status: "OK";
        warnings?: string[];
    }>);
    search: ((phrase, localeCode?, limit?) => ArboretumPageNodeT[]);
    status: (() => {
        contentful: ArboretumClientOptionsT;
        lastUpdatedAt: string;
        localesCount: number;
        pagesCount: number;
        regenerationInProgress: boolean;
    });
}

Type declaration

Generated using TypeDoc