@opencloud-eu/web-client 8.0.0 → 8.2.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.
Files changed (34) hide show
  1. package/dist/{axios-ULsDSF3p.js → axios-DRPhbClr.js} +13 -49
  2. package/dist/{dist-WdVfmT0d.js → dist-CHy-DaIN.js} +1 -1
  3. package/dist/{generated-CkfYRFme.js → generated-4nR8KA38.js} +505 -311
  4. package/dist/{graph-D3q1149Y.js → graph-CwVan2Jp.js} +123 -98
  5. package/dist/{helpers-C_9em2wB.js → helpers-Bh5xR_vg.js} +46 -37
  6. package/dist/{ocs-CGD-4vGl.js → ocs-Dfdjrujs.js} +271 -296
  7. package/dist/{ox-D1FgExd1.js → schemas-rdabTCJb.js} +1366 -1250
  8. package/dist/src/errors.d.ts +2 -1
  9. package/dist/src/graph/generated/api.d.ts +639 -24
  10. package/dist/src/graph/guestLinks/guestLinks.d.ts +3 -0
  11. package/dist/src/graph/guestLinks/index.d.ts +2 -0
  12. package/dist/src/graph/guestLinks/types.d.ts +13 -0
  13. package/dist/src/graph/index.d.ts +3 -0
  14. package/dist/src/graph/types.d.ts +1 -0
  15. package/dist/src/helpers/resource/types.d.ts +3 -2
  16. package/dist/src/helpers/share/types.d.ts +3 -0
  17. package/dist/src/helpers/space/functions.d.ts +2 -2
  18. package/dist/src/ocs/capabilities.d.ts +1 -0
  19. package/dist/src/sse/index.d.ts +12 -0
  20. package/dist/src/webdav/client/dav.d.ts +3 -1
  21. package/dist/src/webdav/client/parsers.d.ts +1 -0
  22. package/dist/src/webdav/constants/dav.d.ts +5 -1
  23. package/dist/src/webdav/index.d.ts +1 -1
  24. package/dist/{toString-DfgrQ1mh.js → toString-uorCN9F3.js} +1 -1
  25. package/dist/web-client/graph/generated.js +1 -2
  26. package/dist/web-client/graph.js +1 -2
  27. package/dist/web-client/ocs.js +1 -2
  28. package/dist/web-client/ox.js +49 -2
  29. package/dist/web-client/sse.js +57 -48
  30. package/dist/web-client/webdav.js +2 -2
  31. package/dist/web-client.js +5 -5
  32. package/dist/webdav-DrQsSfxZ.js +6431 -0
  33. package/package.json +2 -4
  34. package/dist/webdav-BxsiETq0.js +0 -4538
@@ -1,4 +1,4 @@
1
- import { t as e } from "./dist-WdVfmT0d.js";
1
+ import { t as e } from "./dist-CHy-DaIN.js";
2
2
  //#region \0rolldown/runtime.js
3
3
  var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = Object.getOwnPropertyNames, a = Object.getPrototypeOf, o = Object.prototype.hasOwnProperty, s = (e, t, n) => () => {
4
4
  if (n) throw n[0];
@@ -7,7 +7,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr
7
7
  } catch (e) {
8
8
  throw n = [e], e;
9
9
  }
10
- }, c = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), l = (e, t) => {
10
+ }, c = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), l = (e, t) => {
11
11
  let r = {};
12
12
  for (var i in e) n(r, i, {
13
13
  get: e[i],
@@ -25,7 +25,7 @@ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescr
25
25
  enumerable: !0
26
26
  }) : i, e));
27
27
  //#endregion
28
- //#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/process/dist/index.js
28
+ //#region ../../node_modules/.pnpm/vite-plugin-node-polyfills@0.28.0_vite@8.3.5_@types+node@25.9.9_jiti@2.7.0_yaml@2.9.1_/node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js
29
29
  function f(e) {
30
30
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
31
31
  }
@@ -299,15 +299,9 @@ var Le = (e, t, n, { allOwnKeys: r } = {}) => (Ne(t, (t, r) => {
299
299
  "callee"
300
300
  ].includes(n)) return !1;
301
301
  let r = e[n];
302
- if (U(r)) {
303
- if (t.enumerable = !1, "writable" in t) {
304
- t.writable = !1;
305
- return;
306
- }
307
- t.set ||= () => {
308
- throw Error("Can not rewrite read-only method '" + n + "'");
309
- };
310
- }
302
+ U(r) && (t.enumerable = !1, "writable" in t ? t.writable = !1 : t.set ||= () => {
303
+ throw Error("Can not rewrite read-only method '" + n + "'");
304
+ });
311
305
  });
312
306
  }, Qe = (e, t) => {
313
307
  let n = {}, r = (e) => {
@@ -1357,13 +1351,9 @@ function X(e, t) {
1357
1351
  //#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/lib/core/setFormDataHeaders.js
1358
1352
  var Ln = ["content-type", "content-length"];
1359
1353
  function Rn(e, t, n) {
1360
- if (n !== "content-only") {
1361
- e.set(t);
1362
- return;
1363
- }
1364
- Object.entries(t || {}).forEach(([t, n]) => {
1354
+ n === "content-only" ? Object.entries(t || {}).forEach(([t, n]) => {
1365
1355
  Ln.includes(t.toLowerCase()) && e.set(t, n);
1366
- });
1356
+ }) : e.set(t);
1367
1357
  }
1368
1358
  //#endregion
1369
1359
  //#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/lib/helpers/resolveConfig.js
@@ -1440,11 +1430,7 @@ var Vn = typeof XMLHttpRequest < "u" && function(e) {
1440
1430
  g &&= (n(!t || t.type ? new gn(null, e, g) : t), g.abort(), h(), null);
1441
1431
  }, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
1442
1432
  let v = bn(r.url);
1443
- if (v && !J.protocols.includes(v)) {
1444
- n(new q("Unsupported protocol " + v + ":", q.ERR_BAD_REQUEST, e)), h();
1445
- return;
1446
- }
1447
- g.send(i || null);
1433
+ v && !J.protocols.includes(v) ? (n(new q("Unsupported protocol " + v + ":", q.ERR_BAD_REQUEST, e)), h()) : g.send(i || null);
1448
1434
  });
1449
1435
  }, Hn = (e, t) => {
1450
1436
  if (e = e ? e.filter(Boolean) : [], !t && !e.length) return;
@@ -1462,13 +1448,7 @@ var Vn = typeof XMLHttpRequest < "u" && function(e) {
1462
1448
  }), null);
1463
1449
  };
1464
1450
  e.forEach((e) => {
1465
- if (!r) {
1466
- if (e.aborted) {
1467
- i.call(e);
1468
- return;
1469
- }
1470
- e.addEventListener("abort", i, { once: !0 });
1471
- }
1451
+ r || (e.aborted ? i.call(e) : e.addEventListener("abort", i, { once: !0 }));
1472
1452
  });
1473
1453
  let { signal: s } = n;
1474
1454
  return s.unsubscribe = () => G.asap(o), s;
@@ -1529,17 +1509,7 @@ var Vn = typeof XMLHttpRequest < "u" && function(e) {
1529
1509
  let t = e.length, n = 0, r = 0, i = !1;
1530
1510
  for (let a = 0; a < t; a++) {
1531
1511
  let o = e.charCodeAt(a);
1532
- if (o === 37 && Jn(e, a, t) && (o = Yn(e.charCodeAt(a + 1)) * 16 + Yn(e.charCodeAt(a + 2)), a += 2), !Zn(o)) {
1533
- if (o === 61) {
1534
- r++;
1535
- continue;
1536
- }
1537
- if (!Xn(o) || r > 0) {
1538
- i = !0;
1539
- continue;
1540
- }
1541
- n++;
1542
- }
1512
+ o === 37 && Jn(e, a, t) && (o = Yn(e.charCodeAt(a + 1)) * 16 + Yn(e.charCodeAt(a + 2)), a += 2), !Zn(o) && (o === 61 ? r++ : !Xn(o) || r > 0 ? i = !0 : n++);
1543
1513
  }
1544
1514
  return i || r > 2 || r > 0 && (n + r) % 4 != 0 || n % 4 == 1 ? $n(e) : Qn(n);
1545
1515
  }, tr = (e, t) => {
@@ -1879,9 +1849,7 @@ function Cr(e, t, n) {
1879
1849
  if (o) {
1880
1850
  let t = e[a], n = t === void 0 || o(t, a, e);
1881
1851
  if (n !== !0) throw new q("option " + a + " must be " + n, q.ERR_BAD_OPTION_VALUE);
1882
- continue;
1883
- }
1884
- if (n !== !0) throw new q("Unknown option " + a, q.ERR_BAD_OPTION);
1852
+ } else if (n !== !0) throw new q("Unknown option " + a, q.ERR_BAD_OPTION);
1885
1853
  }
1886
1854
  }
1887
1855
  var wr = {
@@ -2046,11 +2014,7 @@ var Tr = class e {
2046
2014
  if (this.reason) throw this.reason;
2047
2015
  }
2048
2016
  subscribe(e) {
2049
- if (this.reason) {
2050
- e(this.reason);
2051
- return;
2052
- }
2053
- this._listeners ? this._listeners.push(e) : this._listeners = [e];
2017
+ this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e];
2054
2018
  }
2055
2019
  unsubscribe(e) {
2056
2020
  if (!this._listeners) return;
@@ -1,4 +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
1
+ //#region ../../node_modules/.pnpm/vite-plugin-node-polyfills@0.28.0_vite@8.3.5_@types+node@25.9.9_jiti@2.7.0_yaml@2.9.1_/node_modules/vite-plugin-node-polyfills/shims/global/dist/index.js
2
2
  var e = globalThis || self;
3
3
  //#endregion
4
4
  export { e as t };