@coscine/api-client 3.4.0 → 3.4.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ct = Object.defineProperty;
|
|
2
2
|
var it = (e, r, a) => r in e ? ct(e, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[r] = a;
|
|
3
3
|
var k = (e, r, a) => (it(e, typeof r != "symbol" ? r + "" : r, a), a);
|
|
4
|
-
function
|
|
4
|
+
function He(e, r) {
|
|
5
5
|
return function() {
|
|
6
6
|
return e.apply(r, arguments);
|
|
7
7
|
};
|
|
@@ -13,12 +13,12 @@ const { toString: pt } = Object.prototype, { getPrototypeOf: je } = Object, ne =
|
|
|
13
13
|
function dt(e) {
|
|
14
14
|
return e !== null && !g(e) && e.constructor !== null && !g(e.constructor) && z(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const De = M("ArrayBuffer");
|
|
17
17
|
function ht(e) {
|
|
18
18
|
let r;
|
|
19
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(e) : r = e && e.buffer &&
|
|
19
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(e) : r = e && e.buffer && De(e.buffer), r;
|
|
20
20
|
}
|
|
21
|
-
const ut = le("string"), z = le("function"),
|
|
21
|
+
const ut = le("string"), z = le("function"), Ne = le("number"), ce = (e) => e !== null && typeof e == "object", Ot = (e) => e === !0 || e === !1, re = (e) => {
|
|
22
22
|
if (ne(e) !== "object")
|
|
23
23
|
return !1;
|
|
24
24
|
const r = je(e);
|
|
@@ -42,7 +42,7 @@ function ee(e, r, { allOwnKeys: a = !1 } = {}) {
|
|
|
42
42
|
l = s[n], r.call(null, e[l], l, e);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function $e(e, r) {
|
|
46
46
|
r = r.toLowerCase();
|
|
47
47
|
const a = Object.keys(e);
|
|
48
48
|
let n = a.length, t;
|
|
@@ -51,10 +51,10 @@ function Ge(e, r) {
|
|
|
51
51
|
return t;
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const Ge = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _e = (e) => !g(e) && e !== Ge;
|
|
55
55
|
function Ae() {
|
|
56
|
-
const { caseless: e } =
|
|
57
|
-
const s = e &&
|
|
56
|
+
const { caseless: e } = _e(this) && this || {}, r = {}, a = (n, t) => {
|
|
57
|
+
const s = e && $e(r, t) || t;
|
|
58
58
|
re(r[s]) && re(n) ? r[s] = Ae(r[s], n) : re(n) ? r[s] = Ae({}, n) : Y(n) ? r[s] = n.slice() : r[s] = n;
|
|
59
59
|
};
|
|
60
60
|
for (let n = 0, t = arguments.length; n < t; n++)
|
|
@@ -62,7 +62,7 @@ function Ae() {
|
|
|
62
62
|
return r;
|
|
63
63
|
}
|
|
64
64
|
const It = (e, r, a, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
65
|
-
a && z(t) ? e[s] =
|
|
65
|
+
a && z(t) ? e[s] = He(t, a) : e[s] = t;
|
|
66
66
|
}, { allOwnKeys: n }), e), wt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tt = (e, r, a, n) => {
|
|
67
67
|
e.prototype = Object.create(r.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
68
68
|
value: r.prototype
|
|
@@ -88,7 +88,7 @@ const It = (e, r, a, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
88
88
|
if (Y(e))
|
|
89
89
|
return e;
|
|
90
90
|
let r = e.length;
|
|
91
|
-
if (
|
|
91
|
+
if (!Ne(r))
|
|
92
92
|
return null;
|
|
93
93
|
const a = new Array(r);
|
|
94
94
|
for (; r-- > 0; )
|
|
@@ -112,14 +112,14 @@ const It = (e, r, a, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
112
112
|
function(a, n, t) {
|
|
113
113
|
return n.toUpperCase() + t;
|
|
114
114
|
}
|
|
115
|
-
),
|
|
115
|
+
), xe = (({ hasOwnProperty: e }) => (r, a) => e.call(r, a))(Object.prototype), Et = M("RegExp"), qe = (e, r) => {
|
|
116
116
|
const a = Object.getOwnPropertyDescriptors(e), n = {};
|
|
117
117
|
ee(a, (t, s) => {
|
|
118
118
|
let o;
|
|
119
119
|
(o = r(t, s, e)) !== !1 && (n[s] = o || t);
|
|
120
120
|
}), Object.defineProperties(e, n);
|
|
121
121
|
}, zt = (e) => {
|
|
122
|
-
|
|
122
|
+
qe(e, (r, a) => {
|
|
123
123
|
if (z(e) && ["arguments", "caller", "callee"].indexOf(a) !== -1)
|
|
124
124
|
return !1;
|
|
125
125
|
const n = e[a];
|
|
@@ -141,11 +141,11 @@ const It = (e, r, a, { allOwnKeys: n } = {}) => (ee(r, (t, s) => {
|
|
|
141
141
|
};
|
|
142
142
|
return Y(e) ? n(e) : n(String(e).split(r)), a;
|
|
143
143
|
}, Mt = () => {
|
|
144
|
-
}, kt = (e, r) => (e = +e, Number.isFinite(e) ? e : r), de = "abcdefghijklmnopqrstuvwxyz",
|
|
145
|
-
DIGIT:
|
|
144
|
+
}, kt = (e, r) => (e = +e, Number.isFinite(e) ? e : r), de = "abcdefghijklmnopqrstuvwxyz", Se = "0123456789", fe = {
|
|
145
|
+
DIGIT: Se,
|
|
146
146
|
ALPHA: de,
|
|
147
|
-
ALPHA_DIGIT: de + de.toUpperCase() +
|
|
148
|
-
}, Ht = (e = 16, r =
|
|
147
|
+
ALPHA_DIGIT: de + de.toUpperCase() + Se
|
|
148
|
+
}, Ht = (e = 16, r = fe.ALPHA_DIGIT) => {
|
|
149
149
|
let a = "";
|
|
150
150
|
const { length: n } = r;
|
|
151
151
|
for (; e--; )
|
|
@@ -174,12 +174,12 @@ const Nt = (e) => {
|
|
|
174
174
|
return a(e, 0);
|
|
175
175
|
}, $t = M("AsyncFunction"), Gt = (e) => e && (ce(e) || z(e)) && z(e.then) && z(e.catch), O = {
|
|
176
176
|
isArray: Y,
|
|
177
|
-
isArrayBuffer:
|
|
177
|
+
isArrayBuffer: De,
|
|
178
178
|
isBuffer: dt,
|
|
179
179
|
isFormData: yt,
|
|
180
180
|
isArrayBufferView: ht,
|
|
181
181
|
isString: ut,
|
|
182
|
-
isNumber:
|
|
182
|
+
isNumber: Ne,
|
|
183
183
|
isBoolean: Ot,
|
|
184
184
|
isObject: ce,
|
|
185
185
|
isPlainObject: re,
|
|
@@ -207,19 +207,19 @@ const Nt = (e) => {
|
|
|
207
207
|
forEachEntry: Bt,
|
|
208
208
|
matchAll: Ft,
|
|
209
209
|
isHTMLForm: Ct,
|
|
210
|
-
hasOwnProperty:
|
|
211
|
-
hasOwnProp:
|
|
210
|
+
hasOwnProperty: xe,
|
|
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: Qt,
|
|
216
216
|
toCamelCase: Lt,
|
|
217
217
|
noop: Mt,
|
|
218
218
|
toFiniteNumber: kt,
|
|
219
|
-
findKey:
|
|
220
|
-
global:
|
|
221
|
-
isContextDefined:
|
|
222
|
-
ALPHABET:
|
|
219
|
+
findKey: $e,
|
|
220
|
+
global: Ge,
|
|
221
|
+
isContextDefined: _e,
|
|
222
|
+
ALPHABET: fe,
|
|
223
223
|
generateString: Ht,
|
|
224
224
|
isSpecCompliantForm: Dt,
|
|
225
225
|
toJSONObject: Nt,
|
|
@@ -250,7 +250,7 @@ O.inherits(v, Error, {
|
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
|
-
const
|
|
253
|
+
const Je = v.prototype, Ke = {};
|
|
254
254
|
[
|
|
255
255
|
"ERR_BAD_OPTION_VALUE",
|
|
256
256
|
"ERR_BAD_OPTION",
|
|
@@ -266,12 +266,12 @@ const Ke = v.prototype, We = {};
|
|
|
266
266
|
"ERR_INVALID_URL"
|
|
267
267
|
// eslint-disable-next-line func-names
|
|
268
268
|
].forEach((e) => {
|
|
269
|
-
|
|
269
|
+
Ke[e] = { value: e };
|
|
270
270
|
});
|
|
271
|
-
Object.defineProperties(v,
|
|
272
|
-
Object.defineProperty(
|
|
271
|
+
Object.defineProperties(v, Ke);
|
|
272
|
+
Object.defineProperty(Je, "isAxiosError", { value: !0 });
|
|
273
273
|
v.from = (e, r, a, n, t, s) => {
|
|
274
|
-
const o = Object.create(
|
|
274
|
+
const o = Object.create(Je);
|
|
275
275
|
return O.toFlatObject(e, o, function(c) {
|
|
276
276
|
return c !== Error.prototype;
|
|
277
277
|
}, (l) => l !== "isAxiosError"), v.call(o, e.message, r, a, n, t), o.cause = e, o.name = e.name, s && Object.assign(o, s), o;
|
|
@@ -280,12 +280,12 @@ const _t = null;
|
|
|
280
280
|
function Ve(e) {
|
|
281
281
|
return O.isPlainObject(e) || O.isArray(e);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function We(e) {
|
|
284
284
|
return O.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Be(e, r, a) {
|
|
287
287
|
return e ? e.concat(r).map(function(t, s) {
|
|
288
|
-
return t =
|
|
288
|
+
return t = We(t), !a && s ? "[" + t + "]" : t;
|
|
289
289
|
}).join(a ? "." : "") : r;
|
|
290
290
|
}
|
|
291
291
|
function qt(e) {
|
|
@@ -322,15 +322,15 @@ function ie(e, r, a) {
|
|
|
322
322
|
if (O.endsWith(T, "{}"))
|
|
323
323
|
T = n ? T : T.slice(0, -2), w = JSON.stringify(w);
|
|
324
324
|
else if (O.isArray(w) && qt(w) || (O.isFileList(w) || O.endsWith(T, "[]")) && (E = O.toArray(w)))
|
|
325
|
-
return T =
|
|
325
|
+
return T = We(T), E.forEach(function(K, lt) {
|
|
326
326
|
!(O.isUndefined(K) || K === null) && r.append(
|
|
327
327
|
// eslint-disable-next-line no-nested-ternary
|
|
328
|
-
o === !0 ?
|
|
328
|
+
o === !0 ? Be([T], lt, s) : o === null ? T : T + "[]",
|
|
329
329
|
i(K)
|
|
330
330
|
);
|
|
331
331
|
}), !1;
|
|
332
332
|
}
|
|
333
|
-
return Ve(w) ? !0 : (r.append(
|
|
333
|
+
return Ve(w) ? !0 : (r.append(Be(F, T, s), i(w)), !1);
|
|
334
334
|
}
|
|
335
335
|
const d = [], h = Object.assign(ft, {
|
|
336
336
|
defaultVisitor: p,
|
|
@@ -356,7 +356,7 @@ function ie(e, r, a) {
|
|
|
356
356
|
throw new TypeError("data must be an object");
|
|
357
357
|
return I(e), r;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Fe(e) {
|
|
360
360
|
const r = {
|
|
361
361
|
"!": "%21",
|
|
362
362
|
"'": "%27",
|
|
@@ -373,14 +373,14 @@ function Ce(e) {
|
|
|
373
373
|
function Ie(e, r) {
|
|
374
374
|
this._pairs = [], e && ie(e, this, r);
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
|
|
376
|
+
const Xe = Ie.prototype;
|
|
377
|
+
Xe.append = function(r, a) {
|
|
378
378
|
this._pairs.push([r, a]);
|
|
379
379
|
};
|
|
380
|
-
|
|
380
|
+
Xe.toString = function(r) {
|
|
381
381
|
const a = r ? function(n) {
|
|
382
|
-
return r.call(this, n,
|
|
383
|
-
} :
|
|
382
|
+
return r.call(this, n, Fe);
|
|
383
|
+
} : Fe;
|
|
384
384
|
return this._pairs.map(function(t) {
|
|
385
385
|
return a(t[0]) + "=" + a(t[1]);
|
|
386
386
|
}, "").join("&");
|
|
@@ -388,7 +388,7 @@ Ye.toString = function(r) {
|
|
|
388
388
|
function Jt(e) {
|
|
389
389
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Ye(e, r, a) {
|
|
392
392
|
if (!r)
|
|
393
393
|
return e;
|
|
394
394
|
const n = a && a.encode || Jt, t = a && a.serialize;
|
|
@@ -453,7 +453,7 @@ class Kt {
|
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
const
|
|
456
|
+
const Ce = Kt, Ze = {
|
|
457
457
|
silentJSONParsing: !0,
|
|
458
458
|
forcedJSONParsing: !0,
|
|
459
459
|
clarifyTimeoutError: !1
|
|
@@ -465,10 +465,10 @@ const Le = Kt, ge = {
|
|
|
465
465
|
Blob: Yt
|
|
466
466
|
},
|
|
467
467
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
468
|
-
},
|
|
468
|
+
}, ge = typeof window < "u" && typeof document < "u", gt = ((e) => ge && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), er = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
469
469
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
470
470
|
__proto__: null,
|
|
471
|
-
hasBrowserEnv:
|
|
471
|
+
hasBrowserEnv: ge,
|
|
472
472
|
hasStandardBrowserEnv: gt,
|
|
473
473
|
hasStandardBrowserWebWorkerEnv: er
|
|
474
474
|
}, Symbol.toStringTag, { value: "Module" })), Q = {
|
|
@@ -494,7 +494,7 @@ function ar(e) {
|
|
|
494
494
|
s = a[n], r[s] = e[s];
|
|
495
495
|
return r;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function et(e) {
|
|
498
498
|
function r(a, n, t, s) {
|
|
499
499
|
let o = a[s++];
|
|
500
500
|
const l = Number.isFinite(+o), c = s >= a.length;
|
|
@@ -519,12 +519,12 @@ function or(e, r, a) {
|
|
|
519
519
|
return (a || JSON.stringify)(e);
|
|
520
520
|
}
|
|
521
521
|
const we = {
|
|
522
|
-
transitional:
|
|
522
|
+
transitional: Ze,
|
|
523
523
|
adapter: ["xhr", "http"],
|
|
524
524
|
transformRequest: [function(r, a) {
|
|
525
525
|
const n = a.getContentType() || "", t = n.indexOf("application/json") > -1, s = O.isObject(r);
|
|
526
526
|
if (s && O.isHTMLForm(r) && (r = new FormData(r)), O.isFormData(r))
|
|
527
|
-
return t && t ? JSON.stringify(
|
|
527
|
+
return t && t ? JSON.stringify(et(r)) : r;
|
|
528
528
|
if (O.isArrayBuffer(r) || O.isBuffer(r) || O.isStream(r) || O.isFile(r) || O.isBlob(r))
|
|
529
529
|
return r;
|
|
530
530
|
if (O.isArrayBufferView(r))
|
|
@@ -610,7 +610,7 @@ const Te = we, nr = O.toObjectSet([
|
|
|
610
610
|
`).forEach(function(o) {
|
|
611
611
|
t = o.indexOf(":"), a = o.substring(0, t).trim().toLowerCase(), n = o.substring(t + 1).trim(), !(!a || r[a] && nr[a]) && (a === "set-cookie" ? r[a] ? r[a].push(n) : r[a] = [n] : r[a] = r[a] ? r[a] + ", " + n : n);
|
|
612
612
|
}), r;
|
|
613
|
-
},
|
|
613
|
+
}, Le = Symbol("internals");
|
|
614
614
|
function Z(e) {
|
|
615
615
|
return e && String(e).trim().toLowerCase();
|
|
616
616
|
}
|
|
@@ -748,7 +748,7 @@ class pe {
|
|
|
748
748
|
return a.forEach((t) => n.set(t)), n;
|
|
749
749
|
}
|
|
750
750
|
static accessor(r) {
|
|
751
|
-
const n = (this[
|
|
751
|
+
const n = (this[Le] = this[Le] = {
|
|
752
752
|
accessors: {}
|
|
753
753
|
}).accessors, t = this.prototype;
|
|
754
754
|
function s(o) {
|
|
@@ -777,7 +777,7 @@ function ue(e, r) {
|
|
|
777
777
|
s = l.call(a, s, t.normalize(), r ? r.status : void 0);
|
|
778
778
|
}), t.normalize(), s;
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function tt(e) {
|
|
781
781
|
return !!(e && e.__CANCEL__);
|
|
782
782
|
}
|
|
783
783
|
function te(e, r, a) {
|
|
@@ -829,7 +829,7 @@ function Or(e) {
|
|
|
829
829
|
function Ar(e, r) {
|
|
830
830
|
return r ? e.replace(/\/+$/, "") + "/" + r.replace(/^\/+/, "") : e;
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function rt(e, r) {
|
|
833
833
|
return e && !Or(r) ? Ar(e, r) : r;
|
|
834
834
|
}
|
|
835
835
|
const Vr = Q.hasStandardBrowserEnv ? (
|
|
@@ -884,7 +884,7 @@ function Pr(e, r) {
|
|
|
884
884
|
return I ? Math.round(h * 1e3 / I) : void 0;
|
|
885
885
|
};
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function Ee(e, r) {
|
|
888
888
|
let a = 0;
|
|
889
889
|
const n = Pr(50, 250);
|
|
890
890
|
return (t) => {
|
|
@@ -924,8 +924,8 @@ const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
|
924
924
|
const T = e.auth.username || "", F = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
925
925
|
s.set("Authorization", "Basic " + btoa(T + ":" + F));
|
|
926
926
|
}
|
|
927
|
-
const h =
|
|
928
|
-
d.open(e.method.toUpperCase(),
|
|
927
|
+
const h = rt(e.baseURL, e.url);
|
|
928
|
+
d.open(e.method.toUpperCase(), Ye(h, e.params, e.paramsSerializer), !0), d.timeout = e.timeout;
|
|
929
929
|
function I() {
|
|
930
930
|
if (!d)
|
|
931
931
|
return;
|
|
@@ -953,7 +953,7 @@ const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
|
953
953
|
n(new v("Network Error", v.ERR_NETWORK, e, d)), d = null;
|
|
954
954
|
}, d.ontimeout = function() {
|
|
955
955
|
let F = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
956
|
-
const E = e.transitional ||
|
|
956
|
+
const E = e.transitional || Ze;
|
|
957
957
|
e.timeoutErrorMessage && (F = e.timeoutErrorMessage), n(new v(
|
|
958
958
|
F,
|
|
959
959
|
E.clarifyTimeoutError ? v.ETIMEDOUT : v.ECONNABORTED,
|
|
@@ -966,7 +966,7 @@ const br = typeof XMLHttpRequest < "u", yr = br && function(e) {
|
|
|
966
966
|
}
|
|
967
967
|
t === void 0 && s.setContentType(null), "setRequestHeader" in d && O.forEach(s.toJSON(), function(F, E) {
|
|
968
968
|
d.setRequestHeader(E, F);
|
|
969
|
-
}), O.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), o && o !== "json" && (d.responseType = e.responseType), typeof e.onDownloadProgress == "function" && d.addEventListener("progress",
|
|
969
|
+
}), O.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), o && o !== "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
972
|
const w = mr(h);
|
|
@@ -989,7 +989,7 @@ O.forEach(me, (e, r) => {
|
|
|
989
989
|
Object.defineProperty(e, "adapterName", { value: r });
|
|
990
990
|
}
|
|
991
991
|
});
|
|
992
|
-
const
|
|
992
|
+
const ze = (e) => `- ${e}`, Rr = (e) => O.isFunction(e) || e === null || e === !1, st = {
|
|
993
993
|
getAdapter: (e) => {
|
|
994
994
|
e = O.isArray(e) ? e : [e];
|
|
995
995
|
const { length: r } = e;
|
|
@@ -1009,8 +1009,8 @@ const Qe = (e) => `- ${e}`, Rr = (e) => O.isFunction(e) || e === null || e === !
|
|
|
1009
1009
|
([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1010
1010
|
);
|
|
1011
1011
|
let o = r ? s.length > 1 ? `since :
|
|
1012
|
-
` + s.map(
|
|
1013
|
-
`) : " " +
|
|
1012
|
+
` + s.map(ze).join(`
|
|
1013
|
+
`) : " " + ze(s[0]) : "as no adapter specified";
|
|
1014
1014
|
throw new v(
|
|
1015
1015
|
"There is no suitable adapter to dispatch the request " + o,
|
|
1016
1016
|
"ERR_NOT_SUPPORT"
|
|
@@ -1024,25 +1024,25 @@ function Oe(e) {
|
|
|
1024
1024
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1025
1025
|
throw new te(null, e);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Qe(e) {
|
|
1028
1028
|
return Oe(e), e.headers = H.from(e.headers), e.data = ue.call(
|
|
1029
1029
|
e,
|
|
1030
1030
|
e.transformRequest
|
|
1031
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1031
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), st.getAdapter(e.adapter || Te.adapter)(e).then(function(n) {
|
|
1032
1032
|
return Oe(e), n.data = ue.call(
|
|
1033
1033
|
e,
|
|
1034
1034
|
e.transformResponse,
|
|
1035
1035
|
n
|
|
1036
1036
|
), n.headers = H.from(n.headers), n;
|
|
1037
1037
|
}, function(n) {
|
|
1038
|
-
return
|
|
1038
|
+
return tt(n) || (Oe(e), n && n.response && (n.response.data = ue.call(
|
|
1039
1039
|
e,
|
|
1040
1040
|
e.transformResponse,
|
|
1041
1041
|
n.response
|
|
1042
1042
|
), n.response.headers = H.from(n.response.headers))), Promise.reject(n);
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
|
-
const
|
|
1045
|
+
const Me = (e) => e instanceof H ? e.toJSON() : e;
|
|
1046
1046
|
function X(e, r) {
|
|
1047
1047
|
r = r || {};
|
|
1048
1048
|
const a = {};
|
|
@@ -1102,23 +1102,23 @@ function X(e, r) {
|
|
|
1102
1102
|
socketPath: o,
|
|
1103
1103
|
responseEncoding: o,
|
|
1104
1104
|
validateStatus: l,
|
|
1105
|
-
headers: (i, p) => t(
|
|
1105
|
+
headers: (i, p) => t(Me(i), Me(p), !0)
|
|
1106
1106
|
};
|
|
1107
1107
|
return O.forEach(Object.keys(Object.assign({}, e, r)), function(p) {
|
|
1108
1108
|
const d = c[p] || t, h = d(e[p], r[p], p);
|
|
1109
1109
|
O.isUndefined(h) && d !== l || (a[p] = h);
|
|
1110
1110
|
}), a;
|
|
1111
1111
|
}
|
|
1112
|
-
const
|
|
1112
|
+
const at = "1.6.2", Ue = {};
|
|
1113
1113
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, r) => {
|
|
1114
1114
|
Ue[e] = function(n) {
|
|
1115
1115
|
return typeof n === e || "a" + (r < 1 ? "n " : " ") + e;
|
|
1116
1116
|
};
|
|
1117
1117
|
});
|
|
1118
|
-
const
|
|
1118
|
+
const ke = {};
|
|
1119
1119
|
Ue.transitional = function(r, a, n) {
|
|
1120
1120
|
function t(s, o) {
|
|
1121
|
-
return "[Axios v" +
|
|
1121
|
+
return "[Axios v" + at + "] Transitional option '" + s + "'" + o + (n ? ". " + n : "");
|
|
1122
1122
|
}
|
|
1123
1123
|
return (s, o, l) => {
|
|
1124
1124
|
if (r === !1)
|
|
@@ -1126,7 +1126,7 @@ Ue.transitional = function(r, a, n) {
|
|
|
1126
1126
|
t(o, " has been removed" + (a ? " in " + a : "")),
|
|
1127
1127
|
v.ERR_DEPRECATED
|
|
1128
1128
|
);
|
|
1129
|
-
return a && !
|
|
1129
|
+
return a && !ke[o] && (ke[o] = !0, console.warn(
|
|
1130
1130
|
t(
|
|
1131
1131
|
o,
|
|
1132
1132
|
" has been deprecated since v" + a + " and will be removed in the near future"
|
|
@@ -1158,8 +1158,8 @@ const Pe = {
|
|
|
1158
1158
|
class oe {
|
|
1159
1159
|
constructor(r) {
|
|
1160
1160
|
this.defaults = r, this.interceptors = {
|
|
1161
|
-
request: new
|
|
1162
|
-
response: new
|
|
1161
|
+
request: new Ce(),
|
|
1162
|
+
response: new Ce()
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
1165
|
/**
|
|
@@ -1204,7 +1204,7 @@ class oe {
|
|
|
1204
1204
|
});
|
|
1205
1205
|
let p, d = 0, h;
|
|
1206
1206
|
if (!c) {
|
|
1207
|
-
const w = [
|
|
1207
|
+
const w = [Qe.bind(this), void 0];
|
|
1208
1208
|
for (w.unshift.apply(w, l), w.push.apply(w, i), h = w.length, p = Promise.resolve(a); d < h; )
|
|
1209
1209
|
p = p.then(w[d++], w[d++]);
|
|
1210
1210
|
return p;
|
|
@@ -1221,7 +1221,7 @@ class oe {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
try {
|
|
1224
|
-
p =
|
|
1224
|
+
p = Qe.call(this, I);
|
|
1225
1225
|
} catch (w) {
|
|
1226
1226
|
return Promise.reject(w);
|
|
1227
1227
|
}
|
|
@@ -1231,8 +1231,8 @@ class oe {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
getUri(r) {
|
|
1233
1233
|
r = X(this.defaults, r);
|
|
1234
|
-
const a =
|
|
1235
|
-
return
|
|
1234
|
+
const a = rt(r.baseURL, r.url);
|
|
1235
|
+
return Ye(a, r.params, r.paramsSerializer);
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
O.forEach(["delete", "get", "head", "options"], function(r) {
|
|
@@ -1406,18 +1406,18 @@ Object.entries(be).forEach(([e, r]) => {
|
|
|
1406
1406
|
be[r] = e;
|
|
1407
1407
|
});
|
|
1408
1408
|
const Ur = be;
|
|
1409
|
-
function
|
|
1410
|
-
const r = new ae(e), a =
|
|
1409
|
+
function ot(e) {
|
|
1410
|
+
const r = new ae(e), a = He(ae.prototype.request, r);
|
|
1411
1411
|
return O.extend(a, ae.prototype, r, { allOwnKeys: !0 }), O.extend(a, r, null, { allOwnKeys: !0 }), a.create = function(t) {
|
|
1412
|
-
return
|
|
1412
|
+
return ot(X(e, t));
|
|
1413
1413
|
}, a;
|
|
1414
1414
|
}
|
|
1415
|
-
const C =
|
|
1415
|
+
const C = ot(Te);
|
|
1416
1416
|
C.Axios = ae;
|
|
1417
1417
|
C.CanceledError = te;
|
|
1418
1418
|
C.CancelToken = Ir;
|
|
1419
|
-
C.isCancel =
|
|
1420
|
-
C.VERSION =
|
|
1419
|
+
C.isCancel = tt;
|
|
1420
|
+
C.VERSION = at;
|
|
1421
1421
|
C.toFormData = ie;
|
|
1422
1422
|
C.AxiosError = v;
|
|
1423
1423
|
C.Cancel = C.CanceledError;
|
|
@@ -1428,11 +1428,11 @@ C.spread = wr;
|
|
|
1428
1428
|
C.isAxiosError = Tr;
|
|
1429
1429
|
C.mergeConfig = X;
|
|
1430
1430
|
C.AxiosHeaders = H;
|
|
1431
|
-
C.formToJSON = (e) =>
|
|
1432
|
-
C.getAdapter =
|
|
1431
|
+
C.formToJSON = (e) => et(O.isHTMLForm(e) ? new FormData(e) : e);
|
|
1432
|
+
C.getAdapter = st.getAdapter;
|
|
1433
1433
|
C.HttpStatusCode = Ur;
|
|
1434
1434
|
C.default = C;
|
|
1435
|
-
const u = C, A = "https://d-
|
|
1435
|
+
const u = C, A = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine".replace(/\/+$/, "");
|
|
1436
1436
|
class vr extends Error {
|
|
1437
1437
|
constructor(r, a) {
|
|
1438
1438
|
super(a), this.field = r, this.name = "RequiredError";
|
|
@@ -6511,7 +6511,7 @@ class x {
|
|
|
6511
6511
|
return r !== null && (a.test(r) || r.toLowerCase() === "application/json-patch+json");
|
|
6512
6512
|
}
|
|
6513
6513
|
}
|
|
6514
|
-
const D = "https://d-
|
|
6514
|
+
const D = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.STS".replace(/\/+$/, ""), N = {}, $ = "https://example.com", G = async function(e, r, a) {
|
|
6515
6515
|
if (a && a.apiKey) {
|
|
6516
6516
|
const n = typeof a.apiKey == "function" ? await a.apiKey(r) : await a.apiKey;
|
|
6517
6517
|
e[r] = n;
|
|
@@ -6994,7 +6994,7 @@ function ba(e) {
|
|
|
6994
6994
|
VocabularyApi: sa(new x({ accessToken: U }), "https://" + S() + "/coscine", e)
|
|
6995
6995
|
};
|
|
6996
6996
|
}
|
|
6997
|
-
const
|
|
6997
|
+
const nt = u.create(), ya = "X-Coscine-Logging-CorrelationId";
|
|
6998
6998
|
function Ra(e) {
|
|
6999
6999
|
if (typeof window < "u") {
|
|
7000
7000
|
const r = localStorage.getItem("coscine.authorization.bearer");
|
|
@@ -7003,9 +7003,8 @@ function Ra(e) {
|
|
|
7003
7003
|
a && e.headers.set(ya, a);
|
|
7004
7004
|
}
|
|
7005
7005
|
}
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
const B = ba(xe), Ia = B.AccountApi, wa = B.AdminApi, Ta = B.ApplicationProfileApi, Ua = B.BlobApi, va = B.DisciplineApi, xa = B.HomeApi, Sa = B.LanguageApi, Ba = B.LicenseApi, Fa = B.MaintenanceApi, Ca = B.MergeApi, La = B.ORCiDApi, Ea = B.OrganizationApi, za = B.PidApi, Qa = B.ProjectApi, Ma = B.ProjectInvitationApi, ka = B.ProjectMemberApi, Ha = B.ProjectQuotaApi, Da = B.ProjectResourceApi, Na = B.ProjectResourceQuotaApi, $a = B.ProjectResourceTypeApi, Ga = B.ResourceApi, _a = B.ResourceTypeApi, qa = B.RoleApi, fa = B.SearchApi, Ja = B.SelfApi, Ka = B.SelfApiTokenApi, Wa = B.ShibbolethApi, Xa = B.TitleApi, Ya = B.TosApi, Za = B.TreeApi, ga = B.UserApi, eo = B.VisibilityApi, to = B.VocabularyApi;
|
|
7006
|
+
nt.interceptors.request.use((e) => (Ra(e), e), (e) => Promise.reject(e), { synchronous: !0 });
|
|
7007
|
+
const B = ba(nt), Ia = B.AccountApi, wa = B.AdminApi, Ta = B.ApplicationProfileApi, Ua = B.BlobApi, va = B.DisciplineApi, xa = B.HomeApi, Sa = B.LanguageApi, Ba = B.LicenseApi, Fa = B.MaintenanceApi, Ca = B.MergeApi, La = B.ORCiDApi, Ea = B.OrganizationApi, za = B.PidApi, Qa = B.ProjectApi, Ma = B.ProjectInvitationApi, ka = B.ProjectMemberApi, Ha = B.ProjectQuotaApi, Da = B.ProjectResourceApi, Na = B.ProjectResourceQuotaApi, $a = B.ProjectResourceTypeApi, Ga = B.ResourceApi, _a = B.ResourceTypeApi, qa = B.RoleApi, fa = B.SearchApi, Ja = B.SelfApi, Ka = B.SelfApiTokenApi, Wa = B.ShibbolethApi, Xa = B.TitleApi, Ya = B.TosApi, Za = B.TreeApi, ga = B.UserApi, eo = B.VisibilityApi, to = B.VocabularyApi;
|
|
7009
7008
|
export {
|
|
7010
7009
|
Ia as AccountApi,
|
|
7011
7010
|
wa as AdminApi,
|
|
@@ -90,10 +90,4 @@ export interface ProjectForCreationDto {
|
|
|
90
90
|
* @memberof ProjectForCreationDto
|
|
91
91
|
*/
|
|
92
92
|
'parentId'?: string | null;
|
|
93
|
-
/**
|
|
94
|
-
* Gets or initializes if the owners of the parent project should be copied to the sub project.
|
|
95
|
-
* @type {boolean}
|
|
96
|
-
* @memberof ProjectForCreationDto
|
|
97
|
-
*/
|
|
98
|
-
'copyOwnersFromParent'?: boolean | null;
|
|
99
93
|
}
|