(apiKey: string)
| 5 | |
| 6 | /** Authorization headers shared by every Linq request. */ |
| 7 | export function linqHeaders(apiKey: string): Record<string, string> { |
| 8 | return { |
| 9 | Authorization: `Bearer ${apiKey}`, |
| 10 | 'Content-Type': 'application/json', |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | /** Extract a human-readable error message from a Linq error response body. */ |
| 15 | export function extractLinqError(data: unknown, fallback: string): string { |
no outgoing calls
no test coverage detected