( organizationId: string )
| 203 | ); |
| 204 | const rawApprovePairing = useMutation( |
| 205 | trpc.organizations.kiloclaw.approvePairingRequest.mutationOptions({ |
| 206 | onSuccess: async () => { |
| 207 | await queryClient.invalidateQueries({ |
| 208 | queryKey: trpc.organizations.kiloclaw.listPairingRequests.queryKey({ organizationId }), |
| 209 | }); |
| 210 | }, |
| 211 | }) |
| 212 | ); |
| 213 | const rawApproveDevicePairing = useMutation( |
| 214 | trpc.organizations.kiloclaw.approveDevicePairingRequest.mutationOptions({ |
| 215 | onSuccess: async () => { |
| 216 | await queryClient.invalidateQueries({ |
| 217 | queryKey: trpc.organizations.kiloclaw.listDevicePairingRequests.queryKey({ |
| 218 | organizationId, |
| 219 | }), |
| 220 | }); |
| 221 | }, |
| 222 | }) |
| 223 | ); |
| 224 | const rawRunDoctor = useMutation( |
| 225 | trpc.organizations.kiloclaw.runDoctor.mutationOptions({ onSuccess: invalidateStatus }) |
| 226 | ); |
| 227 | const rawRestoreConfig = useMutation( |
| 228 | trpc.organizations.kiloclaw.restoreConfig.mutationOptions({ |
| 229 | onSuccess: async () => { |
| 230 | await invalidateStatus(); |
| 231 | await queryClient.invalidateQueries({ |
| 232 | queryKey: trpc.organizations.kiloclaw.gatewayStatus.queryKey({ organizationId }), |
| 233 | }); |
| 234 | await queryClient.invalidateQueries({ |
| 235 | queryKey: trpc.organizations.kiloclaw.getConfig.queryKey({ organizationId }), |
| 236 | }); |
| 237 | await queryClient.invalidateQueries({ |
| 238 | queryKey: trpc.organizations.kiloclaw.readFile.queryKey(), |
| 239 | }); |
| 240 | await queryClient.invalidateQueries({ |
| 241 | queryKey: trpc.organizations.kiloclaw.fileTree.queryKey(), |
| 242 | }); |
| 243 | }, |
| 244 | }) |
| 245 | ); |
| 246 | const rawSetMyPin = useMutation( |
| 247 | trpc.organizations.kiloclaw.setMyPin.mutationOptions({ |
| 248 | onSuccess: async () => { |
| 249 | await invalidateStatus(); |
| 250 | await queryClient.invalidateQueries({ |
| 251 | queryKey: trpc.organizations.kiloclaw.getMyPin.queryKey({ organizationId }), |
| 252 | }); |
| 253 | }, |
| 254 | }) |
| 255 | ); |
| 256 | const rawRemoveMyPin = useMutation( |
| 257 | trpc.organizations.kiloclaw.removeMyPin.mutationOptions({ |
| 258 | onSuccess: async () => { |
| 259 | await invalidateStatus(); |
| 260 | await queryClient.invalidateQueries({ |
| 261 | queryKey: trpc.organizations.kiloclaw.getMyPin.queryKey({ organizationId }), |
| 262 | }); |
no test coverage detected