import{_ as e}from"./index-CTxlYqj4.js";const a="domains",n="domainaliases",i={getDomains(){return e.get(`/${a}/`)},getDomain(t){return e.get(`/${a}/${t}/`)},getDomainDNSDetail(t){return e.get(`/${a}/${t}/dns_detail/`)},getDomainDmarcAlignment(t,r){return e.get(`${a}/${t}/dmarc/alignment_stats/`,{params:{period:r}})},getDomainAliases(t){let r=`/${n}/`;return t!==void 0&&(r+=`?domain=${t}`),e.get(r)},getDomainAdministrators(t){return e.get(`/${a}/${t}/administrators/`)},addDomainAdministrator(t,r){return e.post(`/${a}/${t}/administrators/add/`,{account:r})},removeDomainAdministrator(t,r){return e.post(`/${a}/${t}/administrators/remove/`,{account:r})},createDomain(t){return e.post(`/${a}/`,t)},updateDomain(t,r){return e.put(`/${a}/${t}/`,r)},patchDomain(t,r){return e.patch(`/${a}/${t}/`,r)},deleteDomain(t,r){return e.post(`/${a}/${t}/delete/`,r)},createDomainAlias(t){return e.post(`/${n}/`,t)},updateDomainAlias(t,r){return e.put(`/${n}/${t}/`,r)},deleteDomainAlias(t){return e.delete(`/${n}/${t}/`)},exportAll(){return e.get(`/${a}/export/`)},importFromCSV(t){return e.post(`/${a}/import/`,t,{headers:{"Content-Type":"multipart/form-data"}})}};export{i as d};
