( baseUrl: string, userApiKey: string, )
| 75 | } |
| 76 | |
| 77 | export async function getUserCollectionsList( |
| 78 | baseUrl: string, |
| 79 | userApiKey: string, |
| 80 | ) { |
| 81 | const client = getGraphqlClient(baseUrl); |
| 82 | const { userCollectionsList } = await client.request( |
| 83 | UserCollectionsListDocument, |
| 84 | {}, |
| 85 | { Authorization: `Bearer ${userApiKey}` }, |
| 86 | ); |
| 87 | return userCollectionsList.response; |
| 88 | } |
| 89 | |
| 90 | export async function getUserWorkoutsList(baseUrl: string, userApiKey: string) { |
| 91 | const client = getGraphqlClient(baseUrl); |
no test coverage detected