feat: update API client and remove unused services; enhance error handling and configuration

This commit is contained in:
JSC
2025-07-26 19:49:00 +02:00
parent 6ce83c8317
commit 6018a5c8c5
14 changed files with 14 additions and 606 deletions

View File

@@ -81,7 +81,7 @@ export class BaseApiClient implements ApiClient {
throw createApiError(retryResponse, errorData)
}
return await this.safeParseJSON(retryResponse)
return await this.safeParseJSON(retryResponse) as T
} catch (refreshError) {
this.handleAuthenticationFailure()
throw refreshError
@@ -97,7 +97,7 @@ export class BaseApiClient implements ApiClient {
return {} as T
}
return await this.safeParseJSON(response)
return await this.safeParseJSON(response) as T
} catch (error) {
clearTimeout(timeoutId)