Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • ParametersT

Hierarchy

Index

Constructors

  • Creates an instance of ODataFunctionImportRequestConfig.

    Type parameters

    • ParametersT

    Parameters

    • method: RequestMethodType

      HTTP method for the request

    • defaultServicePath: string

      Default path of the service

    • functionImportName: string

      The name of the function import.

    • parameters: FunctionImportParameters<ParametersT>

      Object containing the parameters with a value and additional meta information

    • oDataUri: ODataUri

      ODataUri conversion interface at runtime either v2 or v4

    Returns ODataFunctionImportRequestConfig<ParametersT>

Properties

customServicePath: string
defaultHeaders: Record<string, any>
defaultServicePath: string
functionImportName: string
oDataUri: ODataUri
parameters: FunctionImportParameters<ParametersT>
payload: string | Record<string, any>

Accessors

  • get appendedPaths(): string[]
  • Returns string[]

  • get contentType(): any
  • deprecated

    Since v1.30.0. Use defaultHeaders instead.

    Returns any

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

  • Parameters

    • headers: Record<string, string>

    Returns void

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

  • Parameters

    • queryParameters: Record<string, string>

    Returns void

  • get customRequestConfiguration(): Record<string, string>
  • set customRequestConfiguration(requestConfiguration: Record<string, string>): void
  • Returns Record<string, string>

  • Parameters

    • requestConfiguration: Record<string, string>

    Returns void

  • get fetchCsrfToken(): boolean
  • set fetchCsrfToken(fetchCsrfToken: boolean): void
  • Returns boolean

  • Parameters

    • fetchCsrfToken: boolean

    Returns void

Methods

  • 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(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

  • addCustomRequestConfiguration(requestConfiguration: Record<string, string>): void
  • Add custom request configuration to the request.

    Parameters

    • requestConfiguration: Record<string, string>

      Key-value pairs where the key is the name of a request configuration and the value is the respective value

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

    Returns void

  • appendPath(...path: string[]): void
  • Parameters

    • Rest ...path: string[]

    Returns void

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

    • params: Record<string, any>

    Returns Record<string, any>

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

  • resourcePath(): string
  • Returns string