You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
933 B
5 lines
933 B
// All material copyright Esri, All Rights Reserved, unless otherwise specified. |
|
// See https://js.arcgis.com/4.30/esri/copyright.txt for details. |
|
//>>built |
|
define(["exports","../../../request","../../../core/Error","../../utils","./serverVersionUtils"],function(d,k,h,e,l){const c=new Map;d.alterVersion=async function(b,a,f,g){c.has(b)||await l.addServerVersion(c,b);if(11.1>=(c.get(b)?.serverVersion??0))throw new h("alterVersion:enterprise-version","versioning API requires ArcGIS Enterprise version 11.2 or higher");if(!a)throw new h("alterVersion:missing-guid","guid for version is missing");b=e.parseUrl(b);f=f.toJSON();g=e.asValidOptions(b.query,{query:e.encode({...f, |
|
f:"json"}),...g,authMode:"immediate",method:"post"});a.startsWith("{")&&(a=a.slice(1,-1));({data:a}=await k(`${b.path}/versions/${a}/alter`,g));return a?a.success:!1};d.serverVersionCacheMap=c;Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}); |