1 import type { EncryptedSearchFunctions } from '@proton/encrypted-search';
5 CalendarEventSharedData,
9 } from '@proton/shared/lib/interfaces/calendar';
11 export interface ESOrganizerModel extends Pick<OrganizerModel, 'email' | 'cn'> {}
12 export interface ESAttendeeModel extends Pick<AttendeeModel, 'email' | 'cn' | 'role' | 'partstat'> {}
14 export interface ESCalendarMetadata extends CalendarEventSharedData, CalendarEventMetadata {
20 Attendees: VcalAttendeeProperty[];
21 Organizer?: VcalOrganizerProperty;
22 IsDecryptable: boolean;
25 export interface ESCalendarContent {}
26 export interface ESCalendarSearchParams {
35 * @var remainingCalendarIDs the calendars for which indexation has not been done yet
36 * @var currentCalendarId the calendar for which indexation is currently ongoing. Can be undefined when there no calendar left to be indexed
37 * @var eventCursor the cursor fetched during last query. Can be undefined when starting to index event from a new calendar
39 export type MetadataRecoveryPoint = {
40 remainingCalendarIDs: string[];
41 currentCalendarId?: string;
45 export type EncryptedSearchFunctionsCalendar = EncryptedSearchFunctions<
47 ESCalendarSearchParams,