RequestBuilder
Type parameters
▪ ResponseType
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
Protected
constructor
Protected
constructor+ new RequestBuilder(uri
: string, options
: Options): RequestBuilder
Parameters:
Returns: RequestBuilder
Properties
Protected
limit
Protected
limit• limit: number = DEFAULT_RESOURCE_LIMIT
Protected
offset
Protected
offset• offset: undefined | number
Protected
options
Protected
options• options: Options
Protected
page
Protected
page• page: number = 1
Protected
queryParams
Protected
queryParams• queryParams: Record‹string, string›
Protected
resolveIncludedRelationships
Protected
resolveIncludedRelationships• resolveIncludedRelationships: boolean = false
Protected
sortParams
Protected
sortParams• sortParams: string[] = []
uri
• uri: string
Accessors
parameters
• get parameters(): Record‹string, string›
Returns: Record‹string, string›
Methods
filter
▸ filter(key
: string | string[] | undefined, value
: string | number | boolean | undefined, operator?
: FilterOperator): this
Parameters:
Returns: this
pageLimit
▸ pageLimit(limit
: number): this
Parameters:
Returns: this
pageNumber
▸ pageNumber(page
: number | string | undefined): this
Parameters:
Returns: this
pageOffset
▸ pageOffset(offset
: number): this
Parameters:
Returns: this
parameter
▸ parameter(key
: string, value
: string | number | boolean | undefined): this
Parameters:
Returns: this
Protected
parseResponse
Protected
parseResponse▸ parseResponse<Raw>(response
: HttpResponse): Promise‹JsonResponse‹Raw››
Type parameters:
▪ Raw: RawResponse‹any, any›
Parameters:
Returns: Promise‹JsonResponse‹Raw››
resolveIncluded
▸ resolveIncluded(resolveIncluded?
: undefined | false | true): this
Parameters:
Returns: this
Abstract
send
Abstract
send▸ send(options?
: HttpOptions): Promise‹ResponseType›
Parameters:
Returns: Promise‹ResponseType›
sort
▸ sort(key
: string | undefined, order
: SortOrder): this
Parameters:
Returns: this
Last updated