@ems-press/content-api-types
Version:
Typescript types for the EMS Press Content API
22 lines (21 loc) • 717 B
TypeScript
import { DateFilter, IsInFilter } from '../filter';
export declare type Type = 'images';
export declare type Attributes = {
createdAt: Date;
updatedAt: Date;
url: string;
contentType: string;
width: number;
height: number;
path: string;
sizeBytes: number;
md5: string;
sha256: string;
description?: string;
license?: string;
licenseCode?: string;
licenseUrl?: string;
};
export declare type Relationships = Record<never, never>;
export declare type SortField = 'createdAt' | 'updatedAt' | 'contentType' | 'path';
export declare type Filter = DateFilter<'created' | 'updated'> & IsInFilter<Attributes, 'contentType' | 'path' | 'md5' | 'sha256' | 'licenseCode'>;