diff --git a/.gitignore b/.gitignore index 6637873..0d91023 100644 --- a/.gitignore +++ b/.gitignore @@ -85,11 +85,4 @@ tests/cases/user/axios-src/axios-src tests/cases/user/prettier/prettier .eslintcache *v8.log -**/*.env - - -getmember.json -getMembers.ts -members.json -getMember.ts -getIncident.ts \ No newline at end of file +**/*.env \ No newline at end of file diff --git a/README.md b/README.md index 98246a6..4f68887 100644 --- a/README.md +++ b/README.md @@ -44,4 +44,14 @@ The available commands are: Build simply builds the test project, while launch both builds and runs it. If you've made changes to lib, be sure to build there first. -Before launching, you should setup environment variables. `sample.env` shows you what variables are necessary. Copy the contents to a new file, `.env`, in the same folder and populate it appropriately. \ No newline at end of file +Before launching, you should setup environment variables. `sample.env` shows you what variables are necessary. Copy the contents to a new file, `.env`, in the same folder and populate it appropriately. + +## Contributing + +### Updating Docs + +To update typedoc docs after changes to code, run in the root of the repo: + +```npm install``` + +```npm run docs``` \ No newline at end of file diff --git a/docs/classes/default.html b/docs/classes/default.html index c1548a8..2d0e988 100644 --- a/docs/classes/default.html +++ b/docs/classes/default.html @@ -1,4 +1,4 @@ -default | d4h-typescript

Constructors

constructor +default | d4h-typescript

Constructors

Methods


  • -

    Parameters

    • context: string
    • contextId: number
    • id: number | "me"

    Returns Promise<Animal>

  • Parameters

    • context: string
    • contextId: number
    • id: number

    Returns Promise<Qualification>

  • Parameters

    • context: string
    • contextId: number
    • id: number

    Returns Promise<Qualification>


  • -

    Parameters

    • context: string
    • contextId: number
    • activityId: number

    Returns Promise<Incident>


  • -

    Parameters

    • context: string
    • contextId: number
    • id: number | "me"
    • Optionaloptions: GetMemberOptions

    Returns Promise<Member>


  • -

    Parameters

    • context: string
    • contextId: number
    • groupId: number

    Returns Promise<memberGroup>


  • -

    Parameters

    • context: string
    • contextId: number
    • id: number | "me"

    Returns Promise<Qualification>


  • -

    Parameters

    Returns Promise<void>

  • Parameters

    • context: string
    • contextId: number
    • id: number
    • updates: MemberUpdate

    Returns Promise<void>

+

Constructors

Methods


  • +

    Parameters

    • context: string
    • contextId: number
    • id: number | "me"

    Returns Promise<Animal>

  • Parameters

    • context: string
    • contextId: number
    • id: number

    Returns Promise<Qualification>

  • Parameters

    • context: string
    • contextId: number
    • id: number

    Returns Promise<Qualification>


  • +

    Parameters

    • context: string
    • contextId: number
    • activityId: number

    Returns Promise<Incident>


  • +

    Parameters

    • context: string
    • contextId: number
    • id: number | "me"
    • Optionaloptions: GetMemberOptions

    Returns Promise<Member>


  • +

    Parameters

    • context: string
    • contextId: number
    • groupId: number

    Returns Promise<memberGroup>


  • +

    Parameters

    • context: string
    • contextId: number
    • id: number | "me"

    Returns Promise<Qualification>


  • +

    Parameters

    Returns Promise<void>

  • Parameters

    • context: string
    • contextId: number
    • id: number
    • updates: MemberUpdate

    Returns Promise<void>

diff --git a/docs/enums/CustomFieldType.html b/docs/enums/CustomFieldType.html index de6a6a1..2885f42 100644 --- a/docs/enums/CustomFieldType.html +++ b/docs/enums/CustomFieldType.html @@ -1,4 +1,4 @@ -CustomFieldType | d4h-typescript

Enumeration CustomFieldType

Enumeration Members

Date +CustomFieldType | d4h-typescript

Enumeration CustomFieldType

Enumeration Members

Enumeration Members

Date: "date"
Number: "number"
Text: "text"
+

Enumeration Members

Date: "date"
Number: "number"
Text: "text"
diff --git a/docs/index.html b/docs/index.html index 803ef00..24c4f64 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,6 +1,6 @@ d4h-typescript

d4h-typescript

d4h-typescript

Typescript library for accessing D4H

Typedoc Generated Documentation available at:

-

https://chewbaccalakis.github.io/d4h-typescript/modules.html

+

https://kc4x4sar.github.io/d4h-typescript

This library is not in NPM. As a result, you need to add it to your project locally. To do so, you have three options:

  1. Add the repository to the consuming repository as a Git submodule.
  2. @@ -27,4 +27,7 @@

    Build simply builds the test project, while launch both builds and runs it. If you've made changes to lib, be sure to build there first.

    Before launching, you should setup environment variables. sample.env shows you what variables are necessary. Copy the contents to a new file, .env, in the same folder and populate it appropriately.

    -
+

To update typedoc docs after changes to code, run in the root of the repo:

+

npm install

+

npm run docs

+
diff --git a/docs/interfaces/AddressInfo.html b/docs/interfaces/AddressInfo.html index 4d9b1ff..a59221c 100644 --- a/docs/interfaces/AddressInfo.html +++ b/docs/interfaces/AddressInfo.html @@ -1,6 +1,6 @@ -AddressInfo | d4h-typescript

Interface AddressInfo

interface AddressInfo {
    country: string;
    postCode: string;
    region: string;
    street: string;
    town: string;
}

Properties

country +AddressInfo | d4h-typescript

Interface AddressInfo

interface AddressInfo {
    country: string;
    postCode: string;
    region: string;
    street: string;
    town: string;
}

Properties

country: string
postCode: string
region: string
street: string
town: string
+

Properties

country: string
postCode: string
region: string
street: string
town: string
diff --git a/docs/interfaces/Animal.html b/docs/interfaces/Animal.html index 36ad489..c171767 100644 --- a/docs/interfaces/Animal.html +++ b/docs/interfaces/Animal.html @@ -1,4 +1,4 @@ -Animal | d4h-typescript

Interface Animal

interface Animal {
    bornAt: string;
    breed: string;
    countRollingHours: number;
    createdAt: string;
    custom_fields?: CustomField[];
    entityType: EntityType;
    id: number;
    joinedAt: string;
    leftAt: null | string;
    name: string;
    notes: string;
    ref: string;
    resourceType: string;
    status: string;
    type: string;
    updatedAt: string;
}

Hierarchy

  • Entity
    • Animal

Properties

bornAt +Animal | d4h-typescript

Interface Animal

interface Animal {
    bornAt: string;
    breed: string;
    countRollingHours: number;
    createdAt: string;
    custom_fields?: CustomField[];
    entityType: EntityType;
    id: number;
    joinedAt: string;
    leftAt: null | string;
    name: string;
    notes: string;
    ref: string;
    resourceType: string;
    status: string;
    type: string;
    updatedAt: string;
}

Hierarchy

  • Entity
    • Animal

Properties

bornAt: string
breed: string
countRollingHours: number
createdAt: string
custom_fields?: CustomField[]
entityType: EntityType
id: number
joinedAt: string
leftAt: null | string
name: string
notes: string
ref: string
resourceType: string
status: string
type: string
updatedAt: string
+

Properties

bornAt: string
breed: string
countRollingHours: number
createdAt: string
custom_fields?: CustomField[]
entityType: EntityType
id: number
joinedAt: string
leftAt: null | string
name: string
notes: string
ref: string
resourceType: string
status: string
type: string
updatedAt: string
diff --git a/docs/interfaces/CustomField.html b/docs/interfaces/CustomField.html index 34ac78a..8eaaad5 100644 --- a/docs/interfaces/CustomField.html +++ b/docs/interfaces/CustomField.html @@ -1,8 +1,8 @@ -CustomField | d4h-typescript

Interface CustomField

interface CustomField {
    bundle: unknown;
    id: number;
    label: string;
    member_edit_own: boolean;
    type: CustomFieldType;
    value: null | string;
    value_string: null | string;
}

Properties

bundle +CustomField | d4h-typescript

Interface CustomField

interface CustomField {
    bundle: unknown;
    id: number;
    label: string;
    member_edit_own: boolean;
    type: CustomFieldType;
    value: null | string;
    value_string: null | string;
}

Properties

bundle: unknown
id: number
label: string
member_edit_own: boolean
value: null | string
value_string: null | string
+

Properties

bundle: unknown
id: number
label: string
member_edit_own: boolean
value: null | string
value_string: null | string
diff --git a/docs/interfaces/CustomFieldUpdate.html b/docs/interfaces/CustomFieldUpdate.html index 282589f..b61d418 100644 --- a/docs/interfaces/CustomFieldUpdate.html +++ b/docs/interfaces/CustomFieldUpdate.html @@ -1,3 +1,3 @@ -CustomFieldUpdate | d4h-typescript

Interface CustomFieldUpdate

interface CustomFieldUpdate {
    id: number;
    value: null | string;
}

Properties

id +CustomFieldUpdate | d4h-typescript

Interface CustomFieldUpdate

interface CustomFieldUpdate {
    id: number;
    value: null | string;
}

Properties

Properties

id: number
value: null | string
+

Properties

id: number
value: null | string
diff --git a/docs/interfaces/CustomMemberStatus.html b/docs/interfaces/CustomMemberStatus.html index 6c627b6..582d62c 100644 --- a/docs/interfaces/CustomMemberStatus.html +++ b/docs/interfaces/CustomMemberStatus.html @@ -1,3 +1,3 @@ -CustomMemberStatus | d4h-typescript

Interface CustomMemberStatus

interface CustomMemberStatus {
    id: null | number;
    resourceType: string;
}

Properties

id +CustomMemberStatus | d4h-typescript

Interface CustomMemberStatus

interface CustomMemberStatus {
    id: null | number;
    resourceType: string;
}

Properties

Properties

id: null | number
resourceType: string
+

Properties

id: null | number
resourceType: string
diff --git a/docs/interfaces/EmailInfo.html b/docs/interfaces/EmailInfo.html index b83aaee..1e2a3fc 100644 --- a/docs/interfaces/EmailInfo.html +++ b/docs/interfaces/EmailInfo.html @@ -1,3 +1,3 @@ -EmailInfo | d4h-typescript

Interface EmailInfo

interface EmailInfo {
    value: string;
    verified: boolean;
}

Properties

value +EmailInfo | d4h-typescript

Interface EmailInfo

interface EmailInfo {
    value: string;
    verified: boolean;
}

Properties

Properties

value: string
verified: boolean
+

Properties

value: string
verified: boolean
diff --git a/docs/interfaces/EquipmentLocation.html b/docs/interfaces/EquipmentLocation.html index 2f4b45f..07ab1d6 100644 --- a/docs/interfaces/EquipmentLocation.html +++ b/docs/interfaces/EquipmentLocation.html @@ -1,3 +1,3 @@ -EquipmentLocation | d4h-typescript

Interface EquipmentLocation

interface EquipmentLocation {
    id: null | number;
    resourceType: string;
}

Properties

id +EquipmentLocation | d4h-typescript

Interface EquipmentLocation

interface EquipmentLocation {
    id: null | number;
    resourceType: string;
}

Properties

Properties

id: null | number
resourceType: string
+

Properties

id: null | number
resourceType: string
diff --git a/docs/interfaces/GetAnimalsOptions.html b/docs/interfaces/GetAnimalsOptions.html index 20042fb..171566c 100644 --- a/docs/interfaces/GetAnimalsOptions.html +++ b/docs/interfaces/GetAnimalsOptions.html @@ -1,4 +1,4 @@ -GetAnimalsOptions | d4h-typescript

Interface GetAnimalsOptions

interface GetAnimalsOptions {
    handler_member_id?: number | number[];
    id?: number | number[];
    order?: "asc" | "desc";
    page?: number;
    size?: number;
    sort?: string | string[];
    status?: string;
    team_id?: number;
}

Properties

handler_member_id? +GetAnimalsOptions | d4h-typescript

Interface GetAnimalsOptions

interface GetAnimalsOptions {
    handler_member_id?: number | number[];
    id?: number | number[];
    order?: "asc" | "desc";
    page?: number;
    size?: number;
    sort?: string | string[];
    status?: string;
    team_id?: number;
}

Properties

handler_member_id?: number | number[]
id?: number | number[]
order?: "asc" | "desc"
page?: number
size?: number
sort?: string | string[]
status?: string
team_id?: number
+

Properties

handler_member_id?: number | number[]
id?: number | number[]
order?: "asc" | "desc"
page?: number
size?: number
sort?: string | string[]
status?: string
team_id?: number
diff --git a/docs/interfaces/GetGroupsOptions.html b/docs/interfaces/GetGroupsOptions.html index e61f7fc..271d861 100644 --- a/docs/interfaces/GetGroupsOptions.html +++ b/docs/interfaces/GetGroupsOptions.html @@ -1,3 +1,3 @@ -GetGroupsOptions | d4h-typescript

Interface GetGroupsOptions

interface GetGroupsOptions {
    memberId?: number;
    title?: string;
}

Properties

memberId? +GetGroupsOptions | d4h-typescript

Interface GetGroupsOptions

interface GetGroupsOptions {
    memberId?: number;
    title?: string;
}

Properties

Properties

memberId?: number
title?: string
+

Properties

memberId?: number
title?: string
diff --git a/docs/interfaces/GetIncidentOptions.html b/docs/interfaces/GetIncidentOptions.html index c338fcd..3293690 100644 --- a/docs/interfaces/GetIncidentOptions.html +++ b/docs/interfaces/GetIncidentOptions.html @@ -1,4 +1,4 @@ -GetIncidentOptions | d4h-typescript

Interface GetIncidentOptions

interface GetIncidentOptions {
    after?: string;
    before?: string;
    deleted?: boolean;
    ends_before?: string;
    id?: number | number[];
    order?: "asc" | "desc";
    page?: number;
    published?: boolean;
    reference?: string;
    size?: number;
    sort?: string | string[];
    starts_after?: string;
    tag_bundle_id?: number;
    tag_id?: number;
    team_id?: number;
}

Properties

after? +GetIncidentOptions | d4h-typescript

Interface GetIncidentOptions

interface GetIncidentOptions {
    after?: string;
    before?: string;
    deleted?: boolean;
    ends_before?: string;
    id?: number | number[];
    order?: "asc" | "desc";
    page?: number;
    published?: boolean;
    reference?: string;
    size?: number;
    sort?: string | string[];
    starts_after?: string;
    tag_bundle_id?: number;
    tag_id?: number;
    team_id?: number;
}

Properties

after?: string
before?: string
deleted?: boolean
ends_before?: string
id?: number | number[]
order?: "asc" | "desc"
page?: number
published?: boolean
reference?: string
size?: number
sort?: string | string[]
starts_after?: string
tag_bundle_id?: number
tag_id?: number
team_id?: number
+

Properties

after?: string
before?: string
deleted?: boolean
ends_before?: string
id?: number | number[]
order?: "asc" | "desc"
page?: number
published?: boolean
reference?: string
size?: number
sort?: string | string[]
starts_after?: string
tag_bundle_id?: number
tag_id?: number
team_id?: number
diff --git a/docs/interfaces/GetMemberAwardsOptions.html b/docs/interfaces/GetMemberAwardsOptions.html index 2d2eebb..7eb9ae0 100644 --- a/docs/interfaces/GetMemberAwardsOptions.html +++ b/docs/interfaces/GetMemberAwardsOptions.html @@ -1,9 +1,9 @@ -GetMemberAwardsOptions | d4h-typescript

Interface GetMemberAwardsOptions

interface GetMemberAwardsOptions {
    exclude_org_data?: boolean;
    exclude_teams_data?: boolean;
    member_id: number | "me";
    order?: "asc" | "desc";
    page?: number;
    qualification_id?: number;
    size?: number;
    sort?: string | string[];
}

Properties

exclude_org_data? +GetMemberAwardsOptions | d4h-typescript

Interface GetMemberAwardsOptions

interface GetMemberAwardsOptions {
    exclude_org_data?: boolean;
    exclude_teams_data?: boolean;
    member_id?: number | "me";
    order?: "asc" | "desc";
    page?: number;
    qualification_id?: number;
    size?: number;
    sort?: string | string[];
}

Properties

exclude_org_data?: boolean
exclude_teams_data?: boolean
member_id: number | "me"
order?: "asc" | "desc"
page?: number
qualification_id?: number
size?: number
sort?: string | string[]
+

Properties

exclude_org_data?: boolean
exclude_teams_data?: boolean
member_id?: number | "me"
order?: "asc" | "desc"
page?: number
qualification_id?: number
size?: number
sort?: string | string[]
diff --git a/docs/interfaces/GetMemberGroupsOptions.html b/docs/interfaces/GetMemberGroupsOptions.html index 0753baa..0506d96 100644 --- a/docs/interfaces/GetMemberGroupsOptions.html +++ b/docs/interfaces/GetMemberGroupsOptions.html @@ -1,8 +1,8 @@ -GetMemberGroupsOptions | d4h-typescript

Interface GetMemberGroupsOptions

interface GetMemberGroupsOptions {
    id: number;
    order?: "asc" | "desc";
    page?: number;
    size?: number;
    sort?: string | string[];
    team_id?: number | number[];
    title?: string;
}

Properties

id +GetMemberGroupsOptions | d4h-typescript

Interface GetMemberGroupsOptions

interface GetMemberGroupsOptions {
    id: number;
    order?: "asc" | "desc";
    page?: number;
    size?: number;
    sort?: string | string[];
    team_id?: number | number[];
    title?: string;
}

Properties

id: number
order?: "asc" | "desc"
page?: number
size?: number
sort?: string | string[]
team_id?: number | number[]
title?: string
+

Properties

id: number
order?: "asc" | "desc"
page?: number
size?: number
sort?: string | string[]
team_id?: number | number[]
title?: string
diff --git a/docs/interfaces/GetMemberOptions.html b/docs/interfaces/GetMemberOptions.html index df6281e..44c4aa7 100644 --- a/docs/interfaces/GetMemberOptions.html +++ b/docs/interfaces/GetMemberOptions.html @@ -1,2 +1,2 @@ -GetMemberOptions | d4h-typescript

Interface GetMemberOptions

interface GetMemberOptions {
    includeDetails?: boolean;
}

Properties

Properties

includeDetails?: boolean
+GetMemberOptions | d4h-typescript

Interface GetMemberOptions

interface GetMemberOptions {
    includeDetails?: boolean;
}

Properties

Properties

includeDetails?: boolean
diff --git a/docs/interfaces/GetMembersOptions.html b/docs/interfaces/GetMembersOptions.html index 6c63741..05be6a4 100644 --- a/docs/interfaces/GetMembersOptions.html +++ b/docs/interfaces/GetMembersOptions.html @@ -1,4 +1,4 @@ -GetMembersOptions | d4h-typescript

Interface GetMembersOptions

interface GetMembersOptions {
    deleted?: boolean;
    id_tag?: string;
    name?: string;
    order?: "asc" | "desc";
    page?: number;
    size?: number;
    sort?: string | string[];
    statuses?: (null | number)[];
    team_id?: number;
}

Properties

deleted? +GetMembersOptions | d4h-typescript

Interface GetMembersOptions

interface GetMembersOptions {
    deleted?: boolean;
    id_tag?: string;
    name?: string;
    order?: "asc" | "desc";
    page?: number;
    size?: number;
    sort?: string | string[];
    statuses?: (null | number)[];
    team_id?: number;
}

Properties

Properties

deleted?: boolean
id_tag?: string
name?: string
order?: "asc" | "desc"
page?: number
size?: number
sort?: string | string[]
statuses?: (null | number)[]
team_id?: number
+

Properties

deleted?: boolean
id_tag?: string
name?: string
order?: "asc" | "desc"
page?: number
size?: number
sort?: string | string[]
statuses?: (null | number)[]
team_id?: number
diff --git a/docs/interfaces/GetQualificationOptions.html b/docs/interfaces/GetQualificationOptions.html index de26b10..82ea3f8 100644 --- a/docs/interfaces/GetQualificationOptions.html +++ b/docs/interfaces/GetQualificationOptions.html @@ -1,8 +1,8 @@ -GetQualificationOptions | d4h-typescript

Interface GetQualificationOptions

interface GetQualificationOptions {
    exclude_org_data?: boolean;
    exclude_teams_data?: boolean;
    order?: "asc" | "desc";
    page?: number;
    size?: number;
    sort?: string | string[];
    title?: string;
}

Properties

exclude_org_data? +GetQualificationOptions | d4h-typescript

Interface GetQualificationOptions

interface GetQualificationOptions {
    exclude_org_data?: boolean;
    exclude_teams_data?: boolean;
    order?: "asc" | "desc";
    page?: number;
    size?: number;
    sort?: string | string[];
    title?: string;
}

Properties

exclude_org_data?: boolean
exclude_teams_data?: boolean
order?: "asc" | "desc"
page?: number
size?: number
sort?: string | string[]
title?: string
+

Properties

exclude_org_data?: boolean
exclude_teams_data?: boolean
order?: "asc" | "desc"
page?: number
size?: number
sort?: string | string[]
title?: string
diff --git a/docs/interfaces/Incident.html b/docs/interfaces/Incident.html index 3919947..0c19d61 100644 --- a/docs/interfaces/Incident.html +++ b/docs/interfaces/Incident.html @@ -1,4 +1,4 @@ -Incident | d4h-typescript

Interface Incident

interface Incident {
    address: AddressInfo;
    approved: boolean;
    bearing: number;
    coordinator: null | string;
    countAttendance: number;
    countGuests: number;
    createdAt: string;
    createdOrPublishedAt: string;
    custom_fields?: CustomField[];
    description: string;
    descriptionDeprecated: string;
    distance: number;
    endsAt: string;
    entityType: EntityType;
    fullTeam: boolean;
    id: number;
    location: IncidentLocation;
    locationBookmark: IncidentLocationBookmark;
    night: boolean;
    owner: IncidentOwner;
    percAttendance: number;
    plan: null | string;
    planDeprecated: null | string;
    published: boolean;
    reference: string;
    referenceDescription: string;
    resourceType: string;
    selfCoordinator: boolean;
    shared: boolean;
    startsAt: string;
    tags: IncidentTag[];
    trackingNumber: null | string;
    updatedAt: string;
    weather: WeatherInfo;
    weatherCloudCover: null | number;
    weatherPressure: null | number;
}

Hierarchy

  • Entity
    • Incident

Properties

address +Incident | d4h-typescript

Interface Incident

interface Incident {
    address: AddressInfo;
    approved: boolean;
    bearing: number;
    coordinator: null | string;
    countAttendance: number;
    countGuests: number;
    createdAt: string;
    createdOrPublishedAt: string;
    custom_fields?: CustomField[];
    description: string;
    descriptionDeprecated: string;
    distance: number;
    endsAt: string;
    entityType: EntityType;
    fullTeam: boolean;
    id: number;
    location: IncidentLocation;
    locationBookmark: IncidentLocationBookmark;
    night: boolean;
    owner: IncidentOwner;
    percAttendance: number;
    plan: null | string;
    planDeprecated: null | string;
    published: boolean;
    reference: string;
    referenceDescription: string;
    resourceType: string;
    selfCoordinator: boolean;
    shared: boolean;
    startsAt: string;
    tags: IncidentTag[];
    trackingNumber: null | string;
    updatedAt: string;
    weather: WeatherInfo;
    weatherCloudCover: null | number;
    weatherPressure: null | number;
}

Hierarchy

  • Entity
    • Incident

Properties

address: AddressInfo
approved: boolean
bearing: number
coordinator: null | string
countAttendance: number
countGuests: number
createdAt: string
createdOrPublishedAt: string
custom_fields?: CustomField[]
description: string
descriptionDeprecated: string
distance: number
endsAt: string
entityType: EntityType
fullTeam: boolean
id: number
locationBookmark: IncidentLocationBookmark
night: boolean
percAttendance: number
plan: null | string
planDeprecated: null | string
published: boolean
reference: string
referenceDescription: string
resourceType: string
selfCoordinator: boolean
shared: boolean
startsAt: string
tags: IncidentTag[]
trackingNumber: null | string
updatedAt: string
weather: WeatherInfo
weatherCloudCover: null | number
weatherPressure: null | number
+

Properties

address: AddressInfo
approved: boolean
bearing: number
coordinator: null | string
countAttendance: number
countGuests: number
createdAt: string
createdOrPublishedAt: string
custom_fields?: CustomField[]
description: string
descriptionDeprecated: string
distance: number
endsAt: string
entityType: EntityType
fullTeam: boolean
id: number
locationBookmark: IncidentLocationBookmark
night: boolean
percAttendance: number
plan: null | string
planDeprecated: null | string
published: boolean
reference: string
referenceDescription: string
resourceType: string
selfCoordinator: boolean
shared: boolean
startsAt: string
tags: IncidentTag[]
trackingNumber: null | string
updatedAt: string
weather: WeatherInfo
weatherCloudCover: null | number
weatherPressure: null | number
diff --git a/docs/interfaces/IncidentLocation.html b/docs/interfaces/IncidentLocation.html index 6d61e25..0cfedb8 100644 --- a/docs/interfaces/IncidentLocation.html +++ b/docs/interfaces/IncidentLocation.html @@ -1,3 +1,3 @@ -IncidentLocation | d4h-typescript

Interface IncidentLocation

interface IncidentLocation {
    coordinates: [number, number];
    type: string;
}

Properties

coordinates +IncidentLocation | d4h-typescript

Interface IncidentLocation

interface IncidentLocation {
    coordinates: [number, number];
    type: string;
}

Properties

Properties

coordinates: [number, number]
type: string
+

Properties

coordinates: [number, number]
type: string
diff --git a/docs/interfaces/IncidentLocationBookmark.html b/docs/interfaces/IncidentLocationBookmark.html index d84799f..6991e32 100644 --- a/docs/interfaces/IncidentLocationBookmark.html +++ b/docs/interfaces/IncidentLocationBookmark.html @@ -1,3 +1,3 @@ -IncidentLocationBookmark | d4h-typescript

Interface IncidentLocationBookmark

interface IncidentLocationBookmark {
    id: null | number;
    resourceType: string;
}

Properties

id +IncidentLocationBookmark | d4h-typescript

Interface IncidentLocationBookmark

interface IncidentLocationBookmark {
    id: null | number;
    resourceType: string;
}

Properties

Properties

id: null | number
resourceType: string
+

Properties

id: null | number
resourceType: string
diff --git a/docs/interfaces/IncidentOwner.html b/docs/interfaces/IncidentOwner.html index c7429d0..28976b1 100644 --- a/docs/interfaces/IncidentOwner.html +++ b/docs/interfaces/IncidentOwner.html @@ -1,3 +1,3 @@ -IncidentOwner | d4h-typescript

Interface IncidentOwner

interface IncidentOwner {
    id: number;
    resourceType: string;
}

Properties

id +IncidentOwner | d4h-typescript

Interface IncidentOwner

interface IncidentOwner {
    id: number;
    resourceType: string;
}

Properties

Properties

id: number
resourceType: string
+

Properties

id: number
resourceType: string
diff --git a/docs/interfaces/IncidentRoster.html b/docs/interfaces/IncidentRoster.html index 2f4878f..e24ab09 100644 --- a/docs/interfaces/IncidentRoster.html +++ b/docs/interfaces/IncidentRoster.html @@ -1,7 +1,7 @@ -IncidentRoster | d4h-typescript

Interface IncidentRoster

interface IncidentRoster {
    date: string;
    enddate: string;
    id: number;
    member: { id: number; name: string };
    role: { bundle: string; id: number; title: string };
    status: string;
}

Properties

date +IncidentRoster | d4h-typescript

Interface IncidentRoster

interface IncidentRoster {
    date: string;
    enddate: string;
    id: number;
    member: { id: number; name: string };
    role: { bundle: string; id: number; title: string };
    status: string;
}

Properties

date: string
enddate: string
id: number
member: { id: number; name: string }
role: { bundle: string; id: number; title: string }
status: string
+

Properties

date: string
enddate: string
id: number
member: { id: number; name: string }
role: { bundle: string; id: number; title: string }
status: string
diff --git a/docs/interfaces/IncidentTag.html b/docs/interfaces/IncidentTag.html index ae95809..7b4ef9a 100644 --- a/docs/interfaces/IncidentTag.html +++ b/docs/interfaces/IncidentTag.html @@ -1,3 +1,3 @@ -IncidentTag | d4h-typescript

Interface IncidentTag

interface IncidentTag {
    id: number;
    resourceType: string;
}

Properties

id +IncidentTag | d4h-typescript

Interface IncidentTag

interface IncidentTag {
    id: number;
    resourceType: string;
}

Properties

Properties

id: number
resourceType: string
+

Properties

id: number
resourceType: string
diff --git a/docs/interfaces/Location.html b/docs/interfaces/Location.html index d9d471c..2428a72 100644 --- a/docs/interfaces/Location.html +++ b/docs/interfaces/Location.html @@ -1,3 +1,3 @@ -Location | d4h-typescript

Interface Location

interface Location {
    coordinates: [number, number];
    type: string;
}

Properties

coordinates +Location | d4h-typescript

Interface Location

interface Location {
    coordinates: [number, number];
    type: string;
}

Properties

Properties

coordinates: [number, number]
type: string
+

Properties

coordinates: [number, number]
type: string
diff --git a/docs/interfaces/Member.html b/docs/interfaces/Member.html index 903f0fa..da79936 100644 --- a/docs/interfaces/Member.html +++ b/docs/interfaces/Member.html @@ -1,4 +1,4 @@ -Member | d4h-typescript

Interface Member

interface Member {
    alertActivityApproval: boolean;
    alertAllQualifications: boolean;
    alertGear: boolean;
    alertQualifications: boolean;
    chatAutosubscribe: boolean;
    chatDailyDigest: boolean;
    contactUpdateMail: boolean;
    costPerHour: null | number;
    costPerUse: null | number;
    countReportingEvent: number;
    countReportingExercise: number;
    countReportingHours: number;
    countReportingIncident: number;
    countRollingHours: number;
    countRollingHoursEvent: number;
    countRollingHoursExercise: number;
    countRollingHoursIncident: number;
    createdAt: string;
    credits: number;
    custom_fields?: CustomField[];
    customStatus: CustomMemberStatus;
    defaultDuty: string;
    defaultEquipmentLocation: EquipmentLocation;
    deprecatedAddress: null | string;
    email: EmailInfo;
    endsAt: null | string;
    entityType: EntityType;
    home: PhoneInfo;
    icalSecret: null | string;
    id: number;
    lastLogin: null | string;
    location: Location;
    locationBookmark: MemberLocationBookmark;
    mobile: PhoneInfo;
    name: string;
    notes: null | string;
    pager: PhoneInfo;
    percReportingEvent: number;
    percReportingExercise: number;
    percReportingIncident: number;
    percRollingEvent: number;
    percRollingExercise: number;
    percRollingIncident: number;
    permission: number;
    position: string;
    primaryEmergencyContact: PrimaryEmergencyContact;
    ref: string;
    retiredReason: RetiredReason;
    role: Role;
    secondaryEmergencyContact: SecondaryEmergencyContact;
    signedTandC: null | string;
    startsAt: null | string;
    status: string;
    teamAgreementSigned: null | string;
    updatedAt: string;
    weeklyDayOfWeek: number;
    weeklyDayOfWeekUtc: number;
    weeklyHourOfDay: number;
    weeklyHourOfDayUtc: number;
    weeklyMail: boolean;
    work: PhoneInfo;
}

Hierarchy

  • Entity
    • Member

Properties

alertActivityApproval +Member | d4h-typescript

Interface Member

interface Member {
    alertActivityApproval: boolean;
    alertAllQualifications: boolean;
    alertGear: boolean;
    alertQualifications: boolean;
    chatAutosubscribe: boolean;
    chatDailyDigest: boolean;
    contactUpdateMail: boolean;
    costPerHour: null | number;
    costPerUse: null | number;
    countReportingEvent: number;
    countReportingExercise: number;
    countReportingHours: number;
    countReportingIncident: number;
    countRollingHours: number;
    countRollingHoursEvent: number;
    countRollingHoursExercise: number;
    countRollingHoursIncident: number;
    createdAt: string;
    credits: number;
    custom_fields?: CustomField[];
    customStatus: CustomMemberStatus;
    defaultDuty: string;
    defaultEquipmentLocation: EquipmentLocation;
    deprecatedAddress: null | string;
    email: EmailInfo;
    endsAt: null | string;
    entityType: EntityType;
    home: PhoneInfo;
    icalSecret: null | string;
    id: number;
    lastLogin: null | string;
    location: Location;
    locationBookmark: MemberLocationBookmark;
    mobile: PhoneInfo;
    name: string;
    notes: null | string;
    pager: PhoneInfo;
    percReportingEvent: number;
    percReportingExercise: number;
    percReportingIncident: number;
    percRollingEvent: number;
    percRollingExercise: number;
    percRollingIncident: number;
    permission: number;
    position: string;
    primaryEmergencyContact: PrimaryEmergencyContact;
    ref: string;
    retiredReason: RetiredReason;
    role: Role;
    secondaryEmergencyContact: SecondaryEmergencyContact;
    signedTandC: null | string;
    startsAt: null | string;
    status: string;
    teamAgreementSigned: null | string;
    updatedAt: string;
    weeklyDayOfWeek: number;
    weeklyDayOfWeekUtc: number;
    weeklyHourOfDay: number;
    weeklyHourOfDayUtc: number;
    weeklyMail: boolean;
    work: PhoneInfo;
}

Hierarchy

  • Entity
    • Member

Properties

alertActivityApproval: boolean
alertAllQualifications: boolean
alertGear: boolean
alertQualifications: boolean
chatAutosubscribe: boolean
chatDailyDigest: boolean
contactUpdateMail: boolean
costPerHour: null | number
costPerUse: null | number
countReportingEvent: number
countReportingExercise: number
countReportingHours: number
countReportingIncident: number
countRollingHours: number
countRollingHoursEvent: number
countRollingHoursExercise: number
countRollingHoursIncident: number
createdAt: string
credits: number
custom_fields?: CustomField[]
customStatus: CustomMemberStatus
defaultDuty: string
defaultEquipmentLocation: EquipmentLocation
deprecatedAddress: null | string
email: EmailInfo
endsAt: null | string
entityType: EntityType
home: PhoneInfo
icalSecret: null | string
id: number
lastLogin: null | string
location: Location
locationBookmark: MemberLocationBookmark
mobile: PhoneInfo
name: string
notes: null | string
pager: PhoneInfo
percReportingEvent: number
percReportingExercise: number
percReportingIncident: number
percRollingEvent: number
percRollingExercise: number
percRollingIncident: number
permission: number
position: string
primaryEmergencyContact: PrimaryEmergencyContact
ref: string
retiredReason: RetiredReason
role: Role
secondaryEmergencyContact: SecondaryEmergencyContact
signedTandC: null | string
startsAt: null | string
status: string
teamAgreementSigned: null | string
updatedAt: string
weeklyDayOfWeek: number
weeklyDayOfWeekUtc: number
weeklyHourOfDay: number
weeklyHourOfDayUtc: number
weeklyMail: boolean
work: PhoneInfo
+

Properties

alertActivityApproval: boolean
alertAllQualifications: boolean
alertGear: boolean
alertQualifications: boolean
chatAutosubscribe: boolean
chatDailyDigest: boolean
contactUpdateMail: boolean
costPerHour: null | number
costPerUse: null | number
countReportingEvent: number
countReportingExercise: number
countReportingHours: number
countReportingIncident: number
countRollingHours: number
countRollingHoursEvent: number
countRollingHoursExercise: number
countRollingHoursIncident: number
createdAt: string
credits: number
custom_fields?: CustomField[]
customStatus: CustomMemberStatus
defaultDuty: string
defaultEquipmentLocation: EquipmentLocation
deprecatedAddress: null | string
email: EmailInfo
endsAt: null | string
entityType: EntityType
home: PhoneInfo
icalSecret: null | string
id: number
lastLogin: null | string
location: Location
locationBookmark: MemberLocationBookmark
mobile: PhoneInfo
name: string
notes: null | string
pager: PhoneInfo
percReportingEvent: number
percReportingExercise: number
percReportingIncident: number
percRollingEvent: number
percRollingExercise: number
percRollingIncident: number
permission: number
position: string
primaryEmergencyContact: PrimaryEmergencyContact
ref: string
retiredReason: RetiredReason
role: Role
secondaryEmergencyContact: SecondaryEmergencyContact
signedTandC: null | string
startsAt: null | string
status: string
teamAgreementSigned: null | string
updatedAt: string
weeklyDayOfWeek: number
weeklyDayOfWeekUtc: number
weeklyHourOfDay: number
weeklyHourOfDayUtc: number
weeklyMail: boolean
work: PhoneInfo
diff --git a/docs/interfaces/MemberAwards.html b/docs/interfaces/MemberAwards.html index 9a9d090..7185bdf 100644 --- a/docs/interfaces/MemberAwards.html +++ b/docs/interfaces/MemberAwards.html @@ -1,4 +1,4 @@ -MemberAwards | d4h-typescript

Interface MemberAwards

interface MemberAwards {
    createdAt: string;
    custom_fields?: CustomField[];
    endsAt: null | string;
    entityType: EntityType;
    id: number;
    member: Resource;
    owner: Resource;
    qualification: Resource;
    resourceType: string;
    startsAt: null | string;
    updatedAt: string;
}

Hierarchy

  • Entity
    • MemberAwards

Properties

createdAt +MemberAwards | d4h-typescript

Interface MemberAwards

interface MemberAwards {
    createdAt: string;
    custom_fields?: CustomField[];
    endsAt: null | string;
    entityType: EntityType;
    id: number;
    member: Resource;
    owner: Resource;
    qualification: Resource;
    resourceType: string;
    startsAt: null | string;
    updatedAt: string;
}

Hierarchy

  • Entity
    • MemberAwards

Properties

createdAt: string
custom_fields?: CustomField[]
endsAt: null | string
entityType: EntityType
id: number
member: Resource
owner: Resource
qualification: Resource
resourceType: string
startsAt: null | string
updatedAt: string
+

Properties

createdAt: string
custom_fields?: CustomField[]
endsAt: null | string
entityType: EntityType
id: number
member: Resource
owner: Resource
qualification: Resource
resourceType: string
startsAt: null | string
updatedAt: string
diff --git a/docs/interfaces/MemberLocationBookmark.html b/docs/interfaces/MemberLocationBookmark.html index 41ce1ac..a409118 100644 --- a/docs/interfaces/MemberLocationBookmark.html +++ b/docs/interfaces/MemberLocationBookmark.html @@ -1,3 +1,3 @@ -MemberLocationBookmark | d4h-typescript

Interface MemberLocationBookmark

interface MemberLocationBookmark {
    id: null | number;
    resourceType: string;
}

Properties

id +MemberLocationBookmark | d4h-typescript

Interface MemberLocationBookmark

interface MemberLocationBookmark {
    id: null | number;
    resourceType: string;
}

Properties

Properties

id: null | number
resourceType: string
+

Properties

id: null | number
resourceType: string
diff --git a/docs/interfaces/MemberStatus.html b/docs/interfaces/MemberStatus.html index 4946e1e..558a414 100644 --- a/docs/interfaces/MemberStatus.html +++ b/docs/interfaces/MemberStatus.html @@ -1,5 +1,5 @@ -MemberStatus | d4h-typescript

Interface MemberStatus

interface MemberStatus {
    id: number;
    label: null | MemberStatusLabel;
    type: string;
    value: string;
}

Properties

id +MemberStatus | d4h-typescript

Interface MemberStatus

interface MemberStatus {
    id: number;
    label: null | MemberStatusLabel;
    type: string;
    value: string;
}

Properties

Properties

id: number
label: null | MemberStatusLabel
type: string
value: string
+

Properties

id: number
label: null | MemberStatusLabel
type: string
value: string
diff --git a/docs/interfaces/MemberStatusLabel.html b/docs/interfaces/MemberStatusLabel.html index be09a93..446b7b8 100644 --- a/docs/interfaces/MemberStatusLabel.html +++ b/docs/interfaces/MemberStatusLabel.html @@ -1,3 +1,3 @@ -MemberStatusLabel | d4h-typescript

Interface MemberStatusLabel

interface MemberStatusLabel {
    id: number;
    value: string;
}

Properties

id +MemberStatusLabel | d4h-typescript

Interface MemberStatusLabel

interface MemberStatusLabel {
    id: number;
    value: string;
}

Properties

Properties

id: number
value: string
+

Properties

id: number
value: string
diff --git a/docs/interfaces/MemberUpdate.html b/docs/interfaces/MemberUpdate.html index a0b5325..5422fe0 100644 --- a/docs/interfaces/MemberUpdate.html +++ b/docs/interfaces/MemberUpdate.html @@ -1,4 +1,4 @@ -MemberUpdate | d4h-typescript

Interface MemberUpdate

interface MemberUpdate {
    address?: null | string;
    cost_per_hour?: number;
    cost_per_use?: number;
    date_join?: Date;
    date_leave?: Date;
    email?: null | string;
    gridref?: null | string;
    id_tag?: null | string;
    lat?: number;
    lng?: number;
    location_bookmark_id?: number;
    name?: null | string;
    notes?: null | string;
    pager?: null | string;
    pager_email?: null | string;
    phone_home?: null | string;
    phone_mobile?: null | string;
    phone_work?: null | string;
    position?: null | string;
    ref?: null | string;
    retired_reason_id?: number;
    role_id?: number;
    status_custom_id?: number;
    status_id?: number;
}

Properties

address? +MemberUpdate | d4h-typescript

Interface MemberUpdate

interface MemberUpdate {
    address?: null | string;
    cost_per_hour?: number;
    cost_per_use?: number;
    date_join?: Date;
    date_leave?: Date;
    email?: null | string;
    gridref?: null | string;
    id_tag?: null | string;
    lat?: number;
    lng?: number;
    location_bookmark_id?: number;
    name?: null | string;
    notes?: null | string;
    pager?: null | string;
    pager_email?: null | string;
    phone_home?: null | string;
    phone_mobile?: null | string;
    phone_work?: null | string;
    position?: null | string;
    ref?: null | string;
    retired_reason_id?: number;
    role_id?: number;
    status_custom_id?: number;
    status_id?: number;
}

Properties

address?: null | string
cost_per_hour?: number
cost_per_use?: number
date_join?: Date
date_leave?: Date
email?: null | string
gridref?: null | string
id_tag?: null | string
lat?: number
lng?: number
location_bookmark_id?: number
name?: null | string
notes?: null | string
pager?: null | string
pager_email?: null | string
phone_home?: null | string
phone_mobile?: null | string
phone_work?: null | string
position?: null | string
ref?: null | string
retired_reason_id?: number
role_id?: number
status_custom_id?: number
status_id?: number
+

Properties

address?: null | string
cost_per_hour?: number
cost_per_use?: number
date_join?: Date
date_leave?: Date
email?: null | string
gridref?: null | string
id_tag?: null | string
lat?: number
lng?: number
location_bookmark_id?: number
name?: null | string
notes?: null | string
pager?: null | string
pager_email?: null | string
phone_home?: null | string
phone_mobile?: null | string
phone_work?: null | string
position?: null | string
ref?: null | string
retired_reason_id?: number
role_id?: number
status_custom_id?: number
status_id?: number
diff --git a/docs/interfaces/PhoneInfo.html b/docs/interfaces/PhoneInfo.html index 28f275a..ca29557 100644 --- a/docs/interfaces/PhoneInfo.html +++ b/docs/interfaces/PhoneInfo.html @@ -1,3 +1,3 @@ -PhoneInfo | d4h-typescript

Interface PhoneInfo

interface PhoneInfo {
    phone: string;
    verified?: boolean;
}

Properties

phone +PhoneInfo | d4h-typescript

Interface PhoneInfo

interface PhoneInfo {
    phone: string;
    verified?: boolean;
}

Properties

Properties

phone: string
verified?: boolean
+

Properties

phone: string
verified?: boolean
diff --git a/docs/interfaces/PrimaryEmergencyContact.html b/docs/interfaces/PrimaryEmergencyContact.html index 3c716b2..03c8f5f 100644 --- a/docs/interfaces/PrimaryEmergencyContact.html +++ b/docs/interfaces/PrimaryEmergencyContact.html @@ -1,5 +1,5 @@ -PrimaryEmergencyContact | d4h-typescript

Interface PrimaryEmergencyContact

interface PrimaryEmergencyContact {
    name: string;
    primaryPhone: string;
    relation: string;
    secondaryPhone: string;
}

Properties

name +PrimaryEmergencyContact | d4h-typescript

Interface PrimaryEmergencyContact

interface PrimaryEmergencyContact {
    name: string;
    primaryPhone: string;
    relation: string;
    secondaryPhone: string;
}

Properties

name: string
primaryPhone: string
relation: string
secondaryPhone: string
+

Properties

name: string
primaryPhone: string
relation: string
secondaryPhone: string
diff --git a/docs/interfaces/Qualification.html b/docs/interfaces/Qualification.html index be3459e..ba8773e 100644 --- a/docs/interfaces/Qualification.html +++ b/docs/interfaces/Qualification.html @@ -1,4 +1,4 @@ -Qualification | d4h-typescript

Interface Qualification

interface Qualification {
    cost: null | number;
    createdAt: string;
    custom_fields?: CustomField[];
    deprecatedBundle: string;
    description: string;
    entityType: EntityType;
    expiredCost: null;
    expiresMonthsDefault: null | number;
    id: number;
    reminderDays: number;
    resourceType: string;
    title: string;
    updatedAt: string;
}

Hierarchy

  • Entity
    • Qualification

Properties

cost +Qualification | d4h-typescript

Interface Qualification

interface Qualification {
    cost: null | number;
    createdAt: string;
    custom_fields?: CustomField[];
    deprecatedBundle: string;
    description: string;
    entityType: EntityType;
    expiredCost: null;
    expiresMonthsDefault: null | number;
    id: number;
    reminderDays: number;
    resourceType: string;
    title: string;
    updatedAt: string;
}

Hierarchy

  • Entity
    • Qualification

Properties

cost: null | number
createdAt: string
custom_fields?: CustomField[]
deprecatedBundle: string
description: string
entityType: EntityType
expiredCost: null
expiresMonthsDefault: null | number
id: number
reminderDays: number
resourceType: string
title: string
updatedAt: string
+

Properties

cost: null | number
createdAt: string
custom_fields?: CustomField[]
deprecatedBundle: string
description: string
entityType: EntityType
expiredCost: null
expiresMonthsDefault: null | number
id: number
reminderDays: number
resourceType: string
title: string
updatedAt: string
diff --git a/docs/interfaces/Resource.html b/docs/interfaces/Resource.html index cc936c2..f653f7f 100644 --- a/docs/interfaces/Resource.html +++ b/docs/interfaces/Resource.html @@ -1,3 +1,3 @@ -Resource | d4h-typescript

Interface Resource

interface Resource {
    id: number;
    resourceType: string;
}

Properties

id +Resource | d4h-typescript

Interface Resource

interface Resource {
    id: number;
    resourceType: string;
}

Properties

Properties

id: number
resourceType: string
+

Properties

id: number
resourceType: string
diff --git a/docs/interfaces/RetiredReason.html b/docs/interfaces/RetiredReason.html index 2ee012e..31f12f8 100644 --- a/docs/interfaces/RetiredReason.html +++ b/docs/interfaces/RetiredReason.html @@ -1,3 +1,3 @@ -RetiredReason | d4h-typescript

Interface RetiredReason

interface RetiredReason {
    id: null | number;
    resourceType: string;
}

Properties

id +RetiredReason | d4h-typescript

Interface RetiredReason

interface RetiredReason {
    id: null | number;
    resourceType: string;
}

Properties

Properties

id: null | number
resourceType: string
+

Properties

id: null | number
resourceType: string
diff --git a/docs/interfaces/Role.html b/docs/interfaces/Role.html index 4d6e8ce..ea68613 100644 --- a/docs/interfaces/Role.html +++ b/docs/interfaces/Role.html @@ -1,3 +1,3 @@ -Role | d4h-typescript

Interface Role

interface Role {
    id: null | number;
    resourceType: string;
}

Properties

id +Role | d4h-typescript

Interface Role

interface Role {
    id: null | number;
    resourceType: string;
}

Properties

Properties

id: null | number
resourceType: string
+

Properties

id: null | number
resourceType: string
diff --git a/docs/interfaces/SecondaryEmergencyContact.html b/docs/interfaces/SecondaryEmergencyContact.html index f321ef5..3d32437 100644 --- a/docs/interfaces/SecondaryEmergencyContact.html +++ b/docs/interfaces/SecondaryEmergencyContact.html @@ -1,5 +1,5 @@ -SecondaryEmergencyContact | d4h-typescript

Interface SecondaryEmergencyContact

interface SecondaryEmergencyContact {
    name: string;
    primaryPhone: string;
    relation: string;
    secondaryPhone: string;
}

Properties

name +SecondaryEmergencyContact | d4h-typescript

Interface SecondaryEmergencyContact

interface SecondaryEmergencyContact {
    name: string;
    primaryPhone: string;
    relation: string;
    secondaryPhone: string;
}

Properties

name: string
primaryPhone: string
relation: string
secondaryPhone: string
+

Properties

name: string
primaryPhone: string
relation: string
secondaryPhone: string
diff --git a/docs/interfaces/WeatherInfo.html b/docs/interfaces/WeatherInfo.html index f103be3..439809b 100644 --- a/docs/interfaces/WeatherInfo.html +++ b/docs/interfaces/WeatherInfo.html @@ -1,4 +1,4 @@ -WeatherInfo | d4h-typescript

Interface WeatherInfo

interface WeatherInfo {
    symbol: null | string;
    symbolDate: null | string;
    temperature: null | number;
}

Properties

symbol +WeatherInfo | d4h-typescript

Interface WeatherInfo

interface WeatherInfo {
    symbol: null | string;
    symbolDate: null | string;
    temperature: null | number;
}

Properties

symbol: null | string
symbolDate: null | string
temperature: null | number
+

Properties

symbol: null | string
symbolDate: null | string
temperature: null | number
diff --git a/docs/interfaces/memberGroup.html b/docs/interfaces/memberGroup.html index 574dafc..a98b2e1 100644 --- a/docs/interfaces/memberGroup.html +++ b/docs/interfaces/memberGroup.html @@ -1,4 +1,4 @@ -memberGroup | d4h-typescript

Interface memberGroup

interface memberGroup {
    createdAt: string;
    custom_fields?: CustomField[];
    deprecatedBundle: string;
    entityType: EntityType;
    id: number;
    membershipResourceType: string;
    resourceType: string;
    title: string;
    updatedAt: string;
}

Hierarchy

  • Entity
    • memberGroup

Properties

createdAt +memberGroup | d4h-typescript

Interface memberGroup

interface memberGroup {
    createdAt: string;
    custom_fields?: CustomField[];
    deprecatedBundle: string;
    entityType: EntityType;
    id: number;
    membershipResourceType: string;
    resourceType: string;
    title: string;
    updatedAt: string;
}

Hierarchy

  • Entity
    • memberGroup

Properties

createdAt: string
custom_fields?: CustomField[]
deprecatedBundle: string
entityType: EntityType
id: number
membershipResourceType: string
resourceType: string
title: string
updatedAt: string
+

Properties

createdAt: string
custom_fields?: CustomField[]
deprecatedBundle: string
entityType: EntityType
id: number
membershipResourceType: string
resourceType: string
title: string
updatedAt: string
diff --git a/docs/variables/D4H_BASE_URL.html b/docs/variables/D4H_BASE_URL.html index 3219b71..5c7e437 100644 --- a/docs/variables/D4H_BASE_URL.html +++ b/docs/variables/D4H_BASE_URL.html @@ -1 +1 @@ -D4H_BASE_URL | d4h-typescript

Variable D4H_BASE_URLConst

D4H_BASE_URL: "https://api.team-manager.us.d4h.com/v3" = 'https://api.team-manager.us.d4h.com/v3'
+D4H_BASE_URL | d4h-typescript

Variable D4H_BASE_URLConst

D4H_BASE_URL: "https://api.team-manager.us.d4h.com/v3" = 'https://api.team-manager.us.d4h.com/v3'
diff --git a/package.json b/package.json index 5946d8f..9ffba8a 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,7 @@ { + "scripts": { + "docs": "npx typedoc" + }, "devDependencies": { "@types/node": "^22.10.2", "d4h-typescript": "file:lib", @@ -6,4 +9,4 @@ "typedoc": "^0.27.5", "typescript": "^5.7.2" } -} +} \ No newline at end of file diff --git a/test/getMember.ts b/test/getMember.ts new file mode 100644 index 0000000..e498fd2 --- /dev/null +++ b/test/getMember.ts @@ -0,0 +1,33 @@ +import D4H from '../lib/src/d4h' +import * as dotenv from 'dotenv'; + +dotenv.config() +const apiToken = process.env['apiToken'] + +if (!apiToken) { + throw new Error('apiToken is not defined in the environment variables.'); +} + +// console.log(`Your API Token is: ${apiToken}`); + +const d4hInstance = new D4H(apiToken); +const getmember = async (team: string, contextId: number, id: number) => { + + //const memberdata = await d4hInstance.getMember(team, contextId, id) + console.log(id) + const memberdata = await d4hInstance.getMembers(team, contextId) + + return memberdata +} + +const logMember = async () => { + const member = await getmember('team', 1614, 85292); + // console.log(`${JSON.stringify(member, null, 2)}`); + + // const memberName = member.name + // const memberDEM = member.ref + + console.log(member) +} + +logMember(); \ No newline at end of file diff --git a/test/getMembers.ts b/test/getMembers.ts new file mode 100644 index 0000000..e7f2b7e --- /dev/null +++ b/test/getMembers.ts @@ -0,0 +1,28 @@ +import D4H from '../lib/src/d4h' +import * as dotenv from 'dotenv'; + +dotenv.config() +const apiToken = process.env['apiToken'] + +if (!apiToken) { + throw new Error('apiToken is not defined in the environment variables.'); +} + +// console.log(`Your API Token is: ${apiToken}`); + +const d4hInstance = new D4H(apiToken); +const getmembers = async (team: string, contextId: number) => { + + const memberdata = await d4hInstance.getAnimals(team, contextId) + + return memberdata +} + +const logMember = async () => { + const members = await getmembers('team', 1614); + + console.log(`${JSON.stringify(members, null, 2)}`); + +} + +logMember(); \ No newline at end of file