- Introduced a new `webdav-component` package for WebDAV protocol handling. - Implemented `webdav.ts` with functions for managing WebDAV operations such as listing directories, checking file existence, creating folders, deleting paths, moving files, and handling file uploads/downloads. - Added path normalization and utility functions for handling WebDAV paths. - Enhanced the `Tag` class in `webdav3.py` to correctly register XML namespaces, improving compatibility with WebDAV responses.
27 lines
1.0 KiB
TypeScript
27 lines
1.0 KiB
TypeScript
/**
|
|
* WOPI discovery & URL helpers. The manager holds a single WopiRegistry
|
|
* populated from a discovery XML document.
|
|
*/
|
|
export interface WopiApp {
|
|
name: string;
|
|
urlSrc: string;
|
|
ext: string | null;
|
|
}
|
|
export declare class WopiRegistry {
|
|
/** Apps keyed by MIME type. */
|
|
private readonly byMime;
|
|
/** Apps keyed by file extension. */
|
|
private readonly byExt;
|
|
/**
|
|
* Parse a WOPI discovery XML document and populate the registry.
|
|
* Discovery is a `<wopi-discovery>` with nested `<app>` and `<action>` tags.
|
|
*/
|
|
static load(url: string, fetchImpl?: typeof fetch): Promise<WopiRegistry>;
|
|
/** Find the edit URL for a given file (by name) and MIME type. */
|
|
getEditUrl(name: string, mime: string | null): string | null;
|
|
/** Find the view URL for a given file (by name) and MIME type. */
|
|
getViewUrl(name: string, mime: string | null): string | null;
|
|
/** True if the registry knows about any file types. */
|
|
get hasApps(): boolean;
|
|
}
|
|
//# sourceMappingURL=wopi.d.ts.map
|