Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QueryService<T>

A base class for making Query calls via Rest

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

Properties

Protected _endpoint

_endpoint: string

Protected _lastResponse

_lastResponse: BullhornListResponse<T>

Protected _page

_page: number = 0

entity

entity: string

http

http: AxiosInstance

meta

records

records: any[] = []

Accessors

endpoint

  • get endpoint(): string
  • set endpoint(value: string): void

snapshot

total

  • get total(): Promise<number>

Methods

count

  • count(value: number): this

fields

  • fields(...args: any[]): this

get

nextpage

page

  • page(value: number): this

params

  • params(object: any): this

query

  • query(value: any): this

run

sort

  • sort(...args: any[]): this

then

  • then(done: any, fail?: any): Promise<any>

where

  • where(value: any): this

Object literals

parameters

parameters: object

count

count: number = 10

fields

fields: string[] = ['id']

orderBy

orderBy: string[] = ['-dateAdded']

start

start: number = 0

Generated using TypeDoc