2019-11-08 03:40:20 +01:00
|
|
|
export interface SingleFileQuery {
|
|
|
|
data: {
|
|
|
|
silverstripeDocument: SinglePage
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export interface SinglePage {
|
|
|
|
title: string;
|
2019-11-12 04:09:29 +01:00
|
|
|
slug: string;
|
2019-11-08 03:40:20 +01:00
|
|
|
parent: {
|
|
|
|
html: string;
|
|
|
|
parent: {
|
|
|
|
relativePath: string;
|
|
|
|
gitRemote: {
|
|
|
|
ref: string;
|
|
|
|
webLink: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export interface SilverstripeDocument {
|
|
|
|
title: string;
|
|
|
|
slug: string;
|
|
|
|
isIndex: boolean;
|
|
|
|
filePath: string;
|
2019-11-12 05:05:31 +01:00
|
|
|
introduction?: string;
|
|
|
|
icon?: string;
|
|
|
|
iconBrand?: string;
|
|
|
|
hideChildren?: boolean;
|
|
|
|
hideSelf?: boolean;
|
2019-11-08 03:40:20 +01:00
|
|
|
parentSlug: string;
|
|
|
|
summary: string;
|
|
|
|
fileTitle: string;
|
|
|
|
fileAbsolutePath: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface HierarchyQuery {
|
|
|
|
allSilverstripeDocument: {
|
|
|
|
nodes: SilverstripeDocument[]
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export interface ChildrenOfProps {
|
|
|
|
folderName?: string;
|
|
|
|
exclude?: string;
|
|
|
|
currentNode: SilverstripeDocument | null;
|
|
|
|
asList?: boolean;
|
|
|
|
};
|