* [#352] update exceptions on all update without reseting them * [#352] added tests
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user