@sap-cloud-sdk/odata-common
Version:
SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.
20 lines (19 loc) • 843 B
TypeScript
import { ODataRequestConfig } from './odata-request-config';
import type { BatchSubRequestPathType } from '../request-builder';
/**
* OData batch request configuration for an entity type.
*/
export declare class ODataBatchRequestConfig extends ODataRequestConfig {
readonly defaultBasePath: string;
readonly boundary: string;
subRequestPathType: BatchSubRequestPathType;
/**
* Creates an instance of ODataBatchRequestConfig.
* @param defaultBasePath - The default OData service path.
* @param boundary - Request boundary for separation of subrequests. Defaults to an autogenerated value.
*/
constructor(defaultBasePath: string, boundary?: string);
withSubRequestPathType(subRequestPathType: BatchSubRequestPathType): void;
resourcePath(): string;
queryParameters(): Record<string, any>;
}