@0x3639/intervals-icu
    Preparing search index...

    Class EventService

    Service for calendar event operations (workouts, notes, races, etc.)

    Index
    • Download a planned workout from the calendar in zwo, mrc, erg or fit format

      Parameters

      Returns Promise<Buffer<ArrayBufferLike>>

    • Calendar workouts in a date range as a zip of files in the requested format. The API's ext query value has no leading dot (spec: "zwo, mrc, erg or fit"), unlike the {ext} path suffix routes, so the dot in WorkoutFormat is stripped here.

      Parameters

      Returns Promise<Buffer<ArrayBufferLike>>

    • Get a specific event by ID

      Parameters

      • eventId: number
      • OptionalathleteId: string

      Returns Promise<Event>

    • Every tag that has been applied to events on the athlete's calendar

      Parameters

      • OptionalathleteId: string

      Returns Promise<string[]>

    • Events that influence the fitness (CTL/ATL) calculation, in ascending date order

      Parameters

      • OptionalathleteId: string

      Returns Promise<Event[]>

    • Mark an event as done

      Parameters

      • eventId: number
      • OptionalathleteId: string

      Returns Promise<Event>

    • Update events in a date range (move, shift, etc.)

      Parameters

      • data: Record<string, unknown>
      • OptionalathleteId: string

      Returns Promise<Event[]>