From 63d17331a17a5ab7874599d1df4ecf6b45ac89f3 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:41:22 +0200 Subject: [PATCH] Actually no, bring back the backlinks but add additional info --- payload/endpoint-types.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/payload/endpoint-types.ts b/payload/endpoint-types.ts index 6d4f8c0..e96b5d0 100644 --- a/payload/endpoint-types.ts +++ b/payload/endpoint-types.ts @@ -331,6 +331,7 @@ export type EndpointCollectibleScans = { insideFlapBack?: EndpointScanImage; }; pages: EndpointScanImage[]; + backlinks: EndpointRelation[]; }; export type EndpointCollectibleScanPage = { @@ -345,6 +346,7 @@ export type EndpointCollectibleScanPage = { image: EndpointScanImage; previousIndex?: string; nextIndex?: string; + backlinks: EndpointRelation[]; }; export type EndpointCollectibleGallery = { @@ -358,6 +360,7 @@ export type EndpointCollectibleGallery = { description?: RichTextContent; }[]; images: EndpointPayloadImage[]; + backlinks: EndpointRelation[]; }; export type EndpointCollectibleGalleryImage = { @@ -372,7 +375,9 @@ export type EndpointCollectibleGalleryImage = { image: EndpointImage; previousIndex?: string; nextIndex?: string; + backlinks: EndpointRelation[]; }; + export type EndpointScanImage = PayloadImage & { index: string; sizes: PayloadImage[]; @@ -418,6 +423,7 @@ export type EndpointRelation = | { type: Collections.Collectibles; value: EndpointCollectiblePreview; + subpage?: "none" | "scans" | "gallery"; range?: EndpointCollectibleRelationRange; } | { type: Collections.Pages; value: EndpointPagePreview }