@opencloud-eu/web-client 7.0.1 → 7.1.2

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.
@@ -10,6 +10,9 @@ export declare enum MESSAGE_TYPE {
10
10
  ITEM_RESTORED = "item-restored",
11
11
  ITEM_MOVED = "item-moved",
12
12
  FOLDER_CREATED = "folder-created",
13
+ SPACE_CREATED = "space-created",
14
+ SPACE_DISABLED = "space-disabled",
15
+ SPACE_DELETED = "space-deleted",
13
16
  SPACE_MEMBER_ADDED = "space-member-added",
14
17
  SPACE_MEMBER_REMOVED = "space-member-removed",
15
18
  SPACE_SHARE_UPDATED = "space-share-updated",
@@ -1,4 +1,4 @@
1
- import { n as e } from "./dist-D0YulRs6.js";
1
+ import { n as e } from "./dist-DXLl1XQj.js";
2
2
  //#region src/utils/urlJoin.ts
3
3
  var t = /^(\w+:\/\/[^/?]+)?(.*?)$/, n = (e) => e.filter((e) => typeof e == "string" || typeof e == "number").map((e) => `${e}`).filter((e) => e), r = (e) => {
4
4
  let [, n = "", r = ""] = e.join("/").match(t) || [];
@@ -1,2 +1,2 @@
1
- import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as o, Cn as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, Ft as m, G as h, Gt as g, H as _, Ht as v, I as y, It as b, J as x, Jt as S, K as C, Kt as w, L as T, Lt as E, M as D, Mt as O, N as k, Nt as A, O as j, Ot as M, P as N, Pt as P, Q as F, Qt as I, R as L, Rt as R, S as z, Sn as B, St as V, T as H, Tt as U, U as W, Ut as G, V as K, Vt as q, W as J, Wt as Y, X, Xt as Z, Y as Q, Yt as $, Z as ee, Zt as te, _ as ne, _n as re, _t as ie, a as ae, an as oe, at as se, b as ce, bn as le, bt as ue, c as de, cn as fe, ct as pe, d as me, dn as he, dt as ge, en as _e, et as ve, f as ye, fn as be, ft as xe, g as Se, gn as Ce, gt as we, h as Te, hn as Ee, ht as De, i as Oe, in as ke, it as Ae, j as je, jt as Me, k as Ne, kt as Pe, l as Fe, ln as Ie, lt as Le, m as Re, mn as ze, mt as Be, n as Ve, nn as He, nt as Ue, o as We, on as Ge, ot as Ke, p as qe, pn as Je, pt as Ye, q as Xe, qt as Ze, r as Qe, rn as $e, rt as et, s as tt, sn as nt, st as rt, t as it, tn as at, tt as ot, u as st, un as ct, ut as lt, v as ut, vn as dt, vt as ft, w as pt, wn as mt, wt as ht, x as gt, xn as _t, xt as vt, y as yt, yn as bt, yt as xt, z as St, zt as Ct } from "../../generated-JYLxY-yx.js";
1
+ import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as o, Cn as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, Ft as m, G as h, Gt as g, H as _, Ht as v, I as y, It as b, J as x, Jt as S, K as C, Kt as w, L as T, Lt as E, M as D, Mt as O, N as k, Nt as A, O as j, Ot as M, P as N, Pt as P, Q as F, Qt as I, R as L, Rt as R, S as z, Sn as B, St as V, T as H, Tt as U, U as W, Ut as G, V as K, Vt as q, W as J, Wt as Y, X, Xt as Z, Y as Q, Yt as $, Z as ee, Zt as te, _ as ne, _n as re, _t as ie, a as ae, an as oe, at as se, b as ce, bn as le, bt as ue, c as de, cn as fe, ct as pe, d as me, dn as he, dt as ge, en as _e, et as ve, f as ye, fn as be, ft as xe, g as Se, gn as Ce, gt as we, h as Te, hn as Ee, ht as De, i as Oe, in as ke, it as Ae, j as je, jt as Me, k as Ne, kt as Pe, l as Fe, ln as Ie, lt as Le, m as Re, mn as ze, mt as Be, n as Ve, nn as He, nt as Ue, o as We, on as Ge, ot as Ke, p as qe, pn as Je, pt as Ye, q as Xe, qt as Ze, r as Qe, rn as $e, rt as et, s as tt, sn as nt, st as rt, t as it, tn as at, tt as ot, u as st, un as ct, ut as lt, v as ut, vn as dt, vt as ft, w as pt, wn as mt, wt as ht, x as gt, xn as _t, xt as vt, y as yt, yn as bt, yt as xt, z as St, zt as Ct } from "../../generated-Dr-mKneP.js";
2
2
  export { Ve as ActivitiesApi, Qe as ActivitiesApiAxiosParamCreator, Oe as ActivitiesApiFactory, ae as ActivitiesApiFp, We as ApplicationsApi, tt as ApplicationsApiAxiosParamCreator, de as ApplicationsApiFactory, Fe as ApplicationsApiFp, it as Configuration, st as DriveItemApi, me as DriveItemApiAxiosParamCreator, ye as DriveItemApiFactory, qe as DriveItemApiFp, Re as DrivesApi, Te as DrivesApiAxiosParamCreator, Se as DrivesApiFactory, ne as DrivesApiFp, ut as DrivesGetDrivesApi, yt as DrivesGetDrivesApiAxiosParamCreator, ce as DrivesGetDrivesApiFactory, gt as DrivesGetDrivesApiFp, z as DrivesPermissionsApi, o as DrivesPermissionsApiAxiosParamCreator, pt as DrivesPermissionsApiFactory, H as DrivesPermissionsApiFp, d as DrivesRootApi, l as DrivesRootApiAxiosParamCreator, j as DrivesRootApiFactory, Ne as DrivesRootApiFp, n as EducationClassApi, je as EducationClassApiAxiosParamCreator, D as EducationClassApiFactory, k as EducationClassApiFp, N as EducationClassClassificationEnum, p as EducationClassTeachersApi, y as EducationClassTeachersApiAxiosParamCreator, T as EducationClassTeachersApiFactory, L as EducationClassTeachersApiFp, St as EducationSchoolApi, i as EducationSchoolApiAxiosParamCreator, K as EducationSchoolApiFactory, _ as EducationSchoolApiFp, W as EducationUserApi, J as EducationUserApiAxiosParamCreator, h as EducationUserApiFactory, C as EducationUserApiFp, Xe as GetDriveSelectEnum, x as GetEducationUserExpandEnum, Q as GetGroupExpandEnum, X as GetGroupSelectEnum, ee as GetOwnUserExpandEnum, F as GetUserExpandEnum, e as GetUserSelectEnum, ve as GroupApi, ot as GroupApiAxiosParamCreator, Ue as GroupApiFactory, et as GroupApiFp, Ae as GroupsApi, se as GroupsApiAxiosParamCreator, Ke as GroupsApiFactory, rt as GroupsApiFp, pe as InvitationsApi, Le as InvitationsApiAxiosParamCreator, lt as InvitationsApiFactory, ge as InvitationsApiFp, xe as ListAllDrivesBetaSelectEnum, Ye as ListEducationUsersExpandEnum, Be as ListEducationUsersOrderbyEnum, De as ListGroupsExpandEnum, we as ListGroupsOrderbyEnum, ie as ListGroupsSelectEnum, ft as ListMyDrivesBetaSelectEnum, xt as ListPermissionsSelectEnum, ue as ListPermissionsSpaceRootSelectEnum, vt as ListSharedByMeExpandEnum, V as ListSharedWithMeExpandEnum, c as ListUsersExpandEnum, ht as ListUsersOrderbyEnum, U as ListUsersSelectEnum, f as MeChangepasswordApi, u as MeChangepasswordApiAxiosParamCreator, M as MeChangepasswordApiFactory, Pe as MeChangepasswordApiFp, r as MeDriveApi, Me as MeDriveApiAxiosParamCreator, O as MeDriveApiFactory, A as MeDriveApiFp, P as MeDriveRootApi, m as MeDriveRootApiAxiosParamCreator, b as MeDriveRootApiFactory, E as MeDriveRootApiFp, R as MeDriveRootChildrenApi, Ct as MeDriveRootChildrenApiAxiosParamCreator, a as MeDriveRootChildrenApiFactory, q as MeDriveRootChildrenApiFp, v as MeDrivesApi, G as MeDrivesApiAxiosParamCreator, Y as MeDrivesApiFactory, g as MeDrivesApiFp, w as MePhotoApi, Ze as MePhotoApiAxiosParamCreator, S as MePhotoApiFactory, $ as MePhotoApiFp, Z as MeUserApi, te as MeUserApiAxiosParamCreator, I as MeUserApiFactory, t as MeUserApiFp, _e as RoleManagementApi, at as RoleManagementApiAxiosParamCreator, He as RoleManagementApiFactory, $e as RoleManagementApiFp, ke as SharingLinkType, oe as TagsApi, Ge as TagsApiAxiosParamCreator, nt as TagsApiFactory, fe as TagsApiFp, Ie as UserApi, ct as UserApiAxiosParamCreator, he as UserApiFactory, be as UserApiFp, Je as UserAppRoleAssignmentApi, ze as UserAppRoleAssignmentApiAxiosParamCreator, Ee as UserAppRoleAssignmentApiFactory, Ce as UserAppRoleAssignmentApiFp, re as UserPhotoApi, dt as UserPhotoApiAxiosParamCreator, bt as UserPhotoApiFactory, le as UserPhotoApiFp, _t as UsersApi, B as UsersApiAxiosParamCreator, s as UsersApiFactory, mt as UsersApiFp };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../graph-B9wr4gvT.js";
1
+ import { t as e } from "../graph-C_btwMni.js";
2
2
  export { e as graph };
@@ -1,2 +1,2 @@
1
- import { o as e, t } from "../ocs-BXaLGcUt.js";
1
+ import { o as e, t } from "../ocs-VeFt8RO1.js";
2
2
  export { e as GetCapabilitiesFactory, t as ocs };
@@ -128,7 +128,7 @@ function u(e) {
128
128
  //#endregion
129
129
  //#region src/sse/index.ts
130
130
  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_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;
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_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
132
  }({}), f = class extends Error {
133
133
  name = "RetriableError";
134
134
  }, p = 15e3, m = class {
@@ -166,7 +166,7 @@ var d = /* @__PURE__ */ function(e) {
166
166
  throw this.readyState = this.CLOSED, new f();
167
167
  },
168
168
  onerror: (e) => {
169
- console.error(e);
169
+ console.warn("SSE connection error, reconnecting...", e);
170
170
  let t = new CustomEvent("error", { detail: e });
171
171
  return this.onerror?.bind(this)(t), 3e4 + Math.floor(Math.random() * p);
172
172
  }
@@ -1,3 +1,3 @@
1
- import { t as e } from "../webdav-A7yhu05L.js";
2
- import { G as t, K as n, W as r, q as i } from "../helpers-DHmgNO5B.js";
1
+ import { t as e } from "../webdav-uHUUUQAP.js";
2
+ import { G as t, K as n, W as r, q as i } from "../helpers-B_uB5urn.js";
3
3
  export { r as DavMethod, t as DavPermission, n as DavProperties, i as DavProperty, e as webdav };
@@ -1,6 +1,6 @@
1
- import { t as e } from "./graph-B9wr4gvT.js";
2
- import { n as t, t as n } from "./webdav-A7yhu05L.js";
3
- import { u as r } from "./toString-DkamdJp-.js";
4
- import { $ as i, A as a, B as o, C as s, D as c, E as l, F as u, H as d, I as f, J as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, T as S, U as C, V as w, X as T, Y as E, Z as D, _ as O, a as k, b as A, c as j, d as M, f as N, g as P, h as F, i as I, j as L, k as R, l as z, m as B, n as V, o as H, p as U, r as W, s as G, t as K, u as q, v as J, w as Y, x as X, y as Z, z as Q } from "./helpers-DHmgNO5B.js";
5
- import { t as $ } from "./ocs-BXaLGcUt.js";
1
+ import { t as e } from "./graph-C_btwMni.js";
2
+ import { n as t, t as n } from "./webdav-uHUUUQAP.js";
3
+ import { u as r } from "./toString-DIrlTUQN.js";
4
+ import { $ as i, A as a, B as o, C as s, D as c, E as l, F as u, H as d, I as f, J as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, T as S, U as C, V as w, X as T, Y as E, Z as D, _ as O, a as k, b as A, c as j, d as M, f as N, g as P, h as F, i as I, j as L, k as R, l as z, m as B, n as V, o as H, p as U, r as W, s as G, t as K, u as q, v as J, w as Y, x as X, y as Z, z as Q } from "./helpers-B_uB5urn.js";
5
+ import { t as $ } from "./ocs-VeFt8RO1.js";
6
6
  export { D as DavHttpError, L as GraphSharePermission, y as HttpError, X as OCM_PROVIDER_ID, x as SHARE_JAIL_ID, h as SharePermissionBit, R as ShareType, a as ShareTypes, K as buildCollaboratorShare, g as buildDeletedResource, V as buildIncomingShareResource, W as buildLinkShare, I as buildOutgoingShareResource, N as buildPublicSpaceResource, v as buildResource, U as buildShareSpaceResource, B as buildSpace, F as buildSpaceImageResource, p as buildWebDavOcmPath, E as buildWebDavPublicPath, P as buildWebDavSpacesPath, O as buildWebDavSpacesTrashPath, i as call, T as createHttpError, t as encodePath, u as extractDomSelector, f as extractExtensionFromFile, m as extractNameWithoutExtension, b as extractNodeId, Q as extractParentFolderName, o as extractStorageId, J as getRelativeSpecialFolderSpacePath, k as getShareResourcePermissions, H as getShareResourceRoles, Z as getSpaceManagers, e as graph, G as isCollaboratorShare, j as isIncomingShareResource, z as isLinkShare, A as isManager, s as isMountPointSpaceResource, q as isOutgoingShareResource, Y as isPersonalSpaceResource, S as isProjectSpaceResource, l as isPublicSpaceResource, w as isSearchResource, M as isShareResource, d as isShareRoot, c as isShareSpaceResource, _ as isSpaceResource, C as isTrashResource, $ as ocs, r as urlJoin, n as webdav };
@@ -1,8 +1,8 @@
1
- import { n as e, r as t, t as n } from "./axios-BAw8OjE9.js";
2
- import { n as r } from "./dist-D0YulRs6.js";
3
- import { u as i } from "./toString-DkamdJp-.js";
4
- import { E as a, K as o, N as s, P as c, Q as l, W as u, Z as d, _ as f, f as p, q as m } from "./helpers-DHmgNO5B.js";
5
- import { a as h, i as g, n as _, r as v, t as y } from "./ocs-BXaLGcUt.js";
1
+ import { n as e, r as t, t as n } from "./axios-idnwLrbl.js";
2
+ import { n as r } from "./dist-DXLl1XQj.js";
3
+ import { u as i } from "./toString-DIrlTUQN.js";
4
+ import { E as a, K as o, N as s, P as c, Q as l, W as u, Z as d, _ as f, f as p, q as m } from "./helpers-B_uB5urn.js";
5
+ import { a as h, i as g, n as _, r as v, t as y } from "./ocs-VeFt8RO1.js";
6
6
  //#region src/utils/encodePath.ts
7
7
  var b = (e) => encodeURIComponent(e).split("%2F").join("/");
8
8
  //#endregion
@@ -621,7 +621,7 @@ var ge = D, O = (e, { fileId: t, path: n, name: r }) => {
621
621
  resources: s.map((t) => ({
622
622
  ...c(t, e.extraProps),
623
623
  highlights: t.props[m.Highlights] || ""
624
- })),
624
+ })).filter((e, t, n) => n.findIndex((t) => t.id === e.id) === t),
625
625
  totalResults: a ? parseInt(a?.split("/")[1]) : null
626
626
  };
627
627
  } }), je = (e, t) => ({ async getPathForFileId(t, n = {}) {
@@ -1757,7 +1757,7 @@ var St = k(285), Ct = (e) => {
1757
1757
  "+",
1758
1758
  "*",
1759
1759
  "@"
1760
- ]), At = (e) => kt.has(e), jt = "(?!\\.)", Mt = new Set(["[", "."]), Nt = new Set(["..", "."]), Pt = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), Ft = "[^/]", It = Ft + "*?", Lt = Ft + "+?", Rt = class e {
1760
+ ]), At = (e) => kt.has(e), jt = "(?!\\.)", Mt = new Set(["[", "."]), Nt = new Set(["..", "."]), Pt = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), Ft = "[^/]", It = "[^/]*?", Lt = "[^/]+?", Rt = class e {
1761
1761
  type;
1762
1762
  #e;
1763
1763
  #t;
@@ -1920,7 +1920,7 @@ var St = k(285), Ct = (e) => {
1920
1920
  let o = !r || t || n ? "" : this.#p(!0);
1921
1921
  o === a && (o = ""), o && (a = `(?:${a})(?:${o})*?`);
1922
1922
  let s = "";
1923
- return s = this.type === "!" && this.#u ? (this.isStart() && !n ? jt : "") + Lt : i + a + (this.type === "!" ? "))" + (!this.isStart() || n || t ? "" : jt) + It + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && o ? ")" : this.type === "*" && o ? ")?" : `)${this.type}`), [
1923
+ return s = this.type === "!" && this.#u ? (this.isStart() && !n ? jt : "") + Lt : i + a + (this.type === "!" ? "))" + (!this.isStart() || n || t ? "" : jt) + "[^/]*?)" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && o ? ")" : this.type === "*" && o ? ")?" : `)${this.type}`), [
1924
1924
  s,
1925
1925
  Ot(a),
1926
1926
  this.#t = !!this.#t,
@@ -4289,7 +4289,7 @@ var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includ
4289
4289
  }, wi = async (e) => {
4290
4290
  let t = (e) => {
4291
4291
  let t = decodeURIComponent(e);
4292
- return e?.startsWith("/remote.php/dav/") ? i(t.replace("/remote.php/dav/", ""), {
4292
+ return e?.startsWith("/dav/") ? i(t.replace("/dav/", ""), {
4293
4293
  leadingSlash: !0,
4294
4294
  trailingSlash: !1
4295
4295
  }) : t;
@@ -4327,7 +4327,7 @@ var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includ
4327
4327
  headers;
4328
4328
  extraProps;
4329
4329
  constructor({ baseUrl: e, headers: t }) {
4330
- this.davPath = i(e, "remote.php/dav"), this.client = mi(this.davPath, {}), this.headers = t, this.extraProps = [];
4330
+ this.davPath = i(e, "dav"), this.client = mi(this.davPath, {}), this.headers = t, this.extraProps = [];
4331
4331
  }
4332
4332
  mkcol(e, t = {}) {
4333
4333
  return this.request(e, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencloud-eu/web-client",
3
- "version": "7.0.1",
3
+ "version": "7.1.2",
4
4
  "description": "OpenCloud web client",
5
5
  "license": "AGPL-3.0",
6
6
  "private": false,
@@ -45,7 +45,7 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@casl/ability": "^6.8.0",
48
+ "@casl/ability": "^7.0.0",
49
49
  "@microsoft/fetch-event-source": "^2.0.1",
50
50
  "axios": "^1.13.6",
51
51
  "fast-xml-parser": "^5.5.9",