@noatgnu/cupcake-core 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1701,6 +1701,29 @@ class LabGroupService extends BaseApiService {
|
|
|
1701
1701
|
cancelLabGroupInvitation(id) {
|
|
1702
1702
|
return this.post(`${this.apiUrl}/lab-group-invitations/${id}/cancel_invitation/`, {});
|
|
1703
1703
|
}
|
|
1704
|
+
// LAB GROUP PERMISSIONS
|
|
1705
|
+
getLabGroupPermissions(params) {
|
|
1706
|
+
const httpParams = this.buildHttpParams(params);
|
|
1707
|
+
return this.get(`${this.apiUrl}/lab-group-permissions/`, { params: httpParams });
|
|
1708
|
+
}
|
|
1709
|
+
getLabGroupPermission(id) {
|
|
1710
|
+
return this.get(`${this.apiUrl}/lab-group-permissions/${id}/`);
|
|
1711
|
+
}
|
|
1712
|
+
createLabGroupPermission(permission) {
|
|
1713
|
+
return this.post(`${this.apiUrl}/lab-group-permissions/`, permission);
|
|
1714
|
+
}
|
|
1715
|
+
updateLabGroupPermission(id, permission) {
|
|
1716
|
+
return this.patch(`${this.apiUrl}/lab-group-permissions/${id}/`, permission);
|
|
1717
|
+
}
|
|
1718
|
+
deleteLabGroupPermission(id) {
|
|
1719
|
+
return this.delete(`${this.apiUrl}/lab-group-permissions/${id}/`);
|
|
1720
|
+
}
|
|
1721
|
+
getLabGroupPermissionsForLabGroup(labGroupId) {
|
|
1722
|
+
return this.getLabGroupPermissions({ labGroup: labGroupId });
|
|
1723
|
+
}
|
|
1724
|
+
getLabGroupPermissionsForUser(userId) {
|
|
1725
|
+
return this.getLabGroupPermissions({ user: userId });
|
|
1726
|
+
}
|
|
1704
1727
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: LabGroupService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1705
1728
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: LabGroupService, providedIn: 'root' });
|
|
1706
1729
|
}
|