Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new MainApi(token?: undefined | string): MainApi

Properties

Optional bearerToken

bearerToken: undefined | string

Protected Readonly instance

instance: AxiosInstance

Methods

Protected _handleError

  • _handleError(error: any): undefined | Promise<never>

createReservation

  • createReservation(from: string, to: string, line_id: number): Promise<any>

deleteReservation

  • deleteReservation(id: string): Promise<void>
  • Parameters

    • id: string

    Returns Promise<void>

fetchUserReservations

getDataStateOffice

getLines

  • Parameters

    • slug: string

    Returns Promise<Array<LineDTO>>

getOffice

getOfficeHours

getOffices

getOfficesByCategory

getReservedTimeBlocks

setToken

  • setToken(token: string): void
  • Parameters

    • token: string

    Returns void

Generated using TypeDoc