UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

33 lines (32 loc) 1.14 kB
import * as i from "../../synapse-client/SynapseClient.js"; import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode"; import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse"; import "@sage-bionetworks/synapse-client/util/SynapseClientError"; import "@sage-bionetworks/synapse-types"; import "../../utils/functions/EntityTypeUtils.js"; import "../../utils/SynapseConstants.js"; import "lodash-es"; import "@sage-bionetworks/synapse-client/util/synapseClientFetch"; import { useSynapseContext as m } from "../../utils/context/SynapseContext.js"; import { useQuery as n } from "@tanstack/react-query"; function C(e, t) { const { accessToken: r, keyFactory: o } = m(); return n({ ...t, queryKey: o.getTeamListQueryKey(e.sort().join()), queryFn: () => i.getTeamList(e, r) }); } function L(e, t) { const { accessToken: r, keyFactory: o } = m(); return n({ ...t, queryKey: o.getChallengeTeamListQueryKey(e), queryFn: () => i.getAllChallengeTeams(r, e) }); } export { L as useGetChallengeTeamList, C as useGetTeamList }; //# sourceMappingURL=useTeamList.js.map