(userId?: string)
| 252 | }); |
| 253 | |
| 254 | export const myPluginsQueryOptions = (userId?: string) => ({ |
| 255 | queryKey: generateQueryKey( |
| 256 | RequestKey.MyPlugins, |
| 257 | userId ? { id: userId } : undefined, |
| 258 | ), |
| 259 | queryFn: async (): Promise<Plugin[]> => { |
| 260 | const { myPlugins } = await gqlClient.request<{ |
| 261 | myPlugins: Connection<Plugin>; |
| 262 | }>(MY_PLUGINS_QUERY); |
| 263 | |
| 264 | return myPlugins.edges.map(({ node }) => node); |
| 265 | }, |
| 266 | enabled: !!userId, |
| 267 | }); |
| 268 | |
| 269 | export const myPluginSubmissionsQueryOptions = (userId?: string) => ({ |
| 270 | queryKey: generateQueryKey( |
no test coverage detected