TeamRequest.ts 540 B

1234567891011121314151617181920
  1. import { runMutation } from "../GQLClient"
  2. import {
  3. MoveRestTeamRequestDocument,
  4. MoveRestTeamRequestMutation,
  5. MoveRestTeamRequestMutationVariables,
  6. } from "../graphql"
  7. type MoveRestTeamRequestErrors =
  8. | "team_req/not_found"
  9. | "team_req/invalid_target_id"
  10. export const moveRESTTeamRequest = (requestID: string, collectionID: string) =>
  11. runMutation<
  12. MoveRestTeamRequestMutation,
  13. MoveRestTeamRequestMutationVariables,
  14. MoveRestTeamRequestErrors
  15. >(MoveRestTeamRequestDocument, {
  16. requestID,
  17. collectionID,
  18. })