Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TimeOffs

Index

Methods

  • Approve a leave request by id

    Parameters

    • id: number

      Identifier of the time off request

    • options: LeaveRequest = {}

      Additional properties to approve the time off request

    Returns Promise<any>

    • Returns null if successful
  • cancel(id: number): Promise<any>
  • Cancels a leave request by id

    Parameters

    • id: number

      Identifier of the time off request

    Returns Promise<any>

    • Returns null if successful
  • get(id: number): Promise<any>
  • Fetches a leave request by id

    Parameters

    • id: number

      Identifier of the time off request

    Returns Promise<any>

    • A leave request object
  • Fetches the list of time off requests of employees in the account

    Parameters

    Returns Promise<any>

    • Response with time off requests list in the response body
  • Reject a leave request by id

    Parameters

    • id: number

      Identifier of the time off request

    • options: LeaveRequestReject = {}

      Additional properties to reject the time off request

    Returns Promise<any>

    • Returns null if successful
  • type(id: number): Promise<any>
  • Fetches the time off request type by ID

    Parameters

    • id: number

      Identifier of the time off type

    Returns Promise<any>

    • The time off type
  • types(): Promise<any>
  • Fetches the list of time off types in the account

    Returns Promise<any>

    • Array of time off types

Generated using TypeDoc