fix: improve error handling in delegation credential workspace configuration (#26985)

- Changed checkIfSuccessfullyConfiguredInWorkspace to throw detailed errors instead of returning boolean
- Updated testDelegationCredentialSetup in Google Calendar and Office365 Calendar services to throw specific errors
- Updated assertWorkspaceConfigured to let errors propagate naturally
- Updated Calendar interface type to reflect Promise<void> return type
- Updated CalendarCacheWrapper and CalendarTelemetryWrapper to match new interface

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
MorganandDevin AI authored and GitHub committed 2026-02-04 21:48:56 +00:00
1 parent 04e828358a
commit 2f16758de3
7 files changed
+123 -113

No files matched your search

+1 -1
View File
@@ -316,7 +316,7 @@ export interface Calendar {
listCalendars(event?: CalendarEvent): Promise<IntegrationCalendar[]>;
testDelegationCredentialSetup?(): Promise<boolean>;
testDelegationCredentialSetup?(): Promise<void>;
}
/**