@ems-press/content-api-types
Version:
Typescript types for the EMS Press Content API
24 lines (23 loc) • 829 B
TypeScript
import * as Books from './books';
import { DateFilter, IsInFilter } from '../filter';
export declare type Type = 'book-supplementary-urls';
export declare type BookSupplementaryUrlType = 'data' | 'erratum' | 'image' | 'prize' | 'review' | 'source-code' | 'video' | 'other';
export declare const bookSupplementaryUrlTypes: BookSupplementaryUrlType[];
export declare type Attributes = {
createdAt: Date;
updatedAt: Date;
title: string;
description?: string;
url: string;
urlType: BookSupplementaryUrlType;
};
export declare type Relationships = {
book: {
type: Books.Type;
cardinality: '1';
};
};
export declare type SortField = 'createdAt' | 'updatedAt';
export declare type Filter = DateFilter<'created' | 'updated'> & IsInFilter<Attributes, 'urlType'> & {
book?: number[];
};