@coscine/api-client 3.4.2 → 3.4.3
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/index.js +151 -100
- package/dist/types/Coscine.Api/@coscine/api/admin-api.d.ts +125 -46
- package/dist/types/Coscine.Api/@coscine/model/index.d.ts +6 -3
- package/dist/types/Coscine.Api/@coscine/model/metadata-update-admin-parameters.d.ts +0 -6
- package/dist/types/Coscine.Api/@coscine/model/project-admin-dto-paged-response.d.ts +50 -0
- package/dist/types/Coscine.Api/@coscine/model/project-admin-dto.d.ts +7 -0
- package/dist/types/Coscine.Api/@coscine/model/rdf-patch-document-dto.d.ts +25 -0
- package/dist/types/Coscine.Api/@coscine/model/rdf-patch-operation-dto.d.ts +32 -0
- package/dist/types/Coscine.Api/@coscine/model/rdf-patch-operation-type.d.ts +21 -0
- package/dist/types/Coscine.Api/@coscine/model/resource-admin-dto-paged-response.d.ts +50 -0
- package/dist/types/Coscine.Api/@coscine/model/resource-admin-dto.d.ts +17 -3
- package/dist/types/Coscine.Api/@coscine/model/resource-dto.d.ts +10 -3
- package/dist/types/Coscine.Api/@coscine/model/resource-for-creation-dto.d.ts +8 -2
- package/dist/types/Coscine.Api/@coscine/model/resource-for-update-dto.d.ts +8 -2
- package/dist/types/Coscine.Api/@coscine/model/resource-type-information-dto.d.ts +6 -0
- package/dist/types/Coscine.Api/@coscine/model/user-dto-paged-response.d.ts +50 -0
- package/dist/types/Coscine.Api/@coscine/model/user-dto.d.ts +6 -0
- package/dist/types/apis.d.ts +5 -4
- package/dist/types/index.d.ts +10 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,11 +9,11 @@ function He(e, r) {
|
|
|
9
9
|
const { toString: pt } = Object.prototype, { getPrototypeOf: je } = Object, ne = /* @__PURE__ */ ((e) => (r) => {
|
|
10
10
|
const a = pt.call(r);
|
|
11
11
|
return e[a] || (e[a] = a.slice(8, -1).toLowerCase());
|
|
12
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
12
|
+
})(/* @__PURE__ */ Object.create(null)), Q = (e) => (e = e.toLowerCase(), (r) => ne(r) === e), le = (e) => (r) => typeof r === e, { isArray: Y } = Array, g = le("undefined");
|
|
13
13
|
function dt(e) {
|
|
14
14
|
return e !== null && !g(e) && e.constructor !== null && !g(e.constructor) && z(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
16
|
-
const De =
|
|
16
|
+
const De = Q("ArrayBuffer");
|
|
17
17
|
function ht(e) {
|
|
18
18
|
let r;
|
|
19
19
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(e) : r = e && e.buffer && De(e.buffer), r;
|
|
@@ -23,11 +23,11 @@ const ut = le("string"), z = le("function"), Ne = le("number"), ce = (e) => e !=
|
|
|
23
23
|
return !1;
|
|
24
24
|
const r = je(e);
|
|
25
25
|
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
26
|
-
}, At =
|
|
26
|
+
}, At = Q("Date"), Vt = Q("File"), mt = Q("Blob"), Pt = Q("FileList"), bt = (e) => ce(e) && z(e.pipe), yt = (e) => {
|
|
27
27
|
let r;
|
|
28
28
|
return e && (typeof FormData == "function" && e instanceof FormData || z(e.append) && ((r = ne(e)) === "formdata" || // detect form-data instance
|
|
29
29
|
r === "object" && z(e.toString) && e.toString() === "[object FormData]"));
|
|
30
|
-
}, Rt =
|
|
30
|
+
}, Rt = Q("URLSearchParams"), jt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
31
31
|
function ee(e, r, { allOwnKeys: a = !1 } = {}) {
|
|
32
32
|
if (e === null || typeof e > "u")
|
|
33
33
|
return;
|
|
@@ -107,12 +107,12 @@ const It = (e, r, a, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
107
107
|
for (; (a = e.exec(r)) !== null; )
|
|
108
108
|
n.push(a);
|
|
109
109
|
return n;
|
|
110
|
-
}, Ct =
|
|
110
|
+
}, Ct = Q("HTMLFormElement"), Lt = (e) => e.toLowerCase().replace(
|
|
111
111
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
112
112
|
function(a, n, t) {
|
|
113
113
|
return n.toUpperCase() + t;
|
|
114
114
|
}
|
|
115
|
-
), xe = (({ hasOwnProperty: e }) => (r, a) => e.call(r, a))(Object.prototype), Et =
|
|
115
|
+
), xe = (({ hasOwnProperty: e }) => (r, a) => e.call(r, a))(Object.prototype), Et = Q("RegExp"), qe = (e, r) => {
|
|
116
116
|
const a = Object.getOwnPropertyDescriptors(e), n = {};
|
|
117
117
|
ee(a, (t, s) => {
|
|
118
118
|
let o;
|
|
@@ -133,14 +133,14 @@ const It = (e, r, a, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
|
-
},
|
|
136
|
+
}, Mt = (e, r) => {
|
|
137
137
|
const a = {}, n = (t) => {
|
|
138
138
|
t.forEach((s) => {
|
|
139
139
|
a[s] = !0;
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
142
|
return Y(e) ? n(e) : n(String(e).split(r)), a;
|
|
143
|
-
},
|
|
143
|
+
}, Qt = () => {
|
|
144
144
|
}, kt = (e, r) => (e = +e, Number.isFinite(e) ? e : r), de = "abcdefghijklmnopqrstuvwxyz", Se = "0123456789", fe = {
|
|
145
145
|
DIGIT: Se,
|
|
146
146
|
ALPHA: de,
|
|
@@ -172,7 +172,7 @@ const Nt = (e) => {
|
|
|
172
172
|
return n;
|
|
173
173
|
};
|
|
174
174
|
return a(e, 0);
|
|
175
|
-
}, $t =
|
|
175
|
+
}, $t = Q("AsyncFunction"), Gt = (e) => e && (ce(e) || z(e)) && z(e.then) && z(e.catch), O = {
|
|
176
176
|
isArray: Y,
|
|
177
177
|
isArrayBuffer: De,
|
|
178
178
|
isBuffer: dt,
|
|
@@ -201,7 +201,7 @@ const Nt = (e) => {
|
|
|
201
201
|
inherits: Tt,
|
|
202
202
|
toFlatObject: Ut,
|
|
203
203
|
kindOf: ne,
|
|
204
|
-
kindOfTest:
|
|
204
|
+
kindOfTest: Q,
|
|
205
205
|
endsWith: vt,
|
|
206
206
|
toArray: xt,
|
|
207
207
|
forEachEntry: Bt,
|
|
@@ -212,9 +212,9 @@ const Nt = (e) => {
|
|
|
212
212
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
213
213
|
reduceDescriptors: qe,
|
|
214
214
|
freezeMethods: zt,
|
|
215
|
-
toObjectSet:
|
|
215
|
+
toObjectSet: Mt,
|
|
216
216
|
toCamelCase: Lt,
|
|
217
|
-
noop:
|
|
217
|
+
noop: Qt,
|
|
218
218
|
toFiniteNumber: kt,
|
|
219
219
|
findKey: $e,
|
|
220
220
|
global: Ge,
|
|
@@ -471,14 +471,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", tr
|
|
|
471
471
|
hasBrowserEnv: ge,
|
|
472
472
|
hasStandardBrowserEnv: gt,
|
|
473
473
|
hasStandardBrowserWebWorkerEnv: er
|
|
474
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
474
|
+
}, Symbol.toStringTag, { value: "Module" })), M = {
|
|
475
475
|
...tr,
|
|
476
476
|
...Zt
|
|
477
477
|
};
|
|
478
478
|
function rr(e, r) {
|
|
479
|
-
return ie(e, new
|
|
479
|
+
return ie(e, new M.classes.URLSearchParams(), Object.assign({
|
|
480
480
|
visitor: function(a, n, t, s) {
|
|
481
|
-
return
|
|
481
|
+
return M.isNode && O.isBuffer(a) ? (this.append(n, a.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
482
482
|
}
|
|
483
483
|
}, r));
|
|
484
484
|
}
|
|
@@ -569,8 +569,8 @@ const we = {
|
|
|
569
569
|
maxContentLength: -1,
|
|
570
570
|
maxBodyLength: -1,
|
|
571
571
|
env: {
|
|
572
|
-
FormData:
|
|
573
|
-
Blob:
|
|
572
|
+
FormData: M.classes.FormData,
|
|
573
|
+
Blob: M.classes.Blob
|
|
574
574
|
},
|
|
575
575
|
validateStatus: function(r) {
|
|
576
576
|
return r >= 200 && r < 300;
|
|
@@ -796,7 +796,7 @@ function hr(e, r, a) {
|
|
|
796
796
|
a
|
|
797
797
|
));
|
|
798
798
|
}
|
|
799
|
-
const ur =
|
|
799
|
+
const ur = M.hasStandardBrowserEnv ? (
|
|
800
800
|
// Standard browser envs support document.cookie
|
|
801
801
|
{
|
|
802
802
|
write(e, r, a, n, t, s) {
|
|
@@ -832,7 +832,7 @@ function Ar(e, r) {
|
|
|
832
832
|
function rt(e, r) {
|
|
833
833
|
return e && !Or(r) ? Ar(e, r) : r;
|
|
834
834
|
}
|
|
835
|
-
const Vr =
|
|
835
|
+
const Vr = M.hasStandardBrowserEnv ? (
|
|
836
836
|
// Standard browser envs have full support of the APIs needed to test
|
|
837
837
|
// whether the request URL is of the same origin as current location.
|
|
838
838
|
function() {
|
|
@@ -912,7 +912,7 @@ const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
|
912
912
|
}
|
|
913
913
|
let p;
|
|
914
914
|
if (O.isFormData(t)) {
|
|
915
|
-
if (
|
|
915
|
+
if (M.hasStandardBrowserEnv || M.hasStandardBrowserWebWorkerEnv)
|
|
916
916
|
s.setContentType(!1);
|
|
917
917
|
else if ((p = s.getContentType()) !== !1) {
|
|
918
918
|
const [T, ...F] = p ? p.split(";").map((E) => E.trim()).filter(Boolean) : [];
|
|
@@ -960,7 +960,7 @@ const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
|
960
960
|
e,
|
|
961
961
|
d
|
|
962
962
|
)), d = null;
|
|
963
|
-
},
|
|
963
|
+
}, M.hasStandardBrowserEnv && (l && O.isFunction(l) && (l = l(e)), l || l !== !1 && Vr(h))) {
|
|
964
964
|
const T = e.xsrfHeaderName && e.xsrfCookieName && ur.read(e.xsrfCookieName);
|
|
965
965
|
T && s.set(e.xsrfHeaderName, T);
|
|
966
966
|
}
|
|
@@ -970,7 +970,7 @@ const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
|
970
970
|
d && (n(!T || T.type ? new te(null, e, d) : T), d.abort(), d = null);
|
|
971
971
|
}, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
|
|
972
972
|
const w = mr(h);
|
|
973
|
-
if (w &&
|
|
973
|
+
if (w && M.protocols.indexOf(w) === -1) {
|
|
974
974
|
n(new v("Unsupported protocol " + w + ":", v.ERR_BAD_REQUEST, e));
|
|
975
975
|
return;
|
|
976
976
|
}
|
|
@@ -1024,7 +1024,7 @@ function Oe(e) {
|
|
|
1024
1024
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1025
1025
|
throw new te(null, e);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Me(e) {
|
|
1028
1028
|
return Oe(e), e.headers = H.from(e.headers), e.data = ue.call(
|
|
1029
1029
|
e,
|
|
1030
1030
|
e.transformRequest
|
|
@@ -1042,7 +1042,7 @@ function Qe(e) {
|
|
|
1042
1042
|
), n.response.headers = H.from(n.response.headers))), Promise.reject(n);
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
|
-
const
|
|
1045
|
+
const Qe = (e) => e instanceof H ? e.toJSON() : e;
|
|
1046
1046
|
function X(e, r) {
|
|
1047
1047
|
r = r || {};
|
|
1048
1048
|
const a = {};
|
|
@@ -1102,7 +1102,7 @@ function X(e, r) {
|
|
|
1102
1102
|
socketPath: o,
|
|
1103
1103
|
responseEncoding: o,
|
|
1104
1104
|
validateStatus: l,
|
|
1105
|
-
headers: (i, p) => t(
|
|
1105
|
+
headers: (i, p) => t(Qe(i), Qe(p), !0)
|
|
1106
1106
|
};
|
|
1107
1107
|
return O.forEach(Object.keys(Object.assign({}, e, r)), function(p) {
|
|
1108
1108
|
const d = c[p] || t, h = d(e[p], r[p], p);
|
|
@@ -1204,7 +1204,7 @@ class oe {
|
|
|
1204
1204
|
});
|
|
1205
1205
|
let p, d = 0, h;
|
|
1206
1206
|
if (!c) {
|
|
1207
|
-
const w = [
|
|
1207
|
+
const w = [Me.bind(this), void 0];
|
|
1208
1208
|
for (w.unshift.apply(w, l), w.push.apply(w, i), h = w.length, p = Promise.resolve(a); d < h; )
|
|
1209
1209
|
p = p.then(w[d++], w[d++]);
|
|
1210
1210
|
return p;
|
|
@@ -1221,7 +1221,7 @@ class oe {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
try {
|
|
1224
|
-
p =
|
|
1224
|
+
p = Me.call(this, I);
|
|
1225
1225
|
} catch (w) {
|
|
1226
1226
|
return Promise.reject(w);
|
|
1227
1227
|
}
|
|
@@ -1490,52 +1490,54 @@ const b = function(e, ...r) {
|
|
|
1490
1490
|
* @summary Retrieves all projects.
|
|
1491
1491
|
* @param {boolean} [topLevel] Gets or sets a value indicating whether to filter top-level projects.
|
|
1492
1492
|
* @param {boolean} [includeDeleted] Gets or sets a value indicating whether to include deleted projects in the results.
|
|
1493
|
+
* @param {boolean} [includeQuotas] Gets or sets a value indicating whether to include quotas in the results.
|
|
1494
|
+
* @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`.
|
|
1493
1495
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
1494
|
-
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
1495
1496
|
* @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc.
|
|
1496
1497
|
* @param {*} [options] Override http request option.
|
|
1497
1498
|
* @throws {RequiredError}
|
|
1498
1499
|
*/
|
|
1499
|
-
getAllProjects: async (r, a, n, t, s, o = {}) => {
|
|
1500
|
-
const
|
|
1501
|
-
let
|
|
1502
|
-
e && (
|
|
1503
|
-
const
|
|
1504
|
-
await P(
|
|
1505
|
-
let
|
|
1506
|
-
return
|
|
1507
|
-
url: y(
|
|
1508
|
-
options:
|
|
1500
|
+
getAllProjects: async (r, a, n, t, s, o, l = {}) => {
|
|
1501
|
+
const c = "/api/v2/admin/projects", i = new URL(c, m);
|
|
1502
|
+
let p;
|
|
1503
|
+
e && (p = e.baseOptions);
|
|
1504
|
+
const d = { method: "GET", ...p, ...l }, h = {}, I = {};
|
|
1505
|
+
await P(h, "Authorization", e), r !== void 0 && (I.TopLevel = r), a !== void 0 && (I.IncludeDeleted = a), n !== void 0 && (I.IncludeQuotas = n), t !== void 0 && (I.PageSize = t), s !== void 0 && (I.PageNumber = s), o !== void 0 && (I.OrderBy = o), b(i, I);
|
|
1506
|
+
let w = p && p.headers ? p.headers : {};
|
|
1507
|
+
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
1508
|
+
url: y(i),
|
|
1509
|
+
options: d
|
|
1509
1510
|
};
|
|
1510
1511
|
},
|
|
1511
1512
|
/**
|
|
1512
1513
|
*
|
|
1513
1514
|
* @summary Retrieves all resources.
|
|
1514
|
-
* @param {boolean} [includeDeleted]
|
|
1515
|
+
* @param {boolean} [includeDeleted] Value indicating whether to include deleted resources.
|
|
1516
|
+
* @param {boolean} [includeQuotas] Value indicating whether to include individual resource quotas.
|
|
1517
|
+
* @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`.
|
|
1515
1518
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
1516
|
-
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
1517
1519
|
* @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc.
|
|
1518
1520
|
* @param {*} [options] Override http request option.
|
|
1519
1521
|
* @throws {RequiredError}
|
|
1520
1522
|
*/
|
|
1521
|
-
getAllResources: async (r, a, n, t, s = {}) => {
|
|
1522
|
-
const
|
|
1523
|
-
let
|
|
1524
|
-
e && (
|
|
1525
|
-
const
|
|
1526
|
-
await P(
|
|
1527
|
-
let
|
|
1528
|
-
return
|
|
1529
|
-
url: y(
|
|
1530
|
-
options:
|
|
1523
|
+
getAllResources: async (r, a, n, t, s, o = {}) => {
|
|
1524
|
+
const l = "/api/v2/admin/resources", c = new URL(l, m);
|
|
1525
|
+
let i;
|
|
1526
|
+
e && (i = e.baseOptions);
|
|
1527
|
+
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
1528
|
+
await P(d, "Authorization", e), r !== void 0 && (h.IncludeDeleted = r), a !== void 0 && (h.IncludeQuotas = a), n !== void 0 && (h.PageSize = n), t !== void 0 && (h.PageNumber = t), s !== void 0 && (h.OrderBy = s), b(c, h);
|
|
1529
|
+
let I = i && i.headers ? i.headers : {};
|
|
1530
|
+
return p.headers = { ...d, ...I, ...o.headers }, {
|
|
1531
|
+
url: y(c),
|
|
1532
|
+
options: p
|
|
1531
1533
|
};
|
|
1532
1534
|
},
|
|
1533
1535
|
/**
|
|
1534
1536
|
*
|
|
1535
1537
|
* @summary Retrieves all users.
|
|
1536
1538
|
* @param {boolean} [tosAccepted] Gets or sets a value indicating whether the terms of service have been accepted by the user.
|
|
1539
|
+
* @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`.
|
|
1537
1540
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
1538
|
-
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
1539
1541
|
* @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc.
|
|
1540
1542
|
* @param {*} [options] Override http request option.
|
|
1541
1543
|
* @throws {RequiredError}
|
|
@@ -1545,7 +1547,7 @@ const b = function(e, ...r) {
|
|
|
1545
1547
|
let c;
|
|
1546
1548
|
e && (c = e.baseOptions);
|
|
1547
1549
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
1548
|
-
await P(p, "Authorization", e), r !== void 0 && (d.TosAccepted = r), a !== void 0 && (d.
|
|
1550
|
+
await P(p, "Authorization", e), r !== void 0 && (d.TosAccepted = r), a !== void 0 && (d.PageSize = a), n !== void 0 && (d.PageNumber = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
1549
1551
|
let h = c && c.headers ? c.headers : {};
|
|
1550
1552
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
1551
1553
|
url: y(l),
|
|
@@ -1555,41 +1557,64 @@ const b = function(e, ...r) {
|
|
|
1555
1557
|
/**
|
|
1556
1558
|
*
|
|
1557
1559
|
* @summary Gets a metadata graph.
|
|
1558
|
-
* @param {string}
|
|
1560
|
+
* @param {string} graph The absolute URI of the graph to get.
|
|
1559
1561
|
* @param {RdfFormat} [format] Gets or sets the RDF format.
|
|
1560
1562
|
* @param {*} [options] Override http request option.
|
|
1561
1563
|
* @throws {RequiredError}
|
|
1562
1564
|
*/
|
|
1563
1565
|
getMetadataGraph: async (r, a, n = {}) => {
|
|
1564
|
-
j("getMetadataGraph", "
|
|
1565
|
-
const t = "/api/v2/admin/metadata", s = new URL(t, m);
|
|
1566
|
+
j("getMetadataGraph", "graph", r);
|
|
1567
|
+
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
1566
1568
|
let o;
|
|
1567
1569
|
e && (o = e.baseOptions);
|
|
1568
1570
|
const l = { method: "GET", ...o, ...n }, c = {}, i = {};
|
|
1569
|
-
await P(c, "Authorization", e),
|
|
1571
|
+
await P(c, "Authorization", e), a !== void 0 && (i.Format = a), b(s, i);
|
|
1570
1572
|
let p = o && o.headers ? o.headers : {};
|
|
1571
1573
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
1572
1574
|
url: y(s),
|
|
1573
1575
|
options: l
|
|
1574
1576
|
};
|
|
1575
1577
|
},
|
|
1578
|
+
/**
|
|
1579
|
+
*
|
|
1580
|
+
* @summary Patches a metadata graph.
|
|
1581
|
+
* @param {string} graph The absolute URI of the graph to patch.
|
|
1582
|
+
* @param {RdfPatchDocumentDto} [rdfPatchDocumentDto] The well-formed RDF patch document containing the changes as operations to be applied to the graph.
|
|
1583
|
+
* @param {*} [options] Override http request option.
|
|
1584
|
+
* @throws {RequiredError}
|
|
1585
|
+
*/
|
|
1586
|
+
patchMetadata: async (r, a, n = {}) => {
|
|
1587
|
+
j("patchMetadata", "graph", r);
|
|
1588
|
+
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
1589
|
+
let o;
|
|
1590
|
+
e && (o = e.baseOptions);
|
|
1591
|
+
const l = { method: "PATCH", ...o, ...n }, c = {}, i = {};
|
|
1592
|
+
await P(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
1593
|
+
let p = o && o.headers ? o.headers : {};
|
|
1594
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(a, l, e), {
|
|
1595
|
+
url: y(s),
|
|
1596
|
+
options: l
|
|
1597
|
+
};
|
|
1598
|
+
},
|
|
1576
1599
|
/**
|
|
1577
1600
|
*
|
|
1578
1601
|
* @summary Updates a metadata graph.
|
|
1602
|
+
* @param {string} graph The absolute URI of the graph to update.
|
|
1579
1603
|
* @param {MetadataUpdateAdminParameters} [metadataUpdateAdminParameters] The metadata update admin parameters.
|
|
1580
1604
|
* @param {*} [options] Override http request option.
|
|
1581
1605
|
* @throws {RequiredError}
|
|
1582
1606
|
*/
|
|
1583
|
-
updateMetadataGraph: async (r, a = {}) => {
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1607
|
+
updateMetadataGraph: async (r, a, n = {}) => {
|
|
1608
|
+
j("updateMetadataGraph", "graph", r);
|
|
1609
|
+
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
1610
|
+
let o;
|
|
1611
|
+
e && (o = e.baseOptions);
|
|
1612
|
+
const l = { method: "PUT", ...o, ...n }, c = {}, i = {};
|
|
1613
|
+
await P(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
1614
|
+
let p = o && o.headers ? o.headers : {};
|
|
1615
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(a, l, e), {
|
|
1616
|
+
url: y(s),
|
|
1617
|
+
options: l
|
|
1593
1618
|
};
|
|
1594
1619
|
}
|
|
1595
1620
|
};
|
|
@@ -1612,38 +1637,40 @@ const b = function(e, ...r) {
|
|
|
1612
1637
|
* @summary Retrieves all projects.
|
|
1613
1638
|
* @param {boolean} [topLevel] Gets or sets a value indicating whether to filter top-level projects.
|
|
1614
1639
|
* @param {boolean} [includeDeleted] Gets or sets a value indicating whether to include deleted projects in the results.
|
|
1640
|
+
* @param {boolean} [includeQuotas] Gets or sets a value indicating whether to include quotas in the results.
|
|
1641
|
+
* @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`.
|
|
1615
1642
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
1616
|
-
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
1617
1643
|
* @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc.
|
|
1618
1644
|
* @param {*} [options] Override http request option.
|
|
1619
1645
|
* @throws {RequiredError}
|
|
1620
1646
|
*/
|
|
1621
|
-
async getAllProjects(a, n, t, s, o, l) {
|
|
1622
|
-
var
|
|
1623
|
-
const
|
|
1624
|
-
return (
|
|
1647
|
+
async getAllProjects(a, n, t, s, o, l, c) {
|
|
1648
|
+
var h, I;
|
|
1649
|
+
const i = await r.getAllProjects(a, n, t, s, o, l, c), p = (e == null ? void 0 : e.serverIndex) ?? 0, d = (I = (h = V["AdminApi.getAllProjects"]) == null ? void 0 : h[p]) == null ? void 0 : I.url;
|
|
1650
|
+
return (w, T) => R(i, u, A, e)(w, d || T);
|
|
1625
1651
|
},
|
|
1626
1652
|
/**
|
|
1627
1653
|
*
|
|
1628
1654
|
* @summary Retrieves all resources.
|
|
1629
|
-
* @param {boolean} [includeDeleted]
|
|
1655
|
+
* @param {boolean} [includeDeleted] Value indicating whether to include deleted resources.
|
|
1656
|
+
* @param {boolean} [includeQuotas] Value indicating whether to include individual resource quotas.
|
|
1657
|
+
* @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`.
|
|
1630
1658
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
1631
|
-
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
1632
1659
|
* @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc.
|
|
1633
1660
|
* @param {*} [options] Override http request option.
|
|
1634
1661
|
* @throws {RequiredError}
|
|
1635
1662
|
*/
|
|
1636
|
-
async getAllResources(a, n, t, s, o) {
|
|
1637
|
-
var
|
|
1638
|
-
const
|
|
1639
|
-
return (
|
|
1663
|
+
async getAllResources(a, n, t, s, o, l) {
|
|
1664
|
+
var d, h;
|
|
1665
|
+
const c = await r.getAllResources(a, n, t, s, o, l), i = (e == null ? void 0 : e.serverIndex) ?? 0, p = (h = (d = V["AdminApi.getAllResources"]) == null ? void 0 : d[i]) == null ? void 0 : h.url;
|
|
1666
|
+
return (I, w) => R(c, u, A, e)(I, p || w);
|
|
1640
1667
|
},
|
|
1641
1668
|
/**
|
|
1642
1669
|
*
|
|
1643
1670
|
* @summary Retrieves all users.
|
|
1644
1671
|
* @param {boolean} [tosAccepted] Gets or sets a value indicating whether the terms of service have been accepted by the user.
|
|
1672
|
+
* @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`.
|
|
1645
1673
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
1646
|
-
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
1647
1674
|
* @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc.
|
|
1648
1675
|
* @param {*} [options] Override http request option.
|
|
1649
1676
|
* @throws {RequiredError}
|
|
@@ -1656,7 +1683,7 @@ const b = function(e, ...r) {
|
|
|
1656
1683
|
/**
|
|
1657
1684
|
*
|
|
1658
1685
|
* @summary Gets a metadata graph.
|
|
1659
|
-
* @param {string}
|
|
1686
|
+
* @param {string} graph The absolute URI of the graph to get.
|
|
1660
1687
|
* @param {RdfFormat} [format] Gets or sets the RDF format.
|
|
1661
1688
|
* @param {*} [options] Override http request option.
|
|
1662
1689
|
* @throws {RequiredError}
|
|
@@ -1666,17 +1693,31 @@ const b = function(e, ...r) {
|
|
|
1666
1693
|
const s = await r.getMetadataGraph(a, n, t), o = (e == null ? void 0 : e.serverIndex) ?? 0, l = (i = (c = V["AdminApi.getMetadataGraph"]) == null ? void 0 : c[o]) == null ? void 0 : i.url;
|
|
1667
1694
|
return (p, d) => R(s, u, A, e)(p, l || d);
|
|
1668
1695
|
},
|
|
1696
|
+
/**
|
|
1697
|
+
*
|
|
1698
|
+
* @summary Patches a metadata graph.
|
|
1699
|
+
* @param {string} graph The absolute URI of the graph to patch.
|
|
1700
|
+
* @param {RdfPatchDocumentDto} [rdfPatchDocumentDto] The well-formed RDF patch document containing the changes as operations to be applied to the graph.
|
|
1701
|
+
* @param {*} [options] Override http request option.
|
|
1702
|
+
* @throws {RequiredError}
|
|
1703
|
+
*/
|
|
1704
|
+
async patchMetadata(a, n, t) {
|
|
1705
|
+
var c, i;
|
|
1706
|
+
const s = await r.patchMetadata(a, n, t), o = (e == null ? void 0 : e.serverIndex) ?? 0, l = (i = (c = V["AdminApi.patchMetadata"]) == null ? void 0 : c[o]) == null ? void 0 : i.url;
|
|
1707
|
+
return (p, d) => R(s, u, A, e)(p, l || d);
|
|
1708
|
+
},
|
|
1669
1709
|
/**
|
|
1670
1710
|
*
|
|
1671
1711
|
* @summary Updates a metadata graph.
|
|
1712
|
+
* @param {string} graph The absolute URI of the graph to update.
|
|
1672
1713
|
* @param {MetadataUpdateAdminParameters} [metadataUpdateAdminParameters] The metadata update admin parameters.
|
|
1673
1714
|
* @param {*} [options] Override http request option.
|
|
1674
1715
|
* @throws {RequiredError}
|
|
1675
1716
|
*/
|
|
1676
|
-
async updateMetadataGraph(a, n) {
|
|
1677
|
-
var
|
|
1678
|
-
const
|
|
1679
|
-
return (
|
|
1717
|
+
async updateMetadataGraph(a, n, t) {
|
|
1718
|
+
var c, i;
|
|
1719
|
+
const s = await r.updateMetadataGraph(a, n, t), o = (e == null ? void 0 : e.serverIndex) ?? 0, l = (i = (c = V["AdminApi.updateMetadataGraph"]) == null ? void 0 : c[o]) == null ? void 0 : i.url;
|
|
1720
|
+
return (p, d) => R(s, u, A, e)(p, l || d);
|
|
1680
1721
|
}
|
|
1681
1722
|
};
|
|
1682
1723
|
}, Br = function(e, r, a) {
|
|
@@ -1699,7 +1740,7 @@ const b = function(e, ...r) {
|
|
|
1699
1740
|
* @throws {RequiredError}
|
|
1700
1741
|
*/
|
|
1701
1742
|
getAllProjects(t = {}, s) {
|
|
1702
|
-
return n.getAllProjects(t.topLevel, t.includeDeleted, t.
|
|
1743
|
+
return n.getAllProjects(t.topLevel, t.includeDeleted, t.includeQuotas, t.pageSize, t.pageNumber, t.orderBy, s).then((o) => o(a, r));
|
|
1703
1744
|
},
|
|
1704
1745
|
/**
|
|
1705
1746
|
*
|
|
@@ -1709,7 +1750,7 @@ const b = function(e, ...r) {
|
|
|
1709
1750
|
* @throws {RequiredError}
|
|
1710
1751
|
*/
|
|
1711
1752
|
getAllResources(t = {}, s) {
|
|
1712
|
-
return n.getAllResources(t.includeDeleted, t.
|
|
1753
|
+
return n.getAllResources(t.includeDeleted, t.includeQuotas, t.pageSize, t.pageNumber, t.orderBy, s).then((o) => o(a, r));
|
|
1713
1754
|
},
|
|
1714
1755
|
/**
|
|
1715
1756
|
*
|
|
@@ -1719,7 +1760,7 @@ const b = function(e, ...r) {
|
|
|
1719
1760
|
* @throws {RequiredError}
|
|
1720
1761
|
*/
|
|
1721
1762
|
getAllUsers(t = {}, s) {
|
|
1722
|
-
return n.getAllUsers(t.tosAccepted, t.
|
|
1763
|
+
return n.getAllUsers(t.tosAccepted, t.pageSize, t.pageNumber, t.orderBy, s).then((o) => o(a, r));
|
|
1723
1764
|
},
|
|
1724
1765
|
/**
|
|
1725
1766
|
*
|
|
@@ -1729,7 +1770,17 @@ const b = function(e, ...r) {
|
|
|
1729
1770
|
* @throws {RequiredError}
|
|
1730
1771
|
*/
|
|
1731
1772
|
getMetadataGraph(t, s) {
|
|
1732
|
-
return n.getMetadataGraph(t.
|
|
1773
|
+
return n.getMetadataGraph(t.graph, t.format, s).then((o) => o(a, r));
|
|
1774
|
+
},
|
|
1775
|
+
/**
|
|
1776
|
+
*
|
|
1777
|
+
* @summary Patches a metadata graph.
|
|
1778
|
+
* @param {AdminApiPatchMetadataRequest} requestParameters Request parameters.
|
|
1779
|
+
* @param {*} [options] Override http request option.
|
|
1780
|
+
* @throws {RequiredError}
|
|
1781
|
+
*/
|
|
1782
|
+
patchMetadata(t, s) {
|
|
1783
|
+
return n.patchMetadata(t.graph, t.rdfPatchDocumentDto, s).then((o) => o(a, r));
|
|
1733
1784
|
},
|
|
1734
1785
|
/**
|
|
1735
1786
|
*
|
|
@@ -1738,8 +1789,8 @@ const b = function(e, ...r) {
|
|
|
1738
1789
|
* @param {*} [options] Override http request option.
|
|
1739
1790
|
* @throws {RequiredError}
|
|
1740
1791
|
*/
|
|
1741
|
-
updateMetadataGraph(t
|
|
1742
|
-
return n.updateMetadataGraph(t.metadataUpdateAdminParameters, s).then((o) => o(a, r));
|
|
1792
|
+
updateMetadataGraph(t, s) {
|
|
1793
|
+
return n.updateMetadataGraph(t.graph, t.metadataUpdateAdminParameters, s).then((o) => o(a, r));
|
|
1743
1794
|
}
|
|
1744
1795
|
};
|
|
1745
1796
|
}, Fr = function(e) {
|
|
@@ -2160,7 +2211,7 @@ const b = function(e, ...r) {
|
|
|
2160
2211
|
return (h, I) => R(l, u, A, e)(h, i || I);
|
|
2161
2212
|
}
|
|
2162
2213
|
};
|
|
2163
|
-
},
|
|
2214
|
+
}, Mr = function(e, r, a) {
|
|
2164
2215
|
const n = zr(e);
|
|
2165
2216
|
return {
|
|
2166
2217
|
/**
|
|
@@ -2214,7 +2265,7 @@ const b = function(e, ...r) {
|
|
|
2214
2265
|
return n.updateBlob(t.projectId, t.resourceId, t.key, t.file, s).then((o) => o(a, r));
|
|
2215
2266
|
}
|
|
2216
2267
|
};
|
|
2217
|
-
},
|
|
2268
|
+
}, Qr = function(e) {
|
|
2218
2269
|
return {
|
|
2219
2270
|
/**
|
|
2220
2271
|
*
|
|
@@ -2277,7 +2328,7 @@ const b = function(e, ...r) {
|
|
|
2277
2328
|
}
|
|
2278
2329
|
};
|
|
2279
2330
|
}, kr = function(e) {
|
|
2280
|
-
const r =
|
|
2331
|
+
const r = Qr(e);
|
|
2281
2332
|
return {
|
|
2282
2333
|
/**
|
|
2283
2334
|
*
|
|
@@ -5245,7 +5296,7 @@ const b = function(e, ...r) {
|
|
|
5245
5296
|
return (i, p) => R(t, u, A, e)(i, o || p);
|
|
5246
5297
|
}
|
|
5247
5298
|
};
|
|
5248
|
-
},
|
|
5299
|
+
}, Ms = function(e, r, a) {
|
|
5249
5300
|
const n = zs(e);
|
|
5250
5301
|
return {
|
|
5251
5302
|
/**
|
|
@@ -5317,7 +5368,7 @@ const b = function(e, ...r) {
|
|
|
5317
5368
|
return n.updateCurrentUser(t.userForUpdateDto, s).then((o) => o(a, r));
|
|
5318
5369
|
}
|
|
5319
5370
|
};
|
|
5320
|
-
},
|
|
5371
|
+
}, Qs = function(e) {
|
|
5321
5372
|
return {
|
|
5322
5373
|
/**
|
|
5323
5374
|
*
|
|
@@ -5419,7 +5470,7 @@ const b = function(e, ...r) {
|
|
|
5419
5470
|
}
|
|
5420
5471
|
};
|
|
5421
5472
|
}, ks = function(e) {
|
|
5422
|
-
const r =
|
|
5473
|
+
const r = Qs(e);
|
|
5423
5474
|
return {
|
|
5424
5475
|
/**
|
|
5425
5476
|
*
|
|
@@ -6962,7 +7013,7 @@ function ba(e) {
|
|
|
6962
7013
|
AccountApi: na(new x({ accessToken: U }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
6963
7014
|
AdminApi: Br(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
6964
7015
|
ApplicationProfileApi: Lr(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
6965
|
-
BlobApi:
|
|
7016
|
+
BlobApi: Mr(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
6966
7017
|
DisciplineApi: Hr(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
6967
7018
|
HomeApi: ia(new x({ accessToken: U }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
6968
7019
|
LanguageApi: $r(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
@@ -6983,7 +7034,7 @@ function ba(e) {
|
|
|
6983
7034
|
ResourceTypeApi: vs(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
6984
7035
|
RoleApi: Bs(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
6985
7036
|
SearchApi: Ls(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
6986
|
-
SelfApi:
|
|
7037
|
+
SelfApi: Ms(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
6987
7038
|
SelfApiTokenApi: Hs(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
6988
7039
|
ShibbolethApi: Pa(new x({ accessToken: U }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
6989
7040
|
TitleApi: $s(new x({ accessToken: U }), "https://" + S() + "/coscine", e),
|
|
@@ -7004,7 +7055,7 @@ function Ra(e) {
|
|
|
7004
7055
|
}
|
|
7005
7056
|
}
|
|
7006
7057
|
nt.interceptors.request.use((e) => (Ra(e), e), (e) => Promise.reject(e), { synchronous: !0 });
|
|
7007
|
-
const B = ba(nt), Ia = B.AccountApi, wa = B.AdminApi, Ta = B.ApplicationProfileApi, Ua = B.BlobApi, va = B.DisciplineApi, xa = B.HomeApi, Sa = B.LanguageApi, Ba = B.LicenseApi, Fa = B.MaintenanceApi, Ca = B.MergeApi, La = B.ORCiDApi, Ea = B.OrganizationApi, za = B.PidApi,
|
|
7058
|
+
const B = ba(nt), Ia = B.AccountApi, wa = B.AdminApi, Ta = B.ApplicationProfileApi, Ua = B.BlobApi, va = B.DisciplineApi, xa = B.HomeApi, Sa = B.LanguageApi, Ba = B.LicenseApi, Fa = B.MaintenanceApi, Ca = B.MergeApi, La = B.ORCiDApi, Ea = B.OrganizationApi, za = B.PidApi, Ma = B.ProjectApi, Qa = B.ProjectInvitationApi, ka = B.ProjectMemberApi, Ha = B.ProjectQuotaApi, Da = B.ProjectResourceApi, Na = B.ProjectResourceQuotaApi, $a = B.ProjectResourceTypeApi, Ga = B.ResourceApi, _a = B.ResourceTypeApi, qa = B.RoleApi, fa = B.SearchApi, Ja = B.SelfApi, Ka = B.SelfApiTokenApi, Wa = B.ShibbolethApi, Xa = B.TitleApi, Ya = B.TosApi, Za = B.TreeApi, ga = B.UserApi, eo = B.VisibilityApi, to = B.VocabularyApi;
|
|
7008
7059
|
export {
|
|
7009
7060
|
Ia as AccountApi,
|
|
7010
7061
|
wa as AdminApi,
|
|
@@ -7019,8 +7070,8 @@ export {
|
|
|
7019
7070
|
La as ORCiDApi,
|
|
7020
7071
|
Ea as OrganizationApi,
|
|
7021
7072
|
za as PidApi,
|
|
7022
|
-
|
|
7023
|
-
|
|
7073
|
+
Ma as ProjectApi,
|
|
7074
|
+
Qa as ProjectInvitationApi,
|
|
7024
7075
|
ka as ProjectMemberApi,
|
|
7025
7076
|
Ha as ProjectQuotaApi,
|
|
7026
7077
|
Da as ProjectResourceApi,
|