Skip to main content
Version: 0.17

Class: JSONAPIRequestProcessor

Constructors​

constructor​

• new JSONAPIRequestProcessor(settings)

Parameters​

NameType
settingsJSONAPIRequestProcessorSettings

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:88

Properties​

allowedContentTypes​

• allowedContentTypes: string[]

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:81


defaultFetchSettings​

• defaultFetchSettings: FetchSettings

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:82


keyMap​

• Optional keyMap: RecordKeyMap

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:84


schema​

• schema: RecordSchema

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:83


sourceName​

• sourceName: string

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:79


urlBuilder​

• urlBuilder: JSONAPIURLBuilder

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:80

Accessors​

serializer​

• get serializer(): JSONAPISerializer

deprecated since v0.17, use serializerFor instead

Returns​

JSONAPISerializer

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:138


serializerFor​

• get serializerFor(): SerializerForFn<Serializer<unknown, unknown, unknown, unknown>>

Returns​

SerializerForFn<Serializer<unknown, unknown, unknown, unknown>>

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:151

Methods​

buildFetchSettings​

â–¸ buildFetchSettings(request): FetchSettings

Parameters​

NameType
requestRecordQueryRequest | RecordTransformRequest

Returns​

FetchSettings

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:245


customRequestOptions​

â–¸ customRequestOptions(queryOrTransform, queryExpressionOrOperation): undefined | JSONAPIRequestOptions

deprecated since v0.17, use mergeRequestOptions instead

Parameters​

NameType
queryOrTransformRecordTransform | RecordQuery
queryExpressionOrOperationRecordOperation | RecordQueryExpression

Returns​

undefined | JSONAPIRequestOptions

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:304


fetch​

â–¸ fetch(url, customSettings?): Promise<JSONAPIResponse>

Parameters​

NameType
urlstring
customSettings?FetchSettings

Returns​

Promise<JSONAPIResponse>

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:155


initFetchSettings​

â–¸ initFetchSettings(customSettings?): FetchSettings

Parameters​

NameType
customSettingsFetchSettings

Returns​

FetchSettings

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:204


mergeRequestOptions​

â–¸ mergeRequestOptions(options): undefined | JSONAPIRequestOptions

Parameters​

NameType
optionsundefined | JSONAPIRequestOptions | (undefined | JSONAPIRequestOptions)[]

Returns​

undefined | JSONAPIRequestOptions

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:289


operationsFromDeserializedDocument​

â–¸ operationsFromDeserializedDocument(deserialized): RecordOperation[]

Parameters​

NameType
deserializedRecordDocument

Returns​

RecordOperation[]

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:227


preprocessResponseDocument​

â–¸ preprocessResponseDocument(document, request): void

Parameters​

NameType
documentundefined | ResourceDocument
requestRecordQueryRequest | RecordTransformRequest

Returns​

void

Defined in​

packages/@orbit/jsonapi/src/jsonapi-request-processor.ts:318