-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6594797
commit c7262f9
Showing
21 changed files
with
4,981 additions
and
3,514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'cross-fetch/polyfill'; | ||
import { DAVAccount } from './types/models'; | ||
export declare const serviceDiscovery: (params: { | ||
account: DAVAccount; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<string>; | ||
export declare const fetchPrincipalUrl: (params: { | ||
account: DAVAccount; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<string>; | ||
export declare const fetchHomeUrl: (params: { | ||
account: DAVAccount; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<string>; | ||
export declare const createAccount: (params: { | ||
account: DAVAccount; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
loadCollections?: boolean; | ||
loadObjects?: boolean; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVAccount>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { ElementCompact } from 'xml-js'; | ||
import { DAVDepth, DAVResponse } from './types/DAVTypes'; | ||
import { DAVAccount, DAVAddressBook, DAVVCard } from './types/models'; | ||
export declare const addressBookQuery: (params: { | ||
url: string; | ||
props: ElementCompact; | ||
filters?: ElementCompact; | ||
depth?: DAVDepth; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVResponse[]>; | ||
export declare const addressBookMultiGet: (params: { | ||
url: string; | ||
props: ElementCompact; | ||
objectUrls: string[]; | ||
depth: DAVDepth; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVResponse[]>; | ||
export declare const fetchAddressBooks: (params?: { | ||
account?: DAVAccount; | ||
props?: ElementCompact; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVAddressBook[]>; | ||
export declare const fetchVCards: (params: { | ||
addressBook: DAVAddressBook; | ||
headers?: Record<string, string>; | ||
objectUrls?: string[]; | ||
urlFilter?: (url: string) => boolean; | ||
useMultiGet?: boolean; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVVCard[]>; | ||
export declare const createVCard: (params: { | ||
addressBook: DAVAddressBook; | ||
vCardString: string; | ||
filename: string; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<Response>; | ||
export declare const updateVCard: (params: { | ||
vCard: DAVVCard; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<Response>; | ||
export declare const deleteVCard: (params: { | ||
vCard: DAVVCard; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<Response>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
import { ElementCompact } from 'xml-js'; | ||
import { DAVDepth, DAVResponse } from './types/DAVTypes'; | ||
import { SyncCalendars } from './types/functionsOverloads'; | ||
import { DAVAccount, DAVCalendar, DAVCalendarObject } from './types/models'; | ||
export declare const fetchCalendarUserAddresses: (params: { | ||
account: DAVAccount; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<string[]>; | ||
export declare const calendarQuery: (params: { | ||
url: string; | ||
props: ElementCompact; | ||
filters?: ElementCompact; | ||
timezone?: string; | ||
depth?: DAVDepth; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVResponse[]>; | ||
export declare const calendarMultiGet: (params: { | ||
url: string; | ||
props: ElementCompact; | ||
objectUrls?: string[]; | ||
timezone?: string; | ||
depth: DAVDepth; | ||
filters?: ElementCompact; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVResponse[]>; | ||
export declare const makeCalendar: (params: { | ||
url: string; | ||
props: ElementCompact; | ||
depth?: DAVDepth; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVResponse[]>; | ||
export declare const fetchCalendars: (params?: { | ||
account?: DAVAccount; | ||
props?: ElementCompact; | ||
projectedProps?: Record<string, boolean>; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVCalendar[]>; | ||
export declare const fetchCalendarObjects: (params: { | ||
calendar: DAVCalendar; | ||
objectUrls?: string[]; | ||
filters?: ElementCompact; | ||
timeRange?: { | ||
start: string; | ||
end: string; | ||
}; | ||
expand?: boolean; | ||
urlFilter?: (url: string) => boolean; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
useMultiGet?: boolean; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVCalendarObject[]>; | ||
export declare const createCalendarObject: (params: { | ||
calendar: DAVCalendar; | ||
iCalString: string; | ||
filename: string; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<Response>; | ||
export declare const updateCalendarObject: (params: { | ||
calendarObject: DAVCalendarObject; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<Response>; | ||
export declare const deleteCalendarObject: (params: { | ||
calendarObject: DAVCalendarObject; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<Response>; | ||
/** | ||
* Sync remote calendars to local | ||
*/ | ||
export declare const syncCalendars: SyncCalendars; | ||
export declare const freeBusyQuery: (params: { | ||
url: string; | ||
timeRange: { | ||
start: string; | ||
end: string; | ||
}; | ||
depth?: DAVDepth; | ||
headers?: Record<string, string>; | ||
headersToExclude?: string[]; | ||
fetchOptions?: RequestInit; | ||
}) => Promise<DAVResponse>; |
Oops, something went wrong.