forceCalendar
API Reference

EnhancedCalendar

API reference for the EnhancedCalendar class.

import { EnhancedCalendar } from '@forcecalendar/core';

Extends Calendar. Inherits all Calendar methods.

Constructor

new EnhancedCalendar(config?: CalendarConfig)

Same constructor parameters as Calendar.

Search Methods

MethodSignatureReturns
search(query: string, options?: SearchOptions) => Promise<SearchResult[]>Search results
advancedSearch(query: string, filters?: object, options?: SearchOptions) => Promise<SearchResult[]>Filtered search results
getSuggestions(partial: string, field?: string) => Promise<string[]>Autocomplete suggestions

SearchOptions

OptionTypeDefault
fieldsstring[]['title', 'description', 'location']
fuzzybooleanfalse
limitnumber50

Enhanced Recurrence

MethodSignatureReturns
getEventsInRange(start: Date, end: Date, options?: object) => Event[]Events with enhanced recurrence
modifyOccurrence(eventId: string, date: Date, mods: object) => void
cancelOccurrence(eventId: string, date: Date, reason?: string) => void
bulkModifyOccurrences(eventId: string, range: object, mods: object) => void

Import/Export

MethodSignatureReturns
exportWithRecurrence(format: string) => stringExported data
importWithRecurrence(data: string, format: string) => void

Performance

MethodSignatureReturns
getPerformanceStats() => objectPerformance metrics

Lifecycle

MethodSignatureReturns
destroy() => void