@coscine/api-client 3.7.0 → 3.9.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/index.js +820 -631
- package/dist/types/Coscine.Api/@coscine/api/admin-api.d.ts +63 -0
- package/dist/types/Coscine.Api/@coscine/api/application-profile-api.d.ts +16 -16
- package/dist/types/Coscine.Api/@coscine/api/blob-api.d.ts +16 -16
- package/dist/types/Coscine.Api/@coscine/api/discipline-api.d.ts +8 -8
- package/dist/types/Coscine.Api/@coscine/api/handle-api.d.ts +4 -4
- package/dist/types/Coscine.Api/@coscine/api/language-api.d.ts +8 -8
- package/dist/types/Coscine.Api/@coscine/api/license-api.d.ts +8 -8
- package/dist/types/Coscine.Api/@coscine/api/maintenance-api.d.ts +4 -4
- package/dist/types/Coscine.Api/@coscine/api/organization-api.d.ts +19 -10
- package/dist/types/Coscine.Api/@coscine/api/pid-api.d.ts +8 -8
- package/dist/types/Coscine.Api/@coscine/api/project-api.d.ts +20 -20
- package/dist/types/Coscine.Api/@coscine/api/project-invitation-api.d.ts +16 -16
- package/dist/types/Coscine.Api/@coscine/api/project-member-api.d.ts +20 -20
- package/dist/types/Coscine.Api/@coscine/api/project-publication-request-api.d.ts +4 -4
- package/dist/types/Coscine.Api/@coscine/api/project-quota-api.d.ts +12 -12
- package/dist/types/Coscine.Api/@coscine/api/project-resource-api.d.ts +20 -20
- package/dist/types/Coscine.Api/@coscine/api/project-resource-quota-api.d.ts +4 -4
- package/dist/types/Coscine.Api/@coscine/api/project-resource-type-api.d.ts +4 -4
- package/dist/types/Coscine.Api/@coscine/api/provenance-api.d.ts +228 -0
- package/dist/types/Coscine.Api/@coscine/api/resource-api.d.ts +4 -4
- package/dist/types/Coscine.Api/@coscine/api/resource-type-api.d.ts +20 -20
- package/dist/types/Coscine.Api/@coscine/api/role-api.d.ts +8 -8
- package/dist/types/Coscine.Api/@coscine/api/search-api.d.ts +4 -4
- package/dist/types/Coscine.Api/@coscine/api/self-api-token-api.d.ts +16 -16
- package/dist/types/Coscine.Api/@coscine/api/self-api.d.ts +24 -24
- package/dist/types/Coscine.Api/@coscine/api/title-api.d.ts +8 -8
- package/dist/types/Coscine.Api/@coscine/api/tos-api.d.ts +4 -4
- package/dist/types/Coscine.Api/@coscine/api/tree-api.d.ts +228 -23
- package/dist/types/Coscine.Api/@coscine/api/user-api.d.ts +4 -4
- package/dist/types/Coscine.Api/@coscine/api/visibility-api.d.ts +8 -8
- package/dist/types/Coscine.Api/@coscine/api/vocabulary-api.d.ts +8 -8
- package/dist/types/Coscine.Api/@coscine/model/deployed-graph-dto-paged-response.d.ts +50 -0
- package/dist/types/Coscine.Api/@coscine/model/deployed-graph-dto.d.ts +30 -0
- package/dist/types/Coscine.Api/@coscine/model/extracted-metadata-tree-for-creation-dto.d.ts +44 -0
- package/dist/types/Coscine.Api/@coscine/model/extracted-metadata-tree-for-update-dto.d.ts +50 -0
- package/dist/types/Coscine.Api/@coscine/model/hash-parameters-dto.d.ts +30 -0
- package/dist/types/Coscine.Api/@coscine/model/index.d.ts +11 -0
- package/dist/types/Coscine.Api/@coscine/model/metadata-tree-dto.d.ts +13 -0
- package/dist/types/Coscine.Api/@coscine/model/metadata-tree-for-deletion-dto.d.ts +36 -0
- package/dist/types/Coscine.Api/@coscine/model/provenance-dto-response.d.ts +43 -0
- package/dist/types/Coscine.Api/@coscine/model/provenance-dto.d.ts +62 -0
- package/dist/types/Coscine.Api/@coscine/model/provenance-for-update-dto.d.ts +62 -0
- package/dist/types/Coscine.Api/@coscine/model/provenance-parameters-dto.d.ts +56 -0
- package/dist/types/Coscine.Api/@coscine/model/publication-advisory-service-dto.d.ts +6 -0
- package/dist/types/Coscine.Api/@coscine/model/rdf-format.d.ts +1 -0
- package/dist/types/Coscine.Api/@coscine/model/resource-admin-dto.d.ts +7 -0
- package/dist/types/Coscine.Api/@coscine/model/resource-dto.d.ts +7 -0
- package/dist/types/Coscine.Api/@coscine/model/variant-dto.d.ts +30 -0
- package/dist/types/Coscine.Api/api.d.ts +1 -0
- package/dist/types/apis.d.ts +4 -0
- package/dist/types/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,22 +11,22 @@ const { toString: pt } = Object.prototype, { getPrototypeOf: je } = Object, ne =
|
|
|
11
11
|
return e[o] || (e[o] = o.slice(8, -1).toLowerCase());
|
|
12
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
|
-
return e !== null && !g(e) && e.constructor !== null && !g(e.constructor) &&
|
|
14
|
+
return e !== null && !g(e) && e.constructor !== null && !g(e.constructor) && M(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
16
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;
|
|
20
20
|
}
|
|
21
|
-
const ut = le("string"),
|
|
21
|
+
const ut = le("string"), M = le("function"), Ne = le("number"), ce = (e) => e !== null && typeof e == "object", Ot = (e) => e === !0 || e === !1, re = (e) => {
|
|
22
22
|
if (ne(e) !== "object")
|
|
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 = Q("Date"), Vt = Q("File"),
|
|
26
|
+
}, At = Q("Date"), Vt = Q("File"), mt = Q("Blob"), Pt = Q("FileList"), bt = (e) => ce(e) && M(e.pipe), yt = (e) => {
|
|
27
27
|
let r;
|
|
28
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
29
|
-
r === "object" &&
|
|
28
|
+
return e && (typeof FormData == "function" && e instanceof FormData || M(e.append) && ((r = ne(e)) === "formdata" || // detect form-data instance
|
|
29
|
+
r === "object" && M(e.toString) && e.toString() === "[object FormData]"));
|
|
30
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: o = !1 } = {}) {
|
|
32
32
|
if (e === null || typeof e > "u")
|
|
@@ -62,7 +62,7 @@ function Ae() {
|
|
|
62
62
|
return r;
|
|
63
63
|
}
|
|
64
64
|
const It = (e, r, o, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
65
|
-
o &&
|
|
65
|
+
o && M(t) ? e[s] = ke(t, o) : e[s] = t;
|
|
66
66
|
}, { allOwnKeys: n }), e), wt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tt = (e, r, o, n) => {
|
|
67
67
|
e.prototype = Object.create(r.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
68
68
|
value: r.prototype
|
|
@@ -120,10 +120,10 @@ const It = (e, r, o, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
120
120
|
}), Object.defineProperties(e, n);
|
|
121
121
|
}, zt = (e) => {
|
|
122
122
|
qe(e, (r, o) => {
|
|
123
|
-
if (
|
|
123
|
+
if (M(e) && ["arguments", "caller", "callee"].indexOf(o) !== -1)
|
|
124
124
|
return !1;
|
|
125
125
|
const n = e[o];
|
|
126
|
-
if (
|
|
126
|
+
if (M(n)) {
|
|
127
127
|
if (r.enumerable = !1, "writable" in r) {
|
|
128
128
|
r.writable = !1;
|
|
129
129
|
return;
|
|
@@ -133,19 +133,19 @@ const It = (e, r, o, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
|
-
},
|
|
136
|
+
}, Mt = (e, r) => {
|
|
137
137
|
const o = {}, n = (t) => {
|
|
138
138
|
t.forEach((s) => {
|
|
139
139
|
o[s] = !0;
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
142
|
return Y(e) ? n(e) : n(String(e).split(r)), o;
|
|
143
|
-
},
|
|
144
|
-
}, Qt = (e, r) => (e = +e, Number.isFinite(e) ? e : r), de = "abcdefghijklmnopqrstuvwxyz", Se = "0123456789",
|
|
143
|
+
}, Ht = () => {
|
|
144
|
+
}, Qt = (e, r) => (e = +e, Number.isFinite(e) ? e : r), de = "abcdefghijklmnopqrstuvwxyz", Se = "0123456789", Je = {
|
|
145
145
|
DIGIT: Se,
|
|
146
146
|
ALPHA: de,
|
|
147
147
|
ALPHA_DIGIT: de + de.toUpperCase() + Se
|
|
148
|
-
}, kt = (e = 16, r =
|
|
148
|
+
}, kt = (e = 16, r = Je.ALPHA_DIGIT) => {
|
|
149
149
|
let o = "";
|
|
150
150
|
const { length: n } = r;
|
|
151
151
|
for (; e--; )
|
|
@@ -153,7 +153,7 @@ const It = (e, r, o, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
153
153
|
return o;
|
|
154
154
|
};
|
|
155
155
|
function Dt(e) {
|
|
156
|
-
return !!(e &&
|
|
156
|
+
return !!(e && M(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
157
157
|
}
|
|
158
158
|
const Nt = (e) => {
|
|
159
159
|
const r = new Array(10), o = (n, t) => {
|
|
@@ -172,7 +172,7 @@ const Nt = (e) => {
|
|
|
172
172
|
return n;
|
|
173
173
|
};
|
|
174
174
|
return o(e, 0);
|
|
175
|
-
}, $t = Q("AsyncFunction"), Gt = (e) => e && (ce(e) ||
|
|
175
|
+
}, $t = Q("AsyncFunction"), Gt = (e) => e && (ce(e) || M(e)) && M(e.then) && M(e.catch), j = {
|
|
176
176
|
isArray: Y,
|
|
177
177
|
isArrayBuffer: De,
|
|
178
178
|
isBuffer: dt,
|
|
@@ -186,13 +186,13 @@ const Nt = (e) => {
|
|
|
186
186
|
isUndefined: g,
|
|
187
187
|
isDate: At,
|
|
188
188
|
isFile: Vt,
|
|
189
|
-
isBlob:
|
|
189
|
+
isBlob: mt,
|
|
190
190
|
isRegExp: Et,
|
|
191
|
-
isFunction:
|
|
191
|
+
isFunction: M,
|
|
192
192
|
isStream: bt,
|
|
193
193
|
isURLSearchParams: Rt,
|
|
194
194
|
isTypedArray: St,
|
|
195
|
-
isFileList:
|
|
195
|
+
isFileList: Pt,
|
|
196
196
|
forEach: ee,
|
|
197
197
|
merge: Ae,
|
|
198
198
|
extend: It,
|
|
@@ -212,14 +212,14 @@ 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: Ht,
|
|
218
218
|
toFiniteNumber: Qt,
|
|
219
219
|
findKey: $e,
|
|
220
220
|
global: Ge,
|
|
221
221
|
isContextDefined: _e,
|
|
222
|
-
ALPHABET:
|
|
222
|
+
ALPHABET: Je,
|
|
223
223
|
generateString: kt,
|
|
224
224
|
isSpecCompliantForm: Dt,
|
|
225
225
|
toJSONObject: Nt,
|
|
@@ -250,7 +250,7 @@ j.inherits(F, Error, {
|
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
|
-
const
|
|
253
|
+
const Ke = F.prototype, fe = {};
|
|
254
254
|
[
|
|
255
255
|
"ERR_BAD_OPTION_VALUE",
|
|
256
256
|
"ERR_BAD_OPTION",
|
|
@@ -266,12 +266,12 @@ const Je = F.prototype, Ke = {};
|
|
|
266
266
|
"ERR_INVALID_URL"
|
|
267
267
|
// eslint-disable-next-line func-names
|
|
268
268
|
].forEach((e) => {
|
|
269
|
-
|
|
269
|
+
fe[e] = { value: e };
|
|
270
270
|
});
|
|
271
|
-
Object.defineProperties(F,
|
|
272
|
-
Object.defineProperty(
|
|
271
|
+
Object.defineProperties(F, fe);
|
|
272
|
+
Object.defineProperty(Ke, "isAxiosError", { value: !0 });
|
|
273
273
|
F.from = (e, r, o, n, t, s) => {
|
|
274
|
-
const a = Object.create(
|
|
274
|
+
const a = Object.create(Ke);
|
|
275
275
|
return j.toFlatObject(e, a, function(c) {
|
|
276
276
|
return c !== Error.prototype;
|
|
277
277
|
}, (l) => l !== "isAxiosError"), F.call(a, e.message, r, o, n, t), a.cause = e, a.name = e.name, s && Object.assign(a, s), a;
|
|
@@ -291,7 +291,7 @@ function Be(e, r, o) {
|
|
|
291
291
|
function qt(e) {
|
|
292
292
|
return j.isArray(e) && !e.some(Ve);
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const Jt = j.toFlatObject(j, {}, null, function(r) {
|
|
295
295
|
return /^is[A-Z]/.test(r);
|
|
296
296
|
});
|
|
297
297
|
function ie(e, r, o) {
|
|
@@ -322,17 +322,17 @@ function ie(e, r, o) {
|
|
|
322
322
|
if (j.endsWith(T, "{}"))
|
|
323
323
|
T = n ? T : T.slice(0, -2), w = JSON.stringify(w);
|
|
324
324
|
else if (j.isArray(w) && qt(w) || (j.isFileList(w) || j.endsWith(T, "[]")) && (C = j.toArray(w)))
|
|
325
|
-
return T = We(T), C.forEach(function(
|
|
326
|
-
!(j.isUndefined(
|
|
325
|
+
return T = We(T), C.forEach(function(f, lt) {
|
|
326
|
+
!(j.isUndefined(f) || f === null) && r.append(
|
|
327
327
|
// eslint-disable-next-line no-nested-ternary
|
|
328
328
|
a === !0 ? Be([T], lt, s) : a === null ? T : T + "[]",
|
|
329
|
-
i(
|
|
329
|
+
i(f)
|
|
330
330
|
);
|
|
331
331
|
}), !1;
|
|
332
332
|
}
|
|
333
333
|
return Ve(w) ? !0 : (r.append(Be(U, T, s), i(w)), !1);
|
|
334
334
|
}
|
|
335
|
-
const d = [], h = Object.assign(
|
|
335
|
+
const d = [], h = Object.assign(Jt, {
|
|
336
336
|
defaultVisitor: p,
|
|
337
337
|
convertValue: i,
|
|
338
338
|
isVisitable: Ve
|
|
@@ -341,14 +341,14 @@ function ie(e, r, o) {
|
|
|
341
341
|
if (!j.isUndefined(w)) {
|
|
342
342
|
if (d.indexOf(w) !== -1)
|
|
343
343
|
throw Error("Circular reference detected in " + T.join("."));
|
|
344
|
-
d.push(w), j.forEach(w, function(C,
|
|
344
|
+
d.push(w), j.forEach(w, function(C, z) {
|
|
345
345
|
(!(j.isUndefined(C) || C === null) && t.call(
|
|
346
346
|
r,
|
|
347
347
|
C,
|
|
348
|
-
j.isString(
|
|
348
|
+
j.isString(z) ? z.trim() : z,
|
|
349
349
|
T,
|
|
350
350
|
h
|
|
351
|
-
)) === !0 && u(C, T ? T.concat(
|
|
351
|
+
)) === !0 && u(C, T ? T.concat(z) : [z]);
|
|
352
352
|
}), d.pop();
|
|
353
353
|
}
|
|
354
354
|
}
|
|
@@ -385,13 +385,13 @@ Xe.toString = function(r) {
|
|
|
385
385
|
return o(t[0]) + "=" + o(t[1]);
|
|
386
386
|
}, "").join("&");
|
|
387
387
|
};
|
|
388
|
-
function
|
|
388
|
+
function Kt(e) {
|
|
389
389
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
390
390
|
}
|
|
391
391
|
function Ye(e, r, o) {
|
|
392
392
|
if (!r)
|
|
393
393
|
return e;
|
|
394
|
-
const n = o && o.encode ||
|
|
394
|
+
const n = o && o.encode || Kt, t = o && o.serialize;
|
|
395
395
|
let s;
|
|
396
396
|
if (t ? s = t(r, o) : s = j.isURLSearchParams(r) ? r.toString() : new Ie(r, o).toString(n), s) {
|
|
397
397
|
const a = e.indexOf("#");
|
|
@@ -399,7 +399,7 @@ function Ye(e, r, o) {
|
|
|
399
399
|
}
|
|
400
400
|
return e;
|
|
401
401
|
}
|
|
402
|
-
class
|
|
402
|
+
class ft {
|
|
403
403
|
constructor() {
|
|
404
404
|
this.handlers = [];
|
|
405
405
|
}
|
|
@@ -453,7 +453,7 @@ class Kt {
|
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
const Ce =
|
|
456
|
+
const Ce = ft, Ze = {
|
|
457
457
|
silentJSONParsing: !0,
|
|
458
458
|
forcedJSONParsing: !0,
|
|
459
459
|
clarifyTimeoutError: !1
|
|
@@ -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" })), H = {
|
|
475
475
|
...tr,
|
|
476
476
|
...Zt
|
|
477
477
|
};
|
|
478
478
|
function rr(e, r) {
|
|
479
|
-
return ie(e, new
|
|
479
|
+
return ie(e, new H.classes.URLSearchParams(), Object.assign({
|
|
480
480
|
visitor: function(o, n, t, s) {
|
|
481
|
-
return
|
|
481
|
+
return H.isNode && j.isBuffer(o) ? (this.append(n, o.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: H.classes.FormData,
|
|
573
|
+
Blob: H.classes.Blob
|
|
574
574
|
},
|
|
575
575
|
validateStatus: function(r) {
|
|
576
576
|
return r >= 200 && r < 300;
|
|
@@ -796,7 +796,7 @@ function hr(e, r, o) {
|
|
|
796
796
|
o
|
|
797
797
|
));
|
|
798
798
|
}
|
|
799
|
-
const ur =
|
|
799
|
+
const ur = H.hasStandardBrowserEnv ? (
|
|
800
800
|
// Standard browser envs support document.cookie
|
|
801
801
|
{
|
|
802
802
|
write(e, r, o, 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 = H.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() {
|
|
@@ -864,11 +864,11 @@ const Vr = M.hasStandardBrowserEnv ? (
|
|
|
864
864
|
};
|
|
865
865
|
}()
|
|
866
866
|
);
|
|
867
|
-
function
|
|
867
|
+
function mr(e) {
|
|
868
868
|
const r = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
869
869
|
return r && r[1] || "";
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function Pr(e, r) {
|
|
872
872
|
e = e || 10;
|
|
873
873
|
const o = new Array(e), n = new Array(e);
|
|
874
874
|
let t = 0, s = 0, a;
|
|
@@ -886,7 +886,7 @@ function mr(e, r) {
|
|
|
886
886
|
}
|
|
887
887
|
function Ee(e, r) {
|
|
888
888
|
let o = 0;
|
|
889
|
-
const n =
|
|
889
|
+
const n = Pr(50, 250);
|
|
890
890
|
return (t) => {
|
|
891
891
|
const s = t.loaded, a = t.lengthComputable ? t.total : void 0, l = s - o, c = n(l), i = s <= a;
|
|
892
892
|
o = s;
|
|
@@ -912,7 +912,7 @@ const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
|
912
912
|
}
|
|
913
913
|
let p;
|
|
914
914
|
if (j.isFormData(t)) {
|
|
915
|
-
if (
|
|
915
|
+
if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv)
|
|
916
916
|
s.setContentType(!1);
|
|
917
917
|
else if ((p = s.getContentType()) !== !1) {
|
|
918
918
|
const [T, ...U] = p ? p.split(";").map((C) => C.trim()).filter(Boolean) : [];
|
|
@@ -939,10 +939,10 @@ const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
|
939
939
|
config: e,
|
|
940
940
|
request: d
|
|
941
941
|
};
|
|
942
|
-
hr(function(
|
|
943
|
-
o(
|
|
944
|
-
}, function(
|
|
945
|
-
n(
|
|
942
|
+
hr(function(f) {
|
|
943
|
+
o(f), i();
|
|
944
|
+
}, function(f) {
|
|
945
|
+
n(f), i();
|
|
946
946
|
}, C), d = null;
|
|
947
947
|
}
|
|
948
948
|
if ("onloadend" in d ? d.onloadend = u : d.onreadystatechange = function() {
|
|
@@ -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
|
+
}, H.hasStandardBrowserEnv && (l && j.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
|
}
|
|
@@ -969,18 +969,18 @@ const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
|
969
969
|
}), j.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), a && a !== "json" && (d.responseType = e.responseType), typeof e.onDownloadProgress == "function" && d.addEventListener("progress", Ee(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Ee(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (T) => {
|
|
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
|
-
const w =
|
|
973
|
-
if (w &&
|
|
972
|
+
const w = mr(h);
|
|
973
|
+
if (w && H.protocols.indexOf(w) === -1) {
|
|
974
974
|
n(new F("Unsupported protocol " + w + ":", F.ERR_BAD_REQUEST, e));
|
|
975
975
|
return;
|
|
976
976
|
}
|
|
977
977
|
d.send(t || null);
|
|
978
978
|
});
|
|
979
|
-
},
|
|
979
|
+
}, me = {
|
|
980
980
|
http: _t,
|
|
981
981
|
xhr: yr
|
|
982
982
|
};
|
|
983
|
-
j.forEach(
|
|
983
|
+
j.forEach(me, (e, r) => {
|
|
984
984
|
if (e) {
|
|
985
985
|
try {
|
|
986
986
|
Object.defineProperty(e, "name", { value: r });
|
|
@@ -998,7 +998,7 @@ const ze = (e) => `- ${e}`, Rr = (e) => j.isFunction(e) || e === null || e === !
|
|
|
998
998
|
for (let s = 0; s < r; s++) {
|
|
999
999
|
o = e[s];
|
|
1000
1000
|
let a;
|
|
1001
|
-
if (n = o, !Rr(o) && (n =
|
|
1001
|
+
if (n = o, !Rr(o) && (n = me[(a = String(o)).toLowerCase()], n === void 0))
|
|
1002
1002
|
throw new F(`Unknown adapter '${a}'`);
|
|
1003
1003
|
if (n)
|
|
1004
1004
|
break;
|
|
@@ -1018,13 +1018,13 @@ const ze = (e) => `- ${e}`, Rr = (e) => j.isFunction(e) || e === null || e === !
|
|
|
1018
1018
|
}
|
|
1019
1019
|
return n;
|
|
1020
1020
|
},
|
|
1021
|
-
adapters:
|
|
1021
|
+
adapters: me
|
|
1022
1022
|
};
|
|
1023
1023
|
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 = D.from(e.headers), e.data = ue.call(
|
|
1029
1029
|
e,
|
|
1030
1030
|
e.transformRequest
|
|
@@ -1042,7 +1042,7 @@ function He(e) {
|
|
|
1042
1042
|
), n.response.headers = D.from(n.response.headers))), Promise.reject(n);
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
|
-
const
|
|
1045
|
+
const He = (e) => e instanceof D ? e.toJSON() : e;
|
|
1046
1046
|
function X(e, r) {
|
|
1047
1047
|
r = r || {};
|
|
1048
1048
|
const o = {};
|
|
@@ -1102,7 +1102,7 @@ function X(e, r) {
|
|
|
1102
1102
|
socketPath: a,
|
|
1103
1103
|
responseEncoding: a,
|
|
1104
1104
|
validateStatus: l,
|
|
1105
|
-
headers: (i, p) => t(
|
|
1105
|
+
headers: (i, p) => t(He(i), He(p), !0)
|
|
1106
1106
|
};
|
|
1107
1107
|
return j.forEach(Object.keys(Object.assign({}, e, r)), function(p) {
|
|
1108
1108
|
const d = c[p] || t, h = d(e[p], r[p], p);
|
|
@@ -1151,10 +1151,10 @@ function jr(e, r, o) {
|
|
|
1151
1151
|
throw new F("Unknown option " + s, F.ERR_BAD_OPTION);
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
const
|
|
1154
|
+
const Pe = {
|
|
1155
1155
|
assertOptions: jr,
|
|
1156
1156
|
validators: Ue
|
|
1157
|
-
}, W =
|
|
1157
|
+
}, W = Pe.validators;
|
|
1158
1158
|
class oe {
|
|
1159
1159
|
constructor(r) {
|
|
1160
1160
|
this.defaults = r, this.interceptors = {
|
|
@@ -1173,13 +1173,13 @@ class oe {
|
|
|
1173
1173
|
request(r, o) {
|
|
1174
1174
|
typeof r == "string" ? (o = o || {}, o.url = r) : o = r || {}, o = X(this.defaults, o);
|
|
1175
1175
|
const { transitional: n, paramsSerializer: t, headers: s } = o;
|
|
1176
|
-
n !== void 0 &&
|
|
1176
|
+
n !== void 0 && Pe.assertOptions(n, {
|
|
1177
1177
|
silentJSONParsing: W.transitional(W.boolean),
|
|
1178
1178
|
forcedJSONParsing: W.transitional(W.boolean),
|
|
1179
1179
|
clarifyTimeoutError: W.transitional(W.boolean)
|
|
1180
1180
|
}, !1), t != null && (j.isFunction(t) ? o.paramsSerializer = {
|
|
1181
1181
|
serialize: t
|
|
1182
|
-
} :
|
|
1182
|
+
} : Pe.assertOptions(t, {
|
|
1183
1183
|
encode: W.function,
|
|
1184
1184
|
serialize: W.function
|
|
1185
1185
|
}, !0)), o.method = (o.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -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(o); 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, u);
|
|
1225
1225
|
} catch (w) {
|
|
1226
1226
|
return Promise.reject(w);
|
|
1227
1227
|
}
|
|
@@ -1432,16 +1432,16 @@ E.formToJSON = (e) => et(j.isHTMLForm(e) ? new FormData(e) : e);
|
|
|
1432
1432
|
E.getAdapter = st.getAdapter;
|
|
1433
1433
|
E.HttpStatusCode = Ur;
|
|
1434
1434
|
E.default = E;
|
|
1435
|
-
const O = E, A = "https://d-
|
|
1435
|
+
const O = E, A = "https://d-sp28.devlef.campus.rwth-aachen.de/coscine".replace(/\/+$/, "");
|
|
1436
1436
|
class vr extends Error {
|
|
1437
1437
|
constructor(r, o) {
|
|
1438
1438
|
super(o), this.field = r, this.name = "RequiredError";
|
|
1439
1439
|
}
|
|
1440
1440
|
}
|
|
1441
|
-
const V = {},
|
|
1441
|
+
const V = {}, m = "https://example.com", I = function(e, r, o) {
|
|
1442
1442
|
if (o == null)
|
|
1443
1443
|
throw new vr(r, `Required parameter ${r} was null or undefined when calling ${e}.`);
|
|
1444
|
-
},
|
|
1444
|
+
}, P = async function(e, r, o) {
|
|
1445
1445
|
if (o && o.apiKey) {
|
|
1446
1446
|
const n = typeof o.apiKey == "function" ? await o.apiKey(r) : await o.apiKey;
|
|
1447
1447
|
e[r] = n;
|
|
@@ -1474,11 +1474,11 @@ const b = function(e, ...r) {
|
|
|
1474
1474
|
* @throws {RequiredError}
|
|
1475
1475
|
*/
|
|
1476
1476
|
apiV2AdminOptions: async (r = {}) => {
|
|
1477
|
-
const o = "/api/v2/admin", n = new URL(o,
|
|
1477
|
+
const o = "/api/v2/admin", n = new URL(o, m);
|
|
1478
1478
|
let t;
|
|
1479
1479
|
e && (t = e.baseOptions);
|
|
1480
1480
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
1481
|
-
await
|
|
1481
|
+
await P(a, "Authorization", e), b(n, l);
|
|
1482
1482
|
let c = t && t.headers ? t.headers : {};
|
|
1483
1483
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
1484
1484
|
url: y(n),
|
|
@@ -1501,11 +1501,11 @@ const b = function(e, ...r) {
|
|
|
1501
1501
|
* @throws {RequiredError}
|
|
1502
1502
|
*/
|
|
1503
1503
|
getAllActivityLogs: async (r, o, n, t, s, a, l, c, i, p = {}) => {
|
|
1504
|
-
const d = "/api/v2/admin/activity-logs", h = new URL(d,
|
|
1504
|
+
const d = "/api/v2/admin/activity-logs", h = new URL(d, m);
|
|
1505
1505
|
let u;
|
|
1506
1506
|
e && (u = e.baseOptions);
|
|
1507
1507
|
const w = { method: "GET", ...u, ...p }, T = {}, U = {};
|
|
1508
|
-
await
|
|
1508
|
+
await P(T, "Authorization", e), r !== void 0 && (U.ActivityTimestampBefore = r instanceof Date ? r.toISOString() : r), o !== void 0 && (U.ActivityTimestampAfter = o instanceof Date ? o.toISOString() : o), n !== void 0 && (U.Guid = n), t !== void 0 && (U.UserId = t), s !== void 0 && (U.RegularExpression = s), a !== void 0 && (U.HttpMethod = a), l !== void 0 && (U.PageNumber = l), c !== void 0 && (U.PageSize = c), i !== void 0 && (U.OrderBy = i), b(h, U);
|
|
1509
1509
|
let C = u && u.headers ? u.headers : {};
|
|
1510
1510
|
return w.headers = { ...T, ...C, ...p.headers }, {
|
|
1511
1511
|
url: y(h),
|
|
@@ -1525,11 +1525,11 @@ const b = function(e, ...r) {
|
|
|
1525
1525
|
* @throws {RequiredError}
|
|
1526
1526
|
*/
|
|
1527
1527
|
getAllProjects: async (r, o, n, t, s, a, l = {}) => {
|
|
1528
|
-
const c = "/api/v2/admin/projects", i = new URL(c,
|
|
1528
|
+
const c = "/api/v2/admin/projects", i = new URL(c, m);
|
|
1529
1529
|
let p;
|
|
1530
1530
|
e && (p = e.baseOptions);
|
|
1531
1531
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
1532
|
-
await
|
|
1532
|
+
await P(h, "Authorization", e), r !== void 0 && (u.TopLevel = r), o !== void 0 && (u.IncludeDeleted = o), n !== void 0 && (u.IncludeQuotas = n), t !== void 0 && (u.PageSize = t), s !== void 0 && (u.PageNumber = s), a !== void 0 && (u.OrderBy = a), b(i, u);
|
|
1533
1533
|
let w = p && p.headers ? p.headers : {};
|
|
1534
1534
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
1535
1535
|
url: y(i),
|
|
@@ -1548,11 +1548,11 @@ const b = function(e, ...r) {
|
|
|
1548
1548
|
* @throws {RequiredError}
|
|
1549
1549
|
*/
|
|
1550
1550
|
getAllResources: async (r, o, n, t, s, a = {}) => {
|
|
1551
|
-
const l = "/api/v2/admin/resources", c = new URL(l,
|
|
1551
|
+
const l = "/api/v2/admin/resources", c = new URL(l, m);
|
|
1552
1552
|
let i;
|
|
1553
1553
|
e && (i = e.baseOptions);
|
|
1554
1554
|
const p = { method: "GET", ...i, ...a }, d = {}, h = {};
|
|
1555
|
-
await
|
|
1555
|
+
await P(d, "Authorization", e), r !== void 0 && (h.IncludeDeleted = r), o !== void 0 && (h.IncludeQuotas = o), n !== void 0 && (h.PageSize = n), t !== void 0 && (h.PageNumber = t), s !== void 0 && (h.OrderBy = s), b(c, h);
|
|
1556
1556
|
let u = i && i.headers ? i.headers : {};
|
|
1557
1557
|
return p.headers = { ...d, ...u, ...a.headers }, {
|
|
1558
1558
|
url: y(c),
|
|
@@ -1570,17 +1570,38 @@ const b = function(e, ...r) {
|
|
|
1570
1570
|
* @throws {RequiredError}
|
|
1571
1571
|
*/
|
|
1572
1572
|
getAllUsers: async (r, o, n, t, s = {}) => {
|
|
1573
|
-
const a = "/api/v2/admin/users", l = new URL(a,
|
|
1573
|
+
const a = "/api/v2/admin/users", l = new URL(a, m);
|
|
1574
1574
|
let c;
|
|
1575
1575
|
e && (c = e.baseOptions);
|
|
1576
1576
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
1577
|
-
await
|
|
1577
|
+
await P(p, "Authorization", e), r !== void 0 && (d.TosAccepted = r), o !== void 0 && (d.PageSize = o), n !== void 0 && (d.PageNumber = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
1578
1578
|
let h = c && c.headers ? c.headers : {};
|
|
1579
1579
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
1580
1580
|
url: y(l),
|
|
1581
1581
|
options: i
|
|
1582
1582
|
};
|
|
1583
1583
|
},
|
|
1584
|
+
/**
|
|
1585
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
1586
|
+
* @summary Gets all deployed graphs.
|
|
1587
|
+
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
1588
|
+
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
1589
|
+
* @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.
|
|
1590
|
+
* @param {*} [options] Override http request option.
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
*/
|
|
1593
|
+
getDeployedGraphs: async (r, o, n, t = {}) => {
|
|
1594
|
+
const s = "/api/v2/admin/graphs", a = new URL(s, m);
|
|
1595
|
+
let l;
|
|
1596
|
+
e && (l = e.baseOptions);
|
|
1597
|
+
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
1598
|
+
await P(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
1599
|
+
let d = l && l.headers ? l.headers : {};
|
|
1600
|
+
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
1601
|
+
url: y(a),
|
|
1602
|
+
options: c
|
|
1603
|
+
};
|
|
1604
|
+
},
|
|
1584
1605
|
/**
|
|
1585
1606
|
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
1586
1607
|
* @summary Gets a metadata graph.
|
|
@@ -1591,11 +1612,11 @@ const b = function(e, ...r) {
|
|
|
1591
1612
|
*/
|
|
1592
1613
|
getMetadataGraph: async (r, o, n = {}) => {
|
|
1593
1614
|
I("getMetadataGraph", "graph", r);
|
|
1594
|
-
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t,
|
|
1615
|
+
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
1595
1616
|
let a;
|
|
1596
1617
|
e && (a = e.baseOptions);
|
|
1597
1618
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
1598
|
-
await
|
|
1619
|
+
await P(c, "Authorization", e), o !== void 0 && (i.Format = o), b(s, i);
|
|
1599
1620
|
let p = a && a.headers ? a.headers : {};
|
|
1600
1621
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
1601
1622
|
url: y(s),
|
|
@@ -1612,11 +1633,11 @@ const b = function(e, ...r) {
|
|
|
1612
1633
|
*/
|
|
1613
1634
|
patchMetadata: async (r, o, n = {}) => {
|
|
1614
1635
|
I("patchMetadata", "graph", r);
|
|
1615
|
-
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t,
|
|
1636
|
+
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
1616
1637
|
let a;
|
|
1617
1638
|
e && (a = e.baseOptions);
|
|
1618
1639
|
const l = { method: "PATCH", ...a, ...n }, c = {}, i = {};
|
|
1619
|
-
await
|
|
1640
|
+
await P(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
1620
1641
|
let p = a && a.headers ? a.headers : {};
|
|
1621
1642
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
1622
1643
|
url: y(s),
|
|
@@ -1633,11 +1654,11 @@ const b = function(e, ...r) {
|
|
|
1633
1654
|
*/
|
|
1634
1655
|
updateMetadataGraph: async (r, o, n = {}) => {
|
|
1635
1656
|
I("updateMetadataGraph", "graph", r);
|
|
1636
|
-
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t,
|
|
1657
|
+
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
1637
1658
|
let a;
|
|
1638
1659
|
e && (a = e.baseOptions);
|
|
1639
1660
|
const l = { method: "PUT", ...a, ...n }, c = {}, i = {};
|
|
1640
|
-
await
|
|
1661
|
+
await P(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
1641
1662
|
let p = a && a.headers ? a.headers : {};
|
|
1642
1663
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
1643
1664
|
url: y(s),
|
|
@@ -1677,7 +1698,7 @@ const b = function(e, ...r) {
|
|
|
1677
1698
|
async getAllActivityLogs(o, n, t, s, a, l, c, i, p, d) {
|
|
1678
1699
|
var T, U;
|
|
1679
1700
|
const h = await r.getAllActivityLogs(o, n, t, s, a, l, c, i, p, d), u = (e == null ? void 0 : e.serverIndex) ?? 0, w = (U = (T = V["AdminApi.getAllActivityLogs"]) == null ? void 0 : T[u]) == null ? void 0 : U.url;
|
|
1680
|
-
return (C,
|
|
1701
|
+
return (C, z) => R(h, O, A, e)(C, w || z);
|
|
1681
1702
|
},
|
|
1682
1703
|
/**
|
|
1683
1704
|
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
@@ -1727,6 +1748,20 @@ const b = function(e, ...r) {
|
|
|
1727
1748
|
const l = await r.getAllUsers(o, n, t, s, a), c = (e == null ? void 0 : e.serverIndex) ?? 0, i = (d = (p = V["AdminApi.getAllUsers"]) == null ? void 0 : p[c]) == null ? void 0 : d.url;
|
|
1728
1749
|
return (h, u) => R(l, O, A, e)(h, i || u);
|
|
1729
1750
|
},
|
|
1751
|
+
/**
|
|
1752
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
1753
|
+
* @summary Gets all deployed graphs.
|
|
1754
|
+
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
1755
|
+
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
1756
|
+
* @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.
|
|
1757
|
+
* @param {*} [options] Override http request option.
|
|
1758
|
+
* @throws {RequiredError}
|
|
1759
|
+
*/
|
|
1760
|
+
async getDeployedGraphs(o, n, t, s) {
|
|
1761
|
+
var i, p;
|
|
1762
|
+
const a = await r.getDeployedGraphs(o, n, t, s), l = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (i = V["AdminApi.getDeployedGraphs"]) == null ? void 0 : i[l]) == null ? void 0 : p.url;
|
|
1763
|
+
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
1764
|
+
},
|
|
1730
1765
|
/**
|
|
1731
1766
|
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
1732
1767
|
* @summary Gets a metadata graph.
|
|
@@ -1819,6 +1854,16 @@ const b = function(e, ...r) {
|
|
|
1819
1854
|
getAllUsers(t = {}, s) {
|
|
1820
1855
|
return n.getAllUsers(t.tosAccepted, t.pageSize, t.pageNumber, t.orderBy, s).then((a) => a(o, r));
|
|
1821
1856
|
},
|
|
1857
|
+
/**
|
|
1858
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
1859
|
+
* @summary Gets all deployed graphs.
|
|
1860
|
+
* @param {AdminApiGetDeployedGraphsRequest} requestParameters Request parameters.
|
|
1861
|
+
* @param {*} [options] Override http request option.
|
|
1862
|
+
* @throws {RequiredError}
|
|
1863
|
+
*/
|
|
1864
|
+
getDeployedGraphs(t = {}, s) {
|
|
1865
|
+
return n.getDeployedGraphs(t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
1866
|
+
},
|
|
1822
1867
|
/**
|
|
1823
1868
|
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
1824
1869
|
* @summary Gets a metadata graph.
|
|
@@ -1859,11 +1904,11 @@ const b = function(e, ...r) {
|
|
|
1859
1904
|
* @throws {RequiredError}
|
|
1860
1905
|
*/
|
|
1861
1906
|
apiV2ApplicationProfilesOptions: async (r = {}) => {
|
|
1862
|
-
const o = "/api/v2/application-profiles", n = new URL(o,
|
|
1907
|
+
const o = "/api/v2/application-profiles", n = new URL(o, m);
|
|
1863
1908
|
let t;
|
|
1864
1909
|
e && (t = e.baseOptions);
|
|
1865
1910
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
1866
|
-
await
|
|
1911
|
+
await P(a, "Authorization", e), b(n, l);
|
|
1867
1912
|
let c = t && t.headers ? t.headers : {};
|
|
1868
1913
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
1869
1914
|
url: y(n),
|
|
@@ -1871,18 +1916,18 @@ const b = function(e, ...r) {
|
|
|
1871
1916
|
};
|
|
1872
1917
|
},
|
|
1873
1918
|
/**
|
|
1874
|
-
*
|
|
1919
|
+
*
|
|
1875
1920
|
* @summary Submits a request to create a new application profile.
|
|
1876
1921
|
* @param {ApplicationProfileForCreationDto} [applicationProfileForCreationDto] The details required to create a new application profile.
|
|
1877
1922
|
* @param {*} [options] Override http request option.
|
|
1878
1923
|
* @throws {RequiredError}
|
|
1879
1924
|
*/
|
|
1880
1925
|
createApplicationProfileRequest: async (r, o = {}) => {
|
|
1881
|
-
const n = "/api/v2/application-profiles/requests", t = new URL(n,
|
|
1926
|
+
const n = "/api/v2/application-profiles/requests", t = new URL(n, m);
|
|
1882
1927
|
let s;
|
|
1883
1928
|
e && (s = e.baseOptions);
|
|
1884
1929
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
1885
|
-
await
|
|
1930
|
+
await P(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
1886
1931
|
let i = s && s.headers ? s.headers : {};
|
|
1887
1932
|
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
1888
1933
|
url: y(t),
|
|
@@ -1890,7 +1935,7 @@ const b = function(e, ...r) {
|
|
|
1890
1935
|
};
|
|
1891
1936
|
},
|
|
1892
1937
|
/**
|
|
1893
|
-
*
|
|
1938
|
+
*
|
|
1894
1939
|
* @summary Retrieves an application profile by its URI.
|
|
1895
1940
|
* @param {string} profile The URI of the application profile to retrieve.
|
|
1896
1941
|
* @param {RdfFormat} [format] The desired data format for the returned application profile.
|
|
@@ -1900,11 +1945,11 @@ const b = function(e, ...r) {
|
|
|
1900
1945
|
*/
|
|
1901
1946
|
getApplicationProfile: async (r, o, n, t = {}) => {
|
|
1902
1947
|
I("getApplicationProfile", "profile", r);
|
|
1903
|
-
const s = "/api/v2/application-profiles/profiles/{profile}".replace("{profile}", encodeURIComponent(String(r))), a = new URL(s,
|
|
1948
|
+
const s = "/api/v2/application-profiles/profiles/{profile}".replace("{profile}", encodeURIComponent(String(r))), a = new URL(s, m);
|
|
1904
1949
|
let l;
|
|
1905
1950
|
e && (l = e.baseOptions);
|
|
1906
1951
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
1907
|
-
await
|
|
1952
|
+
await P(i, "Authorization", e), o !== void 0 && (p.format = o), n != null && (i["Accept-Language"] = typeof n == "string" ? n : JSON.stringify(n)), b(a, p);
|
|
1908
1953
|
let d = l && l.headers ? l.headers : {};
|
|
1909
1954
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
1910
1955
|
url: y(a),
|
|
@@ -1912,7 +1957,7 @@ const b = function(e, ...r) {
|
|
|
1912
1957
|
};
|
|
1913
1958
|
},
|
|
1914
1959
|
/**
|
|
1915
|
-
*
|
|
1960
|
+
*
|
|
1916
1961
|
* @summary Retrieves all application profiles.
|
|
1917
1962
|
* @param {string} [searchTerm] Gets or sets the search term used to filter application profiles.
|
|
1918
1963
|
* @param {AcceptedLanguage} [language] Gets or sets the language for which the application profiles are requested.
|
|
@@ -1924,11 +1969,11 @@ const b = function(e, ...r) {
|
|
|
1924
1969
|
* @throws {RequiredError}
|
|
1925
1970
|
*/
|
|
1926
1971
|
getApplicationProfiles: async (r, o, n, t, s, a, l = {}) => {
|
|
1927
|
-
const c = "/api/v2/application-profiles/profiles", i = new URL(c,
|
|
1972
|
+
const c = "/api/v2/application-profiles/profiles", i = new URL(c, m);
|
|
1928
1973
|
let p;
|
|
1929
1974
|
e && (p = e.baseOptions);
|
|
1930
1975
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
1931
|
-
await
|
|
1976
|
+
await P(h, "Authorization", e), r !== void 0 && (u.SearchTerm = r), o !== void 0 && (u.Language = o), n !== void 0 && (u.Modules = n), t !== void 0 && (u.PageNumber = t), s !== void 0 && (u.PageSize = s), a !== void 0 && (u.OrderBy = a), b(i, u);
|
|
1932
1977
|
let w = p && p.headers ? p.headers : {};
|
|
1933
1978
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
1934
1979
|
url: y(i),
|
|
@@ -1936,7 +1981,7 @@ const b = function(e, ...r) {
|
|
|
1936
1981
|
};
|
|
1937
1982
|
},
|
|
1938
1983
|
/**
|
|
1939
|
-
*
|
|
1984
|
+
*
|
|
1940
1985
|
* @summary Retrieves the `raw` application profile definition by its URI.
|
|
1941
1986
|
* @param {string} profile The URI of the application profile.
|
|
1942
1987
|
* @param {*} [options] Override http request option.
|
|
@@ -1944,11 +1989,11 @@ const b = function(e, ...r) {
|
|
|
1944
1989
|
*/
|
|
1945
1990
|
getRawApplicationProfile: async (r, o = {}) => {
|
|
1946
1991
|
I("getRawApplicationProfile", "profile", r);
|
|
1947
|
-
const n = "/api/v2/application-profiles/profiles/{profile}/raw".replace("{profile}", encodeURIComponent(String(r))), t = new URL(n,
|
|
1992
|
+
const n = "/api/v2/application-profiles/profiles/{profile}/raw".replace("{profile}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
1948
1993
|
let s;
|
|
1949
1994
|
e && (s = e.baseOptions);
|
|
1950
1995
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
1951
|
-
await
|
|
1996
|
+
await P(l, "Authorization", e), b(t, c);
|
|
1952
1997
|
let i = s && s.headers ? s.headers : {};
|
|
1953
1998
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
1954
1999
|
url: y(t),
|
|
@@ -1971,7 +2016,7 @@ const b = function(e, ...r) {
|
|
|
1971
2016
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
1972
2017
|
},
|
|
1973
2018
|
/**
|
|
1974
|
-
*
|
|
2019
|
+
*
|
|
1975
2020
|
* @summary Submits a request to create a new application profile.
|
|
1976
2021
|
* @param {ApplicationProfileForCreationDto} [applicationProfileForCreationDto] The details required to create a new application profile.
|
|
1977
2022
|
* @param {*} [options] Override http request option.
|
|
@@ -1983,7 +2028,7 @@ const b = function(e, ...r) {
|
|
|
1983
2028
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
1984
2029
|
},
|
|
1985
2030
|
/**
|
|
1986
|
-
*
|
|
2031
|
+
*
|
|
1987
2032
|
* @summary Retrieves an application profile by its URI.
|
|
1988
2033
|
* @param {string} profile The URI of the application profile to retrieve.
|
|
1989
2034
|
* @param {RdfFormat} [format] The desired data format for the returned application profile.
|
|
@@ -1997,7 +2042,7 @@ const b = function(e, ...r) {
|
|
|
1997
2042
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
1998
2043
|
},
|
|
1999
2044
|
/**
|
|
2000
|
-
*
|
|
2045
|
+
*
|
|
2001
2046
|
* @summary Retrieves all application profiles.
|
|
2002
2047
|
* @param {string} [searchTerm] Gets or sets the search term used to filter application profiles.
|
|
2003
2048
|
* @param {AcceptedLanguage} [language] Gets or sets the language for which the application profiles are requested.
|
|
@@ -2014,7 +2059,7 @@ const b = function(e, ...r) {
|
|
|
2014
2059
|
return (w, T) => R(i, O, A, e)(w, d || T);
|
|
2015
2060
|
},
|
|
2016
2061
|
/**
|
|
2017
|
-
*
|
|
2062
|
+
*
|
|
2018
2063
|
* @summary Retrieves the `raw` application profile definition by its URI.
|
|
2019
2064
|
* @param {string} profile The URI of the application profile.
|
|
2020
2065
|
* @param {*} [options] Override http request option.
|
|
@@ -2039,7 +2084,7 @@ const b = function(e, ...r) {
|
|
|
2039
2084
|
return n.apiV2ApplicationProfilesOptions(t).then((s) => s(o, r));
|
|
2040
2085
|
},
|
|
2041
2086
|
/**
|
|
2042
|
-
*
|
|
2087
|
+
*
|
|
2043
2088
|
* @summary Submits a request to create a new application profile.
|
|
2044
2089
|
* @param {ApplicationProfileApiCreateApplicationProfileRequestRequest} requestParameters Request parameters.
|
|
2045
2090
|
* @param {*} [options] Override http request option.
|
|
@@ -2049,7 +2094,7 @@ const b = function(e, ...r) {
|
|
|
2049
2094
|
return n.createApplicationProfileRequest(t.applicationProfileForCreationDto, s).then((a) => a(o, r));
|
|
2050
2095
|
},
|
|
2051
2096
|
/**
|
|
2052
|
-
*
|
|
2097
|
+
*
|
|
2053
2098
|
* @summary Retrieves an application profile by its URI.
|
|
2054
2099
|
* @param {ApplicationProfileApiGetApplicationProfileRequest} requestParameters Request parameters.
|
|
2055
2100
|
* @param {*} [options] Override http request option.
|
|
@@ -2059,7 +2104,7 @@ const b = function(e, ...r) {
|
|
|
2059
2104
|
return n.getApplicationProfile(t.profile, t.format, t.acceptLanguage, s).then((a) => a(o, r));
|
|
2060
2105
|
},
|
|
2061
2106
|
/**
|
|
2062
|
-
*
|
|
2107
|
+
*
|
|
2063
2108
|
* @summary Retrieves all application profiles.
|
|
2064
2109
|
* @param {ApplicationProfileApiGetApplicationProfilesRequest} requestParameters Request parameters.
|
|
2065
2110
|
* @param {*} [options] Override http request option.
|
|
@@ -2069,7 +2114,7 @@ const b = function(e, ...r) {
|
|
|
2069
2114
|
return n.getApplicationProfiles(t.searchTerm, t.language, t.modules, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
2070
2115
|
},
|
|
2071
2116
|
/**
|
|
2072
|
-
*
|
|
2117
|
+
*
|
|
2073
2118
|
* @summary Retrieves the `raw` application profile definition by its URI.
|
|
2074
2119
|
* @param {ApplicationProfileApiGetRawApplicationProfileRequest} requestParameters Request parameters.
|
|
2075
2120
|
* @param {*} [options] Override http request option.
|
|
@@ -2091,11 +2136,11 @@ const b = function(e, ...r) {
|
|
|
2091
2136
|
*/
|
|
2092
2137
|
apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions: async (r, o, n = {}) => {
|
|
2093
2138
|
I("apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions", "projectId", r), I("apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions", "resourceId", o);
|
|
2094
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
2139
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
2095
2140
|
let a;
|
|
2096
2141
|
e && (a = e.baseOptions);
|
|
2097
2142
|
const l = { method: "OPTIONS", ...a, ...n }, c = {}, i = {};
|
|
2098
|
-
await
|
|
2143
|
+
await P(c, "Authorization", e), b(s, i);
|
|
2099
2144
|
let p = a && a.headers ? a.headers : {};
|
|
2100
2145
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2101
2146
|
url: y(s),
|
|
@@ -2103,7 +2148,7 @@ const b = function(e, ...r) {
|
|
|
2103
2148
|
};
|
|
2104
2149
|
},
|
|
2105
2150
|
/**
|
|
2106
|
-
*
|
|
2151
|
+
*
|
|
2107
2152
|
* @summary Creates a new blob for a resource.
|
|
2108
2153
|
* @param {string} projectId The identifier or slug of the project.
|
|
2109
2154
|
* @param {string} resourceId The identifier of the resource.
|
|
@@ -2114,11 +2159,11 @@ const b = function(e, ...r) {
|
|
|
2114
2159
|
*/
|
|
2115
2160
|
createBlob: async (r, o, n, t, s = {}) => {
|
|
2116
2161
|
I("createBlob", "projectId", r), I("createBlob", "resourceId", o), I("createBlob", "key", n);
|
|
2117
|
-
const a = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))).replace("{key}", encodeURIComponent(String(n))), l = new URL(a,
|
|
2162
|
+
const a = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))).replace("{key}", encodeURIComponent(String(n))), l = new URL(a, m);
|
|
2118
2163
|
let c;
|
|
2119
2164
|
e && (c = e.baseOptions);
|
|
2120
2165
|
const i = { method: "POST", ...c, ...s }, p = {}, d = {}, h = new (e && e.formDataCtor || FormData)();
|
|
2121
|
-
await
|
|
2166
|
+
await P(p, "Authorization", e), t !== void 0 && h.append("file", t), p["Content-Type"] = "multipart/form-data", b(l, d);
|
|
2122
2167
|
let u = c && c.headers ? c.headers : {};
|
|
2123
2168
|
return i.headers = { ...p, ...u, ...s.headers }, i.data = h, {
|
|
2124
2169
|
url: y(l),
|
|
@@ -2126,7 +2171,7 @@ const b = function(e, ...r) {
|
|
|
2126
2171
|
};
|
|
2127
2172
|
},
|
|
2128
2173
|
/**
|
|
2129
|
-
*
|
|
2174
|
+
*
|
|
2130
2175
|
* @summary Deletes a blob from a resource.
|
|
2131
2176
|
* @param {string} projectId The identifier or slug of the project.
|
|
2132
2177
|
* @param {string} resourceId The identifier of the resource.
|
|
@@ -2136,11 +2181,11 @@ const b = function(e, ...r) {
|
|
|
2136
2181
|
*/
|
|
2137
2182
|
deleteBlob: async (r, o, n, t = {}) => {
|
|
2138
2183
|
I("deleteBlob", "projectId", r), I("deleteBlob", "resourceId", o), I("deleteBlob", "key", n);
|
|
2139
|
-
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))).replace("{key}", encodeURIComponent(String(n))), a = new URL(s,
|
|
2184
|
+
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))).replace("{key}", encodeURIComponent(String(n))), a = new URL(s, m);
|
|
2140
2185
|
let l;
|
|
2141
2186
|
e && (l = e.baseOptions);
|
|
2142
2187
|
const c = { method: "DELETE", ...l, ...t }, i = {}, p = {};
|
|
2143
|
-
await
|
|
2188
|
+
await P(i, "Authorization", e), b(a, p);
|
|
2144
2189
|
let d = l && l.headers ? l.headers : {};
|
|
2145
2190
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2146
2191
|
url: y(a),
|
|
@@ -2148,7 +2193,7 @@ const b = function(e, ...r) {
|
|
|
2148
2193
|
};
|
|
2149
2194
|
},
|
|
2150
2195
|
/**
|
|
2151
|
-
*
|
|
2196
|
+
*
|
|
2152
2197
|
* @summary Download a blob from a resource.
|
|
2153
2198
|
* @param {string} projectId The identifier or slug of the project.
|
|
2154
2199
|
* @param {string} resourceId The identifier of the resource.
|
|
@@ -2158,11 +2203,11 @@ const b = function(e, ...r) {
|
|
|
2158
2203
|
*/
|
|
2159
2204
|
getBlob: async (r, o, n, t = {}) => {
|
|
2160
2205
|
I("getBlob", "projectId", r), I("getBlob", "resourceId", o), I("getBlob", "key", n);
|
|
2161
|
-
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))).replace("{key}", encodeURIComponent(String(n))), a = new URL(s,
|
|
2206
|
+
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))).replace("{key}", encodeURIComponent(String(n))), a = new URL(s, m);
|
|
2162
2207
|
let l;
|
|
2163
2208
|
e && (l = e.baseOptions);
|
|
2164
2209
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
2165
|
-
await
|
|
2210
|
+
await P(i, "Authorization", e), b(a, p);
|
|
2166
2211
|
let d = l && l.headers ? l.headers : {};
|
|
2167
2212
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2168
2213
|
url: y(a),
|
|
@@ -2170,7 +2215,7 @@ const b = function(e, ...r) {
|
|
|
2170
2215
|
};
|
|
2171
2216
|
},
|
|
2172
2217
|
/**
|
|
2173
|
-
*
|
|
2218
|
+
*
|
|
2174
2219
|
* @summary Updates an existing blob of a resource.
|
|
2175
2220
|
* @param {string} projectId The identifier or slug of the project.
|
|
2176
2221
|
* @param {string} resourceId The identifier of the resource.
|
|
@@ -2181,11 +2226,11 @@ const b = function(e, ...r) {
|
|
|
2181
2226
|
*/
|
|
2182
2227
|
updateBlob: async (r, o, n, t, s = {}) => {
|
|
2183
2228
|
I("updateBlob", "projectId", r), I("updateBlob", "resourceId", o), I("updateBlob", "key", n);
|
|
2184
|
-
const a = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))).replace("{key}", encodeURIComponent(String(n))), l = new URL(a,
|
|
2229
|
+
const a = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs/{key}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))).replace("{key}", encodeURIComponent(String(n))), l = new URL(a, m);
|
|
2185
2230
|
let c;
|
|
2186
2231
|
e && (c = e.baseOptions);
|
|
2187
2232
|
const i = { method: "PUT", ...c, ...s }, p = {}, d = {}, h = new (e && e.formDataCtor || FormData)();
|
|
2188
|
-
await
|
|
2233
|
+
await P(p, "Authorization", e), t !== void 0 && h.append("file", t), p["Content-Type"] = "multipart/form-data", b(l, d);
|
|
2189
2234
|
let u = c && c.headers ? c.headers : {};
|
|
2190
2235
|
return i.headers = { ...p, ...u, ...s.headers }, i.data = h, {
|
|
2191
2236
|
url: y(l),
|
|
@@ -2210,7 +2255,7 @@ const b = function(e, ...r) {
|
|
|
2210
2255
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
2211
2256
|
},
|
|
2212
2257
|
/**
|
|
2213
|
-
*
|
|
2258
|
+
*
|
|
2214
2259
|
* @summary Creates a new blob for a resource.
|
|
2215
2260
|
* @param {string} projectId The identifier or slug of the project.
|
|
2216
2261
|
* @param {string} resourceId The identifier of the resource.
|
|
@@ -2225,7 +2270,7 @@ const b = function(e, ...r) {
|
|
|
2225
2270
|
return (h, u) => R(l, O, A, e)(h, i || u);
|
|
2226
2271
|
},
|
|
2227
2272
|
/**
|
|
2228
|
-
*
|
|
2273
|
+
*
|
|
2229
2274
|
* @summary Deletes a blob from a resource.
|
|
2230
2275
|
* @param {string} projectId The identifier or slug of the project.
|
|
2231
2276
|
* @param {string} resourceId The identifier of the resource.
|
|
@@ -2239,7 +2284,7 @@ const b = function(e, ...r) {
|
|
|
2239
2284
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
2240
2285
|
},
|
|
2241
2286
|
/**
|
|
2242
|
-
*
|
|
2287
|
+
*
|
|
2243
2288
|
* @summary Download a blob from a resource.
|
|
2244
2289
|
* @param {string} projectId The identifier or slug of the project.
|
|
2245
2290
|
* @param {string} resourceId The identifier of the resource.
|
|
@@ -2253,7 +2298,7 @@ const b = function(e, ...r) {
|
|
|
2253
2298
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
2254
2299
|
},
|
|
2255
2300
|
/**
|
|
2256
|
-
*
|
|
2301
|
+
*
|
|
2257
2302
|
* @summary Updates an existing blob of a resource.
|
|
2258
2303
|
* @param {string} projectId The identifier or slug of the project.
|
|
2259
2304
|
* @param {string} resourceId The identifier of the resource.
|
|
@@ -2268,7 +2313,7 @@ const b = function(e, ...r) {
|
|
|
2268
2313
|
return (h, u) => R(l, O, A, e)(h, i || u);
|
|
2269
2314
|
}
|
|
2270
2315
|
};
|
|
2271
|
-
},
|
|
2316
|
+
}, Mr = function(e, r, o) {
|
|
2272
2317
|
const n = zr(e);
|
|
2273
2318
|
return {
|
|
2274
2319
|
/**
|
|
@@ -2282,7 +2327,7 @@ const b = function(e, ...r) {
|
|
|
2282
2327
|
return n.apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions(t.projectId, t.resourceId, s).then((a) => a(o, r));
|
|
2283
2328
|
},
|
|
2284
2329
|
/**
|
|
2285
|
-
*
|
|
2330
|
+
*
|
|
2286
2331
|
* @summary Creates a new blob for a resource.
|
|
2287
2332
|
* @param {BlobApiCreateBlobRequest} requestParameters Request parameters.
|
|
2288
2333
|
* @param {*} [options] Override http request option.
|
|
@@ -2292,7 +2337,7 @@ const b = function(e, ...r) {
|
|
|
2292
2337
|
return n.createBlob(t.projectId, t.resourceId, t.key, t.file, s).then((a) => a(o, r));
|
|
2293
2338
|
},
|
|
2294
2339
|
/**
|
|
2295
|
-
*
|
|
2340
|
+
*
|
|
2296
2341
|
* @summary Deletes a blob from a resource.
|
|
2297
2342
|
* @param {BlobApiDeleteBlobRequest} requestParameters Request parameters.
|
|
2298
2343
|
* @param {*} [options] Override http request option.
|
|
@@ -2302,7 +2347,7 @@ const b = function(e, ...r) {
|
|
|
2302
2347
|
return n.deleteBlob(t.projectId, t.resourceId, t.key, s).then((a) => a(o, r));
|
|
2303
2348
|
},
|
|
2304
2349
|
/**
|
|
2305
|
-
*
|
|
2350
|
+
*
|
|
2306
2351
|
* @summary Download a blob from a resource.
|
|
2307
2352
|
* @param {BlobApiGetBlobRequest} requestParameters Request parameters.
|
|
2308
2353
|
* @param {*} [options] Override http request option.
|
|
@@ -2312,7 +2357,7 @@ const b = function(e, ...r) {
|
|
|
2312
2357
|
return n.getBlob(t.projectId, t.resourceId, t.key, s).then((a) => a(o, r));
|
|
2313
2358
|
},
|
|
2314
2359
|
/**
|
|
2315
|
-
*
|
|
2360
|
+
*
|
|
2316
2361
|
* @summary Updates an existing blob of a resource.
|
|
2317
2362
|
* @param {BlobApiUpdateBlobRequest} requestParameters Request parameters.
|
|
2318
2363
|
* @param {*} [options] Override http request option.
|
|
@@ -2322,7 +2367,7 @@ const b = function(e, ...r) {
|
|
|
2322
2367
|
return n.updateBlob(t.projectId, t.resourceId, t.key, t.file, s).then((a) => a(o, r));
|
|
2323
2368
|
}
|
|
2324
2369
|
};
|
|
2325
|
-
},
|
|
2370
|
+
}, Hr = function(e) {
|
|
2326
2371
|
return {
|
|
2327
2372
|
/**
|
|
2328
2373
|
*
|
|
@@ -2331,11 +2376,11 @@ const b = function(e, ...r) {
|
|
|
2331
2376
|
* @throws {RequiredError}
|
|
2332
2377
|
*/
|
|
2333
2378
|
apiV2DisciplinesOptions: async (r = {}) => {
|
|
2334
|
-
const o = "/api/v2/disciplines", n = new URL(o,
|
|
2379
|
+
const o = "/api/v2/disciplines", n = new URL(o, m);
|
|
2335
2380
|
let t;
|
|
2336
2381
|
e && (t = e.baseOptions);
|
|
2337
2382
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2338
|
-
await
|
|
2383
|
+
await P(a, "Authorization", e), b(n, l);
|
|
2339
2384
|
let c = t && t.headers ? t.headers : {};
|
|
2340
2385
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2341
2386
|
url: y(n),
|
|
@@ -2343,7 +2388,7 @@ const b = function(e, ...r) {
|
|
|
2343
2388
|
};
|
|
2344
2389
|
},
|
|
2345
2390
|
/**
|
|
2346
|
-
*
|
|
2391
|
+
*
|
|
2347
2392
|
* @summary Retrieves a discipline with the specified ID.
|
|
2348
2393
|
* @param {string} disciplineId The ID of the discipline.
|
|
2349
2394
|
* @param {*} [options] Override http request option.
|
|
@@ -2351,11 +2396,11 @@ const b = function(e, ...r) {
|
|
|
2351
2396
|
*/
|
|
2352
2397
|
getDiscipline: async (r, o = {}) => {
|
|
2353
2398
|
I("getDiscipline", "disciplineId", r);
|
|
2354
|
-
const n = "/api/v2/disciplines/{disciplineId}".replace("{disciplineId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
2399
|
+
const n = "/api/v2/disciplines/{disciplineId}".replace("{disciplineId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
2355
2400
|
let s;
|
|
2356
2401
|
e && (s = e.baseOptions);
|
|
2357
2402
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
2358
|
-
await
|
|
2403
|
+
await P(l, "Authorization", e), b(t, c);
|
|
2359
2404
|
let i = s && s.headers ? s.headers : {};
|
|
2360
2405
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
2361
2406
|
url: y(t),
|
|
@@ -2363,7 +2408,7 @@ const b = function(e, ...r) {
|
|
|
2363
2408
|
};
|
|
2364
2409
|
},
|
|
2365
2410
|
/**
|
|
2366
|
-
*
|
|
2411
|
+
*
|
|
2367
2412
|
* @summary Retrieves all disciplines.
|
|
2368
2413
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
2369
2414
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -2372,11 +2417,11 @@ const b = function(e, ...r) {
|
|
|
2372
2417
|
* @throws {RequiredError}
|
|
2373
2418
|
*/
|
|
2374
2419
|
getDisciplines: async (r, o, n, t = {}) => {
|
|
2375
|
-
const s = "/api/v2/disciplines", a = new URL(s,
|
|
2420
|
+
const s = "/api/v2/disciplines", a = new URL(s, m);
|
|
2376
2421
|
let l;
|
|
2377
2422
|
e && (l = e.baseOptions);
|
|
2378
2423
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
2379
|
-
await
|
|
2424
|
+
await P(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
2380
2425
|
let d = l && l.headers ? l.headers : {};
|
|
2381
2426
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2382
2427
|
url: y(a),
|
|
@@ -2385,7 +2430,7 @@ const b = function(e, ...r) {
|
|
|
2385
2430
|
}
|
|
2386
2431
|
};
|
|
2387
2432
|
}, Qr = function(e) {
|
|
2388
|
-
const r =
|
|
2433
|
+
const r = Hr(e);
|
|
2389
2434
|
return {
|
|
2390
2435
|
/**
|
|
2391
2436
|
*
|
|
@@ -2399,7 +2444,7 @@ const b = function(e, ...r) {
|
|
|
2399
2444
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
2400
2445
|
},
|
|
2401
2446
|
/**
|
|
2402
|
-
*
|
|
2447
|
+
*
|
|
2403
2448
|
* @summary Retrieves a discipline with the specified ID.
|
|
2404
2449
|
* @param {string} disciplineId The ID of the discipline.
|
|
2405
2450
|
* @param {*} [options] Override http request option.
|
|
@@ -2411,7 +2456,7 @@ const b = function(e, ...r) {
|
|
|
2411
2456
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
2412
2457
|
},
|
|
2413
2458
|
/**
|
|
2414
|
-
*
|
|
2459
|
+
*
|
|
2415
2460
|
* @summary Retrieves all disciplines.
|
|
2416
2461
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
2417
2462
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -2438,7 +2483,7 @@ const b = function(e, ...r) {
|
|
|
2438
2483
|
return n.apiV2DisciplinesOptions(t).then((s) => s(o, r));
|
|
2439
2484
|
},
|
|
2440
2485
|
/**
|
|
2441
|
-
*
|
|
2486
|
+
*
|
|
2442
2487
|
* @summary Retrieves a discipline with the specified ID.
|
|
2443
2488
|
* @param {DisciplineApiGetDisciplineRequest} requestParameters Request parameters.
|
|
2444
2489
|
* @param {*} [options] Override http request option.
|
|
@@ -2448,7 +2493,7 @@ const b = function(e, ...r) {
|
|
|
2448
2493
|
return n.getDiscipline(t.disciplineId, s).then((a) => a(o, r));
|
|
2449
2494
|
},
|
|
2450
2495
|
/**
|
|
2451
|
-
*
|
|
2496
|
+
*
|
|
2452
2497
|
* @summary Retrieves all disciplines.
|
|
2453
2498
|
* @param {DisciplineApiGetDisciplinesRequest} requestParameters Request parameters.
|
|
2454
2499
|
* @param {*} [options] Override http request option.
|
|
@@ -2467,11 +2512,11 @@ const b = function(e, ...r) {
|
|
|
2467
2512
|
* @throws {RequiredError}
|
|
2468
2513
|
*/
|
|
2469
2514
|
apiV2HandlesOptions: async (r = {}) => {
|
|
2470
|
-
const o = "/api/v2/handles", n = new URL(o,
|
|
2515
|
+
const o = "/api/v2/handles", n = new URL(o, m);
|
|
2471
2516
|
let t;
|
|
2472
2517
|
e && (t = e.baseOptions);
|
|
2473
2518
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2474
|
-
await
|
|
2519
|
+
await P(a, "Authorization", e), b(n, l);
|
|
2475
2520
|
let c = t && t.headers ? t.headers : {};
|
|
2476
2521
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2477
2522
|
url: y(n),
|
|
@@ -2479,7 +2524,7 @@ const b = function(e, ...r) {
|
|
|
2479
2524
|
};
|
|
2480
2525
|
},
|
|
2481
2526
|
/**
|
|
2482
|
-
*
|
|
2527
|
+
*
|
|
2483
2528
|
* @summary Retrieves all values of a handle by its PID.
|
|
2484
2529
|
* @param {string} prefix The prefix of the PID
|
|
2485
2530
|
* @param {string} suffix The suffix of the PID
|
|
@@ -2488,11 +2533,11 @@ const b = function(e, ...r) {
|
|
|
2488
2533
|
*/
|
|
2489
2534
|
getHandle: async (r, o, n = {}) => {
|
|
2490
2535
|
I("getHandle", "prefix", r), I("getHandle", "suffix", o);
|
|
2491
|
-
const t = "/api/v2/handles/{prefix}/{suffix}".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), s = new URL(t,
|
|
2536
|
+
const t = "/api/v2/handles/{prefix}/{suffix}".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
2492
2537
|
let a;
|
|
2493
2538
|
e && (a = e.baseOptions);
|
|
2494
2539
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
2495
|
-
await
|
|
2540
|
+
await P(c, "Authorization", e), b(s, i);
|
|
2496
2541
|
let p = a && a.headers ? a.headers : {};
|
|
2497
2542
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2498
2543
|
url: y(s),
|
|
@@ -2510,11 +2555,11 @@ const b = function(e, ...r) {
|
|
|
2510
2555
|
*/
|
|
2511
2556
|
updateHandle: async (r, o, n, t = {}) => {
|
|
2512
2557
|
I("updateHandle", "prefix", r), I("updateHandle", "suffix", o);
|
|
2513
|
-
const s = "/api/v2/handles/{prefix}/{suffix}".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), a = new URL(s,
|
|
2558
|
+
const s = "/api/v2/handles/{prefix}/{suffix}".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
2514
2559
|
let l;
|
|
2515
2560
|
e && (l = e.baseOptions);
|
|
2516
2561
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
2517
|
-
await
|
|
2562
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
2518
2563
|
let d = l && l.headers ? l.headers : {};
|
|
2519
2564
|
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
2520
2565
|
url: y(a),
|
|
@@ -2537,7 +2582,7 @@ const b = function(e, ...r) {
|
|
|
2537
2582
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
2538
2583
|
},
|
|
2539
2584
|
/**
|
|
2540
|
-
*
|
|
2585
|
+
*
|
|
2541
2586
|
* @summary Retrieves all values of a handle by its PID.
|
|
2542
2587
|
* @param {string} prefix The prefix of the PID
|
|
2543
2588
|
* @param {string} suffix The suffix of the PID
|
|
@@ -2577,7 +2622,7 @@ const b = function(e, ...r) {
|
|
|
2577
2622
|
return n.apiV2HandlesOptions(t).then((s) => s(o, r));
|
|
2578
2623
|
},
|
|
2579
2624
|
/**
|
|
2580
|
-
*
|
|
2625
|
+
*
|
|
2581
2626
|
* @summary Retrieves all values of a handle by its PID.
|
|
2582
2627
|
* @param {HandleApiGetHandleRequest} requestParameters Request parameters.
|
|
2583
2628
|
* @param {*} [options] Override http request option.
|
|
@@ -2606,11 +2651,11 @@ const b = function(e, ...r) {
|
|
|
2606
2651
|
* @throws {RequiredError}
|
|
2607
2652
|
*/
|
|
2608
2653
|
apiV2LanguagesOptions: async (r = {}) => {
|
|
2609
|
-
const o = "/api/v2/languages", n = new URL(o,
|
|
2654
|
+
const o = "/api/v2/languages", n = new URL(o, m);
|
|
2610
2655
|
let t;
|
|
2611
2656
|
e && (t = e.baseOptions);
|
|
2612
2657
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2613
|
-
await
|
|
2658
|
+
await P(a, "Authorization", e), b(n, l);
|
|
2614
2659
|
let c = t && t.headers ? t.headers : {};
|
|
2615
2660
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2616
2661
|
url: y(n),
|
|
@@ -2618,7 +2663,7 @@ const b = function(e, ...r) {
|
|
|
2618
2663
|
};
|
|
2619
2664
|
},
|
|
2620
2665
|
/**
|
|
2621
|
-
*
|
|
2666
|
+
*
|
|
2622
2667
|
* @summary Retrieves a language by ID.
|
|
2623
2668
|
* @param {string} languageId The ID of the language.
|
|
2624
2669
|
* @param {*} [options] Override http request option.
|
|
@@ -2626,11 +2671,11 @@ const b = function(e, ...r) {
|
|
|
2626
2671
|
*/
|
|
2627
2672
|
getLanguage: async (r, o = {}) => {
|
|
2628
2673
|
I("getLanguage", "languageId", r);
|
|
2629
|
-
const n = "/api/v2/languages/{languageId}".replace("{languageId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
2674
|
+
const n = "/api/v2/languages/{languageId}".replace("{languageId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
2630
2675
|
let s;
|
|
2631
2676
|
e && (s = e.baseOptions);
|
|
2632
2677
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
2633
|
-
await
|
|
2678
|
+
await P(l, "Authorization", e), b(t, c);
|
|
2634
2679
|
let i = s && s.headers ? s.headers : {};
|
|
2635
2680
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
2636
2681
|
url: y(t),
|
|
@@ -2638,7 +2683,7 @@ const b = function(e, ...r) {
|
|
|
2638
2683
|
};
|
|
2639
2684
|
},
|
|
2640
2685
|
/**
|
|
2641
|
-
*
|
|
2686
|
+
*
|
|
2642
2687
|
* @summary Retrieves all languages.
|
|
2643
2688
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
2644
2689
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -2647,11 +2692,11 @@ const b = function(e, ...r) {
|
|
|
2647
2692
|
* @throws {RequiredError}
|
|
2648
2693
|
*/
|
|
2649
2694
|
getLanguages: async (r, o, n, t = {}) => {
|
|
2650
|
-
const s = "/api/v2/languages", a = new URL(s,
|
|
2695
|
+
const s = "/api/v2/languages", a = new URL(s, m);
|
|
2651
2696
|
let l;
|
|
2652
2697
|
e && (l = e.baseOptions);
|
|
2653
2698
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
2654
|
-
await
|
|
2699
|
+
await P(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
2655
2700
|
let d = l && l.headers ? l.headers : {};
|
|
2656
2701
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2657
2702
|
url: y(a),
|
|
@@ -2674,7 +2719,7 @@ const b = function(e, ...r) {
|
|
|
2674
2719
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
2675
2720
|
},
|
|
2676
2721
|
/**
|
|
2677
|
-
*
|
|
2722
|
+
*
|
|
2678
2723
|
* @summary Retrieves a language by ID.
|
|
2679
2724
|
* @param {string} languageId The ID of the language.
|
|
2680
2725
|
* @param {*} [options] Override http request option.
|
|
@@ -2686,7 +2731,7 @@ const b = function(e, ...r) {
|
|
|
2686
2731
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
2687
2732
|
},
|
|
2688
2733
|
/**
|
|
2689
|
-
*
|
|
2734
|
+
*
|
|
2690
2735
|
* @summary Retrieves all languages.
|
|
2691
2736
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
2692
2737
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -2713,7 +2758,7 @@ const b = function(e, ...r) {
|
|
|
2713
2758
|
return n.apiV2LanguagesOptions(t).then((s) => s(o, r));
|
|
2714
2759
|
},
|
|
2715
2760
|
/**
|
|
2716
|
-
*
|
|
2761
|
+
*
|
|
2717
2762
|
* @summary Retrieves a language by ID.
|
|
2718
2763
|
* @param {LanguageApiGetLanguageRequest} requestParameters Request parameters.
|
|
2719
2764
|
* @param {*} [options] Override http request option.
|
|
@@ -2723,7 +2768,7 @@ const b = function(e, ...r) {
|
|
|
2723
2768
|
return n.getLanguage(t.languageId, s).then((a) => a(o, r));
|
|
2724
2769
|
},
|
|
2725
2770
|
/**
|
|
2726
|
-
*
|
|
2771
|
+
*
|
|
2727
2772
|
* @summary Retrieves all languages.
|
|
2728
2773
|
* @param {LanguageApiGetLanguagesRequest} requestParameters Request parameters.
|
|
2729
2774
|
* @param {*} [options] Override http request option.
|
|
@@ -2733,7 +2778,7 @@ const b = function(e, ...r) {
|
|
|
2733
2778
|
return n.getLanguages(t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
2734
2779
|
}
|
|
2735
2780
|
};
|
|
2736
|
-
},
|
|
2781
|
+
}, Jr = function(e) {
|
|
2737
2782
|
return {
|
|
2738
2783
|
/**
|
|
2739
2784
|
*
|
|
@@ -2742,11 +2787,11 @@ const b = function(e, ...r) {
|
|
|
2742
2787
|
* @throws {RequiredError}
|
|
2743
2788
|
*/
|
|
2744
2789
|
apiV2LicensesOptions: async (r = {}) => {
|
|
2745
|
-
const o = "/api/v2/licenses", n = new URL(o,
|
|
2790
|
+
const o = "/api/v2/licenses", n = new URL(o, m);
|
|
2746
2791
|
let t;
|
|
2747
2792
|
e && (t = e.baseOptions);
|
|
2748
2793
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2749
|
-
await
|
|
2794
|
+
await P(a, "Authorization", e), b(n, l);
|
|
2750
2795
|
let c = t && t.headers ? t.headers : {};
|
|
2751
2796
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2752
2797
|
url: y(n),
|
|
@@ -2754,7 +2799,7 @@ const b = function(e, ...r) {
|
|
|
2754
2799
|
};
|
|
2755
2800
|
},
|
|
2756
2801
|
/**
|
|
2757
|
-
*
|
|
2802
|
+
*
|
|
2758
2803
|
* @summary Retrieves a license with the specified ID.
|
|
2759
2804
|
* @param {string} licenseId The ID of the license.
|
|
2760
2805
|
* @param {*} [options] Override http request option.
|
|
@@ -2762,11 +2807,11 @@ const b = function(e, ...r) {
|
|
|
2762
2807
|
*/
|
|
2763
2808
|
getLicense: async (r, o = {}) => {
|
|
2764
2809
|
I("getLicense", "licenseId", r);
|
|
2765
|
-
const n = "/api/v2/licenses/{licenseId}".replace("{licenseId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
2810
|
+
const n = "/api/v2/licenses/{licenseId}".replace("{licenseId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
2766
2811
|
let s;
|
|
2767
2812
|
e && (s = e.baseOptions);
|
|
2768
2813
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
2769
|
-
await
|
|
2814
|
+
await P(l, "Authorization", e), b(t, c);
|
|
2770
2815
|
let i = s && s.headers ? s.headers : {};
|
|
2771
2816
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
2772
2817
|
url: y(t),
|
|
@@ -2774,7 +2819,7 @@ const b = function(e, ...r) {
|
|
|
2774
2819
|
};
|
|
2775
2820
|
},
|
|
2776
2821
|
/**
|
|
2777
|
-
*
|
|
2822
|
+
*
|
|
2778
2823
|
* @summary Retrieves all licenses.
|
|
2779
2824
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
2780
2825
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -2783,11 +2828,11 @@ const b = function(e, ...r) {
|
|
|
2783
2828
|
* @throws {RequiredError}
|
|
2784
2829
|
*/
|
|
2785
2830
|
getLicenses: async (r, o, n, t = {}) => {
|
|
2786
|
-
const s = "/api/v2/licenses", a = new URL(s,
|
|
2831
|
+
const s = "/api/v2/licenses", a = new URL(s, m);
|
|
2787
2832
|
let l;
|
|
2788
2833
|
e && (l = e.baseOptions);
|
|
2789
2834
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
2790
|
-
await
|
|
2835
|
+
await P(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
2791
2836
|
let d = l && l.headers ? l.headers : {};
|
|
2792
2837
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2793
2838
|
url: y(a),
|
|
@@ -2795,8 +2840,8 @@ const b = function(e, ...r) {
|
|
|
2795
2840
|
};
|
|
2796
2841
|
}
|
|
2797
2842
|
};
|
|
2798
|
-
},
|
|
2799
|
-
const r =
|
|
2843
|
+
}, Kr = function(e) {
|
|
2844
|
+
const r = Jr(e);
|
|
2800
2845
|
return {
|
|
2801
2846
|
/**
|
|
2802
2847
|
*
|
|
@@ -2810,7 +2855,7 @@ const b = function(e, ...r) {
|
|
|
2810
2855
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
2811
2856
|
},
|
|
2812
2857
|
/**
|
|
2813
|
-
*
|
|
2858
|
+
*
|
|
2814
2859
|
* @summary Retrieves a license with the specified ID.
|
|
2815
2860
|
* @param {string} licenseId The ID of the license.
|
|
2816
2861
|
* @param {*} [options] Override http request option.
|
|
@@ -2822,7 +2867,7 @@ const b = function(e, ...r) {
|
|
|
2822
2867
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
2823
2868
|
},
|
|
2824
2869
|
/**
|
|
2825
|
-
*
|
|
2870
|
+
*
|
|
2826
2871
|
* @summary Retrieves all licenses.
|
|
2827
2872
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
2828
2873
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -2836,8 +2881,8 @@ const b = function(e, ...r) {
|
|
|
2836
2881
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
2837
2882
|
}
|
|
2838
2883
|
};
|
|
2839
|
-
},
|
|
2840
|
-
const n =
|
|
2884
|
+
}, fr = function(e, r, o) {
|
|
2885
|
+
const n = Kr(e);
|
|
2841
2886
|
return {
|
|
2842
2887
|
/**
|
|
2843
2888
|
*
|
|
@@ -2849,7 +2894,7 @@ const b = function(e, ...r) {
|
|
|
2849
2894
|
return n.apiV2LicensesOptions(t).then((s) => s(o, r));
|
|
2850
2895
|
},
|
|
2851
2896
|
/**
|
|
2852
|
-
*
|
|
2897
|
+
*
|
|
2853
2898
|
* @summary Retrieves a license with the specified ID.
|
|
2854
2899
|
* @param {LicenseApiGetLicenseRequest} requestParameters Request parameters.
|
|
2855
2900
|
* @param {*} [options] Override http request option.
|
|
@@ -2859,7 +2904,7 @@ const b = function(e, ...r) {
|
|
|
2859
2904
|
return n.getLicense(t.licenseId, s).then((a) => a(o, r));
|
|
2860
2905
|
},
|
|
2861
2906
|
/**
|
|
2862
|
-
*
|
|
2907
|
+
*
|
|
2863
2908
|
* @summary Retrieves all licenses.
|
|
2864
2909
|
* @param {LicenseApiGetLicensesRequest} requestParameters Request parameters.
|
|
2865
2910
|
* @param {*} [options] Override http request option.
|
|
@@ -2878,11 +2923,11 @@ const b = function(e, ...r) {
|
|
|
2878
2923
|
* @throws {RequiredError}
|
|
2879
2924
|
*/
|
|
2880
2925
|
apiV2MaintenancesOptions: async (r = {}) => {
|
|
2881
|
-
const o = "/api/v2/maintenances", n = new URL(o,
|
|
2926
|
+
const o = "/api/v2/maintenances", n = new URL(o, m);
|
|
2882
2927
|
let t;
|
|
2883
2928
|
e && (t = e.baseOptions);
|
|
2884
2929
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2885
|
-
await
|
|
2930
|
+
await P(a, "Authorization", e), b(n, l);
|
|
2886
2931
|
let c = t && t.headers ? t.headers : {};
|
|
2887
2932
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2888
2933
|
url: y(n),
|
|
@@ -2890,17 +2935,17 @@ const b = function(e, ...r) {
|
|
|
2890
2935
|
};
|
|
2891
2936
|
},
|
|
2892
2937
|
/**
|
|
2893
|
-
*
|
|
2938
|
+
*
|
|
2894
2939
|
* @summary Retrieves the current maintenance messages.
|
|
2895
2940
|
* @param {*} [options] Override http request option.
|
|
2896
2941
|
* @throws {RequiredError}
|
|
2897
2942
|
*/
|
|
2898
2943
|
getCurrentMaintenances: async (r = {}) => {
|
|
2899
|
-
const o = "/api/v2/maintenances", n = new URL(o,
|
|
2944
|
+
const o = "/api/v2/maintenances", n = new URL(o, m);
|
|
2900
2945
|
let t;
|
|
2901
2946
|
e && (t = e.baseOptions);
|
|
2902
2947
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
2903
|
-
await
|
|
2948
|
+
await P(a, "Authorization", e), b(n, l);
|
|
2904
2949
|
let c = t && t.headers ? t.headers : {};
|
|
2905
2950
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2906
2951
|
url: y(n),
|
|
@@ -2923,7 +2968,7 @@ const b = function(e, ...r) {
|
|
|
2923
2968
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
2924
2969
|
},
|
|
2925
2970
|
/**
|
|
2926
|
-
*
|
|
2971
|
+
*
|
|
2927
2972
|
* @summary Retrieves the current maintenance messages.
|
|
2928
2973
|
* @param {*} [options] Override http request option.
|
|
2929
2974
|
* @throws {RequiredError}
|
|
@@ -2947,7 +2992,7 @@ const b = function(e, ...r) {
|
|
|
2947
2992
|
return n.apiV2MaintenancesOptions(t).then((s) => s(o, r));
|
|
2948
2993
|
},
|
|
2949
2994
|
/**
|
|
2950
|
-
*
|
|
2995
|
+
*
|
|
2951
2996
|
* @summary Retrieves the current maintenance messages.
|
|
2952
2997
|
* @param {*} [options] Override http request option.
|
|
2953
2998
|
* @throws {RequiredError}
|
|
@@ -2965,11 +3010,11 @@ const b = function(e, ...r) {
|
|
|
2965
3010
|
* @throws {RequiredError}
|
|
2966
3011
|
*/
|
|
2967
3012
|
apiV2OrganizationsOptions: async (r = {}) => {
|
|
2968
|
-
const o = "/api/v2/organizations", n = new URL(o,
|
|
3013
|
+
const o = "/api/v2/organizations", n = new URL(o, m);
|
|
2969
3014
|
let t;
|
|
2970
3015
|
e && (t = e.baseOptions);
|
|
2971
3016
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2972
|
-
await
|
|
3017
|
+
await P(a, "Authorization", e), b(n, l);
|
|
2973
3018
|
let c = t && t.headers ? t.headers : {};
|
|
2974
3019
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2975
3020
|
url: y(n),
|
|
@@ -2977,7 +3022,7 @@ const b = function(e, ...r) {
|
|
|
2977
3022
|
};
|
|
2978
3023
|
},
|
|
2979
3024
|
/**
|
|
2980
|
-
*
|
|
3025
|
+
*
|
|
2981
3026
|
* @summary Retrieves an organization.
|
|
2982
3027
|
* @param {string} organizationRorUri The parameters for organization filtering and pagination.
|
|
2983
3028
|
* @param {*} [options] Override http request option.
|
|
@@ -2985,11 +3030,11 @@ const b = function(e, ...r) {
|
|
|
2985
3030
|
*/
|
|
2986
3031
|
getOrganization: async (r, o = {}) => {
|
|
2987
3032
|
I("getOrganization", "organizationRorUri", r);
|
|
2988
|
-
const n = "/api/v2/organizations/{organizationRorUri}".replace("{organizationRorUri}", encodeURIComponent(String(r))), t = new URL(n,
|
|
3033
|
+
const n = "/api/v2/organizations/{organizationRorUri}".replace("{organizationRorUri}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
2989
3034
|
let s;
|
|
2990
3035
|
e && (s = e.baseOptions);
|
|
2991
3036
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
2992
|
-
await
|
|
3037
|
+
await P(l, "Authorization", e), b(t, c);
|
|
2993
3038
|
let i = s && s.headers ? s.headers : {};
|
|
2994
3039
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
2995
3040
|
url: y(t),
|
|
@@ -2997,9 +3042,10 @@ const b = function(e, ...r) {
|
|
|
2997
3042
|
};
|
|
2998
3043
|
},
|
|
2999
3044
|
/**
|
|
3000
|
-
*
|
|
3045
|
+
*
|
|
3001
3046
|
* @summary Retrieves all organizations.
|
|
3002
3047
|
* @param {string} [searchTerm] Gets or sets the search term used to filter organizations.
|
|
3048
|
+
* @param {AcceptedLanguage} [language] Language of name or text (dataPublicationService)
|
|
3003
3049
|
* @param {boolean} [filterByPublicationService] Gets or sets the option to find only organizations having the publication service set.
|
|
3004
3050
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
3005
3051
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -3007,16 +3053,16 @@ const b = function(e, ...r) {
|
|
|
3007
3053
|
* @param {*} [options] Override http request option.
|
|
3008
3054
|
* @throws {RequiredError}
|
|
3009
3055
|
*/
|
|
3010
|
-
getOrganizations: async (r, o, n, t, s, a = {}) => {
|
|
3011
|
-
const
|
|
3012
|
-
let
|
|
3013
|
-
e && (
|
|
3014
|
-
const
|
|
3015
|
-
await
|
|
3016
|
-
let
|
|
3017
|
-
return
|
|
3018
|
-
url: y(
|
|
3019
|
-
options:
|
|
3056
|
+
getOrganizations: async (r, o, n, t, s, a, l = {}) => {
|
|
3057
|
+
const c = "/api/v2/organizations", i = new URL(c, m);
|
|
3058
|
+
let p;
|
|
3059
|
+
e && (p = e.baseOptions);
|
|
3060
|
+
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
3061
|
+
await P(h, "Authorization", e), r !== void 0 && (u.SearchTerm = r), o !== void 0 && (u.Language = o), n !== void 0 && (u.FilterByPublicationService = n), t !== void 0 && (u.PageNumber = t), s !== void 0 && (u.PageSize = s), a !== void 0 && (u.OrderBy = a), b(i, u);
|
|
3062
|
+
let w = p && p.headers ? p.headers : {};
|
|
3063
|
+
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
3064
|
+
url: y(i),
|
|
3065
|
+
options: d
|
|
3020
3066
|
};
|
|
3021
3067
|
}
|
|
3022
3068
|
};
|
|
@@ -3035,7 +3081,7 @@ const b = function(e, ...r) {
|
|
|
3035
3081
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
3036
3082
|
},
|
|
3037
3083
|
/**
|
|
3038
|
-
*
|
|
3084
|
+
*
|
|
3039
3085
|
* @summary Retrieves an organization.
|
|
3040
3086
|
* @param {string} organizationRorUri The parameters for organization filtering and pagination.
|
|
3041
3087
|
* @param {*} [options] Override http request option.
|
|
@@ -3047,9 +3093,10 @@ const b = function(e, ...r) {
|
|
|
3047
3093
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
3048
3094
|
},
|
|
3049
3095
|
/**
|
|
3050
|
-
*
|
|
3096
|
+
*
|
|
3051
3097
|
* @summary Retrieves all organizations.
|
|
3052
3098
|
* @param {string} [searchTerm] Gets or sets the search term used to filter organizations.
|
|
3099
|
+
* @param {AcceptedLanguage} [language] Language of name or text (dataPublicationService)
|
|
3053
3100
|
* @param {boolean} [filterByPublicationService] Gets or sets the option to find only organizations having the publication service set.
|
|
3054
3101
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
3055
3102
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -3057,10 +3104,10 @@ const b = function(e, ...r) {
|
|
|
3057
3104
|
* @param {*} [options] Override http request option.
|
|
3058
3105
|
* @throws {RequiredError}
|
|
3059
3106
|
*/
|
|
3060
|
-
async getOrganizations(o, n, t, s, a, l) {
|
|
3061
|
-
var
|
|
3062
|
-
const
|
|
3063
|
-
return (
|
|
3107
|
+
async getOrganizations(o, n, t, s, a, l, c) {
|
|
3108
|
+
var h, u;
|
|
3109
|
+
const i = await r.getOrganizations(o, n, t, s, a, l, c), p = (e == null ? void 0 : e.serverIndex) ?? 0, d = (u = (h = V["OrganizationApi.getOrganizations"]) == null ? void 0 : h[p]) == null ? void 0 : u.url;
|
|
3110
|
+
return (w, T) => R(i, O, A, e)(w, d || T);
|
|
3064
3111
|
}
|
|
3065
3112
|
};
|
|
3066
3113
|
}, es = function(e, r, o) {
|
|
@@ -3076,7 +3123,7 @@ const b = function(e, ...r) {
|
|
|
3076
3123
|
return n.apiV2OrganizationsOptions(t).then((s) => s(o, r));
|
|
3077
3124
|
},
|
|
3078
3125
|
/**
|
|
3079
|
-
*
|
|
3126
|
+
*
|
|
3080
3127
|
* @summary Retrieves an organization.
|
|
3081
3128
|
* @param {OrganizationApiGetOrganizationRequest} requestParameters Request parameters.
|
|
3082
3129
|
* @param {*} [options] Override http request option.
|
|
@@ -3086,14 +3133,14 @@ const b = function(e, ...r) {
|
|
|
3086
3133
|
return n.getOrganization(t.organizationRorUri, s).then((a) => a(o, r));
|
|
3087
3134
|
},
|
|
3088
3135
|
/**
|
|
3089
|
-
*
|
|
3136
|
+
*
|
|
3090
3137
|
* @summary Retrieves all organizations.
|
|
3091
3138
|
* @param {OrganizationApiGetOrganizationsRequest} requestParameters Request parameters.
|
|
3092
3139
|
* @param {*} [options] Override http request option.
|
|
3093
3140
|
* @throws {RequiredError}
|
|
3094
3141
|
*/
|
|
3095
3142
|
getOrganizations(t = {}, s) {
|
|
3096
|
-
return n.getOrganizations(t.searchTerm, t.filterByPublicationService, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
3143
|
+
return n.getOrganizations(t.searchTerm, t.language, t.filterByPublicationService, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
3097
3144
|
}
|
|
3098
3145
|
};
|
|
3099
3146
|
}, ts = function(e) {
|
|
@@ -3105,11 +3152,11 @@ const b = function(e, ...r) {
|
|
|
3105
3152
|
* @throws {RequiredError}
|
|
3106
3153
|
*/
|
|
3107
3154
|
apiV2PidsOptions: async (r = {}) => {
|
|
3108
|
-
const o = "/api/v2/pids", n = new URL(o,
|
|
3155
|
+
const o = "/api/v2/pids", n = new URL(o, m);
|
|
3109
3156
|
let t;
|
|
3110
3157
|
e && (t = e.baseOptions);
|
|
3111
3158
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
3112
|
-
await
|
|
3159
|
+
await P(a, "Authorization", e), b(n, l);
|
|
3113
3160
|
let c = t && t.headers ? t.headers : {};
|
|
3114
3161
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
3115
3162
|
url: y(n),
|
|
@@ -3117,7 +3164,7 @@ const b = function(e, ...r) {
|
|
|
3117
3164
|
};
|
|
3118
3165
|
},
|
|
3119
3166
|
/**
|
|
3120
|
-
*
|
|
3167
|
+
*
|
|
3121
3168
|
* @summary Retrieves the Persistent Identifier (PID) for a given prefix and suffix.
|
|
3122
3169
|
* @param {string} prefix The PID prefix. Limited to the values provided by the API.
|
|
3123
3170
|
* @param {string} suffix The PID suffix of a project or a resource, represented as a GUID.
|
|
@@ -3126,11 +3173,11 @@ const b = function(e, ...r) {
|
|
|
3126
3173
|
*/
|
|
3127
3174
|
getPid: async (r, o, n = {}) => {
|
|
3128
3175
|
I("getPid", "prefix", r), I("getPid", "suffix", o);
|
|
3129
|
-
const t = "/api/v2/pids/{prefix}/{suffix}".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), s = new URL(t,
|
|
3176
|
+
const t = "/api/v2/pids/{prefix}/{suffix}".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
3130
3177
|
let a;
|
|
3131
3178
|
e && (a = e.baseOptions);
|
|
3132
3179
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
3133
|
-
await
|
|
3180
|
+
await P(c, "Authorization", e), b(s, i);
|
|
3134
3181
|
let p = a && a.headers ? a.headers : {};
|
|
3135
3182
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3136
3183
|
url: y(s),
|
|
@@ -3150,11 +3197,11 @@ const b = function(e, ...r) {
|
|
|
3150
3197
|
* @throws {RequiredError}
|
|
3151
3198
|
*/
|
|
3152
3199
|
getPids: async (r, o, n, t, s, a, l = {}) => {
|
|
3153
|
-
const c = "/api/v2/pids", i = new URL(c,
|
|
3200
|
+
const c = "/api/v2/pids", i = new URL(c, m);
|
|
3154
3201
|
let p;
|
|
3155
3202
|
e && (p = e.baseOptions);
|
|
3156
3203
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
3157
|
-
await
|
|
3204
|
+
await P(h, "Authorization", e), r !== void 0 && (u.IncludeProjects = r), o !== void 0 && (u.IncludeResources = o), n !== void 0 && (u.IncludeDeleted = n), t !== void 0 && (u.PageNumber = t), s !== void 0 && (u.PageSize = s), a !== void 0 && (u.OrderBy = a), b(i, u);
|
|
3158
3205
|
let w = p && p.headers ? p.headers : {};
|
|
3159
3206
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
3160
3207
|
url: y(i),
|
|
@@ -3162,7 +3209,7 @@ const b = function(e, ...r) {
|
|
|
3162
3209
|
};
|
|
3163
3210
|
},
|
|
3164
3211
|
/**
|
|
3165
|
-
*
|
|
3212
|
+
*
|
|
3166
3213
|
* @summary Sends an inquiry to the owner of the given PID.
|
|
3167
3214
|
* @param {string} prefix The PID prefix of a project or a resource to validate
|
|
3168
3215
|
* @param {string} suffix The PID body of a project or a resource to validate
|
|
@@ -3172,11 +3219,11 @@ const b = function(e, ...r) {
|
|
|
3172
3219
|
*/
|
|
3173
3220
|
sendRequestToOwner: async (r, o, n, t = {}) => {
|
|
3174
3221
|
I("sendRequestToOwner", "prefix", r), I("sendRequestToOwner", "suffix", o);
|
|
3175
|
-
const s = "/api/v2/pids/{prefix}/{suffix}/requests".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), a = new URL(s,
|
|
3222
|
+
const s = "/api/v2/pids/{prefix}/{suffix}/requests".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
3176
3223
|
let l;
|
|
3177
3224
|
e && (l = e.baseOptions);
|
|
3178
3225
|
const c = { method: "POST", ...l, ...t }, i = {}, p = {};
|
|
3179
|
-
await
|
|
3226
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
3180
3227
|
let d = l && l.headers ? l.headers : {};
|
|
3181
3228
|
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
3182
3229
|
url: y(a),
|
|
@@ -3199,7 +3246,7 @@ const b = function(e, ...r) {
|
|
|
3199
3246
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
3200
3247
|
},
|
|
3201
3248
|
/**
|
|
3202
|
-
*
|
|
3249
|
+
*
|
|
3203
3250
|
* @summary Retrieves the Persistent Identifier (PID) for a given prefix and suffix.
|
|
3204
3251
|
* @param {string} prefix The PID prefix. Limited to the values provided by the API.
|
|
3205
3252
|
* @param {string} suffix The PID suffix of a project or a resource, represented as a GUID.
|
|
@@ -3229,7 +3276,7 @@ const b = function(e, ...r) {
|
|
|
3229
3276
|
return (w, T) => R(i, O, A, e)(w, d || T);
|
|
3230
3277
|
},
|
|
3231
3278
|
/**
|
|
3232
|
-
*
|
|
3279
|
+
*
|
|
3233
3280
|
* @summary Sends an inquiry to the owner of the given PID.
|
|
3234
3281
|
* @param {string} prefix The PID prefix of a project or a resource to validate
|
|
3235
3282
|
* @param {string} suffix The PID body of a project or a resource to validate
|
|
@@ -3256,7 +3303,7 @@ const b = function(e, ...r) {
|
|
|
3256
3303
|
return n.apiV2PidsOptions(t).then((s) => s(o, r));
|
|
3257
3304
|
},
|
|
3258
3305
|
/**
|
|
3259
|
-
*
|
|
3306
|
+
*
|
|
3260
3307
|
* @summary Retrieves the Persistent Identifier (PID) for a given prefix and suffix.
|
|
3261
3308
|
* @param {PidApiGetPidRequest} requestParameters Request parameters.
|
|
3262
3309
|
* @param {*} [options] Override http request option.
|
|
@@ -3276,7 +3323,7 @@ const b = function(e, ...r) {
|
|
|
3276
3323
|
return n.getPids(t.includeProjects, t.includeResources, t.includeDeleted, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
3277
3324
|
},
|
|
3278
3325
|
/**
|
|
3279
|
-
*
|
|
3326
|
+
*
|
|
3280
3327
|
* @summary Sends an inquiry to the owner of the given PID.
|
|
3281
3328
|
* @param {PidApiSendRequestToOwnerRequest} requestParameters Request parameters.
|
|
3282
3329
|
* @param {*} [options] Override http request option.
|
|
@@ -3295,11 +3342,11 @@ const b = function(e, ...r) {
|
|
|
3295
3342
|
* @throws {RequiredError}
|
|
3296
3343
|
*/
|
|
3297
3344
|
apiV2ProjectsOptions: async (r = {}) => {
|
|
3298
|
-
const o = "/api/v2/projects", n = new URL(o,
|
|
3345
|
+
const o = "/api/v2/projects", n = new URL(o, m);
|
|
3299
3346
|
let t;
|
|
3300
3347
|
e && (t = e.baseOptions);
|
|
3301
3348
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
3302
|
-
await
|
|
3349
|
+
await P(a, "Authorization", e), b(n, l);
|
|
3303
3350
|
let c = t && t.headers ? t.headers : {};
|
|
3304
3351
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
3305
3352
|
url: y(n),
|
|
@@ -3307,18 +3354,18 @@ const b = function(e, ...r) {
|
|
|
3307
3354
|
};
|
|
3308
3355
|
},
|
|
3309
3356
|
/**
|
|
3310
|
-
*
|
|
3357
|
+
*
|
|
3311
3358
|
* @summary Creates a new project.
|
|
3312
3359
|
* @param {ProjectForCreationDto} [projectForCreationDto] The project data for creation.
|
|
3313
3360
|
* @param {*} [options] Override http request option.
|
|
3314
3361
|
* @throws {RequiredError}
|
|
3315
3362
|
*/
|
|
3316
3363
|
createProject: async (r, o = {}) => {
|
|
3317
|
-
const n = "/api/v2/projects", t = new URL(n,
|
|
3364
|
+
const n = "/api/v2/projects", t = new URL(n, m);
|
|
3318
3365
|
let s;
|
|
3319
3366
|
e && (s = e.baseOptions);
|
|
3320
3367
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
3321
|
-
await
|
|
3368
|
+
await P(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
3322
3369
|
let i = s && s.headers ? s.headers : {};
|
|
3323
3370
|
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
3324
3371
|
url: y(t),
|
|
@@ -3326,7 +3373,7 @@ const b = function(e, ...r) {
|
|
|
3326
3373
|
};
|
|
3327
3374
|
},
|
|
3328
3375
|
/**
|
|
3329
|
-
*
|
|
3376
|
+
*
|
|
3330
3377
|
* @summary Deletes a project.
|
|
3331
3378
|
* @param {string} projectId The ID of the project.
|
|
3332
3379
|
* @param {*} [options] Override http request option.
|
|
@@ -3334,11 +3381,11 @@ const b = function(e, ...r) {
|
|
|
3334
3381
|
*/
|
|
3335
3382
|
deleteProject: async (r, o = {}) => {
|
|
3336
3383
|
I("deleteProject", "projectId", r);
|
|
3337
|
-
const n = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
3384
|
+
const n = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
3338
3385
|
let s;
|
|
3339
3386
|
e && (s = e.baseOptions);
|
|
3340
3387
|
const a = { method: "DELETE", ...s, ...o }, l = {}, c = {};
|
|
3341
|
-
await
|
|
3388
|
+
await P(l, "Authorization", e), b(t, c);
|
|
3342
3389
|
let i = s && s.headers ? s.headers : {};
|
|
3343
3390
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
3344
3391
|
url: y(t),
|
|
@@ -3346,7 +3393,7 @@ const b = function(e, ...r) {
|
|
|
3346
3393
|
};
|
|
3347
3394
|
},
|
|
3348
3395
|
/**
|
|
3349
|
-
*
|
|
3396
|
+
*
|
|
3350
3397
|
* @summary Retrieves a project.
|
|
3351
3398
|
* @param {string} projectId The ID of the project.
|
|
3352
3399
|
* @param {boolean} [includeSubProjects] Gets or sets a value indicating whether to include sub-projects in the retrieval.
|
|
@@ -3355,11 +3402,11 @@ const b = function(e, ...r) {
|
|
|
3355
3402
|
*/
|
|
3356
3403
|
getProject: async (r, o, n = {}) => {
|
|
3357
3404
|
I("getProject", "projectId", r);
|
|
3358
|
-
const t = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
3405
|
+
const t = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
3359
3406
|
let a;
|
|
3360
3407
|
e && (a = e.baseOptions);
|
|
3361
3408
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
3362
|
-
await
|
|
3409
|
+
await P(c, "Authorization", e), o !== void 0 && (i.IncludeSubProjects = o), b(s, i);
|
|
3363
3410
|
let p = a && a.headers ? a.headers : {};
|
|
3364
3411
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3365
3412
|
url: y(s),
|
|
@@ -3367,7 +3414,7 @@ const b = function(e, ...r) {
|
|
|
3367
3414
|
};
|
|
3368
3415
|
},
|
|
3369
3416
|
/**
|
|
3370
|
-
*
|
|
3417
|
+
*
|
|
3371
3418
|
* @summary Retrieves all projects.
|
|
3372
3419
|
* @param {boolean} [includeOrganizations] Gets or sets a value indicating whether to retrieve the organizations.
|
|
3373
3420
|
* @param {boolean} [topLevel] Gets or sets a value indicating whether to retrieve only top-level projects.
|
|
@@ -3378,11 +3425,11 @@ const b = function(e, ...r) {
|
|
|
3378
3425
|
* @throws {RequiredError}
|
|
3379
3426
|
*/
|
|
3380
3427
|
getProjects: async (r, o, n, t, s, a = {}) => {
|
|
3381
|
-
const l = "/api/v2/projects", c = new URL(l,
|
|
3428
|
+
const l = "/api/v2/projects", c = new URL(l, m);
|
|
3382
3429
|
let i;
|
|
3383
3430
|
e && (i = e.baseOptions);
|
|
3384
3431
|
const p = { method: "GET", ...i, ...a }, d = {}, h = {};
|
|
3385
|
-
await
|
|
3432
|
+
await P(d, "Authorization", e), r !== void 0 && (h.IncludeOrganizations = r), o !== void 0 && (h.TopLevel = o), n !== void 0 && (h.PageNumber = n), t !== void 0 && (h.PageSize = t), s !== void 0 && (h.OrderBy = s), b(c, h);
|
|
3386
3433
|
let u = i && i.headers ? i.headers : {};
|
|
3387
3434
|
return p.headers = { ...d, ...u, ...a.headers }, {
|
|
3388
3435
|
url: y(c),
|
|
@@ -3390,7 +3437,7 @@ const b = function(e, ...r) {
|
|
|
3390
3437
|
};
|
|
3391
3438
|
},
|
|
3392
3439
|
/**
|
|
3393
|
-
*
|
|
3440
|
+
*
|
|
3394
3441
|
* @summary Updates a project.
|
|
3395
3442
|
* @param {string} projectId The ID of the project.
|
|
3396
3443
|
* @param {ProjectForUpdateDto} [projectForUpdateDto] The updated project data.
|
|
@@ -3399,11 +3446,11 @@ const b = function(e, ...r) {
|
|
|
3399
3446
|
*/
|
|
3400
3447
|
updateProject: async (r, o, n = {}) => {
|
|
3401
3448
|
I("updateProject", "projectId", r);
|
|
3402
|
-
const t = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
3449
|
+
const t = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
3403
3450
|
let a;
|
|
3404
3451
|
e && (a = e.baseOptions);
|
|
3405
3452
|
const l = { method: "PUT", ...a, ...n }, c = {}, i = {};
|
|
3406
|
-
await
|
|
3453
|
+
await P(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
3407
3454
|
let p = a && a.headers ? a.headers : {};
|
|
3408
3455
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
3409
3456
|
url: y(s),
|
|
@@ -3426,7 +3473,7 @@ const b = function(e, ...r) {
|
|
|
3426
3473
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
3427
3474
|
},
|
|
3428
3475
|
/**
|
|
3429
|
-
*
|
|
3476
|
+
*
|
|
3430
3477
|
* @summary Creates a new project.
|
|
3431
3478
|
* @param {ProjectForCreationDto} [projectForCreationDto] The project data for creation.
|
|
3432
3479
|
* @param {*} [options] Override http request option.
|
|
@@ -3438,7 +3485,7 @@ const b = function(e, ...r) {
|
|
|
3438
3485
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
3439
3486
|
},
|
|
3440
3487
|
/**
|
|
3441
|
-
*
|
|
3488
|
+
*
|
|
3442
3489
|
* @summary Deletes a project.
|
|
3443
3490
|
* @param {string} projectId The ID of the project.
|
|
3444
3491
|
* @param {*} [options] Override http request option.
|
|
@@ -3450,7 +3497,7 @@ const b = function(e, ...r) {
|
|
|
3450
3497
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
3451
3498
|
},
|
|
3452
3499
|
/**
|
|
3453
|
-
*
|
|
3500
|
+
*
|
|
3454
3501
|
* @summary Retrieves a project.
|
|
3455
3502
|
* @param {string} projectId The ID of the project.
|
|
3456
3503
|
* @param {boolean} [includeSubProjects] Gets or sets a value indicating whether to include sub-projects in the retrieval.
|
|
@@ -3463,7 +3510,7 @@ const b = function(e, ...r) {
|
|
|
3463
3510
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
3464
3511
|
},
|
|
3465
3512
|
/**
|
|
3466
|
-
*
|
|
3513
|
+
*
|
|
3467
3514
|
* @summary Retrieves all projects.
|
|
3468
3515
|
* @param {boolean} [includeOrganizations] Gets or sets a value indicating whether to retrieve the organizations.
|
|
3469
3516
|
* @param {boolean} [topLevel] Gets or sets a value indicating whether to retrieve only top-level projects.
|
|
@@ -3479,7 +3526,7 @@ const b = function(e, ...r) {
|
|
|
3479
3526
|
return (u, w) => R(c, O, A, e)(u, p || w);
|
|
3480
3527
|
},
|
|
3481
3528
|
/**
|
|
3482
|
-
*
|
|
3529
|
+
*
|
|
3483
3530
|
* @summary Updates a project.
|
|
3484
3531
|
* @param {string} projectId The ID of the project.
|
|
3485
3532
|
* @param {ProjectForUpdateDto} [projectForUpdateDto] The updated project data.
|
|
@@ -3505,7 +3552,7 @@ const b = function(e, ...r) {
|
|
|
3505
3552
|
return n.apiV2ProjectsOptions(t).then((s) => s(o, r));
|
|
3506
3553
|
},
|
|
3507
3554
|
/**
|
|
3508
|
-
*
|
|
3555
|
+
*
|
|
3509
3556
|
* @summary Creates a new project.
|
|
3510
3557
|
* @param {ProjectApiCreateProjectRequest} requestParameters Request parameters.
|
|
3511
3558
|
* @param {*} [options] Override http request option.
|
|
@@ -3515,7 +3562,7 @@ const b = function(e, ...r) {
|
|
|
3515
3562
|
return n.createProject(t.projectForCreationDto, s).then((a) => a(o, r));
|
|
3516
3563
|
},
|
|
3517
3564
|
/**
|
|
3518
|
-
*
|
|
3565
|
+
*
|
|
3519
3566
|
* @summary Deletes a project.
|
|
3520
3567
|
* @param {ProjectApiDeleteProjectRequest} requestParameters Request parameters.
|
|
3521
3568
|
* @param {*} [options] Override http request option.
|
|
@@ -3525,7 +3572,7 @@ const b = function(e, ...r) {
|
|
|
3525
3572
|
return n.deleteProject(t.projectId, s).then((a) => a(o, r));
|
|
3526
3573
|
},
|
|
3527
3574
|
/**
|
|
3528
|
-
*
|
|
3575
|
+
*
|
|
3529
3576
|
* @summary Retrieves a project.
|
|
3530
3577
|
* @param {ProjectApiGetProjectRequest} requestParameters Request parameters.
|
|
3531
3578
|
* @param {*} [options] Override http request option.
|
|
@@ -3535,7 +3582,7 @@ const b = function(e, ...r) {
|
|
|
3535
3582
|
return n.getProject(t.projectId, t.includeSubProjects, s).then((a) => a(o, r));
|
|
3536
3583
|
},
|
|
3537
3584
|
/**
|
|
3538
|
-
*
|
|
3585
|
+
*
|
|
3539
3586
|
* @summary Retrieves all projects.
|
|
3540
3587
|
* @param {ProjectApiGetProjectsRequest} requestParameters Request parameters.
|
|
3541
3588
|
* @param {*} [options] Override http request option.
|
|
@@ -3545,7 +3592,7 @@ const b = function(e, ...r) {
|
|
|
3545
3592
|
return n.getProjects(t.includeOrganizations, t.topLevel, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
3546
3593
|
},
|
|
3547
3594
|
/**
|
|
3548
|
-
*
|
|
3595
|
+
*
|
|
3549
3596
|
* @summary Updates a project.
|
|
3550
3597
|
* @param {ProjectApiUpdateProjectRequest} requestParameters Request parameters.
|
|
3551
3598
|
* @param {*} [options] Override http request option.
|
|
@@ -3566,11 +3613,11 @@ const b = function(e, ...r) {
|
|
|
3566
3613
|
*/
|
|
3567
3614
|
apiV2ProjectsProjectIdInvitationsOptions: async (r, o = {}) => {
|
|
3568
3615
|
I("apiV2ProjectsProjectIdInvitationsOptions", "projectId", r);
|
|
3569
|
-
const n = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
3616
|
+
const n = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
3570
3617
|
let s;
|
|
3571
3618
|
e && (s = e.baseOptions);
|
|
3572
3619
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
3573
|
-
await
|
|
3620
|
+
await P(l, "Authorization", e), b(t, c);
|
|
3574
3621
|
let i = s && s.headers ? s.headers : {};
|
|
3575
3622
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
3576
3623
|
url: y(t),
|
|
@@ -3578,7 +3625,7 @@ const b = function(e, ...r) {
|
|
|
3578
3625
|
};
|
|
3579
3626
|
},
|
|
3580
3627
|
/**
|
|
3581
|
-
*
|
|
3628
|
+
*
|
|
3582
3629
|
* @summary Creates a project invitation for a specified project.
|
|
3583
3630
|
* @param {string} projectId The Id or slug of the project.
|
|
3584
3631
|
* @param {ProjectInvitationForProjectManipulationDto} [projectInvitationForProjectManipulationDto] The project invitation data for creation.
|
|
@@ -3587,11 +3634,11 @@ const b = function(e, ...r) {
|
|
|
3587
3634
|
*/
|
|
3588
3635
|
createProjectInvitation: async (r, o, n = {}) => {
|
|
3589
3636
|
I("createProjectInvitation", "projectId", r);
|
|
3590
|
-
const t = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
3637
|
+
const t = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
3591
3638
|
let a;
|
|
3592
3639
|
e && (a = e.baseOptions);
|
|
3593
3640
|
const l = { method: "POST", ...a, ...n }, c = {}, i = {};
|
|
3594
|
-
await
|
|
3641
|
+
await P(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
3595
3642
|
let p = a && a.headers ? a.headers : {};
|
|
3596
3643
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
3597
3644
|
url: y(s),
|
|
@@ -3599,7 +3646,7 @@ const b = function(e, ...r) {
|
|
|
3599
3646
|
};
|
|
3600
3647
|
},
|
|
3601
3648
|
/**
|
|
3602
|
-
*
|
|
3649
|
+
*
|
|
3603
3650
|
* @summary Deletes a project invitation for a specified project.
|
|
3604
3651
|
* @param {string} projectId The Id or slug of the project.
|
|
3605
3652
|
* @param {string} projectInvitationId The ID of the project invitation to delete.
|
|
@@ -3608,11 +3655,11 @@ const b = function(e, ...r) {
|
|
|
3608
3655
|
*/
|
|
3609
3656
|
deleteProjectInvitation: async (r, o, n = {}) => {
|
|
3610
3657
|
I("deleteProjectInvitation", "projectId", r), I("deleteProjectInvitation", "projectInvitationId", o);
|
|
3611
|
-
const t = "/api/v2/projects/{projectId}/invitations/{projectInvitationId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{projectInvitationId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
3658
|
+
const t = "/api/v2/projects/{projectId}/invitations/{projectInvitationId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{projectInvitationId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
3612
3659
|
let a;
|
|
3613
3660
|
e && (a = e.baseOptions);
|
|
3614
3661
|
const l = { method: "DELETE", ...a, ...n }, c = {}, i = {};
|
|
3615
|
-
await
|
|
3662
|
+
await P(c, "Authorization", e), b(s, i);
|
|
3616
3663
|
let p = a && a.headers ? a.headers : {};
|
|
3617
3664
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3618
3665
|
url: y(s),
|
|
@@ -3620,7 +3667,7 @@ const b = function(e, ...r) {
|
|
|
3620
3667
|
};
|
|
3621
3668
|
},
|
|
3622
3669
|
/**
|
|
3623
|
-
*
|
|
3670
|
+
*
|
|
3624
3671
|
* @summary Retrieves a project invitation for a specified project.
|
|
3625
3672
|
* @param {string} projectId The Id or slug of the project.
|
|
3626
3673
|
* @param {string} projectInvitationId The ID of the project invitation to retrieve.
|
|
@@ -3629,11 +3676,11 @@ const b = function(e, ...r) {
|
|
|
3629
3676
|
*/
|
|
3630
3677
|
getProjectInvitation: async (r, o, n = {}) => {
|
|
3631
3678
|
I("getProjectInvitation", "projectId", r), I("getProjectInvitation", "projectInvitationId", o);
|
|
3632
|
-
const t = "/api/v2/projects/{projectId}/invitations/{projectInvitationId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{projectInvitationId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
3679
|
+
const t = "/api/v2/projects/{projectId}/invitations/{projectInvitationId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{projectInvitationId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
3633
3680
|
let a;
|
|
3634
3681
|
e && (a = e.baseOptions);
|
|
3635
3682
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
3636
|
-
await
|
|
3683
|
+
await P(c, "Authorization", e), b(s, i);
|
|
3637
3684
|
let p = a && a.headers ? a.headers : {};
|
|
3638
3685
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3639
3686
|
url: y(s),
|
|
@@ -3641,7 +3688,7 @@ const b = function(e, ...r) {
|
|
|
3641
3688
|
};
|
|
3642
3689
|
},
|
|
3643
3690
|
/**
|
|
3644
|
-
*
|
|
3691
|
+
*
|
|
3645
3692
|
* @summary Retrieves all project invitations for a specified project.
|
|
3646
3693
|
* @param {string} projectId The Id or slug of the project.
|
|
3647
3694
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
@@ -3652,11 +3699,11 @@ const b = function(e, ...r) {
|
|
|
3652
3699
|
*/
|
|
3653
3700
|
getProjectInvitations: async (r, o, n, t, s = {}) => {
|
|
3654
3701
|
I("getProjectInvitations", "projectId", r);
|
|
3655
|
-
const a = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a,
|
|
3702
|
+
const a = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a, m);
|
|
3656
3703
|
let c;
|
|
3657
3704
|
e && (c = e.baseOptions);
|
|
3658
3705
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
3659
|
-
await
|
|
3706
|
+
await P(p, "Authorization", e), o !== void 0 && (d.PageNumber = o), n !== void 0 && (d.PageSize = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
3660
3707
|
let h = c && c.headers ? c.headers : {};
|
|
3661
3708
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
3662
3709
|
url: y(l),
|
|
@@ -3680,7 +3727,7 @@ const b = function(e, ...r) {
|
|
|
3680
3727
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
3681
3728
|
},
|
|
3682
3729
|
/**
|
|
3683
|
-
*
|
|
3730
|
+
*
|
|
3684
3731
|
* @summary Creates a project invitation for a specified project.
|
|
3685
3732
|
* @param {string} projectId The Id or slug of the project.
|
|
3686
3733
|
* @param {ProjectInvitationForProjectManipulationDto} [projectInvitationForProjectManipulationDto] The project invitation data for creation.
|
|
@@ -3693,7 +3740,7 @@ const b = function(e, ...r) {
|
|
|
3693
3740
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
3694
3741
|
},
|
|
3695
3742
|
/**
|
|
3696
|
-
*
|
|
3743
|
+
*
|
|
3697
3744
|
* @summary Deletes a project invitation for a specified project.
|
|
3698
3745
|
* @param {string} projectId The Id or slug of the project.
|
|
3699
3746
|
* @param {string} projectInvitationId The ID of the project invitation to delete.
|
|
@@ -3706,7 +3753,7 @@ const b = function(e, ...r) {
|
|
|
3706
3753
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
3707
3754
|
},
|
|
3708
3755
|
/**
|
|
3709
|
-
*
|
|
3756
|
+
*
|
|
3710
3757
|
* @summary Retrieves a project invitation for a specified project.
|
|
3711
3758
|
* @param {string} projectId The Id or slug of the project.
|
|
3712
3759
|
* @param {string} projectInvitationId The ID of the project invitation to retrieve.
|
|
@@ -3719,7 +3766,7 @@ const b = function(e, ...r) {
|
|
|
3719
3766
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
3720
3767
|
},
|
|
3721
3768
|
/**
|
|
3722
|
-
*
|
|
3769
|
+
*
|
|
3723
3770
|
* @summary Retrieves all project invitations for a specified project.
|
|
3724
3771
|
* @param {string} projectId The Id or slug of the project.
|
|
3725
3772
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
@@ -3748,7 +3795,7 @@ const b = function(e, ...r) {
|
|
|
3748
3795
|
return n.apiV2ProjectsProjectIdInvitationsOptions(t.projectId, s).then((a) => a(o, r));
|
|
3749
3796
|
},
|
|
3750
3797
|
/**
|
|
3751
|
-
*
|
|
3798
|
+
*
|
|
3752
3799
|
* @summary Creates a project invitation for a specified project.
|
|
3753
3800
|
* @param {ProjectInvitationApiCreateProjectInvitationRequest} requestParameters Request parameters.
|
|
3754
3801
|
* @param {*} [options] Override http request option.
|
|
@@ -3758,7 +3805,7 @@ const b = function(e, ...r) {
|
|
|
3758
3805
|
return n.createProjectInvitation(t.projectId, t.projectInvitationForProjectManipulationDto, s).then((a) => a(o, r));
|
|
3759
3806
|
},
|
|
3760
3807
|
/**
|
|
3761
|
-
*
|
|
3808
|
+
*
|
|
3762
3809
|
* @summary Deletes a project invitation for a specified project.
|
|
3763
3810
|
* @param {ProjectInvitationApiDeleteProjectInvitationRequest} requestParameters Request parameters.
|
|
3764
3811
|
* @param {*} [options] Override http request option.
|
|
@@ -3768,7 +3815,7 @@ const b = function(e, ...r) {
|
|
|
3768
3815
|
return n.deleteProjectInvitation(t.projectId, t.projectInvitationId, s).then((a) => a(o, r));
|
|
3769
3816
|
},
|
|
3770
3817
|
/**
|
|
3771
|
-
*
|
|
3818
|
+
*
|
|
3772
3819
|
* @summary Retrieves a project invitation for a specified project.
|
|
3773
3820
|
* @param {ProjectInvitationApiGetProjectInvitationRequest} requestParameters Request parameters.
|
|
3774
3821
|
* @param {*} [options] Override http request option.
|
|
@@ -3778,7 +3825,7 @@ const b = function(e, ...r) {
|
|
|
3778
3825
|
return n.getProjectInvitation(t.projectId, t.projectInvitationId, s).then((a) => a(o, r));
|
|
3779
3826
|
},
|
|
3780
3827
|
/**
|
|
3781
|
-
*
|
|
3828
|
+
*
|
|
3782
3829
|
* @summary Retrieves all project invitations for a specified project.
|
|
3783
3830
|
* @param {ProjectInvitationApiGetProjectInvitationsRequest} requestParameters Request parameters.
|
|
3784
3831
|
* @param {*} [options] Override http request option.
|
|
@@ -3791,7 +3838,7 @@ const b = function(e, ...r) {
|
|
|
3791
3838
|
}, ps = function(e) {
|
|
3792
3839
|
return {
|
|
3793
3840
|
/**
|
|
3794
|
-
*
|
|
3841
|
+
*
|
|
3795
3842
|
* @summary Creates a project membership for a specified project.
|
|
3796
3843
|
* @param {string} projectId The Id or slug of the project.
|
|
3797
3844
|
* @param {ProjectRoleForProjectCreationDto} [projectRoleForProjectCreationDto] The project membership data for creation.
|
|
@@ -3800,11 +3847,11 @@ const b = function(e, ...r) {
|
|
|
3800
3847
|
*/
|
|
3801
3848
|
addMembership: async (r, o, n = {}) => {
|
|
3802
3849
|
I("addMembership", "projectId", r);
|
|
3803
|
-
const t = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
3850
|
+
const t = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
3804
3851
|
let a;
|
|
3805
3852
|
e && (a = e.baseOptions);
|
|
3806
3853
|
const l = { method: "POST", ...a, ...n }, c = {}, i = {};
|
|
3807
|
-
await
|
|
3854
|
+
await P(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
3808
3855
|
let p = a && a.headers ? a.headers : {};
|
|
3809
3856
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
3810
3857
|
url: y(s),
|
|
@@ -3820,11 +3867,11 @@ const b = function(e, ...r) {
|
|
|
3820
3867
|
*/
|
|
3821
3868
|
apiV2ProjectsProjectIdMembersOptions: async (r, o = {}) => {
|
|
3822
3869
|
I("apiV2ProjectsProjectIdMembersOptions", "projectId", r);
|
|
3823
|
-
const n = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
3870
|
+
const n = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
3824
3871
|
let s;
|
|
3825
3872
|
e && (s = e.baseOptions);
|
|
3826
3873
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
3827
|
-
await
|
|
3874
|
+
await P(l, "Authorization", e), b(t, c);
|
|
3828
3875
|
let i = s && s.headers ? s.headers : {};
|
|
3829
3876
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
3830
3877
|
url: y(t),
|
|
@@ -3832,7 +3879,7 @@ const b = function(e, ...r) {
|
|
|
3832
3879
|
};
|
|
3833
3880
|
},
|
|
3834
3881
|
/**
|
|
3835
|
-
*
|
|
3882
|
+
*
|
|
3836
3883
|
* @summary Deletes a project membership for a specified project.
|
|
3837
3884
|
* @param {string} projectId The Id or slug of the project.
|
|
3838
3885
|
* @param {string} membershipId The ID of the project membership to delete.
|
|
@@ -3841,11 +3888,11 @@ const b = function(e, ...r) {
|
|
|
3841
3888
|
*/
|
|
3842
3889
|
deleteMembership: async (r, o, n = {}) => {
|
|
3843
3890
|
I("deleteMembership", "projectId", r), I("deleteMembership", "membershipId", o);
|
|
3844
|
-
const t = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
3891
|
+
const t = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
3845
3892
|
let a;
|
|
3846
3893
|
e && (a = e.baseOptions);
|
|
3847
3894
|
const l = { method: "DELETE", ...a, ...n }, c = {}, i = {};
|
|
3848
|
-
await
|
|
3895
|
+
await P(c, "Authorization", e), b(s, i);
|
|
3849
3896
|
let p = a && a.headers ? a.headers : {};
|
|
3850
3897
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3851
3898
|
url: y(s),
|
|
@@ -3853,7 +3900,7 @@ const b = function(e, ...r) {
|
|
|
3853
3900
|
};
|
|
3854
3901
|
},
|
|
3855
3902
|
/**
|
|
3856
|
-
*
|
|
3903
|
+
*
|
|
3857
3904
|
* @summary Retrieves a project membership for a specified project.
|
|
3858
3905
|
* @param {string} projectId The Id or slug of the project.
|
|
3859
3906
|
* @param {string} membershipId The ID of the project membership to retrieve.
|
|
@@ -3862,11 +3909,11 @@ const b = function(e, ...r) {
|
|
|
3862
3909
|
*/
|
|
3863
3910
|
getMembership: async (r, o, n = {}) => {
|
|
3864
3911
|
I("getMembership", "projectId", r), I("getMembership", "membershipId", o);
|
|
3865
|
-
const t = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
3912
|
+
const t = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
3866
3913
|
let a;
|
|
3867
3914
|
e && (a = e.baseOptions);
|
|
3868
3915
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
3869
|
-
await
|
|
3916
|
+
await P(c, "Authorization", e), b(s, i);
|
|
3870
3917
|
let p = a && a.headers ? a.headers : {};
|
|
3871
3918
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3872
3919
|
url: y(s),
|
|
@@ -3874,7 +3921,7 @@ const b = function(e, ...r) {
|
|
|
3874
3921
|
};
|
|
3875
3922
|
},
|
|
3876
3923
|
/**
|
|
3877
|
-
*
|
|
3924
|
+
*
|
|
3878
3925
|
* @summary Retrieves all project memberships for a specified project.
|
|
3879
3926
|
* @param {string} projectId The Id or slug of the project.
|
|
3880
3927
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
@@ -3885,11 +3932,11 @@ const b = function(e, ...r) {
|
|
|
3885
3932
|
*/
|
|
3886
3933
|
getMemberships: async (r, o, n, t, s = {}) => {
|
|
3887
3934
|
I("getMemberships", "projectId", r);
|
|
3888
|
-
const a = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a,
|
|
3935
|
+
const a = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a, m);
|
|
3889
3936
|
let c;
|
|
3890
3937
|
e && (c = e.baseOptions);
|
|
3891
3938
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
3892
|
-
await
|
|
3939
|
+
await P(p, "Authorization", e), o !== void 0 && (d.PageNumber = o), n !== void 0 && (d.PageSize = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
3893
3940
|
let h = c && c.headers ? c.headers : {};
|
|
3894
3941
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
3895
3942
|
url: y(l),
|
|
@@ -3897,7 +3944,7 @@ const b = function(e, ...r) {
|
|
|
3897
3944
|
};
|
|
3898
3945
|
},
|
|
3899
3946
|
/**
|
|
3900
|
-
*
|
|
3947
|
+
*
|
|
3901
3948
|
* @summary Updates a project membership for a specified project.
|
|
3902
3949
|
* @param {string} projectId The Id or slug of the project.
|
|
3903
3950
|
* @param {string} membershipId The ID of the project membership to update.
|
|
@@ -3907,11 +3954,11 @@ const b = function(e, ...r) {
|
|
|
3907
3954
|
*/
|
|
3908
3955
|
updateMembership: async (r, o, n, t = {}) => {
|
|
3909
3956
|
I("updateMembership", "projectId", r), I("updateMembership", "membershipId", o);
|
|
3910
|
-
const s = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), a = new URL(s,
|
|
3957
|
+
const s = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
3911
3958
|
let l;
|
|
3912
3959
|
e && (l = e.baseOptions);
|
|
3913
3960
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
3914
|
-
await
|
|
3961
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
3915
3962
|
let d = l && l.headers ? l.headers : {};
|
|
3916
3963
|
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
3917
3964
|
url: y(a),
|
|
@@ -3923,7 +3970,7 @@ const b = function(e, ...r) {
|
|
|
3923
3970
|
const r = ps(e);
|
|
3924
3971
|
return {
|
|
3925
3972
|
/**
|
|
3926
|
-
*
|
|
3973
|
+
*
|
|
3927
3974
|
* @summary Creates a project membership for a specified project.
|
|
3928
3975
|
* @param {string} projectId The Id or slug of the project.
|
|
3929
3976
|
* @param {ProjectRoleForProjectCreationDto} [projectRoleForProjectCreationDto] The project membership data for creation.
|
|
@@ -3948,7 +3995,7 @@ const b = function(e, ...r) {
|
|
|
3948
3995
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
3949
3996
|
},
|
|
3950
3997
|
/**
|
|
3951
|
-
*
|
|
3998
|
+
*
|
|
3952
3999
|
* @summary Deletes a project membership for a specified project.
|
|
3953
4000
|
* @param {string} projectId The Id or slug of the project.
|
|
3954
4001
|
* @param {string} membershipId The ID of the project membership to delete.
|
|
@@ -3961,7 +4008,7 @@ const b = function(e, ...r) {
|
|
|
3961
4008
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
3962
4009
|
},
|
|
3963
4010
|
/**
|
|
3964
|
-
*
|
|
4011
|
+
*
|
|
3965
4012
|
* @summary Retrieves a project membership for a specified project.
|
|
3966
4013
|
* @param {string} projectId The Id or slug of the project.
|
|
3967
4014
|
* @param {string} membershipId The ID of the project membership to retrieve.
|
|
@@ -3974,7 +4021,7 @@ const b = function(e, ...r) {
|
|
|
3974
4021
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
3975
4022
|
},
|
|
3976
4023
|
/**
|
|
3977
|
-
*
|
|
4024
|
+
*
|
|
3978
4025
|
* @summary Retrieves all project memberships for a specified project.
|
|
3979
4026
|
* @param {string} projectId The Id or slug of the project.
|
|
3980
4027
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
@@ -3989,7 +4036,7 @@ const b = function(e, ...r) {
|
|
|
3989
4036
|
return (h, u) => R(l, O, A, e)(h, i || u);
|
|
3990
4037
|
},
|
|
3991
4038
|
/**
|
|
3992
|
-
*
|
|
4039
|
+
*
|
|
3993
4040
|
* @summary Updates a project membership for a specified project.
|
|
3994
4041
|
* @param {string} projectId The Id or slug of the project.
|
|
3995
4042
|
* @param {string} membershipId The ID of the project membership to update.
|
|
@@ -4007,7 +4054,7 @@ const b = function(e, ...r) {
|
|
|
4007
4054
|
const n = ds(e);
|
|
4008
4055
|
return {
|
|
4009
4056
|
/**
|
|
4010
|
-
*
|
|
4057
|
+
*
|
|
4011
4058
|
* @summary Creates a project membership for a specified project.
|
|
4012
4059
|
* @param {ProjectMemberApiAddMembershipRequest} requestParameters Request parameters.
|
|
4013
4060
|
* @param {*} [options] Override http request option.
|
|
@@ -4027,7 +4074,7 @@ const b = function(e, ...r) {
|
|
|
4027
4074
|
return n.apiV2ProjectsProjectIdMembersOptions(t.projectId, s).then((a) => a(o, r));
|
|
4028
4075
|
},
|
|
4029
4076
|
/**
|
|
4030
|
-
*
|
|
4077
|
+
*
|
|
4031
4078
|
* @summary Deletes a project membership for a specified project.
|
|
4032
4079
|
* @param {ProjectMemberApiDeleteMembershipRequest} requestParameters Request parameters.
|
|
4033
4080
|
* @param {*} [options] Override http request option.
|
|
@@ -4037,7 +4084,7 @@ const b = function(e, ...r) {
|
|
|
4037
4084
|
return n.deleteMembership(t.projectId, t.membershipId, s).then((a) => a(o, r));
|
|
4038
4085
|
},
|
|
4039
4086
|
/**
|
|
4040
|
-
*
|
|
4087
|
+
*
|
|
4041
4088
|
* @summary Retrieves a project membership for a specified project.
|
|
4042
4089
|
* @param {ProjectMemberApiGetMembershipRequest} requestParameters Request parameters.
|
|
4043
4090
|
* @param {*} [options] Override http request option.
|
|
@@ -4047,7 +4094,7 @@ const b = function(e, ...r) {
|
|
|
4047
4094
|
return n.getMembership(t.projectId, t.membershipId, s).then((a) => a(o, r));
|
|
4048
4095
|
},
|
|
4049
4096
|
/**
|
|
4050
|
-
*
|
|
4097
|
+
*
|
|
4051
4098
|
* @summary Retrieves all project memberships for a specified project.
|
|
4052
4099
|
* @param {ProjectMemberApiGetMembershipsRequest} requestParameters Request parameters.
|
|
4053
4100
|
* @param {*} [options] Override http request option.
|
|
@@ -4057,7 +4104,7 @@ const b = function(e, ...r) {
|
|
|
4057
4104
|
return n.getMemberships(t.projectId, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
4058
4105
|
},
|
|
4059
4106
|
/**
|
|
4060
|
-
*
|
|
4107
|
+
*
|
|
4061
4108
|
* @summary Updates a project membership for a specified project.
|
|
4062
4109
|
* @param {ProjectMemberApiUpdateMembershipRequest} requestParameters Request parameters.
|
|
4063
4110
|
* @param {*} [options] Override http request option.
|
|
@@ -4078,11 +4125,11 @@ const b = function(e, ...r) {
|
|
|
4078
4125
|
*/
|
|
4079
4126
|
apiV2ProjectsProjectIdPublicationsRequestsOptions: async (r, o = {}) => {
|
|
4080
4127
|
I("apiV2ProjectsProjectIdPublicationsRequestsOptions", "projectId", r);
|
|
4081
|
-
const n = "/api/v2/projects/{projectId}/publications/requests".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4128
|
+
const n = "/api/v2/projects/{projectId}/publications/requests".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
4082
4129
|
let s;
|
|
4083
4130
|
e && (s = e.baseOptions);
|
|
4084
4131
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
4085
|
-
await
|
|
4132
|
+
await P(l, "Authorization", e), b(t, c);
|
|
4086
4133
|
let i = s && s.headers ? s.headers : {};
|
|
4087
4134
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4088
4135
|
url: y(t),
|
|
@@ -4090,7 +4137,7 @@ const b = function(e, ...r) {
|
|
|
4090
4137
|
};
|
|
4091
4138
|
},
|
|
4092
4139
|
/**
|
|
4093
|
-
*
|
|
4140
|
+
*
|
|
4094
4141
|
* @summary Creates a new publication request.
|
|
4095
4142
|
* @param {string} projectId The Id or slug of the project.
|
|
4096
4143
|
* @param {PublicationRequestForCreationDto} [publicationRequestForCreationDto] The publication request data for creation.
|
|
@@ -4099,11 +4146,11 @@ const b = function(e, ...r) {
|
|
|
4099
4146
|
*/
|
|
4100
4147
|
createPublicationRequest: async (r, o, n = {}) => {
|
|
4101
4148
|
I("createPublicationRequest", "projectId", r);
|
|
4102
|
-
const t = "/api/v2/projects/{projectId}/publications/requests".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
4149
|
+
const t = "/api/v2/projects/{projectId}/publications/requests".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
4103
4150
|
let a;
|
|
4104
4151
|
e && (a = e.baseOptions);
|
|
4105
4152
|
const l = { method: "POST", ...a, ...n }, c = {}, i = {};
|
|
4106
|
-
await
|
|
4153
|
+
await P(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
4107
4154
|
let p = a && a.headers ? a.headers : {};
|
|
4108
4155
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
4109
4156
|
url: y(s),
|
|
@@ -4127,7 +4174,7 @@ const b = function(e, ...r) {
|
|
|
4127
4174
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
4128
4175
|
},
|
|
4129
4176
|
/**
|
|
4130
|
-
*
|
|
4177
|
+
*
|
|
4131
4178
|
* @summary Creates a new publication request.
|
|
4132
4179
|
* @param {string} projectId The Id or slug of the project.
|
|
4133
4180
|
* @param {PublicationRequestForCreationDto} [publicationRequestForCreationDto] The publication request data for creation.
|
|
@@ -4154,7 +4201,7 @@ const b = function(e, ...r) {
|
|
|
4154
4201
|
return n.apiV2ProjectsProjectIdPublicationsRequestsOptions(t.projectId, s).then((a) => a(o, r));
|
|
4155
4202
|
},
|
|
4156
4203
|
/**
|
|
4157
|
-
*
|
|
4204
|
+
*
|
|
4158
4205
|
* @summary Creates a new publication request.
|
|
4159
4206
|
* @param {ProjectPublicationRequestApiCreatePublicationRequestRequest} requestParameters Request parameters.
|
|
4160
4207
|
* @param {*} [options] Override http request option.
|
|
@@ -4175,11 +4222,11 @@ const b = function(e, ...r) {
|
|
|
4175
4222
|
*/
|
|
4176
4223
|
apiV2ProjectsProjectIdQuotasOptions: async (r, o = {}) => {
|
|
4177
4224
|
I("apiV2ProjectsProjectIdQuotasOptions", "projectId", r);
|
|
4178
|
-
const n = "/api/v2/projects/{projectId}/quotas".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4225
|
+
const n = "/api/v2/projects/{projectId}/quotas".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
4179
4226
|
let s;
|
|
4180
4227
|
e && (s = e.baseOptions);
|
|
4181
4228
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
4182
|
-
await
|
|
4229
|
+
await P(l, "Authorization", e), b(t, c);
|
|
4183
4230
|
let i = s && s.headers ? s.headers : {};
|
|
4184
4231
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4185
4232
|
url: y(t),
|
|
@@ -4187,7 +4234,7 @@ const b = function(e, ...r) {
|
|
|
4187
4234
|
};
|
|
4188
4235
|
},
|
|
4189
4236
|
/**
|
|
4190
|
-
*
|
|
4237
|
+
*
|
|
4191
4238
|
* @summary Retrieves a project quota for a specified project and resource type.
|
|
4192
4239
|
* @param {string} projectId The Id or slug of the project.
|
|
4193
4240
|
* @param {string} resourceTypeId The ID of the resource type.
|
|
@@ -4196,11 +4243,11 @@ const b = function(e, ...r) {
|
|
|
4196
4243
|
*/
|
|
4197
4244
|
getProjectQuota: async (r, o, n = {}) => {
|
|
4198
4245
|
I("getProjectQuota", "projectId", r), I("getProjectQuota", "resourceTypeId", o);
|
|
4199
|
-
const t = "/api/v2/projects/{projectId}/quotas/{resourceTypeId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceTypeId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4246
|
+
const t = "/api/v2/projects/{projectId}/quotas/{resourceTypeId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceTypeId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
4200
4247
|
let a;
|
|
4201
4248
|
e && (a = e.baseOptions);
|
|
4202
4249
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
4203
|
-
await
|
|
4250
|
+
await P(c, "Authorization", e), b(s, i);
|
|
4204
4251
|
let p = a && a.headers ? a.headers : {};
|
|
4205
4252
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4206
4253
|
url: y(s),
|
|
@@ -4208,7 +4255,7 @@ const b = function(e, ...r) {
|
|
|
4208
4255
|
};
|
|
4209
4256
|
},
|
|
4210
4257
|
/**
|
|
4211
|
-
*
|
|
4258
|
+
*
|
|
4212
4259
|
* @summary Retrieves all project quotas for a specified project.
|
|
4213
4260
|
* @param {string} projectId The Id or slug of the project.
|
|
4214
4261
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
@@ -4219,11 +4266,11 @@ const b = function(e, ...r) {
|
|
|
4219
4266
|
*/
|
|
4220
4267
|
getProjectQuotas: async (r, o, n, t, s = {}) => {
|
|
4221
4268
|
I("getProjectQuotas", "projectId", r);
|
|
4222
|
-
const a = "/api/v2/projects/{projectId}/quotas".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a,
|
|
4269
|
+
const a = "/api/v2/projects/{projectId}/quotas".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a, m);
|
|
4223
4270
|
let c;
|
|
4224
4271
|
e && (c = e.baseOptions);
|
|
4225
4272
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
4226
|
-
await
|
|
4273
|
+
await P(p, "Authorization", e), o !== void 0 && (d.PageNumber = o), n !== void 0 && (d.PageSize = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
4227
4274
|
let h = c && c.headers ? c.headers : {};
|
|
4228
4275
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
4229
4276
|
url: y(l),
|
|
@@ -4231,7 +4278,7 @@ const b = function(e, ...r) {
|
|
|
4231
4278
|
};
|
|
4232
4279
|
},
|
|
4233
4280
|
/**
|
|
4234
|
-
*
|
|
4281
|
+
*
|
|
4235
4282
|
* @summary Updates a project quota for a specified project and resource type.
|
|
4236
4283
|
* @param {string} projectId The Id or slug of the project.
|
|
4237
4284
|
* @param {string} resourceTypeId The ID of the resource type.
|
|
@@ -4241,11 +4288,11 @@ const b = function(e, ...r) {
|
|
|
4241
4288
|
*/
|
|
4242
4289
|
updateProjectQuota: async (r, o, n, t = {}) => {
|
|
4243
4290
|
I("updateProjectQuota", "projectId", r), I("updateProjectQuota", "resourceTypeId", o);
|
|
4244
|
-
const s = "/api/v2/projects/{projectId}/quotas/{resourceTypeId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceTypeId}", encodeURIComponent(String(o))), a = new URL(s,
|
|
4291
|
+
const s = "/api/v2/projects/{projectId}/quotas/{resourceTypeId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceTypeId}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
4245
4292
|
let l;
|
|
4246
4293
|
e && (l = e.baseOptions);
|
|
4247
4294
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
4248
|
-
await
|
|
4295
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
4249
4296
|
let d = l && l.headers ? l.headers : {};
|
|
4250
4297
|
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
4251
4298
|
url: y(a),
|
|
@@ -4253,7 +4300,7 @@ const b = function(e, ...r) {
|
|
|
4253
4300
|
};
|
|
4254
4301
|
}
|
|
4255
4302
|
};
|
|
4256
|
-
},
|
|
4303
|
+
}, ms = function(e) {
|
|
4257
4304
|
const r = Vs(e);
|
|
4258
4305
|
return {
|
|
4259
4306
|
/**
|
|
@@ -4269,7 +4316,7 @@ const b = function(e, ...r) {
|
|
|
4269
4316
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
4270
4317
|
},
|
|
4271
4318
|
/**
|
|
4272
|
-
*
|
|
4319
|
+
*
|
|
4273
4320
|
* @summary Retrieves a project quota for a specified project and resource type.
|
|
4274
4321
|
* @param {string} projectId The Id or slug of the project.
|
|
4275
4322
|
* @param {string} resourceTypeId The ID of the resource type.
|
|
@@ -4282,7 +4329,7 @@ const b = function(e, ...r) {
|
|
|
4282
4329
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
4283
4330
|
},
|
|
4284
4331
|
/**
|
|
4285
|
-
*
|
|
4332
|
+
*
|
|
4286
4333
|
* @summary Retrieves all project quotas for a specified project.
|
|
4287
4334
|
* @param {string} projectId The Id or slug of the project.
|
|
4288
4335
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
@@ -4297,7 +4344,7 @@ const b = function(e, ...r) {
|
|
|
4297
4344
|
return (h, u) => R(l, O, A, e)(h, i || u);
|
|
4298
4345
|
},
|
|
4299
4346
|
/**
|
|
4300
|
-
*
|
|
4347
|
+
*
|
|
4301
4348
|
* @summary Updates a project quota for a specified project and resource type.
|
|
4302
4349
|
* @param {string} projectId The Id or slug of the project.
|
|
4303
4350
|
* @param {string} resourceTypeId The ID of the resource type.
|
|
@@ -4311,8 +4358,8 @@ const b = function(e, ...r) {
|
|
|
4311
4358
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
4312
4359
|
}
|
|
4313
4360
|
};
|
|
4314
|
-
},
|
|
4315
|
-
const n =
|
|
4361
|
+
}, Ps = function(e, r, o) {
|
|
4362
|
+
const n = ms(e);
|
|
4316
4363
|
return {
|
|
4317
4364
|
/**
|
|
4318
4365
|
*
|
|
@@ -4325,7 +4372,7 @@ const b = function(e, ...r) {
|
|
|
4325
4372
|
return n.apiV2ProjectsProjectIdQuotasOptions(t.projectId, s).then((a) => a(o, r));
|
|
4326
4373
|
},
|
|
4327
4374
|
/**
|
|
4328
|
-
*
|
|
4375
|
+
*
|
|
4329
4376
|
* @summary Retrieves a project quota for a specified project and resource type.
|
|
4330
4377
|
* @param {ProjectQuotaApiGetProjectQuotaRequest} requestParameters Request parameters.
|
|
4331
4378
|
* @param {*} [options] Override http request option.
|
|
@@ -4335,7 +4382,7 @@ const b = function(e, ...r) {
|
|
|
4335
4382
|
return n.getProjectQuota(t.projectId, t.resourceTypeId, s).then((a) => a(o, r));
|
|
4336
4383
|
},
|
|
4337
4384
|
/**
|
|
4338
|
-
*
|
|
4385
|
+
*
|
|
4339
4386
|
* @summary Retrieves all project quotas for a specified project.
|
|
4340
4387
|
* @param {ProjectQuotaApiGetProjectQuotasRequest} requestParameters Request parameters.
|
|
4341
4388
|
* @param {*} [options] Override http request option.
|
|
@@ -4345,7 +4392,7 @@ const b = function(e, ...r) {
|
|
|
4345
4392
|
return n.getProjectQuotas(t.projectId, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
4346
4393
|
},
|
|
4347
4394
|
/**
|
|
4348
|
-
*
|
|
4395
|
+
*
|
|
4349
4396
|
* @summary Updates a project quota for a specified project and resource type.
|
|
4350
4397
|
* @param {ProjectQuotaApiUpdateProjectQuotaRequest} requestParameters Request parameters.
|
|
4351
4398
|
* @param {*} [options] Override http request option.
|
|
@@ -4366,11 +4413,11 @@ const b = function(e, ...r) {
|
|
|
4366
4413
|
*/
|
|
4367
4414
|
apiV2ProjectsProjectIdResourcesOptions: async (r, o = {}) => {
|
|
4368
4415
|
I("apiV2ProjectsProjectIdResourcesOptions", "projectId", r);
|
|
4369
|
-
const n = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4416
|
+
const n = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
4370
4417
|
let s;
|
|
4371
4418
|
e && (s = e.baseOptions);
|
|
4372
4419
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
4373
|
-
await
|
|
4420
|
+
await P(l, "Authorization", e), b(t, c);
|
|
4374
4421
|
let i = s && s.headers ? s.headers : {};
|
|
4375
4422
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4376
4423
|
url: y(t),
|
|
@@ -4378,7 +4425,7 @@ const b = function(e, ...r) {
|
|
|
4378
4425
|
};
|
|
4379
4426
|
},
|
|
4380
4427
|
/**
|
|
4381
|
-
*
|
|
4428
|
+
*
|
|
4382
4429
|
* @summary Creates a new resource for a specified project.
|
|
4383
4430
|
* @param {string} projectId The Id or slug of the project.
|
|
4384
4431
|
* @param {ResourceForCreationDto} [resourceForCreationDto] The resource data for creation.
|
|
@@ -4387,11 +4434,11 @@ const b = function(e, ...r) {
|
|
|
4387
4434
|
*/
|
|
4388
4435
|
createResourceForProject: async (r, o, n = {}) => {
|
|
4389
4436
|
I("createResourceForProject", "projectId", r);
|
|
4390
|
-
const t = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
4437
|
+
const t = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
4391
4438
|
let a;
|
|
4392
4439
|
e && (a = e.baseOptions);
|
|
4393
4440
|
const l = { method: "POST", ...a, ...n }, c = {}, i = {};
|
|
4394
|
-
await
|
|
4441
|
+
await P(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
4395
4442
|
let p = a && a.headers ? a.headers : {};
|
|
4396
4443
|
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
4397
4444
|
url: y(s),
|
|
@@ -4399,7 +4446,7 @@ const b = function(e, ...r) {
|
|
|
4399
4446
|
};
|
|
4400
4447
|
},
|
|
4401
4448
|
/**
|
|
4402
|
-
*
|
|
4449
|
+
*
|
|
4403
4450
|
* @summary Deletes a resource for a specified project.
|
|
4404
4451
|
* @param {string} projectId The Id or slug of the project.
|
|
4405
4452
|
* @param {string} resourceId The ID of the resource to delete.
|
|
@@ -4408,11 +4455,11 @@ const b = function(e, ...r) {
|
|
|
4408
4455
|
*/
|
|
4409
4456
|
deleteResourceForProject: async (r, o, n = {}) => {
|
|
4410
4457
|
I("deleteResourceForProject", "projectId", r), I("deleteResourceForProject", "resourceId", o);
|
|
4411
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4458
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
4412
4459
|
let a;
|
|
4413
4460
|
e && (a = e.baseOptions);
|
|
4414
4461
|
const l = { method: "DELETE", ...a, ...n }, c = {}, i = {};
|
|
4415
|
-
await
|
|
4462
|
+
await P(c, "Authorization", e), b(s, i);
|
|
4416
4463
|
let p = a && a.headers ? a.headers : {};
|
|
4417
4464
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4418
4465
|
url: y(s),
|
|
@@ -4420,7 +4467,7 @@ const b = function(e, ...r) {
|
|
|
4420
4467
|
};
|
|
4421
4468
|
},
|
|
4422
4469
|
/**
|
|
4423
|
-
*
|
|
4470
|
+
*
|
|
4424
4471
|
* @summary Retrieves a resource for a specified project.
|
|
4425
4472
|
* @param {string} projectId The Id or slug of the project.
|
|
4426
4473
|
* @param {string} resourceId The ID of the resource to retrieve.
|
|
@@ -4429,11 +4476,11 @@ const b = function(e, ...r) {
|
|
|
4429
4476
|
*/
|
|
4430
4477
|
getResourceForProject: async (r, o, n = {}) => {
|
|
4431
4478
|
I("getResourceForProject", "projectId", r), I("getResourceForProject", "resourceId", o);
|
|
4432
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4479
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
4433
4480
|
let a;
|
|
4434
4481
|
e && (a = e.baseOptions);
|
|
4435
4482
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
4436
|
-
await
|
|
4483
|
+
await P(c, "Authorization", e), b(s, i);
|
|
4437
4484
|
let p = a && a.headers ? a.headers : {};
|
|
4438
4485
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4439
4486
|
url: y(s),
|
|
@@ -4441,7 +4488,7 @@ const b = function(e, ...r) {
|
|
|
4441
4488
|
};
|
|
4442
4489
|
},
|
|
4443
4490
|
/**
|
|
4444
|
-
*
|
|
4491
|
+
*
|
|
4445
4492
|
* @summary Retrieves all resources for a specified project.
|
|
4446
4493
|
* @param {string} projectId The Id or slug of the project.
|
|
4447
4494
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
@@ -4452,11 +4499,11 @@ const b = function(e, ...r) {
|
|
|
4452
4499
|
*/
|
|
4453
4500
|
getResourcesForProject: async (r, o, n, t, s = {}) => {
|
|
4454
4501
|
I("getResourcesForProject", "projectId", r);
|
|
4455
|
-
const a = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a,
|
|
4502
|
+
const a = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a, m);
|
|
4456
4503
|
let c;
|
|
4457
4504
|
e && (c = e.baseOptions);
|
|
4458
4505
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
4459
|
-
await
|
|
4506
|
+
await P(p, "Authorization", e), o !== void 0 && (d.PageNumber = o), n !== void 0 && (d.PageSize = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
4460
4507
|
let h = c && c.headers ? c.headers : {};
|
|
4461
4508
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
4462
4509
|
url: y(l),
|
|
@@ -4464,7 +4511,7 @@ const b = function(e, ...r) {
|
|
|
4464
4511
|
};
|
|
4465
4512
|
},
|
|
4466
4513
|
/**
|
|
4467
|
-
*
|
|
4514
|
+
*
|
|
4468
4515
|
* @summary Updates a resource for a specified project.
|
|
4469
4516
|
* @param {string} projectId The Id or slug of the project.
|
|
4470
4517
|
* @param {string} resourceId The ID of the resource to update.
|
|
@@ -4474,11 +4521,11 @@ const b = function(e, ...r) {
|
|
|
4474
4521
|
*/
|
|
4475
4522
|
updateResourceForProject: async (r, o, n, t = {}) => {
|
|
4476
4523
|
I("updateResourceForProject", "projectId", r), I("updateResourceForProject", "resourceId", o);
|
|
4477
|
-
const s = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s,
|
|
4524
|
+
const s = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
4478
4525
|
let l;
|
|
4479
4526
|
e && (l = e.baseOptions);
|
|
4480
4527
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
4481
|
-
await
|
|
4528
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
4482
4529
|
let d = l && l.headers ? l.headers : {};
|
|
4483
4530
|
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
4484
4531
|
url: y(a),
|
|
@@ -4502,7 +4549,7 @@ const b = function(e, ...r) {
|
|
|
4502
4549
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
4503
4550
|
},
|
|
4504
4551
|
/**
|
|
4505
|
-
*
|
|
4552
|
+
*
|
|
4506
4553
|
* @summary Creates a new resource for a specified project.
|
|
4507
4554
|
* @param {string} projectId The Id or slug of the project.
|
|
4508
4555
|
* @param {ResourceForCreationDto} [resourceForCreationDto] The resource data for creation.
|
|
@@ -4515,7 +4562,7 @@ const b = function(e, ...r) {
|
|
|
4515
4562
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
4516
4563
|
},
|
|
4517
4564
|
/**
|
|
4518
|
-
*
|
|
4565
|
+
*
|
|
4519
4566
|
* @summary Deletes a resource for a specified project.
|
|
4520
4567
|
* @param {string} projectId The Id or slug of the project.
|
|
4521
4568
|
* @param {string} resourceId The ID of the resource to delete.
|
|
@@ -4528,7 +4575,7 @@ const b = function(e, ...r) {
|
|
|
4528
4575
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
4529
4576
|
},
|
|
4530
4577
|
/**
|
|
4531
|
-
*
|
|
4578
|
+
*
|
|
4532
4579
|
* @summary Retrieves a resource for a specified project.
|
|
4533
4580
|
* @param {string} projectId The Id or slug of the project.
|
|
4534
4581
|
* @param {string} resourceId The ID of the resource to retrieve.
|
|
@@ -4541,7 +4588,7 @@ const b = function(e, ...r) {
|
|
|
4541
4588
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
4542
4589
|
},
|
|
4543
4590
|
/**
|
|
4544
|
-
*
|
|
4591
|
+
*
|
|
4545
4592
|
* @summary Retrieves all resources for a specified project.
|
|
4546
4593
|
* @param {string} projectId The Id or slug of the project.
|
|
4547
4594
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
@@ -4556,7 +4603,7 @@ const b = function(e, ...r) {
|
|
|
4556
4603
|
return (h, u) => R(l, O, A, e)(h, i || u);
|
|
4557
4604
|
},
|
|
4558
4605
|
/**
|
|
4559
|
-
*
|
|
4606
|
+
*
|
|
4560
4607
|
* @summary Updates a resource for a specified project.
|
|
4561
4608
|
* @param {string} projectId The Id or slug of the project.
|
|
4562
4609
|
* @param {string} resourceId The ID of the resource to update.
|
|
@@ -4584,7 +4631,7 @@ const b = function(e, ...r) {
|
|
|
4584
4631
|
return n.apiV2ProjectsProjectIdResourcesOptions(t.projectId, s).then((a) => a(o, r));
|
|
4585
4632
|
},
|
|
4586
4633
|
/**
|
|
4587
|
-
*
|
|
4634
|
+
*
|
|
4588
4635
|
* @summary Creates a new resource for a specified project.
|
|
4589
4636
|
* @param {ProjectResourceApiCreateResourceForProjectRequest} requestParameters Request parameters.
|
|
4590
4637
|
* @param {*} [options] Override http request option.
|
|
@@ -4594,7 +4641,7 @@ const b = function(e, ...r) {
|
|
|
4594
4641
|
return n.createResourceForProject(t.projectId, t.resourceForCreationDto, s).then((a) => a(o, r));
|
|
4595
4642
|
},
|
|
4596
4643
|
/**
|
|
4597
|
-
*
|
|
4644
|
+
*
|
|
4598
4645
|
* @summary Deletes a resource for a specified project.
|
|
4599
4646
|
* @param {ProjectResourceApiDeleteResourceForProjectRequest} requestParameters Request parameters.
|
|
4600
4647
|
* @param {*} [options] Override http request option.
|
|
@@ -4604,7 +4651,7 @@ const b = function(e, ...r) {
|
|
|
4604
4651
|
return n.deleteResourceForProject(t.projectId, t.resourceId, s).then((a) => a(o, r));
|
|
4605
4652
|
},
|
|
4606
4653
|
/**
|
|
4607
|
-
*
|
|
4654
|
+
*
|
|
4608
4655
|
* @summary Retrieves a resource for a specified project.
|
|
4609
4656
|
* @param {ProjectResourceApiGetResourceForProjectRequest} requestParameters Request parameters.
|
|
4610
4657
|
* @param {*} [options] Override http request option.
|
|
@@ -4614,7 +4661,7 @@ const b = function(e, ...r) {
|
|
|
4614
4661
|
return n.getResourceForProject(t.projectId, t.resourceId, s).then((a) => a(o, r));
|
|
4615
4662
|
},
|
|
4616
4663
|
/**
|
|
4617
|
-
*
|
|
4664
|
+
*
|
|
4618
4665
|
* @summary Retrieves all resources for a specified project.
|
|
4619
4666
|
* @param {ProjectResourceApiGetResourcesForProjectRequest} requestParameters Request parameters.
|
|
4620
4667
|
* @param {*} [options] Override http request option.
|
|
@@ -4624,7 +4671,7 @@ const b = function(e, ...r) {
|
|
|
4624
4671
|
return n.getResourcesForProject(t.projectId, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
4625
4672
|
},
|
|
4626
4673
|
/**
|
|
4627
|
-
*
|
|
4674
|
+
*
|
|
4628
4675
|
* @summary Updates a resource for a specified project.
|
|
4629
4676
|
* @param {ProjectResourceApiUpdateResourceForProjectRequest} requestParameters Request parameters.
|
|
4630
4677
|
* @param {*} [options] Override http request option.
|
|
@@ -4646,11 +4693,11 @@ const b = function(e, ...r) {
|
|
|
4646
4693
|
*/
|
|
4647
4694
|
apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions: async (r, o, n = {}) => {
|
|
4648
4695
|
I("apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions", "projectId", r), I("apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions", "resourceId", o);
|
|
4649
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/quota".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4696
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/quota".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
4650
4697
|
let a;
|
|
4651
4698
|
e && (a = e.baseOptions);
|
|
4652
4699
|
const l = { method: "OPTIONS", ...a, ...n }, c = {}, i = {};
|
|
4653
|
-
await
|
|
4700
|
+
await P(c, "Authorization", e), b(s, i);
|
|
4654
4701
|
let p = a && a.headers ? a.headers : {};
|
|
4655
4702
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4656
4703
|
url: y(s),
|
|
@@ -4658,7 +4705,7 @@ const b = function(e, ...r) {
|
|
|
4658
4705
|
};
|
|
4659
4706
|
},
|
|
4660
4707
|
/**
|
|
4661
|
-
*
|
|
4708
|
+
*
|
|
4662
4709
|
* @summary Retrieves the resource quota for a specific resource in a project.
|
|
4663
4710
|
* @param {string} projectId The Id or slug of the project.
|
|
4664
4711
|
* @param {string} resourceId The ID of the resource.
|
|
@@ -4667,11 +4714,11 @@ const b = function(e, ...r) {
|
|
|
4667
4714
|
*/
|
|
4668
4715
|
getQuotaForResourceForProject: async (r, o, n = {}) => {
|
|
4669
4716
|
I("getQuotaForResourceForProject", "projectId", r), I("getQuotaForResourceForProject", "resourceId", o);
|
|
4670
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/quota".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4717
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/quota".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
4671
4718
|
let a;
|
|
4672
4719
|
e && (a = e.baseOptions);
|
|
4673
4720
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
4674
|
-
await
|
|
4721
|
+
await P(c, "Authorization", e), b(s, i);
|
|
4675
4722
|
let p = a && a.headers ? a.headers : {};
|
|
4676
4723
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4677
4724
|
url: y(s),
|
|
@@ -4696,7 +4743,7 @@ const b = function(e, ...r) {
|
|
|
4696
4743
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
4697
4744
|
},
|
|
4698
4745
|
/**
|
|
4699
|
-
*
|
|
4746
|
+
*
|
|
4700
4747
|
* @summary Retrieves the resource quota for a specific resource in a project.
|
|
4701
4748
|
* @param {string} projectId The Id or slug of the project.
|
|
4702
4749
|
* @param {string} resourceId The ID of the resource.
|
|
@@ -4723,7 +4770,7 @@ const b = function(e, ...r) {
|
|
|
4723
4770
|
return n.apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions(t.projectId, t.resourceId, s).then((a) => a(o, r));
|
|
4724
4771
|
},
|
|
4725
4772
|
/**
|
|
4726
|
-
*
|
|
4773
|
+
*
|
|
4727
4774
|
* @summary Retrieves the resource quota for a specific resource in a project.
|
|
4728
4775
|
* @param {ProjectResourceQuotaApiGetQuotaForResourceForProjectRequest} requestParameters Request parameters.
|
|
4729
4776
|
* @param {*} [options] Override http request option.
|
|
@@ -4744,11 +4791,11 @@ const b = function(e, ...r) {
|
|
|
4744
4791
|
*/
|
|
4745
4792
|
apiV2ProjectsProjectIdResourceTypesOptions: async (r, o = {}) => {
|
|
4746
4793
|
I("apiV2ProjectsProjectIdResourceTypesOptions", "projectId", r);
|
|
4747
|
-
const n = "/api/v2/projects/{projectId}/resource-types".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4794
|
+
const n = "/api/v2/projects/{projectId}/resource-types".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
4748
4795
|
let s;
|
|
4749
4796
|
e && (s = e.baseOptions);
|
|
4750
4797
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
4751
|
-
await
|
|
4798
|
+
await P(l, "Authorization", e), b(t, c);
|
|
4752
4799
|
let i = s && s.headers ? s.headers : {};
|
|
4753
4800
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4754
4801
|
url: y(t),
|
|
@@ -4756,7 +4803,7 @@ const b = function(e, ...r) {
|
|
|
4756
4803
|
};
|
|
4757
4804
|
},
|
|
4758
4805
|
/**
|
|
4759
|
-
*
|
|
4806
|
+
*
|
|
4760
4807
|
* @summary Retrieves the available resource types information for a specific project.
|
|
4761
4808
|
* @param {string} projectId The Id or slug of the project.
|
|
4762
4809
|
* @param {*} [options] Override http request option.
|
|
@@ -4764,11 +4811,11 @@ const b = function(e, ...r) {
|
|
|
4764
4811
|
*/
|
|
4765
4812
|
getAvailableResourceTypesInformationForProject: async (r, o = {}) => {
|
|
4766
4813
|
I("getAvailableResourceTypesInformationForProject", "projectId", r);
|
|
4767
|
-
const n = "/api/v2/projects/{projectId}/resource-types".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4814
|
+
const n = "/api/v2/projects/{projectId}/resource-types".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
4768
4815
|
let s;
|
|
4769
4816
|
e && (s = e.baseOptions);
|
|
4770
4817
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
4771
|
-
await
|
|
4818
|
+
await P(l, "Authorization", e), b(t, c);
|
|
4772
4819
|
let i = s && s.headers ? s.headers : {};
|
|
4773
4820
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4774
4821
|
url: y(t),
|
|
@@ -4792,7 +4839,7 @@ const b = function(e, ...r) {
|
|
|
4792
4839
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
4793
4840
|
},
|
|
4794
4841
|
/**
|
|
4795
|
-
*
|
|
4842
|
+
*
|
|
4796
4843
|
* @summary Retrieves the available resource types information for a specific project.
|
|
4797
4844
|
* @param {string} projectId The Id or slug of the project.
|
|
4798
4845
|
* @param {*} [options] Override http request option.
|
|
@@ -4818,7 +4865,7 @@ const b = function(e, ...r) {
|
|
|
4818
4865
|
return n.apiV2ProjectsProjectIdResourceTypesOptions(t.projectId, s).then((a) => a(o, r));
|
|
4819
4866
|
},
|
|
4820
4867
|
/**
|
|
4821
|
-
*
|
|
4868
|
+
*
|
|
4822
4869
|
* @summary Retrieves the available resource types information for a specific project.
|
|
4823
4870
|
* @param {ProjectResourceTypeApiGetAvailableResourceTypesInformationForProjectRequest} requestParameters Request parameters.
|
|
4824
4871
|
* @param {*} [options] Override http request option.
|
|
@@ -4837,11 +4884,11 @@ const b = function(e, ...r) {
|
|
|
4837
4884
|
* @throws {RequiredError}
|
|
4838
4885
|
*/
|
|
4839
4886
|
apiV2ResourcesOptions: async (r = {}) => {
|
|
4840
|
-
const o = "/api/v2/resources", n = new URL(o,
|
|
4887
|
+
const o = "/api/v2/resources", n = new URL(o, m);
|
|
4841
4888
|
let t;
|
|
4842
4889
|
e && (t = e.baseOptions);
|
|
4843
4890
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
4844
|
-
await
|
|
4891
|
+
await P(a, "Authorization", e), b(n, l);
|
|
4845
4892
|
let c = t && t.headers ? t.headers : {};
|
|
4846
4893
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
4847
4894
|
url: y(n),
|
|
@@ -4849,7 +4896,7 @@ const b = function(e, ...r) {
|
|
|
4849
4896
|
};
|
|
4850
4897
|
},
|
|
4851
4898
|
/**
|
|
4852
|
-
*
|
|
4899
|
+
*
|
|
4853
4900
|
* @summary Retrieves a resource by its ID.
|
|
4854
4901
|
* @param {string} resourceId The ID of the resource to retrieve.
|
|
4855
4902
|
* @param {*} [options] Override http request option.
|
|
@@ -4857,11 +4904,11 @@ const b = function(e, ...r) {
|
|
|
4857
4904
|
*/
|
|
4858
4905
|
getResource: async (r, o = {}) => {
|
|
4859
4906
|
I("getResource", "resourceId", r);
|
|
4860
|
-
const n = "/api/v2/resources/{resourceId}".replace("{resourceId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4907
|
+
const n = "/api/v2/resources/{resourceId}".replace("{resourceId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
4861
4908
|
let s;
|
|
4862
4909
|
e && (s = e.baseOptions);
|
|
4863
4910
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
4864
|
-
await
|
|
4911
|
+
await P(l, "Authorization", e), b(t, c);
|
|
4865
4912
|
let i = s && s.headers ? s.headers : {};
|
|
4866
4913
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4867
4914
|
url: y(t),
|
|
@@ -4884,7 +4931,7 @@ const b = function(e, ...r) {
|
|
|
4884
4931
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
4885
4932
|
},
|
|
4886
4933
|
/**
|
|
4887
|
-
*
|
|
4934
|
+
*
|
|
4888
4935
|
* @summary Retrieves a resource by its ID.
|
|
4889
4936
|
* @param {string} resourceId The ID of the resource to retrieve.
|
|
4890
4937
|
* @param {*} [options] Override http request option.
|
|
@@ -4909,7 +4956,7 @@ const b = function(e, ...r) {
|
|
|
4909
4956
|
return n.apiV2ResourcesOptions(t).then((s) => s(o, r));
|
|
4910
4957
|
},
|
|
4911
4958
|
/**
|
|
4912
|
-
*
|
|
4959
|
+
*
|
|
4913
4960
|
* @summary Retrieves a resource by its ID.
|
|
4914
4961
|
* @param {ResourceApiGetResourceRequest} requestParameters Request parameters.
|
|
4915
4962
|
* @param {*} [options] Override http request option.
|
|
@@ -4928,11 +4975,11 @@ const b = function(e, ...r) {
|
|
|
4928
4975
|
* @throws {RequiredError}
|
|
4929
4976
|
*/
|
|
4930
4977
|
apiV2ResourceTypesOptions: async (r = {}) => {
|
|
4931
|
-
const o = "/api/v2/resource-types", n = new URL(o,
|
|
4978
|
+
const o = "/api/v2/resource-types", n = new URL(o, m);
|
|
4932
4979
|
let t;
|
|
4933
4980
|
e && (t = e.baseOptions);
|
|
4934
4981
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
4935
|
-
await
|
|
4982
|
+
await P(a, "Authorization", e), b(n, l);
|
|
4936
4983
|
let c = t && t.headers ? t.headers : {};
|
|
4937
4984
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
4938
4985
|
url: y(n),
|
|
@@ -4940,7 +4987,7 @@ const b = function(e, ...r) {
|
|
|
4940
4987
|
};
|
|
4941
4988
|
},
|
|
4942
4989
|
/**
|
|
4943
|
-
*
|
|
4990
|
+
*
|
|
4944
4991
|
* @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials.
|
|
4945
4992
|
* @param {number} gitlabProjectId The ID of the GitLab project.
|
|
4946
4993
|
* @param {string} domain Domain/Host of the GitLab Provider.
|
|
@@ -4950,11 +4997,11 @@ const b = function(e, ...r) {
|
|
|
4950
4997
|
*/
|
|
4951
4998
|
getAllGitlabBranchesForProject: async (r, o, n, t = {}) => {
|
|
4952
4999
|
I("getAllGitlabBranchesForProject", "gitlabProjectId", r), I("getAllGitlabBranchesForProject", "domain", o), I("getAllGitlabBranchesForProject", "accessToken", n);
|
|
4953
|
-
const s = "/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches".replace("{gitlabProjectId}", encodeURIComponent(String(r))), a = new URL(s,
|
|
5000
|
+
const s = "/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches".replace("{gitlabProjectId}", encodeURIComponent(String(r))), a = new URL(s, m);
|
|
4954
5001
|
let l;
|
|
4955
5002
|
e && (l = e.baseOptions);
|
|
4956
5003
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
4957
|
-
await
|
|
5004
|
+
await P(i, "Authorization", e), o !== void 0 && (p.Domain = o), n !== void 0 && (p.AccessToken = n), b(a, p);
|
|
4958
5005
|
let d = l && l.headers ? l.headers : {};
|
|
4959
5006
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
4960
5007
|
url: y(a),
|
|
@@ -4962,7 +5009,7 @@ const b = function(e, ...r) {
|
|
|
4962
5009
|
};
|
|
4963
5010
|
},
|
|
4964
5011
|
/**
|
|
4965
|
-
*
|
|
5012
|
+
*
|
|
4966
5013
|
* @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials.
|
|
4967
5014
|
* @param {string} domain Domain/Host of the GitLab Provider.
|
|
4968
5015
|
* @param {string} accessToken GitLab Project or Group Access Token.
|
|
@@ -4971,11 +5018,11 @@ const b = function(e, ...r) {
|
|
|
4971
5018
|
*/
|
|
4972
5019
|
getAllGitlabProjects: async (r, o, n = {}) => {
|
|
4973
5020
|
I("getAllGitlabProjects", "domain", r), I("getAllGitlabProjects", "accessToken", o);
|
|
4974
|
-
const t = "/api/v2/resource-types/gitlab/projects", s = new URL(t,
|
|
5021
|
+
const t = "/api/v2/resource-types/gitlab/projects", s = new URL(t, m);
|
|
4975
5022
|
let a;
|
|
4976
5023
|
e && (a = e.baseOptions);
|
|
4977
5024
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
4978
|
-
await
|
|
5025
|
+
await P(c, "Authorization", e), r !== void 0 && (i.Domain = r), o !== void 0 && (i.AccessToken = o), b(s, i);
|
|
4979
5026
|
let p = a && a.headers ? a.headers : {};
|
|
4980
5027
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4981
5028
|
url: y(s),
|
|
@@ -4983,17 +5030,17 @@ const b = function(e, ...r) {
|
|
|
4983
5030
|
};
|
|
4984
5031
|
},
|
|
4985
5032
|
/**
|
|
4986
|
-
*
|
|
5033
|
+
*
|
|
4987
5034
|
* @summary Retrieves the entire global resource types information.
|
|
4988
5035
|
* @param {*} [options] Override http request option.
|
|
4989
5036
|
* @throws {RequiredError}
|
|
4990
5037
|
*/
|
|
4991
5038
|
getAllResourceTypesInformation: async (r = {}) => {
|
|
4992
|
-
const o = "/api/v2/resource-types/types", n = new URL(o,
|
|
5039
|
+
const o = "/api/v2/resource-types/types", n = new URL(o, m);
|
|
4993
5040
|
let t;
|
|
4994
5041
|
e && (t = e.baseOptions);
|
|
4995
5042
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
4996
|
-
await
|
|
5043
|
+
await P(a, "Authorization", e), b(n, l);
|
|
4997
5044
|
let c = t && t.headers ? t.headers : {};
|
|
4998
5045
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
4999
5046
|
url: y(n),
|
|
@@ -5001,7 +5048,7 @@ const b = function(e, ...r) {
|
|
|
5001
5048
|
};
|
|
5002
5049
|
},
|
|
5003
5050
|
/**
|
|
5004
|
-
*
|
|
5051
|
+
*
|
|
5005
5052
|
* @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials.
|
|
5006
5053
|
* @param {number} gitlabProjectId The ID of the GitLab project.
|
|
5007
5054
|
* @param {string} domain Domain/Host of the GitLab Provider.
|
|
@@ -5011,11 +5058,11 @@ const b = function(e, ...r) {
|
|
|
5011
5058
|
*/
|
|
5012
5059
|
getGitlabProject: async (r, o, n, t = {}) => {
|
|
5013
5060
|
I("getGitlabProject", "gitlabProjectId", r), I("getGitlabProject", "domain", o), I("getGitlabProject", "accessToken", n);
|
|
5014
|
-
const s = "/api/v2/resource-types/gitlab/projects/{gitlabProjectId}".replace("{gitlabProjectId}", encodeURIComponent(String(r))), a = new URL(s,
|
|
5061
|
+
const s = "/api/v2/resource-types/gitlab/projects/{gitlabProjectId}".replace("{gitlabProjectId}", encodeURIComponent(String(r))), a = new URL(s, m);
|
|
5015
5062
|
let l;
|
|
5016
5063
|
e && (l = e.baseOptions);
|
|
5017
5064
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
5018
|
-
await
|
|
5065
|
+
await P(i, "Authorization", e), o !== void 0 && (p.Domain = o), n !== void 0 && (p.AccessToken = n), b(a, p);
|
|
5019
5066
|
let d = l && l.headers ? l.headers : {};
|
|
5020
5067
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
5021
5068
|
url: y(a),
|
|
@@ -5023,7 +5070,7 @@ const b = function(e, ...r) {
|
|
|
5023
5070
|
};
|
|
5024
5071
|
},
|
|
5025
5072
|
/**
|
|
5026
|
-
*
|
|
5073
|
+
*
|
|
5027
5074
|
* @summary Retrieves the resource type information for a specific resource type.
|
|
5028
5075
|
* @param {string} resourceTypeId The ID of the resource type to retrieve.
|
|
5029
5076
|
* @param {*} [options] Override http request option.
|
|
@@ -5031,11 +5078,11 @@ const b = function(e, ...r) {
|
|
|
5031
5078
|
*/
|
|
5032
5079
|
getResourceTypeInformation: async (r, o = {}) => {
|
|
5033
5080
|
I("getResourceTypeInformation", "resourceTypeId", r);
|
|
5034
|
-
const n = "/api/v2/resource-types/types/{resourceTypeId}".replace("{resourceTypeId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
5081
|
+
const n = "/api/v2/resource-types/types/{resourceTypeId}".replace("{resourceTypeId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
5035
5082
|
let s;
|
|
5036
5083
|
e && (s = e.baseOptions);
|
|
5037
5084
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
5038
|
-
await
|
|
5085
|
+
await P(l, "Authorization", e), b(t, c);
|
|
5039
5086
|
let i = s && s.headers ? s.headers : {};
|
|
5040
5087
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5041
5088
|
url: y(t),
|
|
@@ -5058,7 +5105,7 @@ const b = function(e, ...r) {
|
|
|
5058
5105
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
5059
5106
|
},
|
|
5060
5107
|
/**
|
|
5061
|
-
*
|
|
5108
|
+
*
|
|
5062
5109
|
* @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials.
|
|
5063
5110
|
* @param {number} gitlabProjectId The ID of the GitLab project.
|
|
5064
5111
|
* @param {string} domain Domain/Host of the GitLab Provider.
|
|
@@ -5072,7 +5119,7 @@ const b = function(e, ...r) {
|
|
|
5072
5119
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
5073
5120
|
},
|
|
5074
5121
|
/**
|
|
5075
|
-
*
|
|
5122
|
+
*
|
|
5076
5123
|
* @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials.
|
|
5077
5124
|
* @param {string} domain Domain/Host of the GitLab Provider.
|
|
5078
5125
|
* @param {string} accessToken GitLab Project or Group Access Token.
|
|
@@ -5085,7 +5132,7 @@ const b = function(e, ...r) {
|
|
|
5085
5132
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
5086
5133
|
},
|
|
5087
5134
|
/**
|
|
5088
|
-
*
|
|
5135
|
+
*
|
|
5089
5136
|
* @summary Retrieves the entire global resource types information.
|
|
5090
5137
|
* @param {*} [options] Override http request option.
|
|
5091
5138
|
* @throws {RequiredError}
|
|
@@ -5096,7 +5143,7 @@ const b = function(e, ...r) {
|
|
|
5096
5143
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
5097
5144
|
},
|
|
5098
5145
|
/**
|
|
5099
|
-
*
|
|
5146
|
+
*
|
|
5100
5147
|
* @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials.
|
|
5101
5148
|
* @param {number} gitlabProjectId The ID of the GitLab project.
|
|
5102
5149
|
* @param {string} domain Domain/Host of the GitLab Provider.
|
|
@@ -5110,7 +5157,7 @@ const b = function(e, ...r) {
|
|
|
5110
5157
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
5111
5158
|
},
|
|
5112
5159
|
/**
|
|
5113
|
-
*
|
|
5160
|
+
*
|
|
5114
5161
|
* @summary Retrieves the resource type information for a specific resource type.
|
|
5115
5162
|
* @param {string} resourceTypeId The ID of the resource type to retrieve.
|
|
5116
5163
|
* @param {*} [options] Override http request option.
|
|
@@ -5135,7 +5182,7 @@ const b = function(e, ...r) {
|
|
|
5135
5182
|
return n.apiV2ResourceTypesOptions(t).then((s) => s(o, r));
|
|
5136
5183
|
},
|
|
5137
5184
|
/**
|
|
5138
|
-
*
|
|
5185
|
+
*
|
|
5139
5186
|
* @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials.
|
|
5140
5187
|
* @param {ResourceTypeApiGetAllGitlabBranchesForProjectRequest} requestParameters Request parameters.
|
|
5141
5188
|
* @param {*} [options] Override http request option.
|
|
@@ -5145,7 +5192,7 @@ const b = function(e, ...r) {
|
|
|
5145
5192
|
return n.getAllGitlabBranchesForProject(t.gitlabProjectId, t.domain, t.accessToken, s).then((a) => a(o, r));
|
|
5146
5193
|
},
|
|
5147
5194
|
/**
|
|
5148
|
-
*
|
|
5195
|
+
*
|
|
5149
5196
|
* @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials.
|
|
5150
5197
|
* @param {ResourceTypeApiGetAllGitlabProjectsRequest} requestParameters Request parameters.
|
|
5151
5198
|
* @param {*} [options] Override http request option.
|
|
@@ -5155,7 +5202,7 @@ const b = function(e, ...r) {
|
|
|
5155
5202
|
return n.getAllGitlabProjects(t.domain, t.accessToken, s).then((a) => a(o, r));
|
|
5156
5203
|
},
|
|
5157
5204
|
/**
|
|
5158
|
-
*
|
|
5205
|
+
*
|
|
5159
5206
|
* @summary Retrieves the entire global resource types information.
|
|
5160
5207
|
* @param {*} [options] Override http request option.
|
|
5161
5208
|
* @throws {RequiredError}
|
|
@@ -5164,7 +5211,7 @@ const b = function(e, ...r) {
|
|
|
5164
5211
|
return n.getAllResourceTypesInformation(t).then((s) => s(o, r));
|
|
5165
5212
|
},
|
|
5166
5213
|
/**
|
|
5167
|
-
*
|
|
5214
|
+
*
|
|
5168
5215
|
* @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials.
|
|
5169
5216
|
* @param {ResourceTypeApiGetGitlabProjectRequest} requestParameters Request parameters.
|
|
5170
5217
|
* @param {*} [options] Override http request option.
|
|
@@ -5174,7 +5221,7 @@ const b = function(e, ...r) {
|
|
|
5174
5221
|
return n.getGitlabProject(t.gitlabProjectId, t.domain, t.accessToken, s).then((a) => a(o, r));
|
|
5175
5222
|
},
|
|
5176
5223
|
/**
|
|
5177
|
-
*
|
|
5224
|
+
*
|
|
5178
5225
|
* @summary Retrieves the resource type information for a specific resource type.
|
|
5179
5226
|
* @param {ResourceTypeApiGetResourceTypeInformationRequest} requestParameters Request parameters.
|
|
5180
5227
|
* @param {*} [options] Override http request option.
|
|
@@ -5193,11 +5240,11 @@ const b = function(e, ...r) {
|
|
|
5193
5240
|
* @throws {RequiredError}
|
|
5194
5241
|
*/
|
|
5195
5242
|
apiV2RolesOptions: async (r = {}) => {
|
|
5196
|
-
const o = "/api/v2/roles", n = new URL(o,
|
|
5243
|
+
const o = "/api/v2/roles", n = new URL(o, m);
|
|
5197
5244
|
let t;
|
|
5198
5245
|
e && (t = e.baseOptions);
|
|
5199
5246
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5200
|
-
await
|
|
5247
|
+
await P(a, "Authorization", e), b(n, l);
|
|
5201
5248
|
let c = t && t.headers ? t.headers : {};
|
|
5202
5249
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5203
5250
|
url: y(n),
|
|
@@ -5205,7 +5252,7 @@ const b = function(e, ...r) {
|
|
|
5205
5252
|
};
|
|
5206
5253
|
},
|
|
5207
5254
|
/**
|
|
5208
|
-
*
|
|
5255
|
+
*
|
|
5209
5256
|
* @summary Retrieves a role by ID.
|
|
5210
5257
|
* @param {string} roleId The ID of the role.
|
|
5211
5258
|
* @param {*} [options] Override http request option.
|
|
@@ -5213,11 +5260,11 @@ const b = function(e, ...r) {
|
|
|
5213
5260
|
*/
|
|
5214
5261
|
getRole: async (r, o = {}) => {
|
|
5215
5262
|
I("getRole", "roleId", r);
|
|
5216
|
-
const n = "/api/v2/roles/{roleId}".replace("{roleId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
5263
|
+
const n = "/api/v2/roles/{roleId}".replace("{roleId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
5217
5264
|
let s;
|
|
5218
5265
|
e && (s = e.baseOptions);
|
|
5219
5266
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
5220
|
-
await
|
|
5267
|
+
await P(l, "Authorization", e), b(t, c);
|
|
5221
5268
|
let i = s && s.headers ? s.headers : {};
|
|
5222
5269
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5223
5270
|
url: y(t),
|
|
@@ -5225,7 +5272,7 @@ const b = function(e, ...r) {
|
|
|
5225
5272
|
};
|
|
5226
5273
|
},
|
|
5227
5274
|
/**
|
|
5228
|
-
*
|
|
5275
|
+
*
|
|
5229
5276
|
* @summary Retrieves all roles.
|
|
5230
5277
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
5231
5278
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -5234,11 +5281,11 @@ const b = function(e, ...r) {
|
|
|
5234
5281
|
* @throws {RequiredError}
|
|
5235
5282
|
*/
|
|
5236
5283
|
getRoles: async (r, o, n, t = {}) => {
|
|
5237
|
-
const s = "/api/v2/roles", a = new URL(s,
|
|
5284
|
+
const s = "/api/v2/roles", a = new URL(s, m);
|
|
5238
5285
|
let l;
|
|
5239
5286
|
e && (l = e.baseOptions);
|
|
5240
5287
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
5241
|
-
await
|
|
5288
|
+
await P(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
5242
5289
|
let d = l && l.headers ? l.headers : {};
|
|
5243
5290
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
5244
5291
|
url: y(a),
|
|
@@ -5261,7 +5308,7 @@ const b = function(e, ...r) {
|
|
|
5261
5308
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
5262
5309
|
},
|
|
5263
5310
|
/**
|
|
5264
|
-
*
|
|
5311
|
+
*
|
|
5265
5312
|
* @summary Retrieves a role by ID.
|
|
5266
5313
|
* @param {string} roleId The ID of the role.
|
|
5267
5314
|
* @param {*} [options] Override http request option.
|
|
@@ -5273,7 +5320,7 @@ const b = function(e, ...r) {
|
|
|
5273
5320
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
5274
5321
|
},
|
|
5275
5322
|
/**
|
|
5276
|
-
*
|
|
5323
|
+
*
|
|
5277
5324
|
* @summary Retrieves all roles.
|
|
5278
5325
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
5279
5326
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -5287,7 +5334,7 @@ const b = function(e, ...r) {
|
|
|
5287
5334
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
5288
5335
|
}
|
|
5289
5336
|
};
|
|
5290
|
-
},
|
|
5337
|
+
}, Ms = function(e, r, o) {
|
|
5291
5338
|
const n = zs(e);
|
|
5292
5339
|
return {
|
|
5293
5340
|
/**
|
|
@@ -5300,7 +5347,7 @@ const b = function(e, ...r) {
|
|
|
5300
5347
|
return n.apiV2RolesOptions(t).then((s) => s(o, r));
|
|
5301
5348
|
},
|
|
5302
5349
|
/**
|
|
5303
|
-
*
|
|
5350
|
+
*
|
|
5304
5351
|
* @summary Retrieves a role by ID.
|
|
5305
5352
|
* @param {RoleApiGetRoleRequest} requestParameters Request parameters.
|
|
5306
5353
|
* @param {*} [options] Override http request option.
|
|
@@ -5310,7 +5357,7 @@ const b = function(e, ...r) {
|
|
|
5310
5357
|
return n.getRole(t.roleId, s).then((a) => a(o, r));
|
|
5311
5358
|
},
|
|
5312
5359
|
/**
|
|
5313
|
-
*
|
|
5360
|
+
*
|
|
5314
5361
|
* @summary Retrieves all roles.
|
|
5315
5362
|
* @param {RoleApiGetRolesRequest} requestParameters Request parameters.
|
|
5316
5363
|
* @param {*} [options] Override http request option.
|
|
@@ -5320,7 +5367,7 @@ const b = function(e, ...r) {
|
|
|
5320
5367
|
return n.getRoles(t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
5321
5368
|
}
|
|
5322
5369
|
};
|
|
5323
|
-
},
|
|
5370
|
+
}, Hs = function(e) {
|
|
5324
5371
|
return {
|
|
5325
5372
|
/**
|
|
5326
5373
|
*
|
|
@@ -5329,11 +5376,11 @@ const b = function(e, ...r) {
|
|
|
5329
5376
|
* @throws {RequiredError}
|
|
5330
5377
|
*/
|
|
5331
5378
|
apiV2SearchOptions: async (r = {}) => {
|
|
5332
|
-
const o = "/api/v2/search", n = new URL(o,
|
|
5379
|
+
const o = "/api/v2/search", n = new URL(o, m);
|
|
5333
5380
|
let t;
|
|
5334
5381
|
e && (t = e.baseOptions);
|
|
5335
5382
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5336
|
-
await
|
|
5383
|
+
await P(a, "Authorization", e), b(n, l);
|
|
5337
5384
|
let c = t && t.headers ? t.headers : {};
|
|
5338
5385
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5339
5386
|
url: y(n),
|
|
@@ -5341,7 +5388,7 @@ const b = function(e, ...r) {
|
|
|
5341
5388
|
};
|
|
5342
5389
|
},
|
|
5343
5390
|
/**
|
|
5344
|
-
*
|
|
5391
|
+
*
|
|
5345
5392
|
* @summary Retrieves a search result by given search parameters.
|
|
5346
5393
|
* @param {string} [query] The search query
|
|
5347
5394
|
* @param {boolean} [useAdvancedSyntax] Set true for advanced Elasticsearch search syntax
|
|
@@ -5354,11 +5401,11 @@ const b = function(e, ...r) {
|
|
|
5354
5401
|
* @throws {RequiredError}
|
|
5355
5402
|
*/
|
|
5356
5403
|
getSearchResults: async (r, o, n, t, s, a, l, c = {}) => {
|
|
5357
|
-
const i = "/api/v2/search", p = new URL(i,
|
|
5404
|
+
const i = "/api/v2/search", p = new URL(i, m);
|
|
5358
5405
|
let d;
|
|
5359
5406
|
e && (d = e.baseOptions);
|
|
5360
5407
|
const h = { method: "GET", ...d, ...c }, u = {}, w = {};
|
|
5361
|
-
await
|
|
5408
|
+
await P(u, "Authorization", e), r !== void 0 && (w.Query = r), o !== void 0 && (w.UseAdvancedSyntax = o), n && (w.Languages = n), t !== void 0 && (w.Category = t), s !== void 0 && (w.PageNumber = s), a !== void 0 && (w.PageSize = a), l !== void 0 && (w.OrderBy = l), b(p, w);
|
|
5362
5409
|
let T = d && d.headers ? d.headers : {};
|
|
5363
5410
|
return h.headers = { ...u, ...T, ...c.headers }, {
|
|
5364
5411
|
url: y(p),
|
|
@@ -5367,7 +5414,7 @@ const b = function(e, ...r) {
|
|
|
5367
5414
|
}
|
|
5368
5415
|
};
|
|
5369
5416
|
}, Qs = function(e) {
|
|
5370
|
-
const r =
|
|
5417
|
+
const r = Hs(e);
|
|
5371
5418
|
return {
|
|
5372
5419
|
/**
|
|
5373
5420
|
*
|
|
@@ -5381,7 +5428,7 @@ const b = function(e, ...r) {
|
|
|
5381
5428
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
5382
5429
|
},
|
|
5383
5430
|
/**
|
|
5384
|
-
*
|
|
5431
|
+
*
|
|
5385
5432
|
* @summary Retrieves a search result by given search parameters.
|
|
5386
5433
|
* @param {string} [query] The search query
|
|
5387
5434
|
* @param {boolean} [useAdvancedSyntax] Set true for advanced Elasticsearch search syntax
|
|
@@ -5412,7 +5459,7 @@ const b = function(e, ...r) {
|
|
|
5412
5459
|
return n.apiV2SearchOptions(t).then((s) => s(o, r));
|
|
5413
5460
|
},
|
|
5414
5461
|
/**
|
|
5415
|
-
*
|
|
5462
|
+
*
|
|
5416
5463
|
* @summary Retrieves a search result by given search parameters.
|
|
5417
5464
|
* @param {SearchApiGetSearchResultsRequest} requestParameters Request parameters.
|
|
5418
5465
|
* @param {*} [options] Override http request option.
|
|
@@ -5425,18 +5472,18 @@ const b = function(e, ...r) {
|
|
|
5425
5472
|
}, Ds = function(e) {
|
|
5426
5473
|
return {
|
|
5427
5474
|
/**
|
|
5428
|
-
*
|
|
5475
|
+
*
|
|
5429
5476
|
* @summary Accepts the current Terms Of Service for the current authenticated user.
|
|
5430
5477
|
* @param {UserTermsOfServiceAcceptDto} [userTermsOfServiceAcceptDto]
|
|
5431
5478
|
* @param {*} [options] Override http request option.
|
|
5432
5479
|
* @throws {RequiredError}
|
|
5433
5480
|
*/
|
|
5434
5481
|
acceptCurrentTos: async (r, o = {}) => {
|
|
5435
|
-
const n = "/api/v2/self/tos", t = new URL(n,
|
|
5482
|
+
const n = "/api/v2/self/tos", t = new URL(n, m);
|
|
5436
5483
|
let s;
|
|
5437
5484
|
e && (s = e.baseOptions);
|
|
5438
5485
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5439
|
-
await
|
|
5486
|
+
await P(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
5440
5487
|
let i = s && s.headers ? s.headers : {};
|
|
5441
5488
|
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
5442
5489
|
url: y(t),
|
|
@@ -5450,11 +5497,11 @@ const b = function(e, ...r) {
|
|
|
5450
5497
|
* @throws {RequiredError}
|
|
5451
5498
|
*/
|
|
5452
5499
|
apiV2SelfOptions: async (r = {}) => {
|
|
5453
|
-
const o = "/api/v2/self", n = new URL(o,
|
|
5500
|
+
const o = "/api/v2/self", n = new URL(o, m);
|
|
5454
5501
|
let t;
|
|
5455
5502
|
e && (t = e.baseOptions);
|
|
5456
5503
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5457
|
-
await
|
|
5504
|
+
await P(a, "Authorization", e), b(n, l);
|
|
5458
5505
|
let c = t && t.headers ? t.headers : {};
|
|
5459
5506
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5460
5507
|
url: y(n),
|
|
@@ -5462,7 +5509,7 @@ const b = function(e, ...r) {
|
|
|
5462
5509
|
};
|
|
5463
5510
|
},
|
|
5464
5511
|
/**
|
|
5465
|
-
*
|
|
5512
|
+
*
|
|
5466
5513
|
* @summary Confirms the email of a user.
|
|
5467
5514
|
* @param {string} confirmationToken Gets or initializes the confirmation token for user email confirmation.
|
|
5468
5515
|
* @param {*} [options] Override http request option.
|
|
@@ -5470,11 +5517,11 @@ const b = function(e, ...r) {
|
|
|
5470
5517
|
*/
|
|
5471
5518
|
confirmUserEmail: async (r, o = {}) => {
|
|
5472
5519
|
I("confirmUserEmail", "confirmationToken", r);
|
|
5473
|
-
const n = "/api/v2/self/emails", t = new URL(n,
|
|
5520
|
+
const n = "/api/v2/self/emails", t = new URL(n, m);
|
|
5474
5521
|
let s;
|
|
5475
5522
|
e && (s = e.baseOptions);
|
|
5476
5523
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5477
|
-
await
|
|
5524
|
+
await P(l, "Authorization", e), r !== void 0 && (c.ConfirmationToken = r), b(t, c);
|
|
5478
5525
|
let i = s && s.headers ? s.headers : {};
|
|
5479
5526
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5480
5527
|
url: y(t),
|
|
@@ -5482,17 +5529,17 @@ const b = function(e, ...r) {
|
|
|
5482
5529
|
};
|
|
5483
5530
|
},
|
|
5484
5531
|
/**
|
|
5485
|
-
*
|
|
5532
|
+
*
|
|
5486
5533
|
* @summary Retrieves the current authenticated user.
|
|
5487
5534
|
* @param {*} [options] Override http request option.
|
|
5488
5535
|
* @throws {RequiredError}
|
|
5489
5536
|
*/
|
|
5490
5537
|
getCurrentUser: async (r = {}) => {
|
|
5491
|
-
const o = "/api/v2/self", n = new URL(o,
|
|
5538
|
+
const o = "/api/v2/self", n = new URL(o, m);
|
|
5492
5539
|
let t;
|
|
5493
5540
|
e && (t = e.baseOptions);
|
|
5494
5541
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
5495
|
-
await
|
|
5542
|
+
await P(a, "Authorization", e), b(n, l);
|
|
5496
5543
|
let c = t && t.headers ? t.headers : {};
|
|
5497
5544
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5498
5545
|
url: y(n),
|
|
@@ -5500,7 +5547,7 @@ const b = function(e, ...r) {
|
|
|
5500
5547
|
};
|
|
5501
5548
|
},
|
|
5502
5549
|
/**
|
|
5503
|
-
*
|
|
5550
|
+
*
|
|
5504
5551
|
* @summary Initiates user merging for the current user.
|
|
5505
5552
|
* @param {IdentityProviders} identityProvider The identity provider from which user data is to be merged.
|
|
5506
5553
|
* @param {*} [options] Override http request option.
|
|
@@ -5508,11 +5555,11 @@ const b = function(e, ...r) {
|
|
|
5508
5555
|
*/
|
|
5509
5556
|
initiateUserMerge: async (r, o = {}) => {
|
|
5510
5557
|
I("initiateUserMerge", "identityProvider", r);
|
|
5511
|
-
const n = "/api/v2/self/identities", t = new URL(n,
|
|
5558
|
+
const n = "/api/v2/self/identities", t = new URL(n, m);
|
|
5512
5559
|
let s;
|
|
5513
5560
|
e && (s = e.baseOptions);
|
|
5514
5561
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5515
|
-
await
|
|
5562
|
+
await P(l, "Authorization", e), r !== void 0 && (c.IdentityProvider = r), b(t, c);
|
|
5516
5563
|
let i = s && s.headers ? s.headers : {};
|
|
5517
5564
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5518
5565
|
url: y(t),
|
|
@@ -5520,18 +5567,18 @@ const b = function(e, ...r) {
|
|
|
5520
5567
|
};
|
|
5521
5568
|
},
|
|
5522
5569
|
/**
|
|
5523
|
-
*
|
|
5570
|
+
*
|
|
5524
5571
|
* @summary Resolves a project invitation for the authenticated user.
|
|
5525
5572
|
* @param {ProjectInvitationResolveDto} [projectInvitationResolveDto] The project invitation resolve data.
|
|
5526
5573
|
* @param {*} [options] Override http request option.
|
|
5527
5574
|
* @throws {RequiredError}
|
|
5528
5575
|
*/
|
|
5529
5576
|
resolveProjectInvitation: async (r, o = {}) => {
|
|
5530
|
-
const n = "/api/v2/self/project-invitations", t = new URL(n,
|
|
5577
|
+
const n = "/api/v2/self/project-invitations", t = new URL(n, m);
|
|
5531
5578
|
let s;
|
|
5532
5579
|
e && (s = e.baseOptions);
|
|
5533
5580
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5534
|
-
await
|
|
5581
|
+
await P(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
5535
5582
|
let i = s && s.headers ? s.headers : {};
|
|
5536
5583
|
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
5537
5584
|
url: y(t),
|
|
@@ -5539,18 +5586,18 @@ const b = function(e, ...r) {
|
|
|
5539
5586
|
};
|
|
5540
5587
|
},
|
|
5541
5588
|
/**
|
|
5542
|
-
*
|
|
5589
|
+
*
|
|
5543
5590
|
* @summary Updates the current authenticated user.
|
|
5544
5591
|
* @param {UserForUpdateDto} [userForUpdateDto] The updated user data.
|
|
5545
5592
|
* @param {*} [options] Override http request option.
|
|
5546
5593
|
* @throws {RequiredError}
|
|
5547
5594
|
*/
|
|
5548
5595
|
updateCurrentUser: async (r, o = {}) => {
|
|
5549
|
-
const n = "/api/v2/self", t = new URL(n,
|
|
5596
|
+
const n = "/api/v2/self", t = new URL(n, m);
|
|
5550
5597
|
let s;
|
|
5551
5598
|
e && (s = e.baseOptions);
|
|
5552
5599
|
const a = { method: "PUT", ...s, ...o }, l = {}, c = {};
|
|
5553
|
-
await
|
|
5600
|
+
await P(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
5554
5601
|
let i = s && s.headers ? s.headers : {};
|
|
5555
5602
|
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
5556
5603
|
url: y(t),
|
|
@@ -5562,7 +5609,7 @@ const b = function(e, ...r) {
|
|
|
5562
5609
|
const r = Ds(e);
|
|
5563
5610
|
return {
|
|
5564
5611
|
/**
|
|
5565
|
-
*
|
|
5612
|
+
*
|
|
5566
5613
|
* @summary Accepts the current Terms Of Service for the current authenticated user.
|
|
5567
5614
|
* @param {UserTermsOfServiceAcceptDto} [userTermsOfServiceAcceptDto]
|
|
5568
5615
|
* @param {*} [options] Override http request option.
|
|
@@ -5585,7 +5632,7 @@ const b = function(e, ...r) {
|
|
|
5585
5632
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
5586
5633
|
},
|
|
5587
5634
|
/**
|
|
5588
|
-
*
|
|
5635
|
+
*
|
|
5589
5636
|
* @summary Confirms the email of a user.
|
|
5590
5637
|
* @param {string} confirmationToken Gets or initializes the confirmation token for user email confirmation.
|
|
5591
5638
|
* @param {*} [options] Override http request option.
|
|
@@ -5597,7 +5644,7 @@ const b = function(e, ...r) {
|
|
|
5597
5644
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
5598
5645
|
},
|
|
5599
5646
|
/**
|
|
5600
|
-
*
|
|
5647
|
+
*
|
|
5601
5648
|
* @summary Retrieves the current authenticated user.
|
|
5602
5649
|
* @param {*} [options] Override http request option.
|
|
5603
5650
|
* @throws {RequiredError}
|
|
@@ -5608,7 +5655,7 @@ const b = function(e, ...r) {
|
|
|
5608
5655
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
5609
5656
|
},
|
|
5610
5657
|
/**
|
|
5611
|
-
*
|
|
5658
|
+
*
|
|
5612
5659
|
* @summary Initiates user merging for the current user.
|
|
5613
5660
|
* @param {IdentityProviders} identityProvider The identity provider from which user data is to be merged.
|
|
5614
5661
|
* @param {*} [options] Override http request option.
|
|
@@ -5620,7 +5667,7 @@ const b = function(e, ...r) {
|
|
|
5620
5667
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
5621
5668
|
},
|
|
5622
5669
|
/**
|
|
5623
|
-
*
|
|
5670
|
+
*
|
|
5624
5671
|
* @summary Resolves a project invitation for the authenticated user.
|
|
5625
5672
|
* @param {ProjectInvitationResolveDto} [projectInvitationResolveDto] The project invitation resolve data.
|
|
5626
5673
|
* @param {*} [options] Override http request option.
|
|
@@ -5632,7 +5679,7 @@ const b = function(e, ...r) {
|
|
|
5632
5679
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
5633
5680
|
},
|
|
5634
5681
|
/**
|
|
5635
|
-
*
|
|
5682
|
+
*
|
|
5636
5683
|
* @summary Updates the current authenticated user.
|
|
5637
5684
|
* @param {UserForUpdateDto} [userForUpdateDto] The updated user data.
|
|
5638
5685
|
* @param {*} [options] Override http request option.
|
|
@@ -5648,7 +5695,7 @@ const b = function(e, ...r) {
|
|
|
5648
5695
|
const n = Ns(e);
|
|
5649
5696
|
return {
|
|
5650
5697
|
/**
|
|
5651
|
-
*
|
|
5698
|
+
*
|
|
5652
5699
|
* @summary Accepts the current Terms Of Service for the current authenticated user.
|
|
5653
5700
|
* @param {SelfApiAcceptCurrentTosRequest} requestParameters Request parameters.
|
|
5654
5701
|
* @param {*} [options] Override http request option.
|
|
@@ -5667,7 +5714,7 @@ const b = function(e, ...r) {
|
|
|
5667
5714
|
return n.apiV2SelfOptions(t).then((s) => s(o, r));
|
|
5668
5715
|
},
|
|
5669
5716
|
/**
|
|
5670
|
-
*
|
|
5717
|
+
*
|
|
5671
5718
|
* @summary Confirms the email of a user.
|
|
5672
5719
|
* @param {SelfApiConfirmUserEmailRequest} requestParameters Request parameters.
|
|
5673
5720
|
* @param {*} [options] Override http request option.
|
|
@@ -5677,7 +5724,7 @@ const b = function(e, ...r) {
|
|
|
5677
5724
|
return n.confirmUserEmail(t.confirmationToken, s).then((a) => a(o, r));
|
|
5678
5725
|
},
|
|
5679
5726
|
/**
|
|
5680
|
-
*
|
|
5727
|
+
*
|
|
5681
5728
|
* @summary Retrieves the current authenticated user.
|
|
5682
5729
|
* @param {*} [options] Override http request option.
|
|
5683
5730
|
* @throws {RequiredError}
|
|
@@ -5686,7 +5733,7 @@ const b = function(e, ...r) {
|
|
|
5686
5733
|
return n.getCurrentUser(t).then((s) => s(o, r));
|
|
5687
5734
|
},
|
|
5688
5735
|
/**
|
|
5689
|
-
*
|
|
5736
|
+
*
|
|
5690
5737
|
* @summary Initiates user merging for the current user.
|
|
5691
5738
|
* @param {SelfApiInitiateUserMergeRequest} requestParameters Request parameters.
|
|
5692
5739
|
* @param {*} [options] Override http request option.
|
|
@@ -5696,7 +5743,7 @@ const b = function(e, ...r) {
|
|
|
5696
5743
|
return n.initiateUserMerge(t.identityProvider, s).then((a) => a(o, r));
|
|
5697
5744
|
},
|
|
5698
5745
|
/**
|
|
5699
|
-
*
|
|
5746
|
+
*
|
|
5700
5747
|
* @summary Resolves a project invitation for the authenticated user.
|
|
5701
5748
|
* @param {SelfApiResolveProjectInvitationRequest} requestParameters Request parameters.
|
|
5702
5749
|
* @param {*} [options] Override http request option.
|
|
@@ -5706,7 +5753,7 @@ const b = function(e, ...r) {
|
|
|
5706
5753
|
return n.resolveProjectInvitation(t.projectInvitationResolveDto, s).then((a) => a(o, r));
|
|
5707
5754
|
},
|
|
5708
5755
|
/**
|
|
5709
|
-
*
|
|
5756
|
+
*
|
|
5710
5757
|
* @summary Updates the current authenticated user.
|
|
5711
5758
|
* @param {SelfApiUpdateCurrentUserRequest} requestParameters Request parameters.
|
|
5712
5759
|
* @param {*} [options] Override http request option.
|
|
@@ -5725,11 +5772,11 @@ const b = function(e, ...r) {
|
|
|
5725
5772
|
* @throws {RequiredError}
|
|
5726
5773
|
*/
|
|
5727
5774
|
apiV2SelfApiTokensOptions: async (r = {}) => {
|
|
5728
|
-
const o = "/api/v2/self/api-tokens", n = new URL(o,
|
|
5775
|
+
const o = "/api/v2/self/api-tokens", n = new URL(o, m);
|
|
5729
5776
|
let t;
|
|
5730
5777
|
e && (t = e.baseOptions);
|
|
5731
5778
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5732
|
-
await
|
|
5779
|
+
await P(a, "Authorization", e), b(n, l);
|
|
5733
5780
|
let c = t && t.headers ? t.headers : {};
|
|
5734
5781
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5735
5782
|
url: y(n),
|
|
@@ -5737,18 +5784,18 @@ const b = function(e, ...r) {
|
|
|
5737
5784
|
};
|
|
5738
5785
|
},
|
|
5739
5786
|
/**
|
|
5740
|
-
*
|
|
5787
|
+
*
|
|
5741
5788
|
* @summary Creates an API token for the current authenticated user.
|
|
5742
5789
|
* @param {ApiTokenForCreationDto} [apiTokenForCreationDto] The API token data for creation.
|
|
5743
5790
|
* @param {*} [options] Override http request option.
|
|
5744
5791
|
* @throws {RequiredError}
|
|
5745
5792
|
*/
|
|
5746
5793
|
createApiToken: async (r, o = {}) => {
|
|
5747
|
-
const n = "/api/v2/self/api-tokens", t = new URL(n,
|
|
5794
|
+
const n = "/api/v2/self/api-tokens", t = new URL(n, m);
|
|
5748
5795
|
let s;
|
|
5749
5796
|
e && (s = e.baseOptions);
|
|
5750
5797
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5751
|
-
await
|
|
5798
|
+
await P(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
5752
5799
|
let i = s && s.headers ? s.headers : {};
|
|
5753
5800
|
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
5754
5801
|
url: y(t),
|
|
@@ -5756,7 +5803,7 @@ const b = function(e, ...r) {
|
|
|
5756
5803
|
};
|
|
5757
5804
|
},
|
|
5758
5805
|
/**
|
|
5759
|
-
*
|
|
5806
|
+
*
|
|
5760
5807
|
* @summary Retrieves all API tokens for the current authenticated user.
|
|
5761
5808
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
5762
5809
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -5765,11 +5812,11 @@ const b = function(e, ...r) {
|
|
|
5765
5812
|
* @throws {RequiredError}
|
|
5766
5813
|
*/
|
|
5767
5814
|
getAllApiTokens: async (r, o, n, t = {}) => {
|
|
5768
|
-
const s = "/api/v2/self/api-tokens", a = new URL(s,
|
|
5815
|
+
const s = "/api/v2/self/api-tokens", a = new URL(s, m);
|
|
5769
5816
|
let l;
|
|
5770
5817
|
e && (l = e.baseOptions);
|
|
5771
5818
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
5772
|
-
await
|
|
5819
|
+
await P(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
5773
5820
|
let d = l && l.headers ? l.headers : {};
|
|
5774
5821
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
5775
5822
|
url: y(a),
|
|
@@ -5777,7 +5824,7 @@ const b = function(e, ...r) {
|
|
|
5777
5824
|
};
|
|
5778
5825
|
},
|
|
5779
5826
|
/**
|
|
5780
|
-
*
|
|
5827
|
+
*
|
|
5781
5828
|
* @summary Retrieves an API token for the current authenticated user.
|
|
5782
5829
|
* @param {string} apiTokenId The ID of the token.
|
|
5783
5830
|
* @param {*} [options] Override http request option.
|
|
@@ -5785,11 +5832,11 @@ const b = function(e, ...r) {
|
|
|
5785
5832
|
*/
|
|
5786
5833
|
getApiToken: async (r, o = {}) => {
|
|
5787
5834
|
I("getApiToken", "apiTokenId", r);
|
|
5788
|
-
const n = "/api/v2/self/api-tokens/{apiTokenId}".replace("{apiTokenId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
5835
|
+
const n = "/api/v2/self/api-tokens/{apiTokenId}".replace("{apiTokenId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
5789
5836
|
let s;
|
|
5790
5837
|
e && (s = e.baseOptions);
|
|
5791
5838
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
5792
|
-
await
|
|
5839
|
+
await P(l, "Authorization", e), b(t, c);
|
|
5793
5840
|
let i = s && s.headers ? s.headers : {};
|
|
5794
5841
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5795
5842
|
url: y(t),
|
|
@@ -5797,7 +5844,7 @@ const b = function(e, ...r) {
|
|
|
5797
5844
|
};
|
|
5798
5845
|
},
|
|
5799
5846
|
/**
|
|
5800
|
-
*
|
|
5847
|
+
*
|
|
5801
5848
|
* @summary Revokes an API token for the current authenticated user.
|
|
5802
5849
|
* @param {string} apiTokenId The ID of the token.
|
|
5803
5850
|
* @param {*} [options] Override http request option.
|
|
@@ -5805,11 +5852,11 @@ const b = function(e, ...r) {
|
|
|
5805
5852
|
*/
|
|
5806
5853
|
revokeToken: async (r, o = {}) => {
|
|
5807
5854
|
I("revokeToken", "apiTokenId", r);
|
|
5808
|
-
const n = "/api/v2/self/api-tokens/{apiTokenId}".replace("{apiTokenId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
5855
|
+
const n = "/api/v2/self/api-tokens/{apiTokenId}".replace("{apiTokenId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
5809
5856
|
let s;
|
|
5810
5857
|
e && (s = e.baseOptions);
|
|
5811
5858
|
const a = { method: "DELETE", ...s, ...o }, l = {}, c = {};
|
|
5812
|
-
await
|
|
5859
|
+
await P(l, "Authorization", e), b(t, c);
|
|
5813
5860
|
let i = s && s.headers ? s.headers : {};
|
|
5814
5861
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5815
5862
|
url: y(t),
|
|
@@ -5832,7 +5879,7 @@ const b = function(e, ...r) {
|
|
|
5832
5879
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
5833
5880
|
},
|
|
5834
5881
|
/**
|
|
5835
|
-
*
|
|
5882
|
+
*
|
|
5836
5883
|
* @summary Creates an API token for the current authenticated user.
|
|
5837
5884
|
* @param {ApiTokenForCreationDto} [apiTokenForCreationDto] The API token data for creation.
|
|
5838
5885
|
* @param {*} [options] Override http request option.
|
|
@@ -5844,7 +5891,7 @@ const b = function(e, ...r) {
|
|
|
5844
5891
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
5845
5892
|
},
|
|
5846
5893
|
/**
|
|
5847
|
-
*
|
|
5894
|
+
*
|
|
5848
5895
|
* @summary Retrieves all API tokens for the current authenticated user.
|
|
5849
5896
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
5850
5897
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -5858,7 +5905,7 @@ const b = function(e, ...r) {
|
|
|
5858
5905
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
5859
5906
|
},
|
|
5860
5907
|
/**
|
|
5861
|
-
*
|
|
5908
|
+
*
|
|
5862
5909
|
* @summary Retrieves an API token for the current authenticated user.
|
|
5863
5910
|
* @param {string} apiTokenId The ID of the token.
|
|
5864
5911
|
* @param {*} [options] Override http request option.
|
|
@@ -5870,7 +5917,7 @@ const b = function(e, ...r) {
|
|
|
5870
5917
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
5871
5918
|
},
|
|
5872
5919
|
/**
|
|
5873
|
-
*
|
|
5920
|
+
*
|
|
5874
5921
|
* @summary Revokes an API token for the current authenticated user.
|
|
5875
5922
|
* @param {string} apiTokenId The ID of the token.
|
|
5876
5923
|
* @param {*} [options] Override http request option.
|
|
@@ -5895,7 +5942,7 @@ const b = function(e, ...r) {
|
|
|
5895
5942
|
return n.apiV2SelfApiTokensOptions(t).then((s) => s(o, r));
|
|
5896
5943
|
},
|
|
5897
5944
|
/**
|
|
5898
|
-
*
|
|
5945
|
+
*
|
|
5899
5946
|
* @summary Creates an API token for the current authenticated user.
|
|
5900
5947
|
* @param {SelfApiTokenApiCreateApiTokenRequest} requestParameters Request parameters.
|
|
5901
5948
|
* @param {*} [options] Override http request option.
|
|
@@ -5905,7 +5952,7 @@ const b = function(e, ...r) {
|
|
|
5905
5952
|
return n.createApiToken(t.apiTokenForCreationDto, s).then((a) => a(o, r));
|
|
5906
5953
|
},
|
|
5907
5954
|
/**
|
|
5908
|
-
*
|
|
5955
|
+
*
|
|
5909
5956
|
* @summary Retrieves all API tokens for the current authenticated user.
|
|
5910
5957
|
* @param {SelfApiTokenApiGetAllApiTokensRequest} requestParameters Request parameters.
|
|
5911
5958
|
* @param {*} [options] Override http request option.
|
|
@@ -5915,7 +5962,7 @@ const b = function(e, ...r) {
|
|
|
5915
5962
|
return n.getAllApiTokens(t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
5916
5963
|
},
|
|
5917
5964
|
/**
|
|
5918
|
-
*
|
|
5965
|
+
*
|
|
5919
5966
|
* @summary Retrieves an API token for the current authenticated user.
|
|
5920
5967
|
* @param {SelfApiTokenApiGetApiTokenRequest} requestParameters Request parameters.
|
|
5921
5968
|
* @param {*} [options] Override http request option.
|
|
@@ -5925,7 +5972,7 @@ const b = function(e, ...r) {
|
|
|
5925
5972
|
return n.getApiToken(t.apiTokenId, s).then((a) => a(o, r));
|
|
5926
5973
|
},
|
|
5927
5974
|
/**
|
|
5928
|
-
*
|
|
5975
|
+
*
|
|
5929
5976
|
* @summary Revokes an API token for the current authenticated user.
|
|
5930
5977
|
* @param {SelfApiTokenApiRevokeTokenRequest} requestParameters Request parameters.
|
|
5931
5978
|
* @param {*} [options] Override http request option.
|
|
@@ -5935,7 +5982,7 @@ const b = function(e, ...r) {
|
|
|
5935
5982
|
return n.revokeToken(t.apiTokenId, s).then((a) => a(o, r));
|
|
5936
5983
|
}
|
|
5937
5984
|
};
|
|
5938
|
-
},
|
|
5985
|
+
}, Js = function(e) {
|
|
5939
5986
|
return {
|
|
5940
5987
|
/**
|
|
5941
5988
|
*
|
|
@@ -5944,11 +5991,11 @@ const b = function(e, ...r) {
|
|
|
5944
5991
|
* @throws {RequiredError}
|
|
5945
5992
|
*/
|
|
5946
5993
|
apiV2TitlesOptions: async (r = {}) => {
|
|
5947
|
-
const o = "/api/v2/titles", n = new URL(o,
|
|
5994
|
+
const o = "/api/v2/titles", n = new URL(o, m);
|
|
5948
5995
|
let t;
|
|
5949
5996
|
e && (t = e.baseOptions);
|
|
5950
5997
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5951
|
-
await
|
|
5998
|
+
await P(a, "Authorization", e), b(n, l);
|
|
5952
5999
|
let c = t && t.headers ? t.headers : {};
|
|
5953
6000
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5954
6001
|
url: y(n),
|
|
@@ -5956,7 +6003,7 @@ const b = function(e, ...r) {
|
|
|
5956
6003
|
};
|
|
5957
6004
|
},
|
|
5958
6005
|
/**
|
|
5959
|
-
*
|
|
6006
|
+
*
|
|
5960
6007
|
* @summary Retrieves a title by ID.
|
|
5961
6008
|
* @param {string} titleId The ID of the title.
|
|
5962
6009
|
* @param {*} [options] Override http request option.
|
|
@@ -5964,11 +6011,11 @@ const b = function(e, ...r) {
|
|
|
5964
6011
|
*/
|
|
5965
6012
|
getTitle: async (r, o = {}) => {
|
|
5966
6013
|
I("getTitle", "titleId", r);
|
|
5967
|
-
const n = "/api/v2/titles/{titleId}".replace("{titleId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
6014
|
+
const n = "/api/v2/titles/{titleId}".replace("{titleId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
5968
6015
|
let s;
|
|
5969
6016
|
e && (s = e.baseOptions);
|
|
5970
6017
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
5971
|
-
await
|
|
6018
|
+
await P(l, "Authorization", e), b(t, c);
|
|
5972
6019
|
let i = s && s.headers ? s.headers : {};
|
|
5973
6020
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5974
6021
|
url: y(t),
|
|
@@ -5976,7 +6023,7 @@ const b = function(e, ...r) {
|
|
|
5976
6023
|
};
|
|
5977
6024
|
},
|
|
5978
6025
|
/**
|
|
5979
|
-
*
|
|
6026
|
+
*
|
|
5980
6027
|
* @summary Retrieves all titles.
|
|
5981
6028
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
5982
6029
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -5985,11 +6032,11 @@ const b = function(e, ...r) {
|
|
|
5985
6032
|
* @throws {RequiredError}
|
|
5986
6033
|
*/
|
|
5987
6034
|
getTitles: async (r, o, n, t = {}) => {
|
|
5988
|
-
const s = "/api/v2/titles", a = new URL(s,
|
|
6035
|
+
const s = "/api/v2/titles", a = new URL(s, m);
|
|
5989
6036
|
let l;
|
|
5990
6037
|
e && (l = e.baseOptions);
|
|
5991
6038
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
5992
|
-
await
|
|
6039
|
+
await P(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
5993
6040
|
let d = l && l.headers ? l.headers : {};
|
|
5994
6041
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
5995
6042
|
url: y(a),
|
|
@@ -5997,8 +6044,8 @@ const b = function(e, ...r) {
|
|
|
5997
6044
|
};
|
|
5998
6045
|
}
|
|
5999
6046
|
};
|
|
6000
|
-
},
|
|
6001
|
-
const r =
|
|
6047
|
+
}, Ks = function(e) {
|
|
6048
|
+
const r = Js(e);
|
|
6002
6049
|
return {
|
|
6003
6050
|
/**
|
|
6004
6051
|
*
|
|
@@ -6012,7 +6059,7 @@ const b = function(e, ...r) {
|
|
|
6012
6059
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
6013
6060
|
},
|
|
6014
6061
|
/**
|
|
6015
|
-
*
|
|
6062
|
+
*
|
|
6016
6063
|
* @summary Retrieves a title by ID.
|
|
6017
6064
|
* @param {string} titleId The ID of the title.
|
|
6018
6065
|
* @param {*} [options] Override http request option.
|
|
@@ -6024,7 +6071,7 @@ const b = function(e, ...r) {
|
|
|
6024
6071
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
6025
6072
|
},
|
|
6026
6073
|
/**
|
|
6027
|
-
*
|
|
6074
|
+
*
|
|
6028
6075
|
* @summary Retrieves all titles.
|
|
6029
6076
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
6030
6077
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -6038,8 +6085,8 @@ const b = function(e, ...r) {
|
|
|
6038
6085
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
6039
6086
|
}
|
|
6040
6087
|
};
|
|
6041
|
-
},
|
|
6042
|
-
const n =
|
|
6088
|
+
}, fs = function(e, r, o) {
|
|
6089
|
+
const n = Ks(e);
|
|
6043
6090
|
return {
|
|
6044
6091
|
/**
|
|
6045
6092
|
*
|
|
@@ -6051,7 +6098,7 @@ const b = function(e, ...r) {
|
|
|
6051
6098
|
return n.apiV2TitlesOptions(t).then((s) => s(o, r));
|
|
6052
6099
|
},
|
|
6053
6100
|
/**
|
|
6054
|
-
*
|
|
6101
|
+
*
|
|
6055
6102
|
* @summary Retrieves a title by ID.
|
|
6056
6103
|
* @param {TitleApiGetTitleRequest} requestParameters Request parameters.
|
|
6057
6104
|
* @param {*} [options] Override http request option.
|
|
@@ -6061,7 +6108,7 @@ const b = function(e, ...r) {
|
|
|
6061
6108
|
return n.getTitle(t.titleId, s).then((a) => a(o, r));
|
|
6062
6109
|
},
|
|
6063
6110
|
/**
|
|
6064
|
-
*
|
|
6111
|
+
*
|
|
6065
6112
|
* @summary Retrieves all titles.
|
|
6066
6113
|
* @param {TitleApiGetTitlesRequest} requestParameters Request parameters.
|
|
6067
6114
|
* @param {*} [options] Override http request option.
|
|
@@ -6080,11 +6127,11 @@ const b = function(e, ...r) {
|
|
|
6080
6127
|
* @throws {RequiredError}
|
|
6081
6128
|
*/
|
|
6082
6129
|
apiV2TosOptions: async (r = {}) => {
|
|
6083
|
-
const o = "/api/v2/tos", n = new URL(o,
|
|
6130
|
+
const o = "/api/v2/tos", n = new URL(o, m);
|
|
6084
6131
|
let t;
|
|
6085
6132
|
e && (t = e.baseOptions);
|
|
6086
6133
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
6087
|
-
await
|
|
6134
|
+
await P(a, "Authorization", e), b(n, l);
|
|
6088
6135
|
let c = t && t.headers ? t.headers : {};
|
|
6089
6136
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6090
6137
|
url: y(n),
|
|
@@ -6092,17 +6139,17 @@ const b = function(e, ...r) {
|
|
|
6092
6139
|
};
|
|
6093
6140
|
},
|
|
6094
6141
|
/**
|
|
6095
|
-
*
|
|
6142
|
+
*
|
|
6096
6143
|
* @summary Retrieves the current Terms of Service version.
|
|
6097
6144
|
* @param {*} [options] Override http request option.
|
|
6098
6145
|
* @throws {RequiredError}
|
|
6099
6146
|
*/
|
|
6100
6147
|
getTos: async (r = {}) => {
|
|
6101
|
-
const o = "/api/v2/tos", n = new URL(o,
|
|
6148
|
+
const o = "/api/v2/tos", n = new URL(o, m);
|
|
6102
6149
|
let t;
|
|
6103
6150
|
e && (t = e.baseOptions);
|
|
6104
6151
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
6105
|
-
await
|
|
6152
|
+
await P(a, "Authorization", e), b(n, l);
|
|
6106
6153
|
let c = t && t.headers ? t.headers : {};
|
|
6107
6154
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6108
6155
|
url: y(n),
|
|
@@ -6125,7 +6172,7 @@ const b = function(e, ...r) {
|
|
|
6125
6172
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
6126
6173
|
},
|
|
6127
6174
|
/**
|
|
6128
|
-
*
|
|
6175
|
+
*
|
|
6129
6176
|
* @summary Retrieves the current Terms of Service version.
|
|
6130
6177
|
* @param {*} [options] Override http request option.
|
|
6131
6178
|
* @throws {RequiredError}
|
|
@@ -6149,7 +6196,7 @@ const b = function(e, ...r) {
|
|
|
6149
6196
|
return n.apiV2TosOptions(t).then((s) => s(o, r));
|
|
6150
6197
|
},
|
|
6151
6198
|
/**
|
|
6152
|
-
*
|
|
6199
|
+
*
|
|
6153
6200
|
* @summary Retrieves the current Terms of Service version.
|
|
6154
6201
|
* @param {*} [options] Override http request option.
|
|
6155
6202
|
* @throws {RequiredError}
|
|
@@ -6170,11 +6217,11 @@ const b = function(e, ...r) {
|
|
|
6170
6217
|
*/
|
|
6171
6218
|
apiV2ProjectsProjectIdResourcesResourceIdTreesOptions: async (r, o, n = {}) => {
|
|
6172
6219
|
I("apiV2ProjectsProjectIdResourcesResourceIdTreesOptions", "projectId", r), I("apiV2ProjectsProjectIdResourcesResourceIdTreesOptions", "resourceId", o);
|
|
6173
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/trees".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
6220
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/trees".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, m);
|
|
6174
6221
|
let a;
|
|
6175
6222
|
e && (a = e.baseOptions);
|
|
6176
6223
|
const l = { method: "OPTIONS", ...a, ...n }, c = {}, i = {};
|
|
6177
|
-
await
|
|
6224
|
+
await P(c, "Authorization", e), b(s, i);
|
|
6178
6225
|
let p = a && a.headers ? a.headers : {};
|
|
6179
6226
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
6180
6227
|
url: y(s),
|
|
@@ -6182,7 +6229,29 @@ const b = function(e, ...r) {
|
|
|
6182
6229
|
};
|
|
6183
6230
|
},
|
|
6184
6231
|
/**
|
|
6185
|
-
* <p><strong>Required JWT roles for access:</strong> <code
|
|
6232
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
6233
|
+
* @summary Creates a new extracted metadata tree for a resource.
|
|
6234
|
+
* @param {string} projectId The unique identifier or slug of the project.
|
|
6235
|
+
* @param {string} resourceId The unique identifier of the resource.
|
|
6236
|
+
* @param {ExtractedMetadataTreeForCreationDto} [extractedMetadataTreeForCreationDto] The metadata tree data for creation.
|
|
6237
|
+
* @param {*} [options] Override http request option.
|
|
6238
|
+
* @throws {RequiredError}
|
|
6239
|
+
*/
|
|
6240
|
+
createExtractedMetadataTree: async (r, o, n, t = {}) => {
|
|
6241
|
+
I("createExtractedMetadataTree", "projectId", r), I("createExtractedMetadataTree", "resourceId", o);
|
|
6242
|
+
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/extracted".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
6243
|
+
let l;
|
|
6244
|
+
e && (l = e.baseOptions);
|
|
6245
|
+
const c = { method: "POST", ...l, ...t }, i = {}, p = {};
|
|
6246
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
6247
|
+
let d = l && l.headers ? l.headers : {};
|
|
6248
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
6249
|
+
url: y(a),
|
|
6250
|
+
options: c
|
|
6251
|
+
};
|
|
6252
|
+
},
|
|
6253
|
+
/**
|
|
6254
|
+
*
|
|
6186
6255
|
* @summary Creates a new metadata tree for a resource.
|
|
6187
6256
|
* @param {string} projectId The unique identifier or slug of the project.
|
|
6188
6257
|
* @param {string} resourceId The unique identifier of the resource.
|
|
@@ -6192,11 +6261,33 @@ const b = function(e, ...r) {
|
|
|
6192
6261
|
*/
|
|
6193
6262
|
createMetadataTree: async (r, o, n, t = {}) => {
|
|
6194
6263
|
I("createMetadataTree", "projectId", r), I("createMetadataTree", "resourceId", o);
|
|
6195
|
-
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s,
|
|
6264
|
+
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
6196
6265
|
let l;
|
|
6197
6266
|
e && (l = e.baseOptions);
|
|
6198
6267
|
const c = { method: "POST", ...l, ...t }, i = {}, p = {};
|
|
6199
|
-
await
|
|
6268
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
6269
|
+
let d = l && l.headers ? l.headers : {};
|
|
6270
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
6271
|
+
url: y(a),
|
|
6272
|
+
options: c
|
|
6273
|
+
};
|
|
6274
|
+
},
|
|
6275
|
+
/**
|
|
6276
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
6277
|
+
* @summary Deletes (invalidates) a metadata tree associated with a resource.
|
|
6278
|
+
* @param {string} projectId The unique identifier or slug of the project.
|
|
6279
|
+
* @param {string} resourceId The unique identifier of the resource.
|
|
6280
|
+
* @param {MetadataTreeForDeletionDto} [metadataTreeForDeletionDto] The dto for the deletion.
|
|
6281
|
+
* @param {*} [options] Override http request option.
|
|
6282
|
+
* @throws {RequiredError}
|
|
6283
|
+
*/
|
|
6284
|
+
deleteMetadataTree: async (r, o, n, t = {}) => {
|
|
6285
|
+
I("deleteMetadataTree", "projectId", r), I("deleteMetadataTree", "resourceId", o);
|
|
6286
|
+
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
6287
|
+
let l;
|
|
6288
|
+
e && (l = e.baseOptions);
|
|
6289
|
+
const c = { method: "DELETE", ...l, ...t }, i = {}, p = {};
|
|
6290
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
6200
6291
|
let d = l && l.headers ? l.headers : {};
|
|
6201
6292
|
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
6202
6293
|
url: y(a),
|
|
@@ -6217,11 +6308,11 @@ const b = function(e, ...r) {
|
|
|
6217
6308
|
*/
|
|
6218
6309
|
getFileTree: async (r, o, n, t, s, a, l = {}) => {
|
|
6219
6310
|
I("getFileTree", "projectId", r), I("getFileTree", "resourceId", o);
|
|
6220
|
-
const c = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/files".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), i = new URL(c,
|
|
6311
|
+
const c = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/files".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), i = new URL(c, m);
|
|
6221
6312
|
let p;
|
|
6222
6313
|
e && (p = e.baseOptions);
|
|
6223
6314
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
6224
|
-
await
|
|
6315
|
+
await P(h, "Authorization", e), n !== void 0 && (u.Path = n), t !== void 0 && (u.PageNumber = t), s !== void 0 && (u.PageSize = s), a !== void 0 && (u.OrderBy = a), b(i, u);
|
|
6225
6316
|
let w = p && p.headers ? p.headers : {};
|
|
6226
6317
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
6227
6318
|
url: y(i),
|
|
@@ -6229,59 +6320,83 @@ const b = function(e, ...r) {
|
|
|
6229
6320
|
};
|
|
6230
6321
|
},
|
|
6231
6322
|
/**
|
|
6232
|
-
*
|
|
6323
|
+
*
|
|
6233
6324
|
* @summary Retrieves the metadata tree associated with a resource.
|
|
6234
6325
|
* @param {string} projectId The unique identifier or slug of the project.
|
|
6235
6326
|
* @param {string} resourceId The unique identifier of the resource.
|
|
6236
6327
|
* @param {string} [path] Gets or sets the path of the metadata tree.
|
|
6237
6328
|
* @param {RdfFormat} [format] Gets or sets the format of the RDF data.
|
|
6238
6329
|
* @param {boolean} [includeExtractedMetadata] Gets or sets if extracted metadata should be included.
|
|
6330
|
+
* @param {boolean} [includeProvenance] Gets or sets if provenance metadata should be included.
|
|
6239
6331
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
6240
6332
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
6241
6333
|
* @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.
|
|
6242
6334
|
* @param {*} [options] Override http request option.
|
|
6243
6335
|
* @throws {RequiredError}
|
|
6244
6336
|
*/
|
|
6245
|
-
getMetadataTree: async (r, o, n, t, s, a, l, c, i = {}) => {
|
|
6337
|
+
getMetadataTree: async (r, o, n, t, s, a, l, c, i, p = {}) => {
|
|
6246
6338
|
I("getMetadataTree", "projectId", r), I("getMetadataTree", "resourceId", o);
|
|
6247
|
-
const
|
|
6248
|
-
let
|
|
6249
|
-
e && (
|
|
6250
|
-
const
|
|
6251
|
-
await
|
|
6252
|
-
let
|
|
6253
|
-
return
|
|
6254
|
-
url: y(
|
|
6255
|
-
options:
|
|
6339
|
+
const d = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), h = new URL(d, m);
|
|
6340
|
+
let u;
|
|
6341
|
+
e && (u = e.baseOptions);
|
|
6342
|
+
const w = { method: "GET", ...u, ...p }, T = {}, U = {};
|
|
6343
|
+
await P(T, "Authorization", e), n !== void 0 && (U.Path = n), t !== void 0 && (U.Format = t), s !== void 0 && (U.IncludeExtractedMetadata = s), a !== void 0 && (U.IncludeProvenance = a), l !== void 0 && (U.PageNumber = l), c !== void 0 && (U.PageSize = c), i !== void 0 && (U.OrderBy = i), b(h, U);
|
|
6344
|
+
let C = u && u.headers ? u.headers : {};
|
|
6345
|
+
return w.headers = { ...T, ...C, ...p.headers }, {
|
|
6346
|
+
url: y(h),
|
|
6347
|
+
options: w
|
|
6256
6348
|
};
|
|
6257
6349
|
},
|
|
6258
6350
|
/**
|
|
6259
|
-
*
|
|
6351
|
+
*
|
|
6260
6352
|
* @summary Retrieves the specific metadata tree associated with a resource.
|
|
6261
6353
|
* @param {string} projectId The unique identifier or slug of the project.
|
|
6262
6354
|
* @param {string} resourceId The unique identifier of the resource.
|
|
6263
|
-
* @param {string}
|
|
6355
|
+
* @param {string} path Gets or sets the path of the metadata tree.
|
|
6264
6356
|
* @param {RdfFormat} [format] Gets or sets the format of the RDF data.
|
|
6265
6357
|
* @param {boolean} [includeExtractedMetadata] Gets or sets if extracted metadata should be included.
|
|
6358
|
+
* @param {boolean} [includeProvenance] Gets or sets if provenance should be included.
|
|
6266
6359
|
* @param {number} [version] Gets or sets the desired version. If the version is null, the newest will be returned.
|
|
6267
6360
|
* @param {*} [options] Override http request option.
|
|
6268
6361
|
* @throws {RequiredError}
|
|
6269
6362
|
*/
|
|
6270
|
-
getSpecificMetadataTree: async (r, o, n, t, s, a, l = {}) => {
|
|
6271
|
-
I("getSpecificMetadataTree", "projectId", r), I("getSpecificMetadataTree", "resourceId", o);
|
|
6272
|
-
const
|
|
6273
|
-
let
|
|
6274
|
-
e && (
|
|
6275
|
-
const
|
|
6276
|
-
await
|
|
6277
|
-
let
|
|
6278
|
-
return
|
|
6279
|
-
url: y(
|
|
6280
|
-
options:
|
|
6363
|
+
getSpecificMetadataTree: async (r, o, n, t, s, a, l, c = {}) => {
|
|
6364
|
+
I("getSpecificMetadataTree", "projectId", r), I("getSpecificMetadataTree", "resourceId", o), I("getSpecificMetadataTree", "path", n);
|
|
6365
|
+
const i = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/specific".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), p = new URL(i, m);
|
|
6366
|
+
let d;
|
|
6367
|
+
e && (d = e.baseOptions);
|
|
6368
|
+
const h = { method: "GET", ...d, ...c }, u = {}, w = {};
|
|
6369
|
+
await P(u, "Authorization", e), n !== void 0 && (w.Path = n), t !== void 0 && (w.Format = t), s !== void 0 && (w.IncludeExtractedMetadata = s), a !== void 0 && (w.IncludeProvenance = a), l !== void 0 && (w.Version = l), b(p, w);
|
|
6370
|
+
let T = d && d.headers ? d.headers : {};
|
|
6371
|
+
return h.headers = { ...u, ...T, ...c.headers }, {
|
|
6372
|
+
url: y(p),
|
|
6373
|
+
options: h
|
|
6374
|
+
};
|
|
6375
|
+
},
|
|
6376
|
+
/**
|
|
6377
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
6378
|
+
* @summary Updates an existing metadata tree of a resource.
|
|
6379
|
+
* @param {string} projectId The unique identifier or slug of the project.
|
|
6380
|
+
* @param {string} resourceId The unique identifier of the resource.
|
|
6381
|
+
* @param {ExtractedMetadataTreeForUpdateDto} [extractedMetadataTreeForUpdateDto] The updated metadata tree data.
|
|
6382
|
+
* @param {*} [options] Override http request option.
|
|
6383
|
+
* @throws {RequiredError}
|
|
6384
|
+
*/
|
|
6385
|
+
updateExtractedMetadataTree: async (r, o, n, t = {}) => {
|
|
6386
|
+
I("updateExtractedMetadataTree", "projectId", r), I("updateExtractedMetadataTree", "resourceId", o);
|
|
6387
|
+
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/extracted".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
6388
|
+
let l;
|
|
6389
|
+
e && (l = e.baseOptions);
|
|
6390
|
+
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
6391
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
6392
|
+
let d = l && l.headers ? l.headers : {};
|
|
6393
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
6394
|
+
url: y(a),
|
|
6395
|
+
options: c
|
|
6281
6396
|
};
|
|
6282
6397
|
},
|
|
6283
6398
|
/**
|
|
6284
|
-
*
|
|
6399
|
+
*
|
|
6285
6400
|
* @summary Updates an existing metadata tree of a resource.
|
|
6286
6401
|
* @param {string} projectId The unique identifier or slug of the project.
|
|
6287
6402
|
* @param {string} resourceId The unique identifier of the resource.
|
|
@@ -6291,11 +6406,11 @@ const b = function(e, ...r) {
|
|
|
6291
6406
|
*/
|
|
6292
6407
|
updateMetadataTree: async (r, o, n, t = {}) => {
|
|
6293
6408
|
I("updateMetadataTree", "projectId", r), I("updateMetadataTree", "resourceId", o);
|
|
6294
|
-
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s,
|
|
6409
|
+
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s, m);
|
|
6295
6410
|
let l;
|
|
6296
6411
|
e && (l = e.baseOptions);
|
|
6297
6412
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
6298
|
-
await
|
|
6413
|
+
await P(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
6299
6414
|
let d = l && l.headers ? l.headers : {};
|
|
6300
6415
|
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
6301
6416
|
url: y(a),
|
|
@@ -6320,7 +6435,21 @@ const b = function(e, ...r) {
|
|
|
6320
6435
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
6321
6436
|
},
|
|
6322
6437
|
/**
|
|
6323
|
-
* <p><strong>Required JWT roles for access:</strong> <code
|
|
6438
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
6439
|
+
* @summary Creates a new extracted metadata tree for a resource.
|
|
6440
|
+
* @param {string} projectId The unique identifier or slug of the project.
|
|
6441
|
+
* @param {string} resourceId The unique identifier of the resource.
|
|
6442
|
+
* @param {ExtractedMetadataTreeForCreationDto} [extractedMetadataTreeForCreationDto] The metadata tree data for creation.
|
|
6443
|
+
* @param {*} [options] Override http request option.
|
|
6444
|
+
* @throws {RequiredError}
|
|
6445
|
+
*/
|
|
6446
|
+
async createExtractedMetadataTree(o, n, t, s) {
|
|
6447
|
+
var i, p;
|
|
6448
|
+
const a = await r.createExtractedMetadataTree(o, n, t, s), l = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (i = V["TreeApi.createExtractedMetadataTree"]) == null ? void 0 : i[l]) == null ? void 0 : p.url;
|
|
6449
|
+
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
6450
|
+
},
|
|
6451
|
+
/**
|
|
6452
|
+
*
|
|
6324
6453
|
* @summary Creates a new metadata tree for a resource.
|
|
6325
6454
|
* @param {string} projectId The unique identifier or slug of the project.
|
|
6326
6455
|
* @param {string} resourceId The unique identifier of the resource.
|
|
@@ -6333,6 +6462,20 @@ const b = function(e, ...r) {
|
|
|
6333
6462
|
const a = await r.createMetadataTree(o, n, t, s), l = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (i = V["TreeApi.createMetadataTree"]) == null ? void 0 : i[l]) == null ? void 0 : p.url;
|
|
6334
6463
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
6335
6464
|
},
|
|
6465
|
+
/**
|
|
6466
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
6467
|
+
* @summary Deletes (invalidates) a metadata tree associated with a resource.
|
|
6468
|
+
* @param {string} projectId The unique identifier or slug of the project.
|
|
6469
|
+
* @param {string} resourceId The unique identifier of the resource.
|
|
6470
|
+
* @param {MetadataTreeForDeletionDto} [metadataTreeForDeletionDto] The dto for the deletion.
|
|
6471
|
+
* @param {*} [options] Override http request option.
|
|
6472
|
+
* @throws {RequiredError}
|
|
6473
|
+
*/
|
|
6474
|
+
async deleteMetadataTree(o, n, t, s) {
|
|
6475
|
+
var i, p;
|
|
6476
|
+
const a = await r.deleteMetadataTree(o, n, t, s), l = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (i = V["TreeApi.deleteMetadataTree"]) == null ? void 0 : i[l]) == null ? void 0 : p.url;
|
|
6477
|
+
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
6478
|
+
},
|
|
6336
6479
|
/**
|
|
6337
6480
|
* The `OrderBy` query is currently not supported.
|
|
6338
6481
|
* @summary Retrieves the file tree associated with a resource.
|
|
@@ -6351,43 +6494,59 @@ const b = function(e, ...r) {
|
|
|
6351
6494
|
return (w, T) => R(i, O, A, e)(w, d || T);
|
|
6352
6495
|
},
|
|
6353
6496
|
/**
|
|
6354
|
-
*
|
|
6497
|
+
*
|
|
6355
6498
|
* @summary Retrieves the metadata tree associated with a resource.
|
|
6356
6499
|
* @param {string} projectId The unique identifier or slug of the project.
|
|
6357
6500
|
* @param {string} resourceId The unique identifier of the resource.
|
|
6358
6501
|
* @param {string} [path] Gets or sets the path of the metadata tree.
|
|
6359
6502
|
* @param {RdfFormat} [format] Gets or sets the format of the RDF data.
|
|
6360
6503
|
* @param {boolean} [includeExtractedMetadata] Gets or sets if extracted metadata should be included.
|
|
6504
|
+
* @param {boolean} [includeProvenance] Gets or sets if provenance metadata should be included.
|
|
6361
6505
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
6362
6506
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
6363
6507
|
* @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.
|
|
6364
6508
|
* @param {*} [options] Override http request option.
|
|
6365
6509
|
* @throws {RequiredError}
|
|
6366
6510
|
*/
|
|
6367
|
-
async getMetadataTree(o, n, t, s, a, l, c, i, p) {
|
|
6368
|
-
var
|
|
6369
|
-
const
|
|
6370
|
-
return (
|
|
6511
|
+
async getMetadataTree(o, n, t, s, a, l, c, i, p, d) {
|
|
6512
|
+
var T, U;
|
|
6513
|
+
const h = await r.getMetadataTree(o, n, t, s, a, l, c, i, p, d), u = (e == null ? void 0 : e.serverIndex) ?? 0, w = (U = (T = V["TreeApi.getMetadataTree"]) == null ? void 0 : T[u]) == null ? void 0 : U.url;
|
|
6514
|
+
return (C, z) => R(h, O, A, e)(C, w || z);
|
|
6371
6515
|
},
|
|
6372
6516
|
/**
|
|
6373
|
-
*
|
|
6517
|
+
*
|
|
6374
6518
|
* @summary Retrieves the specific metadata tree associated with a resource.
|
|
6375
6519
|
* @param {string} projectId The unique identifier or slug of the project.
|
|
6376
6520
|
* @param {string} resourceId The unique identifier of the resource.
|
|
6377
|
-
* @param {string}
|
|
6521
|
+
* @param {string} path Gets or sets the path of the metadata tree.
|
|
6378
6522
|
* @param {RdfFormat} [format] Gets or sets the format of the RDF data.
|
|
6379
6523
|
* @param {boolean} [includeExtractedMetadata] Gets or sets if extracted metadata should be included.
|
|
6524
|
+
* @param {boolean} [includeProvenance] Gets or sets if provenance should be included.
|
|
6380
6525
|
* @param {number} [version] Gets or sets the desired version. If the version is null, the newest will be returned.
|
|
6381
6526
|
* @param {*} [options] Override http request option.
|
|
6382
6527
|
* @throws {RequiredError}
|
|
6383
6528
|
*/
|
|
6384
|
-
async getSpecificMetadataTree(o, n, t, s, a, l, c) {
|
|
6385
|
-
var
|
|
6386
|
-
const
|
|
6387
|
-
return (
|
|
6529
|
+
async getSpecificMetadataTree(o, n, t, s, a, l, c, i) {
|
|
6530
|
+
var u, w;
|
|
6531
|
+
const p = await r.getSpecificMetadataTree(o, n, t, s, a, l, c, i), d = (e == null ? void 0 : e.serverIndex) ?? 0, h = (w = (u = V["TreeApi.getSpecificMetadataTree"]) == null ? void 0 : u[d]) == null ? void 0 : w.url;
|
|
6532
|
+
return (T, U) => R(p, O, A, e)(T, h || U);
|
|
6388
6533
|
},
|
|
6389
6534
|
/**
|
|
6390
|
-
* <p><strong>Required JWT roles for access:</strong> <code
|
|
6535
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
6536
|
+
* @summary Updates an existing metadata tree of a resource.
|
|
6537
|
+
* @param {string} projectId The unique identifier or slug of the project.
|
|
6538
|
+
* @param {string} resourceId The unique identifier of the resource.
|
|
6539
|
+
* @param {ExtractedMetadataTreeForUpdateDto} [extractedMetadataTreeForUpdateDto] The updated metadata tree data.
|
|
6540
|
+
* @param {*} [options] Override http request option.
|
|
6541
|
+
* @throws {RequiredError}
|
|
6542
|
+
*/
|
|
6543
|
+
async updateExtractedMetadataTree(o, n, t, s) {
|
|
6544
|
+
var i, p;
|
|
6545
|
+
const a = await r.updateExtractedMetadataTree(o, n, t, s), l = (e == null ? void 0 : e.serverIndex) ?? 0, c = (p = (i = V["TreeApi.updateExtractedMetadataTree"]) == null ? void 0 : i[l]) == null ? void 0 : p.url;
|
|
6546
|
+
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
6547
|
+
},
|
|
6548
|
+
/**
|
|
6549
|
+
*
|
|
6391
6550
|
* @summary Updates an existing metadata tree of a resource.
|
|
6392
6551
|
* @param {string} projectId The unique identifier or slug of the project.
|
|
6393
6552
|
* @param {string} resourceId The unique identifier of the resource.
|
|
@@ -6415,7 +6574,17 @@ const b = function(e, ...r) {
|
|
|
6415
6574
|
return n.apiV2ProjectsProjectIdResourcesResourceIdTreesOptions(t.projectId, t.resourceId, s).then((a) => a(o, r));
|
|
6416
6575
|
},
|
|
6417
6576
|
/**
|
|
6418
|
-
* <p><strong>Required JWT roles for access:</strong> <code
|
|
6577
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
6578
|
+
* @summary Creates a new extracted metadata tree for a resource.
|
|
6579
|
+
* @param {TreeApiCreateExtractedMetadataTreeRequest} requestParameters Request parameters.
|
|
6580
|
+
* @param {*} [options] Override http request option.
|
|
6581
|
+
* @throws {RequiredError}
|
|
6582
|
+
*/
|
|
6583
|
+
createExtractedMetadataTree(t, s) {
|
|
6584
|
+
return n.createExtractedMetadataTree(t.projectId, t.resourceId, t.extractedMetadataTreeForCreationDto, s).then((a) => a(o, r));
|
|
6585
|
+
},
|
|
6586
|
+
/**
|
|
6587
|
+
*
|
|
6419
6588
|
* @summary Creates a new metadata tree for a resource.
|
|
6420
6589
|
* @param {TreeApiCreateMetadataTreeRequest} requestParameters Request parameters.
|
|
6421
6590
|
* @param {*} [options] Override http request option.
|
|
@@ -6424,6 +6593,16 @@ const b = function(e, ...r) {
|
|
|
6424
6593
|
createMetadataTree(t, s) {
|
|
6425
6594
|
return n.createMetadataTree(t.projectId, t.resourceId, t.metadataTreeForCreationDto, s).then((a) => a(o, r));
|
|
6426
6595
|
},
|
|
6596
|
+
/**
|
|
6597
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
6598
|
+
* @summary Deletes (invalidates) a metadata tree associated with a resource.
|
|
6599
|
+
* @param {TreeApiDeleteMetadataTreeRequest} requestParameters Request parameters.
|
|
6600
|
+
* @param {*} [options] Override http request option.
|
|
6601
|
+
* @throws {RequiredError}
|
|
6602
|
+
*/
|
|
6603
|
+
deleteMetadataTree(t, s) {
|
|
6604
|
+
return n.deleteMetadataTree(t.projectId, t.resourceId, t.metadataTreeForDeletionDto, s).then((a) => a(o, r));
|
|
6605
|
+
},
|
|
6427
6606
|
/**
|
|
6428
6607
|
* The `OrderBy` query is currently not supported.
|
|
6429
6608
|
* @summary Retrieves the file tree associated with a resource.
|
|
@@ -6435,27 +6614,37 @@ const b = function(e, ...r) {
|
|
|
6435
6614
|
return n.getFileTree(t.projectId, t.resourceId, t.path, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
6436
6615
|
},
|
|
6437
6616
|
/**
|
|
6438
|
-
*
|
|
6617
|
+
*
|
|
6439
6618
|
* @summary Retrieves the metadata tree associated with a resource.
|
|
6440
6619
|
* @param {TreeApiGetMetadataTreeRequest} requestParameters Request parameters.
|
|
6441
6620
|
* @param {*} [options] Override http request option.
|
|
6442
6621
|
* @throws {RequiredError}
|
|
6443
6622
|
*/
|
|
6444
6623
|
getMetadataTree(t, s) {
|
|
6445
|
-
return n.getMetadataTree(t.projectId, t.resourceId, t.path, t.format, t.includeExtractedMetadata, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
6624
|
+
return n.getMetadataTree(t.projectId, t.resourceId, t.path, t.format, t.includeExtractedMetadata, t.includeProvenance, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
6446
6625
|
},
|
|
6447
6626
|
/**
|
|
6448
|
-
*
|
|
6627
|
+
*
|
|
6449
6628
|
* @summary Retrieves the specific metadata tree associated with a resource.
|
|
6450
6629
|
* @param {TreeApiGetSpecificMetadataTreeRequest} requestParameters Request parameters.
|
|
6451
6630
|
* @param {*} [options] Override http request option.
|
|
6452
6631
|
* @throws {RequiredError}
|
|
6453
6632
|
*/
|
|
6454
6633
|
getSpecificMetadataTree(t, s) {
|
|
6455
|
-
return n.getSpecificMetadataTree(t.projectId, t.resourceId, t.path, t.format, t.includeExtractedMetadata, t.version, s).then((a) => a(o, r));
|
|
6634
|
+
return n.getSpecificMetadataTree(t.projectId, t.resourceId, t.path, t.format, t.includeExtractedMetadata, t.includeProvenance, t.version, s).then((a) => a(o, r));
|
|
6456
6635
|
},
|
|
6457
6636
|
/**
|
|
6458
|
-
* <p><strong>Required JWT roles for access:</strong> <code
|
|
6637
|
+
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
|
|
6638
|
+
* @summary Updates an existing metadata tree of a resource.
|
|
6639
|
+
* @param {TreeApiUpdateExtractedMetadataTreeRequest} requestParameters Request parameters.
|
|
6640
|
+
* @param {*} [options] Override http request option.
|
|
6641
|
+
* @throws {RequiredError}
|
|
6642
|
+
*/
|
|
6643
|
+
updateExtractedMetadataTree(t, s) {
|
|
6644
|
+
return n.updateExtractedMetadataTree(t.projectId, t.resourceId, t.extractedMetadataTreeForUpdateDto, s).then((a) => a(o, r));
|
|
6645
|
+
},
|
|
6646
|
+
/**
|
|
6647
|
+
*
|
|
6459
6648
|
* @summary Updates an existing metadata tree of a resource.
|
|
6460
6649
|
* @param {TreeApiUpdateMetadataTreeRequest} requestParameters Request parameters.
|
|
6461
6650
|
* @param {*} [options] Override http request option.
|
|
@@ -6474,11 +6663,11 @@ const b = function(e, ...r) {
|
|
|
6474
6663
|
* @throws {RequiredError}
|
|
6475
6664
|
*/
|
|
6476
6665
|
apiV2UsersOptions: async (r = {}) => {
|
|
6477
|
-
const o = "/api/v2/users", n = new URL(o,
|
|
6666
|
+
const o = "/api/v2/users", n = new URL(o, m);
|
|
6478
6667
|
let t;
|
|
6479
6668
|
e && (t = e.baseOptions);
|
|
6480
6669
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
6481
|
-
await
|
|
6670
|
+
await P(a, "Authorization", e), b(n, l);
|
|
6482
6671
|
let c = t && t.headers ? t.headers : {};
|
|
6483
6672
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6484
6673
|
url: y(n),
|
|
@@ -6486,7 +6675,7 @@ const b = function(e, ...r) {
|
|
|
6486
6675
|
};
|
|
6487
6676
|
},
|
|
6488
6677
|
/**
|
|
6489
|
-
*
|
|
6678
|
+
*
|
|
6490
6679
|
* @summary Retrieves all users.
|
|
6491
6680
|
* @param {string} searchTerm Gets or sets the search term.
|
|
6492
6681
|
* @param {string} [orderBy] Gets or sets the field by which the search results are ordered. Defaults to \"firstName\".
|
|
@@ -6495,11 +6684,11 @@ const b = function(e, ...r) {
|
|
|
6495
6684
|
*/
|
|
6496
6685
|
getUsers: async (r, o, n = {}) => {
|
|
6497
6686
|
I("getUsers", "searchTerm", r);
|
|
6498
|
-
const t = "/api/v2/users", s = new URL(t,
|
|
6687
|
+
const t = "/api/v2/users", s = new URL(t, m);
|
|
6499
6688
|
let a;
|
|
6500
6689
|
e && (a = e.baseOptions);
|
|
6501
6690
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
6502
|
-
await
|
|
6691
|
+
await P(c, "Authorization", e), o !== void 0 && (i.OrderBy = o), r !== void 0 && (i.SearchTerm = r), b(s, i);
|
|
6503
6692
|
let p = a && a.headers ? a.headers : {};
|
|
6504
6693
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
6505
6694
|
url: y(s),
|
|
@@ -6522,7 +6711,7 @@ const b = function(e, ...r) {
|
|
|
6522
6711
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
6523
6712
|
},
|
|
6524
6713
|
/**
|
|
6525
|
-
*
|
|
6714
|
+
*
|
|
6526
6715
|
* @summary Retrieves all users.
|
|
6527
6716
|
* @param {string} searchTerm Gets or sets the search term.
|
|
6528
6717
|
* @param {string} [orderBy] Gets or sets the field by which the search results are ordered. Defaults to \"firstName\".
|
|
@@ -6548,7 +6737,7 @@ const b = function(e, ...r) {
|
|
|
6548
6737
|
return n.apiV2UsersOptions(t).then((s) => s(o, r));
|
|
6549
6738
|
},
|
|
6550
6739
|
/**
|
|
6551
|
-
*
|
|
6740
|
+
*
|
|
6552
6741
|
* @summary Retrieves all users.
|
|
6553
6742
|
* @param {UserApiGetUsersRequest} requestParameters Request parameters.
|
|
6554
6743
|
* @param {*} [options] Override http request option.
|
|
@@ -6567,11 +6756,11 @@ const b = function(e, ...r) {
|
|
|
6567
6756
|
* @throws {RequiredError}
|
|
6568
6757
|
*/
|
|
6569
6758
|
apiV2VisibilitiesOptions: async (r = {}) => {
|
|
6570
|
-
const o = "/api/v2/visibilities", n = new URL(o,
|
|
6759
|
+
const o = "/api/v2/visibilities", n = new URL(o, m);
|
|
6571
6760
|
let t;
|
|
6572
6761
|
e && (t = e.baseOptions);
|
|
6573
6762
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
6574
|
-
await
|
|
6763
|
+
await P(a, "Authorization", e), b(n, l);
|
|
6575
6764
|
let c = t && t.headers ? t.headers : {};
|
|
6576
6765
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6577
6766
|
url: y(n),
|
|
@@ -6579,7 +6768,7 @@ const b = function(e, ...r) {
|
|
|
6579
6768
|
};
|
|
6580
6769
|
},
|
|
6581
6770
|
/**
|
|
6582
|
-
*
|
|
6771
|
+
*
|
|
6583
6772
|
* @summary Retrieves all visibilities.
|
|
6584
6773
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
6585
6774
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -6588,11 +6777,11 @@ const b = function(e, ...r) {
|
|
|
6588
6777
|
* @throws {RequiredError}
|
|
6589
6778
|
*/
|
|
6590
6779
|
getVisibilities: async (r, o, n, t = {}) => {
|
|
6591
|
-
const s = "/api/v2/visibilities", a = new URL(s,
|
|
6780
|
+
const s = "/api/v2/visibilities", a = new URL(s, m);
|
|
6592
6781
|
let l;
|
|
6593
6782
|
e && (l = e.baseOptions);
|
|
6594
6783
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
6595
|
-
await
|
|
6784
|
+
await P(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
6596
6785
|
let d = l && l.headers ? l.headers : {};
|
|
6597
6786
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
6598
6787
|
url: y(a),
|
|
@@ -6600,7 +6789,7 @@ const b = function(e, ...r) {
|
|
|
6600
6789
|
};
|
|
6601
6790
|
},
|
|
6602
6791
|
/**
|
|
6603
|
-
*
|
|
6792
|
+
*
|
|
6604
6793
|
* @summary Retrieves a visibility by ID.
|
|
6605
6794
|
* @param {string} visibilityId The ID of the visibility.
|
|
6606
6795
|
* @param {*} [options] Override http request option.
|
|
@@ -6608,11 +6797,11 @@ const b = function(e, ...r) {
|
|
|
6608
6797
|
*/
|
|
6609
6798
|
getVisibility: async (r, o = {}) => {
|
|
6610
6799
|
I("getVisibility", "visibilityId", r);
|
|
6611
|
-
const n = "/api/v2/visibilities/{visibilityId}".replace("{visibilityId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
6800
|
+
const n = "/api/v2/visibilities/{visibilityId}".replace("{visibilityId}", encodeURIComponent(String(r))), t = new URL(n, m);
|
|
6612
6801
|
let s;
|
|
6613
6802
|
e && (s = e.baseOptions);
|
|
6614
6803
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
6615
|
-
await
|
|
6804
|
+
await P(l, "Authorization", e), b(t, c);
|
|
6616
6805
|
let i = s && s.headers ? s.headers : {};
|
|
6617
6806
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
6618
6807
|
url: y(t),
|
|
@@ -6635,7 +6824,7 @@ const b = function(e, ...r) {
|
|
|
6635
6824
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
6636
6825
|
},
|
|
6637
6826
|
/**
|
|
6638
|
-
*
|
|
6827
|
+
*
|
|
6639
6828
|
* @summary Retrieves all visibilities.
|
|
6640
6829
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
6641
6830
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -6649,7 +6838,7 @@ const b = function(e, ...r) {
|
|
|
6649
6838
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
6650
6839
|
},
|
|
6651
6840
|
/**
|
|
6652
|
-
*
|
|
6841
|
+
*
|
|
6653
6842
|
* @summary Retrieves a visibility by ID.
|
|
6654
6843
|
* @param {string} visibilityId The ID of the visibility.
|
|
6655
6844
|
* @param {*} [options] Override http request option.
|
|
@@ -6674,7 +6863,7 @@ const b = function(e, ...r) {
|
|
|
6674
6863
|
return n.apiV2VisibilitiesOptions(t).then((s) => s(o, r));
|
|
6675
6864
|
},
|
|
6676
6865
|
/**
|
|
6677
|
-
*
|
|
6866
|
+
*
|
|
6678
6867
|
* @summary Retrieves all visibilities.
|
|
6679
6868
|
* @param {VisibilityApiGetVisibilitiesRequest} requestParameters Request parameters.
|
|
6680
6869
|
* @param {*} [options] Override http request option.
|
|
@@ -6684,7 +6873,7 @@ const b = function(e, ...r) {
|
|
|
6684
6873
|
return n.getVisibilities(t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
6685
6874
|
},
|
|
6686
6875
|
/**
|
|
6687
|
-
*
|
|
6876
|
+
*
|
|
6688
6877
|
* @summary Retrieves a visibility by ID.
|
|
6689
6878
|
* @param {VisibilityApiGetVisibilityRequest} requestParameters Request parameters.
|
|
6690
6879
|
* @param {*} [options] Override http request option.
|
|
@@ -6703,11 +6892,11 @@ const b = function(e, ...r) {
|
|
|
6703
6892
|
* @throws {RequiredError}
|
|
6704
6893
|
*/
|
|
6705
6894
|
apiV2VocabulariesOptions: async (r = {}) => {
|
|
6706
|
-
const o = "/api/v2/vocabularies", n = new URL(o,
|
|
6895
|
+
const o = "/api/v2/vocabularies", n = new URL(o, m);
|
|
6707
6896
|
let t;
|
|
6708
6897
|
e && (t = e.baseOptions);
|
|
6709
6898
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
6710
|
-
await
|
|
6899
|
+
await P(a, "Authorization", e), b(n, l);
|
|
6711
6900
|
let c = t && t.headers ? t.headers : {};
|
|
6712
6901
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6713
6902
|
url: y(n),
|
|
@@ -6715,7 +6904,7 @@ const b = function(e, ...r) {
|
|
|
6715
6904
|
};
|
|
6716
6905
|
},
|
|
6717
6906
|
/**
|
|
6718
|
-
*
|
|
6907
|
+
*
|
|
6719
6908
|
* @summary Retrieves top-level instances from vocabularies.
|
|
6720
6909
|
* @param {string} [searchTerm] Gets or sets the search term used to filter vocabularies.
|
|
6721
6910
|
* @param {AcceptedLanguage} [language] Gets or sets the language for which the vocabularies are requested.
|
|
@@ -6726,11 +6915,11 @@ const b = function(e, ...r) {
|
|
|
6726
6915
|
* @throws {RequiredError}
|
|
6727
6916
|
*/
|
|
6728
6917
|
getVocabularies: async (r, o, n, t, s, a = {}) => {
|
|
6729
|
-
const l = "/api/v2/vocabularies", c = new URL(l,
|
|
6918
|
+
const l = "/api/v2/vocabularies", c = new URL(l, m);
|
|
6730
6919
|
let i;
|
|
6731
6920
|
e && (i = e.baseOptions);
|
|
6732
6921
|
const p = { method: "GET", ...i, ...a }, d = {}, h = {};
|
|
6733
|
-
await
|
|
6922
|
+
await P(d, "Authorization", e), r !== void 0 && (h.SearchTerm = r), o !== void 0 && (h.Language = o), n !== void 0 && (h.PageNumber = n), t !== void 0 && (h.PageSize = t), s !== void 0 && (h.OrderBy = s), b(c, h);
|
|
6734
6923
|
let u = i && i.headers ? i.headers : {};
|
|
6735
6924
|
return p.headers = { ...d, ...u, ...a.headers }, {
|
|
6736
6925
|
url: y(c),
|
|
@@ -6747,11 +6936,11 @@ const b = function(e, ...r) {
|
|
|
6747
6936
|
*/
|
|
6748
6937
|
getVocabularyInstance: async (r, o, n = {}) => {
|
|
6749
6938
|
I("getVocabularyInstance", "instance", r);
|
|
6750
|
-
const t = "/api/v2/vocabularies/instances/{instance}".replace("{instance}", encodeURIComponent(String(r))), s = new URL(t,
|
|
6939
|
+
const t = "/api/v2/vocabularies/instances/{instance}".replace("{instance}", encodeURIComponent(String(r))), s = new URL(t, m);
|
|
6751
6940
|
let a;
|
|
6752
6941
|
e && (a = e.baseOptions);
|
|
6753
6942
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
6754
|
-
await
|
|
6943
|
+
await P(c, "Authorization", e), o != null && (c["Accept-Language"] = typeof o == "string" ? o : JSON.stringify(o)), b(s, i);
|
|
6755
6944
|
let p = a && a.headers ? a.headers : {};
|
|
6756
6945
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
6757
6946
|
url: y(s),
|
|
@@ -6759,7 +6948,7 @@ const b = function(e, ...r) {
|
|
|
6759
6948
|
};
|
|
6760
6949
|
},
|
|
6761
6950
|
/**
|
|
6762
|
-
*
|
|
6951
|
+
*
|
|
6763
6952
|
* @summary Retrieves vocabulary instances.
|
|
6764
6953
|
* @param {string} _class Gets or sets the URI class, which is a required field.
|
|
6765
6954
|
* @param {string} [searchTerm] Gets or sets the search term used to filter vocabulary instances.
|
|
@@ -6772,11 +6961,11 @@ const b = function(e, ...r) {
|
|
|
6772
6961
|
*/
|
|
6773
6962
|
getVocabularyInstances: async (r, o, n, t, s, a, l = {}) => {
|
|
6774
6963
|
I("getVocabularyInstances", "_class", r);
|
|
6775
|
-
const c = "/api/v2/vocabularies/instances", i = new URL(c,
|
|
6964
|
+
const c = "/api/v2/vocabularies/instances", i = new URL(c, m);
|
|
6776
6965
|
let p;
|
|
6777
6966
|
e && (p = e.baseOptions);
|
|
6778
6967
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
6779
|
-
await
|
|
6968
|
+
await P(h, "Authorization", e), r !== void 0 && (u.Class = r), o !== void 0 && (u.SearchTerm = o), n !== void 0 && (u.Language = n), t !== void 0 && (u.PageSize = t), s !== void 0 && (u.PageNumber = s), a !== void 0 && (u.OrderBy = a), b(i, u);
|
|
6780
6969
|
let w = p && p.headers ? p.headers : {};
|
|
6781
6970
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
6782
6971
|
url: y(i),
|
|
@@ -6799,7 +6988,7 @@ const b = function(e, ...r) {
|
|
|
6799
6988
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
6800
6989
|
},
|
|
6801
6990
|
/**
|
|
6802
|
-
*
|
|
6991
|
+
*
|
|
6803
6992
|
* @summary Retrieves top-level instances from vocabularies.
|
|
6804
6993
|
* @param {string} [searchTerm] Gets or sets the search term used to filter vocabularies.
|
|
6805
6994
|
* @param {AcceptedLanguage} [language] Gets or sets the language for which the vocabularies are requested.
|
|
@@ -6828,7 +7017,7 @@ const b = function(e, ...r) {
|
|
|
6828
7017
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
6829
7018
|
},
|
|
6830
7019
|
/**
|
|
6831
|
-
*
|
|
7020
|
+
*
|
|
6832
7021
|
* @summary Retrieves vocabulary instances.
|
|
6833
7022
|
* @param {string} _class Gets or sets the URI class, which is a required field.
|
|
6834
7023
|
* @param {string} [searchTerm] Gets or sets the search term used to filter vocabulary instances.
|
|
@@ -6858,7 +7047,7 @@ const b = function(e, ...r) {
|
|
|
6858
7047
|
return n.apiV2VocabulariesOptions(t).then((s) => s(o, r));
|
|
6859
7048
|
},
|
|
6860
7049
|
/**
|
|
6861
|
-
*
|
|
7050
|
+
*
|
|
6862
7051
|
* @summary Retrieves top-level instances from vocabularies.
|
|
6863
7052
|
* @param {VocabularyApiGetVocabulariesRequest} requestParameters Request parameters.
|
|
6864
7053
|
* @param {*} [options] Override http request option.
|
|
@@ -6878,7 +7067,7 @@ const b = function(e, ...r) {
|
|
|
6878
7067
|
return n.getVocabularyInstance(t.instance, t.acceptLanguage, s).then((a) => a(o, r));
|
|
6879
7068
|
},
|
|
6880
7069
|
/**
|
|
6881
|
-
*
|
|
7070
|
+
*
|
|
6882
7071
|
* @summary Retrieves vocabulary instances.
|
|
6883
7072
|
* @param {VocabularyApiGetVocabularyInstancesRequest} requestParameters Request parameters.
|
|
6884
7073
|
* @param {*} [options] Override http request option.
|
|
@@ -6964,7 +7153,7 @@ class x {
|
|
|
6964
7153
|
return r !== null && (o.test(r) || r.toLowerCase() === "application/json-patch+json");
|
|
6965
7154
|
}
|
|
6966
7155
|
}
|
|
6967
|
-
const N = "https://d-
|
|
7156
|
+
const N = "https://d-sp28.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.STS".replace(/\/+$/, ""), $ = {}, G = "https://example.com", _ = async function(e, r, o) {
|
|
6968
7157
|
if (o && o.apiKey) {
|
|
6969
7158
|
const n = typeof o.apiKey == "function" ? await o.apiKey(r) : await o.apiKey;
|
|
6970
7159
|
e[r] = n;
|
|
@@ -6978,9 +7167,9 @@ function Re(e, r, o = "") {
|
|
|
6978
7167
|
const q = function(e, ...r) {
|
|
6979
7168
|
const o = new URLSearchParams(e.search);
|
|
6980
7169
|
Re(o, r), e.search = o.toString();
|
|
6981
|
-
},
|
|
7170
|
+
}, J = function(e) {
|
|
6982
7171
|
return e.pathname + e.search + e.hash;
|
|
6983
|
-
},
|
|
7172
|
+
}, K = function(e, r, o, n) {
|
|
6984
7173
|
return (t = r, s = o) => {
|
|
6985
7174
|
const a = { ...e.options, url: ((n == null ? void 0 : n.basePath) || t.defaults.baseURL || s) + e.url };
|
|
6986
7175
|
return t.request(a);
|
|
@@ -7001,7 +7190,7 @@ const q = function(e, ...r) {
|
|
|
7001
7190
|
await _(a, "Authorization", e), q(n, l);
|
|
7002
7191
|
let c = t && t.headers ? t.headers : {};
|
|
7003
7192
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
7004
|
-
url:
|
|
7193
|
+
url: J(n),
|
|
7005
7194
|
options: s
|
|
7006
7195
|
};
|
|
7007
7196
|
},
|
|
@@ -7019,7 +7208,7 @@ const q = function(e, ...r) {
|
|
|
7019
7208
|
await _(a, "Authorization", e), q(n, l);
|
|
7020
7209
|
let c = t && t.headers ? t.headers : {};
|
|
7021
7210
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
7022
|
-
url:
|
|
7211
|
+
url: J(n),
|
|
7023
7212
|
options: s
|
|
7024
7213
|
};
|
|
7025
7214
|
}
|
|
@@ -7036,7 +7225,7 @@ const q = function(e, ...r) {
|
|
|
7036
7225
|
async accountGetLoginUrls(o) {
|
|
7037
7226
|
var a, l;
|
|
7038
7227
|
const n = await r.accountGetLoginUrls(o), t = (e == null ? void 0 : e.serverIndex) ?? 0, s = (l = (a = $["AccountApi.accountGetLoginUrls"]) == null ? void 0 : a[t]) == null ? void 0 : l.url;
|
|
7039
|
-
return (c, i) =>
|
|
7228
|
+
return (c, i) => K(n, O, N, e)(c, s || i);
|
|
7040
7229
|
},
|
|
7041
7230
|
/**
|
|
7042
7231
|
*
|
|
@@ -7047,7 +7236,7 @@ const q = function(e, ...r) {
|
|
|
7047
7236
|
async accountLogout(o) {
|
|
7048
7237
|
var a, l;
|
|
7049
7238
|
const n = await r.accountLogout(o), t = (e == null ? void 0 : e.serverIndex) ?? 0, s = (l = (a = $["AccountApi.accountLogout"]) == null ? void 0 : a[t]) == null ? void 0 : l.url;
|
|
7050
|
-
return (c, i) =>
|
|
7239
|
+
return (c, i) => K(n, O, N, e)(c, s || i);
|
|
7051
7240
|
}
|
|
7052
7241
|
};
|
|
7053
7242
|
}, ha = function(e, r, o) {
|
|
@@ -7088,7 +7277,7 @@ const q = function(e, ...r) {
|
|
|
7088
7277
|
await _(a, "Authorization", e), q(n, l);
|
|
7089
7278
|
let c = t && t.headers ? t.headers : {};
|
|
7090
7279
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
7091
|
-
url:
|
|
7280
|
+
url: J(n),
|
|
7092
7281
|
options: s
|
|
7093
7282
|
};
|
|
7094
7283
|
}
|
|
@@ -7105,7 +7294,7 @@ const q = function(e, ...r) {
|
|
|
7105
7294
|
async homeIndex(o) {
|
|
7106
7295
|
var a, l;
|
|
7107
7296
|
const n = await r.homeIndex(o), t = (e == null ? void 0 : e.serverIndex) ?? 0, s = (l = (a = $["HomeApi.homeIndex"]) == null ? void 0 : a[t]) == null ? void 0 : l.url;
|
|
7108
|
-
return (c, i) =>
|
|
7297
|
+
return (c, i) => K(n, O, N, e)(c, s || i);
|
|
7109
7298
|
}
|
|
7110
7299
|
};
|
|
7111
7300
|
}, Aa = function(e, r, o) {
|
|
@@ -7137,7 +7326,7 @@ const q = function(e, ...r) {
|
|
|
7137
7326
|
await _(l, "Authorization", e), r !== void 0 && (c.returnUrl = r), q(t, c);
|
|
7138
7327
|
let i = s && s.headers ? s.headers : {};
|
|
7139
7328
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
7140
|
-
url:
|
|
7329
|
+
url: J(t),
|
|
7141
7330
|
options: a
|
|
7142
7331
|
};
|
|
7143
7332
|
},
|
|
@@ -7155,12 +7344,12 @@ const q = function(e, ...r) {
|
|
|
7155
7344
|
await _(l, "Authorization", e), r !== void 0 && (c.returnUrl = r), q(t, c);
|
|
7156
7345
|
let i = s && s.headers ? s.headers : {};
|
|
7157
7346
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
7158
|
-
url:
|
|
7347
|
+
url: J(t),
|
|
7159
7348
|
options: a
|
|
7160
7349
|
};
|
|
7161
7350
|
}
|
|
7162
7351
|
};
|
|
7163
|
-
},
|
|
7352
|
+
}, ma = function(e) {
|
|
7164
7353
|
const r = Va(e);
|
|
7165
7354
|
return {
|
|
7166
7355
|
/**
|
|
@@ -7172,7 +7361,7 @@ const q = function(e, ...r) {
|
|
|
7172
7361
|
async mergeCallback(o, n) {
|
|
7173
7362
|
var l, c;
|
|
7174
7363
|
const t = await r.mergeCallback(o, n), s = (e == null ? void 0 : e.serverIndex) ?? 0, a = (c = (l = $["MergeApi.mergeCallback"]) == null ? void 0 : l[s]) == null ? void 0 : c.url;
|
|
7175
|
-
return (i, p) =>
|
|
7364
|
+
return (i, p) => K(t, O, N, e)(i, a || p);
|
|
7176
7365
|
},
|
|
7177
7366
|
/**
|
|
7178
7367
|
*
|
|
@@ -7183,11 +7372,11 @@ const q = function(e, ...r) {
|
|
|
7183
7372
|
async mergeLogin(o, n) {
|
|
7184
7373
|
var l, c;
|
|
7185
7374
|
const t = await r.mergeLogin(o, n), s = (e == null ? void 0 : e.serverIndex) ?? 0, a = (c = (l = $["MergeApi.mergeLogin"]) == null ? void 0 : l[s]) == null ? void 0 : c.url;
|
|
7186
|
-
return (i, p) =>
|
|
7375
|
+
return (i, p) => K(t, O, N, e)(i, a || p);
|
|
7187
7376
|
}
|
|
7188
7377
|
};
|
|
7189
|
-
},
|
|
7190
|
-
const n =
|
|
7378
|
+
}, Pa = function(e, r, o) {
|
|
7379
|
+
const n = ma(e);
|
|
7191
7380
|
return {
|
|
7192
7381
|
/**
|
|
7193
7382
|
*
|
|
@@ -7225,7 +7414,7 @@ const q = function(e, ...r) {
|
|
|
7225
7414
|
await _(l, "Authorization", e), r !== void 0 && (c.returnUrl = r), q(t, c);
|
|
7226
7415
|
let i = s && s.headers ? s.headers : {};
|
|
7227
7416
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
7228
|
-
url:
|
|
7417
|
+
url: J(t),
|
|
7229
7418
|
options: a
|
|
7230
7419
|
};
|
|
7231
7420
|
},
|
|
@@ -7245,7 +7434,7 @@ const q = function(e, ...r) {
|
|
|
7245
7434
|
await _(c, "Authorization", e), r !== void 0 && (i.ORCiD_JWT = r), o !== void 0 && (i.returnUrl = o), q(s, i);
|
|
7246
7435
|
let p = a && a.headers ? a.headers : {};
|
|
7247
7436
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
7248
|
-
url:
|
|
7437
|
+
url: J(s),
|
|
7249
7438
|
options: l
|
|
7250
7439
|
};
|
|
7251
7440
|
}
|
|
@@ -7263,7 +7452,7 @@ const q = function(e, ...r) {
|
|
|
7263
7452
|
async oRCiDLoginGET(o, n) {
|
|
7264
7453
|
var l, c;
|
|
7265
7454
|
const t = await r.oRCiDLoginGET(o, n), s = (e == null ? void 0 : e.serverIndex) ?? 0, a = (c = (l = $["ORCiDApi.oRCiDLoginGET"]) == null ? void 0 : l[s]) == null ? void 0 : c.url;
|
|
7266
|
-
return (i, p) =>
|
|
7455
|
+
return (i, p) => K(t, O, N, e)(i, a || p);
|
|
7267
7456
|
},
|
|
7268
7457
|
/**
|
|
7269
7458
|
*
|
|
@@ -7276,7 +7465,7 @@ const q = function(e, ...r) {
|
|
|
7276
7465
|
async oRCiDLoginPOST(o, n, t) {
|
|
7277
7466
|
var c, i;
|
|
7278
7467
|
const s = await r.oRCiDLoginPOST(o, n, t), a = (e == null ? void 0 : e.serverIndex) ?? 0, l = (i = (c = $["ORCiDApi.oRCiDLoginPOST"]) == null ? void 0 : c[a]) == null ? void 0 : i.url;
|
|
7279
|
-
return (p, d) =>
|
|
7468
|
+
return (p, d) => K(s, O, N, e)(p, l || d);
|
|
7280
7469
|
}
|
|
7281
7470
|
};
|
|
7282
7471
|
}, Ra = function(e, r, o) {
|
|
@@ -7321,7 +7510,7 @@ const q = function(e, ...r) {
|
|
|
7321
7510
|
await _(c, "Authorization", e), r !== void 0 && (i.returnUrl = r), o !== void 0 && (i.remoteError = o), q(s, i);
|
|
7322
7511
|
let p = a && a.headers ? a.headers : {};
|
|
7323
7512
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
7324
|
-
url:
|
|
7513
|
+
url: J(s),
|
|
7325
7514
|
options: l
|
|
7326
7515
|
};
|
|
7327
7516
|
},
|
|
@@ -7341,7 +7530,7 @@ const q = function(e, ...r) {
|
|
|
7341
7530
|
await _(c, "Authorization", e), r !== void 0 && (i.returnUrl = r), o !== void 0 && (i.entityId = o), q(s, i);
|
|
7342
7531
|
let p = a && a.headers ? a.headers : {};
|
|
7343
7532
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
7344
|
-
url:
|
|
7533
|
+
url: J(s),
|
|
7345
7534
|
options: l
|
|
7346
7535
|
};
|
|
7347
7536
|
}
|
|
@@ -7360,7 +7549,7 @@ const q = function(e, ...r) {
|
|
|
7360
7549
|
async shibbolethCallback(o, n, t) {
|
|
7361
7550
|
var c, i;
|
|
7362
7551
|
const s = await r.shibbolethCallback(o, n, t), a = (e == null ? void 0 : e.serverIndex) ?? 0, l = (i = (c = $["ShibbolethApi.shibbolethCallback"]) == null ? void 0 : c[a]) == null ? void 0 : i.url;
|
|
7363
|
-
return (p, d) =>
|
|
7552
|
+
return (p, d) => K(s, O, N, e)(p, l || d);
|
|
7364
7553
|
},
|
|
7365
7554
|
/**
|
|
7366
7555
|
*
|
|
@@ -7373,7 +7562,7 @@ const q = function(e, ...r) {
|
|
|
7373
7562
|
async shibbolethLogin(o, n, t) {
|
|
7374
7563
|
var c, i;
|
|
7375
7564
|
const s = await r.shibbolethLogin(o, n, t), a = (e == null ? void 0 : e.serverIndex) ?? 0, l = (i = (c = $["ShibbolethApi.shibbolethLogin"]) == null ? void 0 : c[a]) == null ? void 0 : i.url;
|
|
7376
|
-
return (p, d) =>
|
|
7565
|
+
return (p, d) => K(s, O, N, e)(p, l || d);
|
|
7377
7566
|
}
|
|
7378
7567
|
};
|
|
7379
7568
|
}, wa = function(e, r, o) {
|
|
@@ -7418,14 +7607,14 @@ function Ta(e) {
|
|
|
7418
7607
|
AccountApi: ha(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7419
7608
|
AdminApi: Br(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7420
7609
|
ApplicationProfileApi: Lr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7421
|
-
BlobApi:
|
|
7610
|
+
BlobApi: Mr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7422
7611
|
DisciplineApi: kr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7423
7612
|
HandleApi: $r(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7424
7613
|
HomeApi: Aa(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7425
7614
|
LanguageApi: qr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7426
|
-
LicenseApi:
|
|
7615
|
+
LicenseApi: fr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7427
7616
|
MaintenanceApi: Yr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7428
|
-
MergeApi:
|
|
7617
|
+
MergeApi: Pa(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7429
7618
|
ORCiDApi: Ra(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7430
7619
|
OrganizationApi: es(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7431
7620
|
PidApi: ss(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
@@ -7433,18 +7622,18 @@ function Ta(e) {
|
|
|
7433
7622
|
ProjectInvitationApi: is(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7434
7623
|
ProjectMemberApi: hs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7435
7624
|
ProjectPublicationRequestApi: As(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7436
|
-
ProjectQuotaApi:
|
|
7625
|
+
ProjectQuotaApi: Ps(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7437
7626
|
ProjectResourceApi: Rs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7438
7627
|
ProjectResourceQuotaApi: ws(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7439
7628
|
ProjectResourceTypeApi: vs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7440
7629
|
ResourceApi: Bs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7441
7630
|
ResourceTypeApi: Ls(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7442
|
-
RoleApi:
|
|
7631
|
+
RoleApi: Ms(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7443
7632
|
SearchApi: ks(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7444
7633
|
SelfApi: $s(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7445
7634
|
SelfApiTokenApi: qs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7446
7635
|
ShibbolethApi: wa(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7447
|
-
TitleApi:
|
|
7636
|
+
TitleApi: fs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7448
7637
|
TosApi: Ys(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7449
7638
|
TreeApi: ea(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7450
7639
|
UserApi: sa(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
@@ -7462,7 +7651,7 @@ function va(e) {
|
|
|
7462
7651
|
}
|
|
7463
7652
|
}
|
|
7464
7653
|
nt.interceptors.request.use((e) => (va(e), e), (e) => Promise.reject(e), { synchronous: !0 });
|
|
7465
|
-
const B = Ta(nt), Sa = B.AccountApi, Ba = B.AdminApi, Fa = B.ApplicationProfileApi, Ca = B.BlobApi, La = B.DisciplineApi, Ea = B.HandleApi, za = B.HomeApi,
|
|
7654
|
+
const B = Ta(nt), Sa = B.AccountApi, Ba = B.AdminApi, Fa = B.ApplicationProfileApi, Ca = B.BlobApi, La = B.DisciplineApi, Ea = B.HandleApi, za = B.HomeApi, Ma = B.LanguageApi, Ha = B.LicenseApi, Qa = B.MaintenanceApi, ka = B.MergeApi, Da = B.ORCiDApi, Na = B.OrganizationApi, $a = B.PidApi, Ga = B.ProjectApi, _a = B.ProjectInvitationApi, qa = B.ProjectMemberApi, Ja = B.ProjectPublicationRequestApi, Ka = B.ProjectQuotaApi, fa = B.ProjectResourceApi, Wa = B.ProjectResourceQuotaApi, Xa = B.ProjectResourceTypeApi, Ya = B.ResourceApi, Za = B.ResourceTypeApi, ga = B.RoleApi, eo = B.SearchApi, to = B.SelfApi, ro = B.SelfApiTokenApi, so = B.ShibbolethApi, ao = B.TitleApi, oo = B.TosApi, no = B.TreeApi, lo = B.UserApi, co = B.VisibilityApi, io = B.VocabularyApi;
|
|
7466
7655
|
export {
|
|
7467
7656
|
Sa as AccountApi,
|
|
7468
7657
|
Ba as AdminApi,
|
|
@@ -7471,8 +7660,8 @@ export {
|
|
|
7471
7660
|
La as DisciplineApi,
|
|
7472
7661
|
Ea as HandleApi,
|
|
7473
7662
|
za as HomeApi,
|
|
7474
|
-
|
|
7475
|
-
|
|
7663
|
+
Ma as LanguageApi,
|
|
7664
|
+
Ha as LicenseApi,
|
|
7476
7665
|
Qa as MaintenanceApi,
|
|
7477
7666
|
ka as MergeApi,
|
|
7478
7667
|
Da as ORCiDApi,
|
|
@@ -7481,9 +7670,9 @@ export {
|
|
|
7481
7670
|
Ga as ProjectApi,
|
|
7482
7671
|
_a as ProjectInvitationApi,
|
|
7483
7672
|
qa as ProjectMemberApi,
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7673
|
+
Ja as ProjectPublicationRequestApi,
|
|
7674
|
+
Ka as ProjectQuotaApi,
|
|
7675
|
+
fa as ProjectResourceApi,
|
|
7487
7676
|
Wa as ProjectResourceQuotaApi,
|
|
7488
7677
|
Xa as ProjectResourceTypeApi,
|
|
7489
7678
|
Ya as ResourceApi,
|