[#397 bis] added participation management on event from thunderbird (#432)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2026-01-07 11:45:17 +01:00
committed by GitHub
parent e59d878e6c
commit 9ff75056c7
47 changed files with 550 additions and 366 deletions
@@ -0,0 +1,19 @@
import { userAttendee } from "./attendee";
export function createAttendee(options?: {
cal_address?: string;
cn?: string;
role?: userAttendee["role"];
partstat?: userAttendee["partstat"];
rsvp?: userAttendee["rsvp"];
cutype?: userAttendee["cutype"];
}): userAttendee {
return {
cal_address: options?.cal_address ?? "",
cn: options?.cn ?? "",
cutype: options?.cutype ?? "INDIVIDUAL",
role: options?.role ?? "REQ-PARTICIPANT",
partstat: options?.partstat ?? "NEEDS-ACTION",
rsvp: options?.rsvp ?? "FALSE",
};
}
+12
View File
@@ -0,0 +1,12 @@
export type AttendeeRole = "CHAIR" | "REQ-PARTICIPANT" | "OPT-PARTICIPANT";
export type CuType = "INDIVIDUAL" | "GROUP";
export type PartStat = "ACCEPTED" | "DECLINED" | "TENTATIVE" | "NEEDS-ACTION";
export interface userAttendee {
cal_address: string;
partstat: PartStat;
role: AttendeeRole;
cutype: CuType;
rsvp: "TRUE" | "FALSE";
cn: string;
}
-9
View File
@@ -33,12 +33,3 @@ export interface userOrganiser {
cn: string;
cal_address: string;
}
export interface userAttendee {
cn?: string;
cal_address: string;
partstat: string;
rsvp: string;
role: string;
cutype: string;
}