| 464 | } |
| 465 | |
| 466 | pub async fn consume_login_session( |
| 467 | &self, |
| 468 | session_id: &str, |
| 469 | ) -> Result<ConsumeLoginSessionPayload> { |
| 470 | let response = self |
| 471 | .unauthenticated_gql_client |
| 472 | .query_with_vars_unwrap::<ConsumeLoginSessionData, ConsumeLoginSessionVars>( |
| 473 | include_str!("queries/ConsumeLoginSession.gql"), |
| 474 | ConsumeLoginSessionVars { |
| 475 | session_id: session_id.to_string(), |
| 476 | }, |
| 477 | ) |
| 478 | .await; |
| 479 | match response { |
| 480 | Ok(response) => Ok(response.consume_login_session), |
| 481 | Err(err) => bail!("Failed to use login session: {err}"), |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | pub async fn compare_runs(&self, vars: CompareRunsVars) -> Result<CompareRunsOutcome> { |
| 486 | let response = self |