Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
@@ -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",
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user