[#352] update exceptions on all update without reseting them (#510)

* [#352] update exceptions on all update without reseting them

* [#352] added tests
This commit is contained in:
Camille Moussu
2026-02-11 11:20:10 +01:00
committed by GitHub
parent 6b42597a2c
commit fad1dfe4c5
6 changed files with 792 additions and 92 deletions
@@ -1,4 +1,4 @@
import { updateSeries } from "@/features/Events/EventApi";
import { updateSeries } from "@/features/Events/api/updateSeries";
import { CalendarEvent } from "@/features/Events/EventsTypes";
import { toRejectedError } from "@/utils/errorUtils";
import { createAsyncThunk } from "@reduxjs/toolkit";
+4 -14
View File
@@ -22,17 +22,12 @@ export type VObjectValue =
// VObject property tuple
export type VObjectProperty = [
string,
Record<string, unknown>,
string | Array<unknown>,
Record<string, VObjectValue | VObjectValue[]>,
string,
VObjectValue,
];
export type VCalComponent = [
string,
VObjectProperty[],
VCalComponent[],
...unknown[],
];
export type VCalComponent = [string, VObjectProperty[], VCalComponent[]?];
export interface Organizer {
cn?: string;
@@ -44,12 +39,7 @@ export interface CalendarItem {
_links: CalDavLink;
etag: string;
status: number;
data: [
"vcalendar",
Array<
VObjectProperty | [string, VObjectProperty[], unknown[]] // vevent array
>,
];
data: VCalComponent;
}
// Main calendar data