(metadata?: MetadataState<Organization[]>)
| 164 | const notAvailable = { available: false, value: undefined } as const; |
| 165 | |
| 166 | export const organizations = (metadata?: MetadataState<Organization[]>) => { |
| 167 | return cachedQuery({ |
| 168 | metadata: metadata ?? notAvailable, |
| 169 | queryKey: organizationsKey, |
| 170 | queryFn: () => API.getOrganizations(), |
| 171 | }); |
| 172 | }; |
| 173 | |
| 174 | export const getProvisionerDaemonsKey = ( |
| 175 | organization: string, |
no test coverage detected