@ems-press/content-api-types
Version:
Typescript types for the EMS Press Content API
21 lines (20 loc) • 1.01 kB
TypeScript
import { SerialArticleFiles, SerialArticles } from './index';
import { DateFilter, IsInFilter } from '../filter';
export declare type Type = 'serial-article-images';
export declare type SerialArticleImageType = 'full-text-jats-xml-image' | 'full-text-json-image' | 'supplementary-image';
export declare const serialArticleImageTypes: import("./book-chapter-images").BookChapterImageType[];
export declare type Attributes = Omit<SerialArticleFiles.Attributes, 'fileType'> & {
fileType: SerialArticleImageType;
width: number;
height: number;
};
export declare type Relationships = {
serialArticle: {
type: SerialArticles.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'> & {
serialArticle?: number[];
};