/* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ export type FormattedNodes = HigherOrderFormattedNodes | BaseFormattedNodes; export type HigherOrderFormattedNodes = | FormattedTextLinkToMatrixAsset | FormattedTextLinkToDamAsset | FormattedTextMatrixImage | FormattedTextDamImage; export type WithChildrenNode = FormattedNodes[]; export type BaseFormattedNodes = FormattedTextTag | FormattedTextFragment | TextNode | ComponentNode | LayoutNode; export type FormattedText = FormattedNodes[]; export interface FormattedTextLinkToMatrixAsset { children: WithChildrenNode; formattingOptions?: FormattingOptions; type: 'link-to-matrix-asset'; matrixIdentifier?: string; matrixDomain: string; matrixAssetId: string; target: '_blank' | '_self' | '_parent' | '_top'; attributes?: { href?: never; target?: never; [k: string]: unknown; } & { [k: string]: string; }; error?: string; } export interface FormattingOptions { alignment?: 'center' | 'left' | 'right' | 'justify'; [k: string]: unknown; } export interface FormattedTextLinkToDamAsset { children: WithChildrenNode; formattingOptions?: FormattingOptions; type: 'link-to-dam-asset'; damSystemType: string; damSystemIdentifier: string; damObjectId: string; damAdditional?: { variant?: string; [k: string]: unknown; }; target: '_blank' | '_self' | '_parent' | '_top'; attributes?: { href?: never; target?: never; [k: string]: unknown; } & { [k: string]: string; }; } export interface FormattedTextMatrixImage { type: 'matrix-image'; matrixIdentifier?: string; matrixDomain: string; matrixAssetId: string; formattingOptions?: FormattingOptions; attributes?: { src?: never; [k: string]: unknown; } & { [k: string]: string; }; error?: string; } export interface FormattedTextDamImage { type: 'dam-image'; damSystemType: string; damSystemIdentifier: string; damObjectId: string; damAdditional?: { variant?: string; [k: string]: unknown; }; formattingOptions?: FormattingOptions; attributes?: { src?: never; [k: string]: unknown; } & { [k: string]: string; }; } export interface FormattedTextTag { children?: WithChildrenNode; formattingOptions?: FormattingOptions; type: 'tag'; tag: string; attributes?: { [k: string]: string; }; font?: FormattedNodeFontProperties; } export interface FormattedNodeFontProperties { bold?: boolean; underline?: boolean; italics?: boolean; color?: string; size?: string; fontFamily?: string; [k: string]: unknown; } export interface FormattedTextFragment { children?: WithChildrenNode; i18n?: { [k: string]: { children?: WithChildrenNode; }; }; type: 'fragment'; } export interface TextNode { type: 'text'; value: string; } export interface ComponentNode { type: 'component'; componentId: string; componentType: 'edge' | 'server'; i18n?: { [k: string]: { id?: string; [k: string]: unknown; }; }; componentSet: string; contentItem?: ContentItemReference; error?: string; } export interface ContentItemReference { id?: string; [k: string]: unknown; } export interface LayoutNode { type: 'layout'; layout: { name: string; options: { [k: string]: unknown; }; [k: string]: unknown; }; content: { [k: string]: unknown; }; }