Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dist/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export declare const createDAVClient: (params: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<DAVResponse[]>;
todoMultiGet: (params: {
url: string;
Expand All @@ -288,6 +289,7 @@ export declare const createDAVClient: (params: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<DAVResponse[]>;
fetchTodos: (params: {
calendar: DAVCalendar;
Expand All @@ -303,6 +305,7 @@ export declare const createDAVClient: (params: {
headersToExclude?: string[];
useMultiGet?: boolean;
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<DAVObject[]>;
createTodo: (params: {
calendar: DAVCalendar;
Expand All @@ -311,18 +314,21 @@ export declare const createDAVClient: (params: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
updateTodo: (params: {
calendarObject: DAVCalendarObject;
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
deleteTodo: (params: {
calendarObject: DAVCalendarObject;
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
}>;
export declare class DAVClient {
Expand Down
12 changes: 12 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ declare const _default: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<import("./types/DAVTypes").DAVResponse[]>;
todoMultiGet: (params: {
url: string;
Expand All @@ -64,6 +65,7 @@ declare const _default: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<import("./types/DAVTypes").DAVResponse[]>;
fetchTodos: (params: {
calendar: import("./types/models").DAVCalendar;
Expand All @@ -79,6 +81,7 @@ declare const _default: {
headersToExclude?: string[];
useMultiGet?: boolean;
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<import("./types/models").DAVCalendarObject[]>;
createTodo: (params: {
calendar: import("./types/models").DAVCalendar;
Expand All @@ -87,18 +90,21 @@ declare const _default: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
updateTodo: (params: {
calendarObject: import("./types/models").DAVCalendarObject;
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
deleteTodo: (params: {
calendarObject: import("./types/models").DAVCalendarObject;
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
fetchCalendarUserAddresses: (params: {
account: import("./types/models").DAVAccount;
Expand Down Expand Up @@ -659,6 +665,7 @@ declare const _default: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<import("./types/DAVTypes").DAVResponse[]>;
todoMultiGet: (params: {
url: string;
Expand All @@ -670,6 +677,7 @@ declare const _default: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<import("./types/DAVTypes").DAVResponse[]>;
fetchTodos: (params: {
calendar: import("./types/models").DAVCalendar;
Expand All @@ -685,6 +693,7 @@ declare const _default: {
headersToExclude?: string[];
useMultiGet?: boolean;
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<import("./types/models").DAVObject[]>;
createTodo: (params: {
calendar: import("./types/models").DAVCalendar;
Expand All @@ -693,18 +702,21 @@ declare const _default: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
updateTodo: (params: {
calendarObject: import("./types/models").DAVCalendarObject;
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
deleteTodo: (params: {
calendarObject: import("./types/models").DAVCalendarObject;
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
}>;
DAVClient: typeof client.DAVClient;
Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsdav",
"version": "2.3.2",
"version": "2.3.3",
"description": "WebDAV, CALDAV, and CARDDAV client for Nodejs and the Browser",
"keywords": [
"dav",
Expand Down
12 changes: 12 additions & 0 deletions dist/todo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { DAVCalendar, DAVCalendarObject } from './types/models';
* @param params.headers - Request headers
* @param params.headersToExclude - Headers to exclude
* @param params.fetchOptions - Fetch options
* @param params.fetch - Optional fetch implementation to use instead of the default
* @returns Array of DAV responses
*/
export declare const todoQuery: (params: {
Expand All @@ -23,6 +24,7 @@ export declare const todoQuery: (params: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<DAVResponse[]>;
/**
* Fetch multiple todos by URL using CalDAV calendar-multiget
Expand All @@ -36,6 +38,7 @@ export declare const todoQuery: (params: {
* @param params.headers - Request headers
* @param params.headersToExclude - Headers to exclude
* @param params.fetchOptions - Fetch options
* @param params.fetch - Optional fetch implementation to use instead of the default
* @returns Array of DAV responses
*/
export declare const todoMultiGet: (params: {
Expand All @@ -48,6 +51,7 @@ export declare const todoMultiGet: (params: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<DAVResponse[]>;
/**
* Fetch VTODO objects from a CalDAV calendar with optional filtering
Expand All @@ -62,6 +66,7 @@ export declare const todoMultiGet: (params: {
* @param params.headersToExclude - Headers to exclude
* @param params.useMultiGet - Whether to use multiget (default: true)
* @param params.fetchOptions - Fetch options
* @param params.fetch - Optional fetch implementation to use instead of the default
* @returns Array of todo objects with url, etag, and iCalendar data
* @throws Error if calendar URL is missing or timeRange format is invalid
*/
Expand All @@ -79,6 +84,7 @@ export declare const fetchTodos: (params: {
headersToExclude?: string[];
useMultiGet?: boolean;
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<DAVCalendarObject[]>;
/**
* Create a new VTODO object in a CalDAV calendar
Expand All @@ -89,6 +95,7 @@ export declare const fetchTodos: (params: {
* @param params.headers - Request headers
* @param params.headersToExclude - Headers to exclude
* @param params.fetchOptions - Fetch options
* @param params.fetch - Optional fetch implementation to use instead of the default
* @returns Response from the server
* @throws Error if iCalString does not contain a UID
*/
Expand All @@ -99,6 +106,7 @@ export declare const createTodo: (params: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
/**
* Update an existing VTODO object in a CalDAV calendar
Expand All @@ -107,6 +115,7 @@ export declare const createTodo: (params: {
* @param params.headers - Request headers
* @param params.headersToExclude - Headers to exclude
* @param params.fetchOptions - Fetch options
* @param params.fetch - Optional fetch implementation to use instead of the default
* @returns Response from the server
* @throws Error if calendarObject does not have an etag
*/
Expand All @@ -115,6 +124,7 @@ export declare const updateTodo: (params: {
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
/**
* Delete a VTODO object from a CalDAV calendar
Expand All @@ -123,11 +133,13 @@ export declare const updateTodo: (params: {
* @param params.headers - Request headers
* @param params.headersToExclude - Headers to exclude
* @param params.fetchOptions - Fetch options
* @param params.fetch - Optional fetch implementation to use instead of the default
* @returns Response from the server
*/
export declare const deleteTodo: (params: {
calendarObject: DAVCalendarObject;
headers?: Record<string, string>;
headersToExclude?: string[];
fetchOptions?: RequestInit;
fetch?: typeof fetch;
}) => Promise<Response>;
Loading
Loading