/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import r from"../../../request.js";import s from"../../../core/Error.js";import{parseUrl as t,asValidOptions as o,encode as i}from"../../utils.js";async function e(e,n,m,a){if(!n)throw new s("post:missing-guid","guid for version is missing");const u=t(e),d=m.toJSON(),f=o(u.query,{query:i({...d,f:"json"}),...a,method:"post"});n.startsWith("{")&&(n=n.slice(1,-1));const p=`${u.path}/versions/${n}/deleteForwardEdits`,{data:c}=await r(p,f);return c}export{e as deleteForwardEdits};
