PostBuilder
Type parameters
▪ Raw: RawResponse‹any, any›
Hierarchy
RequestBuilder‹JsonResponse‹Raw››
↳ PostBuilder
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
+ new PostBuilder(httpClient
: HttpClient, uri
: string): PostBuilder
Overrides RequestBuilder.constructor
Parameters:
Returns: PostBuilder
Properties
Optional
attributes
Optional
attributes• attributes? : undefined | object
Optional
id
Optional
id• id? : undefined | string
Protected
limit
Protected
limit• limit: number = DEFAULT_RESOURCE_LIMIT
Inherited from RequestBuilder.limit
Protected
offset
Protected
offset• offset: undefined | number
Inherited from RequestBuilder.offset
Protected
options
Protected
options• options: Options
Inherited from RequestBuilder.options
Protected
page
Protected
page• page: number = 1
Inherited from RequestBuilder.page
Protected
queryParams
Protected
queryParams• queryParams: Record‹string, string›
Inherited from RequestBuilder.queryParams
Optional
relationships
Optional
relationships• relationships? : Record‹string, object›
Protected
resolveIncludedRelationships
Protected
resolveIncludedRelationships• resolveIncludedRelationships: boolean = false
Inherited from RequestBuilder.resolveIncludedRelationships
Protected
sortParams
Protected
sortParams• sortParams: string[] = []
Inherited from RequestBuilder.sortParams
Optional
type
Optional
type• type? : undefined | string
uri
• uri: string
Inherited from RequestBuilder.uri
Accessors
parameters
• get parameters(): Record‹string, string›
Inherited from RequestBuilder.parameters
Returns: Record‹string, string›
Methods
filter
▸ filter(key
: string | string[] | undefined, value
: string | number | boolean | undefined, operator?
: FilterOperator): this
Inherited from RequestBuilder.filter
Parameters:
Returns: this
ofType
▸ ofType(type
: string): this
Parameters:
Returns: this
pageLimit
▸ pageLimit(limit
: number): this
Inherited from RequestBuilder.pageLimit
Parameters:
Returns: this
pageNumber
▸ pageNumber(page
: number | string | undefined): this
Inherited from RequestBuilder.pageNumber
Parameters:
Returns: this
pageOffset
▸ pageOffset(offset
: number): this
Inherited from RequestBuilder.pageOffset
Parameters:
Returns: this
parameter
▸ parameter(key
: string, value
: string | number | boolean | undefined): this
Inherited from RequestBuilder.parameter
Parameters:
Returns: this
Protected
parseResponse
Protected
parseResponse▸ parseResponse<Raw>(response
: HttpResponse): Promise‹JsonResponse‹Raw››
Inherited from RequestBuilder.parseResponse
Type parameters:
▪ Raw: RawResponse‹any, any›
Parameters:
Returns: Promise‹JsonResponse‹Raw››
resolveIncluded
▸ resolveIncluded(resolveIncluded?
: undefined | false | true): this
Inherited from RequestBuilder.resolveIncluded
Parameters:
Returns: this
send
▸ send(options
: HttpOptions): Promise‹JsonResponse‹Raw››
Overrides RequestBuilder.send
Parameters:
Returns: Promise‹JsonResponse‹Raw››
sort
▸ sort(key
: string | undefined, order
: SortOrder): this
Inherited from RequestBuilder.sort
Parameters:
Returns: this
withAttributes
▸ withAttributes(attributes
: object): this
Parameters:
Returns: this
withId
▸ withId(id
: string): this
Parameters:
Returns: this
withRelationship
▸ withRelationship(rel?
: undefined | object): this
Parameters:
Returns: this
Last updated