@opencloud-eu/web-client 7.1.2 → 7.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/axios-DvF8YTlk.js +1964 -0
- package/dist/{dist-DXLl1XQj.js → dist-CeGfU4rJ.js} +4 -3
- package/dist/{generated-Dr-mKneP.js → generated-FCm3SbzB.js} +260 -230
- package/dist/{graph-C_btwMni.js → graph-CppzmKYd.js} +72 -72
- package/dist/{helpers-B_uB5urn.js → helpers-MRfkPTnV.js} +305 -321
- package/dist/{ocs-VeFt8RO1.js → ocs-gQyxMolJ.js} +1213 -1377
- package/dist/ox-DIaYdpxw.js +3045 -0
- package/dist/src/graph/generated/api.d.ts +70 -4
- package/dist/src/helpers/resource/types.d.ts +5 -1
- package/dist/src/helpers/share/type.d.ts +1 -0
- package/dist/src/helpers/space/functions.d.ts +3 -2
- package/dist/src/helpers/space/types.d.ts +0 -3
- package/dist/src/index.d.ts +2 -1
- package/dist/src/ox/index.d.ts +27 -0
- package/dist/src/ox/types.d.ts +29 -0
- package/dist/src/sse/index.d.ts +7 -0
- package/dist/{toString-DIrlTUQN.js → toString-B4UEwRgf.js} +92 -112
- package/dist/urlJoin-_pUL1TUx.js +24 -0
- package/dist/web-client/graph/generated.js +2 -2
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.js +1 -1
- package/dist/web-client/ox.js +2 -0
- package/dist/web-client/sse.js +6 -7
- package/dist/web-client/webdav.js +3 -3
- package/dist/web-client.js +24 -6
- package/dist/{webdav-uHUUUQAP.js → webdav-BMoGCm4T.js} +112 -94
- package/package.json +7 -3
- package/dist/axios-idnwLrbl.js +0 -1862
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { m as S, r as C, t as w } from "./helpers-
|
|
1
|
+
import { $t as e, Nt as t, O as n, Ut as r, Yt as i, bn as a, c as o, cn as s, f as c, fn as l, g as u, gn as d, i as f, kt as p, rn as m, rt as h, st as g, t as _, v, w as y, wn as b } from "./generated-FCm3SbzB.js";
|
|
2
|
+
import { t as x } from "./urlJoin-_pUL1TUx.js";
|
|
3
|
+
import { m as S, r as C, t as w } from "./helpers-MRfkPTnV.js";
|
|
4
4
|
//#region src/graph/users/users.ts
|
|
5
5
|
var T = ({ axiosClient: t, config: n }) => {
|
|
6
|
-
let r =
|
|
6
|
+
let r = l(n, n.basePath, t), i = b(n, n.basePath, t), a = e(n, n.basePath, t), o = p(n, n.basePath, t), s = d(n, n.basePath, t);
|
|
7
7
|
return {
|
|
8
8
|
async getUser(e, t, n) {
|
|
9
|
-
let { data: i } = await r.getUser(e, t?.select ? new Set([...t.select]) : null, t?.expand ? new Set([...t.expand]) : new Set([
|
|
9
|
+
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
10
|
"drive",
|
|
11
11
|
"memberOf",
|
|
12
12
|
"appRoleAssignments"
|
|
@@ -25,33 +25,33 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
25
25
|
await r.deleteUser(e, t, n);
|
|
26
26
|
},
|
|
27
27
|
async listUsers(e, t) {
|
|
28
|
-
let { data: { value: n } } = await i.listUsers(e?.search, e?.filter, e?.orderBy ? new Set([...e.orderBy]) : null, e?.select ? new Set([...e.select]) : null, e?.expand ? new Set([...e.expand]) : null, t);
|
|
28
|
+
let { data: { value: n } } = await i.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
29
|
return n;
|
|
30
30
|
},
|
|
31
31
|
async getMe(e, t) {
|
|
32
|
-
let { data: n } = await
|
|
32
|
+
let { data: n } = await a.getOwnUser(e?.expand ? /* @__PURE__ */ new Set([...e.expand]) : /* @__PURE__ */ new Set(["memberOf"]), t);
|
|
33
33
|
return n;
|
|
34
34
|
},
|
|
35
35
|
async editMe(e, t) {
|
|
36
|
-
let { data: n } = await
|
|
36
|
+
let { data: n } = await a.updateOwnUser(e, t);
|
|
37
37
|
return n;
|
|
38
38
|
},
|
|
39
39
|
async changeOwnPassword(e, t) {
|
|
40
|
-
await
|
|
40
|
+
await o.changeOwnPassword(e, t);
|
|
41
41
|
},
|
|
42
42
|
async exportPersonalData(e, t, n) {
|
|
43
43
|
await r.exportPersonalData(e, t, n);
|
|
44
44
|
},
|
|
45
45
|
async createUserAppRoleAssignment(e, t, n) {
|
|
46
|
-
let { data: r } = await
|
|
46
|
+
let { data: r } = await s.userCreateAppRoleAssignments(e, t, n);
|
|
47
47
|
return r;
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
}, E = ({ axiosClient: e, config: t }) => {
|
|
51
|
-
let n =
|
|
51
|
+
let n = h(t, t.basePath, e), r = g(t, t.basePath, e);
|
|
52
52
|
return {
|
|
53
53
|
async getGroup(e, t, r) {
|
|
54
|
-
let { data: i } = await n.getGroup(e, t?.select ? new Set([...t.select]) : null, t?.expand ? new Set([...t.expand]) : new Set(["members"]), r);
|
|
54
|
+
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);
|
|
55
55
|
return i;
|
|
56
56
|
},
|
|
57
57
|
async createGroup(e, t) {
|
|
@@ -66,7 +66,7 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
66
66
|
await n.deleteGroup(e, t, r);
|
|
67
67
|
},
|
|
68
68
|
async listGroups(e, t) {
|
|
69
|
-
let { data: { value: n } } = await r.listGroups(e?.search, e?.orderBy ? new Set([...e.orderBy]) : null, e?.select ? new Set([...e.select]) : null, e?.expand ? new Set([...e.expand]) : null, t);
|
|
69
|
+
let { data: { value: n } } = await r.listGroups(e?.search, 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);
|
|
70
70
|
return n;
|
|
71
71
|
},
|
|
72
72
|
async addMember(e, r, i) {
|
|
@@ -77,7 +77,7 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
}, D = ({ axiosClient: e, config: t }) => {
|
|
80
|
-
let n =
|
|
80
|
+
let n = o(t, t.basePath, e);
|
|
81
81
|
return {
|
|
82
82
|
async getApplication(e, t) {
|
|
83
83
|
let { data: r } = await n.getApplication(e, t);
|
|
@@ -88,74 +88,74 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
88
88
|
return t || [];
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
}, O = (e) => new URL(e.webUrl).origin, k = ({ axiosClient: e, config:
|
|
92
|
-
let
|
|
91
|
+
}, O = (e) => new URL(e.webUrl).origin, k = ({ axiosClient: e, config: t }) => {
|
|
92
|
+
let n = u(t, t.basePath, e), i = new r(t, t.basePath, e), a = new v(t, t.basePath, e);
|
|
93
93
|
return {
|
|
94
|
-
async getDrive(e, t,
|
|
95
|
-
let { data: i } = await
|
|
94
|
+
async getDrive(e, t, r) {
|
|
95
|
+
let { data: i } = await n.getDrive(e, t?.select ? /* @__PURE__ */ new Set([...t.select]) : null, r);
|
|
96
96
|
return S({
|
|
97
97
|
...i,
|
|
98
98
|
serverUrl: O(i)
|
|
99
99
|
});
|
|
100
100
|
},
|
|
101
101
|
async createDrive(e, t) {
|
|
102
|
-
let { data:
|
|
102
|
+
let { data: r } = await n.createDrive(e, t);
|
|
103
103
|
return S({
|
|
104
|
-
...
|
|
105
|
-
serverUrl: O(
|
|
104
|
+
...r,
|
|
105
|
+
serverUrl: O(r)
|
|
106
106
|
});
|
|
107
107
|
},
|
|
108
|
-
async updateDrive(e, t,
|
|
109
|
-
let { data: i } = await
|
|
108
|
+
async updateDrive(e, t, r) {
|
|
109
|
+
let { data: i } = await n.updateDrive(e, t, r);
|
|
110
110
|
return S({
|
|
111
111
|
...i,
|
|
112
112
|
serverUrl: O(i)
|
|
113
113
|
});
|
|
114
114
|
},
|
|
115
|
-
async disableDrive(e, t,
|
|
116
|
-
await
|
|
115
|
+
async disableDrive(e, t, r) {
|
|
116
|
+
await n.deleteDrive(e, t, r);
|
|
117
117
|
},
|
|
118
|
-
async deleteDrive(e, t,
|
|
119
|
-
await
|
|
118
|
+
async deleteDrive(e, t, r) {
|
|
119
|
+
await n.deleteDrive(e, t, {
|
|
120
120
|
headers: {
|
|
121
|
-
...
|
|
121
|
+
...r?.headers && r.headers || {},
|
|
122
122
|
Purge: "T"
|
|
123
123
|
},
|
|
124
|
-
...
|
|
124
|
+
...r && { requestOptions: r } || {}
|
|
125
125
|
});
|
|
126
126
|
},
|
|
127
127
|
async listMyDrives(e, t) {
|
|
128
|
-
let { data: { value: n } } = await i.listMyDrivesBeta(e?.orderBy, e?.filter, e?.expand, e?.select ? new Set([...e.select]) : null, t);
|
|
128
|
+
let { data: { value: n } } = await i.listMyDrivesBeta(e?.orderBy, e?.filter, e?.expand, e?.select ? /* @__PURE__ */ new Set([...e.select]) : null, t);
|
|
129
129
|
return n.map((e) => S({
|
|
130
130
|
...e,
|
|
131
131
|
serverUrl: O(e)
|
|
132
132
|
}));
|
|
133
133
|
},
|
|
134
134
|
async listAllDrives(e, t) {
|
|
135
|
-
let { data: { value: n } } = await a.listAllDrivesBeta(e?.orderBy, e?.filter, e?.expand, e?.select ? new Set([...e.select]) : null, t);
|
|
135
|
+
let { data: { value: n } } = await a.listAllDrivesBeta(e?.orderBy, e?.filter, e?.expand, e?.select ? /* @__PURE__ */ new Set([...e.select]) : null, t);
|
|
136
136
|
return n.map((e) => S({
|
|
137
137
|
...e,
|
|
138
138
|
serverUrl: O(e)
|
|
139
139
|
}));
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
}, A = ({ axiosClient: e, config:
|
|
143
|
-
let
|
|
142
|
+
}, A = ({ axiosClient: e, config: r }) => {
|
|
143
|
+
let i = c(r, r.basePath, e), a = n(r, r.basePath, e), o = t(r, r.basePath, e);
|
|
144
144
|
return {
|
|
145
|
-
async getDriveItem(e, t,
|
|
146
|
-
let { data:
|
|
147
|
-
return
|
|
145
|
+
async getDriveItem(e, t, n) {
|
|
146
|
+
let { data: r } = await i.getDriveItem(e, t, void 0, n);
|
|
147
|
+
return r;
|
|
148
148
|
},
|
|
149
149
|
async createDriveItem(e, t, n) {
|
|
150
150
|
let { data: r } = await a.createDriveItem(e, t, n);
|
|
151
151
|
return r;
|
|
152
152
|
},
|
|
153
|
-
async updateDriveItem(e, t,
|
|
154
|
-
let { data: a } = await
|
|
153
|
+
async updateDriveItem(e, t, n, r) {
|
|
154
|
+
let { data: a } = await i.updateDriveItem(e, t, n, r);
|
|
155
155
|
return a;
|
|
156
156
|
},
|
|
157
|
-
async deleteDriveItem(e, t,
|
|
158
|
-
await
|
|
157
|
+
async deleteDriveItem(e, t, n) {
|
|
158
|
+
await i.deleteDriveItem(e, t, n);
|
|
159
159
|
},
|
|
160
160
|
async followDriveItem(e, t) {
|
|
161
161
|
let { data: n } = await o.followDriveItem(e, t);
|
|
@@ -174,7 +174,7 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
}, j = ({ axiosClient: e, config: t }) => {
|
|
177
|
-
let n =
|
|
177
|
+
let n = s(t, t.basePath, e);
|
|
178
178
|
return {
|
|
179
179
|
async listTags(e) {
|
|
180
180
|
let { data: { value: t } } = await n.getTags(e);
|
|
@@ -194,7 +194,7 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
194
194
|
return r || [];
|
|
195
195
|
} };
|
|
196
196
|
}, N = ({ axiosClient: e, config: t }) => {
|
|
197
|
-
let
|
|
197
|
+
let r = n(t, t.basePath, e), i = m(t, t.basePath, e), a = y(t, t.basePath, e);
|
|
198
198
|
return {
|
|
199
199
|
async getPermission(e, t, n, r, i) {
|
|
200
200
|
let { data: o } = await a.getPermission(e, t, n, i);
|
|
@@ -207,13 +207,13 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
207
207
|
graphRoles: r || {}
|
|
208
208
|
});
|
|
209
209
|
},
|
|
210
|
-
async listPermissions(e, t,
|
|
210
|
+
async listPermissions(e, t, n, i, o) {
|
|
211
211
|
let s;
|
|
212
212
|
if (e === t) {
|
|
213
|
-
let { data: t } = await
|
|
213
|
+
let { data: t } = await r.listPermissionsSpaceRoot(e, i?.filter, i?.select ? /* @__PURE__ */ new Set([...i.select]) : null, i?.count, i?.top || 0, o);
|
|
214
214
|
s = t;
|
|
215
215
|
} else {
|
|
216
|
-
let { data: n } = await a.listPermissions(e, t, i?.filter, i?.select ? new Set([...i.select]) : null, i?.count, i?.top || 0, o);
|
|
216
|
+
let { data: n } = await a.listPermissions(e, t, i?.filter, i?.select ? /* @__PURE__ */ new Set([...i.select]) : null, i?.count, i?.top || 0, o);
|
|
217
217
|
s = n;
|
|
218
218
|
}
|
|
219
219
|
let c = s.value || [], l = s["@libre.graph.permissions.actions.allowedValues"], u = s["@libre.graph.permissions.roles.allowedValues"], d = s["@odata.count"];
|
|
@@ -224,21 +224,21 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
224
224
|
}) : w({
|
|
225
225
|
graphPermission: e,
|
|
226
226
|
resourceId: t,
|
|
227
|
-
graphRoles:
|
|
227
|
+
graphRoles: n || {}
|
|
228
228
|
})),
|
|
229
229
|
allowedActions: l,
|
|
230
230
|
allowedRoles: u,
|
|
231
231
|
count: d
|
|
232
232
|
};
|
|
233
233
|
},
|
|
234
|
-
async updatePermission(e, t,
|
|
234
|
+
async updatePermission(e, t, n, i, o, s) {
|
|
235
235
|
let c;
|
|
236
236
|
if (e === t) {
|
|
237
|
-
let { data: t } = await
|
|
237
|
+
let { data: t } = await r.updatePermissionSpaceRoot(e, n, i, s);
|
|
238
238
|
c = t;
|
|
239
239
|
} else {
|
|
240
|
-
let { data:
|
|
241
|
-
c =
|
|
240
|
+
let { data: r } = await a.updatePermission(e, t, n, i, s);
|
|
241
|
+
c = r;
|
|
242
242
|
}
|
|
243
243
|
return c.link ? C({
|
|
244
244
|
graphPermission: c,
|
|
@@ -249,21 +249,21 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
249
249
|
graphRoles: o || {}
|
|
250
250
|
});
|
|
251
251
|
},
|
|
252
|
-
async deletePermission(e, t,
|
|
252
|
+
async deletePermission(e, t, n, i) {
|
|
253
253
|
if (e === t) {
|
|
254
|
-
await
|
|
254
|
+
await r.deletePermissionSpaceRoot(e, n, i);
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
await a.deletePermission(e, t,
|
|
257
|
+
await a.deletePermission(e, t, n, i);
|
|
258
258
|
},
|
|
259
|
-
async createInvite(e, t,
|
|
259
|
+
async createInvite(e, t, n, i, o) {
|
|
260
260
|
let s;
|
|
261
261
|
if (e === t) {
|
|
262
|
-
let { data: t } = await
|
|
262
|
+
let { data: t } = await r.inviteSpaceRoot(e, n, o);
|
|
263
263
|
s = t.value?.[0];
|
|
264
264
|
} else {
|
|
265
|
-
let { data:
|
|
266
|
-
s =
|
|
265
|
+
let { data: r } = await a.invite(e, t, n, o);
|
|
266
|
+
s = r.value?.[0];
|
|
267
267
|
}
|
|
268
268
|
if (!s) throw Error("no permission returned");
|
|
269
269
|
return w({
|
|
@@ -272,28 +272,28 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
272
272
|
graphRoles: i || {}
|
|
273
273
|
});
|
|
274
274
|
},
|
|
275
|
-
async createLink(e, t,
|
|
275
|
+
async createLink(e, t, n, i) {
|
|
276
276
|
let o;
|
|
277
277
|
if (e === t) {
|
|
278
|
-
let { data: t } = await
|
|
278
|
+
let { data: t } = await r.createLinkSpaceRoot(e, n, i);
|
|
279
279
|
o = t;
|
|
280
280
|
} else {
|
|
281
|
-
let { data:
|
|
282
|
-
o =
|
|
281
|
+
let { data: r } = await a.createLink(e, t, n, i);
|
|
282
|
+
o = r;
|
|
283
283
|
}
|
|
284
284
|
return C({
|
|
285
285
|
graphPermission: o,
|
|
286
286
|
resourceId: t
|
|
287
287
|
});
|
|
288
288
|
},
|
|
289
|
-
async setPermissionPassword(e, t,
|
|
289
|
+
async setPermissionPassword(e, t, n, i, o) {
|
|
290
290
|
let s;
|
|
291
291
|
if (e === t) {
|
|
292
|
-
let { data: t } = await
|
|
292
|
+
let { data: t } = await r.setPermissionPasswordSpaceRoot(e, n, i, o);
|
|
293
293
|
s = t;
|
|
294
294
|
} else {
|
|
295
|
-
let { data:
|
|
296
|
-
s =
|
|
295
|
+
let { data: r } = await a.setPermissionPassword(e, t, n, i, o);
|
|
296
|
+
s = r;
|
|
297
297
|
}
|
|
298
298
|
return C({
|
|
299
299
|
graphPermission: s,
|
|
@@ -301,27 +301,27 @@ var T = ({ axiosClient: t, config: n }) => {
|
|
|
301
301
|
});
|
|
302
302
|
},
|
|
303
303
|
async listRoleDefinitions(e) {
|
|
304
|
-
let { data: t } = await
|
|
304
|
+
let { data: t } = await i.listPermissionRoleDefinitions(e);
|
|
305
305
|
return t;
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
}, P = ({ axiosClient: e, config: t }) => {
|
|
309
|
-
let
|
|
309
|
+
let n = i(t, t.basePath, e), r = a(t, t.basePath, e);
|
|
310
310
|
return {
|
|
311
311
|
async getOwnUserPhoto(e) {
|
|
312
|
-
let { data: t } = await
|
|
312
|
+
let { data: t } = await n.getOwnUserPhoto(e);
|
|
313
313
|
return t;
|
|
314
314
|
},
|
|
315
315
|
async deleteOwnUserPhoto(e) {
|
|
316
|
-
let { data: t } = await
|
|
316
|
+
let { data: t } = await n.deleteOwnUserPhoto(e);
|
|
317
317
|
return t;
|
|
318
318
|
},
|
|
319
319
|
async updateOwnUserPhotoPatch(e, t) {
|
|
320
|
-
let { data:
|
|
321
|
-
return
|
|
320
|
+
let { data: r } = await n.updateOwnUserPhotoPatch(e, t);
|
|
321
|
+
return r;
|
|
322
322
|
},
|
|
323
323
|
async getUserPhoto(e, t) {
|
|
324
|
-
let { data: n } = await
|
|
324
|
+
let { data: n } = await r.getUserPhoto(e, t);
|
|
325
325
|
return n;
|
|
326
326
|
}
|
|
327
327
|
};
|