(groupId: string)
| 145 | ]; |
| 146 | |
| 147 | export const groupPermissions = (groupId: string) => { |
| 148 | return { |
| 149 | queryKey: groupPermissionsKey(groupId), |
| 150 | queryFn: () => |
| 151 | API.checkAuthorization({ |
| 152 | checks: { |
| 153 | canUpdateGroup: { |
| 154 | object: { |
| 155 | resource_type: "group", |
| 156 | resource_id: groupId, |
| 157 | }, |
| 158 | action: "update", |
| 159 | }, |
| 160 | }, |
| 161 | }), |
| 162 | }; |
| 163 | }; |
| 164 | |
| 165 | export const createGroup = (queryClient: QueryClient, organization: string) => { |
| 166 | return { |
no test coverage detected