Skip to main content

getIndex

client.calendar.getIndex(params?: CalendarFilterOptions): Promise<CalendarIndexEntry[]>

Retrieves the calendar index.

Returns an indexed view of calendar events, optimized for fast lookups and navigation across large numbers of events.

Parameters​

ParameterTypeRequiredDescription
paramsCalendarFilterOptionsNoOptional filter options

Returns​

Promise<CalendarIndexEntry[]> — A promise that resolves to an array of CalendarIndexEntry objects

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.calendar.getIndex();
console.log(result);