import type { BCMSEntry, BCMSEntryContentNode, BCMSEntryLite, BCMSTemplate, } from '@becomes/cms-sdk/types'; import type { JSONContent } from '@tiptap/core'; import type { BCMSMultiSelectItemExtended } from '../components'; import type { BCMSEntryExtended } from '../models'; export type BCMSEntryService = { toMultiSelectOptions( entry: BCMSEntry | BCMSEntryLite, template: BCMSTemplate ): BCMSMultiSelectItemExtended; toExtended(data: { template: string | BCMSTemplate; entry?: BCMSEntry; }): Promise; fromExtended(data: { extended: BCMSEntryExtended }): BCMSEntry; content: { toExtendedNodes(data: { contentNodes: BCMSEntryContentNode[]; lang: string; }): Promise; fromExtendedNodes(data: { tContent: JSONContent[]; }): BCMSEntryContentNode[]; }; // instanceLite(languages: BCMSLanguage[], props: BCMSProp[]): BCMSEntryLite; // instanceModified( // languages: BCMSLanguage[], // props: BCMSProp[] // ): BCMSEntryModified; // instanceLiteModified( // languages: BCMSLanguage[], // props: BCMSProp[] // ): BCMSEntryLiteModified; // toLiteModified(entryLite: BCMSEntryLite): BCMSEntryLiteModified; // toModified(entry: BCMSEntry): BCMSEntryModified; // fromModified(entry: BCMSEntryModified): BCMSEntry; // contentSection: { // createPrimary(type: BCMSPropType): BCMSProp; // createWidget(widget: BCMSWidget): BCMSProp; // }; };