/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import o from"../../request.js";import{parseUrl as r,asValidOptions as e,encode as n}from"../utils.js";async function t(t,s,i){const a=r(t),u=s.toJSON(),m=e(a.query,{query:n({...u,f:"json"}),...i,authMode:"no-prompt"}),p=`${a.path}/versionInfos`,{data:f}=await o(p,m);return f.versions.map(o=>{const{versionName:r,versionGuid:e,...n}=o;return{...n,versionIdentifier:{name:r,guid:e}}})}export{t as getVersionInfos};
