1 export const fetchAgreement = async function (agreement_id) {
2 if (!agreement_id) return;
3 const apiUrl = "/api/v1/erm/agreements/" + agreement_id;
8 "periods,user_roles,user_roles.patron,agreement_licenses,agreement_licenses.license",
11 .then((res) => res.json())
23 export const fetchAgreements = async function () {
24 const apiUrl = "/api/v1/erm/agreements"
27 .then((res) => res.json())
39 export const fetchLicense = async function (license_id) {
40 if (!license_id) return;
41 const apiUrl = "/api/v1/erm/licenses/" + license_id;
44 .then((res) => res.json())