Skip to content

Commit 668bca4

Browse files
author
arne
committed
add books.cover_date and books.cover_date_precision
1 parent c814dee commit 668bca4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/resources/books.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ export type Attributes = {
7070
licenseCode?: string
7171
licenseUrl?: string
7272
languageCode?: string
73-
}
73+
} & (
74+
{ coverDate: Date, coverDatePrecision: DatePrecision } |
75+
{ coverDate: undefined, coverDatePrecision: undefined }
76+
)
7477

7578
export type Relationships = {
7679
bookSeries: { type: BookSeries.Type; cardinality: null | '1' }
@@ -89,6 +92,7 @@ export type SortField =
8992
| 'createdAt'
9093
| 'updatedAt'
9194
| 'publishedAt'
95+
| 'coverDate'
9296
| 'title'
9397
| 'pages'
9498
| 'bookSeriesVolume'

0 commit comments

Comments
 (0)