-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #748 from CodeForAfrica/feature/roboshield_hero_pa…
…yload @/Roboshield Move Hero to Payload CMS
- Loading branch information
Showing
6 changed files
with
300 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
interface TextNode { | ||
children: TextNode | null; | ||
text?: string; | ||
} | ||
|
||
interface BreadCrumbs { | ||
doc: string; | ||
url: string; | ||
label: string; | ||
id: string; | ||
} | ||
|
||
interface Document { | ||
id: string; | ||
title: string; | ||
fullTitle: string; | ||
slug: string; | ||
blocks: any[]; | ||
meta: any; | ||
breadcrumbs: BreadCrumbs[]; | ||
createdAt: string; | ||
updatedAt: string; | ||
} | ||
|
||
interface Link { | ||
label: string; | ||
linkType: string; | ||
doc: { | ||
value: Document; | ||
}; | ||
relationTo: string; | ||
} | ||
|
||
interface SocialMediaLink { | ||
platform: string; | ||
url: string; | ||
id: string; | ||
} | ||
|
||
interface StayInTouchData { | ||
title: string; | ||
links: SocialMediaLink[]; | ||
} | ||
|
||
interface HeroHeader { | ||
headingType: string; | ||
title: string; | ||
id: string; | ||
} | ||
|
||
export interface MediaData { | ||
id: string; | ||
alt?: string | null; | ||
prefix: string; | ||
filename: string; | ||
mimeType: string; | ||
filesize: number; | ||
width: number; | ||
height: number; | ||
createdAt: string; | ||
updatedAt: string; | ||
url: string | null; | ||
src: string | null; | ||
} | ||
|
||
export interface Partner { | ||
logo: MediaData; | ||
name: string; | ||
url: string; | ||
} | ||
export interface Settings { | ||
title: string; | ||
description: TextNode; | ||
connect: StayInTouchData; | ||
primaryLogo: MediaData; | ||
secondaryLogo: MediaData; | ||
primaryNavigation: { | ||
menus: Link[]; | ||
connect: string; | ||
}; | ||
secondaryNavigation: { | ||
menus: Link[]; | ||
}; | ||
newsletter: { | ||
title: string; | ||
embedCode: string; | ||
}; | ||
initiative: { | ||
partners: Partner[]; | ||
title: string; | ||
description: TextNode; | ||
}; | ||
heroButtonText: string; | ||
heroDescriptiveText: string; | ||
heroHeaders: HeroHeader[]; | ||
} | ||
|
||
export interface CollectionQuery { | ||
collection: string; | ||
depth: number; | ||
page: number; | ||
limit: number; | ||
pagination: boolean; | ||
where: Record<string, any>; | ||
sort: string; | ||
locale: string; | ||
fallbackLocale: boolean | string; | ||
user: string; | ||
overrideAccess: boolean; | ||
showHiddenFields: boolean; | ||
} | ||
|
||
export interface Api { | ||
createCollection: (...args: any) => Promise<any>; | ||
deleteCollection: (...args: any) => Promise<any>; | ||
findGlobal: (...args: any) => Promise<any>; | ||
findPage: (...args: any) => Promise<any>; | ||
getCollection: (...args: any) => Promise<any>; | ||
updateCollection: (...args: any) => Promise<any>; | ||
} |
Oops, something went wrong.