Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
natelindev committed Dec 10, 2024
1 parent 6594797 commit c7262f9
Show file tree
Hide file tree
Showing 21 changed files with 4,981 additions and 3,514 deletions.
28 changes: 28 additions & 0 deletions dist/account.d.ts
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>;
57 changes: 57 additions & 0 deletions dist/addressBook.d.ts
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>;
97 changes: 97 additions & 0 deletions dist/calendar.d.ts
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>;
Loading

0 comments on commit c7262f9

Please sign in to comment.