@ems-press/content-api-types
Version:
Typescript types for the EMS Press Content API
38 lines (37 loc) • 1.27 kB
TypeScript
import { SerialIssues } from './index';
import { DateFilter, IsInFilter } from '../filter';
import { DatePrecision } from '../date';
export declare type Type = 'serial-issue-files';
export declare type SerialIssueFileType = 'full-text-online-pdf';
export declare const serialIssueFileTypes: "full-text-online-pdf"[];
export declare type Attributes = {
createdAt: Date;
updatedAt: Date;
access: boolean;
url?: string;
contentType: string;
path: string;
sizeBytes: number;
md5: string;
sha256: string;
fileType: SerialIssueFileType;
publishedAt: Date;
publishedAtPrecision: DatePrecision;
description?: string;
copyright?: string;
copyrightUrl?: string;
license?: string;
licenseCode?: string;
licenseUrl?: string;
languageCode?: string;
};
export declare type Relationships = {
serialIssue: {
type: SerialIssues.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'> & {
serialIssue?: number[];
};