@noatgnu/cupcake-core 1.2.4 → 1.2.6
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.
|
@@ -594,7 +594,7 @@ class ApiService {
|
|
|
594
594
|
return this.http.get(`${this.apiUrl}/users/${id}/`);
|
|
595
595
|
}
|
|
596
596
|
createUser(userData) {
|
|
597
|
-
return this.
|
|
597
|
+
return this.post(`${this.apiUrl}/users/admin_create/`, userData);
|
|
598
598
|
}
|
|
599
599
|
updateUser(id, userData) {
|
|
600
600
|
return this.http.patch(`${this.apiUrl}/users/${id}/`, userData);
|
|
@@ -1688,8 +1688,14 @@ class LabGroupService extends BaseApiService {
|
|
|
1688
1688
|
deleteLabGroup(id) {
|
|
1689
1689
|
return this.delete(`${this.apiUrl}/lab-groups/${id}/`);
|
|
1690
1690
|
}
|
|
1691
|
-
getLabGroupMembers(id) {
|
|
1692
|
-
|
|
1691
|
+
getLabGroupMembers(id, params) {
|
|
1692
|
+
const httpParams = this.buildHttpParams({
|
|
1693
|
+
direct_only: params?.directOnly?.toString(),
|
|
1694
|
+
page_size: params?.pageSize?.toString(),
|
|
1695
|
+
limit: params?.limit?.toString(),
|
|
1696
|
+
offset: params?.offset?.toString()
|
|
1697
|
+
});
|
|
1698
|
+
return this.get(`${this.apiUrl}/lab-groups/${id}/members/`, { params: httpParams });
|
|
1693
1699
|
}
|
|
1694
1700
|
inviteUserToLabGroup(id, invitation) {
|
|
1695
1701
|
return this.post(`${this.apiUrl}/lab-groups/${id}/invite_user/`, invitation);
|
|
@@ -2693,8 +2699,8 @@ class LabGroupsComponent {
|
|
|
2693
2699
|
}
|
|
2694
2700
|
loadGroupMembers(groupId) {
|
|
2695
2701
|
this.labGroupService.getLabGroupMembers(groupId).subscribe({
|
|
2696
|
-
next: (
|
|
2697
|
-
this.groupMembers.set(
|
|
2702
|
+
next: (response) => {
|
|
2703
|
+
this.groupMembers.set(response.results);
|
|
2698
2704
|
},
|
|
2699
2705
|
error: (error) => {
|
|
2700
2706
|
this.groupMembers.set([]);
|