@opencloud-eu/web-client 7.4.0 → 8.0.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.
@@ -0,0 +1,4 @@
1
+ //#region ../../node_modules/.pnpm/vite-plugin-node-polyfills@0.28.0_vite@8.3.0_@types+node@25.9.6_jiti@2.7.0_yaml@2.9.0_/node_modules/vite-plugin-node-polyfills/shims/global/dist/index.js
2
+ var e = globalThis || self;
3
+ //#endregion
4
+ export { e as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./axios-CAceQWl5.js";
1
+ import { t as e } from "./axios-ULsDSF3p.js";
2
2
  //#region src/graph/generated/base.ts
3
3
  var t = "https://localhost:9200/graph".replace(/\/+$/, ""), n = {
4
4
  csv: ",",
@@ -1,46 +1,47 @@
1
- import { Ht as e, Ln as t, M as n, Nn as r, O as i, Qt as a, Rt as o, S as s, Tn as c, _n as l, b as u, c as d, cn as f, fn as p, g as m, i as h, in as g, kn as _, mt as v, t as y, ut as b, xn as x } from "./generated-CSkivkhn.js";
2
- import { t as S } from "./urlJoin-_pUL1TUx.js";
3
- import { m as C, r as w, t as T } from "./helpers-hr58GB0t.js";
4
- //#region src/graph/users/users.ts
5
- var E = ({ axiosClient: e, config: n }) => {
6
- let i = x(n, n.basePath, e), a = t(n, n.basePath, e), s = f(n, n.basePath, e), l = o(n, n.basePath, e), u = c(n, n.basePath, e), d = r(n, n.basePath, e);
1
+ import { t as e } from "./axios-ULsDSF3p.js";
2
+ import { Ht as t, Ln as n, M as r, Nn as i, O as a, Qt as o, Rt as s, S as c, Tn as l, _n as u, b as d, c as f, cn as p, fn as m, g as h, i as g, in as _, kn as v, mt as y, t as b, ut as x, xn as S } from "./generated-CkfYRFme.js";
3
+ import { t as C } from "./urlJoin-_pUL1TUx.js";
4
+ import { m as w, r as T, t as E } from "./helpers-C_9em2wB.js";
5
+ //#region ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/index.js
6
+ var { Axios: ee, AxiosError: D, CanceledError: O, isCancel: k, CancelToken: A, VERSION: j, all: M, Cancel: N, isAxiosError: P, spread: F, toFormData: I, AxiosHeaders: L, HttpStatusCode: R, formToJSON: z, getAdapter: B, mergeConfig: V, create: H } = e, U = ({ axiosClient: e, config: t }) => {
7
+ let r = S(t, t.basePath, e), a = n(t, t.basePath, e), o = p(t, t.basePath, e), c = s(t, t.basePath, e), u = l(t, t.basePath, e), d = i(t, t.basePath, e);
7
8
  return {
8
9
  async getUser(e, t, n) {
9
- let { data: r } = await i.getUser(e, t?.select ? /* @__PURE__ */ new Set([...t.select]) : null, t?.expand ? /* @__PURE__ */ new Set([...t.expand]) : /* @__PURE__ */ new Set([
10
+ let { data: i } = await r.getUser(e, t?.select ? /* @__PURE__ */ new Set([...t.select]) : null, t?.expand ? /* @__PURE__ */ new Set([...t.expand]) : /* @__PURE__ */ new Set([
10
11
  "drive",
11
12
  "memberOf",
12
13
  "appRoleAssignments"
13
14
  ]), n);
14
- return r;
15
+ return i;
15
16
  },
16
17
  async createUser(e, t) {
17
18
  let { data: n } = await a.createUser(e, t);
18
19
  return n;
19
20
  },
20
21
  async editUser(e, t, n) {
21
- let { data: r } = await i.updateUser(e, t, n);
22
- return r;
22
+ let { data: i } = await r.updateUser(e, t, n);
23
+ return i;
23
24
  },
24
25
  async deleteUser(e, t, n) {
25
- await i.deleteUser(e, t, n);
26
+ await r.deleteUser(e, t, n);
26
27
  },
27
28
  async listUsers(e, t) {
28
29
  let { data: { value: n } } = await a.listUsers(e?.search, e?.filter, e?.orderBy ? /* @__PURE__ */ new Set([...e.orderBy]) : null, e?.select ? /* @__PURE__ */ new Set([...e.select]) : null, e?.expand ? /* @__PURE__ */ new Set([...e.expand]) : null, t);
29
30
  return n;
30
31
  },
31
32
  async getMe(e, t) {
32
- let { data: n } = await s.getOwnUser(e?.expand ? /* @__PURE__ */ new Set([...e.expand]) : /* @__PURE__ */ new Set(["memberOf"]), t);
33
+ let { data: n } = await o.getOwnUser(e?.expand ? /* @__PURE__ */ new Set([...e.expand]) : /* @__PURE__ */ new Set(["memberOf"]), t);
33
34
  return n;
34
35
  },
35
36
  async editMe(e, t) {
36
- let { data: n } = await s.updateOwnUser(e, t);
37
+ let { data: n } = await o.updateOwnUser(e, t);
37
38
  return n;
38
39
  },
39
40
  async changeOwnPassword(e, t) {
40
- await l.changeOwnPassword(e, t);
41
+ await c.changeOwnPassword(e, t);
41
42
  },
42
43
  async exportPersonalData(e, t, n) {
43
- await i.exportPersonalData(e, t, n);
44
+ await r.exportPersonalData(e, t, n);
44
45
  },
45
46
  async createUserAppRoleAssignment(e, t, n) {
46
47
  let { data: r } = await u.userCreateAppRoleAssignments(e, t, n);
@@ -50,8 +51,8 @@ var E = ({ axiosClient: e, config: n }) => {
50
51
  await d.sendActivityNotification(e, t, n);
51
52
  }
52
53
  };
53
- }, D = ({ axiosClient: e, config: t }) => {
54
- let n = b(t, t.basePath, e), r = v(t, t.basePath, e);
54
+ }, W = ({ axiosClient: e, config: t }) => {
55
+ let n = x(t, t.basePath, e), r = y(t, t.basePath, e);
55
56
  return {
56
57
  async getGroup(e, t, r) {
57
58
  let { data: i } = await n.getGroup(e, t?.select ? /* @__PURE__ */ new Set([...t.select]) : null, t?.expand ? /* @__PURE__ */ new Set([...t.expand]) : /* @__PURE__ */ new Set(["members"]), r);
@@ -73,14 +74,14 @@ var E = ({ axiosClient: e, config: n }) => {
73
74
  return n;
74
75
  },
75
76
  async addMember(e, r, i) {
76
- await n.addMember(e, { "@odata.id": S(t.basePath, "v1.0", "users", r) }, i);
77
+ await n.addMember(e, { "@odata.id": C(t.basePath, "v1.0", "users", r) }, i);
77
78
  },
78
79
  async deleteMember(e, t, r, i) {
79
80
  await n.deleteMember(e, t, r, i);
80
81
  }
81
82
  };
82
- }, O = ({ axiosClient: e, config: t }) => {
83
- let n = d(t, t.basePath, e);
83
+ }, G = ({ axiosClient: e, config: t }) => {
84
+ let n = f(t, t.basePath, e);
84
85
  return {
85
86
  async getApplication(e, t) {
86
87
  let { data: r } = await n.getApplication(e, t);
@@ -91,28 +92,28 @@ var E = ({ axiosClient: e, config: n }) => {
91
92
  return t || [];
92
93
  }
93
94
  };
94
- }, k = (e) => new URL(e.webUrl).origin, A = ({ axiosClient: e, config: t }) => {
95
- let n = u(t, t.basePath, e), r = new a(t, t.basePath, e), i = new s(t, t.basePath, e);
95
+ }, K = (e) => new URL(e.webUrl).origin, q = ({ axiosClient: e, config: t }) => {
96
+ let n = d(t, t.basePath, e), r = new o(t, t.basePath, e), i = new c(t, t.basePath, e);
96
97
  return {
97
98
  async getDrive(e, t, r) {
98
99
  let { data: i } = await n.getDrive(e, t?.select ? /* @__PURE__ */ new Set([...t.select]) : null, r);
99
- return C({
100
+ return w({
100
101
  ...i,
101
- serverUrl: k(i)
102
+ serverUrl: K(i)
102
103
  });
103
104
  },
104
105
  async createDrive(e, t) {
105
106
  let { data: r } = await n.createDrive(e, t);
106
- return C({
107
+ return w({
107
108
  ...r,
108
- serverUrl: k(r)
109
+ serverUrl: K(r)
109
110
  });
110
111
  },
111
112
  async updateDrive(e, t, r) {
112
113
  let { data: i } = await n.updateDrive(e, t, r);
113
- return C({
114
+ return w({
114
115
  ...i,
115
- serverUrl: k(i)
116
+ serverUrl: K(i)
116
117
  });
117
118
  },
118
119
  async disableDrive(e, t, r) {
@@ -120,30 +121,30 @@ var E = ({ axiosClient: e, config: n }) => {
120
121
  },
121
122
  async deleteDrive(e, t, r) {
122
123
  await n.deleteDrive(e, t, {
124
+ ...r,
123
125
  headers: {
124
- ...r?.headers && r.headers || {},
125
- Purge: "T"
126
- },
127
- ...r && { requestOptions: r } || {}
126
+ ...r?.headers,
127
+ common: new L({ Purge: "T" })
128
+ }
128
129
  });
129
130
  },
130
131
  async listMyDrives(e, t) {
131
132
  let { data: { value: n } } = await r.listMyDrivesBeta(e?.orderBy, e?.filter, e?.expand, e?.select ? /* @__PURE__ */ new Set([...e.select]) : null, t);
132
- return n.map((e) => C({
133
+ return n.map((e) => w({
133
134
  ...e,
134
- serverUrl: k(e)
135
+ serverUrl: K(e)
135
136
  }));
136
137
  },
137
138
  async listAllDrives(e, t) {
138
139
  let { data: { value: n } } = await i.listAllDrivesBeta(e?.orderBy, e?.filter, e?.expand, e?.select ? /* @__PURE__ */ new Set([...e.select]) : null, t);
139
- return n.map((e) => C({
140
+ return n.map((e) => w({
140
141
  ...e,
141
- serverUrl: k(e)
142
+ serverUrl: K(e)
142
143
  }));
143
144
  }
144
145
  };
145
- }, j = ({ axiosClient: t, config: r }) => {
146
- let i = m(r, r.basePath, t), a = n(r, r.basePath, t), o = e(r, r.basePath, t);
146
+ }, J = ({ axiosClient: e, config: n }) => {
147
+ let i = h(n, n.basePath, e), a = r(n, n.basePath, e), o = t(n, n.basePath, e);
147
148
  return {
148
149
  async getDriveItem(e, t, n) {
149
150
  let { data: r } = await i.getDriveItem(e, t, void 0, n);
@@ -176,8 +177,8 @@ var E = ({ axiosClient: e, config: n }) => {
176
177
  return n?.value || [];
177
178
  }
178
179
  };
179
- }, M = ({ axiosClient: e, config: t }) => {
180
- let n = l(t, t.basePath, e);
180
+ }, Y = ({ axiosClient: e, config: t }) => {
181
+ let n = u(t, t.basePath, e);
181
182
  return {
182
183
  async listTags(e) {
183
184
  let { data: { value: t } } = await n.getTags(e);
@@ -190,30 +191,30 @@ var E = ({ axiosClient: e, config: n }) => {
190
191
  await n.unassignTags(e, t);
191
192
  }
192
193
  };
193
- }, N = ({ axiosClient: e, config: t }) => {
194
- let n = h(t, t.basePath, e);
194
+ }, X = ({ axiosClient: e, config: t }) => {
195
+ let n = g(t, t.basePath, e);
195
196
  return { async listActivities(e, t) {
196
197
  let { data: { value: r } } = await n.getActivities(e, t);
197
198
  return r || [];
198
199
  } };
199
- }, P = ({ axiosClient: e, config: t }) => {
200
- let r = n(t, t.basePath, e), a = p(t, t.basePath, e), o = i(t, t.basePath, e);
200
+ }, Z = ({ axiosClient: e, config: t }) => {
201
+ let n = r(t, t.basePath, e), i = m(t, t.basePath, e), o = a(t, t.basePath, e);
201
202
  return {
202
203
  async getPermission(e, t, n, r, i) {
203
204
  let { data: a } = await o.getPermission(e, t, n, i);
204
- return a.link ? w({
205
+ return a.link ? T({
205
206
  graphPermission: a,
206
207
  resourceId: t
207
- }) : T({
208
+ }) : E({
208
209
  graphPermission: a,
209
210
  resourceId: t,
210
211
  graphRoles: r || {}
211
212
  });
212
213
  },
213
- async listPermissions(e, t, n, i, a) {
214
+ async listPermissions(e, t, r, i, a) {
214
215
  let s;
215
216
  if (e === t) {
216
- let { data: t } = await r.listPermissionsSpaceRoot(e, i?.filter, i?.select ? /* @__PURE__ */ new Set([...i.select]) : null, i?.count, i?.top || 0, a);
217
+ let { data: t } = await n.listPermissionsSpaceRoot(e, i?.filter, i?.select ? /* @__PURE__ */ new Set([...i.select]) : null, i?.count, i?.top || 0, a);
217
218
  s = t;
218
219
  } else {
219
220
  let { data: n } = await o.listPermissions(e, t, i?.filter, i?.select ? /* @__PURE__ */ new Set([...i.select]) : null, i?.count, i?.top || 0, a);
@@ -221,95 +222,95 @@ var E = ({ axiosClient: e, config: n }) => {
221
222
  }
222
223
  let c = s.value || [], l = s["@libre.graph.permissions.actions.allowedValues"], u = s["@libre.graph.permissions.roles.allowedValues"], d = s["@odata.count"];
223
224
  return {
224
- shares: c.map((e) => e.link ? w({
225
+ shares: c.map((e) => e.link ? T({
225
226
  graphPermission: e,
226
227
  resourceId: t
227
- }) : T({
228
+ }) : E({
228
229
  graphPermission: e,
229
230
  resourceId: t,
230
- graphRoles: n || {}
231
+ graphRoles: r || {}
231
232
  })),
232
233
  allowedActions: l,
233
234
  allowedRoles: u,
234
235
  count: d
235
236
  };
236
237
  },
237
- async updatePermission(e, t, n, i, a, s) {
238
+ async updatePermission(e, t, r, i, a, s) {
238
239
  let c;
239
240
  if (e === t) {
240
- let { data: t } = await r.updatePermissionSpaceRoot(e, n, i, s);
241
+ let { data: t } = await n.updatePermissionSpaceRoot(e, r, i, s);
241
242
  c = t;
242
243
  } else {
243
- let { data: r } = await o.updatePermission(e, t, n, i, s);
244
- c = r;
244
+ let { data: n } = await o.updatePermission(e, t, r, i, s);
245
+ c = n;
245
246
  }
246
- return c.link ? w({
247
+ return c.link ? T({
247
248
  graphPermission: c,
248
249
  resourceId: t
249
- }) : T({
250
+ }) : E({
250
251
  graphPermission: c,
251
252
  resourceId: t,
252
253
  graphRoles: a || {}
253
254
  });
254
255
  },
255
- async deletePermission(e, t, n, i) {
256
+ async deletePermission(e, t, r, i) {
256
257
  if (e === t) {
257
- await r.deletePermissionSpaceRoot(e, n, i);
258
+ await n.deletePermissionSpaceRoot(e, r, i);
258
259
  return;
259
260
  }
260
- await o.deletePermission(e, t, n, i);
261
+ await o.deletePermission(e, t, r, i);
261
262
  },
262
- async createInvite(e, t, n, i, a) {
263
+ async createInvite(e, t, r, i, a) {
263
264
  let s;
264
265
  if (e === t) {
265
- let { data: t } = await r.inviteSpaceRoot(e, n, a);
266
+ let { data: t } = await n.inviteSpaceRoot(e, r, a);
266
267
  s = t.value?.[0];
267
268
  } else {
268
- let { data: r } = await o.invite(e, t, n, a);
269
- s = r.value?.[0];
269
+ let { data: n } = await o.invite(e, t, r, a);
270
+ s = n.value?.[0];
270
271
  }
271
272
  if (!s) throw Error("no permission returned");
272
- return T({
273
+ return E({
273
274
  graphPermission: s,
274
275
  resourceId: t,
275
276
  graphRoles: i || {}
276
277
  });
277
278
  },
278
- async createLink(e, t, n, i) {
279
+ async createLink(e, t, r, i) {
279
280
  let a;
280
281
  if (e === t) {
281
- let { data: t } = await r.createLinkSpaceRoot(e, n, i);
282
+ let { data: t } = await n.createLinkSpaceRoot(e, r, i);
282
283
  a = t;
283
284
  } else {
284
- let { data: r } = await o.createLink(e, t, n, i);
285
- a = r;
285
+ let { data: n } = await o.createLink(e, t, r, i);
286
+ a = n;
286
287
  }
287
- return w({
288
+ return T({
288
289
  graphPermission: a,
289
290
  resourceId: t
290
291
  });
291
292
  },
292
- async setPermissionPassword(e, t, n, i, a) {
293
+ async setPermissionPassword(e, t, r, i, a) {
293
294
  let s;
294
295
  if (e === t) {
295
- let { data: t } = await r.setPermissionPasswordSpaceRoot(e, n, i, a);
296
+ let { data: t } = await n.setPermissionPasswordSpaceRoot(e, r, i, a);
296
297
  s = t;
297
298
  } else {
298
- let { data: r } = await o.setPermissionPassword(e, t, n, i, a);
299
- s = r;
299
+ let { data: n } = await o.setPermissionPassword(e, t, r, i, a);
300
+ s = n;
300
301
  }
301
- return w({
302
+ return T({
302
303
  graphPermission: s,
303
304
  resourceId: t
304
305
  });
305
306
  },
306
307
  async listRoleDefinitions(e) {
307
- let { data: t } = await a.listPermissionRoleDefinitions(e);
308
+ let { data: t } = await i.listPermissionRoleDefinitions(e);
308
309
  return t;
309
310
  }
310
311
  };
311
- }, F = ({ axiosClient: e, config: t }) => {
312
- let n = g(t, t.basePath, e), r = _(t, t.basePath, e);
312
+ }, Q = ({ axiosClient: e, config: t }) => {
313
+ let n = _(t, t.basePath, e), r = v(t, t.basePath, e);
313
314
  return {
314
315
  async getOwnUserPhoto(e) {
315
316
  let { data: t } = await n.getOwnUserPhoto(e);
@@ -328,48 +329,48 @@ var E = ({ axiosClient: e, config: n }) => {
328
329
  return n;
329
330
  }
330
331
  };
331
- }, I = (e, t) => {
332
+ }, $ = (e, t) => {
332
333
  let n = new URL(e);
333
334
  n.pathname = [...n.pathname.split("/"), "graph"].filter(Boolean).join("/");
334
- let r = new y({ basePath: n.href });
335
+ let r = new b({ basePath: n.href });
335
336
  return {
336
- activities: N({
337
+ activities: X({
337
338
  axiosClient: t,
338
339
  config: r
339
340
  }),
340
- applications: O({
341
+ applications: G({
341
342
  axiosClient: t,
342
343
  config: r
343
344
  }),
344
- tags: M({
345
+ tags: Y({
345
346
  axiosClient: t,
346
347
  config: r
347
348
  }),
348
- drives: A({
349
+ drives: q({
349
350
  axiosClient: t,
350
351
  config: r
351
352
  }),
352
- driveItems: j({
353
+ driveItems: J({
353
354
  axiosClient: t,
354
355
  config: r
355
356
  }),
356
- users: E({
357
+ users: U({
357
358
  axiosClient: t,
358
359
  config: r
359
360
  }),
360
- groups: D({
361
+ groups: W({
361
362
  axiosClient: t,
362
363
  config: r
363
364
  }),
364
- permissions: P({
365
+ permissions: Z({
365
366
  axiosClient: t,
366
367
  config: r
367
368
  }),
368
- photos: F({
369
+ photos: Q({
369
370
  axiosClient: t,
370
371
  config: r
371
372
  })
372
373
  };
373
374
  };
374
375
  //#endregion
375
- export { I as t };
376
+ export { $ as t };
@@ -1,6 +1,6 @@
1
- import { a as e, i as t, n, r } from "./axios-CAceQWl5.js";
1
+ import { a as e, i as t, n, r } from "./axios-ULsDSF3p.js";
2
2
  import { t as i } from "./urlJoin-_pUL1TUx.js";
3
- import { c as a, i as o, l as s, n as c, o as l, r as u, t as d } from "./toString-Y_fh2BSJ.js";
3
+ import { c as a, i as o, l as s, n as c, o as l, r as u, t as d } from "./toString-DfgrQ1mh.js";
4
4
  //#region src/helpers/publicLink/functions.ts
5
5
  function f(e, t = "") {
6
6
  return `/public-files/${e}/${t}`.split("/").filter(Boolean).join("/");
@@ -225,6 +225,10 @@ var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
225
225
  value: "photo",
226
226
  type: null
227
227
  },
228
+ MotionPhoto: {
229
+ value: "motion-photo",
230
+ type: null
231
+ },
228
232
  ETag: v("getetag"),
229
233
  MimeType: v("getcontenttype"),
230
234
  ResourceType: ((e) => _(e))("resourcetype"),
@@ -287,6 +291,7 @@ var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
287
291
  b.Location,
288
292
  b.Image,
289
293
  b.Photo,
294
+ b.MotionPhoto,
290
295
  b.HasPreview
291
296
  ];
292
297
  static PublicLink = e.Default.concat([
@@ -939,6 +944,7 @@ function nn(e, t = []) {
939
944
  location: U(e.props[b.Location]),
940
945
  image: U(e.props[b.Image]),
941
946
  photo: U(e.props[b.Photo]),
947
+ motionPhoto: U(e.props[b.MotionPhoto]),
942
948
  extraProps: f,
943
949
  hasPreview: () => e.props[b.HasPreview] === 1,
944
950
  canUpload: function() {