@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.
- package/dist/{functions-DK4H9weO.js → functions-BBrAOhdi.js} +53 -54
- package/dist/functions-C2T1nL62.cjs +1 -0
- package/dist/{index-JHVTaNRI.js → index-8RyXehLU.js} +1 -8
- package/dist/{index-w54SVXTg.cjs → index-BG-qXJDl.cjs} +2 -2
- package/dist/{index-2zDycGQj.js → index-BfIzVKrn.js} +3 -3
- package/dist/{index-CAp89HBO.cjs → index-D_FAmyNm.cjs} +14 -14
- package/dist/{index-BMRpHyp4.js → index-Di9dm5GN.js} +11 -11
- package/dist/{index-BZHg3VRz.js → index-GwKxs7Aj.js} +714 -701
- package/dist/index-o5kQnO1p.cjs +1 -0
- package/dist/index-sTep8AuK.cjs +1 -0
- package/dist/src/ocs/capabilities.d.ts +4 -0
- package/dist/src/webdav/getFileUrl.d.ts +3 -1
- package/dist/{toString-XlfBosfh.js → toString-BMC5nz5v.js} +1 -1
- package/dist/{toString-CgHWCW2N.cjs → toString-CEqk2kJI.cjs} +1 -1
- package/dist/web-client/graph/generated.cjs +1 -1
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/graph.cjs +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.cjs +10 -15
- package/dist/web-client/ocs.js +392 -402
- package/dist/web-client/webdav.cjs +1 -1
- package/dist/web-client/webdav.js +3 -3
- package/dist/web-client.cjs +1 -1
- package/dist/web-client.js +6 -6
- package/package.json +1 -1
- package/dist/functions-Bp-DjU7_.cjs +0 -1
- package/dist/index-B21Ll1ii.cjs +0 -1
- package/dist/index-D_NPkUGY.cjs +0 -6
|
@@ -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-
|
|
3
|
-
import { E as ae, F as te, H as re, d as
|
|
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"),
|
|
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
|
|
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 =
|
|
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:
|
|
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.
|
|
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 =
|
|
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:
|
|
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
|
-
|
|
677
|
+
Ue as d,
|
|
678
678
|
ye as e,
|
|
679
679
|
he as f,
|
|
680
680
|
Be as g,
|
|
681
|
-
|
|
681
|
+
Te as h,
|
|
682
682
|
G as i,
|
|
683
683
|
ke as j,
|
|
684
684
|
S as k,
|