@opencloud-eu/web-client 5.1.0 → 6.1.0
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/dist/axios-Drchb9eh.js +1646 -0
- package/dist/dist-tjee3PVd.js +809 -0
- package/dist/generated-B6vcMOfs.js +3317 -0
- package/dist/graph-DcYhPBws.js +372 -0
- package/dist/helpers-B0hzJ78Q.js +1463 -0
- package/dist/ocs-2K0ogAXF.js +1658 -0
- package/dist/src/graph/activities/activities.d.ts +2 -2
- package/dist/src/graph/activities/types.d.ts +2 -2
- package/dist/src/graph/applications/applications.d.ts +2 -2
- package/dist/src/graph/applications/types.d.ts +2 -2
- package/dist/src/graph/driveItems/driveItems.d.ts +2 -2
- package/dist/src/graph/driveItems/types.d.ts +3 -1
- package/dist/src/graph/drives/drives.d.ts +2 -2
- package/dist/src/graph/drives/types.d.ts +4 -3
- package/dist/src/graph/generated/api.d.ts +394 -1720
- package/dist/src/graph/generated/base.d.ts +11 -24
- package/dist/src/graph/generated/common.d.ts +15 -35
- package/dist/src/graph/generated/configuration.d.ts +24 -17
- package/dist/src/graph/generated/index.d.ts +2 -2
- package/dist/src/graph/groups/groups.d.ts +2 -2
- package/dist/src/graph/groups/types.d.ts +2 -2
- package/dist/src/graph/index.d.ts +2 -2
- package/dist/src/graph/permissions/permissions.d.ts +2 -2
- package/dist/src/graph/permissions/types.d.ts +2 -2
- package/dist/src/graph/photos/photo.d.ts +2 -2
- package/dist/src/graph/photos/types.d.ts +1 -1
- package/dist/src/graph/tags/tags.d.ts +2 -2
- package/dist/src/graph/tags/types.d.ts +2 -2
- package/dist/src/graph/types.d.ts +2 -2
- package/dist/src/graph/users/types.d.ts +2 -2
- package/dist/src/graph/users/users.d.ts +2 -2
- package/dist/src/helpers/space/functions.d.ts +1 -1
- package/dist/src/webdav/clearTrashBin.d.ts +1 -1
- package/dist/src/webdav/copyFiles.d.ts +1 -1
- package/dist/src/webdav/deleteFile.d.ts +1 -1
- package/dist/src/webdav/listFileVersions.d.ts +1 -1
- package/dist/src/webdav/moveFiles.d.ts +1 -1
- package/dist/src/webdav/putFileContents.d.ts +1 -1
- package/dist/src/webdav/restoreFile.d.ts +1 -1
- package/dist/src/webdav/restoreFileVersion.d.ts +1 -1
- package/dist/src/webdav/setFavorite.d.ts +1 -1
- package/dist/src/webdav/types.d.ts +0 -2
- package/dist/toString-tGn_k7yU.js +287 -0
- package/dist/web-client/graph/generated.js +2 -5757
- package/dist/web-client/graph.js +2 -5
- package/dist/web-client/ocs.js +2 -5
- package/dist/web-client/sse.js +195 -201
- package/dist/web-client/webdav.js +3 -10
- package/dist/web-client.js +6 -82
- package/dist/webdav-CcBUJk4K.js +4423 -0
- package/package.json +8 -14
- package/dist/functions-JSgappH3.js +0 -1189
- package/dist/functions-K2XX5sqY.cjs +0 -1
- package/dist/index-Bjk4YP4o.js +0 -1447
- package/dist/index-Brk6gzFd.js +0 -688
- package/dist/index-CDNcS2Ra.cjs +0 -1
- package/dist/index-CRMq09Yn.js +0 -1933
- package/dist/index-D0bnLDAA.cjs +0 -1
- package/dist/index-Dn0XwAD_.cjs +0 -13
- package/dist/index-YuBBVVCr.js +0 -3860
- package/dist/index-_QOU-c0Z.cjs +0 -4
- package/dist/index-cttW6Cve.js +0 -1018
- package/dist/index-mNoGEl9R.cjs +0 -6
- package/dist/src/webdav/listFavoriteFiles.d.ts +0 -12
- package/dist/toString-CKeGA2IK.js +0 -255
- package/dist/toString-DsGM1XcL.cjs +0 -1
- package/dist/vite.config.d.ts +0 -2
- package/dist/web-client/graph/generated.cjs +0 -1
- package/dist/web-client/graph.cjs +0 -1
- package/dist/web-client/ocs.cjs +0 -1
- package/dist/web-client/sse.cjs +0 -2
- package/dist/web-client/webdav.cjs +0 -1
- package/dist/web-client.cjs +0 -1
|
@@ -1,42 +1,33 @@
|
|
|
1
|
-
import { Configuration } from './configuration';
|
|
2
|
-
import { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
3
|
-
export declare const BASE_PATH: string;
|
|
4
1
|
/**
|
|
2
|
+
* Libre Graph API
|
|
3
|
+
* Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1.0.8
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
7
11
|
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
8
15
|
export declare const COLLECTION_FORMATS: {
|
|
9
16
|
csv: string;
|
|
10
17
|
ssv: string;
|
|
11
18
|
tsv: string;
|
|
12
19
|
pipes: string;
|
|
13
20
|
};
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface RequestArgs
|
|
18
|
-
*/
|
|
19
21
|
export interface RequestArgs {
|
|
20
22
|
url: string;
|
|
21
23
|
options: RawAxiosRequestConfig;
|
|
22
24
|
}
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @class BaseAPI
|
|
27
|
-
*/
|
|
28
25
|
export declare class BaseAPI {
|
|
29
26
|
protected basePath: string;
|
|
30
27
|
protected axios: AxiosInstance;
|
|
31
28
|
protected configuration: Configuration | undefined;
|
|
32
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
33
30
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class RequiredError
|
|
38
|
-
* @extends {Error}
|
|
39
|
-
*/
|
|
40
31
|
export declare class RequiredError extends Error {
|
|
41
32
|
field: string;
|
|
42
33
|
constructor(field: string, msg?: string);
|
|
@@ -47,9 +38,5 @@ interface ServerMap {
|
|
|
47
38
|
description: string;
|
|
48
39
|
}[];
|
|
49
40
|
}
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @export
|
|
53
|
-
*/
|
|
54
41
|
export declare const operationServerMap: ServerMap;
|
|
55
42
|
export {};
|
|
@@ -1,54 +1,34 @@
|
|
|
1
|
-
import { Configuration } from './configuration';
|
|
2
|
-
import { RequestArgs } from './base';
|
|
3
|
-
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
4
1
|
/**
|
|
2
|
+
* Libre Graph API
|
|
3
|
+
* Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
|
|
5
4
|
*
|
|
6
|
-
*
|
|
5
|
+
* The version of the OpenAPI document: v1.0.8
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
7
11
|
*/
|
|
12
|
+
import type { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
8
15
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
9
16
|
/**
|
|
10
17
|
*
|
|
11
18
|
* @throws {RequiredError}
|
|
12
|
-
* @export
|
|
13
19
|
*/
|
|
14
20
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
21
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @export
|
|
23
|
-
*/
|
|
24
22
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
23
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
24
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
25
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
40
26
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
27
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
28
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
43
30
|
*/
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
44
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
*/
|
|
49
33
|
export declare const toPathString: (url: URL) => string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @export
|
|
53
|
-
*/
|
|
54
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -9,11 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -23,49 +35,43 @@ export declare class Configuration {
|
|
|
23
35
|
/**
|
|
24
36
|
* parameter for apiKey security
|
|
25
37
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
38
|
*/
|
|
28
39
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
40
|
/**
|
|
30
41
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
42
|
*/
|
|
35
43
|
username?: string;
|
|
36
44
|
/**
|
|
37
45
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
46
|
*/
|
|
42
47
|
password?: string;
|
|
43
48
|
/**
|
|
44
49
|
* parameter for oauth2 security
|
|
45
50
|
* @param name security name
|
|
46
51
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
52
|
*/
|
|
49
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* @
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
54
62
|
* @memberof Configuration
|
|
55
63
|
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
65
|
+
/**
|
|
66
|
+
* override base path
|
|
67
|
+
*/
|
|
56
68
|
basePath?: string;
|
|
57
69
|
/**
|
|
58
70
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
71
|
*/
|
|
63
72
|
serverIndex?: number;
|
|
64
73
|
/**
|
|
65
74
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
75
|
*/
|
|
70
76
|
baseOptions?: any;
|
|
71
77
|
/**
|
|
@@ -89,3 +95,4 @@ export declare class Configuration {
|
|
|
89
95
|
*/
|
|
90
96
|
isJsonMime(mime: string): boolean;
|
|
91
97
|
}
|
|
98
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphFactoryOptions } from './../types';
|
|
2
|
-
import { GraphGroups } from './types';
|
|
1
|
+
import type { GraphFactoryOptions } from './../types';
|
|
2
|
+
import type { GraphGroups } from './types';
|
|
3
3
|
export declare const GroupsFactory: ({ axiosClient, config }: GraphFactoryOptions) => GraphGroups;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Group } from '../generated';
|
|
2
|
-
import { GraphRequestOptions } from '../types';
|
|
1
|
+
import type { Group } from '../generated';
|
|
2
|
+
import type { GraphRequestOptions } from '../types';
|
|
3
3
|
export interface GraphGroups {
|
|
4
4
|
getGroup: (id: string, options?: {
|
|
5
5
|
expand?: Array<'members'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import { GraphUsers } from './users';
|
|
3
|
-
import { GraphGroups } from './groups';
|
|
2
|
+
import { type GraphUsers } from './users';
|
|
3
|
+
import { type GraphGroups } from './groups';
|
|
4
4
|
import { GraphApplications } from './applications';
|
|
5
5
|
import { GraphDrives } from './drives';
|
|
6
6
|
import { GraphDriveItems } from './driveItems';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphFactoryOptions } from './../types';
|
|
2
|
-
import { GraphPermissions } from './types';
|
|
1
|
+
import type { GraphFactoryOptions } from './../types';
|
|
2
|
+
import type { GraphPermissions } from './types';
|
|
3
3
|
export declare const PermissionsFactory: ({ axiosClient, config }: GraphFactoryOptions) => GraphPermissions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CollaboratorShare, LinkShare, ShareRole } from '../../helpers';
|
|
2
|
-
import { DriveItemCreateLink, DriveItemInvite, ListPermissionsSpaceRootSelectEnum, Permission, SharingLinkPassword, UnifiedRoleDefinition } from '../generated';
|
|
3
|
-
import { GraphRequestOptions } from '../types';
|
|
2
|
+
import type { DriveItemCreateLink, DriveItemInvite, ListPermissionsSpaceRootSelectEnum, Permission, SharingLinkPassword, UnifiedRoleDefinition } from '../generated';
|
|
3
|
+
import type { GraphRequestOptions } from '../types';
|
|
4
4
|
type Share = CollaboratorShare | LinkShare;
|
|
5
5
|
type ListPermissionsResponse = {
|
|
6
6
|
shares: Share[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphFactoryOptions } from './../types';
|
|
2
|
-
import { GraphPhotos } from './types';
|
|
1
|
+
import type { GraphFactoryOptions } from './../types';
|
|
2
|
+
import type { GraphPhotos } from './types';
|
|
3
3
|
export declare const PhotoFactory: ({ axiosClient, config }: GraphFactoryOptions) => GraphPhotos;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphRequestOptions } from '../types';
|
|
1
|
+
import type { GraphRequestOptions } from '../types';
|
|
2
2
|
export interface GraphPhotos {
|
|
3
3
|
getOwnUserPhoto: (requestOptions?: GraphRequestOptions) => Promise<File>;
|
|
4
4
|
deleteOwnUserPhoto: (requestOptions?: GraphRequestOptions) => Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphFactoryOptions } from './../types';
|
|
2
|
-
import { GraphTags } from './types';
|
|
1
|
+
import type { GraphFactoryOptions } from './../types';
|
|
2
|
+
import type { GraphTags } from './types';
|
|
3
3
|
export declare const TagsFactory: ({ axiosClient, config }: GraphFactoryOptions) => GraphTags;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TagAssignment, TagUnassignment } from '../generated';
|
|
2
|
-
import { GraphRequestOptions } from '../types';
|
|
1
|
+
import type { TagAssignment, TagUnassignment } from '../generated';
|
|
2
|
+
import type { GraphRequestOptions } from '../types';
|
|
3
3
|
export interface GraphTags {
|
|
4
4
|
listTags(requestOptions?: GraphRequestOptions): Promise<string[]>;
|
|
5
5
|
assignTags(data: TagAssignment, requestOptions?: GraphRequestOptions): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AxiosInstance, ResponseType } from 'axios';
|
|
2
|
-
import { Configuration } from './generated';
|
|
1
|
+
import type { AxiosInstance, ResponseType } from 'axios';
|
|
2
|
+
import type { Configuration } from './generated';
|
|
3
3
|
export interface GraphFactoryOptions {
|
|
4
4
|
axiosClient: AxiosInstance;
|
|
5
5
|
config: Configuration;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AppRoleAssignment, ExportPersonalDataRequest, PasswordChange, User } from '../generated';
|
|
2
|
-
import { GraphRequestOptions } from '../types';
|
|
1
|
+
import type { AppRoleAssignment, ExportPersonalDataRequest, PasswordChange, User } from '../generated';
|
|
2
|
+
import type { GraphRequestOptions } from '../types';
|
|
3
3
|
export interface GraphUsers {
|
|
4
4
|
getUser: (id: string, options?: {
|
|
5
5
|
expand?: Array<'memberOf' | 'drive' | 'drives' | 'appRoleAssignments'>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GraphFactoryOptions } from './../types';
|
|
2
|
-
import { GraphUsers } from './types';
|
|
1
|
+
import type { GraphFactoryOptions } from './../types';
|
|
2
|
+
import type { GraphUsers } from './types';
|
|
3
3
|
export declare const UsersFactory: ({ axiosClient, config }: GraphFactoryOptions) => GraphUsers;
|
|
@@ -6,7 +6,7 @@ export declare function buildWebDavSpacesPath(storageId: string, path?: string):
|
|
|
6
6
|
export declare function buildWebDavSpacesTrashPath(storageId: string, path?: string): string;
|
|
7
7
|
export declare function getRelativeSpecialFolderSpacePath(space: SpaceResource, type: 'image' | 'readme'): string;
|
|
8
8
|
export declare function isManager(share: CollaboratorShare): boolean;
|
|
9
|
-
export declare const getSpaceManagers: (space: SpaceResource, graphRoles: Record<string, ShareRole>) => import(
|
|
9
|
+
export declare const getSpaceManagers: (space: SpaceResource, graphRoles: Record<string, ShareRole>) => import("../../graph/generated").Permission[];
|
|
10
10
|
export type PublicLinkType = 'ocm' | 'public-link';
|
|
11
11
|
export declare function buildPublicSpaceResource(data: any & {
|
|
12
12
|
publicLinkType: PublicLinkType;
|
|
@@ -5,6 +5,6 @@ type ClearTrashBinOptions = {
|
|
|
5
5
|
id?: Resource['id'];
|
|
6
6
|
} & DAVRequestOptions;
|
|
7
7
|
export declare const ClearTrashBinFactory: (dav: DAV, options: WebDavOptions) => {
|
|
8
|
-
clearTrashBin(space: SpaceResource, { id, ...opts }?: ClearTrashBinOptions): Promise<import(
|
|
8
|
+
clearTrashBin(space: SpaceResource, { id, ...opts }?: ClearTrashBinOptions): Promise<import("./client").DavResult>;
|
|
9
9
|
};
|
|
10
10
|
export {};
|
|
@@ -11,5 +11,5 @@ export declare const CopyFilesFactory: (dav: DAV, options: WebDavOptions) => {
|
|
|
11
11
|
name?: string;
|
|
12
12
|
}, { overwrite, ...opts }?: {
|
|
13
13
|
overwrite?: boolean;
|
|
14
|
-
} & DAVRequestOptions): Promise<import(
|
|
14
|
+
} & DAVRequestOptions): Promise<import("./client").DavResult>;
|
|
15
15
|
};
|
|
@@ -4,5 +4,5 @@ import { DAV, DAVRequestOptions } from './client';
|
|
|
4
4
|
export declare const DeleteFileFactory: (dav: DAV, options: WebDavOptions) => {
|
|
5
5
|
deleteFile(space: SpaceResource, { path, ...opts }: {
|
|
6
6
|
path: string;
|
|
7
|
-
} & DAVRequestOptions): Promise<import(
|
|
7
|
+
} & DAVRequestOptions): Promise<import("./client").DavResult>;
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WebDavOptions } from './types';
|
|
2
2
|
import { DAV, DAVRequestOptions } from './client';
|
|
3
3
|
export declare const ListFileVersionsFactory: (dav: DAV, options: WebDavOptions) => {
|
|
4
|
-
listFileVersions(id: string, opts?: DAVRequestOptions): Promise<import(
|
|
4
|
+
listFileVersions(id: string, opts?: DAVRequestOptions): Promise<import("..").Resource[]>;
|
|
5
5
|
};
|
|
@@ -11,5 +11,5 @@ export declare const MoveFilesFactory: (dav: DAV, options: WebDavOptions) => {
|
|
|
11
11
|
name?: string;
|
|
12
12
|
}, { overwrite, ...opts }?: {
|
|
13
13
|
overwrite?: boolean;
|
|
14
|
-
} & DAVRequestOptions): Promise<import(
|
|
14
|
+
} & DAVRequestOptions): Promise<import("./client").DavResult>;
|
|
15
15
|
};
|
|
@@ -13,6 +13,6 @@ type PutFileContentsOptions = {
|
|
|
13
13
|
onUploadProgress?: ProgressEventCallback;
|
|
14
14
|
} & DAVRequestOptions;
|
|
15
15
|
export declare const PutFileContentsFactory: (dav: DAV, getFileInfoFactory: ReturnType<typeof GetFileInfoFactory>, options: WebDavOptions) => {
|
|
16
|
-
putFileContents(space: SpaceResource, { fileName, path, parentFolderId, content, previousEntityTag, overwrite, onUploadProgress, ...opts }: PutFileContentsOptions): Promise<import(
|
|
16
|
+
putFileContents(space: SpaceResource, { fileName, path, parentFolderId, content, previousEntityTag, overwrite, onUploadProgress, ...opts }: PutFileContentsOptions): Promise<import("..").Resource>;
|
|
17
17
|
};
|
|
18
18
|
export {};
|
|
@@ -8,5 +8,5 @@ export declare const RestoreFileFactory: (dav: DAV, options: WebDavOptions) => {
|
|
|
8
8
|
path: string;
|
|
9
9
|
}, { overwrite, ...opts }?: {
|
|
10
10
|
overwrite?: boolean;
|
|
11
|
-
} & DAVRequestOptions): Promise<import(
|
|
11
|
+
} & DAVRequestOptions): Promise<import("./client").DavResult>;
|
|
12
12
|
};
|
|
@@ -6,5 +6,5 @@ export declare const RestoreFileVersionFactory: (dav: DAV, options: WebDavOption
|
|
|
6
6
|
parentFolderId?: string;
|
|
7
7
|
name?: string;
|
|
8
8
|
path?: string;
|
|
9
|
-
}, versionId: string, opts?: DAVRequestOptions): Promise<import(
|
|
9
|
+
}, versionId: string, opts?: DAVRequestOptions): Promise<import("./client").DavResult>;
|
|
10
10
|
};
|
|
@@ -4,5 +4,5 @@ import { DAV, DAVRequestOptions } from './client';
|
|
|
4
4
|
export declare const SetFavoriteFactory: (dav: DAV, options: WebDavOptions) => {
|
|
5
5
|
setFavorite(space: SpaceResource, { path }: {
|
|
6
6
|
path: string;
|
|
7
|
-
}, value: unknown, opts?: DAVRequestOptions): Promise<import(
|
|
7
|
+
}, value: unknown, opts?: DAVRequestOptions): Promise<import("./client").DavResult>;
|
|
8
8
|
};
|
|
@@ -15,7 +15,6 @@ import { ClearTrashBinFactory } from './clearTrashBin';
|
|
|
15
15
|
import { SearchFactory } from './search';
|
|
16
16
|
import { GetPathForFileIdFactory } from './getPathForFileId';
|
|
17
17
|
import { SetFavoriteFactory } from './setFavorite';
|
|
18
|
-
import { ListFavoriteFilesFactory } from './listFavoriteFiles';
|
|
19
18
|
import { AxiosInstance } from 'axios';
|
|
20
19
|
import { Headers } from 'webdav';
|
|
21
20
|
export interface WebDavOptions {
|
|
@@ -41,7 +40,6 @@ export interface WebDAV {
|
|
|
41
40
|
restoreFileVersion: ReturnType<typeof RestoreFileVersionFactory>['restoreFileVersion'];
|
|
42
41
|
clearTrashBin: ReturnType<typeof ClearTrashBinFactory>['clearTrashBin'];
|
|
43
42
|
search: ReturnType<typeof SearchFactory>['search'];
|
|
44
|
-
listFavoriteFiles: ReturnType<typeof ListFavoriteFilesFactory>['listFavoriteFiles'];
|
|
45
43
|
setFavorite: ReturnType<typeof SetFavoriteFactory>['setFavorite'];
|
|
46
44
|
registerExtraProp(name: string): void;
|
|
47
45
|
}
|