| @@ -717,8 +717,15 @@ | ||
| 717 | 717 | disconnectGoogleCalendar: () => |
| 718 | 718 | apiClient.post(API_ENDPOINTS.GOOGLE_CALENDAR_DISCONNECT), |
| 719 | 719 | syncAllGoogleCalendar: () => |
| 720 | 720 | apiClient.post(API_ENDPOINTS.GOOGLE_CALENDAR_SYNC_ALL), |
| 721 | + /** | |
| 722 | + * One batch of a full resync. Repeat with the returned `next_cursor` until | |
| 723 | + * `done` is true — the server processes a slice per call so a large calendar | |
| 724 | + * can't time out and the UI can show progress. | |
| 725 | + */ | |
| 726 | + resyncGoogleCalendar: (cursor = 0, limit = 25) => | |
| 727 | + apiClient.post(API_ENDPOINTS.GOOGLE_CALENDAR_RESYNC, { cursor, limit }), | |
| 721 | 728 | updateGoogleCalendarSettings: (data: any) => |
| 722 | 729 | apiClient.post(API_ENDPOINTS.GOOGLE_CALENDAR_SETTINGS, data), |
| 723 | 730 | |
| 724 | 731 | // Signed Consents |