UNPKG

odata-batch

Version:

a simple lib for send and recieve calls odata batch

16 lines 741 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ODataBatchAxiosRepository = void 0; const axios_1 = __importDefault(require("axios")); const response_1 = require("./response"); class ODataBatchAxiosRepository { async send(url, batchRequest, config, accept, BatchParser) { const request = await axios_1.default.post(url, batchRequest, config); return response_1.createBatchResponse(BatchParser, request, accept).response; } } exports.ODataBatchAxiosRepository = ODataBatchAxiosRepository; //# sourceMappingURL=ODataBatchAxiosRepository.js.map