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
-
-
homePage: ((localeCode, options?) => Either<string, ArboretumPageT>)
-
locales: (() => LocaleT[])
-
pageById: ((localeCode, id, 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[];
}>)
-
- (): Promise<{
status: "OK";
warnings?: string[];
}>
-
Returns Promise<{
status: "OK";
warnings?: string[];
}>
-
search: ((phrase, localeCode?, limit?) => ArboretumPageNodeT[])
-
- (phrase, localeCode?, limit?): ArboretumPageNodeT[]
-
Parameters
-
phrase: string
-
Optional
localeCode: string
-
Optional
limit: number
-
status: (() => {
contentful: ArboretumClientOptionsT;
lastUpdatedAt: string;
localesCount: number;
pagesCount: number;
regenerationInProgress: boolean;
})
-
- (): {
contentful: ArboretumClientOptionsT;
lastUpdatedAt: string;
localesCount: number;
pagesCount: number;
regenerationInProgress: boolean;
}
-
Returns {
contentful: ArboretumClientOptionsT;
lastUpdatedAt: string;
localesCount: number;
pagesCount: number;
regenerationInProgress: boolean;
}
-
-
lastUpdatedAt: string
-
localesCount: number
-
pagesCount: number
-
regenerationInProgress: boolean