@coscine/api-client 3.6.0 → 3.7.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 +753 -652
- package/dist/types/Coscine.Api/@coscine/api/project-api.d.ts +10 -2
- package/dist/types/Coscine.Api/@coscine/model/resource-admin-dto.d.ts +6 -0
- package/dist/types/Coscine.Api/@coscine/model/resource-dto.d.ts +6 -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
|
@@ -23,7 +23,7 @@ const ut = le("string"), z = le("function"), Ne = le("number"), ce = (e) => e !=
|
|
|
23
23
|
return !1;
|
|
24
24
|
const r = je(e);
|
|
25
25
|
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
26
|
-
}, At = Q("Date"), Vt = Q("File"),
|
|
26
|
+
}, At = Q("Date"), Vt = Q("File"), Pt = Q("Blob"), mt = Q("FileList"), bt = (e) => ce(e) && z(e.pipe), yt = (e) => {
|
|
27
27
|
let r;
|
|
28
28
|
return e && (typeof FormData == "function" && e instanceof FormData || z(e.append) && ((r = ne(e)) === "formdata" || // detect form-data instance
|
|
29
29
|
r === "object" && z(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -112,14 +112,14 @@ const It = (e, r, o, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
112
112
|
function(o, n, t) {
|
|
113
113
|
return n.toUpperCase() + t;
|
|
114
114
|
}
|
|
115
|
-
), xe = (({ hasOwnProperty: e }) => (r, o) => e.call(r, o))(Object.prototype), Et = Q("RegExp"),
|
|
115
|
+
), xe = (({ hasOwnProperty: e }) => (r, o) => e.call(r, o))(Object.prototype), Et = Q("RegExp"), qe = (e, r) => {
|
|
116
116
|
const o = Object.getOwnPropertyDescriptors(e), n = {};
|
|
117
117
|
ee(o, (t, s) => {
|
|
118
118
|
let a;
|
|
119
119
|
(a = r(t, s, e)) !== !1 && (n[s] = a || t);
|
|
120
120
|
}), Object.defineProperties(e, n);
|
|
121
121
|
}, zt = (e) => {
|
|
122
|
-
|
|
122
|
+
qe(e, (r, o) => {
|
|
123
123
|
if (z(e) && ["arguments", "caller", "callee"].indexOf(o) !== -1)
|
|
124
124
|
return !1;
|
|
125
125
|
const n = e[o];
|
|
@@ -141,11 +141,11 @@ const It = (e, r, o, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
141
141
|
};
|
|
142
142
|
return Y(e) ? n(e) : n(String(e).split(r)), o;
|
|
143
143
|
}, Mt = () => {
|
|
144
|
-
}, Qt = (e, r) => (e = +e, Number.isFinite(e) ? e : r), de = "abcdefghijklmnopqrstuvwxyz", Se = "0123456789",
|
|
144
|
+
}, Qt = (e, r) => (e = +e, Number.isFinite(e) ? e : r), de = "abcdefghijklmnopqrstuvwxyz", Se = "0123456789", fe = {
|
|
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 = fe.ALPHA_DIGIT) => {
|
|
149
149
|
let o = "";
|
|
150
150
|
const { length: n } = r;
|
|
151
151
|
for (; e--; )
|
|
@@ -176,7 +176,7 @@ const Nt = (e) => {
|
|
|
176
176
|
isArray: Y,
|
|
177
177
|
isArrayBuffer: De,
|
|
178
178
|
isBuffer: dt,
|
|
179
|
-
isFormData:
|
|
179
|
+
isFormData: yt,
|
|
180
180
|
isArrayBufferView: ht,
|
|
181
181
|
isString: ut,
|
|
182
182
|
isNumber: Ne,
|
|
@@ -186,13 +186,13 @@ const Nt = (e) => {
|
|
|
186
186
|
isUndefined: g,
|
|
187
187
|
isDate: At,
|
|
188
188
|
isFile: Vt,
|
|
189
|
-
isBlob:
|
|
189
|
+
isBlob: Pt,
|
|
190
190
|
isRegExp: Et,
|
|
191
191
|
isFunction: z,
|
|
192
|
-
isStream:
|
|
192
|
+
isStream: bt,
|
|
193
193
|
isURLSearchParams: Rt,
|
|
194
194
|
isTypedArray: St,
|
|
195
|
-
isFileList:
|
|
195
|
+
isFileList: mt,
|
|
196
196
|
forEach: ee,
|
|
197
197
|
merge: Ae,
|
|
198
198
|
extend: It,
|
|
@@ -210,7 +210,7 @@ const Nt = (e) => {
|
|
|
210
210
|
hasOwnProperty: xe,
|
|
211
211
|
hasOwnProp: xe,
|
|
212
212
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
213
|
-
reduceDescriptors:
|
|
213
|
+
reduceDescriptors: qe,
|
|
214
214
|
freezeMethods: zt,
|
|
215
215
|
toObjectSet: Ht,
|
|
216
216
|
toCamelCase: Lt,
|
|
@@ -219,17 +219,17 @@ const Nt = (e) => {
|
|
|
219
219
|
findKey: $e,
|
|
220
220
|
global: Ge,
|
|
221
221
|
isContextDefined: _e,
|
|
222
|
-
ALPHABET:
|
|
222
|
+
ALPHABET: fe,
|
|
223
223
|
generateString: kt,
|
|
224
224
|
isSpecCompliantForm: Dt,
|
|
225
225
|
toJSONObject: Nt,
|
|
226
226
|
isAsyncFn: $t,
|
|
227
227
|
isThenable: Gt
|
|
228
228
|
};
|
|
229
|
-
function
|
|
229
|
+
function F(e, r, o, n, t) {
|
|
230
230
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", r && (this.code = r), o && (this.config = o), n && (this.request = n), t && (this.response = t);
|
|
231
231
|
}
|
|
232
|
-
j.inherits(
|
|
232
|
+
j.inherits(F, Error, {
|
|
233
233
|
toJSON: function() {
|
|
234
234
|
return {
|
|
235
235
|
// Standard
|
|
@@ -250,7 +250,7 @@ j.inherits(B, Error, {
|
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
|
-
const Je =
|
|
253
|
+
const Je = F.prototype, Ke = {};
|
|
254
254
|
[
|
|
255
255
|
"ERR_BAD_OPTION_VALUE",
|
|
256
256
|
"ERR_BAD_OPTION",
|
|
@@ -268,13 +268,13 @@ const Je = B.prototype, Ke = {};
|
|
|
268
268
|
].forEach((e) => {
|
|
269
269
|
Ke[e] = { value: e };
|
|
270
270
|
});
|
|
271
|
-
Object.defineProperties(
|
|
271
|
+
Object.defineProperties(F, Ke);
|
|
272
272
|
Object.defineProperty(Je, "isAxiosError", { value: !0 });
|
|
273
|
-
|
|
273
|
+
F.from = (e, r, o, n, t, s) => {
|
|
274
274
|
const a = Object.create(Je);
|
|
275
275
|
return j.toFlatObject(e, a, function(c) {
|
|
276
276
|
return c !== Error.prototype;
|
|
277
|
-
}, (l) => l !== "isAxiosError"),
|
|
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;
|
|
278
278
|
};
|
|
279
279
|
const _t = null;
|
|
280
280
|
function Ve(e) {
|
|
@@ -288,10 +288,10 @@ function Be(e, r, o) {
|
|
|
288
288
|
return t = We(t), !o && s ? "[" + t + "]" : t;
|
|
289
289
|
}).join(o ? "." : "") : r;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function qt(e) {
|
|
292
292
|
return j.isArray(e) && !e.some(Ve);
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const ft = j.toFlatObject(j, {}, null, function(r) {
|
|
295
295
|
return /^is[A-Z]/.test(r);
|
|
296
296
|
});
|
|
297
297
|
function ie(e, r, o) {
|
|
@@ -313,7 +313,7 @@ function ie(e, r, o) {
|
|
|
313
313
|
if (j.isDate(w))
|
|
314
314
|
return w.toISOString();
|
|
315
315
|
if (!c && j.isBlob(w))
|
|
316
|
-
throw new
|
|
316
|
+
throw new F("Blob is not supported. Use a Buffer instead.");
|
|
317
317
|
return j.isArrayBuffer(w) || j.isTypedArray(w) ? c && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w;
|
|
318
318
|
}
|
|
319
319
|
function p(w, T, U) {
|
|
@@ -321,7 +321,7 @@ function ie(e, r, o) {
|
|
|
321
321
|
if (w && !U && typeof w == "object") {
|
|
322
322
|
if (j.endsWith(T, "{}"))
|
|
323
323
|
T = n ? T : T.slice(0, -2), w = JSON.stringify(w);
|
|
324
|
-
else if (j.isArray(w) &&
|
|
324
|
+
else if (j.isArray(w) && qt(w) || (j.isFileList(w) || j.endsWith(T, "[]")) && (C = j.toArray(w)))
|
|
325
325
|
return T = We(T), C.forEach(function(K, lt) {
|
|
326
326
|
!(j.isUndefined(K) || K === null) && r.append(
|
|
327
327
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -332,7 +332,7 @@ function ie(e, r, o) {
|
|
|
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(ft, {
|
|
336
336
|
defaultVisitor: p,
|
|
337
337
|
convertValue: i,
|
|
338
338
|
isVisitable: Ve
|
|
@@ -554,7 +554,7 @@ const we = {
|
|
|
554
554
|
return JSON.parse(r);
|
|
555
555
|
} catch (l) {
|
|
556
556
|
if (a)
|
|
557
|
-
throw l.name === "SyntaxError" ?
|
|
557
|
+
throw l.name === "SyntaxError" ? F.from(l, F.ERR_BAD_RESPONSE, this, null, this.response) : l;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
return r;
|
|
@@ -781,16 +781,16 @@ function tt(e) {
|
|
|
781
781
|
return !!(e && e.__CANCEL__);
|
|
782
782
|
}
|
|
783
783
|
function te(e, r, o) {
|
|
784
|
-
|
|
784
|
+
F.call(this, e ?? "canceled", F.ERR_CANCELED, r, o), this.name = "CanceledError";
|
|
785
785
|
}
|
|
786
|
-
j.inherits(te,
|
|
786
|
+
j.inherits(te, F, {
|
|
787
787
|
__CANCEL__: !0
|
|
788
788
|
});
|
|
789
789
|
function hr(e, r, o) {
|
|
790
790
|
const n = o.config.validateStatus;
|
|
791
|
-
!o.status || !n || n(o.status) ? e(o) : r(new
|
|
791
|
+
!o.status || !n || n(o.status) ? e(o) : r(new F(
|
|
792
792
|
"Request failed with status code " + o.status,
|
|
793
|
-
[
|
|
793
|
+
[F.ERR_BAD_REQUEST, F.ERR_BAD_RESPONSE][Math.floor(o.status / 100) - 4],
|
|
794
794
|
o.config,
|
|
795
795
|
o.request,
|
|
796
796
|
o
|
|
@@ -864,11 +864,11 @@ const Vr = M.hasStandardBrowserEnv ? (
|
|
|
864
864
|
};
|
|
865
865
|
}()
|
|
866
866
|
);
|
|
867
|
-
function
|
|
867
|
+
function Pr(e) {
|
|
868
868
|
const r = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
869
869
|
return r && r[1] || "";
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function mr(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 Pr(e, r) {
|
|
|
886
886
|
}
|
|
887
887
|
function Ee(e, r) {
|
|
888
888
|
let o = 0;
|
|
889
|
-
const n =
|
|
889
|
+
const n = mr(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;
|
|
@@ -902,7 +902,7 @@ function Ee(e, r) {
|
|
|
902
902
|
p[r ? "download" : "upload"] = !0, e(p);
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
|
-
const
|
|
905
|
+
const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
906
906
|
return new Promise(function(o, n) {
|
|
907
907
|
let t = e.data;
|
|
908
908
|
const s = D.from(e.headers).normalize();
|
|
@@ -948,15 +948,15 @@ const yr = typeof XMLHttpRequest < "u", br = yr && function(e) {
|
|
|
948
948
|
if ("onloadend" in d ? d.onloadend = u : d.onreadystatechange = function() {
|
|
949
949
|
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(u);
|
|
950
950
|
}, d.onabort = function() {
|
|
951
|
-
d && (n(new
|
|
951
|
+
d && (n(new F("Request aborted", F.ECONNABORTED, e, d)), d = null);
|
|
952
952
|
}, d.onerror = function() {
|
|
953
|
-
n(new
|
|
953
|
+
n(new F("Network Error", F.ERR_NETWORK, e, d)), d = null;
|
|
954
954
|
}, d.ontimeout = function() {
|
|
955
955
|
let U = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
956
956
|
const C = e.transitional || Ze;
|
|
957
|
-
e.timeoutErrorMessage && (U = e.timeoutErrorMessage), n(new
|
|
957
|
+
e.timeoutErrorMessage && (U = e.timeoutErrorMessage), n(new F(
|
|
958
958
|
U,
|
|
959
|
-
C.clarifyTimeoutError ?
|
|
959
|
+
C.clarifyTimeoutError ? F.ETIMEDOUT : F.ECONNABORTED,
|
|
960
960
|
e,
|
|
961
961
|
d
|
|
962
962
|
)), d = null;
|
|
@@ -969,18 +969,18 @@ const yr = typeof XMLHttpRequest < "u", br = yr && 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 =
|
|
972
|
+
const w = Pr(h);
|
|
973
973
|
if (w && M.protocols.indexOf(w) === -1) {
|
|
974
|
-
n(new
|
|
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
|
+
}, Pe = {
|
|
980
980
|
http: _t,
|
|
981
|
-
xhr:
|
|
981
|
+
xhr: yr
|
|
982
982
|
};
|
|
983
|
-
j.forEach(
|
|
983
|
+
j.forEach(Pe, (e, r) => {
|
|
984
984
|
if (e) {
|
|
985
985
|
try {
|
|
986
986
|
Object.defineProperty(e, "name", { value: r });
|
|
@@ -998,8 +998,8 @@ 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 =
|
|
1002
|
-
throw new
|
|
1001
|
+
if (n = o, !Rr(o) && (n = Pe[(a = String(o)).toLowerCase()], n === void 0))
|
|
1002
|
+
throw new F(`Unknown adapter '${a}'`);
|
|
1003
1003
|
if (n)
|
|
1004
1004
|
break;
|
|
1005
1005
|
t[a || "#" + s] = n;
|
|
@@ -1011,14 +1011,14 @@ const ze = (e) => `- ${e}`, Rr = (e) => j.isFunction(e) || e === null || e === !
|
|
|
1011
1011
|
let a = r ? s.length > 1 ? `since :
|
|
1012
1012
|
` + s.map(ze).join(`
|
|
1013
1013
|
`) : " " + ze(s[0]) : "as no adapter specified";
|
|
1014
|
-
throw new
|
|
1014
|
+
throw new F(
|
|
1015
1015
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1016
1016
|
"ERR_NOT_SUPPORT"
|
|
1017
1017
|
);
|
|
1018
1018
|
}
|
|
1019
1019
|
return n;
|
|
1020
1020
|
},
|
|
1021
|
-
adapters:
|
|
1021
|
+
adapters: Pe
|
|
1022
1022
|
};
|
|
1023
1023
|
function Oe(e) {
|
|
1024
1024
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -1122,9 +1122,9 @@ Ue.transitional = function(r, o, n) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
return (s, a, l) => {
|
|
1124
1124
|
if (r === !1)
|
|
1125
|
-
throw new
|
|
1125
|
+
throw new F(
|
|
1126
1126
|
t(a, " has been removed" + (o ? " in " + o : "")),
|
|
1127
|
-
|
|
1127
|
+
F.ERR_DEPRECATED
|
|
1128
1128
|
);
|
|
1129
1129
|
return o && !Qe[a] && (Qe[a] = !0, console.warn(
|
|
1130
1130
|
t(
|
|
@@ -1136,7 +1136,7 @@ Ue.transitional = function(r, o, n) {
|
|
|
1136
1136
|
};
|
|
1137
1137
|
function jr(e, r, o) {
|
|
1138
1138
|
if (typeof e != "object")
|
|
1139
|
-
throw new
|
|
1139
|
+
throw new F("options must be an object", F.ERR_BAD_OPTION_VALUE);
|
|
1140
1140
|
const n = Object.keys(e);
|
|
1141
1141
|
let t = n.length;
|
|
1142
1142
|
for (; t-- > 0; ) {
|
|
@@ -1144,17 +1144,17 @@ function jr(e, r, o) {
|
|
|
1144
1144
|
if (a) {
|
|
1145
1145
|
const l = e[s], c = l === void 0 || a(l, s, e);
|
|
1146
1146
|
if (c !== !0)
|
|
1147
|
-
throw new
|
|
1147
|
+
throw new F("option " + s + " must be " + c, F.ERR_BAD_OPTION_VALUE);
|
|
1148
1148
|
continue;
|
|
1149
1149
|
}
|
|
1150
1150
|
if (o !== !0)
|
|
1151
|
-
throw new
|
|
1151
|
+
throw new F("Unknown option " + s, F.ERR_BAD_OPTION);
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
const
|
|
1154
|
+
const me = {
|
|
1155
1155
|
assertOptions: jr,
|
|
1156
1156
|
validators: Ue
|
|
1157
|
-
}, W =
|
|
1157
|
+
}, W = me.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 && me.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
|
+
} : me.assertOptions(t, {
|
|
1183
1183
|
encode: W.function,
|
|
1184
1184
|
serialize: W.function
|
|
1185
1185
|
}, !0)), o.method = (o.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1337,7 +1337,7 @@ function wr(e) {
|
|
|
1337
1337
|
function Tr(e) {
|
|
1338
1338
|
return j.isObject(e) && e.isAxiosError === !0;
|
|
1339
1339
|
}
|
|
1340
|
-
const
|
|
1340
|
+
const be = {
|
|
1341
1341
|
Continue: 100,
|
|
1342
1342
|
SwitchingProtocols: 101,
|
|
1343
1343
|
Processing: 102,
|
|
@@ -1402,63 +1402,63 @@ const ye = {
|
|
|
1402
1402
|
NotExtended: 510,
|
|
1403
1403
|
NetworkAuthenticationRequired: 511
|
|
1404
1404
|
};
|
|
1405
|
-
Object.entries(
|
|
1406
|
-
|
|
1405
|
+
Object.entries(be).forEach(([e, r]) => {
|
|
1406
|
+
be[r] = e;
|
|
1407
1407
|
});
|
|
1408
|
-
const Ur =
|
|
1408
|
+
const Ur = be;
|
|
1409
1409
|
function ot(e) {
|
|
1410
1410
|
const r = new ae(e), o = ke(ae.prototype.request, r);
|
|
1411
1411
|
return j.extend(o, ae.prototype, r, { allOwnKeys: !0 }), j.extend(o, r, null, { allOwnKeys: !0 }), o.create = function(t) {
|
|
1412
1412
|
return ot(X(e, t));
|
|
1413
1413
|
}, o;
|
|
1414
1414
|
}
|
|
1415
|
-
const
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1415
|
+
const E = ot(Te);
|
|
1416
|
+
E.Axios = ae;
|
|
1417
|
+
E.CanceledError = te;
|
|
1418
|
+
E.CancelToken = Ir;
|
|
1419
|
+
E.isCancel = tt;
|
|
1420
|
+
E.VERSION = at;
|
|
1421
|
+
E.toFormData = ie;
|
|
1422
|
+
E.AxiosError = F;
|
|
1423
|
+
E.Cancel = E.CanceledError;
|
|
1424
|
+
E.all = function(r) {
|
|
1425
1425
|
return Promise.all(r);
|
|
1426
1426
|
};
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
const O =
|
|
1427
|
+
E.spread = wr;
|
|
1428
|
+
E.isAxiosError = Tr;
|
|
1429
|
+
E.mergeConfig = X;
|
|
1430
|
+
E.AxiosHeaders = D;
|
|
1431
|
+
E.formToJSON = (e) => et(j.isHTMLForm(e) ? new FormData(e) : e);
|
|
1432
|
+
E.getAdapter = st.getAdapter;
|
|
1433
|
+
E.HttpStatusCode = Ur;
|
|
1434
|
+
E.default = E;
|
|
1435
|
+
const O = E, A = "https://d-sp23.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 = {}, P = "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
|
+
}, m = 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;
|
|
1448
1448
|
}
|
|
1449
1449
|
};
|
|
1450
|
-
function
|
|
1451
|
-
r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((n) =>
|
|
1452
|
-
(n) =>
|
|
1450
|
+
function ye(e, r, o = "") {
|
|
1451
|
+
r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((n) => ye(e, n, o)) : Object.keys(r).forEach(
|
|
1452
|
+
(n) => ye(e, r[n], `${o}${o !== "" ? "." : ""}${n}`)
|
|
1453
1453
|
) : e.has(o) ? e.append(o, r) : e.set(o, r));
|
|
1454
1454
|
}
|
|
1455
|
-
const
|
|
1455
|
+
const b = function(e, ...r) {
|
|
1456
1456
|
const o = new URLSearchParams(e.search);
|
|
1457
|
-
|
|
1458
|
-
},
|
|
1457
|
+
ye(o, r), e.search = o.toString();
|
|
1458
|
+
}, L = function(e, r, o) {
|
|
1459
1459
|
const n = typeof e != "string";
|
|
1460
1460
|
return (n && o && o.isJsonMime ? o.isJsonMime(r.headers["Content-Type"]) : n) ? JSON.stringify(e !== void 0 ? e : {}) : e || "";
|
|
1461
|
-
},
|
|
1461
|
+
}, y = function(e) {
|
|
1462
1462
|
return e.pathname + e.search + e.hash;
|
|
1463
1463
|
}, R = function(e, r, o, n) {
|
|
1464
1464
|
return (t = r, s = o) => {
|
|
@@ -1474,14 +1474,14 @@ const y = 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, P);
|
|
1478
1478
|
let t;
|
|
1479
1479
|
e && (t = e.baseOptions);
|
|
1480
1480
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
1481
|
-
await
|
|
1481
|
+
await m(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
|
-
url:
|
|
1484
|
+
url: y(n),
|
|
1485
1485
|
options: s
|
|
1486
1486
|
};
|
|
1487
1487
|
},
|
|
@@ -1501,14 +1501,14 @@ const y = 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, P);
|
|
1505
1505
|
let u;
|
|
1506
1506
|
e && (u = e.baseOptions);
|
|
1507
1507
|
const w = { method: "GET", ...u, ...p }, T = {}, U = {};
|
|
1508
|
-
await
|
|
1508
|
+
await m(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
|
-
url:
|
|
1511
|
+
url: y(h),
|
|
1512
1512
|
options: w
|
|
1513
1513
|
};
|
|
1514
1514
|
},
|
|
@@ -1525,14 +1525,14 @@ const y = 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, P);
|
|
1529
1529
|
let p;
|
|
1530
1530
|
e && (p = e.baseOptions);
|
|
1531
1531
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
1532
|
-
await
|
|
1532
|
+
await m(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
|
-
url:
|
|
1535
|
+
url: y(i),
|
|
1536
1536
|
options: d
|
|
1537
1537
|
};
|
|
1538
1538
|
},
|
|
@@ -1548,14 +1548,14 @@ const y = 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, P);
|
|
1552
1552
|
let i;
|
|
1553
1553
|
e && (i = e.baseOptions);
|
|
1554
1554
|
const p = { method: "GET", ...i, ...a }, d = {}, h = {};
|
|
1555
|
-
await
|
|
1555
|
+
await m(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
|
-
url:
|
|
1558
|
+
url: y(c),
|
|
1559
1559
|
options: p
|
|
1560
1560
|
};
|
|
1561
1561
|
},
|
|
@@ -1570,14 +1570,14 @@ const y = 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, P);
|
|
1574
1574
|
let c;
|
|
1575
1575
|
e && (c = e.baseOptions);
|
|
1576
1576
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
1577
|
-
await
|
|
1577
|
+
await m(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
|
-
url:
|
|
1580
|
+
url: y(l),
|
|
1581
1581
|
options: i
|
|
1582
1582
|
};
|
|
1583
1583
|
},
|
|
@@ -1591,14 +1591,14 @@ const y = function(e, ...r) {
|
|
|
1591
1591
|
*/
|
|
1592
1592
|
getMetadataGraph: async (r, o, n = {}) => {
|
|
1593
1593
|
I("getMetadataGraph", "graph", r);
|
|
1594
|
-
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t,
|
|
1594
|
+
const t = "/api/v2/admin/metadata/{graph}".replace("{graph}", encodeURIComponent(String(r))), s = new URL(t, P);
|
|
1595
1595
|
let a;
|
|
1596
1596
|
e && (a = e.baseOptions);
|
|
1597
1597
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
1598
|
-
await
|
|
1598
|
+
await m(c, "Authorization", e), o !== void 0 && (i.Format = o), b(s, i);
|
|
1599
1599
|
let p = a && a.headers ? a.headers : {};
|
|
1600
1600
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
1601
|
-
url:
|
|
1601
|
+
url: y(s),
|
|
1602
1602
|
options: l
|
|
1603
1603
|
};
|
|
1604
1604
|
},
|
|
@@ -1612,14 +1612,14 @@ const y = function(e, ...r) {
|
|
|
1612
1612
|
*/
|
|
1613
1613
|
patchMetadata: async (r, o, n = {}) => {
|
|
1614
1614
|
I("patchMetadata", "graph", r);
|
|
1615
|
-
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, P);
|
|
1616
1616
|
let a;
|
|
1617
1617
|
e && (a = e.baseOptions);
|
|
1618
1618
|
const l = { method: "PATCH", ...a, ...n }, c = {}, i = {};
|
|
1619
|
-
await
|
|
1619
|
+
await m(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
1620
1620
|
let p = a && a.headers ? a.headers : {};
|
|
1621
|
-
return l.headers = { ...c, ...p, ...n.headers }, l.data =
|
|
1622
|
-
url:
|
|
1621
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
1622
|
+
url: y(s),
|
|
1623
1623
|
options: l
|
|
1624
1624
|
};
|
|
1625
1625
|
},
|
|
@@ -1633,14 +1633,14 @@ const y = function(e, ...r) {
|
|
|
1633
1633
|
*/
|
|
1634
1634
|
updateMetadataGraph: async (r, o, n = {}) => {
|
|
1635
1635
|
I("updateMetadataGraph", "graph", r);
|
|
1636
|
-
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, P);
|
|
1637
1637
|
let a;
|
|
1638
1638
|
e && (a = e.baseOptions);
|
|
1639
1639
|
const l = { method: "PUT", ...a, ...n }, c = {}, i = {};
|
|
1640
|
-
await
|
|
1640
|
+
await m(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
1641
1641
|
let p = a && a.headers ? a.headers : {};
|
|
1642
|
-
return l.headers = { ...c, ...p, ...n.headers }, l.data =
|
|
1643
|
-
url:
|
|
1642
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
1643
|
+
url: y(s),
|
|
1644
1644
|
options: l
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
@@ -1859,14 +1859,14 @@ const y = function(e, ...r) {
|
|
|
1859
1859
|
* @throws {RequiredError}
|
|
1860
1860
|
*/
|
|
1861
1861
|
apiV2ApplicationProfilesOptions: async (r = {}) => {
|
|
1862
|
-
const o = "/api/v2/application-profiles", n = new URL(o,
|
|
1862
|
+
const o = "/api/v2/application-profiles", n = new URL(o, P);
|
|
1863
1863
|
let t;
|
|
1864
1864
|
e && (t = e.baseOptions);
|
|
1865
1865
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
1866
|
-
await
|
|
1866
|
+
await m(a, "Authorization", e), b(n, l);
|
|
1867
1867
|
let c = t && t.headers ? t.headers : {};
|
|
1868
1868
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
1869
|
-
url:
|
|
1869
|
+
url: y(n),
|
|
1870
1870
|
options: s
|
|
1871
1871
|
};
|
|
1872
1872
|
},
|
|
@@ -1878,14 +1878,14 @@ const y = function(e, ...r) {
|
|
|
1878
1878
|
* @throws {RequiredError}
|
|
1879
1879
|
*/
|
|
1880
1880
|
createApplicationProfileRequest: async (r, o = {}) => {
|
|
1881
|
-
const n = "/api/v2/application-profiles/requests", t = new URL(n,
|
|
1881
|
+
const n = "/api/v2/application-profiles/requests", t = new URL(n, P);
|
|
1882
1882
|
let s;
|
|
1883
1883
|
e && (s = e.baseOptions);
|
|
1884
1884
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
1885
|
-
await
|
|
1885
|
+
await m(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
1886
1886
|
let i = s && s.headers ? s.headers : {};
|
|
1887
|
-
return a.headers = { ...l, ...i, ...o.headers }, a.data =
|
|
1888
|
-
url:
|
|
1887
|
+
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
1888
|
+
url: y(t),
|
|
1889
1889
|
options: a
|
|
1890
1890
|
};
|
|
1891
1891
|
},
|
|
@@ -1900,14 +1900,14 @@ const y = function(e, ...r) {
|
|
|
1900
1900
|
*/
|
|
1901
1901
|
getApplicationProfile: async (r, o, n, t = {}) => {
|
|
1902
1902
|
I("getApplicationProfile", "profile", r);
|
|
1903
|
-
const s = "/api/v2/application-profiles/profiles/{profile}".replace("{profile}", encodeURIComponent(String(r))), a = new URL(s,
|
|
1903
|
+
const s = "/api/v2/application-profiles/profiles/{profile}".replace("{profile}", encodeURIComponent(String(r))), a = new URL(s, P);
|
|
1904
1904
|
let l;
|
|
1905
1905
|
e && (l = e.baseOptions);
|
|
1906
1906
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
1907
|
-
await
|
|
1907
|
+
await m(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
1908
|
let d = l && l.headers ? l.headers : {};
|
|
1909
1909
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
1910
|
-
url:
|
|
1910
|
+
url: y(a),
|
|
1911
1911
|
options: c
|
|
1912
1912
|
};
|
|
1913
1913
|
},
|
|
@@ -1924,14 +1924,14 @@ const y = function(e, ...r) {
|
|
|
1924
1924
|
* @throws {RequiredError}
|
|
1925
1925
|
*/
|
|
1926
1926
|
getApplicationProfiles: async (r, o, n, t, s, a, l = {}) => {
|
|
1927
|
-
const c = "/api/v2/application-profiles/profiles", i = new URL(c,
|
|
1927
|
+
const c = "/api/v2/application-profiles/profiles", i = new URL(c, P);
|
|
1928
1928
|
let p;
|
|
1929
1929
|
e && (p = e.baseOptions);
|
|
1930
1930
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
1931
|
-
await
|
|
1931
|
+
await m(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
1932
|
let w = p && p.headers ? p.headers : {};
|
|
1933
1933
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
1934
|
-
url:
|
|
1934
|
+
url: y(i),
|
|
1935
1935
|
options: d
|
|
1936
1936
|
};
|
|
1937
1937
|
},
|
|
@@ -1944,14 +1944,14 @@ const y = function(e, ...r) {
|
|
|
1944
1944
|
*/
|
|
1945
1945
|
getRawApplicationProfile: async (r, o = {}) => {
|
|
1946
1946
|
I("getRawApplicationProfile", "profile", r);
|
|
1947
|
-
const n = "/api/v2/application-profiles/profiles/{profile}/raw".replace("{profile}", encodeURIComponent(String(r))), t = new URL(n,
|
|
1947
|
+
const n = "/api/v2/application-profiles/profiles/{profile}/raw".replace("{profile}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
1948
1948
|
let s;
|
|
1949
1949
|
e && (s = e.baseOptions);
|
|
1950
1950
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
1951
|
-
await
|
|
1951
|
+
await m(l, "Authorization", e), b(t, c);
|
|
1952
1952
|
let i = s && s.headers ? s.headers : {};
|
|
1953
1953
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
1954
|
-
url:
|
|
1954
|
+
url: y(t),
|
|
1955
1955
|
options: a
|
|
1956
1956
|
};
|
|
1957
1957
|
}
|
|
@@ -2091,14 +2091,14 @@ const y = function(e, ...r) {
|
|
|
2091
2091
|
*/
|
|
2092
2092
|
apiV2ProjectsProjectIdResourcesResourceIdBlobsOptions: async (r, o, n = {}) => {
|
|
2093
2093
|
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,
|
|
2094
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/blobs".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
2095
2095
|
let a;
|
|
2096
2096
|
e && (a = e.baseOptions);
|
|
2097
2097
|
const l = { method: "OPTIONS", ...a, ...n }, c = {}, i = {};
|
|
2098
|
-
await
|
|
2098
|
+
await m(c, "Authorization", e), b(s, i);
|
|
2099
2099
|
let p = a && a.headers ? a.headers : {};
|
|
2100
2100
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2101
|
-
url:
|
|
2101
|
+
url: y(s),
|
|
2102
2102
|
options: l
|
|
2103
2103
|
};
|
|
2104
2104
|
},
|
|
@@ -2114,14 +2114,14 @@ const y = function(e, ...r) {
|
|
|
2114
2114
|
*/
|
|
2115
2115
|
createBlob: async (r, o, n, t, s = {}) => {
|
|
2116
2116
|
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,
|
|
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, P);
|
|
2118
2118
|
let c;
|
|
2119
2119
|
e && (c = e.baseOptions);
|
|
2120
2120
|
const i = { method: "POST", ...c, ...s }, p = {}, d = {}, h = new (e && e.formDataCtor || FormData)();
|
|
2121
|
-
await
|
|
2121
|
+
await m(p, "Authorization", e), t !== void 0 && h.append("file", t), p["Content-Type"] = "multipart/form-data", b(l, d);
|
|
2122
2122
|
let u = c && c.headers ? c.headers : {};
|
|
2123
2123
|
return i.headers = { ...p, ...u, ...s.headers }, i.data = h, {
|
|
2124
|
-
url:
|
|
2124
|
+
url: y(l),
|
|
2125
2125
|
options: i
|
|
2126
2126
|
};
|
|
2127
2127
|
},
|
|
@@ -2136,14 +2136,14 @@ const y = function(e, ...r) {
|
|
|
2136
2136
|
*/
|
|
2137
2137
|
deleteBlob: async (r, o, n, t = {}) => {
|
|
2138
2138
|
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,
|
|
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, P);
|
|
2140
2140
|
let l;
|
|
2141
2141
|
e && (l = e.baseOptions);
|
|
2142
2142
|
const c = { method: "DELETE", ...l, ...t }, i = {}, p = {};
|
|
2143
|
-
await
|
|
2143
|
+
await m(i, "Authorization", e), b(a, p);
|
|
2144
2144
|
let d = l && l.headers ? l.headers : {};
|
|
2145
2145
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2146
|
-
url:
|
|
2146
|
+
url: y(a),
|
|
2147
2147
|
options: c
|
|
2148
2148
|
};
|
|
2149
2149
|
},
|
|
@@ -2158,14 +2158,14 @@ const y = function(e, ...r) {
|
|
|
2158
2158
|
*/
|
|
2159
2159
|
getBlob: async (r, o, n, t = {}) => {
|
|
2160
2160
|
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,
|
|
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, P);
|
|
2162
2162
|
let l;
|
|
2163
2163
|
e && (l = e.baseOptions);
|
|
2164
2164
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
2165
|
-
await
|
|
2165
|
+
await m(i, "Authorization", e), b(a, p);
|
|
2166
2166
|
let d = l && l.headers ? l.headers : {};
|
|
2167
2167
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2168
|
-
url:
|
|
2168
|
+
url: y(a),
|
|
2169
2169
|
options: c
|
|
2170
2170
|
};
|
|
2171
2171
|
},
|
|
@@ -2181,14 +2181,14 @@ const y = function(e, ...r) {
|
|
|
2181
2181
|
*/
|
|
2182
2182
|
updateBlob: async (r, o, n, t, s = {}) => {
|
|
2183
2183
|
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,
|
|
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, P);
|
|
2185
2185
|
let c;
|
|
2186
2186
|
e && (c = e.baseOptions);
|
|
2187
2187
|
const i = { method: "PUT", ...c, ...s }, p = {}, d = {}, h = new (e && e.formDataCtor || FormData)();
|
|
2188
|
-
await
|
|
2188
|
+
await m(p, "Authorization", e), t !== void 0 && h.append("file", t), p["Content-Type"] = "multipart/form-data", b(l, d);
|
|
2189
2189
|
let u = c && c.headers ? c.headers : {};
|
|
2190
2190
|
return i.headers = { ...p, ...u, ...s.headers }, i.data = h, {
|
|
2191
|
-
url:
|
|
2191
|
+
url: y(l),
|
|
2192
2192
|
options: i
|
|
2193
2193
|
};
|
|
2194
2194
|
}
|
|
@@ -2331,14 +2331,14 @@ const y = function(e, ...r) {
|
|
|
2331
2331
|
* @throws {RequiredError}
|
|
2332
2332
|
*/
|
|
2333
2333
|
apiV2DisciplinesOptions: async (r = {}) => {
|
|
2334
|
-
const o = "/api/v2/disciplines", n = new URL(o,
|
|
2334
|
+
const o = "/api/v2/disciplines", n = new URL(o, P);
|
|
2335
2335
|
let t;
|
|
2336
2336
|
e && (t = e.baseOptions);
|
|
2337
2337
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2338
|
-
await
|
|
2338
|
+
await m(a, "Authorization", e), b(n, l);
|
|
2339
2339
|
let c = t && t.headers ? t.headers : {};
|
|
2340
2340
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2341
|
-
url:
|
|
2341
|
+
url: y(n),
|
|
2342
2342
|
options: s
|
|
2343
2343
|
};
|
|
2344
2344
|
},
|
|
@@ -2351,14 +2351,14 @@ const y = function(e, ...r) {
|
|
|
2351
2351
|
*/
|
|
2352
2352
|
getDiscipline: async (r, o = {}) => {
|
|
2353
2353
|
I("getDiscipline", "disciplineId", r);
|
|
2354
|
-
const n = "/api/v2/disciplines/{disciplineId}".replace("{disciplineId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
2354
|
+
const n = "/api/v2/disciplines/{disciplineId}".replace("{disciplineId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
2355
2355
|
let s;
|
|
2356
2356
|
e && (s = e.baseOptions);
|
|
2357
2357
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
2358
|
-
await
|
|
2358
|
+
await m(l, "Authorization", e), b(t, c);
|
|
2359
2359
|
let i = s && s.headers ? s.headers : {};
|
|
2360
2360
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
2361
|
-
url:
|
|
2361
|
+
url: y(t),
|
|
2362
2362
|
options: a
|
|
2363
2363
|
};
|
|
2364
2364
|
},
|
|
@@ -2372,14 +2372,14 @@ const y = function(e, ...r) {
|
|
|
2372
2372
|
* @throws {RequiredError}
|
|
2373
2373
|
*/
|
|
2374
2374
|
getDisciplines: async (r, o, n, t = {}) => {
|
|
2375
|
-
const s = "/api/v2/disciplines", a = new URL(s,
|
|
2375
|
+
const s = "/api/v2/disciplines", a = new URL(s, P);
|
|
2376
2376
|
let l;
|
|
2377
2377
|
e && (l = e.baseOptions);
|
|
2378
2378
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
2379
|
-
await
|
|
2379
|
+
await m(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
2380
|
let d = l && l.headers ? l.headers : {};
|
|
2381
2381
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2382
|
-
url:
|
|
2382
|
+
url: y(a),
|
|
2383
2383
|
options: c
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
@@ -2467,14 +2467,14 @@ const y = function(e, ...r) {
|
|
|
2467
2467
|
* @throws {RequiredError}
|
|
2468
2468
|
*/
|
|
2469
2469
|
apiV2HandlesOptions: async (r = {}) => {
|
|
2470
|
-
const o = "/api/v2/handles", n = new URL(o,
|
|
2470
|
+
const o = "/api/v2/handles", n = new URL(o, P);
|
|
2471
2471
|
let t;
|
|
2472
2472
|
e && (t = e.baseOptions);
|
|
2473
2473
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2474
|
-
await
|
|
2474
|
+
await m(a, "Authorization", e), b(n, l);
|
|
2475
2475
|
let c = t && t.headers ? t.headers : {};
|
|
2476
2476
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2477
|
-
url:
|
|
2477
|
+
url: y(n),
|
|
2478
2478
|
options: s
|
|
2479
2479
|
};
|
|
2480
2480
|
},
|
|
@@ -2488,14 +2488,14 @@ const y = function(e, ...r) {
|
|
|
2488
2488
|
*/
|
|
2489
2489
|
getHandle: async (r, o, n = {}) => {
|
|
2490
2490
|
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,
|
|
2491
|
+
const t = "/api/v2/handles/{prefix}/{suffix}".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
2492
2492
|
let a;
|
|
2493
2493
|
e && (a = e.baseOptions);
|
|
2494
2494
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
2495
|
-
await
|
|
2495
|
+
await m(c, "Authorization", e), b(s, i);
|
|
2496
2496
|
let p = a && a.headers ? a.headers : {};
|
|
2497
2497
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
2498
|
-
url:
|
|
2498
|
+
url: y(s),
|
|
2499
2499
|
options: l
|
|
2500
2500
|
};
|
|
2501
2501
|
},
|
|
@@ -2510,14 +2510,14 @@ const y = function(e, ...r) {
|
|
|
2510
2510
|
*/
|
|
2511
2511
|
updateHandle: async (r, o, n, t = {}) => {
|
|
2512
2512
|
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,
|
|
2513
|
+
const s = "/api/v2/handles/{prefix}/{suffix}".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), a = new URL(s, P);
|
|
2514
2514
|
let l;
|
|
2515
2515
|
e && (l = e.baseOptions);
|
|
2516
2516
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
2517
|
-
await
|
|
2517
|
+
await m(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
2518
2518
|
let d = l && l.headers ? l.headers : {};
|
|
2519
|
-
return c.headers = { ...i, ...d, ...t.headers }, c.data =
|
|
2520
|
-
url:
|
|
2519
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
2520
|
+
url: y(a),
|
|
2521
2521
|
options: c
|
|
2522
2522
|
};
|
|
2523
2523
|
}
|
|
@@ -2606,14 +2606,14 @@ const y = function(e, ...r) {
|
|
|
2606
2606
|
* @throws {RequiredError}
|
|
2607
2607
|
*/
|
|
2608
2608
|
apiV2LanguagesOptions: async (r = {}) => {
|
|
2609
|
-
const o = "/api/v2/languages", n = new URL(o,
|
|
2609
|
+
const o = "/api/v2/languages", n = new URL(o, P);
|
|
2610
2610
|
let t;
|
|
2611
2611
|
e && (t = e.baseOptions);
|
|
2612
2612
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2613
|
-
await
|
|
2613
|
+
await m(a, "Authorization", e), b(n, l);
|
|
2614
2614
|
let c = t && t.headers ? t.headers : {};
|
|
2615
2615
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2616
|
-
url:
|
|
2616
|
+
url: y(n),
|
|
2617
2617
|
options: s
|
|
2618
2618
|
};
|
|
2619
2619
|
},
|
|
@@ -2626,14 +2626,14 @@ const y = function(e, ...r) {
|
|
|
2626
2626
|
*/
|
|
2627
2627
|
getLanguage: async (r, o = {}) => {
|
|
2628
2628
|
I("getLanguage", "languageId", r);
|
|
2629
|
-
const n = "/api/v2/languages/{languageId}".replace("{languageId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
2629
|
+
const n = "/api/v2/languages/{languageId}".replace("{languageId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
2630
2630
|
let s;
|
|
2631
2631
|
e && (s = e.baseOptions);
|
|
2632
2632
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
2633
|
-
await
|
|
2633
|
+
await m(l, "Authorization", e), b(t, c);
|
|
2634
2634
|
let i = s && s.headers ? s.headers : {};
|
|
2635
2635
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
2636
|
-
url:
|
|
2636
|
+
url: y(t),
|
|
2637
2637
|
options: a
|
|
2638
2638
|
};
|
|
2639
2639
|
},
|
|
@@ -2647,14 +2647,14 @@ const y = function(e, ...r) {
|
|
|
2647
2647
|
* @throws {RequiredError}
|
|
2648
2648
|
*/
|
|
2649
2649
|
getLanguages: async (r, o, n, t = {}) => {
|
|
2650
|
-
const s = "/api/v2/languages", a = new URL(s,
|
|
2650
|
+
const s = "/api/v2/languages", a = new URL(s, P);
|
|
2651
2651
|
let l;
|
|
2652
2652
|
e && (l = e.baseOptions);
|
|
2653
2653
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
2654
|
-
await
|
|
2654
|
+
await m(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
2655
|
let d = l && l.headers ? l.headers : {};
|
|
2656
2656
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2657
|
-
url:
|
|
2657
|
+
url: y(a),
|
|
2658
2658
|
options: c
|
|
2659
2659
|
};
|
|
2660
2660
|
}
|
|
@@ -2700,7 +2700,7 @@ const y = function(e, ...r) {
|
|
|
2700
2700
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
2701
2701
|
}
|
|
2702
2702
|
};
|
|
2703
|
-
},
|
|
2703
|
+
}, qr = function(e, r, o) {
|
|
2704
2704
|
const n = _r(e);
|
|
2705
2705
|
return {
|
|
2706
2706
|
/**
|
|
@@ -2733,7 +2733,7 @@ const y = function(e, ...r) {
|
|
|
2733
2733
|
return n.getLanguages(t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
2734
2734
|
}
|
|
2735
2735
|
};
|
|
2736
|
-
},
|
|
2736
|
+
}, fr = function(e) {
|
|
2737
2737
|
return {
|
|
2738
2738
|
/**
|
|
2739
2739
|
*
|
|
@@ -2742,14 +2742,14 @@ const y = function(e, ...r) {
|
|
|
2742
2742
|
* @throws {RequiredError}
|
|
2743
2743
|
*/
|
|
2744
2744
|
apiV2LicensesOptions: async (r = {}) => {
|
|
2745
|
-
const o = "/api/v2/licenses", n = new URL(o,
|
|
2745
|
+
const o = "/api/v2/licenses", n = new URL(o, P);
|
|
2746
2746
|
let t;
|
|
2747
2747
|
e && (t = e.baseOptions);
|
|
2748
2748
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2749
|
-
await
|
|
2749
|
+
await m(a, "Authorization", e), b(n, l);
|
|
2750
2750
|
let c = t && t.headers ? t.headers : {};
|
|
2751
2751
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2752
|
-
url:
|
|
2752
|
+
url: y(n),
|
|
2753
2753
|
options: s
|
|
2754
2754
|
};
|
|
2755
2755
|
},
|
|
@@ -2762,14 +2762,14 @@ const y = function(e, ...r) {
|
|
|
2762
2762
|
*/
|
|
2763
2763
|
getLicense: async (r, o = {}) => {
|
|
2764
2764
|
I("getLicense", "licenseId", r);
|
|
2765
|
-
const n = "/api/v2/licenses/{licenseId}".replace("{licenseId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
2765
|
+
const n = "/api/v2/licenses/{licenseId}".replace("{licenseId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
2766
2766
|
let s;
|
|
2767
2767
|
e && (s = e.baseOptions);
|
|
2768
2768
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
2769
|
-
await
|
|
2769
|
+
await m(l, "Authorization", e), b(t, c);
|
|
2770
2770
|
let i = s && s.headers ? s.headers : {};
|
|
2771
2771
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
2772
|
-
url:
|
|
2772
|
+
url: y(t),
|
|
2773
2773
|
options: a
|
|
2774
2774
|
};
|
|
2775
2775
|
},
|
|
@@ -2783,20 +2783,20 @@ const y = function(e, ...r) {
|
|
|
2783
2783
|
* @throws {RequiredError}
|
|
2784
2784
|
*/
|
|
2785
2785
|
getLicenses: async (r, o, n, t = {}) => {
|
|
2786
|
-
const s = "/api/v2/licenses", a = new URL(s,
|
|
2786
|
+
const s = "/api/v2/licenses", a = new URL(s, P);
|
|
2787
2787
|
let l;
|
|
2788
2788
|
e && (l = e.baseOptions);
|
|
2789
2789
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
2790
|
-
await
|
|
2790
|
+
await m(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
2791
|
let d = l && l.headers ? l.headers : {};
|
|
2792
2792
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
2793
|
-
url:
|
|
2793
|
+
url: y(a),
|
|
2794
2794
|
options: c
|
|
2795
2795
|
};
|
|
2796
2796
|
}
|
|
2797
2797
|
};
|
|
2798
2798
|
}, Jr = function(e) {
|
|
2799
|
-
const r =
|
|
2799
|
+
const r = fr(e);
|
|
2800
2800
|
return {
|
|
2801
2801
|
/**
|
|
2802
2802
|
*
|
|
@@ -2878,14 +2878,14 @@ const y = function(e, ...r) {
|
|
|
2878
2878
|
* @throws {RequiredError}
|
|
2879
2879
|
*/
|
|
2880
2880
|
apiV2MaintenancesOptions: async (r = {}) => {
|
|
2881
|
-
const o = "/api/v2/maintenances", n = new URL(o,
|
|
2881
|
+
const o = "/api/v2/maintenances", n = new URL(o, P);
|
|
2882
2882
|
let t;
|
|
2883
2883
|
e && (t = e.baseOptions);
|
|
2884
2884
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2885
|
-
await
|
|
2885
|
+
await m(a, "Authorization", e), b(n, l);
|
|
2886
2886
|
let c = t && t.headers ? t.headers : {};
|
|
2887
2887
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2888
|
-
url:
|
|
2888
|
+
url: y(n),
|
|
2889
2889
|
options: s
|
|
2890
2890
|
};
|
|
2891
2891
|
},
|
|
@@ -2896,14 +2896,14 @@ const y = function(e, ...r) {
|
|
|
2896
2896
|
* @throws {RequiredError}
|
|
2897
2897
|
*/
|
|
2898
2898
|
getCurrentMaintenances: async (r = {}) => {
|
|
2899
|
-
const o = "/api/v2/maintenances", n = new URL(o,
|
|
2899
|
+
const o = "/api/v2/maintenances", n = new URL(o, P);
|
|
2900
2900
|
let t;
|
|
2901
2901
|
e && (t = e.baseOptions);
|
|
2902
2902
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
2903
|
-
await
|
|
2903
|
+
await m(a, "Authorization", e), b(n, l);
|
|
2904
2904
|
let c = t && t.headers ? t.headers : {};
|
|
2905
2905
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2906
|
-
url:
|
|
2906
|
+
url: y(n),
|
|
2907
2907
|
options: s
|
|
2908
2908
|
};
|
|
2909
2909
|
}
|
|
@@ -2965,14 +2965,14 @@ const y = function(e, ...r) {
|
|
|
2965
2965
|
* @throws {RequiredError}
|
|
2966
2966
|
*/
|
|
2967
2967
|
apiV2OrganizationsOptions: async (r = {}) => {
|
|
2968
|
-
const o = "/api/v2/organizations", n = new URL(o,
|
|
2968
|
+
const o = "/api/v2/organizations", n = new URL(o, P);
|
|
2969
2969
|
let t;
|
|
2970
2970
|
e && (t = e.baseOptions);
|
|
2971
2971
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
2972
|
-
await
|
|
2972
|
+
await m(a, "Authorization", e), b(n, l);
|
|
2973
2973
|
let c = t && t.headers ? t.headers : {};
|
|
2974
2974
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
2975
|
-
url:
|
|
2975
|
+
url: y(n),
|
|
2976
2976
|
options: s
|
|
2977
2977
|
};
|
|
2978
2978
|
},
|
|
@@ -2985,14 +2985,14 @@ const y = function(e, ...r) {
|
|
|
2985
2985
|
*/
|
|
2986
2986
|
getOrganization: async (r, o = {}) => {
|
|
2987
2987
|
I("getOrganization", "organizationRorUri", r);
|
|
2988
|
-
const n = "/api/v2/organizations/{organizationRorUri}".replace("{organizationRorUri}", encodeURIComponent(String(r))), t = new URL(n,
|
|
2988
|
+
const n = "/api/v2/organizations/{organizationRorUri}".replace("{organizationRorUri}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
2989
2989
|
let s;
|
|
2990
2990
|
e && (s = e.baseOptions);
|
|
2991
2991
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
2992
|
-
await
|
|
2992
|
+
await m(l, "Authorization", e), b(t, c);
|
|
2993
2993
|
let i = s && s.headers ? s.headers : {};
|
|
2994
2994
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
2995
|
-
url:
|
|
2995
|
+
url: y(t),
|
|
2996
2996
|
options: a
|
|
2997
2997
|
};
|
|
2998
2998
|
},
|
|
@@ -3008,14 +3008,14 @@ const y = function(e, ...r) {
|
|
|
3008
3008
|
* @throws {RequiredError}
|
|
3009
3009
|
*/
|
|
3010
3010
|
getOrganizations: async (r, o, n, t, s, a = {}) => {
|
|
3011
|
-
const l = "/api/v2/organizations", c = new URL(l,
|
|
3011
|
+
const l = "/api/v2/organizations", c = new URL(l, P);
|
|
3012
3012
|
let i;
|
|
3013
3013
|
e && (i = e.baseOptions);
|
|
3014
3014
|
const p = { method: "GET", ...i, ...a }, d = {}, h = {};
|
|
3015
|
-
await
|
|
3015
|
+
await m(d, "Authorization", e), r !== void 0 && (h.SearchTerm = r), o !== void 0 && (h.FilterByPublicationService = o), n !== void 0 && (h.PageNumber = n), t !== void 0 && (h.PageSize = t), s !== void 0 && (h.OrderBy = s), b(c, h);
|
|
3016
3016
|
let u = i && i.headers ? i.headers : {};
|
|
3017
3017
|
return p.headers = { ...d, ...u, ...a.headers }, {
|
|
3018
|
-
url:
|
|
3018
|
+
url: y(c),
|
|
3019
3019
|
options: p
|
|
3020
3020
|
};
|
|
3021
3021
|
}
|
|
@@ -3105,14 +3105,14 @@ const y = function(e, ...r) {
|
|
|
3105
3105
|
* @throws {RequiredError}
|
|
3106
3106
|
*/
|
|
3107
3107
|
apiV2PidsOptions: async (r = {}) => {
|
|
3108
|
-
const o = "/api/v2/pids", n = new URL(o,
|
|
3108
|
+
const o = "/api/v2/pids", n = new URL(o, P);
|
|
3109
3109
|
let t;
|
|
3110
3110
|
e && (t = e.baseOptions);
|
|
3111
3111
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
3112
|
-
await
|
|
3112
|
+
await m(a, "Authorization", e), b(n, l);
|
|
3113
3113
|
let c = t && t.headers ? t.headers : {};
|
|
3114
3114
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
3115
|
-
url:
|
|
3115
|
+
url: y(n),
|
|
3116
3116
|
options: s
|
|
3117
3117
|
};
|
|
3118
3118
|
},
|
|
@@ -3126,14 +3126,14 @@ const y = function(e, ...r) {
|
|
|
3126
3126
|
*/
|
|
3127
3127
|
getPid: async (r, o, n = {}) => {
|
|
3128
3128
|
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,
|
|
3129
|
+
const t = "/api/v2/pids/{prefix}/{suffix}".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
3130
3130
|
let a;
|
|
3131
3131
|
e && (a = e.baseOptions);
|
|
3132
3132
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
3133
|
-
await
|
|
3133
|
+
await m(c, "Authorization", e), b(s, i);
|
|
3134
3134
|
let p = a && a.headers ? a.headers : {};
|
|
3135
3135
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3136
|
-
url:
|
|
3136
|
+
url: y(s),
|
|
3137
3137
|
options: l
|
|
3138
3138
|
};
|
|
3139
3139
|
},
|
|
@@ -3150,14 +3150,14 @@ const y = function(e, ...r) {
|
|
|
3150
3150
|
* @throws {RequiredError}
|
|
3151
3151
|
*/
|
|
3152
3152
|
getPids: async (r, o, n, t, s, a, l = {}) => {
|
|
3153
|
-
const c = "/api/v2/pids", i = new URL(c,
|
|
3153
|
+
const c = "/api/v2/pids", i = new URL(c, P);
|
|
3154
3154
|
let p;
|
|
3155
3155
|
e && (p = e.baseOptions);
|
|
3156
3156
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
3157
|
-
await
|
|
3157
|
+
await m(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
3158
|
let w = p && p.headers ? p.headers : {};
|
|
3159
3159
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
3160
|
-
url:
|
|
3160
|
+
url: y(i),
|
|
3161
3161
|
options: d
|
|
3162
3162
|
};
|
|
3163
3163
|
},
|
|
@@ -3172,14 +3172,14 @@ const y = function(e, ...r) {
|
|
|
3172
3172
|
*/
|
|
3173
3173
|
sendRequestToOwner: async (r, o, n, t = {}) => {
|
|
3174
3174
|
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,
|
|
3175
|
+
const s = "/api/v2/pids/{prefix}/{suffix}/requests".replace("{prefix}", encodeURIComponent(String(r))).replace("{suffix}", encodeURIComponent(String(o))), a = new URL(s, P);
|
|
3176
3176
|
let l;
|
|
3177
3177
|
e && (l = e.baseOptions);
|
|
3178
3178
|
const c = { method: "POST", ...l, ...t }, i = {}, p = {};
|
|
3179
|
-
await
|
|
3179
|
+
await m(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
3180
3180
|
let d = l && l.headers ? l.headers : {};
|
|
3181
|
-
return c.headers = { ...i, ...d, ...t.headers }, c.data =
|
|
3182
|
-
url:
|
|
3181
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
3182
|
+
url: y(a),
|
|
3183
3183
|
options: c
|
|
3184
3184
|
};
|
|
3185
3185
|
}
|
|
@@ -3295,14 +3295,14 @@ const y = function(e, ...r) {
|
|
|
3295
3295
|
* @throws {RequiredError}
|
|
3296
3296
|
*/
|
|
3297
3297
|
apiV2ProjectsOptions: async (r = {}) => {
|
|
3298
|
-
const o = "/api/v2/projects", n = new URL(o,
|
|
3298
|
+
const o = "/api/v2/projects", n = new URL(o, P);
|
|
3299
3299
|
let t;
|
|
3300
3300
|
e && (t = e.baseOptions);
|
|
3301
3301
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
3302
|
-
await
|
|
3302
|
+
await m(a, "Authorization", e), b(n, l);
|
|
3303
3303
|
let c = t && t.headers ? t.headers : {};
|
|
3304
3304
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
3305
|
-
url:
|
|
3305
|
+
url: y(n),
|
|
3306
3306
|
options: s
|
|
3307
3307
|
};
|
|
3308
3308
|
},
|
|
@@ -3314,14 +3314,14 @@ const y = function(e, ...r) {
|
|
|
3314
3314
|
* @throws {RequiredError}
|
|
3315
3315
|
*/
|
|
3316
3316
|
createProject: async (r, o = {}) => {
|
|
3317
|
-
const n = "/api/v2/projects", t = new URL(n,
|
|
3317
|
+
const n = "/api/v2/projects", t = new URL(n, P);
|
|
3318
3318
|
let s;
|
|
3319
3319
|
e && (s = e.baseOptions);
|
|
3320
3320
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
3321
|
-
await
|
|
3321
|
+
await m(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
3322
3322
|
let i = s && s.headers ? s.headers : {};
|
|
3323
|
-
return a.headers = { ...l, ...i, ...o.headers }, a.data =
|
|
3324
|
-
url:
|
|
3323
|
+
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
3324
|
+
url: y(t),
|
|
3325
3325
|
options: a
|
|
3326
3326
|
};
|
|
3327
3327
|
},
|
|
@@ -3334,14 +3334,14 @@ const y = function(e, ...r) {
|
|
|
3334
3334
|
*/
|
|
3335
3335
|
deleteProject: async (r, o = {}) => {
|
|
3336
3336
|
I("deleteProject", "projectId", r);
|
|
3337
|
-
const n = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
3337
|
+
const n = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
3338
3338
|
let s;
|
|
3339
3339
|
e && (s = e.baseOptions);
|
|
3340
3340
|
const a = { method: "DELETE", ...s, ...o }, l = {}, c = {};
|
|
3341
|
-
await
|
|
3341
|
+
await m(l, "Authorization", e), b(t, c);
|
|
3342
3342
|
let i = s && s.headers ? s.headers : {};
|
|
3343
3343
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
3344
|
-
url:
|
|
3344
|
+
url: y(t),
|
|
3345
3345
|
options: a
|
|
3346
3346
|
};
|
|
3347
3347
|
},
|
|
@@ -3355,20 +3355,21 @@ const y = function(e, ...r) {
|
|
|
3355
3355
|
*/
|
|
3356
3356
|
getProject: async (r, o, n = {}) => {
|
|
3357
3357
|
I("getProject", "projectId", r);
|
|
3358
|
-
const t = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
3358
|
+
const t = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, P);
|
|
3359
3359
|
let a;
|
|
3360
3360
|
e && (a = e.baseOptions);
|
|
3361
3361
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
3362
|
-
await
|
|
3362
|
+
await m(c, "Authorization", e), o !== void 0 && (i.IncludeSubProjects = o), b(s, i);
|
|
3363
3363
|
let p = a && a.headers ? a.headers : {};
|
|
3364
3364
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3365
|
-
url:
|
|
3365
|
+
url: y(s),
|
|
3366
3366
|
options: l
|
|
3367
3367
|
};
|
|
3368
3368
|
},
|
|
3369
3369
|
/**
|
|
3370
3370
|
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
3371
3371
|
* @summary Retrieves all projects.
|
|
3372
|
+
* @param {boolean} [includeOrganizations] Gets or sets a value indicating whether to retrieve the organizations.
|
|
3372
3373
|
* @param {boolean} [topLevel] Gets or sets a value indicating whether to retrieve only top-level projects.
|
|
3373
3374
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
3374
3375
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -3376,16 +3377,16 @@ const y = function(e, ...r) {
|
|
|
3376
3377
|
* @param {*} [options] Override http request option.
|
|
3377
3378
|
* @throws {RequiredError}
|
|
3378
3379
|
*/
|
|
3379
|
-
getProjects: async (r, o, n, t, s = {}) => {
|
|
3380
|
-
const
|
|
3381
|
-
let
|
|
3382
|
-
e && (
|
|
3383
|
-
const
|
|
3384
|
-
await
|
|
3385
|
-
let
|
|
3386
|
-
return
|
|
3387
|
-
url:
|
|
3388
|
-
options:
|
|
3380
|
+
getProjects: async (r, o, n, t, s, a = {}) => {
|
|
3381
|
+
const l = "/api/v2/projects", c = new URL(l, P);
|
|
3382
|
+
let i;
|
|
3383
|
+
e && (i = e.baseOptions);
|
|
3384
|
+
const p = { method: "GET", ...i, ...a }, d = {}, h = {};
|
|
3385
|
+
await m(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
|
+
let u = i && i.headers ? i.headers : {};
|
|
3387
|
+
return p.headers = { ...d, ...u, ...a.headers }, {
|
|
3388
|
+
url: y(c),
|
|
3389
|
+
options: p
|
|
3389
3390
|
};
|
|
3390
3391
|
},
|
|
3391
3392
|
/**
|
|
@@ -3398,14 +3399,14 @@ const y = function(e, ...r) {
|
|
|
3398
3399
|
*/
|
|
3399
3400
|
updateProject: async (r, o, n = {}) => {
|
|
3400
3401
|
I("updateProject", "projectId", r);
|
|
3401
|
-
const t = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
3402
|
+
const t = "/api/v2/projects/{projectId}".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, P);
|
|
3402
3403
|
let a;
|
|
3403
3404
|
e && (a = e.baseOptions);
|
|
3404
3405
|
const l = { method: "PUT", ...a, ...n }, c = {}, i = {};
|
|
3405
|
-
await
|
|
3406
|
+
await m(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
3406
3407
|
let p = a && a.headers ? a.headers : {};
|
|
3407
|
-
return l.headers = { ...c, ...p, ...n.headers }, l.data =
|
|
3408
|
-
url:
|
|
3408
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
3409
|
+
url: y(s),
|
|
3409
3410
|
options: l
|
|
3410
3411
|
};
|
|
3411
3412
|
}
|
|
@@ -3464,6 +3465,7 @@ const y = function(e, ...r) {
|
|
|
3464
3465
|
/**
|
|
3465
3466
|
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
3466
3467
|
* @summary Retrieves all projects.
|
|
3468
|
+
* @param {boolean} [includeOrganizations] Gets or sets a value indicating whether to retrieve the organizations.
|
|
3467
3469
|
* @param {boolean} [topLevel] Gets or sets a value indicating whether to retrieve only top-level projects.
|
|
3468
3470
|
* @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1.
|
|
3469
3471
|
* @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
|
|
@@ -3471,10 +3473,10 @@ const y = function(e, ...r) {
|
|
|
3471
3473
|
* @param {*} [options] Override http request option.
|
|
3472
3474
|
* @throws {RequiredError}
|
|
3473
3475
|
*/
|
|
3474
|
-
async getProjects(o, n, t, s, a) {
|
|
3475
|
-
var
|
|
3476
|
-
const
|
|
3477
|
-
return (
|
|
3476
|
+
async getProjects(o, n, t, s, a, l) {
|
|
3477
|
+
var d, h;
|
|
3478
|
+
const c = await r.getProjects(o, n, t, s, a, l), i = (e == null ? void 0 : e.serverIndex) ?? 0, p = (h = (d = V["ProjectApi.getProjects"]) == null ? void 0 : d[i]) == null ? void 0 : h.url;
|
|
3479
|
+
return (u, w) => R(c, O, A, e)(u, p || w);
|
|
3478
3480
|
},
|
|
3479
3481
|
/**
|
|
3480
3482
|
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
@@ -3540,7 +3542,7 @@ const y = function(e, ...r) {
|
|
|
3540
3542
|
* @throws {RequiredError}
|
|
3541
3543
|
*/
|
|
3542
3544
|
getProjects(t = {}, s) {
|
|
3543
|
-
return n.getProjects(t.topLevel, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
3545
|
+
return n.getProjects(t.includeOrganizations, t.topLevel, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
3544
3546
|
},
|
|
3545
3547
|
/**
|
|
3546
3548
|
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
@@ -3564,14 +3566,14 @@ const y = function(e, ...r) {
|
|
|
3564
3566
|
*/
|
|
3565
3567
|
apiV2ProjectsProjectIdInvitationsOptions: async (r, o = {}) => {
|
|
3566
3568
|
I("apiV2ProjectsProjectIdInvitationsOptions", "projectId", r);
|
|
3567
|
-
const n = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
3569
|
+
const n = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
3568
3570
|
let s;
|
|
3569
3571
|
e && (s = e.baseOptions);
|
|
3570
3572
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
3571
|
-
await
|
|
3573
|
+
await m(l, "Authorization", e), b(t, c);
|
|
3572
3574
|
let i = s && s.headers ? s.headers : {};
|
|
3573
3575
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
3574
|
-
url:
|
|
3576
|
+
url: y(t),
|
|
3575
3577
|
options: a
|
|
3576
3578
|
};
|
|
3577
3579
|
},
|
|
@@ -3585,14 +3587,14 @@ const y = function(e, ...r) {
|
|
|
3585
3587
|
*/
|
|
3586
3588
|
createProjectInvitation: async (r, o, n = {}) => {
|
|
3587
3589
|
I("createProjectInvitation", "projectId", r);
|
|
3588
|
-
const t = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
3590
|
+
const t = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, P);
|
|
3589
3591
|
let a;
|
|
3590
3592
|
e && (a = e.baseOptions);
|
|
3591
3593
|
const l = { method: "POST", ...a, ...n }, c = {}, i = {};
|
|
3592
|
-
await
|
|
3594
|
+
await m(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
3593
3595
|
let p = a && a.headers ? a.headers : {};
|
|
3594
|
-
return l.headers = { ...c, ...p, ...n.headers }, l.data =
|
|
3595
|
-
url:
|
|
3596
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
3597
|
+
url: y(s),
|
|
3596
3598
|
options: l
|
|
3597
3599
|
};
|
|
3598
3600
|
},
|
|
@@ -3606,14 +3608,14 @@ const y = function(e, ...r) {
|
|
|
3606
3608
|
*/
|
|
3607
3609
|
deleteProjectInvitation: async (r, o, n = {}) => {
|
|
3608
3610
|
I("deleteProjectInvitation", "projectId", r), I("deleteProjectInvitation", "projectInvitationId", o);
|
|
3609
|
-
const t = "/api/v2/projects/{projectId}/invitations/{projectInvitationId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{projectInvitationId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
3611
|
+
const t = "/api/v2/projects/{projectId}/invitations/{projectInvitationId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{projectInvitationId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
3610
3612
|
let a;
|
|
3611
3613
|
e && (a = e.baseOptions);
|
|
3612
3614
|
const l = { method: "DELETE", ...a, ...n }, c = {}, i = {};
|
|
3613
|
-
await
|
|
3615
|
+
await m(c, "Authorization", e), b(s, i);
|
|
3614
3616
|
let p = a && a.headers ? a.headers : {};
|
|
3615
3617
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3616
|
-
url:
|
|
3618
|
+
url: y(s),
|
|
3617
3619
|
options: l
|
|
3618
3620
|
};
|
|
3619
3621
|
},
|
|
@@ -3627,14 +3629,14 @@ const y = function(e, ...r) {
|
|
|
3627
3629
|
*/
|
|
3628
3630
|
getProjectInvitation: async (r, o, n = {}) => {
|
|
3629
3631
|
I("getProjectInvitation", "projectId", r), I("getProjectInvitation", "projectInvitationId", o);
|
|
3630
|
-
const t = "/api/v2/projects/{projectId}/invitations/{projectInvitationId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{projectInvitationId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
3632
|
+
const t = "/api/v2/projects/{projectId}/invitations/{projectInvitationId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{projectInvitationId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
3631
3633
|
let a;
|
|
3632
3634
|
e && (a = e.baseOptions);
|
|
3633
3635
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
3634
|
-
await
|
|
3636
|
+
await m(c, "Authorization", e), b(s, i);
|
|
3635
3637
|
let p = a && a.headers ? a.headers : {};
|
|
3636
3638
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3637
|
-
url:
|
|
3639
|
+
url: y(s),
|
|
3638
3640
|
options: l
|
|
3639
3641
|
};
|
|
3640
3642
|
},
|
|
@@ -3650,14 +3652,14 @@ const y = function(e, ...r) {
|
|
|
3650
3652
|
*/
|
|
3651
3653
|
getProjectInvitations: async (r, o, n, t, s = {}) => {
|
|
3652
3654
|
I("getProjectInvitations", "projectId", r);
|
|
3653
|
-
const a = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a,
|
|
3655
|
+
const a = "/api/v2/projects/{projectId}/invitations".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a, P);
|
|
3654
3656
|
let c;
|
|
3655
3657
|
e && (c = e.baseOptions);
|
|
3656
3658
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
3657
|
-
await
|
|
3659
|
+
await m(p, "Authorization", e), o !== void 0 && (d.PageNumber = o), n !== void 0 && (d.PageSize = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
3658
3660
|
let h = c && c.headers ? c.headers : {};
|
|
3659
3661
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
3660
|
-
url:
|
|
3662
|
+
url: y(l),
|
|
3661
3663
|
options: i
|
|
3662
3664
|
};
|
|
3663
3665
|
}
|
|
@@ -3798,14 +3800,14 @@ const y = function(e, ...r) {
|
|
|
3798
3800
|
*/
|
|
3799
3801
|
addMembership: async (r, o, n = {}) => {
|
|
3800
3802
|
I("addMembership", "projectId", r);
|
|
3801
|
-
const t = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
3803
|
+
const t = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, P);
|
|
3802
3804
|
let a;
|
|
3803
3805
|
e && (a = e.baseOptions);
|
|
3804
3806
|
const l = { method: "POST", ...a, ...n }, c = {}, i = {};
|
|
3805
|
-
await
|
|
3807
|
+
await m(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
3806
3808
|
let p = a && a.headers ? a.headers : {};
|
|
3807
|
-
return l.headers = { ...c, ...p, ...n.headers }, l.data =
|
|
3808
|
-
url:
|
|
3809
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
3810
|
+
url: y(s),
|
|
3809
3811
|
options: l
|
|
3810
3812
|
};
|
|
3811
3813
|
},
|
|
@@ -3818,14 +3820,14 @@ const y = function(e, ...r) {
|
|
|
3818
3820
|
*/
|
|
3819
3821
|
apiV2ProjectsProjectIdMembersOptions: async (r, o = {}) => {
|
|
3820
3822
|
I("apiV2ProjectsProjectIdMembersOptions", "projectId", r);
|
|
3821
|
-
const n = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
3823
|
+
const n = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
3822
3824
|
let s;
|
|
3823
3825
|
e && (s = e.baseOptions);
|
|
3824
3826
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
3825
|
-
await
|
|
3827
|
+
await m(l, "Authorization", e), b(t, c);
|
|
3826
3828
|
let i = s && s.headers ? s.headers : {};
|
|
3827
3829
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
3828
|
-
url:
|
|
3830
|
+
url: y(t),
|
|
3829
3831
|
options: a
|
|
3830
3832
|
};
|
|
3831
3833
|
},
|
|
@@ -3839,14 +3841,14 @@ const y = function(e, ...r) {
|
|
|
3839
3841
|
*/
|
|
3840
3842
|
deleteMembership: async (r, o, n = {}) => {
|
|
3841
3843
|
I("deleteMembership", "projectId", r), I("deleteMembership", "membershipId", o);
|
|
3842
|
-
const t = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
3844
|
+
const t = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
3843
3845
|
let a;
|
|
3844
3846
|
e && (a = e.baseOptions);
|
|
3845
3847
|
const l = { method: "DELETE", ...a, ...n }, c = {}, i = {};
|
|
3846
|
-
await
|
|
3848
|
+
await m(c, "Authorization", e), b(s, i);
|
|
3847
3849
|
let p = a && a.headers ? a.headers : {};
|
|
3848
3850
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3849
|
-
url:
|
|
3851
|
+
url: y(s),
|
|
3850
3852
|
options: l
|
|
3851
3853
|
};
|
|
3852
3854
|
},
|
|
@@ -3860,14 +3862,14 @@ const y = function(e, ...r) {
|
|
|
3860
3862
|
*/
|
|
3861
3863
|
getMembership: async (r, o, n = {}) => {
|
|
3862
3864
|
I("getMembership", "projectId", r), I("getMembership", "membershipId", o);
|
|
3863
|
-
const t = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
3865
|
+
const t = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
3864
3866
|
let a;
|
|
3865
3867
|
e && (a = e.baseOptions);
|
|
3866
3868
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
3867
|
-
await
|
|
3869
|
+
await m(c, "Authorization", e), b(s, i);
|
|
3868
3870
|
let p = a && a.headers ? a.headers : {};
|
|
3869
3871
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
3870
|
-
url:
|
|
3872
|
+
url: y(s),
|
|
3871
3873
|
options: l
|
|
3872
3874
|
};
|
|
3873
3875
|
},
|
|
@@ -3883,14 +3885,14 @@ const y = function(e, ...r) {
|
|
|
3883
3885
|
*/
|
|
3884
3886
|
getMemberships: async (r, o, n, t, s = {}) => {
|
|
3885
3887
|
I("getMemberships", "projectId", r);
|
|
3886
|
-
const a = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a,
|
|
3888
|
+
const a = "/api/v2/projects/{projectId}/members".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a, P);
|
|
3887
3889
|
let c;
|
|
3888
3890
|
e && (c = e.baseOptions);
|
|
3889
3891
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
3890
|
-
await
|
|
3892
|
+
await m(p, "Authorization", e), o !== void 0 && (d.PageNumber = o), n !== void 0 && (d.PageSize = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
3891
3893
|
let h = c && c.headers ? c.headers : {};
|
|
3892
3894
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
3893
|
-
url:
|
|
3895
|
+
url: y(l),
|
|
3894
3896
|
options: i
|
|
3895
3897
|
};
|
|
3896
3898
|
},
|
|
@@ -3905,14 +3907,14 @@ const y = function(e, ...r) {
|
|
|
3905
3907
|
*/
|
|
3906
3908
|
updateMembership: async (r, o, n, t = {}) => {
|
|
3907
3909
|
I("updateMembership", "projectId", r), I("updateMembership", "membershipId", o);
|
|
3908
|
-
const s = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), a = new URL(s,
|
|
3910
|
+
const s = "/api/v2/projects/{projectId}/members/{membershipId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{membershipId}", encodeURIComponent(String(o))), a = new URL(s, P);
|
|
3909
3911
|
let l;
|
|
3910
3912
|
e && (l = e.baseOptions);
|
|
3911
3913
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
3912
|
-
await
|
|
3914
|
+
await m(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
3913
3915
|
let d = l && l.headers ? l.headers : {};
|
|
3914
|
-
return c.headers = { ...i, ...d, ...t.headers }, c.data =
|
|
3915
|
-
url:
|
|
3916
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
3917
|
+
url: y(a),
|
|
3916
3918
|
options: c
|
|
3917
3919
|
};
|
|
3918
3920
|
}
|
|
@@ -4066,6 +4068,103 @@ const y = function(e, ...r) {
|
|
|
4066
4068
|
}
|
|
4067
4069
|
};
|
|
4068
4070
|
}, us = function(e) {
|
|
4071
|
+
return {
|
|
4072
|
+
/**
|
|
4073
|
+
*
|
|
4074
|
+
* @summary Responds with the HTTP methods allowed for the endpoint.
|
|
4075
|
+
* @param {string} projectId
|
|
4076
|
+
* @param {*} [options] Override http request option.
|
|
4077
|
+
* @throws {RequiredError}
|
|
4078
|
+
*/
|
|
4079
|
+
apiV2ProjectsProjectIdPublicationsRequestsOptions: async (r, o = {}) => {
|
|
4080
|
+
I("apiV2ProjectsProjectIdPublicationsRequestsOptions", "projectId", r);
|
|
4081
|
+
const n = "/api/v2/projects/{projectId}/publications/requests".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
4082
|
+
let s;
|
|
4083
|
+
e && (s = e.baseOptions);
|
|
4084
|
+
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
4085
|
+
await m(l, "Authorization", e), b(t, c);
|
|
4086
|
+
let i = s && s.headers ? s.headers : {};
|
|
4087
|
+
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4088
|
+
url: y(t),
|
|
4089
|
+
options: a
|
|
4090
|
+
};
|
|
4091
|
+
},
|
|
4092
|
+
/**
|
|
4093
|
+
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
4094
|
+
* @summary Creates a new publication request.
|
|
4095
|
+
* @param {string} projectId The Id or slug of the project.
|
|
4096
|
+
* @param {PublicationRequestForCreationDto} [publicationRequestForCreationDto] The publication request data for creation.
|
|
4097
|
+
* @param {*} [options] Override http request option.
|
|
4098
|
+
* @throws {RequiredError}
|
|
4099
|
+
*/
|
|
4100
|
+
createPublicationRequest: async (r, o, n = {}) => {
|
|
4101
|
+
I("createPublicationRequest", "projectId", r);
|
|
4102
|
+
const t = "/api/v2/projects/{projectId}/publications/requests".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, P);
|
|
4103
|
+
let a;
|
|
4104
|
+
e && (a = e.baseOptions);
|
|
4105
|
+
const l = { method: "POST", ...a, ...n }, c = {}, i = {};
|
|
4106
|
+
await m(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
4107
|
+
let p = a && a.headers ? a.headers : {};
|
|
4108
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
4109
|
+
url: y(s),
|
|
4110
|
+
options: l
|
|
4111
|
+
};
|
|
4112
|
+
}
|
|
4113
|
+
};
|
|
4114
|
+
}, Os = function(e) {
|
|
4115
|
+
const r = us(e);
|
|
4116
|
+
return {
|
|
4117
|
+
/**
|
|
4118
|
+
*
|
|
4119
|
+
* @summary Responds with the HTTP methods allowed for the endpoint.
|
|
4120
|
+
* @param {string} projectId
|
|
4121
|
+
* @param {*} [options] Override http request option.
|
|
4122
|
+
* @throws {RequiredError}
|
|
4123
|
+
*/
|
|
4124
|
+
async apiV2ProjectsProjectIdPublicationsRequestsOptions(o, n) {
|
|
4125
|
+
var l, c;
|
|
4126
|
+
const t = await r.apiV2ProjectsProjectIdPublicationsRequestsOptions(o, n), s = (e == null ? void 0 : e.serverIndex) ?? 0, a = (c = (l = V["ProjectPublicationRequestApi.apiV2ProjectsProjectIdPublicationsRequestsOptions"]) == null ? void 0 : l[s]) == null ? void 0 : c.url;
|
|
4127
|
+
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
4128
|
+
},
|
|
4129
|
+
/**
|
|
4130
|
+
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
4131
|
+
* @summary Creates a new publication request.
|
|
4132
|
+
* @param {string} projectId The Id or slug of the project.
|
|
4133
|
+
* @param {PublicationRequestForCreationDto} [publicationRequestForCreationDto] The publication request data for creation.
|
|
4134
|
+
* @param {*} [options] Override http request option.
|
|
4135
|
+
* @throws {RequiredError}
|
|
4136
|
+
*/
|
|
4137
|
+
async createPublicationRequest(o, n, t) {
|
|
4138
|
+
var c, i;
|
|
4139
|
+
const s = await r.createPublicationRequest(o, n, t), a = (e == null ? void 0 : e.serverIndex) ?? 0, l = (i = (c = V["ProjectPublicationRequestApi.createPublicationRequest"]) == null ? void 0 : c[a]) == null ? void 0 : i.url;
|
|
4140
|
+
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
4141
|
+
}
|
|
4142
|
+
};
|
|
4143
|
+
}, As = function(e, r, o) {
|
|
4144
|
+
const n = Os(e);
|
|
4145
|
+
return {
|
|
4146
|
+
/**
|
|
4147
|
+
*
|
|
4148
|
+
* @summary Responds with the HTTP methods allowed for the endpoint.
|
|
4149
|
+
* @param {ProjectPublicationRequestApiApiV2ProjectsProjectIdPublicationsRequestsOptionsRequest} requestParameters Request parameters.
|
|
4150
|
+
* @param {*} [options] Override http request option.
|
|
4151
|
+
* @throws {RequiredError}
|
|
4152
|
+
*/
|
|
4153
|
+
apiV2ProjectsProjectIdPublicationsRequestsOptions(t, s) {
|
|
4154
|
+
return n.apiV2ProjectsProjectIdPublicationsRequestsOptions(t.projectId, s).then((a) => a(o, r));
|
|
4155
|
+
},
|
|
4156
|
+
/**
|
|
4157
|
+
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
4158
|
+
* @summary Creates a new publication request.
|
|
4159
|
+
* @param {ProjectPublicationRequestApiCreatePublicationRequestRequest} requestParameters Request parameters.
|
|
4160
|
+
* @param {*} [options] Override http request option.
|
|
4161
|
+
* @throws {RequiredError}
|
|
4162
|
+
*/
|
|
4163
|
+
createPublicationRequest(t, s) {
|
|
4164
|
+
return n.createPublicationRequest(t.projectId, t.publicationRequestForCreationDto, s).then((a) => a(o, r));
|
|
4165
|
+
}
|
|
4166
|
+
};
|
|
4167
|
+
}, Vs = function(e) {
|
|
4069
4168
|
return {
|
|
4070
4169
|
/**
|
|
4071
4170
|
*
|
|
@@ -4076,14 +4175,14 @@ const y = function(e, ...r) {
|
|
|
4076
4175
|
*/
|
|
4077
4176
|
apiV2ProjectsProjectIdQuotasOptions: async (r, o = {}) => {
|
|
4078
4177
|
I("apiV2ProjectsProjectIdQuotasOptions", "projectId", r);
|
|
4079
|
-
const n = "/api/v2/projects/{projectId}/quotas".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4178
|
+
const n = "/api/v2/projects/{projectId}/quotas".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
4080
4179
|
let s;
|
|
4081
4180
|
e && (s = e.baseOptions);
|
|
4082
4181
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
4083
|
-
await
|
|
4182
|
+
await m(l, "Authorization", e), b(t, c);
|
|
4084
4183
|
let i = s && s.headers ? s.headers : {};
|
|
4085
4184
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4086
|
-
url:
|
|
4185
|
+
url: y(t),
|
|
4087
4186
|
options: a
|
|
4088
4187
|
};
|
|
4089
4188
|
},
|
|
@@ -4097,14 +4196,14 @@ const y = function(e, ...r) {
|
|
|
4097
4196
|
*/
|
|
4098
4197
|
getProjectQuota: async (r, o, n = {}) => {
|
|
4099
4198
|
I("getProjectQuota", "projectId", r), I("getProjectQuota", "resourceTypeId", o);
|
|
4100
|
-
const t = "/api/v2/projects/{projectId}/quotas/{resourceTypeId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceTypeId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4199
|
+
const t = "/api/v2/projects/{projectId}/quotas/{resourceTypeId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceTypeId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
4101
4200
|
let a;
|
|
4102
4201
|
e && (a = e.baseOptions);
|
|
4103
4202
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
4104
|
-
await
|
|
4203
|
+
await m(c, "Authorization", e), b(s, i);
|
|
4105
4204
|
let p = a && a.headers ? a.headers : {};
|
|
4106
4205
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4107
|
-
url:
|
|
4206
|
+
url: y(s),
|
|
4108
4207
|
options: l
|
|
4109
4208
|
};
|
|
4110
4209
|
},
|
|
@@ -4120,14 +4219,14 @@ const y = function(e, ...r) {
|
|
|
4120
4219
|
*/
|
|
4121
4220
|
getProjectQuotas: async (r, o, n, t, s = {}) => {
|
|
4122
4221
|
I("getProjectQuotas", "projectId", r);
|
|
4123
|
-
const a = "/api/v2/projects/{projectId}/quotas".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a,
|
|
4222
|
+
const a = "/api/v2/projects/{projectId}/quotas".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a, P);
|
|
4124
4223
|
let c;
|
|
4125
4224
|
e && (c = e.baseOptions);
|
|
4126
4225
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
4127
|
-
await
|
|
4226
|
+
await m(p, "Authorization", e), o !== void 0 && (d.PageNumber = o), n !== void 0 && (d.PageSize = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
4128
4227
|
let h = c && c.headers ? c.headers : {};
|
|
4129
4228
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
4130
|
-
url:
|
|
4229
|
+
url: y(l),
|
|
4131
4230
|
options: i
|
|
4132
4231
|
};
|
|
4133
4232
|
},
|
|
@@ -4142,20 +4241,20 @@ const y = function(e, ...r) {
|
|
|
4142
4241
|
*/
|
|
4143
4242
|
updateProjectQuota: async (r, o, n, t = {}) => {
|
|
4144
4243
|
I("updateProjectQuota", "projectId", r), I("updateProjectQuota", "resourceTypeId", o);
|
|
4145
|
-
const s = "/api/v2/projects/{projectId}/quotas/{resourceTypeId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceTypeId}", encodeURIComponent(String(o))), a = new URL(s,
|
|
4244
|
+
const s = "/api/v2/projects/{projectId}/quotas/{resourceTypeId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceTypeId}", encodeURIComponent(String(o))), a = new URL(s, P);
|
|
4146
4245
|
let l;
|
|
4147
4246
|
e && (l = e.baseOptions);
|
|
4148
4247
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
4149
|
-
await
|
|
4248
|
+
await m(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
4150
4249
|
let d = l && l.headers ? l.headers : {};
|
|
4151
|
-
return c.headers = { ...i, ...d, ...t.headers }, c.data =
|
|
4152
|
-
url:
|
|
4250
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
4251
|
+
url: y(a),
|
|
4153
4252
|
options: c
|
|
4154
4253
|
};
|
|
4155
4254
|
}
|
|
4156
4255
|
};
|
|
4157
|
-
},
|
|
4158
|
-
const r =
|
|
4256
|
+
}, Ps = function(e) {
|
|
4257
|
+
const r = Vs(e);
|
|
4159
4258
|
return {
|
|
4160
4259
|
/**
|
|
4161
4260
|
*
|
|
@@ -4212,8 +4311,8 @@ const y = function(e, ...r) {
|
|
|
4212
4311
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
4213
4312
|
}
|
|
4214
4313
|
};
|
|
4215
|
-
},
|
|
4216
|
-
const n =
|
|
4314
|
+
}, ms = function(e, r, o) {
|
|
4315
|
+
const n = Ps(e);
|
|
4217
4316
|
return {
|
|
4218
4317
|
/**
|
|
4219
4318
|
*
|
|
@@ -4256,7 +4355,7 @@ const y = function(e, ...r) {
|
|
|
4256
4355
|
return n.updateProjectQuota(t.projectId, t.resourceTypeId, t.projectQuotaForUpdateDto, s).then((a) => a(o, r));
|
|
4257
4356
|
}
|
|
4258
4357
|
};
|
|
4259
|
-
},
|
|
4358
|
+
}, bs = function(e) {
|
|
4260
4359
|
return {
|
|
4261
4360
|
/**
|
|
4262
4361
|
*
|
|
@@ -4267,14 +4366,14 @@ const y = function(e, ...r) {
|
|
|
4267
4366
|
*/
|
|
4268
4367
|
apiV2ProjectsProjectIdResourcesOptions: async (r, o = {}) => {
|
|
4269
4368
|
I("apiV2ProjectsProjectIdResourcesOptions", "projectId", r);
|
|
4270
|
-
const n = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4369
|
+
const n = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
4271
4370
|
let s;
|
|
4272
4371
|
e && (s = e.baseOptions);
|
|
4273
4372
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
4274
|
-
await
|
|
4373
|
+
await m(l, "Authorization", e), b(t, c);
|
|
4275
4374
|
let i = s && s.headers ? s.headers : {};
|
|
4276
4375
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4277
|
-
url:
|
|
4376
|
+
url: y(t),
|
|
4278
4377
|
options: a
|
|
4279
4378
|
};
|
|
4280
4379
|
},
|
|
@@ -4288,14 +4387,14 @@ const y = function(e, ...r) {
|
|
|
4288
4387
|
*/
|
|
4289
4388
|
createResourceForProject: async (r, o, n = {}) => {
|
|
4290
4389
|
I("createResourceForProject", "projectId", r);
|
|
4291
|
-
const t = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t,
|
|
4390
|
+
const t = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), s = new URL(t, P);
|
|
4292
4391
|
let a;
|
|
4293
4392
|
e && (a = e.baseOptions);
|
|
4294
4393
|
const l = { method: "POST", ...a, ...n }, c = {}, i = {};
|
|
4295
|
-
await
|
|
4394
|
+
await m(c, "Authorization", e), c["Content-Type"] = "application/json", b(s, i);
|
|
4296
4395
|
let p = a && a.headers ? a.headers : {};
|
|
4297
|
-
return l.headers = { ...c, ...p, ...n.headers }, l.data =
|
|
4298
|
-
url:
|
|
4396
|
+
return l.headers = { ...c, ...p, ...n.headers }, l.data = L(o, l, e), {
|
|
4397
|
+
url: y(s),
|
|
4299
4398
|
options: l
|
|
4300
4399
|
};
|
|
4301
4400
|
},
|
|
@@ -4309,14 +4408,14 @@ const y = function(e, ...r) {
|
|
|
4309
4408
|
*/
|
|
4310
4409
|
deleteResourceForProject: async (r, o, n = {}) => {
|
|
4311
4410
|
I("deleteResourceForProject", "projectId", r), I("deleteResourceForProject", "resourceId", o);
|
|
4312
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4411
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
4313
4412
|
let a;
|
|
4314
4413
|
e && (a = e.baseOptions);
|
|
4315
4414
|
const l = { method: "DELETE", ...a, ...n }, c = {}, i = {};
|
|
4316
|
-
await
|
|
4415
|
+
await m(c, "Authorization", e), b(s, i);
|
|
4317
4416
|
let p = a && a.headers ? a.headers : {};
|
|
4318
4417
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4319
|
-
url:
|
|
4418
|
+
url: y(s),
|
|
4320
4419
|
options: l
|
|
4321
4420
|
};
|
|
4322
4421
|
},
|
|
@@ -4330,14 +4429,14 @@ const y = function(e, ...r) {
|
|
|
4330
4429
|
*/
|
|
4331
4430
|
getResourceForProject: async (r, o, n = {}) => {
|
|
4332
4431
|
I("getResourceForProject", "projectId", r), I("getResourceForProject", "resourceId", o);
|
|
4333
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4432
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
4334
4433
|
let a;
|
|
4335
4434
|
e && (a = e.baseOptions);
|
|
4336
4435
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
4337
|
-
await
|
|
4436
|
+
await m(c, "Authorization", e), b(s, i);
|
|
4338
4437
|
let p = a && a.headers ? a.headers : {};
|
|
4339
4438
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4340
|
-
url:
|
|
4439
|
+
url: y(s),
|
|
4341
4440
|
options: l
|
|
4342
4441
|
};
|
|
4343
4442
|
},
|
|
@@ -4353,14 +4452,14 @@ const y = function(e, ...r) {
|
|
|
4353
4452
|
*/
|
|
4354
4453
|
getResourcesForProject: async (r, o, n, t, s = {}) => {
|
|
4355
4454
|
I("getResourcesForProject", "projectId", r);
|
|
4356
|
-
const a = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a,
|
|
4455
|
+
const a = "/api/v2/projects/{projectId}/resources".replace("{projectId}", encodeURIComponent(String(r))), l = new URL(a, P);
|
|
4357
4456
|
let c;
|
|
4358
4457
|
e && (c = e.baseOptions);
|
|
4359
4458
|
const i = { method: "GET", ...c, ...s }, p = {}, d = {};
|
|
4360
|
-
await
|
|
4459
|
+
await m(p, "Authorization", e), o !== void 0 && (d.PageNumber = o), n !== void 0 && (d.PageSize = n), t !== void 0 && (d.OrderBy = t), b(l, d);
|
|
4361
4460
|
let h = c && c.headers ? c.headers : {};
|
|
4362
4461
|
return i.headers = { ...p, ...h, ...s.headers }, {
|
|
4363
|
-
url:
|
|
4462
|
+
url: y(l),
|
|
4364
4463
|
options: i
|
|
4365
4464
|
};
|
|
4366
4465
|
},
|
|
@@ -4375,20 +4474,20 @@ const y = function(e, ...r) {
|
|
|
4375
4474
|
*/
|
|
4376
4475
|
updateResourceForProject: async (r, o, n, t = {}) => {
|
|
4377
4476
|
I("updateResourceForProject", "projectId", r), I("updateResourceForProject", "resourceId", o);
|
|
4378
|
-
const s = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s,
|
|
4477
|
+
const s = "/api/v2/projects/{projectId}/resources/{resourceId}".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s, P);
|
|
4379
4478
|
let l;
|
|
4380
4479
|
e && (l = e.baseOptions);
|
|
4381
4480
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
4382
|
-
await
|
|
4481
|
+
await m(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
4383
4482
|
let d = l && l.headers ? l.headers : {};
|
|
4384
|
-
return c.headers = { ...i, ...d, ...t.headers }, c.data =
|
|
4385
|
-
url:
|
|
4483
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
4484
|
+
url: y(a),
|
|
4386
4485
|
options: c
|
|
4387
4486
|
};
|
|
4388
4487
|
}
|
|
4389
4488
|
};
|
|
4390
|
-
},
|
|
4391
|
-
const r =
|
|
4489
|
+
}, ys = function(e) {
|
|
4490
|
+
const r = bs(e);
|
|
4392
4491
|
return {
|
|
4393
4492
|
/**
|
|
4394
4493
|
*
|
|
@@ -4471,8 +4570,8 @@ const y = function(e, ...r) {
|
|
|
4471
4570
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
4472
4571
|
}
|
|
4473
4572
|
};
|
|
4474
|
-
},
|
|
4475
|
-
const n =
|
|
4573
|
+
}, Rs = function(e, r, o) {
|
|
4574
|
+
const n = ys(e);
|
|
4476
4575
|
return {
|
|
4477
4576
|
/**
|
|
4478
4577
|
*
|
|
@@ -4535,7 +4634,7 @@ const y = function(e, ...r) {
|
|
|
4535
4634
|
return n.updateResourceForProject(t.projectId, t.resourceId, t.resourceForUpdateDto, s).then((a) => a(o, r));
|
|
4536
4635
|
}
|
|
4537
4636
|
};
|
|
4538
|
-
},
|
|
4637
|
+
}, js = function(e) {
|
|
4539
4638
|
return {
|
|
4540
4639
|
/**
|
|
4541
4640
|
*
|
|
@@ -4547,14 +4646,14 @@ const y = function(e, ...r) {
|
|
|
4547
4646
|
*/
|
|
4548
4647
|
apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions: async (r, o, n = {}) => {
|
|
4549
4648
|
I("apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions", "projectId", r), I("apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions", "resourceId", o);
|
|
4550
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/quota".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4649
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/quota".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
4551
4650
|
let a;
|
|
4552
4651
|
e && (a = e.baseOptions);
|
|
4553
4652
|
const l = { method: "OPTIONS", ...a, ...n }, c = {}, i = {};
|
|
4554
|
-
await
|
|
4653
|
+
await m(c, "Authorization", e), b(s, i);
|
|
4555
4654
|
let p = a && a.headers ? a.headers : {};
|
|
4556
4655
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4557
|
-
url:
|
|
4656
|
+
url: y(s),
|
|
4558
4657
|
options: l
|
|
4559
4658
|
};
|
|
4560
4659
|
},
|
|
@@ -4568,20 +4667,20 @@ const y = function(e, ...r) {
|
|
|
4568
4667
|
*/
|
|
4569
4668
|
getQuotaForResourceForProject: async (r, o, n = {}) => {
|
|
4570
4669
|
I("getQuotaForResourceForProject", "projectId", r), I("getQuotaForResourceForProject", "resourceId", o);
|
|
4571
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/quota".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
4670
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/quota".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
4572
4671
|
let a;
|
|
4573
4672
|
e && (a = e.baseOptions);
|
|
4574
4673
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
4575
|
-
await
|
|
4674
|
+
await m(c, "Authorization", e), b(s, i);
|
|
4576
4675
|
let p = a && a.headers ? a.headers : {};
|
|
4577
4676
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4578
|
-
url:
|
|
4677
|
+
url: y(s),
|
|
4579
4678
|
options: l
|
|
4580
4679
|
};
|
|
4581
4680
|
}
|
|
4582
4681
|
};
|
|
4583
|
-
},
|
|
4584
|
-
const r =
|
|
4682
|
+
}, Is = function(e) {
|
|
4683
|
+
const r = js(e);
|
|
4585
4684
|
return {
|
|
4586
4685
|
/**
|
|
4587
4686
|
*
|
|
@@ -4610,8 +4709,8 @@ const y = function(e, ...r) {
|
|
|
4610
4709
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
4611
4710
|
}
|
|
4612
4711
|
};
|
|
4613
|
-
},
|
|
4614
|
-
const n =
|
|
4712
|
+
}, ws = function(e, r, o) {
|
|
4713
|
+
const n = Is(e);
|
|
4615
4714
|
return {
|
|
4616
4715
|
/**
|
|
4617
4716
|
*
|
|
@@ -4634,7 +4733,7 @@ const y = function(e, ...r) {
|
|
|
4634
4733
|
return n.getQuotaForResourceForProject(t.projectId, t.resourceId, s).then((a) => a(o, r));
|
|
4635
4734
|
}
|
|
4636
4735
|
};
|
|
4637
|
-
},
|
|
4736
|
+
}, Ts = function(e) {
|
|
4638
4737
|
return {
|
|
4639
4738
|
/**
|
|
4640
4739
|
*
|
|
@@ -4645,14 +4744,14 @@ const y = function(e, ...r) {
|
|
|
4645
4744
|
*/
|
|
4646
4745
|
apiV2ProjectsProjectIdResourceTypesOptions: async (r, o = {}) => {
|
|
4647
4746
|
I("apiV2ProjectsProjectIdResourceTypesOptions", "projectId", r);
|
|
4648
|
-
const n = "/api/v2/projects/{projectId}/resource-types".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4747
|
+
const n = "/api/v2/projects/{projectId}/resource-types".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
4649
4748
|
let s;
|
|
4650
4749
|
e && (s = e.baseOptions);
|
|
4651
4750
|
const a = { method: "OPTIONS", ...s, ...o }, l = {}, c = {};
|
|
4652
|
-
await
|
|
4751
|
+
await m(l, "Authorization", e), b(t, c);
|
|
4653
4752
|
let i = s && s.headers ? s.headers : {};
|
|
4654
4753
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4655
|
-
url:
|
|
4754
|
+
url: y(t),
|
|
4656
4755
|
options: a
|
|
4657
4756
|
};
|
|
4658
4757
|
},
|
|
@@ -4665,20 +4764,20 @@ const y = function(e, ...r) {
|
|
|
4665
4764
|
*/
|
|
4666
4765
|
getAvailableResourceTypesInformationForProject: async (r, o = {}) => {
|
|
4667
4766
|
I("getAvailableResourceTypesInformationForProject", "projectId", r);
|
|
4668
|
-
const n = "/api/v2/projects/{projectId}/resource-types".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4767
|
+
const n = "/api/v2/projects/{projectId}/resource-types".replace("{projectId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
4669
4768
|
let s;
|
|
4670
4769
|
e && (s = e.baseOptions);
|
|
4671
4770
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
4672
|
-
await
|
|
4771
|
+
await m(l, "Authorization", e), b(t, c);
|
|
4673
4772
|
let i = s && s.headers ? s.headers : {};
|
|
4674
4773
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4675
|
-
url:
|
|
4774
|
+
url: y(t),
|
|
4676
4775
|
options: a
|
|
4677
4776
|
};
|
|
4678
4777
|
}
|
|
4679
4778
|
};
|
|
4680
|
-
},
|
|
4681
|
-
const r =
|
|
4779
|
+
}, Us = function(e) {
|
|
4780
|
+
const r = Ts(e);
|
|
4682
4781
|
return {
|
|
4683
4782
|
/**
|
|
4684
4783
|
*
|
|
@@ -4705,8 +4804,8 @@ const y = function(e, ...r) {
|
|
|
4705
4804
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
4706
4805
|
}
|
|
4707
4806
|
};
|
|
4708
|
-
},
|
|
4709
|
-
const n =
|
|
4807
|
+
}, vs = function(e, r, o) {
|
|
4808
|
+
const n = Us(e);
|
|
4710
4809
|
return {
|
|
4711
4810
|
/**
|
|
4712
4811
|
*
|
|
@@ -4729,7 +4828,7 @@ const y = function(e, ...r) {
|
|
|
4729
4828
|
return n.getAvailableResourceTypesInformationForProject(t.projectId, s).then((a) => a(o, r));
|
|
4730
4829
|
}
|
|
4731
4830
|
};
|
|
4732
|
-
},
|
|
4831
|
+
}, xs = function(e) {
|
|
4733
4832
|
return {
|
|
4734
4833
|
/**
|
|
4735
4834
|
*
|
|
@@ -4738,14 +4837,14 @@ const y = function(e, ...r) {
|
|
|
4738
4837
|
* @throws {RequiredError}
|
|
4739
4838
|
*/
|
|
4740
4839
|
apiV2ResourcesOptions: async (r = {}) => {
|
|
4741
|
-
const o = "/api/v2/resources", n = new URL(o,
|
|
4840
|
+
const o = "/api/v2/resources", n = new URL(o, P);
|
|
4742
4841
|
let t;
|
|
4743
4842
|
e && (t = e.baseOptions);
|
|
4744
4843
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
4745
|
-
await
|
|
4844
|
+
await m(a, "Authorization", e), b(n, l);
|
|
4746
4845
|
let c = t && t.headers ? t.headers : {};
|
|
4747
4846
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
4748
|
-
url:
|
|
4847
|
+
url: y(n),
|
|
4749
4848
|
options: s
|
|
4750
4849
|
};
|
|
4751
4850
|
},
|
|
@@ -4758,20 +4857,20 @@ const y = function(e, ...r) {
|
|
|
4758
4857
|
*/
|
|
4759
4858
|
getResource: async (r, o = {}) => {
|
|
4760
4859
|
I("getResource", "resourceId", r);
|
|
4761
|
-
const n = "/api/v2/resources/{resourceId}".replace("{resourceId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
4860
|
+
const n = "/api/v2/resources/{resourceId}".replace("{resourceId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
4762
4861
|
let s;
|
|
4763
4862
|
e && (s = e.baseOptions);
|
|
4764
4863
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
4765
|
-
await
|
|
4864
|
+
await m(l, "Authorization", e), b(t, c);
|
|
4766
4865
|
let i = s && s.headers ? s.headers : {};
|
|
4767
4866
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4768
|
-
url:
|
|
4867
|
+
url: y(t),
|
|
4769
4868
|
options: a
|
|
4770
4869
|
};
|
|
4771
4870
|
}
|
|
4772
4871
|
};
|
|
4773
|
-
},
|
|
4774
|
-
const r =
|
|
4872
|
+
}, Ss = function(e) {
|
|
4873
|
+
const r = xs(e);
|
|
4775
4874
|
return {
|
|
4776
4875
|
/**
|
|
4777
4876
|
*
|
|
@@ -4797,8 +4896,8 @@ const y = function(e, ...r) {
|
|
|
4797
4896
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
4798
4897
|
}
|
|
4799
4898
|
};
|
|
4800
|
-
},
|
|
4801
|
-
const n =
|
|
4899
|
+
}, Bs = function(e, r, o) {
|
|
4900
|
+
const n = Ss(e);
|
|
4802
4901
|
return {
|
|
4803
4902
|
/**
|
|
4804
4903
|
*
|
|
@@ -4820,7 +4919,7 @@ const y = function(e, ...r) {
|
|
|
4820
4919
|
return n.getResource(t.resourceId, s).then((a) => a(o, r));
|
|
4821
4920
|
}
|
|
4822
4921
|
};
|
|
4823
|
-
},
|
|
4922
|
+
}, Fs = function(e) {
|
|
4824
4923
|
return {
|
|
4825
4924
|
/**
|
|
4826
4925
|
*
|
|
@@ -4829,14 +4928,14 @@ const y = function(e, ...r) {
|
|
|
4829
4928
|
* @throws {RequiredError}
|
|
4830
4929
|
*/
|
|
4831
4930
|
apiV2ResourceTypesOptions: async (r = {}) => {
|
|
4832
|
-
const o = "/api/v2/resource-types", n = new URL(o,
|
|
4931
|
+
const o = "/api/v2/resource-types", n = new URL(o, P);
|
|
4833
4932
|
let t;
|
|
4834
4933
|
e && (t = e.baseOptions);
|
|
4835
4934
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
4836
|
-
await
|
|
4935
|
+
await m(a, "Authorization", e), b(n, l);
|
|
4837
4936
|
let c = t && t.headers ? t.headers : {};
|
|
4838
4937
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
4839
|
-
url:
|
|
4938
|
+
url: y(n),
|
|
4840
4939
|
options: s
|
|
4841
4940
|
};
|
|
4842
4941
|
},
|
|
@@ -4851,14 +4950,14 @@ const y = function(e, ...r) {
|
|
|
4851
4950
|
*/
|
|
4852
4951
|
getAllGitlabBranchesForProject: async (r, o, n, t = {}) => {
|
|
4853
4952
|
I("getAllGitlabBranchesForProject", "gitlabProjectId", r), I("getAllGitlabBranchesForProject", "domain", o), I("getAllGitlabBranchesForProject", "accessToken", n);
|
|
4854
|
-
const s = "/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches".replace("{gitlabProjectId}", encodeURIComponent(String(r))), a = new URL(s,
|
|
4953
|
+
const s = "/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches".replace("{gitlabProjectId}", encodeURIComponent(String(r))), a = new URL(s, P);
|
|
4855
4954
|
let l;
|
|
4856
4955
|
e && (l = e.baseOptions);
|
|
4857
4956
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
4858
|
-
await
|
|
4957
|
+
await m(i, "Authorization", e), o !== void 0 && (p.Domain = o), n !== void 0 && (p.AccessToken = n), b(a, p);
|
|
4859
4958
|
let d = l && l.headers ? l.headers : {};
|
|
4860
4959
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
4861
|
-
url:
|
|
4960
|
+
url: y(a),
|
|
4862
4961
|
options: c
|
|
4863
4962
|
};
|
|
4864
4963
|
},
|
|
@@ -4872,14 +4971,14 @@ const y = function(e, ...r) {
|
|
|
4872
4971
|
*/
|
|
4873
4972
|
getAllGitlabProjects: async (r, o, n = {}) => {
|
|
4874
4973
|
I("getAllGitlabProjects", "domain", r), I("getAllGitlabProjects", "accessToken", o);
|
|
4875
|
-
const t = "/api/v2/resource-types/gitlab/projects", s = new URL(t,
|
|
4974
|
+
const t = "/api/v2/resource-types/gitlab/projects", s = new URL(t, P);
|
|
4876
4975
|
let a;
|
|
4877
4976
|
e && (a = e.baseOptions);
|
|
4878
4977
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
4879
|
-
await
|
|
4978
|
+
await m(c, "Authorization", e), r !== void 0 && (i.Domain = r), o !== void 0 && (i.AccessToken = o), b(s, i);
|
|
4880
4979
|
let p = a && a.headers ? a.headers : {};
|
|
4881
4980
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
4882
|
-
url:
|
|
4981
|
+
url: y(s),
|
|
4883
4982
|
options: l
|
|
4884
4983
|
};
|
|
4885
4984
|
},
|
|
@@ -4890,14 +4989,14 @@ const y = function(e, ...r) {
|
|
|
4890
4989
|
* @throws {RequiredError}
|
|
4891
4990
|
*/
|
|
4892
4991
|
getAllResourceTypesInformation: async (r = {}) => {
|
|
4893
|
-
const o = "/api/v2/resource-types/types", n = new URL(o,
|
|
4992
|
+
const o = "/api/v2/resource-types/types", n = new URL(o, P);
|
|
4894
4993
|
let t;
|
|
4895
4994
|
e && (t = e.baseOptions);
|
|
4896
4995
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
4897
|
-
await
|
|
4996
|
+
await m(a, "Authorization", e), b(n, l);
|
|
4898
4997
|
let c = t && t.headers ? t.headers : {};
|
|
4899
4998
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
4900
|
-
url:
|
|
4999
|
+
url: y(n),
|
|
4901
5000
|
options: s
|
|
4902
5001
|
};
|
|
4903
5002
|
},
|
|
@@ -4912,14 +5011,14 @@ const y = function(e, ...r) {
|
|
|
4912
5011
|
*/
|
|
4913
5012
|
getGitlabProject: async (r, o, n, t = {}) => {
|
|
4914
5013
|
I("getGitlabProject", "gitlabProjectId", r), I("getGitlabProject", "domain", o), I("getGitlabProject", "accessToken", n);
|
|
4915
|
-
const s = "/api/v2/resource-types/gitlab/projects/{gitlabProjectId}".replace("{gitlabProjectId}", encodeURIComponent(String(r))), a = new URL(s,
|
|
5014
|
+
const s = "/api/v2/resource-types/gitlab/projects/{gitlabProjectId}".replace("{gitlabProjectId}", encodeURIComponent(String(r))), a = new URL(s, P);
|
|
4916
5015
|
let l;
|
|
4917
5016
|
e && (l = e.baseOptions);
|
|
4918
5017
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
4919
|
-
await
|
|
5018
|
+
await m(i, "Authorization", e), o !== void 0 && (p.Domain = o), n !== void 0 && (p.AccessToken = n), b(a, p);
|
|
4920
5019
|
let d = l && l.headers ? l.headers : {};
|
|
4921
5020
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
4922
|
-
url:
|
|
5021
|
+
url: y(a),
|
|
4923
5022
|
options: c
|
|
4924
5023
|
};
|
|
4925
5024
|
},
|
|
@@ -4932,20 +5031,20 @@ const y = function(e, ...r) {
|
|
|
4932
5031
|
*/
|
|
4933
5032
|
getResourceTypeInformation: async (r, o = {}) => {
|
|
4934
5033
|
I("getResourceTypeInformation", "resourceTypeId", r);
|
|
4935
|
-
const n = "/api/v2/resource-types/types/{resourceTypeId}".replace("{resourceTypeId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
5034
|
+
const n = "/api/v2/resource-types/types/{resourceTypeId}".replace("{resourceTypeId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
4936
5035
|
let s;
|
|
4937
5036
|
e && (s = e.baseOptions);
|
|
4938
5037
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
4939
|
-
await
|
|
5038
|
+
await m(l, "Authorization", e), b(t, c);
|
|
4940
5039
|
let i = s && s.headers ? s.headers : {};
|
|
4941
5040
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
4942
|
-
url:
|
|
5041
|
+
url: y(t),
|
|
4943
5042
|
options: a
|
|
4944
5043
|
};
|
|
4945
5044
|
}
|
|
4946
5045
|
};
|
|
4947
|
-
},
|
|
4948
|
-
const r =
|
|
5046
|
+
}, Cs = function(e) {
|
|
5047
|
+
const r = Fs(e);
|
|
4949
5048
|
return {
|
|
4950
5049
|
/**
|
|
4951
5050
|
*
|
|
@@ -5023,8 +5122,8 @@ const y = function(e, ...r) {
|
|
|
5023
5122
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
5024
5123
|
}
|
|
5025
5124
|
};
|
|
5026
|
-
},
|
|
5027
|
-
const n =
|
|
5125
|
+
}, Ls = function(e, r, o) {
|
|
5126
|
+
const n = Cs(e);
|
|
5028
5127
|
return {
|
|
5029
5128
|
/**
|
|
5030
5129
|
*
|
|
@@ -5085,7 +5184,7 @@ const y = function(e, ...r) {
|
|
|
5085
5184
|
return n.getResourceTypeInformation(t.resourceTypeId, s).then((a) => a(o, r));
|
|
5086
5185
|
}
|
|
5087
5186
|
};
|
|
5088
|
-
},
|
|
5187
|
+
}, Es = function(e) {
|
|
5089
5188
|
return {
|
|
5090
5189
|
/**
|
|
5091
5190
|
*
|
|
@@ -5094,14 +5193,14 @@ const y = function(e, ...r) {
|
|
|
5094
5193
|
* @throws {RequiredError}
|
|
5095
5194
|
*/
|
|
5096
5195
|
apiV2RolesOptions: async (r = {}) => {
|
|
5097
|
-
const o = "/api/v2/roles", n = new URL(o,
|
|
5196
|
+
const o = "/api/v2/roles", n = new URL(o, P);
|
|
5098
5197
|
let t;
|
|
5099
5198
|
e && (t = e.baseOptions);
|
|
5100
5199
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5101
|
-
await
|
|
5200
|
+
await m(a, "Authorization", e), b(n, l);
|
|
5102
5201
|
let c = t && t.headers ? t.headers : {};
|
|
5103
5202
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5104
|
-
url:
|
|
5203
|
+
url: y(n),
|
|
5105
5204
|
options: s
|
|
5106
5205
|
};
|
|
5107
5206
|
},
|
|
@@ -5114,14 +5213,14 @@ const y = function(e, ...r) {
|
|
|
5114
5213
|
*/
|
|
5115
5214
|
getRole: async (r, o = {}) => {
|
|
5116
5215
|
I("getRole", "roleId", r);
|
|
5117
|
-
const n = "/api/v2/roles/{roleId}".replace("{roleId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
5216
|
+
const n = "/api/v2/roles/{roleId}".replace("{roleId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
5118
5217
|
let s;
|
|
5119
5218
|
e && (s = e.baseOptions);
|
|
5120
5219
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
5121
|
-
await
|
|
5220
|
+
await m(l, "Authorization", e), b(t, c);
|
|
5122
5221
|
let i = s && s.headers ? s.headers : {};
|
|
5123
5222
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5124
|
-
url:
|
|
5223
|
+
url: y(t),
|
|
5125
5224
|
options: a
|
|
5126
5225
|
};
|
|
5127
5226
|
},
|
|
@@ -5135,20 +5234,20 @@ const y = function(e, ...r) {
|
|
|
5135
5234
|
* @throws {RequiredError}
|
|
5136
5235
|
*/
|
|
5137
5236
|
getRoles: async (r, o, n, t = {}) => {
|
|
5138
|
-
const s = "/api/v2/roles", a = new URL(s,
|
|
5237
|
+
const s = "/api/v2/roles", a = new URL(s, P);
|
|
5139
5238
|
let l;
|
|
5140
5239
|
e && (l = e.baseOptions);
|
|
5141
5240
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
5142
|
-
await
|
|
5241
|
+
await m(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
5143
5242
|
let d = l && l.headers ? l.headers : {};
|
|
5144
5243
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
5145
|
-
url:
|
|
5244
|
+
url: y(a),
|
|
5146
5245
|
options: c
|
|
5147
5246
|
};
|
|
5148
5247
|
}
|
|
5149
5248
|
};
|
|
5150
|
-
},
|
|
5151
|
-
const r =
|
|
5249
|
+
}, zs = function(e) {
|
|
5250
|
+
const r = Es(e);
|
|
5152
5251
|
return {
|
|
5153
5252
|
/**
|
|
5154
5253
|
*
|
|
@@ -5188,8 +5287,8 @@ const y = function(e, ...r) {
|
|
|
5188
5287
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
5189
5288
|
}
|
|
5190
5289
|
};
|
|
5191
|
-
},
|
|
5192
|
-
const n =
|
|
5290
|
+
}, Hs = function(e, r, o) {
|
|
5291
|
+
const n = zs(e);
|
|
5193
5292
|
return {
|
|
5194
5293
|
/**
|
|
5195
5294
|
*
|
|
@@ -5221,7 +5320,7 @@ const y = function(e, ...r) {
|
|
|
5221
5320
|
return n.getRoles(t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
5222
5321
|
}
|
|
5223
5322
|
};
|
|
5224
|
-
},
|
|
5323
|
+
}, Ms = function(e) {
|
|
5225
5324
|
return {
|
|
5226
5325
|
/**
|
|
5227
5326
|
*
|
|
@@ -5230,14 +5329,14 @@ const y = function(e, ...r) {
|
|
|
5230
5329
|
* @throws {RequiredError}
|
|
5231
5330
|
*/
|
|
5232
5331
|
apiV2SearchOptions: async (r = {}) => {
|
|
5233
|
-
const o = "/api/v2/search", n = new URL(o,
|
|
5332
|
+
const o = "/api/v2/search", n = new URL(o, P);
|
|
5234
5333
|
let t;
|
|
5235
5334
|
e && (t = e.baseOptions);
|
|
5236
5335
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5237
|
-
await
|
|
5336
|
+
await m(a, "Authorization", e), b(n, l);
|
|
5238
5337
|
let c = t && t.headers ? t.headers : {};
|
|
5239
5338
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5240
|
-
url:
|
|
5339
|
+
url: y(n),
|
|
5241
5340
|
options: s
|
|
5242
5341
|
};
|
|
5243
5342
|
},
|
|
@@ -5255,20 +5354,20 @@ const y = function(e, ...r) {
|
|
|
5255
5354
|
* @throws {RequiredError}
|
|
5256
5355
|
*/
|
|
5257
5356
|
getSearchResults: async (r, o, n, t, s, a, l, c = {}) => {
|
|
5258
|
-
const i = "/api/v2/search", p = new URL(i,
|
|
5357
|
+
const i = "/api/v2/search", p = new URL(i, P);
|
|
5259
5358
|
let d;
|
|
5260
5359
|
e && (d = e.baseOptions);
|
|
5261
5360
|
const h = { method: "GET", ...d, ...c }, u = {}, w = {};
|
|
5262
|
-
await
|
|
5361
|
+
await m(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);
|
|
5263
5362
|
let T = d && d.headers ? d.headers : {};
|
|
5264
5363
|
return h.headers = { ...u, ...T, ...c.headers }, {
|
|
5265
|
-
url:
|
|
5364
|
+
url: y(p),
|
|
5266
5365
|
options: h
|
|
5267
5366
|
};
|
|
5268
5367
|
}
|
|
5269
5368
|
};
|
|
5270
|
-
},
|
|
5271
|
-
const r =
|
|
5369
|
+
}, Qs = function(e) {
|
|
5370
|
+
const r = Ms(e);
|
|
5272
5371
|
return {
|
|
5273
5372
|
/**
|
|
5274
5373
|
*
|
|
@@ -5300,8 +5399,8 @@ const y = function(e, ...r) {
|
|
|
5300
5399
|
return (T, U) => R(p, O, A, e)(T, h || U);
|
|
5301
5400
|
}
|
|
5302
5401
|
};
|
|
5303
|
-
},
|
|
5304
|
-
const n =
|
|
5402
|
+
}, ks = function(e, r, o) {
|
|
5403
|
+
const n = Qs(e);
|
|
5305
5404
|
return {
|
|
5306
5405
|
/**
|
|
5307
5406
|
*
|
|
@@ -5323,7 +5422,7 @@ const y = function(e, ...r) {
|
|
|
5323
5422
|
return n.getSearchResults(t.query, t.useAdvancedSyntax, t.languages, t.category, t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
5324
5423
|
}
|
|
5325
5424
|
};
|
|
5326
|
-
},
|
|
5425
|
+
}, Ds = function(e) {
|
|
5327
5426
|
return {
|
|
5328
5427
|
/**
|
|
5329
5428
|
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
@@ -5333,14 +5432,14 @@ const y = function(e, ...r) {
|
|
|
5333
5432
|
* @throws {RequiredError}
|
|
5334
5433
|
*/
|
|
5335
5434
|
acceptCurrentTos: async (r, o = {}) => {
|
|
5336
|
-
const n = "/api/v2/self/tos", t = new URL(n,
|
|
5435
|
+
const n = "/api/v2/self/tos", t = new URL(n, P);
|
|
5337
5436
|
let s;
|
|
5338
5437
|
e && (s = e.baseOptions);
|
|
5339
5438
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5340
|
-
await
|
|
5439
|
+
await m(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
5341
5440
|
let i = s && s.headers ? s.headers : {};
|
|
5342
|
-
return a.headers = { ...l, ...i, ...o.headers }, a.data =
|
|
5343
|
-
url:
|
|
5441
|
+
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
5442
|
+
url: y(t),
|
|
5344
5443
|
options: a
|
|
5345
5444
|
};
|
|
5346
5445
|
},
|
|
@@ -5351,14 +5450,14 @@ const y = function(e, ...r) {
|
|
|
5351
5450
|
* @throws {RequiredError}
|
|
5352
5451
|
*/
|
|
5353
5452
|
apiV2SelfOptions: async (r = {}) => {
|
|
5354
|
-
const o = "/api/v2/self", n = new URL(o,
|
|
5453
|
+
const o = "/api/v2/self", n = new URL(o, P);
|
|
5355
5454
|
let t;
|
|
5356
5455
|
e && (t = e.baseOptions);
|
|
5357
5456
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5358
|
-
await
|
|
5457
|
+
await m(a, "Authorization", e), b(n, l);
|
|
5359
5458
|
let c = t && t.headers ? t.headers : {};
|
|
5360
5459
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5361
|
-
url:
|
|
5460
|
+
url: y(n),
|
|
5362
5461
|
options: s
|
|
5363
5462
|
};
|
|
5364
5463
|
},
|
|
@@ -5371,14 +5470,14 @@ const y = function(e, ...r) {
|
|
|
5371
5470
|
*/
|
|
5372
5471
|
confirmUserEmail: async (r, o = {}) => {
|
|
5373
5472
|
I("confirmUserEmail", "confirmationToken", r);
|
|
5374
|
-
const n = "/api/v2/self/emails", t = new URL(n,
|
|
5473
|
+
const n = "/api/v2/self/emails", t = new URL(n, P);
|
|
5375
5474
|
let s;
|
|
5376
5475
|
e && (s = e.baseOptions);
|
|
5377
5476
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5378
|
-
await
|
|
5477
|
+
await m(l, "Authorization", e), r !== void 0 && (c.ConfirmationToken = r), b(t, c);
|
|
5379
5478
|
let i = s && s.headers ? s.headers : {};
|
|
5380
5479
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5381
|
-
url:
|
|
5480
|
+
url: y(t),
|
|
5382
5481
|
options: a
|
|
5383
5482
|
};
|
|
5384
5483
|
},
|
|
@@ -5389,14 +5488,14 @@ const y = function(e, ...r) {
|
|
|
5389
5488
|
* @throws {RequiredError}
|
|
5390
5489
|
*/
|
|
5391
5490
|
getCurrentUser: async (r = {}) => {
|
|
5392
|
-
const o = "/api/v2/self", n = new URL(o,
|
|
5491
|
+
const o = "/api/v2/self", n = new URL(o, P);
|
|
5393
5492
|
let t;
|
|
5394
5493
|
e && (t = e.baseOptions);
|
|
5395
5494
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
5396
|
-
await
|
|
5495
|
+
await m(a, "Authorization", e), b(n, l);
|
|
5397
5496
|
let c = t && t.headers ? t.headers : {};
|
|
5398
5497
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5399
|
-
url:
|
|
5498
|
+
url: y(n),
|
|
5400
5499
|
options: s
|
|
5401
5500
|
};
|
|
5402
5501
|
},
|
|
@@ -5409,14 +5508,14 @@ const y = function(e, ...r) {
|
|
|
5409
5508
|
*/
|
|
5410
5509
|
initiateUserMerge: async (r, o = {}) => {
|
|
5411
5510
|
I("initiateUserMerge", "identityProvider", r);
|
|
5412
|
-
const n = "/api/v2/self/identities", t = new URL(n,
|
|
5511
|
+
const n = "/api/v2/self/identities", t = new URL(n, P);
|
|
5413
5512
|
let s;
|
|
5414
5513
|
e && (s = e.baseOptions);
|
|
5415
5514
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5416
|
-
await
|
|
5515
|
+
await m(l, "Authorization", e), r !== void 0 && (c.IdentityProvider = r), b(t, c);
|
|
5417
5516
|
let i = s && s.headers ? s.headers : {};
|
|
5418
5517
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5419
|
-
url:
|
|
5518
|
+
url: y(t),
|
|
5420
5519
|
options: a
|
|
5421
5520
|
};
|
|
5422
5521
|
},
|
|
@@ -5428,14 +5527,14 @@ const y = function(e, ...r) {
|
|
|
5428
5527
|
* @throws {RequiredError}
|
|
5429
5528
|
*/
|
|
5430
5529
|
resolveProjectInvitation: async (r, o = {}) => {
|
|
5431
|
-
const n = "/api/v2/self/project-invitations", t = new URL(n,
|
|
5530
|
+
const n = "/api/v2/self/project-invitations", t = new URL(n, P);
|
|
5432
5531
|
let s;
|
|
5433
5532
|
e && (s = e.baseOptions);
|
|
5434
5533
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5435
|
-
await
|
|
5534
|
+
await m(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
5436
5535
|
let i = s && s.headers ? s.headers : {};
|
|
5437
|
-
return a.headers = { ...l, ...i, ...o.headers }, a.data =
|
|
5438
|
-
url:
|
|
5536
|
+
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
5537
|
+
url: y(t),
|
|
5439
5538
|
options: a
|
|
5440
5539
|
};
|
|
5441
5540
|
},
|
|
@@ -5447,20 +5546,20 @@ const y = function(e, ...r) {
|
|
|
5447
5546
|
* @throws {RequiredError}
|
|
5448
5547
|
*/
|
|
5449
5548
|
updateCurrentUser: async (r, o = {}) => {
|
|
5450
|
-
const n = "/api/v2/self", t = new URL(n,
|
|
5549
|
+
const n = "/api/v2/self", t = new URL(n, P);
|
|
5451
5550
|
let s;
|
|
5452
5551
|
e && (s = e.baseOptions);
|
|
5453
5552
|
const a = { method: "PUT", ...s, ...o }, l = {}, c = {};
|
|
5454
|
-
await
|
|
5553
|
+
await m(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
5455
5554
|
let i = s && s.headers ? s.headers : {};
|
|
5456
|
-
return a.headers = { ...l, ...i, ...o.headers }, a.data =
|
|
5457
|
-
url:
|
|
5555
|
+
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
5556
|
+
url: y(t),
|
|
5458
5557
|
options: a
|
|
5459
5558
|
};
|
|
5460
5559
|
}
|
|
5461
5560
|
};
|
|
5462
|
-
},
|
|
5463
|
-
const r =
|
|
5561
|
+
}, Ns = function(e) {
|
|
5562
|
+
const r = Ds(e);
|
|
5464
5563
|
return {
|
|
5465
5564
|
/**
|
|
5466
5565
|
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
@@ -5545,8 +5644,8 @@ const y = function(e, ...r) {
|
|
|
5545
5644
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
5546
5645
|
}
|
|
5547
5646
|
};
|
|
5548
|
-
},
|
|
5549
|
-
const n =
|
|
5647
|
+
}, $s = function(e, r, o) {
|
|
5648
|
+
const n = Ns(e);
|
|
5550
5649
|
return {
|
|
5551
5650
|
/**
|
|
5552
5651
|
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
|
|
@@ -5617,7 +5716,7 @@ const y = function(e, ...r) {
|
|
|
5617
5716
|
return n.updateCurrentUser(t.userForUpdateDto, s).then((a) => a(o, r));
|
|
5618
5717
|
}
|
|
5619
5718
|
};
|
|
5620
|
-
},
|
|
5719
|
+
}, Gs = function(e) {
|
|
5621
5720
|
return {
|
|
5622
5721
|
/**
|
|
5623
5722
|
*
|
|
@@ -5626,14 +5725,14 @@ const y = function(e, ...r) {
|
|
|
5626
5725
|
* @throws {RequiredError}
|
|
5627
5726
|
*/
|
|
5628
5727
|
apiV2SelfApiTokensOptions: async (r = {}) => {
|
|
5629
|
-
const o = "/api/v2/self/api-tokens", n = new URL(o,
|
|
5728
|
+
const o = "/api/v2/self/api-tokens", n = new URL(o, P);
|
|
5630
5729
|
let t;
|
|
5631
5730
|
e && (t = e.baseOptions);
|
|
5632
5731
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5633
|
-
await
|
|
5732
|
+
await m(a, "Authorization", e), b(n, l);
|
|
5634
5733
|
let c = t && t.headers ? t.headers : {};
|
|
5635
5734
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5636
|
-
url:
|
|
5735
|
+
url: y(n),
|
|
5637
5736
|
options: s
|
|
5638
5737
|
};
|
|
5639
5738
|
},
|
|
@@ -5645,14 +5744,14 @@ const y = function(e, ...r) {
|
|
|
5645
5744
|
* @throws {RequiredError}
|
|
5646
5745
|
*/
|
|
5647
5746
|
createApiToken: async (r, o = {}) => {
|
|
5648
|
-
const n = "/api/v2/self/api-tokens", t = new URL(n,
|
|
5747
|
+
const n = "/api/v2/self/api-tokens", t = new URL(n, P);
|
|
5649
5748
|
let s;
|
|
5650
5749
|
e && (s = e.baseOptions);
|
|
5651
5750
|
const a = { method: "POST", ...s, ...o }, l = {}, c = {};
|
|
5652
|
-
await
|
|
5751
|
+
await m(l, "Authorization", e), l["Content-Type"] = "application/json", b(t, c);
|
|
5653
5752
|
let i = s && s.headers ? s.headers : {};
|
|
5654
|
-
return a.headers = { ...l, ...i, ...o.headers }, a.data =
|
|
5655
|
-
url:
|
|
5753
|
+
return a.headers = { ...l, ...i, ...o.headers }, a.data = L(r, a, e), {
|
|
5754
|
+
url: y(t),
|
|
5656
5755
|
options: a
|
|
5657
5756
|
};
|
|
5658
5757
|
},
|
|
@@ -5666,14 +5765,14 @@ const y = function(e, ...r) {
|
|
|
5666
5765
|
* @throws {RequiredError}
|
|
5667
5766
|
*/
|
|
5668
5767
|
getAllApiTokens: async (r, o, n, t = {}) => {
|
|
5669
|
-
const s = "/api/v2/self/api-tokens", a = new URL(s,
|
|
5768
|
+
const s = "/api/v2/self/api-tokens", a = new URL(s, P);
|
|
5670
5769
|
let l;
|
|
5671
5770
|
e && (l = e.baseOptions);
|
|
5672
5771
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
5673
|
-
await
|
|
5772
|
+
await m(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
5674
5773
|
let d = l && l.headers ? l.headers : {};
|
|
5675
5774
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
5676
|
-
url:
|
|
5775
|
+
url: y(a),
|
|
5677
5776
|
options: c
|
|
5678
5777
|
};
|
|
5679
5778
|
},
|
|
@@ -5686,14 +5785,14 @@ const y = function(e, ...r) {
|
|
|
5686
5785
|
*/
|
|
5687
5786
|
getApiToken: async (r, o = {}) => {
|
|
5688
5787
|
I("getApiToken", "apiTokenId", r);
|
|
5689
|
-
const n = "/api/v2/self/api-tokens/{apiTokenId}".replace("{apiTokenId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
5788
|
+
const n = "/api/v2/self/api-tokens/{apiTokenId}".replace("{apiTokenId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
5690
5789
|
let s;
|
|
5691
5790
|
e && (s = e.baseOptions);
|
|
5692
5791
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
5693
|
-
await
|
|
5792
|
+
await m(l, "Authorization", e), b(t, c);
|
|
5694
5793
|
let i = s && s.headers ? s.headers : {};
|
|
5695
5794
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5696
|
-
url:
|
|
5795
|
+
url: y(t),
|
|
5697
5796
|
options: a
|
|
5698
5797
|
};
|
|
5699
5798
|
},
|
|
@@ -5706,20 +5805,20 @@ const y = function(e, ...r) {
|
|
|
5706
5805
|
*/
|
|
5707
5806
|
revokeToken: async (r, o = {}) => {
|
|
5708
5807
|
I("revokeToken", "apiTokenId", r);
|
|
5709
|
-
const n = "/api/v2/self/api-tokens/{apiTokenId}".replace("{apiTokenId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
5808
|
+
const n = "/api/v2/self/api-tokens/{apiTokenId}".replace("{apiTokenId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
5710
5809
|
let s;
|
|
5711
5810
|
e && (s = e.baseOptions);
|
|
5712
5811
|
const a = { method: "DELETE", ...s, ...o }, l = {}, c = {};
|
|
5713
|
-
await
|
|
5812
|
+
await m(l, "Authorization", e), b(t, c);
|
|
5714
5813
|
let i = s && s.headers ? s.headers : {};
|
|
5715
5814
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5716
|
-
url:
|
|
5815
|
+
url: y(t),
|
|
5717
5816
|
options: a
|
|
5718
5817
|
};
|
|
5719
5818
|
}
|
|
5720
5819
|
};
|
|
5721
|
-
},
|
|
5722
|
-
const r =
|
|
5820
|
+
}, _s = function(e) {
|
|
5821
|
+
const r = Gs(e);
|
|
5723
5822
|
return {
|
|
5724
5823
|
/**
|
|
5725
5824
|
*
|
|
@@ -5783,8 +5882,8 @@ const y = function(e, ...r) {
|
|
|
5783
5882
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
5784
5883
|
}
|
|
5785
5884
|
};
|
|
5786
|
-
},
|
|
5787
|
-
const n =
|
|
5885
|
+
}, qs = function(e, r, o) {
|
|
5886
|
+
const n = _s(e);
|
|
5788
5887
|
return {
|
|
5789
5888
|
/**
|
|
5790
5889
|
*
|
|
@@ -5836,7 +5935,7 @@ const y = function(e, ...r) {
|
|
|
5836
5935
|
return n.revokeToken(t.apiTokenId, s).then((a) => a(o, r));
|
|
5837
5936
|
}
|
|
5838
5937
|
};
|
|
5839
|
-
},
|
|
5938
|
+
}, fs = function(e) {
|
|
5840
5939
|
return {
|
|
5841
5940
|
/**
|
|
5842
5941
|
*
|
|
@@ -5845,14 +5944,14 @@ const y = function(e, ...r) {
|
|
|
5845
5944
|
* @throws {RequiredError}
|
|
5846
5945
|
*/
|
|
5847
5946
|
apiV2TitlesOptions: async (r = {}) => {
|
|
5848
|
-
const o = "/api/v2/titles", n = new URL(o,
|
|
5947
|
+
const o = "/api/v2/titles", n = new URL(o, P);
|
|
5849
5948
|
let t;
|
|
5850
5949
|
e && (t = e.baseOptions);
|
|
5851
5950
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5852
|
-
await
|
|
5951
|
+
await m(a, "Authorization", e), b(n, l);
|
|
5853
5952
|
let c = t && t.headers ? t.headers : {};
|
|
5854
5953
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5855
|
-
url:
|
|
5954
|
+
url: y(n),
|
|
5856
5955
|
options: s
|
|
5857
5956
|
};
|
|
5858
5957
|
},
|
|
@@ -5865,14 +5964,14 @@ const y = function(e, ...r) {
|
|
|
5865
5964
|
*/
|
|
5866
5965
|
getTitle: async (r, o = {}) => {
|
|
5867
5966
|
I("getTitle", "titleId", r);
|
|
5868
|
-
const n = "/api/v2/titles/{titleId}".replace("{titleId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
5967
|
+
const n = "/api/v2/titles/{titleId}".replace("{titleId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
5869
5968
|
let s;
|
|
5870
5969
|
e && (s = e.baseOptions);
|
|
5871
5970
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
5872
|
-
await
|
|
5971
|
+
await m(l, "Authorization", e), b(t, c);
|
|
5873
5972
|
let i = s && s.headers ? s.headers : {};
|
|
5874
5973
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
5875
|
-
url:
|
|
5974
|
+
url: y(t),
|
|
5876
5975
|
options: a
|
|
5877
5976
|
};
|
|
5878
5977
|
},
|
|
@@ -5886,20 +5985,20 @@ const y = function(e, ...r) {
|
|
|
5886
5985
|
* @throws {RequiredError}
|
|
5887
5986
|
*/
|
|
5888
5987
|
getTitles: async (r, o, n, t = {}) => {
|
|
5889
|
-
const s = "/api/v2/titles", a = new URL(s,
|
|
5988
|
+
const s = "/api/v2/titles", a = new URL(s, P);
|
|
5890
5989
|
let l;
|
|
5891
5990
|
e && (l = e.baseOptions);
|
|
5892
5991
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
5893
|
-
await
|
|
5992
|
+
await m(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
5894
5993
|
let d = l && l.headers ? l.headers : {};
|
|
5895
5994
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
5896
|
-
url:
|
|
5995
|
+
url: y(a),
|
|
5897
5996
|
options: c
|
|
5898
5997
|
};
|
|
5899
5998
|
}
|
|
5900
5999
|
};
|
|
5901
|
-
},
|
|
5902
|
-
const r =
|
|
6000
|
+
}, Js = function(e) {
|
|
6001
|
+
const r = fs(e);
|
|
5903
6002
|
return {
|
|
5904
6003
|
/**
|
|
5905
6004
|
*
|
|
@@ -5939,8 +6038,8 @@ const y = function(e, ...r) {
|
|
|
5939
6038
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
5940
6039
|
}
|
|
5941
6040
|
};
|
|
5942
|
-
},
|
|
5943
|
-
const n =
|
|
6041
|
+
}, Ks = function(e, r, o) {
|
|
6042
|
+
const n = Js(e);
|
|
5944
6043
|
return {
|
|
5945
6044
|
/**
|
|
5946
6045
|
*
|
|
@@ -5972,7 +6071,7 @@ const y = function(e, ...r) {
|
|
|
5972
6071
|
return n.getTitles(t.pageNumber, t.pageSize, t.orderBy, s).then((a) => a(o, r));
|
|
5973
6072
|
}
|
|
5974
6073
|
};
|
|
5975
|
-
},
|
|
6074
|
+
}, Ws = function(e) {
|
|
5976
6075
|
return {
|
|
5977
6076
|
/**
|
|
5978
6077
|
*
|
|
@@ -5981,14 +6080,14 @@ const y = function(e, ...r) {
|
|
|
5981
6080
|
* @throws {RequiredError}
|
|
5982
6081
|
*/
|
|
5983
6082
|
apiV2TosOptions: async (r = {}) => {
|
|
5984
|
-
const o = "/api/v2/tos", n = new URL(o,
|
|
6083
|
+
const o = "/api/v2/tos", n = new URL(o, P);
|
|
5985
6084
|
let t;
|
|
5986
6085
|
e && (t = e.baseOptions);
|
|
5987
6086
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
5988
|
-
await
|
|
6087
|
+
await m(a, "Authorization", e), b(n, l);
|
|
5989
6088
|
let c = t && t.headers ? t.headers : {};
|
|
5990
6089
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
5991
|
-
url:
|
|
6090
|
+
url: y(n),
|
|
5992
6091
|
options: s
|
|
5993
6092
|
};
|
|
5994
6093
|
},
|
|
@@ -5999,20 +6098,20 @@ const y = function(e, ...r) {
|
|
|
5999
6098
|
* @throws {RequiredError}
|
|
6000
6099
|
*/
|
|
6001
6100
|
getTos: async (r = {}) => {
|
|
6002
|
-
const o = "/api/v2/tos", n = new URL(o,
|
|
6101
|
+
const o = "/api/v2/tos", n = new URL(o, P);
|
|
6003
6102
|
let t;
|
|
6004
6103
|
e && (t = e.baseOptions);
|
|
6005
6104
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
6006
|
-
await
|
|
6105
|
+
await m(a, "Authorization", e), b(n, l);
|
|
6007
6106
|
let c = t && t.headers ? t.headers : {};
|
|
6008
6107
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6009
|
-
url:
|
|
6108
|
+
url: y(n),
|
|
6010
6109
|
options: s
|
|
6011
6110
|
};
|
|
6012
6111
|
}
|
|
6013
6112
|
};
|
|
6014
|
-
},
|
|
6015
|
-
const r =
|
|
6113
|
+
}, Xs = function(e) {
|
|
6114
|
+
const r = Ws(e);
|
|
6016
6115
|
return {
|
|
6017
6116
|
/**
|
|
6018
6117
|
*
|
|
@@ -6037,8 +6136,8 @@ const y = function(e, ...r) {
|
|
|
6037
6136
|
return (c, i) => R(n, O, A, e)(c, s || i);
|
|
6038
6137
|
}
|
|
6039
6138
|
};
|
|
6040
|
-
},
|
|
6041
|
-
const n =
|
|
6139
|
+
}, Ys = function(e, r, o) {
|
|
6140
|
+
const n = Xs(e);
|
|
6042
6141
|
return {
|
|
6043
6142
|
/**
|
|
6044
6143
|
*
|
|
@@ -6059,7 +6158,7 @@ const y = function(e, ...r) {
|
|
|
6059
6158
|
return n.getTos(t).then((s) => s(o, r));
|
|
6060
6159
|
}
|
|
6061
6160
|
};
|
|
6062
|
-
},
|
|
6161
|
+
}, Zs = function(e) {
|
|
6063
6162
|
return {
|
|
6064
6163
|
/**
|
|
6065
6164
|
*
|
|
@@ -6071,14 +6170,14 @@ const y = function(e, ...r) {
|
|
|
6071
6170
|
*/
|
|
6072
6171
|
apiV2ProjectsProjectIdResourcesResourceIdTreesOptions: async (r, o, n = {}) => {
|
|
6073
6172
|
I("apiV2ProjectsProjectIdResourcesResourceIdTreesOptions", "projectId", r), I("apiV2ProjectsProjectIdResourcesResourceIdTreesOptions", "resourceId", o);
|
|
6074
|
-
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/trees".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t,
|
|
6173
|
+
const t = "/api/v2/projects/{projectId}/resources/{resourceId}/trees".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), s = new URL(t, P);
|
|
6075
6174
|
let a;
|
|
6076
6175
|
e && (a = e.baseOptions);
|
|
6077
6176
|
const l = { method: "OPTIONS", ...a, ...n }, c = {}, i = {};
|
|
6078
|
-
await
|
|
6177
|
+
await m(c, "Authorization", e), b(s, i);
|
|
6079
6178
|
let p = a && a.headers ? a.headers : {};
|
|
6080
6179
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
6081
|
-
url:
|
|
6180
|
+
url: y(s),
|
|
6082
6181
|
options: l
|
|
6083
6182
|
};
|
|
6084
6183
|
},
|
|
@@ -6093,14 +6192,14 @@ const y = function(e, ...r) {
|
|
|
6093
6192
|
*/
|
|
6094
6193
|
createMetadataTree: async (r, o, n, t = {}) => {
|
|
6095
6194
|
I("createMetadataTree", "projectId", r), I("createMetadataTree", "resourceId", o);
|
|
6096
|
-
const s = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), a = new URL(s,
|
|
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, P);
|
|
6097
6196
|
let l;
|
|
6098
6197
|
e && (l = e.baseOptions);
|
|
6099
6198
|
const c = { method: "POST", ...l, ...t }, i = {}, p = {};
|
|
6100
|
-
await
|
|
6199
|
+
await m(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
6101
6200
|
let d = l && l.headers ? l.headers : {};
|
|
6102
|
-
return c.headers = { ...i, ...d, ...t.headers }, c.data =
|
|
6103
|
-
url:
|
|
6201
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
6202
|
+
url: y(a),
|
|
6104
6203
|
options: c
|
|
6105
6204
|
};
|
|
6106
6205
|
},
|
|
@@ -6118,14 +6217,14 @@ const y = function(e, ...r) {
|
|
|
6118
6217
|
*/
|
|
6119
6218
|
getFileTree: async (r, o, n, t, s, a, l = {}) => {
|
|
6120
6219
|
I("getFileTree", "projectId", r), I("getFileTree", "resourceId", o);
|
|
6121
|
-
const c = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/files".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), i = new URL(c,
|
|
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, P);
|
|
6122
6221
|
let p;
|
|
6123
6222
|
e && (p = e.baseOptions);
|
|
6124
6223
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
6125
|
-
await
|
|
6224
|
+
await m(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);
|
|
6126
6225
|
let w = p && p.headers ? p.headers : {};
|
|
6127
6226
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
6128
|
-
url:
|
|
6227
|
+
url: y(i),
|
|
6129
6228
|
options: d
|
|
6130
6229
|
};
|
|
6131
6230
|
},
|
|
@@ -6145,14 +6244,14 @@ const y = function(e, ...r) {
|
|
|
6145
6244
|
*/
|
|
6146
6245
|
getMetadataTree: async (r, o, n, t, s, a, l, c, i = {}) => {
|
|
6147
6246
|
I("getMetadataTree", "projectId", r), I("getMetadataTree", "resourceId", o);
|
|
6148
|
-
const p = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), d = new URL(p,
|
|
6247
|
+
const p = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), d = new URL(p, P);
|
|
6149
6248
|
let h;
|
|
6150
6249
|
e && (h = e.baseOptions);
|
|
6151
6250
|
const u = { method: "GET", ...h, ...i }, w = {}, T = {};
|
|
6152
|
-
await
|
|
6251
|
+
await m(w, "Authorization", e), n !== void 0 && (T.Path = n), t !== void 0 && (T.Format = t), s !== void 0 && (T.IncludeExtractedMetadata = s), a !== void 0 && (T.PageNumber = a), l !== void 0 && (T.PageSize = l), c !== void 0 && (T.OrderBy = c), b(d, T);
|
|
6153
6252
|
let U = h && h.headers ? h.headers : {};
|
|
6154
6253
|
return u.headers = { ...w, ...U, ...i.headers }, {
|
|
6155
|
-
url:
|
|
6254
|
+
url: y(d),
|
|
6156
6255
|
options: u
|
|
6157
6256
|
};
|
|
6158
6257
|
},
|
|
@@ -6170,14 +6269,14 @@ const y = function(e, ...r) {
|
|
|
6170
6269
|
*/
|
|
6171
6270
|
getSpecificMetadataTree: async (r, o, n, t, s, a, l = {}) => {
|
|
6172
6271
|
I("getSpecificMetadataTree", "projectId", r), I("getSpecificMetadataTree", "resourceId", o);
|
|
6173
|
-
const c = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/specific".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), i = new URL(c,
|
|
6272
|
+
const c = "/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/specific".replace("{projectId}", encodeURIComponent(String(r))).replace("{resourceId}", encodeURIComponent(String(o))), i = new URL(c, P);
|
|
6174
6273
|
let p;
|
|
6175
6274
|
e && (p = e.baseOptions);
|
|
6176
6275
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
6177
|
-
await
|
|
6276
|
+
await m(h, "Authorization", e), n !== void 0 && (u.Path = n), t !== void 0 && (u.Format = t), s !== void 0 && (u.IncludeExtractedMetadata = s), a !== void 0 && (u.Version = a), b(i, u);
|
|
6178
6277
|
let w = p && p.headers ? p.headers : {};
|
|
6179
6278
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
6180
|
-
url:
|
|
6279
|
+
url: y(i),
|
|
6181
6280
|
options: d
|
|
6182
6281
|
};
|
|
6183
6282
|
},
|
|
@@ -6192,20 +6291,20 @@ const y = function(e, ...r) {
|
|
|
6192
6291
|
*/
|
|
6193
6292
|
updateMetadataTree: async (r, o, n, t = {}) => {
|
|
6194
6293
|
I("updateMetadataTree", "projectId", r), I("updateMetadataTree", "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,
|
|
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, P);
|
|
6196
6295
|
let l;
|
|
6197
6296
|
e && (l = e.baseOptions);
|
|
6198
6297
|
const c = { method: "PUT", ...l, ...t }, i = {}, p = {};
|
|
6199
|
-
await
|
|
6298
|
+
await m(i, "Authorization", e), i["Content-Type"] = "application/json", b(a, p);
|
|
6200
6299
|
let d = l && l.headers ? l.headers : {};
|
|
6201
|
-
return c.headers = { ...i, ...d, ...t.headers }, c.data =
|
|
6202
|
-
url:
|
|
6300
|
+
return c.headers = { ...i, ...d, ...t.headers }, c.data = L(n, c, e), {
|
|
6301
|
+
url: y(a),
|
|
6203
6302
|
options: c
|
|
6204
6303
|
};
|
|
6205
6304
|
}
|
|
6206
6305
|
};
|
|
6207
|
-
},
|
|
6208
|
-
const r =
|
|
6306
|
+
}, gs = function(e) {
|
|
6307
|
+
const r = Zs(e);
|
|
6209
6308
|
return {
|
|
6210
6309
|
/**
|
|
6211
6310
|
*
|
|
@@ -6302,8 +6401,8 @@ const y = function(e, ...r) {
|
|
|
6302
6401
|
return (d, h) => R(a, O, A, e)(d, c || h);
|
|
6303
6402
|
}
|
|
6304
6403
|
};
|
|
6305
|
-
},
|
|
6306
|
-
const n =
|
|
6404
|
+
}, ea = function(e, r, o) {
|
|
6405
|
+
const n = gs(e);
|
|
6307
6406
|
return {
|
|
6308
6407
|
/**
|
|
6309
6408
|
*
|
|
@@ -6366,7 +6465,7 @@ const y = function(e, ...r) {
|
|
|
6366
6465
|
return n.updateMetadataTree(t.projectId, t.resourceId, t.metadataTreeForUpdateDto, s).then((a) => a(o, r));
|
|
6367
6466
|
}
|
|
6368
6467
|
};
|
|
6369
|
-
},
|
|
6468
|
+
}, ta = function(e) {
|
|
6370
6469
|
return {
|
|
6371
6470
|
/**
|
|
6372
6471
|
*
|
|
@@ -6375,14 +6474,14 @@ const y = function(e, ...r) {
|
|
|
6375
6474
|
* @throws {RequiredError}
|
|
6376
6475
|
*/
|
|
6377
6476
|
apiV2UsersOptions: async (r = {}) => {
|
|
6378
|
-
const o = "/api/v2/users", n = new URL(o,
|
|
6477
|
+
const o = "/api/v2/users", n = new URL(o, P);
|
|
6379
6478
|
let t;
|
|
6380
6479
|
e && (t = e.baseOptions);
|
|
6381
6480
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
6382
|
-
await
|
|
6481
|
+
await m(a, "Authorization", e), b(n, l);
|
|
6383
6482
|
let c = t && t.headers ? t.headers : {};
|
|
6384
6483
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6385
|
-
url:
|
|
6484
|
+
url: y(n),
|
|
6386
6485
|
options: s
|
|
6387
6486
|
};
|
|
6388
6487
|
},
|
|
@@ -6396,20 +6495,20 @@ const y = function(e, ...r) {
|
|
|
6396
6495
|
*/
|
|
6397
6496
|
getUsers: async (r, o, n = {}) => {
|
|
6398
6497
|
I("getUsers", "searchTerm", r);
|
|
6399
|
-
const t = "/api/v2/users", s = new URL(t,
|
|
6498
|
+
const t = "/api/v2/users", s = new URL(t, P);
|
|
6400
6499
|
let a;
|
|
6401
6500
|
e && (a = e.baseOptions);
|
|
6402
6501
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
6403
|
-
await
|
|
6502
|
+
await m(c, "Authorization", e), o !== void 0 && (i.OrderBy = o), r !== void 0 && (i.SearchTerm = r), b(s, i);
|
|
6404
6503
|
let p = a && a.headers ? a.headers : {};
|
|
6405
6504
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
6406
|
-
url:
|
|
6505
|
+
url: y(s),
|
|
6407
6506
|
options: l
|
|
6408
6507
|
};
|
|
6409
6508
|
}
|
|
6410
6509
|
};
|
|
6411
|
-
},
|
|
6412
|
-
const r =
|
|
6510
|
+
}, ra = function(e) {
|
|
6511
|
+
const r = ta(e);
|
|
6413
6512
|
return {
|
|
6414
6513
|
/**
|
|
6415
6514
|
*
|
|
@@ -6436,8 +6535,8 @@ const y = function(e, ...r) {
|
|
|
6436
6535
|
return (p, d) => R(s, O, A, e)(p, l || d);
|
|
6437
6536
|
}
|
|
6438
6537
|
};
|
|
6439
|
-
},
|
|
6440
|
-
const n =
|
|
6538
|
+
}, sa = function(e, r, o) {
|
|
6539
|
+
const n = ra(e);
|
|
6441
6540
|
return {
|
|
6442
6541
|
/**
|
|
6443
6542
|
*
|
|
@@ -6459,7 +6558,7 @@ const y = function(e, ...r) {
|
|
|
6459
6558
|
return n.getUsers(t.searchTerm, t.orderBy, s).then((a) => a(o, r));
|
|
6460
6559
|
}
|
|
6461
6560
|
};
|
|
6462
|
-
},
|
|
6561
|
+
}, aa = function(e) {
|
|
6463
6562
|
return {
|
|
6464
6563
|
/**
|
|
6465
6564
|
*
|
|
@@ -6468,14 +6567,14 @@ const y = function(e, ...r) {
|
|
|
6468
6567
|
* @throws {RequiredError}
|
|
6469
6568
|
*/
|
|
6470
6569
|
apiV2VisibilitiesOptions: async (r = {}) => {
|
|
6471
|
-
const o = "/api/v2/visibilities", n = new URL(o,
|
|
6570
|
+
const o = "/api/v2/visibilities", n = new URL(o, P);
|
|
6472
6571
|
let t;
|
|
6473
6572
|
e && (t = e.baseOptions);
|
|
6474
6573
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
6475
|
-
await
|
|
6574
|
+
await m(a, "Authorization", e), b(n, l);
|
|
6476
6575
|
let c = t && t.headers ? t.headers : {};
|
|
6477
6576
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6478
|
-
url:
|
|
6577
|
+
url: y(n),
|
|
6479
6578
|
options: s
|
|
6480
6579
|
};
|
|
6481
6580
|
},
|
|
@@ -6489,14 +6588,14 @@ const y = function(e, ...r) {
|
|
|
6489
6588
|
* @throws {RequiredError}
|
|
6490
6589
|
*/
|
|
6491
6590
|
getVisibilities: async (r, o, n, t = {}) => {
|
|
6492
|
-
const s = "/api/v2/visibilities", a = new URL(s,
|
|
6591
|
+
const s = "/api/v2/visibilities", a = new URL(s, P);
|
|
6493
6592
|
let l;
|
|
6494
6593
|
e && (l = e.baseOptions);
|
|
6495
6594
|
const c = { method: "GET", ...l, ...t }, i = {}, p = {};
|
|
6496
|
-
await
|
|
6595
|
+
await m(i, "Authorization", e), r !== void 0 && (p.PageNumber = r), o !== void 0 && (p.PageSize = o), n !== void 0 && (p.OrderBy = n), b(a, p);
|
|
6497
6596
|
let d = l && l.headers ? l.headers : {};
|
|
6498
6597
|
return c.headers = { ...i, ...d, ...t.headers }, {
|
|
6499
|
-
url:
|
|
6598
|
+
url: y(a),
|
|
6500
6599
|
options: c
|
|
6501
6600
|
};
|
|
6502
6601
|
},
|
|
@@ -6509,20 +6608,20 @@ const y = function(e, ...r) {
|
|
|
6509
6608
|
*/
|
|
6510
6609
|
getVisibility: async (r, o = {}) => {
|
|
6511
6610
|
I("getVisibility", "visibilityId", r);
|
|
6512
|
-
const n = "/api/v2/visibilities/{visibilityId}".replace("{visibilityId}", encodeURIComponent(String(r))), t = new URL(n,
|
|
6611
|
+
const n = "/api/v2/visibilities/{visibilityId}".replace("{visibilityId}", encodeURIComponent(String(r))), t = new URL(n, P);
|
|
6513
6612
|
let s;
|
|
6514
6613
|
e && (s = e.baseOptions);
|
|
6515
6614
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
6516
|
-
await
|
|
6615
|
+
await m(l, "Authorization", e), b(t, c);
|
|
6517
6616
|
let i = s && s.headers ? s.headers : {};
|
|
6518
6617
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
6519
|
-
url:
|
|
6618
|
+
url: y(t),
|
|
6520
6619
|
options: a
|
|
6521
6620
|
};
|
|
6522
6621
|
}
|
|
6523
6622
|
};
|
|
6524
|
-
},
|
|
6525
|
-
const r =
|
|
6623
|
+
}, oa = function(e) {
|
|
6624
|
+
const r = aa(e);
|
|
6526
6625
|
return {
|
|
6527
6626
|
/**
|
|
6528
6627
|
*
|
|
@@ -6562,8 +6661,8 @@ const y = function(e, ...r) {
|
|
|
6562
6661
|
return (i, p) => R(t, O, A, e)(i, a || p);
|
|
6563
6662
|
}
|
|
6564
6663
|
};
|
|
6565
|
-
},
|
|
6566
|
-
const n =
|
|
6664
|
+
}, na = function(e, r, o) {
|
|
6665
|
+
const n = oa(e);
|
|
6567
6666
|
return {
|
|
6568
6667
|
/**
|
|
6569
6668
|
*
|
|
@@ -6595,7 +6694,7 @@ const y = function(e, ...r) {
|
|
|
6595
6694
|
return n.getVisibility(t.visibilityId, s).then((a) => a(o, r));
|
|
6596
6695
|
}
|
|
6597
6696
|
};
|
|
6598
|
-
},
|
|
6697
|
+
}, la = function(e) {
|
|
6599
6698
|
return {
|
|
6600
6699
|
/**
|
|
6601
6700
|
*
|
|
@@ -6604,14 +6703,14 @@ const y = function(e, ...r) {
|
|
|
6604
6703
|
* @throws {RequiredError}
|
|
6605
6704
|
*/
|
|
6606
6705
|
apiV2VocabulariesOptions: async (r = {}) => {
|
|
6607
|
-
const o = "/api/v2/vocabularies", n = new URL(o,
|
|
6706
|
+
const o = "/api/v2/vocabularies", n = new URL(o, P);
|
|
6608
6707
|
let t;
|
|
6609
6708
|
e && (t = e.baseOptions);
|
|
6610
6709
|
const s = { method: "OPTIONS", ...t, ...r }, a = {}, l = {};
|
|
6611
|
-
await
|
|
6710
|
+
await m(a, "Authorization", e), b(n, l);
|
|
6612
6711
|
let c = t && t.headers ? t.headers : {};
|
|
6613
6712
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6614
|
-
url:
|
|
6713
|
+
url: y(n),
|
|
6615
6714
|
options: s
|
|
6616
6715
|
};
|
|
6617
6716
|
},
|
|
@@ -6627,14 +6726,14 @@ const y = function(e, ...r) {
|
|
|
6627
6726
|
* @throws {RequiredError}
|
|
6628
6727
|
*/
|
|
6629
6728
|
getVocabularies: async (r, o, n, t, s, a = {}) => {
|
|
6630
|
-
const l = "/api/v2/vocabularies", c = new URL(l,
|
|
6729
|
+
const l = "/api/v2/vocabularies", c = new URL(l, P);
|
|
6631
6730
|
let i;
|
|
6632
6731
|
e && (i = e.baseOptions);
|
|
6633
6732
|
const p = { method: "GET", ...i, ...a }, d = {}, h = {};
|
|
6634
|
-
await
|
|
6733
|
+
await m(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);
|
|
6635
6734
|
let u = i && i.headers ? i.headers : {};
|
|
6636
6735
|
return p.headers = { ...d, ...u, ...a.headers }, {
|
|
6637
|
-
url:
|
|
6736
|
+
url: y(c),
|
|
6638
6737
|
options: p
|
|
6639
6738
|
};
|
|
6640
6739
|
},
|
|
@@ -6648,14 +6747,14 @@ const y = function(e, ...r) {
|
|
|
6648
6747
|
*/
|
|
6649
6748
|
getVocabularyInstance: async (r, o, n = {}) => {
|
|
6650
6749
|
I("getVocabularyInstance", "instance", r);
|
|
6651
|
-
const t = "/api/v2/vocabularies/instances/{instance}".replace("{instance}", encodeURIComponent(String(r))), s = new URL(t,
|
|
6750
|
+
const t = "/api/v2/vocabularies/instances/{instance}".replace("{instance}", encodeURIComponent(String(r))), s = new URL(t, P);
|
|
6652
6751
|
let a;
|
|
6653
6752
|
e && (a = e.baseOptions);
|
|
6654
6753
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
6655
|
-
await
|
|
6754
|
+
await m(c, "Authorization", e), o != null && (c["Accept-Language"] = typeof o == "string" ? o : JSON.stringify(o)), b(s, i);
|
|
6656
6755
|
let p = a && a.headers ? a.headers : {};
|
|
6657
6756
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
6658
|
-
url:
|
|
6757
|
+
url: y(s),
|
|
6659
6758
|
options: l
|
|
6660
6759
|
};
|
|
6661
6760
|
},
|
|
@@ -6673,20 +6772,20 @@ const y = function(e, ...r) {
|
|
|
6673
6772
|
*/
|
|
6674
6773
|
getVocabularyInstances: async (r, o, n, t, s, a, l = {}) => {
|
|
6675
6774
|
I("getVocabularyInstances", "_class", r);
|
|
6676
|
-
const c = "/api/v2/vocabularies/instances", i = new URL(c,
|
|
6775
|
+
const c = "/api/v2/vocabularies/instances", i = new URL(c, P);
|
|
6677
6776
|
let p;
|
|
6678
6777
|
e && (p = e.baseOptions);
|
|
6679
6778
|
const d = { method: "GET", ...p, ...l }, h = {}, u = {};
|
|
6680
|
-
await
|
|
6779
|
+
await m(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);
|
|
6681
6780
|
let w = p && p.headers ? p.headers : {};
|
|
6682
6781
|
return d.headers = { ...h, ...w, ...l.headers }, {
|
|
6683
|
-
url:
|
|
6782
|
+
url: y(i),
|
|
6684
6783
|
options: d
|
|
6685
6784
|
};
|
|
6686
6785
|
}
|
|
6687
6786
|
};
|
|
6688
|
-
},
|
|
6689
|
-
const r =
|
|
6787
|
+
}, ca = function(e) {
|
|
6788
|
+
const r = la(e);
|
|
6690
6789
|
return {
|
|
6691
6790
|
/**
|
|
6692
6791
|
*
|
|
@@ -6746,8 +6845,8 @@ const y = function(e, ...r) {
|
|
|
6746
6845
|
return (w, T) => R(i, O, A, e)(w, d || T);
|
|
6747
6846
|
}
|
|
6748
6847
|
};
|
|
6749
|
-
},
|
|
6750
|
-
const n =
|
|
6848
|
+
}, ia = function(e, r, o) {
|
|
6849
|
+
const n = ca(e);
|
|
6751
6850
|
return {
|
|
6752
6851
|
/**
|
|
6753
6852
|
*
|
|
@@ -6865,7 +6964,7 @@ class x {
|
|
|
6865
6964
|
return r !== null && (o.test(r) || r.toLowerCase() === "application/json-patch+json");
|
|
6866
6965
|
}
|
|
6867
6966
|
}
|
|
6868
|
-
const N = "https://d-
|
|
6967
|
+
const N = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.STS".replace(/\/+$/, ""), $ = {}, G = "https://example.com", _ = async function(e, r, o) {
|
|
6869
6968
|
if (o && o.apiKey) {
|
|
6870
6969
|
const n = typeof o.apiKey == "function" ? await o.apiKey(r) : await o.apiKey;
|
|
6871
6970
|
e[r] = n;
|
|
@@ -6876,17 +6975,17 @@ function Re(e, r, o = "") {
|
|
|
6876
6975
|
(n) => Re(e, r[n], `${o}${o !== "" ? "." : ""}${n}`)
|
|
6877
6976
|
) : e.has(o) ? e.append(o, r) : e.set(o, r));
|
|
6878
6977
|
}
|
|
6879
|
-
const
|
|
6978
|
+
const q = function(e, ...r) {
|
|
6880
6979
|
const o = new URLSearchParams(e.search);
|
|
6881
6980
|
Re(o, r), e.search = o.toString();
|
|
6882
|
-
},
|
|
6981
|
+
}, f = function(e) {
|
|
6883
6982
|
return e.pathname + e.search + e.hash;
|
|
6884
6983
|
}, J = function(e, r, o, n) {
|
|
6885
6984
|
return (t = r, s = o) => {
|
|
6886
6985
|
const a = { ...e.options, url: ((n == null ? void 0 : n.basePath) || t.defaults.baseURL || s) + e.url };
|
|
6887
6986
|
return t.request(a);
|
|
6888
6987
|
};
|
|
6889
|
-
},
|
|
6988
|
+
}, pa = function(e) {
|
|
6890
6989
|
return {
|
|
6891
6990
|
/**
|
|
6892
6991
|
*
|
|
@@ -6899,10 +6998,10 @@ const f = function(e, ...r) {
|
|
|
6899
6998
|
let t;
|
|
6900
6999
|
e && (t = e.baseOptions);
|
|
6901
7000
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
6902
|
-
await _(a, "Authorization", e),
|
|
7001
|
+
await _(a, "Authorization", e), q(n, l);
|
|
6903
7002
|
let c = t && t.headers ? t.headers : {};
|
|
6904
7003
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6905
|
-
url:
|
|
7004
|
+
url: f(n),
|
|
6906
7005
|
options: s
|
|
6907
7006
|
};
|
|
6908
7007
|
},
|
|
@@ -6917,16 +7016,16 @@ const f = function(e, ...r) {
|
|
|
6917
7016
|
let t;
|
|
6918
7017
|
e && (t = e.baseOptions);
|
|
6919
7018
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
6920
|
-
await _(a, "Authorization", e),
|
|
7019
|
+
await _(a, "Authorization", e), q(n, l);
|
|
6921
7020
|
let c = t && t.headers ? t.headers : {};
|
|
6922
7021
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6923
|
-
url:
|
|
7022
|
+
url: f(n),
|
|
6924
7023
|
options: s
|
|
6925
7024
|
};
|
|
6926
7025
|
}
|
|
6927
7026
|
};
|
|
6928
|
-
},
|
|
6929
|
-
const r =
|
|
7027
|
+
}, da = function(e) {
|
|
7028
|
+
const r = pa(e);
|
|
6930
7029
|
return {
|
|
6931
7030
|
/**
|
|
6932
7031
|
*
|
|
@@ -6951,8 +7050,8 @@ const f = function(e, ...r) {
|
|
|
6951
7050
|
return (c, i) => J(n, O, N, e)(c, s || i);
|
|
6952
7051
|
}
|
|
6953
7052
|
};
|
|
6954
|
-
},
|
|
6955
|
-
const n =
|
|
7053
|
+
}, ha = function(e, r, o) {
|
|
7054
|
+
const n = da(e);
|
|
6956
7055
|
return {
|
|
6957
7056
|
/**
|
|
6958
7057
|
*
|
|
@@ -6973,7 +7072,7 @@ const f = function(e, ...r) {
|
|
|
6973
7072
|
return n.accountLogout(t).then((s) => s(o, r));
|
|
6974
7073
|
}
|
|
6975
7074
|
};
|
|
6976
|
-
},
|
|
7075
|
+
}, ua = function(e) {
|
|
6977
7076
|
return {
|
|
6978
7077
|
/**
|
|
6979
7078
|
*
|
|
@@ -6986,16 +7085,16 @@ const f = function(e, ...r) {
|
|
|
6986
7085
|
let t;
|
|
6987
7086
|
e && (t = e.baseOptions);
|
|
6988
7087
|
const s = { method: "GET", ...t, ...r }, a = {}, l = {};
|
|
6989
|
-
await _(a, "Authorization", e),
|
|
7088
|
+
await _(a, "Authorization", e), q(n, l);
|
|
6990
7089
|
let c = t && t.headers ? t.headers : {};
|
|
6991
7090
|
return s.headers = { ...a, ...c, ...r.headers }, {
|
|
6992
|
-
url:
|
|
7091
|
+
url: f(n),
|
|
6993
7092
|
options: s
|
|
6994
7093
|
};
|
|
6995
7094
|
}
|
|
6996
7095
|
};
|
|
6997
|
-
},
|
|
6998
|
-
const r =
|
|
7096
|
+
}, Oa = function(e) {
|
|
7097
|
+
const r = ua(e);
|
|
6999
7098
|
return {
|
|
7000
7099
|
/**
|
|
7001
7100
|
*
|
|
@@ -7009,8 +7108,8 @@ const f = function(e, ...r) {
|
|
|
7009
7108
|
return (c, i) => J(n, O, N, e)(c, s || i);
|
|
7010
7109
|
}
|
|
7011
7110
|
};
|
|
7012
|
-
},
|
|
7013
|
-
const n =
|
|
7111
|
+
}, Aa = function(e, r, o) {
|
|
7112
|
+
const n = Oa(e);
|
|
7014
7113
|
return {
|
|
7015
7114
|
/**
|
|
7016
7115
|
*
|
|
@@ -7022,7 +7121,7 @@ const f = function(e, ...r) {
|
|
|
7022
7121
|
return n.homeIndex(t).then((s) => s(o, r));
|
|
7023
7122
|
}
|
|
7024
7123
|
};
|
|
7025
|
-
},
|
|
7124
|
+
}, Va = function(e) {
|
|
7026
7125
|
return {
|
|
7027
7126
|
/**
|
|
7028
7127
|
*
|
|
@@ -7035,10 +7134,10 @@ const f = function(e, ...r) {
|
|
|
7035
7134
|
let s;
|
|
7036
7135
|
e && (s = e.baseOptions);
|
|
7037
7136
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
7038
|
-
await _(l, "Authorization", e), r !== void 0 && (c.returnUrl = r),
|
|
7137
|
+
await _(l, "Authorization", e), r !== void 0 && (c.returnUrl = r), q(t, c);
|
|
7039
7138
|
let i = s && s.headers ? s.headers : {};
|
|
7040
7139
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
7041
|
-
url:
|
|
7140
|
+
url: f(t),
|
|
7042
7141
|
options: a
|
|
7043
7142
|
};
|
|
7044
7143
|
},
|
|
@@ -7053,16 +7152,16 @@ const f = function(e, ...r) {
|
|
|
7053
7152
|
let s;
|
|
7054
7153
|
e && (s = e.baseOptions);
|
|
7055
7154
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
7056
|
-
await _(l, "Authorization", e), r !== void 0 && (c.returnUrl = r),
|
|
7155
|
+
await _(l, "Authorization", e), r !== void 0 && (c.returnUrl = r), q(t, c);
|
|
7057
7156
|
let i = s && s.headers ? s.headers : {};
|
|
7058
7157
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
7059
|
-
url:
|
|
7158
|
+
url: f(t),
|
|
7060
7159
|
options: a
|
|
7061
7160
|
};
|
|
7062
7161
|
}
|
|
7063
7162
|
};
|
|
7064
|
-
},
|
|
7065
|
-
const r =
|
|
7163
|
+
}, Pa = function(e) {
|
|
7164
|
+
const r = Va(e);
|
|
7066
7165
|
return {
|
|
7067
7166
|
/**
|
|
7068
7167
|
*
|
|
@@ -7087,8 +7186,8 @@ const f = function(e, ...r) {
|
|
|
7087
7186
|
return (i, p) => J(t, O, N, e)(i, a || p);
|
|
7088
7187
|
}
|
|
7089
7188
|
};
|
|
7090
|
-
},
|
|
7091
|
-
const n =
|
|
7189
|
+
}, ma = function(e, r, o) {
|
|
7190
|
+
const n = Pa(e);
|
|
7092
7191
|
return {
|
|
7093
7192
|
/**
|
|
7094
7193
|
*
|
|
@@ -7109,7 +7208,7 @@ const f = function(e, ...r) {
|
|
|
7109
7208
|
return n.mergeLogin(t.returnUrl, s).then((a) => a(o, r));
|
|
7110
7209
|
}
|
|
7111
7210
|
};
|
|
7112
|
-
},
|
|
7211
|
+
}, ba = function(e) {
|
|
7113
7212
|
return {
|
|
7114
7213
|
/**
|
|
7115
7214
|
*
|
|
@@ -7123,10 +7222,10 @@ const f = function(e, ...r) {
|
|
|
7123
7222
|
let s;
|
|
7124
7223
|
e && (s = e.baseOptions);
|
|
7125
7224
|
const a = { method: "GET", ...s, ...o }, l = {}, c = {};
|
|
7126
|
-
await _(l, "Authorization", e), r !== void 0 && (c.returnUrl = r),
|
|
7225
|
+
await _(l, "Authorization", e), r !== void 0 && (c.returnUrl = r), q(t, c);
|
|
7127
7226
|
let i = s && s.headers ? s.headers : {};
|
|
7128
7227
|
return a.headers = { ...l, ...i, ...o.headers }, {
|
|
7129
|
-
url:
|
|
7228
|
+
url: f(t),
|
|
7130
7229
|
options: a
|
|
7131
7230
|
};
|
|
7132
7231
|
},
|
|
@@ -7143,16 +7242,16 @@ const f = function(e, ...r) {
|
|
|
7143
7242
|
let a;
|
|
7144
7243
|
e && (a = e.baseOptions);
|
|
7145
7244
|
const l = { method: "POST", ...a, ...n }, c = {}, i = {};
|
|
7146
|
-
await _(c, "Authorization", e), r !== void 0 && (i.ORCiD_JWT = r), o !== void 0 && (i.returnUrl = o),
|
|
7245
|
+
await _(c, "Authorization", e), r !== void 0 && (i.ORCiD_JWT = r), o !== void 0 && (i.returnUrl = o), q(s, i);
|
|
7147
7246
|
let p = a && a.headers ? a.headers : {};
|
|
7148
7247
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
7149
|
-
url:
|
|
7248
|
+
url: f(s),
|
|
7150
7249
|
options: l
|
|
7151
7250
|
};
|
|
7152
7251
|
}
|
|
7153
7252
|
};
|
|
7154
|
-
},
|
|
7155
|
-
const r =
|
|
7253
|
+
}, ya = function(e) {
|
|
7254
|
+
const r = ba(e);
|
|
7156
7255
|
return {
|
|
7157
7256
|
/**
|
|
7158
7257
|
*
|
|
@@ -7180,8 +7279,8 @@ const f = function(e, ...r) {
|
|
|
7180
7279
|
return (p, d) => J(s, O, N, e)(p, l || d);
|
|
7181
7280
|
}
|
|
7182
7281
|
};
|
|
7183
|
-
},
|
|
7184
|
-
const n =
|
|
7282
|
+
}, Ra = function(e, r, o) {
|
|
7283
|
+
const n = ya(e);
|
|
7185
7284
|
return {
|
|
7186
7285
|
/**
|
|
7187
7286
|
*
|
|
@@ -7204,7 +7303,7 @@ const f = function(e, ...r) {
|
|
|
7204
7303
|
return n.oRCiDLoginPOST(t.oRCiDJWT, t.returnUrl, s).then((a) => a(o, r));
|
|
7205
7304
|
}
|
|
7206
7305
|
};
|
|
7207
|
-
},
|
|
7306
|
+
}, ja = function(e) {
|
|
7208
7307
|
return {
|
|
7209
7308
|
/**
|
|
7210
7309
|
*
|
|
@@ -7219,10 +7318,10 @@ const f = function(e, ...r) {
|
|
|
7219
7318
|
let a;
|
|
7220
7319
|
e && (a = e.baseOptions);
|
|
7221
7320
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
7222
|
-
await _(c, "Authorization", e), r !== void 0 && (i.returnUrl = r), o !== void 0 && (i.remoteError = o),
|
|
7321
|
+
await _(c, "Authorization", e), r !== void 0 && (i.returnUrl = r), o !== void 0 && (i.remoteError = o), q(s, i);
|
|
7223
7322
|
let p = a && a.headers ? a.headers : {};
|
|
7224
7323
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
7225
|
-
url:
|
|
7324
|
+
url: f(s),
|
|
7226
7325
|
options: l
|
|
7227
7326
|
};
|
|
7228
7327
|
},
|
|
@@ -7239,16 +7338,16 @@ const f = function(e, ...r) {
|
|
|
7239
7338
|
let a;
|
|
7240
7339
|
e && (a = e.baseOptions);
|
|
7241
7340
|
const l = { method: "GET", ...a, ...n }, c = {}, i = {};
|
|
7242
|
-
await _(c, "Authorization", e), r !== void 0 && (i.returnUrl = r), o !== void 0 && (i.entityId = o),
|
|
7341
|
+
await _(c, "Authorization", e), r !== void 0 && (i.returnUrl = r), o !== void 0 && (i.entityId = o), q(s, i);
|
|
7243
7342
|
let p = a && a.headers ? a.headers : {};
|
|
7244
7343
|
return l.headers = { ...c, ...p, ...n.headers }, {
|
|
7245
|
-
url:
|
|
7344
|
+
url: f(s),
|
|
7246
7345
|
options: l
|
|
7247
7346
|
};
|
|
7248
7347
|
}
|
|
7249
7348
|
};
|
|
7250
|
-
},
|
|
7251
|
-
const r =
|
|
7349
|
+
}, Ia = function(e) {
|
|
7350
|
+
const r = ja(e);
|
|
7252
7351
|
return {
|
|
7253
7352
|
/**
|
|
7254
7353
|
*
|
|
@@ -7277,8 +7376,8 @@ const f = function(e, ...r) {
|
|
|
7277
7376
|
return (p, d) => J(s, O, N, e)(p, l || d);
|
|
7278
7377
|
}
|
|
7279
7378
|
};
|
|
7280
|
-
},
|
|
7281
|
-
const n =
|
|
7379
|
+
}, wa = function(e, r, o) {
|
|
7380
|
+
const n = Ia(e);
|
|
7282
7381
|
return {
|
|
7283
7382
|
/**
|
|
7284
7383
|
*
|
|
@@ -7314,89 +7413,91 @@ const S = () => {
|
|
|
7314
7413
|
let r = typeof window < "u" ? window.location.hostname : "coscine.rwth-aachen.de";
|
|
7315
7414
|
return r.indexOf(":") !== -1 && (r.indexOf("https://") !== -1 && (r = r.replace("https://", "")), r = r.substr(0, r.indexOf(":"))), r;
|
|
7316
7415
|
};
|
|
7317
|
-
function
|
|
7416
|
+
function Ta(e) {
|
|
7318
7417
|
return {
|
|
7319
|
-
AccountApi:
|
|
7418
|
+
AccountApi: ha(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7320
7419
|
AdminApi: Br(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7321
7420
|
ApplicationProfileApi: Lr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7322
7421
|
BlobApi: Hr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7323
7422
|
DisciplineApi: kr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7324
7423
|
HandleApi: $r(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7325
|
-
HomeApi:
|
|
7326
|
-
LanguageApi:
|
|
7424
|
+
HomeApi: Aa(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7425
|
+
LanguageApi: qr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7327
7426
|
LicenseApi: Kr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7328
7427
|
MaintenanceApi: Yr(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7329
|
-
MergeApi:
|
|
7330
|
-
ORCiDApi:
|
|
7428
|
+
MergeApi: ma(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7429
|
+
ORCiDApi: Ra(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7331
7430
|
OrganizationApi: es(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7332
7431
|
PidApi: ss(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7333
7432
|
ProjectApi: ns(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7334
7433
|
ProjectInvitationApi: is(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7335
7434
|
ProjectMemberApi: hs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7435
|
+
ProjectPublicationRequestApi: As(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7436
|
+
ProjectQuotaApi: ms(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7437
|
+
ProjectResourceApi: Rs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7438
|
+
ProjectResourceQuotaApi: ws(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7439
|
+
ProjectResourceTypeApi: vs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7440
|
+
ResourceApi: Bs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7441
|
+
ResourceTypeApi: Ls(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7442
|
+
RoleApi: Hs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7443
|
+
SearchApi: ks(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7444
|
+
SelfApi: $s(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7445
|
+
SelfApiTokenApi: qs(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7446
|
+
ShibbolethApi: wa(new x({ accessToken: v }), "https://" + S() + "/coscine/api/Coscine.Api.STS", e),
|
|
7447
|
+
TitleApi: Ks(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7448
|
+
TosApi: Ys(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7449
|
+
TreeApi: ea(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7450
|
+
UserApi: sa(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7451
|
+
VisibilityApi: na(new x({ accessToken: v }), "https://" + S() + "/coscine", e),
|
|
7452
|
+
VocabularyApi: ia(new x({ accessToken: v }), "https://" + S() + "/coscine", e)
|
|
7353
7453
|
};
|
|
7354
7454
|
}
|
|
7355
|
-
const nt = O.create(),
|
|
7356
|
-
function
|
|
7455
|
+
const nt = O.create(), Ua = "X-Coscine-Logging-CorrelationId";
|
|
7456
|
+
function va(e) {
|
|
7357
7457
|
if (typeof window < "u") {
|
|
7358
7458
|
const r = localStorage.getItem("coscine.authorization.bearer");
|
|
7359
7459
|
r && e.headers.setAuthorization("Bearer " + r);
|
|
7360
7460
|
const o = localStorage.getItem("coscine.clientcorrelation.id");
|
|
7361
|
-
o && e.headers.set(
|
|
7461
|
+
o && e.headers.set(Ua, o);
|
|
7362
7462
|
}
|
|
7363
7463
|
}
|
|
7364
|
-
nt.interceptors.request.use((e) => (
|
|
7365
|
-
const
|
|
7464
|
+
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, Ha = B.LanguageApi, Ma = 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, fa = B.ProjectPublicationRequestApi, Ja = B.ProjectQuotaApi, Ka = 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;
|
|
7366
7466
|
export {
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7467
|
+
Sa as AccountApi,
|
|
7468
|
+
Ba as AdminApi,
|
|
7469
|
+
Fa as ApplicationProfileApi,
|
|
7470
|
+
Ca as BlobApi,
|
|
7471
|
+
La as DisciplineApi,
|
|
7472
|
+
Ea as HandleApi,
|
|
7473
|
+
za as HomeApi,
|
|
7474
|
+
Ha as LanguageApi,
|
|
7475
|
+
Ma as LicenseApi,
|
|
7476
|
+
Qa as MaintenanceApi,
|
|
7477
|
+
ka as MergeApi,
|
|
7478
|
+
Da as ORCiDApi,
|
|
7479
|
+
Na as OrganizationApi,
|
|
7480
|
+
$a as PidApi,
|
|
7481
|
+
Ga as ProjectApi,
|
|
7482
|
+
_a as ProjectInvitationApi,
|
|
7483
|
+
qa as ProjectMemberApi,
|
|
7484
|
+
fa as ProjectPublicationRequestApi,
|
|
7485
|
+
Ja as ProjectQuotaApi,
|
|
7486
|
+
Ka as ProjectResourceApi,
|
|
7487
|
+
Wa as ProjectResourceQuotaApi,
|
|
7488
|
+
Xa as ProjectResourceTypeApi,
|
|
7489
|
+
Ya as ResourceApi,
|
|
7490
|
+
Za as ResourceTypeApi,
|
|
7491
|
+
ga as RoleApi,
|
|
7492
|
+
eo as SearchApi,
|
|
7493
|
+
to as SelfApi,
|
|
7494
|
+
ro as SelfApiTokenApi,
|
|
7495
|
+
so as ShibbolethApi,
|
|
7496
|
+
ao as TitleApi,
|
|
7497
|
+
oo as TosApi,
|
|
7498
|
+
no as TreeApi,
|
|
7499
|
+
lo as UserApi,
|
|
7500
|
+
co as VisibilityApi,
|
|
7501
|
+
io as VocabularyApi,
|
|
7502
|
+
B as default
|
|
7402
7503
|
};
|