@opencloud-eu/web-client 4.2.0 → 4.3.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.
@@ -1,6 +1,6 @@
1
1
  import { UserApiFactory as N, UsersApiFactory as E, MeUserApiFactory as x, MeChangepasswordApiFactory as L, UserAppRoleAssignmentApiFactory as O, GroupApiFactory as z, GroupsApiFactory as W, ApplicationsApiFactory as V, DrivesApiFactory as j, MeDrivesApi as H, DrivesGetDrivesApi as Y, DriveItemApiFactory as _, DrivesRootApiFactory as R, MeDriveApiFactory as J, TagsApiFactory as Q, ActivitiesApiFactory as Z, RoleManagementApiFactory as $, DrivesPermissionsApiFactory as K, MePhotoApiFactory as X, UserPhotoApiFactory as q, Configuration as C } from "./web-client/graph/generated.js";
2
- import { u as v, g as I, r as ee } from "./toString-XlfBosfh.js";
3
- import { E as ae, F as te, H as re, d as T, n as h, o as U, h as k, e as B, G as g, v as A } from "./functions-DK4H9weO.js";
2
+ import { u as v, g as I, r as ee } from "./toString-BMC5nz5v.js";
3
+ import { E as ae, F as te, H as re, d as U, n as h, o as T, h as k, e as B, G as g, v as A } from "./functions-BBrAOhdi.js";
4
4
  const se = ({ axiosClient: e, config: s }) => {
5
5
  const o = N(s, s.basePath, e), c = E(s, s.basePath, e), i = x(s, s.basePath, e), a = L(
6
6
  s,
@@ -171,7 +171,7 @@ function de(e, s, o) {
171
171
  function pe(e) {
172
172
  return e && e.length ? de(e) : [];
173
173
  }
174
- const G = (e) => Object.hasOwn(e, "sharedWith"), Fe = (e) => G(e) && e.outgoing, fe = (e) => G(e) && !e.outgoing, Re = (e) => Object.hasOwn(e, "role"), Te = (e) => !Object.hasOwn(e, "role"), ye = ({
174
+ const G = (e) => Object.hasOwn(e, "sharedWith"), Fe = (e) => G(e) && e.outgoing, fe = (e) => G(e) && !e.outgoing, Re = (e) => Object.hasOwn(e, "role"), Ue = (e) => !Object.hasOwn(e, "role"), ye = ({
175
175
  driveItem: e,
176
176
  graphRoles: s
177
177
  }) => e.remoteItem?.permissions.reduce((o, c) => (c.roles?.forEach((i) => {
@@ -196,12 +196,12 @@ const G = (e) => Object.hasOwn(e, "sharedWith"), Fe = (e) => G(e) && e.outgoing,
196
196
  }), c), []);
197
197
  return [...new Set(o)];
198
198
  };
199
- function Ue({
199
+ function Te({
200
200
  driveItem: e,
201
201
  graphRoles: s,
202
202
  serverUrl: o
203
203
  }) {
204
- const c = e.name || e.remoteItem.name, i = T(e.remoteItem.id), a = e.remoteItem.permissions.map((p) => {
204
+ const c = e.name || e.remoteItem.name, i = U(e.remoteItem.id), a = e.remoteItem.permissions.map((p) => {
205
205
  const { grantedToV2: w } = p;
206
206
  return {
207
207
  ...w.group || w.user,
@@ -225,7 +225,7 @@ function Ue({
225
225
  parentFolderId: e.parentReference?.id,
226
226
  sdate: e.remoteItem.permissions[0].createdDateTime,
227
227
  tags: [],
228
- webDavPath: U(e.remoteItem.id, "/"),
228
+ webDavPath: T(e.remoteItem.id, "/"),
229
229
  sharedBy: t,
230
230
  owner: e.remoteItem.createdBy?.user,
231
231
  sharedWith: a,
@@ -246,7 +246,7 @@ function Ue({
246
246
  canUpload: () => l.includes(g.createUpload),
247
247
  canCreate: () => l.includes(g.createChildren),
248
248
  canBeDeleted: () => l.includes(g.deleteStandard),
249
- canEditTags: () => l.includes(g.createChildren),
249
+ canEditTags: () => l.includes(g.createUpload),
250
250
  isMounted: () => !1,
251
251
  isReceivedShare: () => !0,
252
252
  canShare: () => !1,
@@ -259,7 +259,7 @@ function ke({
259
259
  user: s,
260
260
  serverUrl: o
261
261
  }) {
262
- const c = T(e.id), i = v(e.parentReference.path, e.name), a = {
262
+ const c = U(e.id), i = v(e.parentReference.path, e.name), a = {
263
263
  id: e.id,
264
264
  driveId: e.parentReference?.driveId,
265
265
  path: i,
@@ -270,7 +270,7 @@ function ke({
270
270
  parentFolderId: e.parentReference?.id,
271
271
  sdate: e.permissions[0].createdDateTime,
272
272
  tags: [],
273
- webDavPath: U(c, i),
273
+ webDavPath: T(c, i),
274
274
  sharedBy: [{ id: s.id, displayName: s.displayName }],
275
275
  owner: { id: s.id, displayName: s.displayName },
276
276
  sharedWith: e.permissions.map((t) => {
@@ -674,11 +674,11 @@ export {
674
674
  Fe as a,
675
675
  fe as b,
676
676
  Re as c,
677
- Te as d,
677
+ Ue as d,
678
678
  ye as e,
679
679
  he as f,
680
680
  Be as g,
681
- Ue as h,
681
+ Te as h,
682
682
  G as i,
683
683
  ke as j,
684
684
  S as k,