/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import t from"../../../request.js";import{parseUrl as o,encode as r,asValidOptions as s}from"../../utils.js";import i from"./support/VerifyCircuitsResult.js";async function u(u,a,n){const e=o(u),p={...a.toJSON(),f:"json"},c=r({...e.query,...p}),f=s(c,{...n,method:"post",authMode:"no-prompt"}),m=`${e.path}/circuits/verify`,{data:y}=await t(m,f);return i.fromJSON(y)}async function a(i,u,a){const n=o(i),e={...u.toJSON(),f:"json"},p=r({...n.query,...e,async:!0}),c=s(p,{...a,method:"post",authMode:"no-prompt"}),f=`${n.path}/circuits/verify`,{data:m}=await t(f,c);return m?m.statusUrl:null}export{a as submitVerifyCircuitsJob,u as verifyCircuits};
