Files
d4h-typescript/lib/src/entity.ts
T
Nick Trochalakis 7254e6e5b3 Separate classes for groups of methods (#1)
* 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
2025-01-11 14:57:09 -08:00

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'
}