Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
▪ D: AnyData
▪ M: object
RawResponse
• data: D
Defined in jsonApi.interface.ts:120
Optional
included• included? : IncludedRelationships
Defined in jsonApi.interface.ts:122
Optional
meta• meta? : M
Defined in jsonApi.interface.ts:121
▪ Raw: RawListResponse‹any, any›
▪ I: IncludedGroups
JsonListResponse
+ new JsonListResponse(raw
: Raw, limit
: number, offset
: number | undefined, rawIncludedGroups
: I, response
: HttpResponse‹Raw›): JsonListResponse
Defined in jsonApi.getList.ts:8
Parameters:
Returns: JsonListResponse
• limit: number
Defined in jsonApi.getList.ts:12
• offset: number | undefined
Defined in jsonApi.getList.ts:13
• raw: Raw
Defined in jsonApi.getList.ts:11
• response: HttpResponse‹Raw›
Defined in jsonApi.getList.ts:15
• get elements(): MergedData‹Raw["data"]›
Defined in jsonApi.getList.ts:19
Returns: MergedData‹Raw["data"]›
• get included(): object
Defined in jsonApi.getList.ts:27
Returns: object
• get meta(): Raw["meta"]
Defined in jsonApi.getList.ts:23
Returns: Raw["meta"]
▪ Raw: ‹any, any›
▪ I:
‹‹Raw, I››
↳ GetListBuilder
Parameters:
Protected
limit• limit: number = DEFAULT_RESOURCE_LIMIT
Protected
offset• offset: undefined | number
Protected
optionsProtected
page• page: number = 1
Protected
queryParams• queryParams: Record‹string, string›
Protected
resolveIncludedRelationships• resolveIncludedRelationships: boolean = false
Protected
sortParams• sortParams: string[] = []
• uri: string
• get parameters(): Record‹string, string›
Returns: Record‹string, string›
Parameters:
Returns: this
Parameters:
Returns: this
Type parameters:
Parameters:
▸ pageLimit(limit
: number): this
Parameters:
Returns: this
▸ pageNumber(page
: number | string | undefined): this
Parameters:
Returns: this
▸ pageOffset(offset
: number): this
Parameters:
Returns: this
▸ parameter(key
: string, value
: string | number | boolean | undefined): this
Parameters:
Returns: this
Protected
parseResponseType parameters:
Parameters:
▸ resolveIncluded(resolveIncluded?
: undefined | false | true): this
Parameters:
Returns: this
Parameters:
Parameters:
Returns: this
+ new GetListBuilder(httpClient
: HttpClient, uri
: string):
Overrides .
Defined in
Returns:
Inherited from .
Defined in
Inherited from .
Defined in
• options:
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
▸ addToResponse(response
: ‹Raw, I› | undefined): this
Defined in
▸ filter(key
: string | string[] | undefined, value
: string | number | boolean | undefined, operator?
: ): this
Inherited from .
Defined in
▸ groupIncluded<Groups>(groups
: Groups): ‹Raw, ‹Groups››
Defined in
▪ Groups:
Returns: ‹Raw, ‹Groups››
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
▸ parseResponse<Raw>(response
: HttpResponse): Promise‹‹Raw››
Inherited from .
Defined in
▪ Raw: ‹any, any›
Returns: Promise‹‹Raw››
Overrides .
Defined in
▸ send(options?
: HttpOptions): Promise‹‹Raw, I››
Overrides .
Defined in
Returns: Promise‹‹Raw, I››
▸ sort(key
: string | undefined, order
: ): this
Inherited from .
Defined in
+ new JsonResponse(raw
: Raw, response
: HttpResponse‹Raw›):
Defined in
Returns:
Defined in
Defined in
• get element(): ‹Raw["data"]›
Defined in
Returns: ‹Raw["data"]›
Defined in
Name
Type
raw
Raw
limit
number
offset
number | undefined
rawIncludedGroups
I
response
HttpResponse‹Raw›
Name | Type |
| HttpClient |
| string |
Name | Type |
| Groups |
Name | Type |
| number |
Name | Type |
| number | string | undefined |
Name | Type |
| number |
Name | Type |
| string |
| string | number | boolean | undefined |
Name | Type |
| HttpResponse |
Name | Type |
| undefined | false | true |
Name | Type |
| HttpOptions |
Name | Type |
| Raw |
| HttpResponse‹Raw› |
Name | Type |
|
Name | Type |
| string | string[] | undefined |
| string | number | boolean | undefined |
|
Name | Type |
| string | undefined |
|
▪ Raw: RawResponse‹any, any›
RequestBuilder‹JsonResponse‹Raw››
↳ PostBuilder
+ new PostBuilder(httpClient
: HttpClient, uri
: string): PostBuilder
Overrides RequestBuilder.constructor
Defined in jsonApi.post.ts:10
Parameters:
Returns: PostBuilder
Optional
attributes• attributes? : undefined | object
Defined in jsonApi.post.ts:9
Optional
id• id? : undefined | string
Defined in jsonApi.post.ts:8
Protected
limit• limit: number = DEFAULT_RESOURCE_LIMIT
Inherited from RequestBuilder.limit
Defined in jsonApi.builder.ts:19
Protected
offset• offset: undefined | number
Inherited from RequestBuilder.offset
Defined in jsonApi.builder.ts:20
Protected
options• options: Options
Inherited from RequestBuilder.options
Defined in jsonApi.builder.ts:23
Protected
page• page: number = 1
Inherited from RequestBuilder.page
Defined in jsonApi.builder.ts:21
Protected
queryParams• queryParams: Record‹string, string›
Inherited from RequestBuilder.queryParams
Defined in jsonApi.builder.ts:17
Optional
relationships• relationships? : Record‹string, object›
Defined in jsonApi.post.ts:10
Protected
resolveIncludedRelationships• resolveIncludedRelationships: boolean = false
Inherited from RequestBuilder.resolveIncludedRelationships
Defined in jsonApi.builder.ts:16
Protected
sortParams• sortParams: string[] = []
Inherited from RequestBuilder.sortParams
Defined in jsonApi.builder.ts:18
Optional
type• type? : undefined | string
Defined in jsonApi.post.ts:7
• uri: string
Inherited from RequestBuilder.uri
Defined in jsonApi.builder.ts:15
• get parameters(): Record‹string, string›
Inherited from RequestBuilder.parameters
Defined in jsonApi.builder.ts:50
Returns: Record‹string, string›
▸ filter(key
: string | string[] | undefined, value
: string | number | boolean | undefined, operator?
: FilterOperator): this
Inherited from RequestBuilder.filter
Defined in jsonApi.builder.ts:84
Parameters:
Returns: this
▸ ofType(type
: string): this
Defined in jsonApi.post.ts:16
Parameters:
Returns: this
▸ pageLimit(limit
: number): this
Inherited from RequestBuilder.pageLimit
Defined in jsonApi.builder.ts:102
Parameters:
Returns: this
▸ pageNumber(page
: number | string | undefined): this
Inherited from RequestBuilder.pageNumber
Defined in jsonApi.builder.ts:112
Parameters:
Returns: this
▸ pageOffset(offset
: number): this
Inherited from RequestBuilder.pageOffset
Defined in jsonApi.builder.ts:107
Parameters:
Returns: this
▸ parameter(key
: string, value
: string | number | boolean | undefined): this
Inherited from RequestBuilder.parameter
Defined in jsonApi.builder.ts:74
Parameters:
Returns: this
Protected
parseResponse▸ parseResponse<Raw>(response
: HttpResponse): Promise‹JsonResponse‹Raw››
Inherited from RequestBuilder.parseResponse
Defined in jsonApi.builder.ts:117
Type parameters:
▪ Raw: RawResponse‹any, any›
Parameters:
Returns: Promise‹JsonResponse‹Raw››
▸ resolveIncluded(resolveIncluded?
: undefined | false | true): this
Inherited from RequestBuilder.resolveIncluded
Defined in jsonApi.builder.ts:69
Parameters:
Returns: this
▸ send(options
: HttpOptions): Promise‹JsonResponse‹Raw››
Overrides RequestBuilder.send
Defined in jsonApi.post.ts:43
Parameters:
Returns: Promise‹JsonResponse‹Raw››
▸ sort(key
: string | undefined, order
: SortOrder): this
Inherited from RequestBuilder.sort
Defined in jsonApi.builder.ts:95
Parameters:
Returns: this
▸ withAttributes(attributes
: object): this
Defined in jsonApi.post.ts:26
Parameters:
Returns: this
▸ withId(id
: string): this
Defined in jsonApi.post.ts:21
Parameters:
Returns: this
▸ withRelationship(rel?
: undefined | object): this
Defined in jsonApi.post.ts:31
Parameters:
Returns: this
JsonApiClient
+ new JsonApiClient(httpClient
: HttpClient): JsonApiClient
Defined in jsonApi.client.ts:9
Parameters:
Returns: JsonApiClient
• httpClient: HttpClient
Defined in jsonApi.client.ts:10
▸ get<D, M>(uri
: string): GetBuilder‹RawResponse‹D, M››
Defined in jsonApi.client.ts:13
Type parameters:
▪ D: AnyData
▪ M: object
Parameters:
Returns: GetBuilder‹RawResponse‹D, M››
▸ getList<D, M>(uri
: string): GetListBuilder‹RawListResponse‹D, M›, object›
Defined in jsonApi.client.ts:17
Type parameters:
▪ D: AnyData
▪ M: ListMetaData
Parameters:
Returns: GetListBuilder‹RawListResponse‹D, M›, object›
▸ patch<D, M>(uri
: string): UpdateBuilder‹RawResponse‹D, M››
Defined in jsonApi.client.ts:33
Type parameters:
▪ D: AnyData
▪ M: object
Parameters:
Returns: UpdateBuilder‹RawResponse‹D, M››
▸ post<D, M>(uri
: string): PostBuilder‹RawResponse‹D, M››
Defined in jsonApi.client.ts:21
Type parameters:
▪ D: AnyData
▪ M: object
Parameters:
Returns: PostBuilder‹RawResponse‹D, M››
▸ put<D, M>(uri
: string): UpdateBuilder‹RawResponse‹D, M››
Defined in jsonApi.client.ts:29
Type parameters:
▪ D: AnyData
▪ M: object
Parameters:
Returns: UpdateBuilder‹RawResponse‹D, M››
▸ remove<D, M>(uri
: string): RemoveBuilder‹RawResponse‹D, M››
Defined in jsonApi.client.ts:25
Type parameters:
▪ D: AnyData
▪ M: object
Parameters:
Returns: RemoveBuilder‹RawResponse‹D, M››
▪ Raw: ‹any, any›
‹‹Raw››
↳ GetBuilder
Parameters:
Protected
limit• limit: number = DEFAULT_RESOURCE_LIMIT
Protected
offset• offset: undefined | number
Protected
optionsProtected
page• page: number = 1
Protected
queryParams• queryParams: Record‹string, string›
Protected
resolveIncludedRelationships• resolveIncludedRelationships: boolean = false
Protected
sortParams• sortParams: string[] = []
• uri: string
• get parameters(): Record‹string, string›
Returns: Record‹string, string›
Parameters:
Returns: this
▸ pageLimit(limit
: number): this
Parameters:
Returns: this
▸ pageNumber(page
: number | string | undefined): this
Parameters:
Returns: this
▸ pageOffset(offset
: number): this
Parameters:
Returns: this
▸ parameter(key
: string, value
: string | number | boolean | undefined): this
Parameters:
Returns: this
Protected
parseResponseType parameters:
Parameters:
▸ resolveIncluded(resolveIncluded?
: undefined | false | true): this
Parameters:
Returns: this
Parameters:
Parameters:
Returns: this
Ƭ AttributesOf: D extends object ? D["attributes"] : EmptyRecord
Ƭ EmptyRecord: object
[ key: string]: never
Ƭ IncludedGroups: object
Ƭ IncludedRelationships: D[]
Ƭ MergedData:
This sophisticated type allows to correctly infer nicely formatted data from JSON API format. id
, type
, attributes
and relationships
suddenly become a single, combined object with easy access to it. Same is applied to arrays.
Ƭ MergedIncludedGroups: object
Ƭ RawRelationship: object
data: T
links? : undefined | object
related? : undefined | string
Ƭ RelationshipData: object
id: string
type: Type
Ƭ RelationshipsOf: D extends object ? D["relationships"] : EmptyRecord
Const
DEFAULT_RESOURCE_LIMIT• DEFAULT_RESOURCE_LIMIT: 10 = 10
Const
findIncludedRelationshipParameters:
Const
includedGroupType parameters:
Parameters:
Const
isDataType parameters:
Parameters:
Returns: data is D
Const
mergeElementDataType parameters:
Parameters:
Type parameters:
Parameters:
Returns: D
Parameters:
Parameters:
Const
Headers• Accept: ContentType = ContentType.VND_JSON
• Content-Type: ContentType = ContentType.VND_JSON
▪ ResponseType
RequestBuilder
↳
↳
↳
↳
↳
Protected
constructorParameters:
Protected
limit• limit: number = DEFAULT_RESOURCE_LIMIT
Protected
offset• offset: undefined | number
Protected
optionsProtected
page• page: number = 1
Protected
queryParams• queryParams: Record‹string, string›
Protected
resolveIncludedRelationships• resolveIncludedRelationships: boolean = false
Protected
sortParams• sortParams: string[] = []
• uri: string
• get parameters(): Record‹string, string›
Returns: Record‹string, string›
Parameters:
Returns: this
▸ pageLimit(limit
: number): this
Parameters:
Returns: this
▸ pageNumber(page
: number | string | undefined): this
Parameters:
Returns: this
▸ pageOffset(offset
: number): this
Parameters:
Returns: this
▸ parameter(key
: string, value
: string | number | boolean | undefined): this
Parameters:
Returns: this
Protected
parseResponseType parameters:
Parameters:
▸ resolveIncluded(resolveIncluded?
: undefined | false | true): this
Parameters:
Returns: this
Abstract
send▸ send(options?
: HttpOptions): Promise‹ResponseType›
Parameters:
Returns: Promise‹ResponseType›
Parameters:
Returns: this
▪ Raw: ‹any, any›
‹‹Raw››
↳ RemoveBuilder
Parameters:
Protected
limit• limit: number = DEFAULT_RESOURCE_LIMIT
Protected
offset• offset: undefined | number
Protected
optionsProtected
page• page: number = 1
Protected
queryParams• queryParams: Record‹string, string›
Protected
resolveIncludedRelationships• resolveIncludedRelationships: boolean = false
Protected
sortParams• sortParams: string[] = []
• uri: string
• get parameters(): Record‹string, string›
Returns: Record‹string, string›
Parameters:
Returns: this
▸ pageLimit(limit
: number): this
Parameters:
Returns: this
▸ pageNumber(page
: number | string | undefined): this
Parameters:
Returns: this
▸ pageOffset(offset
: number): this
Parameters:
Returns: this
▸ parameter(key
: string, value
: string | number | boolean | undefined): this
Parameters:
Returns: this
Protected
parseResponseType parameters:
Parameters:
▸ resolveIncluded(resolveIncluded?
: undefined | false | true): this
Parameters:
Returns: this
Parameters:
Parameters:
Returns: this
deprecated
It is not part of JSON API and is not supported in when array of keys is passed
• EQUALS: = "EQ"
Defined in
• GREATER: = "GT"
• GREATER_OR_EQUAL: = "GE"
• LIKE: = "LIKE"
• LOWER: = "LT"
• LOWER_OR_EQUAL: = "LE"
• NOT_EQUALS: = "NEQ"
‹Raw, I› | undefined
+ new GetBuilder(httpClient
: HttpClient, uri
: string):
Overrides .
Defined in
Returns:
Inherited from .
Defined in
Inherited from .
Defined in
• options:
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
▸ filter(key
: string | string[] | undefined, value
: string | number | boolean | undefined, operator?
: ): this
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
▸ parseResponse<Raw>(response
: HttpResponse): Promise‹‹Raw››
Inherited from .
Defined in
▪ Raw: ‹any, any›
Returns: Promise‹‹Raw››
Inherited from .
Defined in
▸ send(options?
: HttpOptions): Promise‹‹Raw››
Overrides .
Defined in
Returns: Promise‹‹Raw››
▸ sort(key
: string | undefined, order
: ): this
Inherited from .
Defined in
Ƭ AnyData: ‹any, any›
Defined in
Defined in
Defined in
Defined in
Ƭ IncludedGroupsSchema: Record‹string, ›
Defined in
Defined in
Defined in
Defined in
Ƭ OptionalRels: | undefined
Defined in
Defined in
Ƭ Relationship: ‹›
Defined in
Ƭ RelationshipArray: ‹[]›
Defined in
Defined in
Ƭ RelationshipType: ‹Type› | ‹Type›[]
Defined in
Ƭ Relationships: Record‹string, ‹› | undefined›
Defined in
Defined in
Ƭ ResolvedRelationship: ‹D›
Defined in
Ƭ ResolvedRelationshipArray: ‹D[]›
Defined in
Ƭ ResolvedRelationships: Record‹string, | | undefined›
Defined in
Ƭ UnresolvedRelationships: Record‹string, | ›
Defined in
Defined in
▸ findIncludedRelationship(relationship
: , included
: ): | undefined
Defined in
Returns: | undefined
▸ includedGroup<D>(type
: string): ‹D›
Defined in
▪ D:
Returns: ‹D›
▸ isData<D>(data
: | D): data is D
Defined in
▪ D:
▸ mergeElementData<D>(data
: D): ‹D›
Defined in
▪ D:
Returns: ‹D›
▸ resolveRelationships<D>(data
: D, included
: ): D
Defined in
▪ D: | []
▸ resolveRelationships(data
: [], included
: ): object | ‹any, any›[]
Defined in
Returns: object | ‹any, any›[]
▸ resolveRelationships(data
: , included
: ): |
Defined in
Returns: |
Defined in
Defined in
Defined in
+ new RequestBuilder(uri
: string, options
: ):
Defined in
Returns:
Defined in
Defined in
• options:
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
▸ filter(key
: string | string[] | undefined, value
: string | number | boolean | undefined, operator?
: ): this
Defined in
Defined in
Defined in
Defined in
Defined in
▸ parseResponse<Raw>(response
: HttpResponse): Promise‹‹Raw››
Defined in
▪ Raw: ‹any, any›
Returns: Promise‹‹Raw››
Defined in
Defined in
▸ sort(key
: string | undefined, order
: ): this
Defined in
+ new RemoveBuilder(httpClient
: HttpClient, uri
: string):
Overrides .
Defined in
Returns:
Inherited from .
Defined in
Inherited from .
Defined in
• options:
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
▸ filter(key
: string | string[] | undefined, value
: string | number | boolean | undefined, operator?
: ): this
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
▸ parseResponse<Raw>(response
: HttpResponse): Promise‹‹Raw››
Inherited from .
Defined in
▪ Raw: ‹any, any›
Returns: Promise‹‹Raw››
Inherited from .
Defined in
▸ send(options
: HttpOptions): Promise‹‹Raw››
Overrides .
Defined in
Returns: Promise‹‹Raw››
▸ sort(key
: string | undefined, order
: ): this
Inherited from .
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Defined in
Name
Type
httpClient
HttpClient
uri
string
Name
Type
key
string | string[] | undefined
value
string | number | boolean | undefined
operator?
Name
Type
type
string
Name
Type
limit
number
Name
Type
page
number | string | undefined
Name
Type
offset
number
Name
Type
key
string
value
string | number | boolean | undefined
Name
Type
response
HttpResponse
Name
Type
resolveIncluded?
undefined | false | true
Name
Type
Default
options
HttpOptions
{}
Name
Type
key
string | undefined
order
Name
Type
attributes
object
Name
Type
id
string
Name
Type
rel?
undefined | object
Name
Type
httpClient
HttpClient
Name
Type
uri
string
Name
Type
uri
string
Name
Type
uri
string
Name
Type
uri
string
Name
Type
uri
string
Name
Type
uri
string
Name | Type |
| HttpClient |
| string |
Name | Type |
| number |
Name | Type |
| number | string | undefined |
Name | Type |
| number |
Name | Type |
| string |
| string | number | boolean | undefined |
Name | Type |
| HttpResponse |
Name | Type |
| undefined | false | true |
Name | Type |
| HttpOptions |
Name | Type |
| string |
Name | Type |
| D |
Name | Type |
| number |
Name | Type |
| number | string | undefined |
Name | Type |
| number |
Name | Type |
| string |
| string | number | boolean | undefined |
Name | Type |
| HttpResponse |
Name | Type |
| undefined | false | true |
Name | Type |
| HttpOptions |
Name | Type |
| HttpClient |
| string |
Name | Type |
| number |
Name | Type |
| number | string | undefined |
Name | Type |
| number |
Name | Type |
| string |
| string | number | boolean | undefined |
Name | Type |
| HttpResponse |
Name | Type |
| undefined | false | true |
Name | Type | Default |
| HttpOptions | {} |
• ASCENDING: = ""
Defined in jsonApi.interface.ts:156
• DESCENDING: = "-"
Defined in jsonApi.interface.ts:157
ListMetaData
• totalResourceCount: number
Defined in jsonApi.interface.ts:90
Included groups allow you to extract stuff from 'included' JSON API field basing on specified name-type pairs, and add proper types to it.
▪ D: AnyData
IncludedGroup
• __d: D
Defined in jsonApi.interface.ts:103
• type: string
Defined in jsonApi.interface.ts:102
▪ D: AnyData
▪ M: ListMetaData
RawListResponse
• data: D[]
Defined in jsonApi.interface.ts:126
Optional
included• included? : IncludedRelationships
Defined in jsonApi.interface.ts:133
• links: object
Defined in jsonApi.interface.ts:127
first: string
last: string
next? : undefined | string
prev? : undefined | string
• meta: M
Defined in jsonApi.interface.ts:134
Name | Type |
| string | string[] | undefined |
| string | number | boolean | undefined |
|
Name | Type |
| string | undefined |
|
Name | Type |
|
|
Name | Type |
|
Name | Type |
| D |
|
Name | Type |
|
|
Name | Type |
|
|
Name | Type |
| string |
|
Name | Type |
| string | string[] | undefined |
| string | number | boolean | undefined |
|
Name | Type |
| string | undefined |
|
Name | Type |
| string | string[] | undefined |
| string | number | boolean | undefined |
|
Name | Type |
| string | undefined |
|
▪ Raw: RawResponse‹any, any›
RequestBuilder‹JsonResponse‹Raw››
↳ UpdateBuilder
+ new UpdateBuilder(httpClient
: HttpClient, uri
: string, method
: "PATCH" | "PUT"): UpdateBuilder
Overrides RequestBuilder.constructor
Defined in jsonApi.update.ts:10
Parameters:
Returns: UpdateBuilder
Optional
attributes• attributes? : undefined | object
Defined in jsonApi.update.ts:9
Optional
id• id? : undefined | string
Defined in jsonApi.update.ts:7
Protected
limit• limit: number = DEFAULT_RESOURCE_LIMIT
Inherited from RequestBuilder.limit
Defined in jsonApi.builder.ts:19
Protected
offset• offset: undefined | number
Inherited from RequestBuilder.offset
Defined in jsonApi.builder.ts:20
Protected
options• options: Options
Inherited from RequestBuilder.options
Defined in jsonApi.builder.ts:23
Protected
page• page: number = 1
Inherited from RequestBuilder.page
Defined in jsonApi.builder.ts:21
Protected
queryParams• queryParams: Record‹string, string›
Inherited from RequestBuilder.queryParams
Defined in jsonApi.builder.ts:17
Optional
relationships• relationships? : Record‹string, object›
Defined in jsonApi.update.ts:10
Protected
resolveIncludedRelationships• resolveIncludedRelationships: boolean = false
Inherited from RequestBuilder.resolveIncludedRelationships
Defined in jsonApi.builder.ts:16
Protected
sortParams• sortParams: string[] = []
Inherited from RequestBuilder.sortParams
Defined in jsonApi.builder.ts:18
Optional
type• type? : undefined | string
Defined in jsonApi.update.ts:8
• uri: string
Inherited from RequestBuilder.uri
Defined in jsonApi.builder.ts:15
• get parameters(): Record‹string, string›
Inherited from RequestBuilder.parameters
Defined in jsonApi.builder.ts:50
Returns: Record‹string, string›
▸ filter(key
: string | string[] | undefined, value
: string | number | boolean | undefined, operator?
: FilterOperator): this
Inherited from RequestBuilder.filter
Defined in jsonApi.builder.ts:84
Parameters:
Returns: this
▸ ofType(type
: string): this
Defined in jsonApi.update.ts:20
Parameters:
Returns: this
▸ pageLimit(limit
: number): this
Inherited from RequestBuilder.pageLimit
Defined in jsonApi.builder.ts:102
Parameters:
Returns: this
▸ pageNumber(page
: number | string | undefined): this
Inherited from RequestBuilder.pageNumber
Defined in jsonApi.builder.ts:112
Parameters:
Returns: this
▸ pageOffset(offset
: number): this
Inherited from RequestBuilder.pageOffset
Defined in jsonApi.builder.ts:107
Parameters:
Returns: this
▸ parameter(key
: string, value
: string | number | boolean | undefined): this
Inherited from RequestBuilder.parameter
Defined in jsonApi.builder.ts:74
Parameters:
Returns: this
Protected
parseResponse▸ parseResponse<Raw>(response
: HttpResponse): Promise‹JsonResponse‹Raw››
Inherited from RequestBuilder.parseResponse
Defined in jsonApi.builder.ts:117
Type parameters:
▪ Raw: RawResponse‹any, any›
Parameters:
Returns: Promise‹JsonResponse‹Raw››
▸ resolveIncluded(resolveIncluded?
: undefined | false | true): this
Inherited from RequestBuilder.resolveIncluded
Defined in jsonApi.builder.ts:69
Parameters:
Returns: this
▸ send(options
: HttpOptions): Promise‹JsonResponse‹Raw››
Overrides RequestBuilder.send
Defined in jsonApi.update.ts:43
Parameters:
Returns: Promise‹JsonResponse‹Raw››
▸ sort(key
: string | undefined, order
: SortOrder): this
Inherited from RequestBuilder.sort
Defined in jsonApi.builder.ts:95
Parameters:
Returns: this
▸ withAttributes(attributes
: object): this
Defined in jsonApi.update.ts:30
Parameters:
Returns: this
▸ withId(id
: string): this
Defined in jsonApi.update.ts:25
Parameters:
Returns: this
▸ withRelationship(__namedParameters
: object): this
Defined in jsonApi.update.ts:35
Parameters:
▪ __namedParameters: object
Returns: this
| D
[]
Defined in
Name
Type
httpClient
HttpClient
uri
string
method
"PATCH" | "PUT"
Name
Type
key
string | string[] | undefined
value
string | number | boolean | undefined
operator?
Name
Type
type
string
Name
Type
limit
number
Name
Type
page
number | string | undefined
Name
Type
offset
number
Name
Type
key
string
value
string | number | boolean | undefined
Name
Type
response
HttpResponse
Name
Type
resolveIncluded?
undefined | false | true
Name
Type
Default
options
HttpOptions
{}
Name
Type
key
string | undefined
order
Name
Type
attributes
object
Name
Type
id
string
Name
Type
name
string
type
string
uuid
string