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

    Class FolderService

    Service for workout folders and training plans

    Index
    • Apply plan changes to the calendar

      Parameters

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

      Returns Promise<Record<string, unknown>>

    • Delete a folder/plan

      Parameters

      • folderId: number
      • OptionalathleteId: string

      Returns Promise<void>

    • Import a workout file (.zwo, .mrc, .erg, .fit) into a folder

      Parameters

      • folderId: number
      • file: Buffer<ArrayBufferLike> | Blob | Uint8Array<ArrayBufferLike>
      • fileName: string
      • OptionalathleteId: string

      Returns Promise<Workout>

    • Update a folder/plan

      Parameters

      • folderId: number
      • data: Partial<Folder>
      • OptionalathleteId: string

      Returns Promise<Folder>

    • Update the plan's workouts dated between oldest and newest. The API currently changes only hide_from_athlete, so the body is typed to that one field; widen it when the route accepts more.

      range.oldest and range.newest are the plan day numbers the spec declares (int32), not calendar dates: a plan's workouts are placed by day relative to the plan start.

      Parameters

      • folderId: number
      • data: { hide_from_athlete: boolean }
      • range: { newest: number; oldest: number }
      • OptionalathleteId: string

      Returns Promise<Workout[]>