Skip to content

Commit c7262f9

Browse files
committed
fix build issue
1 parent 6594797 commit c7262f9

21 files changed

+4981
-3514
lines changed

dist/account.d.ts

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import 'cross-fetch/polyfill';
2+
import { DAVAccount } from './types/models';
3+
export declare const serviceDiscovery: (params: {
4+
account: DAVAccount;
5+
headers?: Record<string, string>;
6+
headersToExclude?: string[];
7+
fetchOptions?: RequestInit;
8+
}) => Promise<string>;
9+
export declare const fetchPrincipalUrl: (params: {
10+
account: DAVAccount;
11+
headers?: Record<string, string>;
12+
headersToExclude?: string[];
13+
fetchOptions?: RequestInit;
14+
}) => Promise<string>;
15+
export declare const fetchHomeUrl: (params: {
16+
account: DAVAccount;
17+
headers?: Record<string, string>;
18+
headersToExclude?: string[];
19+
fetchOptions?: RequestInit;
20+
}) => Promise<string>;
21+
export declare const createAccount: (params: {
22+
account: DAVAccount;
23+
headers?: Record<string, string>;
24+
headersToExclude?: string[];
25+
loadCollections?: boolean;
26+
loadObjects?: boolean;
27+
fetchOptions?: RequestInit;
28+
}) => Promise<DAVAccount>;

dist/addressBook.d.ts

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import { ElementCompact } from 'xml-js';
2+
import { DAVDepth, DAVResponse } from './types/DAVTypes';
3+
import { DAVAccount, DAVAddressBook, DAVVCard } from './types/models';
4+
export declare const addressBookQuery: (params: {
5+
url: string;
6+
props: ElementCompact;
7+
filters?: ElementCompact;
8+
depth?: DAVDepth;
9+
headers?: Record<string, string>;
10+
headersToExclude?: string[];
11+
fetchOptions?: RequestInit;
12+
}) => Promise<DAVResponse[]>;
13+
export declare const addressBookMultiGet: (params: {
14+
url: string;
15+
props: ElementCompact;
16+
objectUrls: string[];
17+
depth: DAVDepth;
18+
headers?: Record<string, string>;
19+
headersToExclude?: string[];
20+
fetchOptions?: RequestInit;
21+
}) => Promise<DAVResponse[]>;
22+
export declare const fetchAddressBooks: (params?: {
23+
account?: DAVAccount;
24+
props?: ElementCompact;
25+
headers?: Record<string, string>;
26+
headersToExclude?: string[];
27+
fetchOptions?: RequestInit;
28+
}) => Promise<DAVAddressBook[]>;
29+
export declare const fetchVCards: (params: {
30+
addressBook: DAVAddressBook;
31+
headers?: Record<string, string>;
32+
objectUrls?: string[];
33+
urlFilter?: (url: string) => boolean;
34+
useMultiGet?: boolean;
35+
headersToExclude?: string[];
36+
fetchOptions?: RequestInit;
37+
}) => Promise<DAVVCard[]>;
38+
export declare const createVCard: (params: {
39+
addressBook: DAVAddressBook;
40+
vCardString: string;
41+
filename: string;
42+
headers?: Record<string, string>;
43+
headersToExclude?: string[];
44+
fetchOptions?: RequestInit;
45+
}) => Promise<Response>;
46+
export declare const updateVCard: (params: {
47+
vCard: DAVVCard;
48+
headers?: Record<string, string>;
49+
headersToExclude?: string[];
50+
fetchOptions?: RequestInit;
51+
}) => Promise<Response>;
52+
export declare const deleteVCard: (params: {
53+
vCard: DAVVCard;
54+
headers?: Record<string, string>;
55+
headersToExclude?: string[];
56+
fetchOptions?: RequestInit;
57+
}) => Promise<Response>;

dist/calendar.d.ts

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
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

Comments
 (0)