UNPKG

@ems-press/content-api-types

Version:

Typescript types for the EMS Press Content API

21 lines (20 loc) 922 B
import { BookFiles, Books } from './index'; import { DateFilter, IsInFilter } from '../filter'; export declare type Type = 'book-images'; export declare type BookImageType = 'full-text-jats-xml-image' | 'full-text-json-image' | 'supplementary-image'; export declare const bookImageTypes: import("./book-chapter-images").BookChapterImageType[]; export declare type Attributes = Omit<BookFiles.Attributes, 'fileType'> & { fileType: BookImageType; width: number; height: number; }; export declare type Relationships = { book: { type: Books.Type; cardinality: '1'; }; }; export declare type SortField = 'createdAt' | 'updatedAt' | 'publishedAt' | 'contentType' | 'path'; export declare type Filter = DateFilter<'created' | 'updated' | 'published'> & IsInFilter<Attributes, 'contentType' | 'path' | 'md5' | 'sha256' | 'fileType' | 'licenseCode' | 'languageCode'> & { book?: number[]; };