(baseUrl: string, userApiKey: string)
| 88 | } |
| 89 | |
| 90 | export async function getUserWorkoutsList(baseUrl: string, userApiKey: string) { |
| 91 | const client = getGraphqlClient(baseUrl); |
| 92 | const { userWorkoutsList } = await client.request( |
| 93 | UserWorkoutsListDocument, |
| 94 | { input: { search: {} } }, |
| 95 | { Authorization: `Bearer ${userApiKey}` }, |
| 96 | ); |
| 97 | return userWorkoutsList.response.items; |
| 98 | } |
| 99 | |
| 100 | export async function getUserMeasurementsList( |
| 101 | baseUrl: string, |
no test coverage detected