Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new ODataBatchConfig(defaultServicePath: string, batchId: string): ODataBatchConfig
  • deprecated

    Since v1.21.0. Use superclass instead. Creates an instance of ODataBatchConfig.

    Parameters

    • defaultServicePath: string

      The default OData service path

    • batchId: string

      The batch id for building the header and the payload.

    Returns ODataBatchConfig

Properties

Readonly boundary

boundary: string

customServicePath

customServicePath: string

Readonly defaultHeaders

defaultHeaders: Record<string, any>

Readonly defaultServicePath

defaultServicePath: string

method

payload

payload: string | Record<string, any>

subRequestPathType

subRequestPathType: BatchSubRequestPathType

Readonly Static content_type_prefix

content_type_prefix: "multipart/mixed; boundary=batch_" = "multipart/mixed; boundary=batch_"
deprecated

Since v1.30.0.

Accessors

batchId

  • get batchId(): string
  • deprecated

    Since v1.30.0. Use boundary instead.

    Returns string

contentType

  • get contentType(): any
  • deprecated

    Since v1.30.0. Use defaultHeaders instead.

    Returns any

customHeaders

  • get customHeaders(): Record<string, string>
  • set customHeaders(headers: Record<string, string>): any
  • Returns Record<string, string>

  • Parameters

    • headers: Record<string, string>

    Returns any

customQueryParameters

  • get customQueryParameters(): Record<string, string>
  • set customQueryParameters(queryParameters: Record<string, string>): any
  • Returns Record<string, string>

  • Parameters

    • queryParameters: Record<string, string>

    Returns any

Methods

addCustomHeaders

  • addCustomHeaders(headers: Record<string, string>): void
  • Add custom headers to the request. This is useful in case you want to provide your own authorization headers for example.

    Parameters

    • headers: Record<string, string>

      Key-value pairs where the key is the name of a header property and the value is the respective value

    Returns void

addCustomQueryParameters

  • addCustomQueryParameters(queryParameters: Record<string, string>): void
  • Add custom query parameters to the request. This is useful in case your OData service allows non-standard query parameters.

    Parameters

    • queryParameters: Record<string, string>

      Key-value pairs where the key is the name of a query parameter and the value is the respective value

    Returns void

Protected prependDollarToQueryParameters

  • prependDollarToQueryParameters(params: Record<string, any>): Record<string, any>

queryParameters

  • queryParameters(): Record<string, any>

resourcePath

  • resourcePath(): string

withSubRequestPathType

  • withSubRequestPathType(subRequestPathType: BatchSubRequestPathType): void