UNPKG

odata

Version:

o.js is a isomorphic Odata Javascript library to simplify the request of data. The main goal is to build a standalone, lightweight and easy to understand Odata lib.

24 lines (23 loc) 787 B
import { OdataConfig } from "./OdataConfig"; import { OdataQuery } from "./OdataQuery"; import { ORequest } from "./ORequest"; export declare class OBatch { private changeset; private batchBody; private batchUid; private batchConfig; constructor(resources: ORequest[], config: OdataConfig, query?: OdataQuery, changeset?: boolean); fetch(url: URL): Promise<any>; parseResponse(responseData: string, contentTypeHeader: string): any; /** * If we determine a changset (POST, PUT, PATCH) we initalize a new * OBatch instance for it. */ private checkForChangset; private getGETResources; private getChangeResources; private getBody; private getUid; private getHeaders; private getRequestURL; }