@opencloud-eu/web-client 5.1.0 → 6.1.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 (73) hide show
  1. package/dist/axios-Drchb9eh.js +1646 -0
  2. package/dist/dist-tjee3PVd.js +809 -0
  3. package/dist/generated-B6vcMOfs.js +3317 -0
  4. package/dist/graph-DcYhPBws.js +372 -0
  5. package/dist/helpers-B0hzJ78Q.js +1463 -0
  6. package/dist/ocs-2K0ogAXF.js +1658 -0
  7. package/dist/src/graph/activities/activities.d.ts +2 -2
  8. package/dist/src/graph/activities/types.d.ts +2 -2
  9. package/dist/src/graph/applications/applications.d.ts +2 -2
  10. package/dist/src/graph/applications/types.d.ts +2 -2
  11. package/dist/src/graph/driveItems/driveItems.d.ts +2 -2
  12. package/dist/src/graph/driveItems/types.d.ts +3 -1
  13. package/dist/src/graph/drives/drives.d.ts +2 -2
  14. package/dist/src/graph/drives/types.d.ts +4 -3
  15. package/dist/src/graph/generated/api.d.ts +394 -1720
  16. package/dist/src/graph/generated/base.d.ts +11 -24
  17. package/dist/src/graph/generated/common.d.ts +15 -35
  18. package/dist/src/graph/generated/configuration.d.ts +24 -17
  19. package/dist/src/graph/generated/index.d.ts +2 -2
  20. package/dist/src/graph/groups/groups.d.ts +2 -2
  21. package/dist/src/graph/groups/types.d.ts +2 -2
  22. package/dist/src/graph/index.d.ts +2 -2
  23. package/dist/src/graph/permissions/permissions.d.ts +2 -2
  24. package/dist/src/graph/permissions/types.d.ts +2 -2
  25. package/dist/src/graph/photos/photo.d.ts +2 -2
  26. package/dist/src/graph/photos/types.d.ts +1 -1
  27. package/dist/src/graph/tags/tags.d.ts +2 -2
  28. package/dist/src/graph/tags/types.d.ts +2 -2
  29. package/dist/src/graph/types.d.ts +2 -2
  30. package/dist/src/graph/users/types.d.ts +2 -2
  31. package/dist/src/graph/users/users.d.ts +2 -2
  32. package/dist/src/helpers/space/functions.d.ts +1 -1
  33. package/dist/src/webdav/clearTrashBin.d.ts +1 -1
  34. package/dist/src/webdav/copyFiles.d.ts +1 -1
  35. package/dist/src/webdav/deleteFile.d.ts +1 -1
  36. package/dist/src/webdav/listFileVersions.d.ts +1 -1
  37. package/dist/src/webdav/moveFiles.d.ts +1 -1
  38. package/dist/src/webdav/putFileContents.d.ts +1 -1
  39. package/dist/src/webdav/restoreFile.d.ts +1 -1
  40. package/dist/src/webdav/restoreFileVersion.d.ts +1 -1
  41. package/dist/src/webdav/setFavorite.d.ts +1 -1
  42. package/dist/src/webdav/types.d.ts +0 -2
  43. package/dist/toString-tGn_k7yU.js +287 -0
  44. package/dist/web-client/graph/generated.js +2 -5757
  45. package/dist/web-client/graph.js +2 -5
  46. package/dist/web-client/ocs.js +2 -5
  47. package/dist/web-client/sse.js +195 -201
  48. package/dist/web-client/webdav.js +3 -10
  49. package/dist/web-client.js +6 -82
  50. package/dist/webdav-CcBUJk4K.js +4423 -0
  51. package/package.json +8 -14
  52. package/dist/functions-JSgappH3.js +0 -1189
  53. package/dist/functions-K2XX5sqY.cjs +0 -1
  54. package/dist/index-Bjk4YP4o.js +0 -1447
  55. package/dist/index-Brk6gzFd.js +0 -688
  56. package/dist/index-CDNcS2Ra.cjs +0 -1
  57. package/dist/index-CRMq09Yn.js +0 -1933
  58. package/dist/index-D0bnLDAA.cjs +0 -1
  59. package/dist/index-Dn0XwAD_.cjs +0 -13
  60. package/dist/index-YuBBVVCr.js +0 -3860
  61. package/dist/index-_QOU-c0Z.cjs +0 -4
  62. package/dist/index-cttW6Cve.js +0 -1018
  63. package/dist/index-mNoGEl9R.cjs +0 -6
  64. package/dist/src/webdav/listFavoriteFiles.d.ts +0 -12
  65. package/dist/toString-CKeGA2IK.js +0 -255
  66. package/dist/toString-DsGM1XcL.cjs +0 -1
  67. package/dist/vite.config.d.ts +0 -2
  68. package/dist/web-client/graph/generated.cjs +0 -1
  69. package/dist/web-client/graph.cjs +0 -1
  70. package/dist/web-client/ocs.cjs +0 -1
  71. package/dist/web-client/sse.cjs +0 -2
  72. package/dist/web-client/webdav.cjs +0 -1
  73. package/dist/web-client.cjs +0 -1
@@ -0,0 +1,287 @@
1
+ import { n as e } from "./dist-tjee3PVd.js";
2
+ //#region src/utils/urlJoin.ts
3
+ var t = /^(\w+:\/\/[^/?]+)?(.*?)$/, n = (e) => e.filter((e) => typeof e == "string" || typeof e == "number").map((e) => `${e}`).filter((e) => e), r = (e) => {
4
+ let [, n = "", r = ""] = e.join("/").match(t) || [];
5
+ return {
6
+ prefix: n,
7
+ pathname: {
8
+ parts: r.split("/").filter((e) => e !== ""),
9
+ hasLeading: /^\/+/.test(r),
10
+ hasTrailing: /\/+$/.test(r)
11
+ }
12
+ };
13
+ }, i = (e, t) => {
14
+ let { prefix: n, pathname: r } = e, { parts: i, hasLeading: a, hasTrailing: o } = r, { leadingSlash: s, trailingSlash: c } = t, l = s === !0 || s === "keep" && a, u = c === !0 || c === "keep" && o, d = n;
15
+ return i.length > 0 && ((d || l) && (d += "/"), d += i.join("/")), u && (d += "/"), !d && l && (d += "/"), d;
16
+ }, a = (...e) => {
17
+ let t = e[e.length - 1], a;
18
+ return t && typeof t == "object" && (a = t, e = e.slice(0, -1)), a = {
19
+ leadingSlash: !0,
20
+ trailingSlash: !1,
21
+ ...a
22
+ }, e = n(e), i(r(e), a);
23
+ }, o = typeof e == "object" && e && e.Object === Object && e, s = typeof self == "object" && self && self.Object === Object && self, c = o || s || Function("return this")(), l = c.Symbol, u = Object.prototype, d = u.hasOwnProperty, ee = u.toString, f = l ? l.toStringTag : void 0;
24
+ function te(e) {
25
+ var t = d.call(e, f), n = e[f];
26
+ try {
27
+ e[f] = void 0;
28
+ var r = !0;
29
+ } catch {}
30
+ var i = ee.call(e);
31
+ return r && (t ? e[f] = n : delete e[f]), i;
32
+ }
33
+ //#endregion
34
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js
35
+ var p = Object.prototype.toString;
36
+ function m(e) {
37
+ return p.call(e);
38
+ }
39
+ //#endregion
40
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js
41
+ var h = "[object Null]", g = "[object Undefined]", _ = l ? l.toStringTag : void 0;
42
+ function v(e) {
43
+ return e == null ? e === void 0 ? g : h : _ && _ in Object(e) ? te(e) : m(e);
44
+ }
45
+ //#endregion
46
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js
47
+ function y(e) {
48
+ return typeof e == "object" && !!e;
49
+ }
50
+ //#endregion
51
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js
52
+ var b = "[object Symbol]";
53
+ function x(e) {
54
+ return typeof e == "symbol" || y(e) && v(e) == b;
55
+ }
56
+ //#endregion
57
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js
58
+ function S(e, t) {
59
+ for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
60
+ return i;
61
+ }
62
+ //#endregion
63
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.js
64
+ var C = Array.isArray, w = Infinity, T = l ? l.prototype : void 0, E = T ? T.toString : void 0;
65
+ function D(e) {
66
+ if (typeof e == "string") return e;
67
+ if (C(e)) return S(e, D) + "";
68
+ if (x(e)) return E ? E.call(e) : "";
69
+ var t = e + "";
70
+ return t == "0" && 1 / e == -w ? "-0" : t;
71
+ }
72
+ //#endregion
73
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js
74
+ function O(e) {
75
+ var t = typeof e;
76
+ return e != null && (t == "object" || t == "function");
77
+ }
78
+ //#endregion
79
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js
80
+ var k = "[object AsyncFunction]", ne = "[object Function]", re = "[object GeneratorFunction]", ie = "[object Proxy]";
81
+ function A(e) {
82
+ if (!O(e)) return !1;
83
+ var t = v(e);
84
+ return t == ne || t == re || t == k || t == ie;
85
+ }
86
+ //#endregion
87
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js
88
+ var j = c["__core-js_shared__"], M = function() {
89
+ var e = /[^.]+$/.exec(j && j.keys && j.keys.IE_PROTO || "");
90
+ return e ? "Symbol(src)_1." + e : "";
91
+ }();
92
+ function N(e) {
93
+ return !!M && M in e;
94
+ }
95
+ //#endregion
96
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js
97
+ var P = Function.prototype.toString;
98
+ function F(e) {
99
+ if (e != null) {
100
+ try {
101
+ return P.call(e);
102
+ } catch {}
103
+ try {
104
+ return e + "";
105
+ } catch {}
106
+ }
107
+ return "";
108
+ }
109
+ //#endregion
110
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js
111
+ var I = /[\\^$.*+?()[\]{}|]/g, L = /^\[object .+?Constructor\]$/, R = Function.prototype, z = Object.prototype, B = R.toString, V = z.hasOwnProperty, H = RegExp("^" + B.call(V).replace(I, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
112
+ function U(e) {
113
+ return !O(e) || N(e) ? !1 : (A(e) ? H : L).test(F(e));
114
+ }
115
+ //#endregion
116
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js
117
+ function W(e, t) {
118
+ return e?.[t];
119
+ }
120
+ //#endregion
121
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js
122
+ function G(e, t) {
123
+ var n = W(e, t);
124
+ return U(n) ? n : void 0;
125
+ }
126
+ //#endregion
127
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.js
128
+ function K(e, t) {
129
+ return e === t || e !== e && t !== t;
130
+ }
131
+ //#endregion
132
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js
133
+ var q = G(Object, "create");
134
+ //#endregion
135
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js
136
+ function J() {
137
+ this.__data__ = q ? q(null) : {}, this.size = 0;
138
+ }
139
+ //#endregion
140
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js
141
+ function ae(e) {
142
+ var t = this.has(e) && delete this.__data__[e];
143
+ return this.size -= t ? 1 : 0, t;
144
+ }
145
+ //#endregion
146
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js
147
+ var oe = "__lodash_hash_undefined__", se = Object.prototype.hasOwnProperty;
148
+ function ce(e) {
149
+ var t = this.__data__;
150
+ if (q) {
151
+ var n = t[e];
152
+ return n === oe ? void 0 : n;
153
+ }
154
+ return se.call(t, e) ? t[e] : void 0;
155
+ }
156
+ //#endregion
157
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js
158
+ var le = Object.prototype.hasOwnProperty;
159
+ function ue(e) {
160
+ var t = this.__data__;
161
+ return q ? t[e] !== void 0 : le.call(t, e);
162
+ }
163
+ //#endregion
164
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js
165
+ var de = "__lodash_hash_undefined__";
166
+ function fe(e, t) {
167
+ var n = this.__data__;
168
+ return this.size += this.has(e) ? 0 : 1, n[e] = q && t === void 0 ? de : t, this;
169
+ }
170
+ //#endregion
171
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js
172
+ function Y(e) {
173
+ var t = -1, n = e == null ? 0 : e.length;
174
+ for (this.clear(); ++t < n;) {
175
+ var r = e[t];
176
+ this.set(r[0], r[1]);
177
+ }
178
+ }
179
+ Y.prototype.clear = J, Y.prototype.delete = ae, Y.prototype.get = ce, Y.prototype.has = ue, Y.prototype.set = fe;
180
+ //#endregion
181
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js
182
+ function pe() {
183
+ this.__data__ = [], this.size = 0;
184
+ }
185
+ //#endregion
186
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js
187
+ function X(e, t) {
188
+ for (var n = e.length; n--;) if (K(e[n][0], t)) return n;
189
+ return -1;
190
+ }
191
+ //#endregion
192
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js
193
+ var me = Array.prototype.splice;
194
+ function he(e) {
195
+ var t = this.__data__, n = X(t, e);
196
+ return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : me.call(t, n, 1), --this.size, !0);
197
+ }
198
+ //#endregion
199
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js
200
+ function ge(e) {
201
+ var t = this.__data__, n = X(t, e);
202
+ return n < 0 ? void 0 : t[n][1];
203
+ }
204
+ //#endregion
205
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js
206
+ function _e(e) {
207
+ return X(this.__data__, e) > -1;
208
+ }
209
+ //#endregion
210
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js
211
+ function ve(e, t) {
212
+ var n = this.__data__, r = X(n, e);
213
+ return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
214
+ }
215
+ //#endregion
216
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js
217
+ function Z(e) {
218
+ var t = -1, n = e == null ? 0 : e.length;
219
+ for (this.clear(); ++t < n;) {
220
+ var r = e[t];
221
+ this.set(r[0], r[1]);
222
+ }
223
+ }
224
+ Z.prototype.clear = pe, Z.prototype.delete = he, Z.prototype.get = ge, Z.prototype.has = _e, Z.prototype.set = ve;
225
+ //#endregion
226
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.js
227
+ var ye = G(c, "Map");
228
+ //#endregion
229
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js
230
+ function be() {
231
+ this.size = 0, this.__data__ = {
232
+ hash: new Y(),
233
+ map: new (ye || Z)(),
234
+ string: new Y()
235
+ };
236
+ }
237
+ //#endregion
238
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js
239
+ function xe(e) {
240
+ var t = typeof e;
241
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
242
+ }
243
+ //#endregion
244
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js
245
+ function Q(e, t) {
246
+ var n = e.__data__;
247
+ return xe(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
248
+ }
249
+ //#endregion
250
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js
251
+ function Se(e) {
252
+ var t = Q(this, e).delete(e);
253
+ return this.size -= t ? 1 : 0, t;
254
+ }
255
+ //#endregion
256
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js
257
+ function Ce(e) {
258
+ return Q(this, e).get(e);
259
+ }
260
+ //#endregion
261
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js
262
+ function we(e) {
263
+ return Q(this, e).has(e);
264
+ }
265
+ //#endregion
266
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js
267
+ function Te(e, t) {
268
+ var n = Q(this, e), r = n.size;
269
+ return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
270
+ }
271
+ //#endregion
272
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js
273
+ function $(e) {
274
+ var t = -1, n = e == null ? 0 : e.length;
275
+ for (this.clear(); ++t < n;) {
276
+ var r = e[t];
277
+ this.set(r[0], r[1]);
278
+ }
279
+ }
280
+ $.prototype.clear = be, $.prototype.delete = Se, $.prototype.get = Ce, $.prototype.has = we, $.prototype.set = Te;
281
+ //#endregion
282
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toString.js
283
+ function Ee(e) {
284
+ return e == null ? "" : D(e);
285
+ }
286
+ //#endregion
287
+ export { C as a, y as c, A as i, c as l, $ as n, S as o, G as r, x as s, Ee as t, a as u };