import { GQLVariable } from "../../lib/variables.js";
import { MembershipInput } from "../membership/updateMembership.js";
import { useSingleTenantMutation } from "../../lib/useSingleTenantMutation.js";
const INVITE_MUTATION = `
	invite(
		email: $email,
		projectSlug: $projectSlug,
		memberships: $memberships,
		options: { method: $method },
	) {
		ok
		errors {
			code
		}
	}
`;
const inviteVariables = {
  projectSlug: GQLVariable.Required(GQLVariable.String),
  email: GQLVariable.Required(GQLVariable.String),
  memberships: GQLVariable.Required(GQLVariable.List(MembershipInput)),
  method: GQLVariable.Enum("InviteMethod")
};
const useInvite = () => {
  return useSingleTenantMutation(INVITE_MUTATION, inviteVariables);
};
export { useInvite };
//# sourceMappingURL=invite.js.map
