"use strict";const a=require("./index-2wUhd9Lu.js"),r={createRequest:async(e,s,t)=>(await a.apiClient.post(`/api/tenants/${e}/applications/${s}/request`,t)).data,getMyRequests:async()=>(await a.apiClient.get("/api/my/access-requests")).data,getRequestsByApplication:async(e,s)=>{const t=s?`?status=${s}`:"";return(await a.apiClient.get(`/api/applications/${e}/access-requests${t}`)).data},getRequestsByTenant:async(e,s)=>{const t=s?`?status=${s}`:"";return(await a.apiClient.get(`/api/tenants/${e}/access-requests${t}`)).data},approveRequest:async(e,s)=>(await a.apiClient.post(`/api/access-requests/${e}/approve`,s)).data,denyRequest:async(e,s)=>(await a.apiClient.post(`/api/access-requests/${e}/deny`,{notes:s})).data,getAllRequests:async(e,s)=>{const t=new URLSearchParams;e&&t.set("status",e),s&&t.set("tenantId",s);const n=t.toString();return(await a.apiClient.get(`/api/access-requests${n?`?${n}`:""}`)).data}};exports.accessRequestsApi=r;
//# sourceMappingURL=accessRequestsApi-DZeDvzwv.js.map
