@opencloud-eu/web-client 7.2.0 → 7.4.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-Dwm7CNmg.js → axios-CAceQWl5.js} +42 -40
- package/dist/{dist-B2vdwwII.js → dist-Ciqaw6jy.js} +13 -10
- package/dist/{generated-CDEuOcXT.js → generated-CSkivkhn.js} +395 -239
- package/dist/{graph-D6GY6HvL.js → graph-BDtqSczU.js} +93 -90
- package/dist/{helpers-BMMUdKkY.js → helpers-hr58GB0t.js} +238 -233
- package/dist/{ocs-BwWCZeaA.js → ocs-BupRjiCI.js} +542 -1521
- package/dist/{ox-S6JjEpPN.js → ox-DIaYdpxw.js} +6 -7
- package/dist/src/graph/generated/api.d.ts +351 -28
- package/dist/src/graph/users/types.d.ts +2 -1
- package/dist/src/helpers/resource/types.d.ts +1 -1
- package/dist/src/helpers/space/types.d.ts +6 -0
- package/dist/src/sse/index.d.ts +8 -0
- package/dist/src/webdav/client/builders.d.ts +3 -2
- package/dist/src/webdav/client/dav.d.ts +8 -2
- package/dist/src/webdav/constants/dav.d.ts +12 -0
- package/dist/src/webdav/listFiles.d.ts +10 -1
- package/dist/src/webdav/restoreFileVersion.d.ts +2 -1
- package/dist/src/webdav/setProperties.d.ts +19 -0
- package/dist/src/webdav/types.d.ts +2 -0
- package/dist/{toString-BCd-H1lr.js → toString-Y_fh2BSJ.js} +2 -2
- package/dist/web-client/graph/generated.js +2 -2
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.js +1 -1
- package/dist/web-client/ox.js +1 -1
- package/dist/web-client/sse.js +6 -7
- package/dist/web-client/webdav.js +3 -3
- package/dist/web-client.js +13 -10
- package/dist/{webdav-Di0erpeX.js → webdav-BE0Z-EcD.js} +1016 -977
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppRoleAssignment, ExportPersonalDataRequest, PasswordChange, User } from '../generated';
|
|
1
|
+
import type { ActivityNotification, AppRoleAssignment, ExportPersonalDataRequest, PasswordChange, User } from '../generated';
|
|
2
2
|
import type { GraphRequestOptions } from '../types';
|
|
3
3
|
export interface GraphUsers {
|
|
4
4
|
getUser: (id: string, options?: {
|
|
@@ -22,4 +22,5 @@ export interface GraphUsers {
|
|
|
22
22
|
changeOwnPassword: (change: PasswordChange, requestOptions?: GraphRequestOptions) => Promise<void>;
|
|
23
23
|
exportPersonalData: (id: string, destination?: ExportPersonalDataRequest, requestOptions?: GraphRequestOptions) => Promise<void>;
|
|
24
24
|
createUserAppRoleAssignment: (id: string, roleAssignment: AppRoleAssignment, requestOptions?: GraphRequestOptions) => Promise<AppRoleAssignment>;
|
|
25
|
+
sendActivityNotification: (id: string, notification: ActivityNotification, requestOptions?: GraphRequestOptions) => Promise<void>;
|
|
25
26
|
}
|
|
@@ -3,7 +3,7 @@ import { Audio, GeoCoordinates, Identity, Image, Photo, User } from '../../graph
|
|
|
3
3
|
import { MongoAbility, SubjectRawRule } from '@casl/ability';
|
|
4
4
|
import { DAVResultResponseProps, FileStat } from 'webdav';
|
|
5
5
|
export type AbilityActions = 'create' | 'create-all' | 'delete' | 'delete-all' | 'read' | 'read-all' | 'set-quota' | 'set-quota-all' | 'update' | 'update-all';
|
|
6
|
-
export type AbilitySubjects = 'Account' | 'Drive' | 'Favorite' | 'Group' | 'Language' | 'Logo' | 'PublicLink' | 'ReadOnlyPublicLinkPassword' | 'Role' | 'Setting' | 'Share';
|
|
6
|
+
export type AbilitySubjects = 'Account' | 'Announcement' | 'Drive' | 'Favorite' | 'Group' | 'Language' | 'Logo' | 'PublicLink' | 'ReadOnlyPublicLinkPassword' | 'Role' | 'Setting' | 'Share';
|
|
7
7
|
export type Ability = MongoAbility<[AbilityActions, AbilitySubjects]>;
|
|
8
8
|
export type AbilityRule = SubjectRawRule<AbilityActions, AbilitySubjects, any>;
|
|
9
9
|
export interface Resource {
|
|
@@ -14,6 +14,12 @@ export interface SpaceResource extends Resource {
|
|
|
14
14
|
spaceReadmeData: DriveItem;
|
|
15
15
|
hasTrashedItems: boolean;
|
|
16
16
|
webDavTrashPath: string;
|
|
17
|
+
/**
|
|
18
|
+
* Value of the drive's `@libre.graph.contentType` property. Web apps can use this to
|
|
19
|
+
* determine how to handle the space (e.g. `application/vnd.opencloud.vault` for an
|
|
20
|
+
* end-to-end encrypted space).
|
|
21
|
+
*/
|
|
22
|
+
contentType?: string;
|
|
17
23
|
graphPermissions?: string[];
|
|
18
24
|
canDisable(args?: {
|
|
19
25
|
user?: User;
|
package/dist/src/sse/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare enum MESSAGE_TYPE {
|
|
|
9
9
|
ITEM_TRASHED = "item-trashed",
|
|
10
10
|
ITEM_RESTORED = "item-restored",
|
|
11
11
|
ITEM_MOVED = "item-moved",
|
|
12
|
+
ITEM_FAVORITE_ADDED = "item-favorite-added",
|
|
13
|
+
ITEM_FAVORITE_REMOVED = "item-favorite-removed",
|
|
12
14
|
FOLDER_CREATED = "folder-created",
|
|
13
15
|
SPACE_CREATED = "space-created",
|
|
14
16
|
SPACE_DISABLED = "space-disabled",
|
|
@@ -52,3 +54,9 @@ export declare class SSEAdapter implements EventSource {
|
|
|
52
54
|
updateLanguage(language: string): void;
|
|
53
55
|
}
|
|
54
56
|
export declare const sse: (baseURI: string, fetchOptions: FetchEventSourceInit) => SSEAdapter;
|
|
57
|
+
/**
|
|
58
|
+
* Closes the current SSE connection and clears the singleton, so the next `sse()`
|
|
59
|
+
* call creates a fresh connection. Used on logout to stop the stream from
|
|
60
|
+
* reconnecting with a stale (removed) access token.
|
|
61
|
+
*/
|
|
62
|
+
export declare const resetSSE: () => void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DavPropertyValue } from '../constants';
|
|
2
|
+
export type DavPropertyRecord = Partial<Record<DavPropertyValue, unknown>> & Record<string, unknown>;
|
|
2
3
|
export declare const buildPropFindBody: (properties: DavPropertyValue[], { pattern, filterRules, limit, extraProps }: {
|
|
3
4
|
pattern?: string;
|
|
4
|
-
filterRules?:
|
|
5
|
+
filterRules?: DavPropertyRecord;
|
|
5
6
|
limit?: number;
|
|
6
7
|
extraProps: string[];
|
|
7
8
|
}) => string;
|
|
8
|
-
export declare const buildPropPatchBody: (properties:
|
|
9
|
+
export declare const buildPropPatchBody: (properties: DavPropertyRecord, extraProps?: string[]) => string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Headers, ProgressEventCallback } from 'webdav';
|
|
2
2
|
import { DavPropertyValue } from '../constants';
|
|
3
|
+
import { DavPropertyRecord } from './builders';
|
|
3
4
|
import { WebDavResponseResource } from '../../helpers';
|
|
4
5
|
export interface DAVOptions {
|
|
5
6
|
baseUrl: string;
|
|
@@ -21,9 +22,11 @@ export declare class DAV {
|
|
|
21
22
|
extraProps: string[];
|
|
22
23
|
constructor({ baseUrl, headers }: DAVOptions);
|
|
23
24
|
mkcol(path: string, opts?: DAVRequestOptions): Promise<DavResult>;
|
|
24
|
-
propfind(path: string, { depth, properties, headers, ...opts }?: {
|
|
25
|
+
propfind(path: string, { depth, properties, extraProps, headers, ...opts }?: {
|
|
25
26
|
depth?: number;
|
|
26
27
|
properties?: DavPropertyValue[];
|
|
28
|
+
/** Namespaced props for this request only, on top of the globally registered ones. */
|
|
29
|
+
extraProps?: string[];
|
|
27
30
|
} & DAVRequestOptions): Promise<WebDavResponseResource[]>;
|
|
28
31
|
report(path: string, { pattern, filterRules, limit, properties, ...opts }?: {
|
|
29
32
|
pattern?: string;
|
|
@@ -46,7 +49,10 @@ export declare class DAV {
|
|
|
46
49
|
overwrite?: boolean;
|
|
47
50
|
} & DAVRequestOptions): Promise<DavResult>;
|
|
48
51
|
delete(path: string, opts?: DAVRequestOptions): Promise<DavResult>;
|
|
49
|
-
propPatch(path: string, properties:
|
|
52
|
+
propPatch(path: string, properties: DavPropertyRecord, { extraProps, ...opts }?: {
|
|
53
|
+
/** Namespaced props for this request only, on top of the globally registered ones. */
|
|
54
|
+
extraProps?: string[];
|
|
55
|
+
} & DAVRequestOptions): Promise<DavResult>;
|
|
50
56
|
getFileUrl(path: string): string;
|
|
51
57
|
private buildHeaders;
|
|
52
58
|
private request;
|
|
@@ -98,6 +98,18 @@ export type DavFileInfoResponse = {
|
|
|
98
98
|
[K in keyof DavPropertyMappingType as DavPropertyMappingType[K]['value']]: DavPropertyMappingType[K]['type'];
|
|
99
99
|
};
|
|
100
100
|
export type DavPropertyValue = (typeof DavProperty)[keyof typeof DavProperty];
|
|
101
|
+
/**
|
|
102
|
+
* The two well-known namespaces, declared on every PROPFIND / PROPPATCH body and
|
|
103
|
+
* keyed by the prefix used in property names.
|
|
104
|
+
*
|
|
105
|
+
* Deliberately just these two. Prefixes belonging to an app's own props are
|
|
106
|
+
* declared automatically from the names it passes as extra props, so apps can
|
|
107
|
+
* bring their own namespace without anything being registered here.
|
|
108
|
+
*/
|
|
109
|
+
export declare const DavNamespaces: {
|
|
110
|
+
readonly d: "DAV:";
|
|
111
|
+
readonly oc: "http://owncloud.org/ns";
|
|
112
|
+
};
|
|
101
113
|
export declare abstract class DavProperties {
|
|
102
114
|
static readonly Default: DavPropertyValue[];
|
|
103
115
|
static readonly PublicLink: DavPropertyValue[];
|
|
@@ -7,13 +7,22 @@ import { WebDavOptions } from './types';
|
|
|
7
7
|
export type ListFilesOptions = {
|
|
8
8
|
depth?: number;
|
|
9
9
|
davProperties?: DavPropertyValue[];
|
|
10
|
+
/**
|
|
11
|
+
* Namespaced props to request for this call only, e.g. `myapp:my-prop`, on top
|
|
12
|
+
* of anything registered globally via `registerExtraProp`. Names keep their own
|
|
13
|
+
* prefix instead of being forced into `oc:`, the prefix is declared for you, and
|
|
14
|
+
* the value lands on `Resource.extraProps` under the name you passed. Use this
|
|
15
|
+
* for props only one caller cares about, so every other PROPFIND in the app
|
|
16
|
+
* doesn't pay for them.
|
|
17
|
+
*/
|
|
18
|
+
extraProps?: string[];
|
|
10
19
|
isTrash?: boolean;
|
|
11
20
|
} & DAVRequestOptions;
|
|
12
21
|
export declare const ListFilesFactory: (dav: DAV, pathForFileIdFactory: ReturnType<typeof GetPathForFileIdFactory>, options: WebDavOptions) => {
|
|
13
22
|
listFiles(space: SpaceResource, { path, fileId }?: {
|
|
14
23
|
path?: string;
|
|
15
24
|
fileId?: string;
|
|
16
|
-
}, { depth, davProperties, isTrash, ...opts }?: ListFilesOptions): Promise<ListFilesResult>;
|
|
25
|
+
}, { depth, davProperties, extraProps, isTrash, ...opts }?: ListFilesOptions): Promise<ListFilesResult>;
|
|
17
26
|
};
|
|
18
27
|
export interface ListFilesResult {
|
|
19
28
|
resource: Resource;
|
|
@@ -2,7 +2,8 @@ import { SpaceResource } from '../helpers';
|
|
|
2
2
|
import { WebDavOptions } from './types';
|
|
3
3
|
import { DAV, DAVRequestOptions } from './client';
|
|
4
4
|
export declare const RestoreFileVersionFactory: (dav: DAV, options: WebDavOptions) => {
|
|
5
|
-
restoreFileVersion(space: SpaceResource, { parentFolderId, name, path }: {
|
|
5
|
+
restoreFileVersion(space: SpaceResource, { id, parentFolderId, name, path }: {
|
|
6
|
+
id?: string;
|
|
6
7
|
parentFolderId?: string;
|
|
7
8
|
name?: string;
|
|
8
9
|
path?: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SpaceResource } from '../helpers';
|
|
2
|
+
import { WebDavOptions } from './types';
|
|
3
|
+
import { DAV, DAVRequestOptions, DavPropertyRecord } from './client';
|
|
4
|
+
export declare const SetPropertiesFactory: (dav: DAV, options: WebDavOptions) => {
|
|
5
|
+
/**
|
|
6
|
+
* Write WebDAV properties onto a resource via PROPPATCH.
|
|
7
|
+
*
|
|
8
|
+
* Property names are namespaced the same way as in PROPFIND: DAV standard
|
|
9
|
+
* props get `d:`, anything listed in `extraProps` (or registered globally via
|
|
10
|
+
* `registerExtraProp`) keeps its own prefix, everything else falls back to
|
|
11
|
+
* `oc:`. A custom prop must be listed, otherwise it is written as
|
|
12
|
+
* `oc:<name>` - which the server accepts but no PROPFIND can read back.
|
|
13
|
+
*/
|
|
14
|
+
setProperties(space: SpaceResource, { path }: {
|
|
15
|
+
path: string;
|
|
16
|
+
}, properties: DavPropertyRecord, opts?: {
|
|
17
|
+
extraProps?: string[];
|
|
18
|
+
} & DAVRequestOptions): Promise<import("./client").DavResult>;
|
|
19
|
+
};
|
|
@@ -15,6 +15,7 @@ import { ClearTrashBinFactory } from './clearTrashBin';
|
|
|
15
15
|
import { SearchFactory } from './search';
|
|
16
16
|
import { GetPathForFileIdFactory } from './getPathForFileId';
|
|
17
17
|
import { SetFavoriteFactory } from './setFavorite';
|
|
18
|
+
import { SetPropertiesFactory } from './setProperties';
|
|
18
19
|
import { AxiosInstance } from 'axios';
|
|
19
20
|
import { Headers } from 'webdav';
|
|
20
21
|
export interface WebDavOptions {
|
|
@@ -41,5 +42,6 @@ export interface WebDAV {
|
|
|
41
42
|
clearTrashBin: ReturnType<typeof ClearTrashBinFactory>['clearTrashBin'];
|
|
42
43
|
search: ReturnType<typeof SearchFactory>['search'];
|
|
43
44
|
setFavorite: ReturnType<typeof SetFavoriteFactory>['setFavorite'];
|
|
45
|
+
setProperties: ReturnType<typeof SetPropertiesFactory>['setProperties'];
|
|
44
46
|
registerExtraProp(name: string): void;
|
|
45
47
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./dist-
|
|
1
|
+
import { n as e } from "./dist-Ciqaw6jy.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
3
3
|
var t = typeof e == "object" && e && e.Object === Object && e, n = typeof self == "object" && self && self.Object === Object && self, r = t || n || Function("return this")(), i = r.Symbol, a = Object.prototype, ee = a.hasOwnProperty, te = a.toString, o = i ? i.toStringTag : void 0;
|
|
4
4
|
function ne(e) {
|
|
@@ -41,7 +41,7 @@ function h(e, t) {
|
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
44
|
-
var g = Array.isArray, _ =
|
|
44
|
+
var g = Array.isArray, _ = 1 / 0, v = i ? i.prototype : void 0, y = v ? v.toString : void 0;
|
|
45
45
|
function b(e) {
|
|
46
46
|
if (typeof e == "string") return e;
|
|
47
47
|
if (g(e)) return h(e, b) + "";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as e, $t as t, A as n,
|
|
2
|
-
export {
|
|
1
|
+
import { $ as e, $t as t, A as n, An as r, At as i, B as a, Bt as o, C as s, Cn as c, Ct as l, D as u, Dn as d, Dt as f, E as p, En as m, Et as h, F as g, Fn as _, Ft as v, G as y, Gt as b, H as x, Ht as S, I as C, In as w, It as T, J as E, Jt as D, K as O, Kt as k, L as A, Ln as j, Lt as M, M as N, Mn as P, Mt as F, N as I, Nn as L, Nt as R, O as z, On as B, Ot as V, P as H, Pn as U, Pt as W, Q as G, Qt as K, R as q, Rn as J, Rt as Y, S as X, Sn as Z, St as Q, T as $, Tn as ee, Tt as te, U as ne, Ut as re, V as ie, Vt as ae, W as oe, Wt as se, X as ce, Xt as le, Y as ue, Yt as de, Z as fe, Zt as pe, _ as me, _n as he, _t as ge, a as _e, an as ve, at as ye, b as be, bn as xe, bt as Se, c as Ce, cn as we, ct as Te, d as Ee, dn as De, dt as Oe, en as ke, et as Ae, f as je, fn as Me, ft as Ne, g as Pe, gn as Fe, gt as Ie, h as Le, hn as Re, ht as ze, i as Be, in as Ve, it as He, j as Ue, jn as We, jt as Ge, k as Ke, kn as qe, kt as Je, l as Ye, ln as Xe, lt as Ze, m as Qe, mn as $e, mt as et, n as tt, nn as nt, nt as rt, o as it, on as at, ot, p as st, pn as ct, pt as lt, q as ut, qt as dt, r as ft, rn as pt, rt as mt, s as ht, sn as gt, st as _t, t as vt, tn as yt, tt as bt, u as xt, un as St, ut as Ct, v as wt, vn as Tt, vt as Et, w as Dt, wn as Ot, wt as kt, x as At, xn as jt, xt as Mt, y as Nt, yn as Pt, yt as Ft, z as It, zt as Lt } from "../../generated-CSkivkhn.js";
|
|
2
|
+
export { tt as ActivitiesApi, ft as ActivitiesApiAxiosParamCreator, Be as ActivitiesApiFactory, _e as ActivitiesApiFp, it as ApplicationsApi, ht as ApplicationsApiAxiosParamCreator, Ce as ApplicationsApiFactory, Ye as ApplicationsApiFp, vt as Configuration, xt as CreateChildDriveItemLibreGraphConflictBehaviorEnum, Ee as CreateChildDriveItemLibreGraphMissingParentsBehaviorEnum, je as CreateDriveItemLibreGraphConflictBehaviorEnum, st as CreateDriveItemLibreGraphMissingParentsBehaviorEnum, Qe as DriveItemApi, Le as DriveItemApiAxiosParamCreator, Pe as DriveItemApiFactory, me as DriveItemApiFp, wt as DrivesApi, Nt as DrivesApiAxiosParamCreator, be as DrivesApiFactory, At as DrivesApiFp, X as DrivesGetDrivesApi, s as DrivesGetDrivesApiAxiosParamCreator, Dt as DrivesGetDrivesApiFactory, $ as DrivesGetDrivesApiFp, p as DrivesPermissionsApi, u as DrivesPermissionsApiAxiosParamCreator, z as DrivesPermissionsApiFactory, Ke as DrivesPermissionsApiFp, n as DrivesRootApi, Ue as DrivesRootApiAxiosParamCreator, N as DrivesRootApiFactory, I as DrivesRootApiFp, H as EducationClassApi, g as EducationClassApiAxiosParamCreator, C as EducationClassApiFactory, A as EducationClassApiFp, q as EducationClassClassificationEnum, It as EducationClassTeachersApi, a as EducationClassTeachersApiAxiosParamCreator, ie as EducationClassTeachersApiFactory, x as EducationClassTeachersApiFp, ne as EducationSchoolApi, oe as EducationSchoolApiAxiosParamCreator, y as EducationSchoolApiFactory, O as EducationSchoolApiFp, ut as EducationUserApi, E as EducationUserApiAxiosParamCreator, ue as EducationUserApiFactory, ce as EducationUserApiFp, fe as GetDriveItemChildrenSelectEnum, G as GetDriveItemSelectEnum, e as GetDriveItemV1SelectEnum, Ae as GetDriveSelectEnum, bt as GetEducationUserExpandEnum, rt as GetGroupExpandEnum, mt as GetGroupSelectEnum, He as GetOwnUserExpandEnum, ye as GetRootSelectEnum, ot as GetUserExpandEnum, _t as GetUserSelectEnum, Te as GroupApi, Ze as GroupApiAxiosParamCreator, Ct as GroupApiFactory, Oe as GroupApiFp, Ne as GroupsApi, lt as GroupsApiAxiosParamCreator, et as GroupsApiFactory, ze as GroupsApiFp, Ie as HomeGetChildrenSelectEnum, ge as HomeGetRootSelectEnum, Et as InvitationsApi, Ft as InvitationsApiAxiosParamCreator, Se as InvitationsApiFactory, Mt as InvitationsApiFp, Q as ListAllDrivesBetaSelectEnum, l as ListEducationUsersExpandEnum, kt as ListEducationUsersOrderbyEnum, te as ListGroupsExpandEnum, h as ListGroupsOrderbyEnum, f as ListGroupsSelectEnum, V as ListMyDrivesBetaSelectEnum, Je as ListPermissionsSelectEnum, i as ListPermissionsSpaceRootSelectEnum, Ge as ListSharedByMeExpandEnum, F as ListSharedWithMeExpandEnum, R as ListUsersExpandEnum, W as ListUsersOrderbyEnum, v as ListUsersSelectEnum, T as MeChangepasswordApi, M as MeChangepasswordApiAxiosParamCreator, Y as MeChangepasswordApiFactory, Lt as MeChangepasswordApiFp, o as MeDriveApi, ae as MeDriveApiAxiosParamCreator, S as MeDriveApiFactory, re as MeDriveApiFp, se as MeDriveRootApi, b as MeDriveRootApiAxiosParamCreator, k as MeDriveRootApiFactory, dt as MeDriveRootApiFp, D as MeDriveRootChildrenApi, de as MeDriveRootChildrenApiAxiosParamCreator, le as MeDriveRootChildrenApiFactory, pe as MeDriveRootChildrenApiFp, K as MeDrivesApi, t as MeDrivesApiAxiosParamCreator, ke as MeDrivesApiFactory, yt as MeDrivesApiFp, nt as MePhotoApi, pt as MePhotoApiAxiosParamCreator, Ve as MePhotoApiFactory, ve as MePhotoApiFp, at as MeUserApi, gt as MeUserApiAxiosParamCreator, we as MeUserApiFactory, Xe as MeUserApiFp, St as RoleManagementApi, De as RoleManagementApiAxiosParamCreator, Me as RoleManagementApiFactory, ct as RoleManagementApiFp, $e as SharingLinkType, Re as TagsApi, Fe as TagsApiAxiosParamCreator, he as TagsApiFactory, Tt as TagsApiFp, Pt as UserApi, xe as UserApiAxiosParamCreator, jt as UserApiFactory, Z as UserApiFp, c as UserAppRoleAssignmentApi, Ot as UserAppRoleAssignmentApiAxiosParamCreator, ee as UserAppRoleAssignmentApiFactory, m as UserAppRoleAssignmentApiFp, d as UserPhotoApi, B as UserPhotoApiAxiosParamCreator, qe as UserPhotoApiFactory, r as UserPhotoApiFp, We as UserTeamworkApi, P as UserTeamworkApiAxiosParamCreator, L as UserTeamworkApiFactory, U as UserTeamworkApiFp, _ as UsersApi, w as UsersApiAxiosParamCreator, j as UsersApiFactory, J as UsersApiFp };
|
package/dist/web-client/graph.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../graph-
|
|
1
|
+
import { t as e } from "../graph-BDtqSczU.js";
|
|
2
2
|
export { e as graph };
|
package/dist/web-client/ocs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { o as e, t } from "../ocs-
|
|
1
|
+
import { o as e, t } from "../ocs-BupRjiCI.js";
|
|
2
2
|
export { e as GetCapabilitiesFactory, t as ocs };
|
package/dist/web-client/ox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../ox-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../ox-DIaYdpxw.js";
|
|
2
2
|
export { t as ContactSchema, n as OxAutocompleteResponseSchema, e as OxComposeSpaceResponseSchema, r as ox };
|
package/dist/web-client/sse.js
CHANGED
|
@@ -16,9 +16,7 @@ function t(e) {
|
|
|
16
16
|
i === -1 && (i = n - c);
|
|
17
17
|
break;
|
|
18
18
|
case 13: a = !0;
|
|
19
|
-
case 10:
|
|
20
|
-
r = n;
|
|
21
|
-
break;
|
|
19
|
+
case 10: r = n;
|
|
22
20
|
}
|
|
23
21
|
if (r === -1) break;
|
|
24
22
|
e(t.subarray(c, r), i), c = n, i = -1;
|
|
@@ -45,7 +43,6 @@ function n(e, t, n) {
|
|
|
45
43
|
case "retry":
|
|
46
44
|
let n = parseInt(c, 10);
|
|
47
45
|
isNaN(n) || t(r.retry = n);
|
|
48
|
-
break;
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
48
|
};
|
|
@@ -128,7 +125,7 @@ function u(e) {
|
|
|
128
125
|
//#endregion
|
|
129
126
|
//#region src/sse/index.ts
|
|
130
127
|
var d = /* @__PURE__ */ function(e) {
|
|
131
|
-
return e.NOTIFICATION = "userlog-notification", e.POSTPROCESSING_FINISHED = "postprocessing-finished", e.FILE_LOCKED = "file-locked", e.FILE_UNLOCKED = "file-unlocked", e.FILE_TOUCHED = "file-touched", e.ITEM_RENAMED = "item-renamed", e.ITEM_TRASHED = "item-trashed", e.ITEM_RESTORED = "item-restored", e.ITEM_MOVED = "item-moved", e.FOLDER_CREATED = "folder-created", e.SPACE_CREATED = "space-created", e.SPACE_DISABLED = "space-disabled", e.SPACE_ENABLED = "space-enabled", e.SPACE_DELETED = "space-deleted", e.SPACE_MEMBER_ADDED = "space-member-added", e.SPACE_MEMBER_REMOVED = "space-member-removed", e.SPACE_SHARE_UPDATED = "space-share-updated", e.SHARE_CREATED = "share-created", e.SHARE_REMOVED = "share-removed", e.SHARE_UPDATED = "share-updated", e.LINK_CREATED = "link-created", e.LINK_REMOVED = "link-removed", e.LINK_UPDATED = "link-updated", e.BACKCHANNEL_LOGOUT = "backchannel-logout", e;
|
|
128
|
+
return e.NOTIFICATION = "userlog-notification", e.POSTPROCESSING_FINISHED = "postprocessing-finished", e.FILE_LOCKED = "file-locked", e.FILE_UNLOCKED = "file-unlocked", e.FILE_TOUCHED = "file-touched", e.ITEM_RENAMED = "item-renamed", e.ITEM_TRASHED = "item-trashed", e.ITEM_RESTORED = "item-restored", e.ITEM_MOVED = "item-moved", e.ITEM_FAVORITE_ADDED = "item-favorite-added", e.ITEM_FAVORITE_REMOVED = "item-favorite-removed", e.FOLDER_CREATED = "folder-created", e.SPACE_CREATED = "space-created", e.SPACE_DISABLED = "space-disabled", e.SPACE_ENABLED = "space-enabled", e.SPACE_DELETED = "space-deleted", e.SPACE_MEMBER_ADDED = "space-member-added", e.SPACE_MEMBER_REMOVED = "space-member-removed", e.SPACE_SHARE_UPDATED = "space-share-updated", e.SHARE_CREATED = "share-created", e.SHARE_REMOVED = "share-removed", e.SHARE_UPDATED = "share-updated", e.LINK_CREATED = "link-created", e.LINK_REMOVED = "link-removed", e.LINK_UPDATED = "link-updated", e.BACKCHANNEL_LOGOUT = "backchannel-logout", e;
|
|
132
129
|
}({}), f = class extends Error {
|
|
133
130
|
name = "RetriableError";
|
|
134
131
|
}, p = 15e3, m = class {
|
|
@@ -197,6 +194,8 @@ var d = /* @__PURE__ */ function(e) {
|
|
|
197
194
|
updateLanguage(e) {
|
|
198
195
|
this.fetchOptions.headers["Accept-Language"] = e, this.close(), this.connect();
|
|
199
196
|
}
|
|
200
|
-
}, h = null, g = (e, t) => (h ||= new m(new URL("ocs/v2.php/apps/notifications/api/v1/notifications/sse", e).href, t), h)
|
|
197
|
+
}, h = null, g = (e, t) => (h ||= new m(new URL("ocs/v2.php/apps/notifications/api/v1/notifications/sse", e).href, t), h), _ = () => {
|
|
198
|
+
h &&= (h.close(), null);
|
|
199
|
+
};
|
|
201
200
|
//#endregion
|
|
202
|
-
export { d as MESSAGE_TYPE, f as RetriableError, m as SSEAdapter, g as sse };
|
|
201
|
+
export { d as MESSAGE_TYPE, f as RetriableError, m as SSEAdapter, _ as resetSSE, g as sse };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "../webdav-
|
|
2
|
-
import { G as t, K as n, U as r, W as i } from "../helpers-
|
|
3
|
-
export { r as DavMethod, i as
|
|
1
|
+
import { t as e } from "../webdav-BE0Z-EcD.js";
|
|
2
|
+
import { G as t, K as n, U as r, W as i, q as a } from "../helpers-hr58GB0t.js";
|
|
3
|
+
export { r as DavMethod, i as DavNamespaces, t as DavPermission, n as DavProperties, a as DavProperty, e as webdav };
|
package/dist/web-client.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { t as e } from "./graph-
|
|
2
|
-
import { i as t, n, r, t as i } from "./webdav-
|
|
1
|
+
import { t as e } from "./graph-BDtqSczU.js";
|
|
2
|
+
import { i as t, n, r, t as i } from "./webdav-BE0Z-EcD.js";
|
|
3
3
|
import { t as a } from "./urlJoin-_pUL1TUx.js";
|
|
4
|
-
import { A as o, B as s, C as c, D as l, E as u, F as d, H as f, I as p, J as m, L as h, M as g, N as _, O as v, P as y, R as b, S as x, T as S, V as C,
|
|
5
|
-
import { t as X } from "./ocs-
|
|
6
|
-
import { t as Z } from "./ox-
|
|
4
|
+
import { A as o, B as s, C as c, D as l, E as u, F as d, H as f, I as p, J as m, L as h, M as g, N as _, O as v, P as y, R as b, S as x, T as S, V as C, Y as w, _ as T, a as E, b as D, c as O, d as k, f as A, g as j, h as M, i as N, j as P, k as F, l as I, m as L, n as R, o as z, p as B, r as V, s as H, t as U, u as W, v as G, w as K, x as q, y as J, z as Y } from "./helpers-hr58GB0t.js";
|
|
5
|
+
import { t as X } from "./ocs-BupRjiCI.js";
|
|
6
|
+
import { t as Z } from "./ox-DIaYdpxw.js";
|
|
7
7
|
//#region src/helpers/call.ts
|
|
8
8
|
var Q = function* (e) {
|
|
9
9
|
return yield e;
|
|
10
|
-
}, $ = ({ message: e, statusCode: t, xReqId: n }) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
}, $ = ({ message: e, statusCode: t, xReqId: n }) => {
|
|
11
|
+
let i = new Response(void 0, {
|
|
12
|
+
headers: { "x-request-id": n },
|
|
13
|
+
status: t
|
|
14
|
+
});
|
|
15
|
+
return new r(e, i, t);
|
|
16
|
+
}, ee = class {
|
|
14
17
|
static Read = 1;
|
|
15
18
|
static Update = 2;
|
|
16
19
|
static Create = 4;
|
|
@@ -18,4 +21,4 @@ var Q = function* (e) {
|
|
|
18
21
|
static Share = 16;
|
|
19
22
|
};
|
|
20
23
|
//#endregion
|
|
21
|
-
export { n as DavHttpError,
|
|
24
|
+
export { n as DavHttpError, P as GraphSharePermission, r as HttpError, q as OCM_PROVIDER_ID, x as SHARE_JAIL_ID, ee as SharePermissionBit, F as ShareType, o as ShareTypes, U as buildCollaboratorShare, g as buildDeletedResource, R as buildIncomingShareResource, V as buildLinkShare, N as buildOutgoingShareResource, A as buildPublicSpaceResource, _ as buildResource, B as buildShareSpaceResource, L as buildSpace, M as buildSpaceImageResource, m as buildWebDavOcmPath, w as buildWebDavPublicPath, j as buildWebDavSpacesPath, T as buildWebDavSpacesTrashPath, Q as call, $ as createHttpError, t as encodePath, y as extractDomSelector, d as extractExtensionFromFile, p as extractNameWithoutExtension, h as extractNodeId, b as extractParentFolderName, Y as extractStorageId, G as getRelativeSpecialFolderSpacePath, E as getShareResourcePermissions, z as getShareResourceRoles, J as getSpaceManagers, e as graph, H as isCollaboratorShare, O as isIncomingShareResource, I as isLinkShare, D as isManager, c as isMountPointSpaceResource, W as isOutgoingShareResource, K as isPersonalSpaceResource, S as isProjectSpaceResource, u as isPublicSpaceResource, s as isSearchResource, k as isShareResource, C as isShareRoot, l as isShareSpaceResource, v as isSpaceResource, f as isTrashResource, X as ocs, Z as ox, a as urlJoin, i as webdav };
|