@ems-press/content-api-types
Version:
Typescript types for the EMS Press Content API
29 lines (28 loc) • 739 B
TypeScript
import { Images } from '.';
import { DateFilter } from '../filter';
export declare type Type = 'persons';
export declare type Attributes = {
createdAt: Date;
updatedAt: Date;
name: string;
surname?: string;
givenName?: string;
prefix?: string;
orcid?: string;
description?: string;
organization?: string;
role?: string;
email?: string;
twitterProfile?: string;
linkedinProfile?: string;
facebookProfile?: string;
homepage?: string;
};
export declare type Relationships = {
image: {
type: Images.Type;
cardinality: null | '1';
};
};
export declare type SortField = 'createdAt' | 'updatedAt';
export declare type Filter = DateFilter<'created' | 'updated'>;