// Generated by @byline/core/codegen // Format version: 2 // Hash: 7c42f9892f94559081c07b01952f1149e7c4cc112569bbed5861c0a32d735448 import type { JsonValue, RelatedDocumentValue, StoredFileValue, } from '@byline/core' declare module '@byline/generated-types' { export type PhotoBlockData = { _id: string _type: 'photoBlock' display?: 'default' | 'wide' | 'full_width' | undefined photo?: RelatedDocumentValue | undefined alt: string caption?: JsonValue | undefined } export type PhotoBlockDataAllLocales = { _id: string _type: 'photoBlock' display?: 'default' | 'wide' | 'full_width' | undefined photo?: RelatedDocumentValue | undefined alt: string caption?: { [locale: string]: JsonValue } | undefined } export type RichTextBlockData = { _id: string _type: 'richTextBlock' richText: JsonValue constrainedWidth?: boolean | undefined } export type RichTextBlockDataAllLocales = { _id: string _type: 'richTextBlock' richText: { [locale: string]: JsonValue } constrainedWidth?: boolean | undefined } export type DocsFields = { title: string summary: string featureImage?: RelatedDocumentValue | undefined publishedOn: Date content?: Array | undefined } export type DocsFieldsAllLocales = { title: { [locale: string]: string } summary: { [locale: string]: string } featureImage?: RelatedDocumentValue | undefined publishedOn: Date content?: Array | undefined } export type MediaFields = { image: StoredFileValue title: string altText: string caption?: string | undefined credit?: string | undefined } export type MediaFieldsAllLocales = { image: StoredFileValue title: string altText: string caption?: string | undefined credit?: string | undefined } export type NewsCategoriesFields = { name: string description: string } export type NewsCategoriesFieldsAllLocales = { name: { [locale: string]: string } description: { [locale: string]: string } } export type NewsFields = { title: string summary: string category: RelatedDocumentValue featureImage?: RelatedDocumentValue | undefined featured?: boolean | undefined content: JsonValue publishedOn: Date } export type NewsFieldsAllLocales = { title: { [locale: string]: string } summary: { [locale: string]: string } category: RelatedDocumentValue featureImage?: RelatedDocumentValue | undefined featured?: boolean | undefined content: { [locale: string]: JsonValue } publishedOn: Date } export type PagesFields = { title: string summary: string featureImage?: RelatedDocumentValue | undefined area: 'root' | 'about' | 'legal' content?: Array | undefined publishedOn: Date } export type PagesFieldsAllLocales = { title: { [locale: string]: string } summary: { [locale: string]: string } featureImage?: RelatedDocumentValue | undefined area: 'root' | 'about' | 'legal' content?: Array | undefined publishedOn: Date } export type CollectionFieldsByPath = { docs: DocsFields media: MediaFields news: NewsFields 'news-categories': NewsCategoriesFields pages: PagesFields } export type CollectionFieldsAllLocalesByPath = { docs: DocsFieldsAllLocales media: MediaFieldsAllLocales news: NewsFieldsAllLocales 'news-categories': NewsCategoriesFieldsAllLocales pages: PagesFieldsAllLocales } export type CollectionPath = keyof CollectionFieldsByPath } declare module '@byline/client' { interface Register { collections: import('@byline/generated-types').CollectionFieldsByPath } }