From 54362bbef2ae8f4c83c1af2db2f99362cb4be436 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sun, 30 Jun 2024 19:21:03 +0200 Subject: [PATCH] Updateds types --- src/sdk.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sdk.ts b/src/sdk.ts index da50780..9595164 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -20,7 +20,7 @@ export type EndpointFolderPreview = { }[]; }; -export type EndpointFolder = EndpointFolderPreview & { +export type EndpointFolder = Omit & { translations: (EndpointFolderPreview["translations"][number] & { description?: RichTextContent; })[]; @@ -173,7 +173,7 @@ export type EndpointPagePreview = { updatedAt: string; }; -export type EndpointPage = EndpointPagePreview & { +export type EndpointPage = Omit & { backgroundImage?: EndpointPayloadImage; translations: (EndpointPagePreview["translations"][number] & { sourceLanguage: string; @@ -206,7 +206,7 @@ export type EndpointCollectiblePreview = { }; }; -export type EndpointCollectible = EndpointCollectiblePreview & { +export type EndpointCollectible = Omit & { translations: (EndpointCollectiblePreview["translations"][number] & { description?: RichTextContent; })[]; @@ -439,7 +439,7 @@ export type EndpointMediaPreview = { }[]; }; -export type EndpointMedia = EndpointMediaPreview & { +export type EndpointMedia = Omit & { filesize: number; updatedAt: string; createdAt: string;