mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-23 07:08:17 +02:00
Feature: Gestion événements toute la journée et édition RDV
This commit is contained in:
4 files changed
+359
-9
No files matched your search
@@ -11,6 +11,7 @@ export interface CalendarEvent {
|
||||
location?: string;
|
||||
html_link?: string;
|
||||
synced_at?: string;
|
||||
all_day?: boolean;
|
||||
}
|
||||
|
||||
class CalendarService {
|
||||
@@ -110,6 +111,25 @@ class CalendarService {
|
||||
const response = await axios.post(`${this.baseURL}/events`, eventData, this.getAuthHeader());
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mettre à jour un événement dans Google Calendar
|
||||
*/
|
||||
async updateEvent(eventId: number, eventData: {
|
||||
title: string;
|
||||
description?: string;
|
||||
startDateTime: string;
|
||||
endDateTime: string;
|
||||
location?: string;
|
||||
attendees?: string[];
|
||||
reminders?: Array<{ method: string; minutes: number }>;
|
||||
recurrence?: string[];
|
||||
visibility?: string;
|
||||
colorId?: string;
|
||||
}): Promise<{ eventId: string; htmlLink: string }> {
|
||||
const response = await axios.put(`${this.baseURL}/events/${eventId}`, eventData, this.getAuthHeader());
|
||||
return response.data;
|
||||
}
|
||||
}
|
||||
|
||||
export default new CalendarService();
|
||||
Reference in new issue
Block a user