import { HttpMethod } from "../../blob/generated/IRequest" ; export enum BatchType { blob = "blob" , table = "table" } export class export default class BatchOperation { public rawHeaders : string [ ] ; public protocol ? : string ; public batchType : BatchType ; public httpMethod ? : HttpMethod ; public parameters ? : string ; public uri ? : string ; public path ? : string ; public jsonRequestBody ? : string ; public constructor ( _batchType , headers ) { this . batchType = _batchType ; const dirtyHeaderArray = headers . split ( "\n" ) ; this . rawHeaders = dirtyHeaderArray . filter ( ( candidate ) => candidate . search ( /\S/ ) < 1 ) ; } }