mirror of
https://github.com/kc4x4sar/d4h-typescript.git
synced 2026-07-12 17:21:05 -07:00
7254e6e5b3
* added resourcetype interface that's imported and reused * added membergroupmembership; comments formatting typedoc output; updated types * separate classes for groups of methods * additional methods added, suggested changes made, typedoc documentation improved
27 lines
717 B
TypeScript
27 lines
717 B
TypeScript
import { CustomField } from './types/customField'
|
|
|
|
export interface Entity {
|
|
custom_fields?: CustomField[];
|
|
id: number;
|
|
entityType: EntityType;
|
|
}
|
|
|
|
// EntityType must be one of:
|
|
// event, exercise, gear, healthsafety_report, incident,
|
|
// incident.weather, member, person_involved, unit, activity
|
|
//
|
|
// Only the ones actively in use are implemented.
|
|
export enum EntityType {
|
|
Member = 'member',
|
|
memberGroup = 'membergroup',
|
|
groupMembership = 'groupmembership',
|
|
Incident = 'incident',
|
|
Qualification = 'qualification',
|
|
Award = 'award',
|
|
Animal = 'animal',
|
|
Team = 'team',
|
|
Organisation = 'organisation',
|
|
Role = 'role',
|
|
Activity = 'activity'
|
|
}
|