Hierarchy

  • Client

Constructors

Properties

options: ClientOptions

Methods

  • Continue all tasks

    Returns Promise<void>

  • Continue a task

    Parameters

    • id: string

      Task id

    Returns Promise<void>

  • Create a new download task

    Parameters

    Returns Promise<string>

  • Delete a task

    Parameters

    • id: string

      Task id

    • force: boolean = false

      Delete files

    Returns Promise<void>

  • Delete tasks

    Parameters

    • statuses: TaskStatus[] = []

      Filter by task status

    • force: boolean = false

      Delete files

    Returns Promise<void>

  • Type Parameters

    • T

    Parameters

    • method: string
    • path: string
    • __namedParameters: {
          data?: object;
          query?: object;
      } = {}
      • Optional data?: object
      • Optional query?: object

    Returns Promise<T>

  • Get task list

    Parameters

    • statuses: TaskStatus[] = []

      Filter by task status

    Returns Promise<Task[]>

  • Pause all tasks

    Returns Promise<void>

  • Pause a task

    Parameters

    • id: string

      Task id

    Returns Promise<void>

  • Resolve the download request

    Parameters

    • request: Request

      The request to create a new download task

    Returns Promise<ResolveResult>

Generated using TypeDoc