@nextcloud/files 3.4.1 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/dav/dav.d.ts +11 -0
- package/dist/files/file.d.ts +7 -1
- package/dist/files/fileType.d.ts +2 -19
- package/dist/files/folder.d.ts +9 -1
- package/dist/files/node.d.ts +4 -0
- package/dist/index.cjs +157 -565
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +157 -565
- package/dist/index.mjs.map +1 -1
- package/dist/navigation/column.d.ts +1 -1
- package/dist/navigation/navigation.d.ts +64 -2
- package/dist/permissions.d.ts +2 -19
- package/dist/utils/fileSize.d.ts +2 -20
- package/dist/utils/fileSorting.d.ts +2 -2
- package/dist/utils/filename.d.ts +20 -0
- package/dist/utils/logger.d.ts +0 -21
- package/package.json +9 -7
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
- SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
|
|
3
|
+
- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
4
|
+
-->
|
|
1
5
|
# @nextcloud/files
|
|
2
|
-
[](https://www.npmjs.com/package/@nextcloud/files) [](https://app.codecov.io/gh/nextcloud-libraries/nextcloud-files) [](https://nextcloud-libraries.github.io/nextcloud-files/)
|
|
6
|
+
[](https://www.npmjs.com/package/@nextcloud/files) [](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-files) [](https://app.codecov.io/gh/nextcloud-libraries/nextcloud-files) [](https://nextcloud-libraries.github.io/nextcloud-files/)
|
|
3
7
|
|
|
4
8
|
Nextcloud Files helpers for Nextcloud apps and libraries
|
|
5
9
|
|
package/dist/dav/dav.d.ts
CHANGED
|
@@ -2,12 +2,23 @@ import { FileStat, WebDAVClient } from 'webdav';
|
|
|
2
2
|
import { Node } from '../files/node';
|
|
3
3
|
import { CancelablePromise } from 'cancelable-promise';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Get the DAV root path for the current user or public share
|
|
7
|
+
*/
|
|
8
|
+
export declare function davGetRootPath(): string;
|
|
5
9
|
/**
|
|
6
10
|
* The DAV root path for the current user
|
|
11
|
+
* This is a cached version of `davGetRemoteURL`
|
|
7
12
|
*/
|
|
8
13
|
export declare const davRootPath: string;
|
|
14
|
+
/**
|
|
15
|
+
* Get the DAV remote URL used as base URL for the WebDAV client
|
|
16
|
+
* It also handles public shares
|
|
17
|
+
*/
|
|
18
|
+
export declare function davGetRemoteURL(): string;
|
|
9
19
|
/**
|
|
10
20
|
* The DAV remote URL used as base URL for the WebDAV client
|
|
21
|
+
* This is a cached version of `davGetRemoteURL`
|
|
11
22
|
*/
|
|
12
23
|
export declare const davRemoteURL: string;
|
|
13
24
|
/**
|
package/dist/files/file.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { FileType } from './fileType';
|
|
2
|
-
import { Node } from './node';
|
|
2
|
+
import { INode, Node } from './node';
|
|
3
3
|
|
|
4
4
|
export declare class File extends Node {
|
|
5
5
|
get type(): FileType;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Interface of the File class
|
|
9
|
+
*/
|
|
10
|
+
export interface IFile extends INode {
|
|
11
|
+
readonly type: FileType.File;
|
|
12
|
+
}
|
package/dist/files/fileType.d.ts
CHANGED
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author John Molakvoæ <skjnldsv@protonmail.com>
|
|
5
|
-
*
|
|
6
|
-
* @license AGPL-3.0-or-later
|
|
7
|
-
*
|
|
8
|
-
* This program is free software: you can redistribute it and/or modify
|
|
9
|
-
* it under the terms of the GNU Affero General Public License as
|
|
10
|
-
* published by the Free Software Foundation, either version 3 of the
|
|
11
|
-
* License, or (at your option) any later version.
|
|
12
|
-
*
|
|
13
|
-
* This program is distributed in the hope that it will be useful,
|
|
14
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
* GNU Affero General Public License for more details.
|
|
17
|
-
*
|
|
18
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
19
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
-
*
|
|
2
|
+
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
3
|
+
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
21
4
|
*/
|
|
22
5
|
export declare enum FileType {
|
|
23
6
|
Folder = "folder",
|
package/dist/files/folder.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileType } from './fileType';
|
|
2
|
-
import { Node } from './node';
|
|
2
|
+
import { INode, Node } from './node';
|
|
3
3
|
import { NodeData } from './nodeData';
|
|
4
4
|
|
|
5
5
|
export declare class Folder extends Node {
|
|
@@ -8,3 +8,11 @@ export declare class Folder extends Node {
|
|
|
8
8
|
get extension(): string | null;
|
|
9
9
|
get mime(): string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Interface of the folder class
|
|
13
|
+
*/
|
|
14
|
+
export interface IFolder extends INode {
|
|
15
|
+
readonly type: FileType.Folder;
|
|
16
|
+
readonly extension: null;
|
|
17
|
+
readonly mime: 'httpd/unix-directory';
|
|
18
|
+
}
|