import { v4 as uuid } from 'uuid' ; import { BatchSubRequestPathType } from '../request-builder' ; import { ODataRequestConfig } from './odata-request-config' ; internal export class ODataBatchRequestConfig extends ODataRequestConfig { subRequestPathType : BatchSubRequestPathType = 'relativeToService' ; param defaultServicePath param boundary constructor ( readonly defaultServicePath , readonly boundary = `batch_${ uuid ( ) }` ) { super ( 'post' , defaultServicePath , { 'content-type' : `multipart/mixed; boundary=${ boundary }` , accept : 'multipart/mixed' } ) ; } withSubRequestPathType ( subRequestPathType ) { this . subRequestPathType = subRequestPathType ; } resourcePath ( ) { return '$batch' ; } queryParameters ( ) { return { } ; } }