import { request , cleanUrl , appendCustomParams } from "@esri/arcgis-rest-request" ; import { IFeature } from "@esri/arcgis-rest-types" ; import { ISharedEditOptions , IEditFeatureResult } from "./helpers" ; /**
 * Update features request options. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/update-features.htm) for more information.
 *
 */ export interface IUpdateFeaturesOptions extends ISharedEditOptions { /**
     * Array of JSON features to update.
     */ features : IFeature [ ] ; /**
     * Optional parameter which is false by default is set by client to indicate to the server that client in true curve capable.
     */ trueCurveClient ? : boolean ; } param requestOptions returns export function updateFeatures ( requestOptions ) { const url = `${ cleanUrl ( requestOptions . url ) }/updateFeatures` ; const options = appendCustomParams < IUpdateFeaturesOptions > ( requestOptions , [ "features" , "gdbVersion" , "returnEditMoment" , "rollbackOnFailure" , "trueCurveClient" ] , { params : { ... requestOptions . params } } ) ; return request ( url , options ) ; }