Skip to content

Interface: ODataDataSourceConfig\<TRow\>

Defined in: src/adapters/odata/types.ts:12

Configuration for the OData DataSource adapter.

Type Parameters

TRow

TRow

Properties

auth?

optional auth?: ODataAuth

Defined in: src/adapters/odata/types.ts:26

Authentication configuration.


batch?

optional batch?: object

Defined in: src/adapters/odata/types.ts:32

Batch request configuration.

enabled

enabled: boolean

maxBatchSize?

optional maxBatchSize?: number


childrenNavProperty?

optional childrenNavProperty?: string

Defined in: src/adapters/odata/types.ts:20

OData navigation property for children (lazy tree loading).


defaultExpand?

optional defaultExpand?: string

Defined in: src/adapters/odata/types.ts:28

Default $expand for initial load.


defaultSelect?

optional defaultSelect?: string[]

Defined in: src/adapters/odata/types.ts:30

Default $select to limit returned fields.


entitySet

entitySet: string

Defined in: src/adapters/odata/types.ts:16

Entity set name (e.g., ‘BillOfMaterial’).


fetch?

optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: src/adapters/odata/types.ts:36

Custom fetch implementation (for testing or Node.js).

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

URL | RequestInfo

init?

RequestInit

Returns

Promise<Response>

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

string | URL | Request

init?

RequestInit

Returns

Promise<Response>


fieldMapping

fieldMapping: Record<string, keyof TRow | ((entity) => unknown)>

Defined in: src/adapters/odata/types.ts:18

Maps OData entity properties to TRow fields.


idProperty

idProperty: string

Defined in: src/adapters/odata/types.ts:24

Property that holds the row’s unique id.


parentKeyProperty?

optional parentKeyProperty?: string

Defined in: src/adapters/odata/types.ts:22

OData property for parent key (flat hierarchy).


serviceUrl

serviceUrl: string

Defined in: src/adapters/odata/types.ts:14

OData service URL (e.g., ‘https://host/sap/opu/odata4/sap/api_billofmaterial/srvd_a2x/sap/billofmaterial/0001’).


timeout?

optional timeout?: number

Defined in: src/adapters/odata/types.ts:34

Request timeout in milliseconds. Default: 30000.