@opencloud-eu/web-client 6.0.0 → 6.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 (73) hide show
  1. package/dist/axios-B1HWJqDx.js +1682 -0
  2. package/dist/dist-SL1_CMpG.js +809 -0
  3. package/dist/generated-DPf3CPe4.js +3317 -0
  4. package/dist/graph-Cld6mTON.js +372 -0
  5. package/dist/helpers-DoHY9e_0.js +1463 -0
  6. package/dist/ocs-B7FkclLT.js +2919 -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-DAQZ_8iK.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-BMNOaQXh.js +4425 -0
  51. package/package.json +9 -15
  52. package/dist/functions-BBKWOL6l.js +0 -1189
  53. package/dist/functions-VxhUeT1u.cjs +0 -1
  54. package/dist/index-BYnmk_Nt.cjs +0 -13
  55. package/dist/index-Bf956okn.js +0 -3874
  56. package/dist/index-Bjx4f50a.js +0 -1999
  57. package/dist/index-C32gBO3b.cjs +0 -6
  58. package/dist/index-D0bnLDAA.cjs +0 -1
  59. package/dist/index-Di51ZQKD.cjs +0 -4
  60. package/dist/index-Dn8UfKx7.js +0 -1520
  61. package/dist/index-Sp7XASDj.js +0 -688
  62. package/dist/index-_S-l3FmE.cjs +0 -1
  63. package/dist/index-cttW6Cve.js +0 -1018
  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
@@ -1,5 +1,2 @@
1
- import "./graph/generated.js";
2
- import { f as a } from "../index-Sp7XASDj.js";
3
- export {
4
- a as graph
5
- };
1
+ import { t as e } from "../graph-Cld6mTON.js";
2
+ export { e as graph };
@@ -1,5 +1,2 @@
1
- import { G as s, o as t } from "../index-Dn8UfKx7.js";
2
- export {
3
- s as GetCapabilitiesFactory,
4
- t as ocs
5
- };
1
+ import { a as e, t } from "../ocs-B7FkclLT.js";
2
+ export { e as GetCapabilitiesFactory, t as ocs };
@@ -1,208 +1,202 @@
1
- async function k(t, e) {
2
- const n = t.getReader();
3
- let r;
4
- for (; !(r = await n.read()).done; )
5
- e(r.value);
1
+ //#region ../../node_modules/.pnpm/@microsoft+fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/parse.js
2
+ async function e(e, t) {
3
+ let n = e.getReader(), r;
4
+ for (; !(r = await n.read()).done;) t(r.value);
6
5
  }
7
- function H(t) {
8
- let e, n, r, o = !1;
9
- return function(a) {
10
- e === void 0 ? (e = a, n = 0, r = -1) : e = A(e, a);
11
- const i = e.length;
12
- let s = 0;
13
- for (; n < i; ) {
14
- o && (e[n] === 10 && (s = ++n), o = !1);
15
- let c = -1;
16
- for (; n < i && c === -1; ++n)
17
- switch (e[n]) {
18
- case 58:
19
- r === -1 && (r = n - s);
20
- break;
21
- case 13:
22
- o = !0;
23
- case 10:
24
- c = n;
25
- break;
26
- }
27
- if (c === -1)
28
- break;
29
- t(e.subarray(s, c), r), s = n, r = -1;
30
- }
31
- s === i ? e = void 0 : s !== 0 && (e = e.subarray(s), n -= s);
32
- };
6
+ function t(e) {
7
+ let t, n, i, a = !1;
8
+ return function(o) {
9
+ t === void 0 ? (t = o, n = 0, i = -1) : t = r(t, o);
10
+ let s = t.length, c = 0;
11
+ for (; n < s;) {
12
+ a &&= (t[n] === 10 && (c = ++n), !1);
13
+ let r = -1;
14
+ for (; n < s && r === -1; ++n) switch (t[n]) {
15
+ case 58:
16
+ i === -1 && (i = n - c);
17
+ break;
18
+ case 13: a = !0;
19
+ case 10:
20
+ r = n;
21
+ break;
22
+ }
23
+ if (r === -1) break;
24
+ e(t.subarray(c, r), i), c = n, i = -1;
25
+ }
26
+ c === s ? t = void 0 : c !== 0 && (t = t.subarray(c), n -= c);
27
+ };
33
28
  }
34
- function T(t, e, n) {
35
- let r = D();
36
- const o = new TextDecoder();
37
- return function(a, i) {
38
- if (a.length === 0)
39
- n?.(r), r = D();
40
- else if (i > 0) {
41
- const s = o.decode(a.subarray(0, i)), c = i + (a[i + 1] === 32 ? 2 : 1), l = o.decode(a.subarray(c));
42
- switch (s) {
43
- case "data":
44
- r.data = r.data ? r.data + `
45
- ` + l : l;
46
- break;
47
- case "event":
48
- r.event = l;
49
- break;
50
- case "id":
51
- t(r.id = l);
52
- break;
53
- case "retry":
54
- const u = parseInt(l, 10);
55
- isNaN(u) || e(r.retry = u);
56
- break;
57
- }
58
- }
59
- };
29
+ function n(e, t, n) {
30
+ let r = i(), a = new TextDecoder();
31
+ return function(o, s) {
32
+ if (o.length === 0) n?.(r), r = i();
33
+ else if (s > 0) {
34
+ let n = a.decode(o.subarray(0, s)), i = s + (o[s + 1] === 32 ? 2 : 1), c = a.decode(o.subarray(i));
35
+ switch (n) {
36
+ case "data":
37
+ r.data = r.data ? r.data + "\n" + c : c;
38
+ break;
39
+ case "event":
40
+ r.event = c;
41
+ break;
42
+ case "id":
43
+ e(r.id = c);
44
+ break;
45
+ case "retry":
46
+ let n = parseInt(c, 10);
47
+ isNaN(n) || t(r.retry = n);
48
+ break;
49
+ }
50
+ }
51
+ };
60
52
  }
61
- function A(t, e) {
62
- const n = new Uint8Array(t.length + e.length);
63
- return n.set(t), n.set(e, t.length), n;
53
+ function r(e, t) {
54
+ let n = new Uint8Array(e.length + t.length);
55
+ return n.set(e), n.set(t, e.length), n;
64
56
  }
65
- function D() {
66
- return {
67
- data: "",
68
- event: "",
69
- id: "",
70
- retry: void 0
71
- };
57
+ function i() {
58
+ return {
59
+ data: "",
60
+ event: "",
61
+ id: "",
62
+ retry: void 0
63
+ };
72
64
  }
73
- var F = function(t, e) {
74
- var n = {};
75
- for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
76
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
77
- for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
78
- e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
79
- return n;
80
- };
81
- const y = "text/event-stream", _ = 1e3, R = "last-event-id";
82
- function U(t, e) {
83
- var { signal: n, headers: r, onopen: o, onmessage: h, onclose: a, onerror: i, openWhenHidden: s, fetch: c } = e, l = F(e, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
84
- return new Promise((u, N) => {
85
- const f = Object.assign({}, r);
86
- f.accept || (f.accept = y);
87
- let v;
88
- function C() {
89
- v.abort(), document.hidden || g();
90
- }
91
- s || document.addEventListener("visibilitychange", C);
92
- let L = _, b = 0;
93
- function O() {
94
- document.removeEventListener("visibilitychange", C), window.clearTimeout(b), v.abort();
95
- }
96
- n?.addEventListener("abort", () => {
97
- O(), u();
98
- });
99
- const I = c ?? window.fetch, E = o ?? j;
100
- async function g() {
101
- var w;
102
- v = new AbortController();
103
- try {
104
- const p = await I(t, Object.assign(Object.assign({}, l), { headers: f, signal: v.signal }));
105
- await E(p), await k(p.body, H(T((d) => {
106
- d ? f[R] = d : delete f[R];
107
- }, (d) => {
108
- L = d;
109
- }, h))), a?.(), O(), u();
110
- } catch (p) {
111
- if (!v.signal.aborted)
112
- try {
113
- const d = (w = i?.(p)) !== null && w !== void 0 ? w : L;
114
- window.clearTimeout(b), b = window.setTimeout(g, d);
115
- } catch (d) {
116
- O(), N(d);
117
- }
118
- }
119
- }
120
- g();
121
- });
65
+ //#endregion
66
+ //#region ../../node_modules/.pnpm/@microsoft+fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.js
67
+ var a = function(e, t) {
68
+ var n = {};
69
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
70
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
71
+ return n;
72
+ }, o = "text/event-stream", s = 1e3, c = "last-event-id";
73
+ function l(r, i) {
74
+ var { signal: l, headers: d, onopen: f, onmessage: p, onclose: m, onerror: h, openWhenHidden: g, fetch: _ } = i, v = a(i, [
75
+ "signal",
76
+ "headers",
77
+ "onopen",
78
+ "onmessage",
79
+ "onclose",
80
+ "onerror",
81
+ "openWhenHidden",
82
+ "fetch"
83
+ ]);
84
+ return new Promise((i, a) => {
85
+ let y = Object.assign({}, d);
86
+ y.accept ||= o;
87
+ let b;
88
+ function x() {
89
+ b.abort(), document.hidden || D();
90
+ }
91
+ g || document.addEventListener("visibilitychange", x);
92
+ let S = s, C = 0;
93
+ function w() {
94
+ document.removeEventListener("visibilitychange", x), window.clearTimeout(C), b.abort();
95
+ }
96
+ l?.addEventListener("abort", () => {
97
+ w(), i();
98
+ });
99
+ let T = _ ?? window.fetch, E = f ?? u;
100
+ async function D() {
101
+ b = new AbortController();
102
+ try {
103
+ let a = await T(r, Object.assign(Object.assign({}, v), {
104
+ headers: y,
105
+ signal: b.signal
106
+ }));
107
+ await E(a), await e(a.body, t(n((e) => {
108
+ e ? y[c] = e : delete y[c];
109
+ }, (e) => {
110
+ S = e;
111
+ }, p))), m?.(), w(), i();
112
+ } catch (e) {
113
+ if (!b.signal.aborted) try {
114
+ let t = h?.(e) ?? S;
115
+ window.clearTimeout(C), C = window.setTimeout(D, t);
116
+ } catch (e) {
117
+ w(), a(e);
118
+ }
119
+ }
120
+ }
121
+ D();
122
+ });
122
123
  }
123
- function j(t) {
124
- const e = t.headers.get("content-type");
125
- if (!e?.startsWith(y))
126
- throw new Error(`Expected content-type to be ${y}, Actual: ${e}`);
124
+ function u(e) {
125
+ let t = e.headers.get("content-type");
126
+ if (!t?.startsWith("text/event-stream")) throw Error(`Expected content-type to be ${o}, Actual: ${t}`);
127
127
  }
128
- var x = /* @__PURE__ */ ((t) => (t.NOTIFICATION = "userlog-notification", t.POSTPROCESSING_FINISHED = "postprocessing-finished", t.FILE_LOCKED = "file-locked", t.FILE_UNLOCKED = "file-unlocked", t.FILE_TOUCHED = "file-touched", t.ITEM_RENAMED = "item-renamed", t.ITEM_TRASHED = "item-trashed", t.ITEM_RESTORED = "item-restored", t.ITEM_MOVED = "item-moved", t.FOLDER_CREATED = "folder-created", t.SPACE_MEMBER_ADDED = "space-member-added", t.SPACE_MEMBER_REMOVED = "space-member-removed", t.SPACE_SHARE_UPDATED = "space-share-updated", t.SHARE_CREATED = "share-created", t.SHARE_REMOVED = "share-removed", t.SHARE_UPDATED = "share-updated", t.LINK_CREATED = "link-created", t.LINK_REMOVED = "link-removed", t.LINK_UPDATED = "link-updated", t.BACKCHANNEL_LOGOUT = "backchannel-logout", t))(x || {});
129
- class M extends Error {
130
- name = "RetriableError";
131
- }
132
- const K = 15e3;
133
- class B {
134
- url;
135
- fetchOptions;
136
- abortController;
137
- eventListenerMap;
138
- readyState;
139
- withCredentials;
140
- CONNECTING;
141
- OPEN;
142
- CLOSED;
143
- onerror;
144
- onmessage;
145
- onopen;
146
- constructor(e, n) {
147
- this.url = e, this.fetchOptions = n, this.abortController = new AbortController(), this.eventListenerMap = {}, this.readyState = this.CONNECTING, this.connect();
148
- }
149
- connect() {
150
- return U(this.url, {
151
- openWhenHidden: !0,
152
- signal: this.abortController.signal,
153
- fetch: this.fetchProvider.bind(this),
154
- // eslint-disable-next-line require-await
155
- onopen: async () => {
156
- const e = new Event("open");
157
- this.onopen?.bind(this)(e), this.readyState = this.OPEN;
158
- },
159
- onmessage: (e) => {
160
- const n = new MessageEvent("message", { data: e.data });
161
- this.onmessage?.bind(this)(n);
162
- const r = e.event;
163
- this.eventListenerMap[r]?.forEach((h) => h(n));
164
- },
165
- onclose: () => {
166
- throw this.readyState = this.CLOSED, new M();
167
- },
168
- onerror: (e) => {
169
- console.error(e);
170
- const n = new CustomEvent("error", { detail: e });
171
- return this.onerror?.bind(this)(n), 3e4 + Math.floor(Math.random() * K);
172
- }
173
- });
174
- }
175
- fetchProvider(...e) {
176
- const [n, r] = e, o = { ...r, ...this.fetchOptions };
177
- return window.fetch(n, o);
178
- }
179
- close() {
180
- this.abortController.abort("closed");
181
- }
182
- addEventListener(e, n) {
183
- this.eventListenerMap[e] = this.eventListenerMap[e] || [], this.eventListenerMap[e].push(n);
184
- }
185
- removeEventListener(e, n) {
186
- this.eventListenerMap[e] = this.eventListenerMap[e]?.filter((r) => r !== n);
187
- }
188
- dispatchEvent() {
189
- throw new Error("Method not implemented.");
190
- }
191
- updateAccessToken(e) {
192
- this.fetchOptions.headers.Authorization = `Bearer ${e}`;
193
- }
194
- updateLanguage(e) {
195
- this.fetchOptions.headers["Accept-Language"] = e, this.close(), this.connect();
196
- }
197
- }
198
- let m = null;
199
- const V = (t, e) => (m || (m = new B(
200
- new URL("ocs/v2.php/apps/notifications/api/v1/notifications/sse", t).href,
201
- e
202
- )), m);
203
- export {
204
- x as MESSAGE_TYPE,
205
- M as RetriableError,
206
- B as SSEAdapter,
207
- V as sse
208
- };
128
+ //#endregion
129
+ //#region src/sse/index.ts
130
+ var d = /* @__PURE__ */ function(e) {
131
+ return e.NOTIFICATION = "userlog-notification", e.POSTPROCESSING_FINISHED = "postprocessing-finished", e.FILE_LOCKED = "file-locked", e.FILE_UNLOCKED = "file-unlocked", e.FILE_TOUCHED = "file-touched", e.ITEM_RENAMED = "item-renamed", e.ITEM_TRASHED = "item-trashed", e.ITEM_RESTORED = "item-restored", e.ITEM_MOVED = "item-moved", e.FOLDER_CREATED = "folder-created", e.SPACE_MEMBER_ADDED = "space-member-added", e.SPACE_MEMBER_REMOVED = "space-member-removed", e.SPACE_SHARE_UPDATED = "space-share-updated", e.SHARE_CREATED = "share-created", e.SHARE_REMOVED = "share-removed", e.SHARE_UPDATED = "share-updated", e.LINK_CREATED = "link-created", e.LINK_REMOVED = "link-removed", e.LINK_UPDATED = "link-updated", e.BACKCHANNEL_LOGOUT = "backchannel-logout", e;
132
+ }({}), f = class extends Error {
133
+ name = "RetriableError";
134
+ }, p = 15e3, m = class {
135
+ url;
136
+ fetchOptions;
137
+ abortController;
138
+ eventListenerMap;
139
+ readyState;
140
+ withCredentials;
141
+ CONNECTING;
142
+ OPEN;
143
+ CLOSED;
144
+ onerror;
145
+ onmessage;
146
+ onopen;
147
+ constructor(e, t) {
148
+ this.url = e, this.fetchOptions = t, this.abortController = new AbortController(), this.eventListenerMap = {}, this.readyState = this.CONNECTING, this.connect();
149
+ }
150
+ connect() {
151
+ return l(this.url, {
152
+ openWhenHidden: !0,
153
+ signal: this.abortController.signal,
154
+ fetch: this.fetchProvider.bind(this),
155
+ onopen: async () => {
156
+ let e = new Event("open");
157
+ this.onopen?.bind(this)(e), this.readyState = this.OPEN;
158
+ },
159
+ onmessage: (e) => {
160
+ let t = new MessageEvent("message", { data: e.data });
161
+ this.onmessage?.bind(this)(t);
162
+ let n = e.event;
163
+ this.eventListenerMap[n]?.forEach((e) => e(t));
164
+ },
165
+ onclose: () => {
166
+ throw this.readyState = this.CLOSED, new f();
167
+ },
168
+ onerror: (e) => {
169
+ console.error(e);
170
+ let t = new CustomEvent("error", { detail: e });
171
+ return this.onerror?.bind(this)(t), 3e4 + Math.floor(Math.random() * p);
172
+ }
173
+ });
174
+ }
175
+ fetchProvider(...e) {
176
+ let [t, n] = e, r = {
177
+ ...n,
178
+ ...this.fetchOptions
179
+ };
180
+ return window.fetch(t, r);
181
+ }
182
+ close() {
183
+ this.abortController.abort("closed");
184
+ }
185
+ addEventListener(e, t) {
186
+ this.eventListenerMap[e] = this.eventListenerMap[e] || [], this.eventListenerMap[e].push(t);
187
+ }
188
+ removeEventListener(e, t) {
189
+ this.eventListenerMap[e] = this.eventListenerMap[e]?.filter((e) => e !== t);
190
+ }
191
+ dispatchEvent() {
192
+ throw Error("Method not implemented.");
193
+ }
194
+ updateAccessToken(e) {
195
+ this.fetchOptions.headers.Authorization = `Bearer ${e}`;
196
+ }
197
+ updateLanguage(e) {
198
+ this.fetchOptions.headers["Accept-Language"] = e, this.close(), this.connect();
199
+ }
200
+ }, h = null, g = (e, t) => (h ||= new m(new URL("ocs/v2.php/apps/notifications/api/v1/notifications/sse", e).href, t), h);
201
+ //#endregion
202
+ export { d as MESSAGE_TYPE, f as RetriableError, m as SSEAdapter, g as sse };
@@ -1,10 +1,3 @@
1
- import "../index-Bjx4f50a.js";
2
- import { w as e } from "../index-Bf956okn.js";
3
- import { K as t, L as p, J as v, I as i } from "../functions-BBKWOL6l.js";
4
- export {
5
- t as DavMethod,
6
- p as DavPermission,
7
- v as DavProperties,
8
- i as DavProperty,
9
- e as webdav
10
- };
1
+ import { t as e } from "../webdav-BMNOaQXh.js";
2
+ import { G as t, K as n, W as r, q as i } from "../helpers-DoHY9e_0.js";
3
+ export { r as DavMethod, t as DavPermission, n as DavProperties, i as DavProperty, e as webdav };
@@ -1,82 +1,6 @@
1
- import { b as n, a as h, c as p, d, g as R, e as b, f as m, i as g, h as P, j as x, k as D, l as f } from "./index-Sp7XASDj.js";
2
- import { o as I } from "./index-Dn8UfKx7.js";
3
- import { H as o } from "./index-Bf956okn.js";
4
- import { D as O, e as w, w as H } from "./index-Bf956okn.js";
5
- import { G as k, O as y, S as C, a as F, b as M, c as T, d as _, e as j, f as A, g as L, h as N, i as q, j as B, k as G, l as J, m as z, n as U, o as V, p as K, q as Q, r as X, s as Y, t as Z, u as $, v as ee, w as ae, x as se, y as re, z as oe, A as te, B as ce, C as ie, D as ue } from "./functions-BBKWOL6l.js";
6
- import { u as le } from "./toString-CKeGA2IK.js";
7
- const c = function* (e) {
8
- return yield e;
9
- }, i = ({
10
- message: e,
11
- statusCode: a,
12
- xReqId: s
13
- }) => {
14
- const r = new Response(void 0, {
15
- headers: { "x-request-id": s },
16
- status: a
17
- });
18
- return new o(e, r, a);
19
- };
20
- class u {
21
- static Read = 1;
22
- static Update = 2;
23
- static Create = 4;
24
- static Delete = 8;
25
- static Share = 16;
26
- }
27
- export {
28
- O as DavHttpError,
29
- k as GraphSharePermission,
30
- o as HttpError,
31
- y as OCM_PROVIDER_ID,
32
- C as SHARE_JAIL_ID,
33
- u as SharePermissionBit,
34
- F as ShareType,
35
- M as ShareTypes,
36
- n as buildCollaboratorShare,
37
- T as buildDeletedResource,
38
- h as buildIncomingShareResource,
39
- p as buildLinkShare,
40
- d as buildOutgoingShareResource,
41
- _ as buildPublicSpaceResource,
42
- j as buildResource,
43
- A as buildShareSpaceResource,
44
- L as buildSpace,
45
- N as buildSpaceImageResource,
46
- q as buildWebDavOcmPath,
47
- B as buildWebDavPublicPath,
48
- G as buildWebDavSpacesPath,
49
- J as buildWebDavSpacesTrashPath,
50
- c as call,
51
- i as createHttpError,
52
- w as encodePath,
53
- z as extractDomSelector,
54
- U as extractExtensionFromFile,
55
- V as extractNameWithoutExtension,
56
- K as extractNodeId,
57
- Q as extractParentFolderName,
58
- X as extractStorageId,
59
- Y as getRelativeSpecialFolderSpacePath,
60
- R as getShareResourcePermissions,
61
- b as getShareResourceRoles,
62
- Z as getSpaceManagers,
63
- m as graph,
64
- g as isCollaboratorShare,
65
- P as isIncomingShareResource,
66
- x as isLinkShare,
67
- $ as isManager,
68
- ee as isMountPointSpaceResource,
69
- D as isOutgoingShareResource,
70
- ae as isPersonalSpaceResource,
71
- se as isProjectSpaceResource,
72
- re as isPublicSpaceResource,
73
- oe as isSearchResource,
74
- f as isShareResource,
75
- te as isShareRoot,
76
- ce as isShareSpaceResource,
77
- ie as isSpaceResource,
78
- ue as isTrashResource,
79
- I as ocs,
80
- le as urlJoin,
81
- H as webdav
82
- };
1
+ import { t as e } from "./graph-Cld6mTON.js";
2
+ import { n as t, t as n } from "./webdav-BMNOaQXh.js";
3
+ import { u as r } from "./toString-DAQZ_8iK.js";
4
+ import { $ as i, A as a, B as o, C as s, D as c, E as l, F as u, H as d, I as f, J as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, T as S, U as C, V as w, X as T, Y as E, Z as D, _ as O, a as k, b as A, c as j, d as M, f as N, g as P, h as F, i as I, j as L, k as R, l as z, m as B, n as V, o as H, p as U, r as W, s as G, t as K, u as q, v as J, w as Y, x as X, y as Z, z as Q } from "./helpers-DoHY9e_0.js";
5
+ import { t as $ } from "./ocs-B7FkclLT.js";
6
+ export { D as DavHttpError, L as GraphSharePermission, y as HttpError, X as OCM_PROVIDER_ID, x as SHARE_JAIL_ID, h as SharePermissionBit, R as ShareType, a as ShareTypes, K as buildCollaboratorShare, g as buildDeletedResource, V as buildIncomingShareResource, W as buildLinkShare, I as buildOutgoingShareResource, N as buildPublicSpaceResource, v as buildResource, U as buildShareSpaceResource, B as buildSpace, F as buildSpaceImageResource, p as buildWebDavOcmPath, E as buildWebDavPublicPath, P as buildWebDavSpacesPath, O as buildWebDavSpacesTrashPath, i as call, T as createHttpError, t as encodePath, u as extractDomSelector, f as extractExtensionFromFile, m as extractNameWithoutExtension, b as extractNodeId, Q as extractParentFolderName, o as extractStorageId, J as getRelativeSpecialFolderSpacePath, k as getShareResourcePermissions, H as getShareResourceRoles, Z as getSpaceManagers, e as graph, G as isCollaboratorShare, j as isIncomingShareResource, z as isLinkShare, A as isManager, s as isMountPointSpaceResource, q as isOutgoingShareResource, Y as isPersonalSpaceResource, S as isProjectSpaceResource, l as isPublicSpaceResource, w as isSearchResource, M as isShareResource, d as isShareRoot, c as isShareSpaceResource, _ as isSpaceResource, C as isTrashResource, $ as ocs, r as urlJoin, n as webdav };