Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UpdateRequestBuilderV4<EntityT>

Create OData query to update an entity.

Type parameters

  • EntityT: EntityV4

    Type of the entity to be updated

Hierarchy

Implements

  • EntityIdentifiable<EntityT>

Index

Constructors

constructor

  • new UpdateRequestBuilderV4(_entityConstructor: Constructable<EntityT>, _entity: EntityT): UpdateRequestBuilderV4

Properties

Readonly _entity

_entity: EntityT

Entity to be updated

Readonly _entityConstructor

_entityConstructor: Constructable<EntityT>

Constructor type of the entity to be updated

Readonly entitySerializer

entitySerializer: EntitySerializer

Entity serializer

Readonly extractODataEtag

extractODataEtag: (json: Record<string, any>) => string | undefined

Extractor for etag from payload

Type declaration

    • (json: Record<string, any>): string | undefined
    • Parameters

      • json: Record<string, any>

      Returns string | undefined

Readonly oDataUri

oDataUri: ODataUri

Collection of URI conversion methods

Readonly payloadManipulator

payloadManipulator: (body: Record<string, any>) => Record<string, any>

Manipulator for the payload.

Type declaration

    • (body: Record<string, any>): Record<string, any>
    • Parameters

      • body: Record<string, any>

      Returns Record<string, any>

requestConfig

requestConfig: ODataUpdateRequestConfig<EntityT>

Request configuration to initialize with

Accessors

entity

  • get entity(): EntityT

Methods

build

execute

Protected executeRequest

Protected getPayload

  • getPayload(): Record<string, any>

ignoreVersionIdentifier

  • ignoreVersionIdentifier(): this

ignoredFields

  • ignoredFields(...fields: Selectable<EntityT>[]): this
  • ignoredFields(fields: Selectable<EntityT>[]): this

Protected isEmptyObject

  • isEmptyObject(obj: any): boolean

prepare

  • prepare(): this

relativeUrl

  • relativeUrl(): string

replaceWholeEntityWithPut

  • replaceWholeEntityWithPut(): this

requiredFields

  • requiredFields(...fields: Selectable<EntityT>[]): this
  • requiredFields(fields: Selectable<EntityT>[]): this

url

withCustomHeaders

  • withCustomHeaders(headers: Record<string, string>): this

withCustomQueryParameters

  • withCustomQueryParameters(queryParameters: Record<string, string>): this

withCustomServicePath

  • withCustomServicePath(servicePath: string): this

withCustomVersionIdentifier

  • withCustomVersionIdentifier(etag: string): this