2 lines
580 B
JavaScript
2 lines
580 B
JavaScript
import{ae as a}from"./app-dvJP63FL.js";const s=a("api"),o={getShares(t,e={}){return s.get("/twofaccounts/"+t+"/shares",{...e})},shareWithUsers(t,e,r={}){return s.post("/twofaccounts/"+t+"/shares",{user_ids:e},{...r})},unshareWithUser(t,e,r={}){return s.delete("/twofaccounts/"+t+"/shares/"+e,{...r})},unshare(t,e={}){return s.delete("/twofaccounts/"+t+"/shares",{...e})},getRecipients(t,e="",r={}){return s.get("/twofaccounts/"+t+"/recipients"+(e?"?filter[nameOrEmail]="+e:""),{...r})},shareWithAll(t,e={}){return s.post("/twofaccounts/"+t+"/shares/all",{...e})}};export{o as s};
|