|
| 1 | +import { ElementCompact } from 'xml-js'; |
| 2 | +import { DAVDepth, DAVResponse } from './types/DAVTypes'; |
| 3 | +import { SyncCalendars } from './types/functionsOverloads'; |
| 4 | +import { DAVAccount, DAVCalendar, DAVCalendarObject } from './types/models'; |
| 5 | +export declare const fetchCalendarUserAddresses: (params: { |
| 6 | + account: DAVAccount; |
| 7 | + headers?: Record<string, string>; |
| 8 | + headersToExclude?: string[]; |
| 9 | + fetchOptions?: RequestInit; |
| 10 | +}) => Promise<string[]>; |
| 11 | +export declare const calendarQuery: (params: { |
| 12 | + url: string; |
| 13 | + props: ElementCompact; |
| 14 | + filters?: ElementCompact; |
| 15 | + timezone?: string; |
| 16 | + depth?: DAVDepth; |
| 17 | + headers?: Record<string, string>; |
| 18 | + headersToExclude?: string[]; |
| 19 | + fetchOptions?: RequestInit; |
| 20 | +}) => Promise<DAVResponse[]>; |
| 21 | +export declare const calendarMultiGet: (params: { |
| 22 | + url: string; |
| 23 | + props: ElementCompact; |
| 24 | + objectUrls?: string[]; |
| 25 | + timezone?: string; |
| 26 | + depth: DAVDepth; |
| 27 | + filters?: ElementCompact; |
| 28 | + headers?: Record<string, string>; |
| 29 | + headersToExclude?: string[]; |
| 30 | + fetchOptions?: RequestInit; |
| 31 | +}) => Promise<DAVResponse[]>; |
| 32 | +export declare const makeCalendar: (params: { |
| 33 | + url: string; |
| 34 | + props: ElementCompact; |
| 35 | + depth?: DAVDepth; |
| 36 | + headers?: Record<string, string>; |
| 37 | + headersToExclude?: string[]; |
| 38 | + fetchOptions?: RequestInit; |
| 39 | +}) => Promise<DAVResponse[]>; |
| 40 | +export declare const fetchCalendars: (params?: { |
| 41 | + account?: DAVAccount; |
| 42 | + props?: ElementCompact; |
| 43 | + projectedProps?: Record<string, boolean>; |
| 44 | + headers?: Record<string, string>; |
| 45 | + headersToExclude?: string[]; |
| 46 | + fetchOptions?: RequestInit; |
| 47 | +}) => Promise<DAVCalendar[]>; |
| 48 | +export declare const fetchCalendarObjects: (params: { |
| 49 | + calendar: DAVCalendar; |
| 50 | + objectUrls?: string[]; |
| 51 | + filters?: ElementCompact; |
| 52 | + timeRange?: { |
| 53 | + start: string; |
| 54 | + end: string; |
| 55 | + }; |
| 56 | + expand?: boolean; |
| 57 | + urlFilter?: (url: string) => boolean; |
| 58 | + headers?: Record<string, string>; |
| 59 | + headersToExclude?: string[]; |
| 60 | + useMultiGet?: boolean; |
| 61 | + fetchOptions?: RequestInit; |
| 62 | +}) => Promise<DAVCalendarObject[]>; |
| 63 | +export declare const createCalendarObject: (params: { |
| 64 | + calendar: DAVCalendar; |
| 65 | + iCalString: string; |
| 66 | + filename: string; |
| 67 | + headers?: Record<string, string>; |
| 68 | + headersToExclude?: string[]; |
| 69 | + fetchOptions?: RequestInit; |
| 70 | +}) => Promise<Response>; |
| 71 | +export declare const updateCalendarObject: (params: { |
| 72 | + calendarObject: DAVCalendarObject; |
| 73 | + headers?: Record<string, string>; |
| 74 | + headersToExclude?: string[]; |
| 75 | + fetchOptions?: RequestInit; |
| 76 | +}) => Promise<Response>; |
| 77 | +export declare const deleteCalendarObject: (params: { |
| 78 | + calendarObject: DAVCalendarObject; |
| 79 | + headers?: Record<string, string>; |
| 80 | + headersToExclude?: string[]; |
| 81 | + fetchOptions?: RequestInit; |
| 82 | +}) => Promise<Response>; |
| 83 | +/** |
| 84 | + * Sync remote calendars to local |
| 85 | + */ |
| 86 | +export declare const syncCalendars: SyncCalendars; |
| 87 | +export declare const freeBusyQuery: (params: { |
| 88 | + url: string; |
| 89 | + timeRange: { |
| 90 | + start: string; |
| 91 | + end: string; |
| 92 | + }; |
| 93 | + depth?: DAVDepth; |
| 94 | + headers?: Record<string, string>; |
| 95 | + headersToExclude?: string[]; |
| 96 | + fetchOptions?: RequestInit; |
| 97 | +}) => Promise<DAVResponse>; |
0 commit comments