[WEB-5845] chore: changing description field to description json (#8230)

* chore: migrating description to description json

* chore: replace description with description_json

* chore: updated migration file

* chore: updated the migration file

* chore: added description key in external endpoint

* chore: updated the migration file

* chore: updated the typo

---------

Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
Bavisetti Narayan 2026-01-22 18:23:59 +05:30 committed by GitHub
parent 6c8779c8d3
commit 2a29ab8d4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 85 additions and 54 deletions

View file

@ -215,7 +215,7 @@ export const convertHTMLDocumentToAllFormats = (args: TConvertHTMLDocumentToAllF
const { contentBinaryEncoded, contentHTML, contentJSON } =
getAllDocumentFormatsFromRichTextEditorBinaryData(contentBinary);
allFormats = {
description: contentJSON,
description_json: contentJSON,
description_html: contentHTML,
description_binary: contentBinaryEncoded,
};
@ -228,7 +228,7 @@ export const convertHTMLDocumentToAllFormats = (args: TConvertHTMLDocumentToAllF
false
);
allFormats = {
description: contentJSON,
description_json: contentJSON,
description_html: contentHTML,
description_binary: contentBinaryEncoded,
};

View file

@ -8,7 +8,7 @@ export type TPage = {
color: string | undefined;
created_at: Date | undefined;
created_by: string | undefined;
description: object | undefined;
description_json: object | undefined;
description_html: string | undefined;
id: string | undefined;
is_favorite: boolean;
@ -66,7 +66,7 @@ export type TPageVersion = {
export type TDocumentPayload = {
description_binary: string;
description_html: string;
description: object;
description_json: object;
};
export type TWebhookConnectionQueryParams = {