From 986c5b5a3c6b065370fe32e9146d48bec59a7569 Mon Sep 17 00:00:00 2001 From: riazaia <42520601+riazaia@users.noreply.github.com> Date: Tue, 1 Aug 2023 19:28:20 -0300 Subject: [PATCH 1/3] Add series and collection types --- types/entities.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/types/entities.ts b/types/entities.ts index f2af572..2963542 100644 --- a/types/entities.ts +++ b/types/entities.ts @@ -126,3 +126,21 @@ export interface Chapter { publishedAt: string; url: string; } + +export interface WorkSeries { + id: string; + title: string; + url: string; + currentWork: { + id: string; + index: number; + prevWorkId: string | null; + nextWorkId: string | null; + }; +} + +export interface WorkCollection { + name: string; + id: string; + url: string; +} From dde599cd531c599cff1d03f0d2245266ab4a7da2 Mon Sep 17 00:00:00 2001 From: riazaia <42520601+riazaia@users.noreply.github.com> Date: Tue, 1 Aug 2023 19:37:20 -0300 Subject: [PATCH 2/3] Fix collection type --- types/entities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/entities.ts b/types/entities.ts index 2963542..84e576c 100644 --- a/types/entities.ts +++ b/types/entities.ts @@ -140,7 +140,7 @@ export interface WorkSeries { } export interface WorkCollection { - name: string; + title: string; id: string; url: string; } From 1dbf03b0d98d9678c4f8cf78fa86fe89f2b97721 Mon Sep 17 00:00:00 2001 From: Ria Date: Mon, 14 Aug 2023 16:00:46 -0300 Subject: [PATCH 3/3] Update collection type to use names from the UI --- types/entities.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/entities.ts b/types/entities.ts index 84e576c..ed24d3b 100644 --- a/types/entities.ts +++ b/types/entities.ts @@ -140,7 +140,7 @@ export interface WorkSeries { } export interface WorkCollection { - title: string; - id: string; + displayTitle: string; + collectionName: string; url: string; }