SortOrder
CreationalRequestBuilder
JsonApiClient
JsonApiManySender
JsonApiOneSender
JsonApiRequestData
JsonApiSender
JsonListResponse
JsonResponse
RequestBuilder
Attributes
Data
IncludedGroup
ListMetaData
RawListResponse
RawResponse
RequestBuilderOptions
Ƭ AnyData: Data‹any, any›
Ƭ AttributesOf: D extends object ? D["attributes"] : EmptyRecord
Ƭ EmptyRecord: object
[ key: string]: never
Ƭ IncludedGroups: object
Ƭ IncludedGroupsSchema: Record‹string, IncludedGroup›
Ƭ 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
Ƭ OptionalRels: Relationships | undefined
Ƭ RawRelationship: object
data: T
links? : undefined | object
related? : undefined | string
Ƭ Relationship: RawRelationship‹RelationshipData›
Ƭ RelationshipArray: RawRelationship‹RelationshipData[]›
Ƭ RelationshipData: object
id: string
type: Type
Ƭ RelationshipType: RelationshipData‹Type› | RelationshipData‹Type›[]
Ƭ Relationships: Record‹string, RawRelationship‹RelationshipType› | undefined›
Ƭ RelationshipsOf: D extends object ? D["relationships"] : EmptyRecord
Ƭ ResolvedRelationship: RawRelationship‹D›
Ƭ ResolvedRelationshipArray: RawRelationship‹D[]›
Ƭ ResolvedRelationships: Record‹string, ResolvedRelationship | ResolvedRelationshipArray | undefined›
Ƭ UnresolvedRelationships: Record‹string, Relationship | RelationshipArray›
Const
DEFAULT_RESOURCE_LIMIT• DEFAULT_RESOURCE_LIMIT: 10 = 10
Const
findIncludedRelationship▸ findIncludedRelationship(relationship
: RelationshipData, included
: IncludedRelationships): AnyData | undefined
Parameters:
Returns: AnyData | undefined
Const
includedGroup▸ includedGroup<D>(type
: string): IncludedGroup‹D›
Type parameters:
▪ D: AnyData
Parameters:
Returns: IncludedGroup‹D›
Const
isData▸ isData<D>(data
: RelationshipData | D): data is D
Type parameters:
▪ D: AnyData
Parameters:
Returns: data is D
Const
mergeElementData▸ mergeElementData<D>(data
: D): MergedData‹D›
Type parameters:
▪ D: AnyData
Parameters:
Returns: MergedData‹D›
▸ resolveRelationships<D>(data
: D, included
: IncludedRelationships): D
Type parameters:
Parameters:
Returns: D
▸ resolveRelationships(data
: RelationshipData[], included
: IncludedRelationships): object | Data‹any, any›[]
Parameters:
Returns: object | Data‹any, any›[]
▸ resolveRelationships(data
: RelationshipData, included
: IncludedRelationships): AnyData | RelationshipData
Parameters:
Returns: AnyData | RelationshipData
Const
Headers• Accept: ContentType = ContentType.VND_JSON
• Content-Type: ContentType = ContentType.VND_JSON
Name
Type
relationship
included
Name
Type
type
string
Name
Type
data
RelationshipData | D
Name
Type
data
D
Name
Type
data
D
included
Name
Type
data
included
Name
Type
data
included