464 lines
12 KiB
TypeScript
464 lines
12 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* This file was automatically generated by Payload.
|
|
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
|
|
* and re-run `payload generate:types` to regenerate this file.
|
|
*/
|
|
|
|
export interface Config {
|
|
collections: {
|
|
users: User
|
|
pages: Page
|
|
posts: Post
|
|
tenants: Tenant
|
|
categories: Category
|
|
media: Media
|
|
'payload-preferences': PayloadPreference
|
|
'payload-migrations': PayloadMigration
|
|
}
|
|
globals: {
|
|
header: Header
|
|
footer: Footer
|
|
}
|
|
}
|
|
export interface User {
|
|
id: string
|
|
updatedAt: string
|
|
createdAt: string
|
|
email: string
|
|
resetPasswordToken?: string | null
|
|
resetPasswordExpiration?: string | null
|
|
salt?: string | null
|
|
hash?: string | null
|
|
loginAttempts?: number | null
|
|
lockUntil?: string | null
|
|
password: string | null
|
|
}
|
|
export interface Page {
|
|
id: string
|
|
slug: string
|
|
tenant?: (string | null) | Tenant
|
|
title: string
|
|
hero: {
|
|
type: 'none' | 'highImpact' | 'lowImpact'
|
|
richText?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
media?: string | Media | null
|
|
}
|
|
layout?:
|
|
| (
|
|
| {
|
|
invertBackground?: boolean | null
|
|
richText?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
links?:
|
|
| {
|
|
link: {
|
|
type?: ('reference' | 'custom') | null
|
|
newTab?: boolean | null
|
|
reference?:
|
|
| ({
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
} | null)
|
|
| ({
|
|
relationTo: 'pages'
|
|
value: string | Page
|
|
} | null)
|
|
url?: string | null
|
|
label: string
|
|
appearance?: ('primary' | 'secondary') | null
|
|
}
|
|
id?: string | null
|
|
}[]
|
|
| null
|
|
id?: string | null
|
|
blockName?: string | null
|
|
blockType: 'cta'
|
|
}
|
|
| {
|
|
invertBackground?: boolean | null
|
|
columns?:
|
|
| {
|
|
size?: ('oneThird' | 'half' | 'twoThirds' | 'full') | null
|
|
richText?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
enableLink?: boolean | null
|
|
link?: {
|
|
type?: ('reference' | 'custom') | null
|
|
newTab?: boolean | null
|
|
reference?:
|
|
| ({
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
} | null)
|
|
| ({
|
|
relationTo: 'pages'
|
|
value: string | Page
|
|
} | null)
|
|
url?: string | null
|
|
label: string
|
|
appearance?: ('default' | 'primary' | 'secondary') | null
|
|
}
|
|
id?: string | null
|
|
}[]
|
|
| null
|
|
id?: string | null
|
|
blockName?: string | null
|
|
blockType: 'content'
|
|
}
|
|
| {
|
|
invertBackground?: boolean | null
|
|
position?: ('default' | 'fullscreen') | null
|
|
media: string | Media
|
|
id?: string | null
|
|
blockName?: string | null
|
|
blockType: 'mediaBlock'
|
|
}
|
|
| {
|
|
introContent?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
populateBy?: ('collection' | 'selection') | null
|
|
relationTo?: 'posts' | null
|
|
categories?: (string | Category)[] | null
|
|
limit?: number | null
|
|
selectedDocs?:
|
|
| {
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
}[]
|
|
| null
|
|
populatedDocs?:
|
|
| {
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
}[]
|
|
| null
|
|
populatedDocsTotal?: number | null
|
|
id?: string | null
|
|
blockName?: string | null
|
|
blockType: 'archive'
|
|
}
|
|
)[]
|
|
| null
|
|
relationshipAsUpload?: string | Media | null
|
|
relationshipMonoHasOne?: (string | null) | Post
|
|
relationshipMonoHasMany?: (string | Post)[] | null
|
|
relationshipPolyHasOne?: {
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
} | null
|
|
relationshipPolyHasMany?:
|
|
| {
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
}[]
|
|
| null
|
|
arrayOfRelationships?:
|
|
| {
|
|
uploadInArray?: string | Media | null
|
|
richTextInArray?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
relationshipInArrayMonoHasOne?: (string | null) | Post
|
|
relationshipInArrayMonoHasMany?: (string | Post)[] | null
|
|
relationshipInArrayPolyHasOne?: {
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
} | null
|
|
relationshipInArrayPolyHasMany?:
|
|
| {
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
}[]
|
|
| null
|
|
id?: string | null
|
|
}[]
|
|
| null
|
|
richTextSlate?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
richTextLexical?: {
|
|
root: {
|
|
children: {
|
|
type: string
|
|
version: number
|
|
[k: string]: unknown
|
|
}[]
|
|
direction: ('ltr' | 'rtl') | null
|
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | ''
|
|
indent: number
|
|
type: string
|
|
version: number
|
|
}
|
|
[k: string]: unknown
|
|
} | null
|
|
tab: {
|
|
relationshipInTab?: (string | null) | Post
|
|
}
|
|
meta?: {
|
|
title?: string | null
|
|
description?: string | null
|
|
image?: string | Media | null
|
|
}
|
|
updatedAt: string
|
|
createdAt: string
|
|
}
|
|
export interface Tenant {
|
|
id: string
|
|
title: string
|
|
clientURL: string
|
|
updatedAt: string
|
|
createdAt: string
|
|
}
|
|
export interface Media {
|
|
id: string
|
|
alt: string
|
|
caption?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
updatedAt: string
|
|
createdAt: string
|
|
url?: string | null
|
|
filename?: string | null
|
|
mimeType?: string | null
|
|
filesize?: number | null
|
|
width?: number | null
|
|
height?: number | null
|
|
}
|
|
export interface Post {
|
|
id: string
|
|
slug: string
|
|
tenant?: (string | null) | Tenant
|
|
title: string
|
|
hero: {
|
|
type: 'none' | 'highImpact' | 'lowImpact'
|
|
richText?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
media?: string | Media | null
|
|
}
|
|
layout?:
|
|
| (
|
|
| {
|
|
invertBackground?: boolean | null
|
|
richText?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
links?:
|
|
| {
|
|
link: {
|
|
type?: ('reference' | 'custom') | null
|
|
newTab?: boolean | null
|
|
reference?:
|
|
| ({
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
} | null)
|
|
| ({
|
|
relationTo: 'pages'
|
|
value: string | Page
|
|
} | null)
|
|
url?: string | null
|
|
label: string
|
|
appearance?: ('primary' | 'secondary') | null
|
|
}
|
|
id?: string | null
|
|
}[]
|
|
| null
|
|
id?: string | null
|
|
blockName?: string | null
|
|
blockType: 'cta'
|
|
}
|
|
| {
|
|
invertBackground?: boolean | null
|
|
columns?:
|
|
| {
|
|
size?: ('oneThird' | 'half' | 'twoThirds' | 'full') | null
|
|
richText?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
enableLink?: boolean | null
|
|
link?: {
|
|
type?: ('reference' | 'custom') | null
|
|
newTab?: boolean | null
|
|
reference?:
|
|
| ({
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
} | null)
|
|
| ({
|
|
relationTo: 'pages'
|
|
value: string | Page
|
|
} | null)
|
|
url?: string | null
|
|
label: string
|
|
appearance?: ('default' | 'primary' | 'secondary') | null
|
|
}
|
|
id?: string | null
|
|
}[]
|
|
| null
|
|
id?: string | null
|
|
blockName?: string | null
|
|
blockType: 'content'
|
|
}
|
|
| {
|
|
invertBackground?: boolean | null
|
|
position?: ('default' | 'fullscreen') | null
|
|
media: string | Media
|
|
id?: string | null
|
|
blockName?: string | null
|
|
blockType: 'mediaBlock'
|
|
}
|
|
| {
|
|
introContent?:
|
|
| {
|
|
[k: string]: unknown
|
|
}[]
|
|
| null
|
|
populateBy?: ('collection' | 'selection') | null
|
|
relationTo?: 'posts' | null
|
|
categories?: (string | Category)[] | null
|
|
limit?: number | null
|
|
selectedDocs?:
|
|
| {
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
}[]
|
|
| null
|
|
populatedDocs?:
|
|
| {
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
}[]
|
|
| null
|
|
populatedDocsTotal?: number | null
|
|
id?: string | null
|
|
blockName?: string | null
|
|
blockType: 'archive'
|
|
}
|
|
)[]
|
|
| null
|
|
relatedPosts?: (string | Post)[] | null
|
|
meta?: {
|
|
title?: string | null
|
|
description?: string | null
|
|
image?: string | Media | null
|
|
}
|
|
updatedAt: string
|
|
createdAt: string
|
|
}
|
|
export interface Category {
|
|
id: string
|
|
title?: string | null
|
|
updatedAt: string
|
|
createdAt: string
|
|
}
|
|
export interface PayloadPreference {
|
|
id: string
|
|
user: {
|
|
relationTo: 'users'
|
|
value: string | User
|
|
}
|
|
key?: string | null
|
|
value?:
|
|
| {
|
|
[k: string]: unknown
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null
|
|
updatedAt: string
|
|
createdAt: string
|
|
}
|
|
export interface PayloadMigration {
|
|
id: string
|
|
name?: string | null
|
|
batch?: number | null
|
|
updatedAt: string
|
|
createdAt: string
|
|
}
|
|
export interface Header {
|
|
id: string
|
|
navItems?:
|
|
| {
|
|
link: {
|
|
type?: ('reference' | 'custom') | null
|
|
newTab?: boolean | null
|
|
reference?:
|
|
| ({
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
} | null)
|
|
| ({
|
|
relationTo: 'pages'
|
|
value: string | Page
|
|
} | null)
|
|
url?: string | null
|
|
label: string
|
|
appearance?: ('default' | 'primary' | 'secondary') | null
|
|
}
|
|
id?: string | null
|
|
}[]
|
|
| null
|
|
updatedAt?: string | null
|
|
createdAt?: string | null
|
|
}
|
|
export interface Footer {
|
|
id: string
|
|
navItems?:
|
|
| {
|
|
link: {
|
|
type?: ('reference' | 'custom') | null
|
|
newTab?: boolean | null
|
|
reference?:
|
|
| ({
|
|
relationTo: 'posts'
|
|
value: string | Post
|
|
} | null)
|
|
| ({
|
|
relationTo: 'pages'
|
|
value: string | Page
|
|
} | null)
|
|
url?: string | null
|
|
label: string
|
|
appearance?: ('default' | 'primary' | 'secondary') | null
|
|
}
|
|
id?: string | null
|
|
}[]
|
|
| null
|
|
updatedAt?: string | null
|
|
createdAt?: string | null
|
|
}
|
|
|
|
declare module 'payload' {
|
|
export interface GeneratedTypes extends Config {}
|
|
}
|