Custom Gis Application with Arcgis Javascript API with modern layouting
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
956 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 ./support/PostResult".split(" "),function(e,k,g,f,l,m){const d=new Map;e.post=async function(a,b,c,n){d.has(a)||await l.addServerVersion(d,a);if(11.1>=(d.get(a)?.serverVersion??0))throw new g("post:enterprise-version","versioning API requires ArcGIS Enterprise version 11.2 or higher");if(!b)throw new g("post:missing-guid","guid for version is missing");a=f.parseUrl(a);const h=c.toJSON();c.rows&&(h.rows=JSON.stringify(c.rows));
c=f.asValidOptions(a.query,{query:f.encode({...h,f:"json"}),...n,method:"post"});b.startsWith("{")&&(b=b.slice(1,-1));({data:b}=await k(`${a.path}/versions/${b}/post`,c));return m.fromJSON(b)};e.serverVersionCacheMap=d;Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});