@wca/helpers
Version:
Helpers and class definitions for WCA and WCIF
24 lines (23 loc) • 691 B
TypeScript
import { Avatar } from './avatar';
import { Registration } from './registration';
import { Assignment } from './assignment';
import { PersonalBest } from './personalBest';
import { Role } from './role';
import { Extension } from './extension';
export type RegistrantId = number;
export interface Person {
registrantId: RegistrantId;
name: string;
wcaUserId: number;
wcaId?: string | null;
countryIso2: string;
gender?: 'm' | 'f' | 'o';
birthdate?: string;
email?: string;
avatar?: Avatar | null;
roles?: Role[];
registration?: Registration | null;
assignments?: Assignment[];
personalBests?: PersonalBest[];
extensions: Extension[];
}