Skip to content

Commit

Permalink
Add Position List to Known MediaTypes (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayPanoz authored Oct 9, 2024
1 parent ea4e827 commit 9ae0cb4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions shared/src/util/mediatype/MediaType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,27 @@ export class MediaType {
fileExtension: 'json',
});
}
public static get READIUM_CONTENT_DOCUMENT(): MediaType {
return MediaType.parse({
mediaType: 'application/vnd.readium.content+json',
name: 'Readium Content Document',
fileExtension: 'json',
});
}
public static get READIUM_GUIDED_NAVIGATION_DOCUMENT(): MediaType {
return MediaType.parse({
mediaType: 'application/guided-navigation+json',
name: 'Readium Guided Navigation Document',
fileExtension: 'json',
});
}
public static get READIUM_POSITION_LIST(): MediaType {
return MediaType.parse({
mediaType: 'application/vnd.readium.position-list+json',
name: 'Readium Position List',
fileExtension: 'json',
});
}
public static get READIUM_WEBPUB(): MediaType {
return MediaType.parse({
mediaType: 'application/webpub+zip',
Expand Down

0 comments on commit 9ae0cb4

Please sign in to comment.