Represents a single subresponse to a changeset request within a batch request.

Type Parameters

  • DeSerializersT extends DeSerializers

    Type of the (de-)serializers.

Hierarchy

  • WriteResponseCommon

Properties

as?: (<EntityT>(entityApi: EntityApi<EntityT, DeSerializersT>) => EntityT)

Type declaration

    • <EntityT>(entityApi: EntityApi<EntityT, DeSerializersT>): EntityT
    • Transform the raw string body into an instance of the given constructor. Note that the response may not exist, so you should only call this method if you know that there is data.

      Type Parameters

      Parameters

      • entityApi: EntityApi<EntityT, DeSerializersT>

      Returns EntityT

body?: Record<string, any>

HTTP raw body.

httpCode: number

HTTP response status code.

responseType: "WriteResponse"

Tag for identifying the type of a batch response.

type?: EntityApi<EntityBase, DeSerializersT>

EntityApi of the response data. Can be undefined for function/action imports or unmappable entities.

Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.