@coscine/api-client 2.4.0 → 2.5.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 +403 -155
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +403 -154
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.Pid/api.js +204 -0
- package/dist/lib/Coscine.Api.Pid/api.js.map +1 -0
- package/dist/lib/Coscine.Api.Pid/base.js +65 -0
- package/dist/lib/Coscine.Api.Pid/base.js.map +1 -0
- package/dist/lib/Coscine.Api.Pid/common.js +153 -0
- package/dist/lib/Coscine.Api.Pid/common.js.map +1 -0
- package/dist/lib/Coscine.Api.Pid/configuration.js +43 -0
- package/dist/lib/Coscine.Api.Pid/configuration.js.map +1 -0
- package/dist/lib/Coscine.Api.Pid/index.js +28 -0
- package/dist/lib/Coscine.Api.Pid/index.js.map +1 -0
- package/dist/lib/Coscine.Api.Search/api.js +13 -2
- package/dist/lib/Coscine.Api.Search/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Search/base.js +2 -2
- package/dist/lib/Coscine.Api.Search/common.js +1 -1
- package/dist/lib/Coscine.Api.Search/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Search/index.js +1 -1
- package/dist/lib/apis.js +27 -25
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/types/Coscine.Api.Pid/api.d.ts +149 -0
- package/dist/types/Coscine.Api.Pid/base.d.ts +55 -0
- package/dist/types/Coscine.Api.Pid/common.d.ts +65 -0
- package/dist/types/Coscine.Api.Pid/configuration.d.ts +83 -0
- package/dist/types/Coscine.Api.Pid/index.d.ts +13 -0
- package/dist/types/Coscine.Api.Search/api.d.ts +17 -448
- package/dist/types/Coscine.Api.Search/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/index.d.ts +1 -1
- package/dist/types/apis.d.ts +4 -0
- package/dist/types/index.d.ts +8 -0
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1855,14 +1855,14 @@
|
|
|
1855
1855
|
var axios = axios$2.exports;
|
|
1856
1856
|
|
|
1857
1857
|
/* tslint:disable */
|
|
1858
|
-
const BASE_PATH$
|
|
1858
|
+
const BASE_PATH$b = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, "");
|
|
1859
1859
|
/**
|
|
1860
1860
|
*
|
|
1861
1861
|
* @export
|
|
1862
1862
|
* @class RequiredError
|
|
1863
1863
|
* @extends {Error}
|
|
1864
1864
|
*/
|
|
1865
|
-
class RequiredError$
|
|
1865
|
+
class RequiredError$a extends Error {
|
|
1866
1866
|
constructor(field, msg) {
|
|
1867
1867
|
super(msg);
|
|
1868
1868
|
this.field = field;
|
|
@@ -1875,22 +1875,22 @@
|
|
|
1875
1875
|
*
|
|
1876
1876
|
* @export
|
|
1877
1877
|
*/
|
|
1878
|
-
const DUMMY_BASE_URL$
|
|
1878
|
+
const DUMMY_BASE_URL$b = 'https://example.com';
|
|
1879
1879
|
/**
|
|
1880
1880
|
*
|
|
1881
1881
|
* @throws {RequiredError}
|
|
1882
1882
|
* @export
|
|
1883
1883
|
*/
|
|
1884
|
-
const assertParamExists$
|
|
1884
|
+
const assertParamExists$a = function (functionName, paramName, paramValue) {
|
|
1885
1885
|
if (paramValue === null || paramValue === undefined) {
|
|
1886
|
-
throw new RequiredError$
|
|
1886
|
+
throw new RequiredError$a(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
1887
1887
|
}
|
|
1888
1888
|
};
|
|
1889
1889
|
/**
|
|
1890
1890
|
*
|
|
1891
1891
|
* @export
|
|
1892
1892
|
*/
|
|
1893
|
-
const setApiKeyToObject$
|
|
1893
|
+
const setApiKeyToObject$b = function (object, keyParamName, configuration) {
|
|
1894
1894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1895
1895
|
if (configuration && configuration.apiKey) {
|
|
1896
1896
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -1904,7 +1904,7 @@
|
|
|
1904
1904
|
*
|
|
1905
1905
|
* @export
|
|
1906
1906
|
*/
|
|
1907
|
-
const setSearchParams$
|
|
1907
|
+
const setSearchParams$b = function (url, ...objects) {
|
|
1908
1908
|
const searchParams = new URLSearchParams(url.search);
|
|
1909
1909
|
for (const object of objects) {
|
|
1910
1910
|
for (const key in object) {
|
|
@@ -1925,7 +1925,7 @@
|
|
|
1925
1925
|
*
|
|
1926
1926
|
* @export
|
|
1927
1927
|
*/
|
|
1928
|
-
const serializeDataIfNeeded$
|
|
1928
|
+
const serializeDataIfNeeded$6 = function (value, requestOptions, configuration) {
|
|
1929
1929
|
const nonString = typeof value !== 'string';
|
|
1930
1930
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
1931
1931
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
@@ -1938,14 +1938,14 @@
|
|
|
1938
1938
|
*
|
|
1939
1939
|
* @export
|
|
1940
1940
|
*/
|
|
1941
|
-
const toPathString$
|
|
1941
|
+
const toPathString$b = function (url) {
|
|
1942
1942
|
return url.pathname + url.search + url.hash;
|
|
1943
1943
|
};
|
|
1944
1944
|
/**
|
|
1945
1945
|
*
|
|
1946
1946
|
* @export
|
|
1947
1947
|
*/
|
|
1948
|
-
const createRequestFunction$
|
|
1948
|
+
const createRequestFunction$b = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
1949
1949
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
1950
1950
|
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
1951
1951
|
return axios.request(axiosRequestArgs);
|
|
@@ -1982,11 +1982,11 @@
|
|
|
1982
1982
|
*/
|
|
1983
1983
|
adminGetProject: (projectString, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1984
1984
|
// verify required parameter 'projectString' is not null or undefined
|
|
1985
|
-
assertParamExists$
|
|
1985
|
+
assertParamExists$a('adminGetProject', 'projectString', projectString);
|
|
1986
1986
|
const localVarPath = `/Admin/{projectString}`
|
|
1987
1987
|
.replace(`{${"projectString"}}`, encodeURIComponent(String(projectString)));
|
|
1988
1988
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1989
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
1989
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$b);
|
|
1990
1990
|
let baseOptions;
|
|
1991
1991
|
if (configuration) {
|
|
1992
1992
|
baseOptions = configuration.baseOptions;
|
|
@@ -1995,12 +1995,12 @@
|
|
|
1995
1995
|
const localVarHeaderParameter = {};
|
|
1996
1996
|
const localVarQueryParameter = {};
|
|
1997
1997
|
// authentication JWT token required
|
|
1998
|
-
yield setApiKeyToObject$
|
|
1999
|
-
setSearchParams$
|
|
1998
|
+
yield setApiKeyToObject$b(localVarHeaderParameter, "Authorization", configuration);
|
|
1999
|
+
setSearchParams$b(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2000
2000
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2001
2001
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2002
2002
|
return {
|
|
2003
|
-
url: toPathString$
|
|
2003
|
+
url: toPathString$b(localVarUrlObj),
|
|
2004
2004
|
options: localVarRequestOptions,
|
|
2005
2005
|
};
|
|
2006
2006
|
}),
|
|
@@ -2015,16 +2015,16 @@
|
|
|
2015
2015
|
*/
|
|
2016
2016
|
adminUpdateQuota: (projectId, resourceTypeId, updateQuotaParameterObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2017
2017
|
// verify required parameter 'projectId' is not null or undefined
|
|
2018
|
-
assertParamExists$
|
|
2018
|
+
assertParamExists$a('adminUpdateQuota', 'projectId', projectId);
|
|
2019
2019
|
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
2020
|
-
assertParamExists$
|
|
2020
|
+
assertParamExists$a('adminUpdateQuota', 'resourceTypeId', resourceTypeId);
|
|
2021
2021
|
// verify required parameter 'updateQuotaParameterObject' is not null or undefined
|
|
2022
|
-
assertParamExists$
|
|
2022
|
+
assertParamExists$a('adminUpdateQuota', 'updateQuotaParameterObject', updateQuotaParameterObject);
|
|
2023
2023
|
const localVarPath = `/Admin/{projectId}/{resourceTypeId}`
|
|
2024
2024
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
2025
2025
|
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
2026
2026
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2027
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2027
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$b);
|
|
2028
2028
|
let baseOptions;
|
|
2029
2029
|
if (configuration) {
|
|
2030
2030
|
baseOptions = configuration.baseOptions;
|
|
@@ -2033,14 +2033,14 @@
|
|
|
2033
2033
|
const localVarHeaderParameter = {};
|
|
2034
2034
|
const localVarQueryParameter = {};
|
|
2035
2035
|
// authentication JWT token required
|
|
2036
|
-
yield setApiKeyToObject$
|
|
2036
|
+
yield setApiKeyToObject$b(localVarHeaderParameter, "Authorization", configuration);
|
|
2037
2037
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2038
|
-
setSearchParams$
|
|
2038
|
+
setSearchParams$b(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2039
2039
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2040
2040
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2041
|
-
localVarRequestOptions.data = serializeDataIfNeeded$
|
|
2041
|
+
localVarRequestOptions.data = serializeDataIfNeeded$6(updateQuotaParameterObject, localVarRequestOptions, configuration);
|
|
2042
2042
|
return {
|
|
2043
|
-
url: toPathString$
|
|
2043
|
+
url: toPathString$b(localVarUrlObj),
|
|
2044
2044
|
options: localVarRequestOptions,
|
|
2045
2045
|
};
|
|
2046
2046
|
}),
|
|
@@ -2063,7 +2063,7 @@
|
|
|
2063
2063
|
adminGetProject(projectString, options) {
|
|
2064
2064
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2065
2065
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminGetProject(projectString, options);
|
|
2066
|
-
return createRequestFunction$
|
|
2066
|
+
return createRequestFunction$b(localVarAxiosArgs, axios, BASE_PATH$b, configuration);
|
|
2067
2067
|
});
|
|
2068
2068
|
},
|
|
2069
2069
|
/**
|
|
@@ -2078,7 +2078,7 @@
|
|
|
2078
2078
|
adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options) {
|
|
2079
2079
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2080
2080
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options);
|
|
2081
|
-
return createRequestFunction$
|
|
2081
|
+
return createRequestFunction$b(localVarAxiosArgs, axios, BASE_PATH$b, configuration);
|
|
2082
2082
|
});
|
|
2083
2083
|
},
|
|
2084
2084
|
};
|
|
@@ -2155,14 +2155,14 @@
|
|
|
2155
2155
|
}
|
|
2156
2156
|
|
|
2157
2157
|
/* tslint:disable */
|
|
2158
|
-
const BASE_PATH$
|
|
2158
|
+
const BASE_PATH$a = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
|
|
2159
2159
|
/**
|
|
2160
2160
|
*
|
|
2161
2161
|
* @export
|
|
2162
2162
|
* @class RequiredError
|
|
2163
2163
|
* @extends {Error}
|
|
2164
2164
|
*/
|
|
2165
|
-
class RequiredError$
|
|
2165
|
+
class RequiredError$9 extends Error {
|
|
2166
2166
|
constructor(field, msg) {
|
|
2167
2167
|
super(msg);
|
|
2168
2168
|
this.field = field;
|
|
@@ -2175,22 +2175,22 @@
|
|
|
2175
2175
|
*
|
|
2176
2176
|
* @export
|
|
2177
2177
|
*/
|
|
2178
|
-
const DUMMY_BASE_URL$
|
|
2178
|
+
const DUMMY_BASE_URL$a = 'https://example.com';
|
|
2179
2179
|
/**
|
|
2180
2180
|
*
|
|
2181
2181
|
* @throws {RequiredError}
|
|
2182
2182
|
* @export
|
|
2183
2183
|
*/
|
|
2184
|
-
const assertParamExists$
|
|
2184
|
+
const assertParamExists$9 = function (functionName, paramName, paramValue) {
|
|
2185
2185
|
if (paramValue === null || paramValue === undefined) {
|
|
2186
|
-
throw new RequiredError$
|
|
2186
|
+
throw new RequiredError$9(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
2187
2187
|
}
|
|
2188
2188
|
};
|
|
2189
2189
|
/**
|
|
2190
2190
|
*
|
|
2191
2191
|
* @export
|
|
2192
2192
|
*/
|
|
2193
|
-
const setApiKeyToObject$
|
|
2193
|
+
const setApiKeyToObject$a = function (object, keyParamName, configuration) {
|
|
2194
2194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2195
2195
|
if (configuration && configuration.apiKey) {
|
|
2196
2196
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -2204,7 +2204,7 @@
|
|
|
2204
2204
|
*
|
|
2205
2205
|
* @export
|
|
2206
2206
|
*/
|
|
2207
|
-
const setSearchParams$
|
|
2207
|
+
const setSearchParams$a = function (url, ...objects) {
|
|
2208
2208
|
const searchParams = new URLSearchParams(url.search);
|
|
2209
2209
|
for (const object of objects) {
|
|
2210
2210
|
for (const key in object) {
|
|
@@ -2225,14 +2225,14 @@
|
|
|
2225
2225
|
*
|
|
2226
2226
|
* @export
|
|
2227
2227
|
*/
|
|
2228
|
-
const toPathString$
|
|
2228
|
+
const toPathString$a = function (url) {
|
|
2229
2229
|
return url.pathname + url.search + url.hash;
|
|
2230
2230
|
};
|
|
2231
2231
|
/**
|
|
2232
2232
|
*
|
|
2233
2233
|
* @export
|
|
2234
2234
|
*/
|
|
2235
|
-
const createRequestFunction$
|
|
2235
|
+
const createRequestFunction$a = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
2236
2236
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
2237
2237
|
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
2238
2238
|
return axios.request(axiosRequestArgs);
|
|
@@ -2256,11 +2256,11 @@
|
|
|
2256
2256
|
*/
|
|
2257
2257
|
blobDeleteFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2258
2258
|
// verify required parameter 'resourceId' is not null or undefined
|
|
2259
|
-
assertParamExists$
|
|
2259
|
+
assertParamExists$9('blobDeleteFileWithParameter', 'resourceId', resourceId);
|
|
2260
2260
|
const localVarPath = `/Blob/{resourceId}`
|
|
2261
2261
|
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
2262
2262
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2263
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2263
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$a);
|
|
2264
2264
|
let baseOptions;
|
|
2265
2265
|
if (configuration) {
|
|
2266
2266
|
baseOptions = configuration.baseOptions;
|
|
@@ -2269,15 +2269,15 @@
|
|
|
2269
2269
|
const localVarHeaderParameter = {};
|
|
2270
2270
|
const localVarQueryParameter = {};
|
|
2271
2271
|
// authentication JWT token required
|
|
2272
|
-
yield setApiKeyToObject$
|
|
2272
|
+
yield setApiKeyToObject$a(localVarHeaderParameter, "Authorization", configuration);
|
|
2273
2273
|
if (path !== undefined) {
|
|
2274
2274
|
localVarQueryParameter['path'] = path;
|
|
2275
2275
|
}
|
|
2276
|
-
setSearchParams$
|
|
2276
|
+
setSearchParams$a(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2277
2277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2278
2278
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2279
2279
|
return {
|
|
2280
|
-
url: toPathString$
|
|
2280
|
+
url: toPathString$a(localVarUrlObj),
|
|
2281
2281
|
options: localVarRequestOptions,
|
|
2282
2282
|
};
|
|
2283
2283
|
}),
|
|
@@ -2291,11 +2291,11 @@
|
|
|
2291
2291
|
*/
|
|
2292
2292
|
blobGetFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2293
2293
|
// verify required parameter 'resourceId' is not null or undefined
|
|
2294
|
-
assertParamExists$
|
|
2294
|
+
assertParamExists$9('blobGetFileWithParameter', 'resourceId', resourceId);
|
|
2295
2295
|
const localVarPath = `/Blob/{resourceId}`
|
|
2296
2296
|
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
2297
2297
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2298
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2298
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$a);
|
|
2299
2299
|
let baseOptions;
|
|
2300
2300
|
if (configuration) {
|
|
2301
2301
|
baseOptions = configuration.baseOptions;
|
|
@@ -2304,15 +2304,15 @@
|
|
|
2304
2304
|
const localVarHeaderParameter = {};
|
|
2305
2305
|
const localVarQueryParameter = {};
|
|
2306
2306
|
// authentication JWT token required
|
|
2307
|
-
yield setApiKeyToObject$
|
|
2307
|
+
yield setApiKeyToObject$a(localVarHeaderParameter, "Authorization", configuration);
|
|
2308
2308
|
if (path !== undefined) {
|
|
2309
2309
|
localVarQueryParameter['path'] = path;
|
|
2310
2310
|
}
|
|
2311
|
-
setSearchParams$
|
|
2311
|
+
setSearchParams$a(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2312
2312
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2313
2313
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2314
2314
|
return {
|
|
2315
|
-
url: toPathString$
|
|
2315
|
+
url: toPathString$a(localVarUrlObj),
|
|
2316
2316
|
options: localVarRequestOptions,
|
|
2317
2317
|
};
|
|
2318
2318
|
}),
|
|
@@ -2327,11 +2327,11 @@
|
|
|
2327
2327
|
*/
|
|
2328
2328
|
blobUploadFileWithParameter: (resourceId, path, files, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2329
2329
|
// verify required parameter 'resourceId' is not null or undefined
|
|
2330
|
-
assertParamExists$
|
|
2330
|
+
assertParamExists$9('blobUploadFileWithParameter', 'resourceId', resourceId);
|
|
2331
2331
|
const localVarPath = `/Blob/{resourceId}`
|
|
2332
2332
|
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
2333
2333
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2334
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2334
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$a);
|
|
2335
2335
|
let baseOptions;
|
|
2336
2336
|
if (configuration) {
|
|
2337
2337
|
baseOptions = configuration.baseOptions;
|
|
@@ -2341,7 +2341,7 @@
|
|
|
2341
2341
|
const localVarQueryParameter = {};
|
|
2342
2342
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
2343
2343
|
// authentication JWT token required
|
|
2344
|
-
yield setApiKeyToObject$
|
|
2344
|
+
yield setApiKeyToObject$a(localVarHeaderParameter, "Authorization", configuration);
|
|
2345
2345
|
if (path !== undefined) {
|
|
2346
2346
|
localVarQueryParameter['path'] = path;
|
|
2347
2347
|
}
|
|
@@ -2351,12 +2351,12 @@
|
|
|
2351
2351
|
});
|
|
2352
2352
|
}
|
|
2353
2353
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2354
|
-
setSearchParams$
|
|
2354
|
+
setSearchParams$a(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2355
2355
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2356
2356
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2357
2357
|
localVarRequestOptions.data = localVarFormParams;
|
|
2358
2358
|
return {
|
|
2359
|
-
url: toPathString$
|
|
2359
|
+
url: toPathString$a(localVarUrlObj),
|
|
2360
2360
|
options: localVarRequestOptions,
|
|
2361
2361
|
};
|
|
2362
2362
|
}),
|
|
@@ -2380,7 +2380,7 @@
|
|
|
2380
2380
|
blobDeleteFileWithParameter(resourceId, path, options) {
|
|
2381
2381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2382
2382
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.blobDeleteFileWithParameter(resourceId, path, options);
|
|
2383
|
-
return createRequestFunction$
|
|
2383
|
+
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2384
2384
|
});
|
|
2385
2385
|
},
|
|
2386
2386
|
/**
|
|
@@ -2394,7 +2394,7 @@
|
|
|
2394
2394
|
blobGetFileWithParameter(resourceId, path, options) {
|
|
2395
2395
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2396
2396
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.blobGetFileWithParameter(resourceId, path, options);
|
|
2397
|
-
return createRequestFunction$
|
|
2397
|
+
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2398
2398
|
});
|
|
2399
2399
|
},
|
|
2400
2400
|
/**
|
|
@@ -2409,7 +2409,7 @@
|
|
|
2409
2409
|
blobUploadFileWithParameter(resourceId, path, files, options) {
|
|
2410
2410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2411
2411
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.blobUploadFileWithParameter(resourceId, path, files, options);
|
|
2412
|
-
return createRequestFunction$
|
|
2412
|
+
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2413
2413
|
});
|
|
2414
2414
|
},
|
|
2415
2415
|
};
|
|
@@ -2459,14 +2459,14 @@
|
|
|
2459
2459
|
};
|
|
2460
2460
|
|
|
2461
2461
|
/* tslint:disable */
|
|
2462
|
-
const BASE_PATH$
|
|
2462
|
+
const BASE_PATH$9 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, "");
|
|
2463
2463
|
/**
|
|
2464
2464
|
*
|
|
2465
2465
|
* @export
|
|
2466
2466
|
* @class RequiredError
|
|
2467
2467
|
* @extends {Error}
|
|
2468
2468
|
*/
|
|
2469
|
-
class RequiredError$
|
|
2469
|
+
class RequiredError$8 extends Error {
|
|
2470
2470
|
constructor(field, msg) {
|
|
2471
2471
|
super(msg);
|
|
2472
2472
|
this.field = field;
|
|
@@ -2479,22 +2479,22 @@
|
|
|
2479
2479
|
*
|
|
2480
2480
|
* @export
|
|
2481
2481
|
*/
|
|
2482
|
-
const DUMMY_BASE_URL$
|
|
2482
|
+
const DUMMY_BASE_URL$9 = 'https://example.com';
|
|
2483
2483
|
/**
|
|
2484
2484
|
*
|
|
2485
2485
|
* @throws {RequiredError}
|
|
2486
2486
|
* @export
|
|
2487
2487
|
*/
|
|
2488
|
-
const assertParamExists$
|
|
2488
|
+
const assertParamExists$8 = function (functionName, paramName, paramValue) {
|
|
2489
2489
|
if (paramValue === null || paramValue === undefined) {
|
|
2490
|
-
throw new RequiredError$
|
|
2490
|
+
throw new RequiredError$8(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
2491
2491
|
}
|
|
2492
2492
|
};
|
|
2493
2493
|
/**
|
|
2494
2494
|
*
|
|
2495
2495
|
* @export
|
|
2496
2496
|
*/
|
|
2497
|
-
const setApiKeyToObject$
|
|
2497
|
+
const setApiKeyToObject$9 = function (object, keyParamName, configuration) {
|
|
2498
2498
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2499
2499
|
if (configuration && configuration.apiKey) {
|
|
2500
2500
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -2508,7 +2508,7 @@
|
|
|
2508
2508
|
*
|
|
2509
2509
|
* @export
|
|
2510
2510
|
*/
|
|
2511
|
-
const setSearchParams$
|
|
2511
|
+
const setSearchParams$9 = function (url, ...objects) {
|
|
2512
2512
|
const searchParams = new URLSearchParams(url.search);
|
|
2513
2513
|
for (const object of objects) {
|
|
2514
2514
|
for (const key in object) {
|
|
@@ -2529,7 +2529,7 @@
|
|
|
2529
2529
|
*
|
|
2530
2530
|
* @export
|
|
2531
2531
|
*/
|
|
2532
|
-
const serializeDataIfNeeded$
|
|
2532
|
+
const serializeDataIfNeeded$5 = function (value, requestOptions, configuration) {
|
|
2533
2533
|
const nonString = typeof value !== 'string';
|
|
2534
2534
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
2535
2535
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
@@ -2542,14 +2542,14 @@
|
|
|
2542
2542
|
*
|
|
2543
2543
|
* @export
|
|
2544
2544
|
*/
|
|
2545
|
-
const toPathString$
|
|
2545
|
+
const toPathString$9 = function (url) {
|
|
2546
2546
|
return url.pathname + url.search + url.hash;
|
|
2547
2547
|
};
|
|
2548
2548
|
/**
|
|
2549
2549
|
*
|
|
2550
2550
|
* @export
|
|
2551
2551
|
*/
|
|
2552
|
-
const createRequestFunction$
|
|
2552
|
+
const createRequestFunction$9 = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
2553
2553
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
2554
2554
|
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
2555
2555
|
return axios.request(axiosRequestArgs);
|
|
@@ -2572,11 +2572,11 @@
|
|
|
2572
2572
|
*/
|
|
2573
2573
|
metadataGetClassInstances: (className, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2574
2574
|
// verify required parameter 'className' is not null or undefined
|
|
2575
|
-
assertParamExists$
|
|
2575
|
+
assertParamExists$8('metadataGetClassInstances', 'className', className);
|
|
2576
2576
|
const localVarPath = `/Metadata/instances/{className}`
|
|
2577
2577
|
.replace(`{${"className"}}`, encodeURIComponent(String(className)));
|
|
2578
2578
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2579
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2579
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
2580
2580
|
let baseOptions;
|
|
2581
2581
|
if (configuration) {
|
|
2582
2582
|
baseOptions = configuration.baseOptions;
|
|
@@ -2585,12 +2585,12 @@
|
|
|
2585
2585
|
const localVarHeaderParameter = {};
|
|
2586
2586
|
const localVarQueryParameter = {};
|
|
2587
2587
|
// authentication JWT token required
|
|
2588
|
-
yield setApiKeyToObject$
|
|
2589
|
-
setSearchParams$
|
|
2588
|
+
yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
|
|
2589
|
+
setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2590
2590
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2591
2591
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2592
2592
|
return {
|
|
2593
|
-
url: toPathString$
|
|
2593
|
+
url: toPathString$9(localVarUrlObj),
|
|
2594
2594
|
options: localVarRequestOptions,
|
|
2595
2595
|
};
|
|
2596
2596
|
}),
|
|
@@ -2603,11 +2603,11 @@
|
|
|
2603
2603
|
*/
|
|
2604
2604
|
metadataGetProfile: (profile, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2605
2605
|
// verify required parameter 'profile' is not null or undefined
|
|
2606
|
-
assertParamExists$
|
|
2606
|
+
assertParamExists$8('metadataGetProfile', 'profile', profile);
|
|
2607
2607
|
const localVarPath = `/Metadata/profiles/{profile}`
|
|
2608
2608
|
.replace(`{${"profile"}}`, encodeURIComponent(String(profile)));
|
|
2609
2609
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2610
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2610
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
2611
2611
|
let baseOptions;
|
|
2612
2612
|
if (configuration) {
|
|
2613
2613
|
baseOptions = configuration.baseOptions;
|
|
@@ -2616,12 +2616,12 @@
|
|
|
2616
2616
|
const localVarHeaderParameter = {};
|
|
2617
2617
|
const localVarQueryParameter = {};
|
|
2618
2618
|
// authentication JWT token required
|
|
2619
|
-
yield setApiKeyToObject$
|
|
2620
|
-
setSearchParams$
|
|
2619
|
+
yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
|
|
2620
|
+
setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2621
2621
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2622
2622
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2623
2623
|
return {
|
|
2624
|
-
url: toPathString$
|
|
2624
|
+
url: toPathString$9(localVarUrlObj),
|
|
2625
2625
|
options: localVarRequestOptions,
|
|
2626
2626
|
};
|
|
2627
2627
|
}),
|
|
@@ -2634,7 +2634,7 @@
|
|
|
2634
2634
|
metadataGetProfiles: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2635
2635
|
const localVarPath = `/Metadata/profiles`;
|
|
2636
2636
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2637
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2637
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
2638
2638
|
let baseOptions;
|
|
2639
2639
|
if (configuration) {
|
|
2640
2640
|
baseOptions = configuration.baseOptions;
|
|
@@ -2643,12 +2643,12 @@
|
|
|
2643
2643
|
const localVarHeaderParameter = {};
|
|
2644
2644
|
const localVarQueryParameter = {};
|
|
2645
2645
|
// authentication JWT token required
|
|
2646
|
-
yield setApiKeyToObject$
|
|
2647
|
-
setSearchParams$
|
|
2646
|
+
yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
|
|
2647
|
+
setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2648
2648
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2649
2649
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2650
2650
|
return {
|
|
2651
|
-
url: toPathString$
|
|
2651
|
+
url: toPathString$9(localVarUrlObj),
|
|
2652
2652
|
options: localVarRequestOptions,
|
|
2653
2653
|
};
|
|
2654
2654
|
}),
|
|
@@ -2661,7 +2661,7 @@
|
|
|
2661
2661
|
metadataGetVocabularies: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2662
2662
|
const localVarPath = `/Metadata/vocabularies`;
|
|
2663
2663
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2664
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2664
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
2665
2665
|
let baseOptions;
|
|
2666
2666
|
if (configuration) {
|
|
2667
2667
|
baseOptions = configuration.baseOptions;
|
|
@@ -2670,12 +2670,12 @@
|
|
|
2670
2670
|
const localVarHeaderParameter = {};
|
|
2671
2671
|
const localVarQueryParameter = {};
|
|
2672
2672
|
// authentication JWT token required
|
|
2673
|
-
yield setApiKeyToObject$
|
|
2674
|
-
setSearchParams$
|
|
2673
|
+
yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
|
|
2674
|
+
setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2675
2675
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2676
2676
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2677
2677
|
return {
|
|
2678
|
-
url: toPathString$
|
|
2678
|
+
url: toPathString$9(localVarUrlObj),
|
|
2679
2679
|
options: localVarRequestOptions,
|
|
2680
2680
|
};
|
|
2681
2681
|
}),
|
|
@@ -2688,11 +2688,11 @@
|
|
|
2688
2688
|
*/
|
|
2689
2689
|
metadataGetVocabulary: (path, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2690
2690
|
// verify required parameter 'path' is not null or undefined
|
|
2691
|
-
assertParamExists$
|
|
2691
|
+
assertParamExists$8('metadataGetVocabulary', 'path', path);
|
|
2692
2692
|
const localVarPath = `/Metadata/vocabularies/{path}`
|
|
2693
2693
|
.replace(`{${"path"}}`, encodeURIComponent(String(path)));
|
|
2694
2694
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2695
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2695
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
2696
2696
|
let baseOptions;
|
|
2697
2697
|
if (configuration) {
|
|
2698
2698
|
baseOptions = configuration.baseOptions;
|
|
@@ -2701,12 +2701,12 @@
|
|
|
2701
2701
|
const localVarHeaderParameter = {};
|
|
2702
2702
|
const localVarQueryParameter = {};
|
|
2703
2703
|
// authentication JWT token required
|
|
2704
|
-
yield setApiKeyToObject$
|
|
2705
|
-
setSearchParams$
|
|
2704
|
+
yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
|
|
2705
|
+
setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2706
2706
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2707
2707
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2708
2708
|
return {
|
|
2709
|
-
url: toPathString$
|
|
2709
|
+
url: toPathString$9(localVarUrlObj),
|
|
2710
2710
|
options: localVarRequestOptions,
|
|
2711
2711
|
};
|
|
2712
2712
|
}),
|
|
@@ -2719,10 +2719,10 @@
|
|
|
2719
2719
|
*/
|
|
2720
2720
|
metadataSaveApplicationProfile: (applicationProfile, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2721
2721
|
// verify required parameter 'applicationProfile' is not null or undefined
|
|
2722
|
-
assertParamExists$
|
|
2722
|
+
assertParamExists$8('metadataSaveApplicationProfile', 'applicationProfile', applicationProfile);
|
|
2723
2723
|
const localVarPath = `/Metadata/profiles`;
|
|
2724
2724
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2725
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2725
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
2726
2726
|
let baseOptions;
|
|
2727
2727
|
if (configuration) {
|
|
2728
2728
|
baseOptions = configuration.baseOptions;
|
|
@@ -2731,14 +2731,14 @@
|
|
|
2731
2731
|
const localVarHeaderParameter = {};
|
|
2732
2732
|
const localVarQueryParameter = {};
|
|
2733
2733
|
// authentication JWT token required
|
|
2734
|
-
yield setApiKeyToObject$
|
|
2734
|
+
yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
|
|
2735
2735
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2736
|
-
setSearchParams$
|
|
2736
|
+
setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2737
2737
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2738
2738
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2739
|
-
localVarRequestOptions.data = serializeDataIfNeeded$
|
|
2739
|
+
localVarRequestOptions.data = serializeDataIfNeeded$5(applicationProfile, localVarRequestOptions, configuration);
|
|
2740
2740
|
return {
|
|
2741
|
-
url: toPathString$
|
|
2741
|
+
url: toPathString$9(localVarUrlObj),
|
|
2742
2742
|
options: localVarRequestOptions,
|
|
2743
2743
|
};
|
|
2744
2744
|
}),
|
|
@@ -2761,7 +2761,7 @@
|
|
|
2761
2761
|
metadataGetClassInstances(className, options) {
|
|
2762
2762
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2763
2763
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetClassInstances(className, options);
|
|
2764
|
-
return createRequestFunction$
|
|
2764
|
+
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
2765
2765
|
});
|
|
2766
2766
|
},
|
|
2767
2767
|
/**
|
|
@@ -2774,7 +2774,7 @@
|
|
|
2774
2774
|
metadataGetProfile(profile, options) {
|
|
2775
2775
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2776
2776
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetProfile(profile, options);
|
|
2777
|
-
return createRequestFunction$
|
|
2777
|
+
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
2778
2778
|
});
|
|
2779
2779
|
},
|
|
2780
2780
|
/**
|
|
@@ -2786,7 +2786,7 @@
|
|
|
2786
2786
|
metadataGetProfiles(options) {
|
|
2787
2787
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2788
2788
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetProfiles(options);
|
|
2789
|
-
return createRequestFunction$
|
|
2789
|
+
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
2790
2790
|
});
|
|
2791
2791
|
},
|
|
2792
2792
|
/**
|
|
@@ -2798,7 +2798,7 @@
|
|
|
2798
2798
|
metadataGetVocabularies(options) {
|
|
2799
2799
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2800
2800
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetVocabularies(options);
|
|
2801
|
-
return createRequestFunction$
|
|
2801
|
+
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
2802
2802
|
});
|
|
2803
2803
|
},
|
|
2804
2804
|
/**
|
|
@@ -2811,7 +2811,7 @@
|
|
|
2811
2811
|
metadataGetVocabulary(path, options) {
|
|
2812
2812
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2813
2813
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetVocabulary(path, options);
|
|
2814
|
-
return createRequestFunction$
|
|
2814
|
+
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
2815
2815
|
});
|
|
2816
2816
|
},
|
|
2817
2817
|
/**
|
|
@@ -2824,7 +2824,7 @@
|
|
|
2824
2824
|
metadataSaveApplicationProfile(applicationProfile, options) {
|
|
2825
2825
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2826
2826
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataSaveApplicationProfile(applicationProfile, options);
|
|
2827
|
-
return createRequestFunction$
|
|
2827
|
+
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
2828
2828
|
});
|
|
2829
2829
|
},
|
|
2830
2830
|
};
|
|
@@ -2898,14 +2898,14 @@
|
|
|
2898
2898
|
};
|
|
2899
2899
|
|
|
2900
2900
|
/* tslint:disable */
|
|
2901
|
-
const BASE_PATH$
|
|
2901
|
+
const BASE_PATH$8 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, "");
|
|
2902
2902
|
/**
|
|
2903
2903
|
*
|
|
2904
2904
|
* @export
|
|
2905
2905
|
* @class RequiredError
|
|
2906
2906
|
* @extends {Error}
|
|
2907
2907
|
*/
|
|
2908
|
-
class RequiredError$
|
|
2908
|
+
class RequiredError$7 extends Error {
|
|
2909
2909
|
constructor(field, msg) {
|
|
2910
2910
|
super(msg);
|
|
2911
2911
|
this.field = field;
|
|
@@ -2918,22 +2918,22 @@
|
|
|
2918
2918
|
*
|
|
2919
2919
|
* @export
|
|
2920
2920
|
*/
|
|
2921
|
-
const DUMMY_BASE_URL$
|
|
2921
|
+
const DUMMY_BASE_URL$8 = 'https://example.com';
|
|
2922
2922
|
/**
|
|
2923
2923
|
*
|
|
2924
2924
|
* @throws {RequiredError}
|
|
2925
2925
|
* @export
|
|
2926
2926
|
*/
|
|
2927
|
-
const assertParamExists$
|
|
2927
|
+
const assertParamExists$7 = function (functionName, paramName, paramValue) {
|
|
2928
2928
|
if (paramValue === null || paramValue === undefined) {
|
|
2929
|
-
throw new RequiredError$
|
|
2929
|
+
throw new RequiredError$7(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
2930
2930
|
}
|
|
2931
2931
|
};
|
|
2932
2932
|
/**
|
|
2933
2933
|
*
|
|
2934
2934
|
* @export
|
|
2935
2935
|
*/
|
|
2936
|
-
const setApiKeyToObject$
|
|
2936
|
+
const setApiKeyToObject$8 = function (object, keyParamName, configuration) {
|
|
2937
2937
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2938
2938
|
if (configuration && configuration.apiKey) {
|
|
2939
2939
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -2947,7 +2947,7 @@
|
|
|
2947
2947
|
*
|
|
2948
2948
|
* @export
|
|
2949
2949
|
*/
|
|
2950
|
-
const setSearchParams$
|
|
2950
|
+
const setSearchParams$8 = function (url, ...objects) {
|
|
2951
2951
|
const searchParams = new URLSearchParams(url.search);
|
|
2952
2952
|
for (const object of objects) {
|
|
2953
2953
|
for (const key in object) {
|
|
@@ -2968,14 +2968,14 @@
|
|
|
2968
2968
|
*
|
|
2969
2969
|
* @export
|
|
2970
2970
|
*/
|
|
2971
|
-
const toPathString$
|
|
2971
|
+
const toPathString$8 = function (url) {
|
|
2972
2972
|
return url.pathname + url.search + url.hash;
|
|
2973
2973
|
};
|
|
2974
2974
|
/**
|
|
2975
2975
|
*
|
|
2976
2976
|
* @export
|
|
2977
2977
|
*/
|
|
2978
|
-
const createRequestFunction$
|
|
2978
|
+
const createRequestFunction$8 = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
2979
2979
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
2980
2980
|
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
2981
2981
|
return axios.request(axiosRequestArgs);
|
|
@@ -2998,7 +2998,7 @@
|
|
|
2998
2998
|
noticeGetMaintenance: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2999
2999
|
const localVarPath = `/Notice/getMaintenance`;
|
|
3000
3000
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3001
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
3001
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$8);
|
|
3002
3002
|
let baseOptions;
|
|
3003
3003
|
if (configuration) {
|
|
3004
3004
|
baseOptions = configuration.baseOptions;
|
|
@@ -3007,12 +3007,12 @@
|
|
|
3007
3007
|
const localVarHeaderParameter = {};
|
|
3008
3008
|
const localVarQueryParameter = {};
|
|
3009
3009
|
// authentication JWT token required
|
|
3010
|
-
yield setApiKeyToObject$
|
|
3011
|
-
setSearchParams$
|
|
3010
|
+
yield setApiKeyToObject$8(localVarHeaderParameter, "Authorization", configuration);
|
|
3011
|
+
setSearchParams$8(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3012
3012
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3013
3013
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3014
3014
|
return {
|
|
3015
|
-
url: toPathString$
|
|
3015
|
+
url: toPathString$8(localVarUrlObj),
|
|
3016
3016
|
options: localVarRequestOptions,
|
|
3017
3017
|
};
|
|
3018
3018
|
}),
|
|
@@ -3026,11 +3026,11 @@
|
|
|
3026
3026
|
*/
|
|
3027
3027
|
noticeGetNotice: (documentSlug, language, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3028
3028
|
// verify required parameter 'documentSlug' is not null or undefined
|
|
3029
|
-
assertParamExists$
|
|
3029
|
+
assertParamExists$7('noticeGetNotice', 'documentSlug', documentSlug);
|
|
3030
3030
|
const localVarPath = `/Notice/{documentSlug}`
|
|
3031
3031
|
.replace(`{${"documentSlug"}}`, encodeURIComponent(String(documentSlug)));
|
|
3032
3032
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3033
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
3033
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$8);
|
|
3034
3034
|
let baseOptions;
|
|
3035
3035
|
if (configuration) {
|
|
3036
3036
|
baseOptions = configuration.baseOptions;
|
|
@@ -3039,15 +3039,15 @@
|
|
|
3039
3039
|
const localVarHeaderParameter = {};
|
|
3040
3040
|
const localVarQueryParameter = {};
|
|
3041
3041
|
// authentication JWT token required
|
|
3042
|
-
yield setApiKeyToObject$
|
|
3042
|
+
yield setApiKeyToObject$8(localVarHeaderParameter, "Authorization", configuration);
|
|
3043
3043
|
if (language !== undefined) {
|
|
3044
3044
|
localVarQueryParameter['language'] = language;
|
|
3045
3045
|
}
|
|
3046
|
-
setSearchParams$
|
|
3046
|
+
setSearchParams$8(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3047
3047
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3048
3048
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3049
3049
|
return {
|
|
3050
|
-
url: toPathString$
|
|
3050
|
+
url: toPathString$8(localVarUrlObj),
|
|
3051
3051
|
options: localVarRequestOptions,
|
|
3052
3052
|
};
|
|
3053
3053
|
}),
|
|
@@ -3069,7 +3069,7 @@
|
|
|
3069
3069
|
noticeGetMaintenance(options) {
|
|
3070
3070
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3071
3071
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.noticeGetMaintenance(options);
|
|
3072
|
-
return createRequestFunction$
|
|
3072
|
+
return createRequestFunction$8(localVarAxiosArgs, axios, BASE_PATH$8, configuration);
|
|
3073
3073
|
});
|
|
3074
3074
|
},
|
|
3075
3075
|
/**
|
|
@@ -3083,7 +3083,7 @@
|
|
|
3083
3083
|
noticeGetNotice(documentSlug, language, options) {
|
|
3084
3084
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3085
3085
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.noticeGetNotice(documentSlug, language, options);
|
|
3086
|
-
return createRequestFunction$
|
|
3086
|
+
return createRequestFunction$8(localVarAxiosArgs, axios, BASE_PATH$8, configuration);
|
|
3087
3087
|
});
|
|
3088
3088
|
},
|
|
3089
3089
|
};
|
|
@@ -3119,14 +3119,14 @@
|
|
|
3119
3119
|
};
|
|
3120
3120
|
|
|
3121
3121
|
/* tslint:disable */
|
|
3122
|
-
const BASE_PATH$
|
|
3122
|
+
const BASE_PATH$7 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, "");
|
|
3123
3123
|
/**
|
|
3124
3124
|
*
|
|
3125
3125
|
* @export
|
|
3126
3126
|
* @class RequiredError
|
|
3127
3127
|
* @extends {Error}
|
|
3128
3128
|
*/
|
|
3129
|
-
class RequiredError$
|
|
3129
|
+
class RequiredError$6 extends Error {
|
|
3130
3130
|
constructor(field, msg) {
|
|
3131
3131
|
super(msg);
|
|
3132
3132
|
this.field = field;
|
|
@@ -3139,22 +3139,22 @@
|
|
|
3139
3139
|
*
|
|
3140
3140
|
* @export
|
|
3141
3141
|
*/
|
|
3142
|
-
const DUMMY_BASE_URL$
|
|
3142
|
+
const DUMMY_BASE_URL$7 = 'https://example.com';
|
|
3143
3143
|
/**
|
|
3144
3144
|
*
|
|
3145
3145
|
* @throws {RequiredError}
|
|
3146
3146
|
* @export
|
|
3147
3147
|
*/
|
|
3148
|
-
const assertParamExists$
|
|
3148
|
+
const assertParamExists$6 = function (functionName, paramName, paramValue) {
|
|
3149
3149
|
if (paramValue === null || paramValue === undefined) {
|
|
3150
|
-
throw new RequiredError$
|
|
3150
|
+
throw new RequiredError$6(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
3151
3151
|
}
|
|
3152
3152
|
};
|
|
3153
3153
|
/**
|
|
3154
3154
|
*
|
|
3155
3155
|
* @export
|
|
3156
3156
|
*/
|
|
3157
|
-
const setApiKeyToObject$
|
|
3157
|
+
const setApiKeyToObject$7 = function (object, keyParamName, configuration) {
|
|
3158
3158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3159
3159
|
if (configuration && configuration.apiKey) {
|
|
3160
3160
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -3168,7 +3168,7 @@
|
|
|
3168
3168
|
*
|
|
3169
3169
|
* @export
|
|
3170
3170
|
*/
|
|
3171
|
-
const setSearchParams$
|
|
3171
|
+
const setSearchParams$7 = function (url, ...objects) {
|
|
3172
3172
|
const searchParams = new URLSearchParams(url.search);
|
|
3173
3173
|
for (const object of objects) {
|
|
3174
3174
|
for (const key in object) {
|
|
@@ -3189,14 +3189,14 @@
|
|
|
3189
3189
|
*
|
|
3190
3190
|
* @export
|
|
3191
3191
|
*/
|
|
3192
|
-
const toPathString$
|
|
3192
|
+
const toPathString$7 = function (url) {
|
|
3193
3193
|
return url.pathname + url.search + url.hash;
|
|
3194
3194
|
};
|
|
3195
3195
|
/**
|
|
3196
3196
|
*
|
|
3197
3197
|
* @export
|
|
3198
3198
|
*/
|
|
3199
|
-
const createRequestFunction$
|
|
3199
|
+
const createRequestFunction$7 = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
3200
3200
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
3201
3201
|
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
3202
3202
|
return axios.request(axiosRequestArgs);
|
|
@@ -3219,11 +3219,11 @@
|
|
|
3219
3219
|
*/
|
|
3220
3220
|
organizationGetOrganization: (url, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3221
3221
|
// verify required parameter 'url' is not null or undefined
|
|
3222
|
-
assertParamExists$
|
|
3222
|
+
assertParamExists$6('organizationGetOrganization', 'url', url);
|
|
3223
3223
|
const localVarPath = `/Organization/{url}`
|
|
3224
3224
|
.replace(`{${"url"}}`, encodeURIComponent(String(url)));
|
|
3225
3225
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3226
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
3226
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$7);
|
|
3227
3227
|
let baseOptions;
|
|
3228
3228
|
if (configuration) {
|
|
3229
3229
|
baseOptions = configuration.baseOptions;
|
|
@@ -3232,12 +3232,12 @@
|
|
|
3232
3232
|
const localVarHeaderParameter = {};
|
|
3233
3233
|
const localVarQueryParameter = {};
|
|
3234
3234
|
// authentication JWT token required
|
|
3235
|
-
yield setApiKeyToObject$
|
|
3236
|
-
setSearchParams$
|
|
3235
|
+
yield setApiKeyToObject$7(localVarHeaderParameter, "Authorization", configuration);
|
|
3236
|
+
setSearchParams$7(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3237
3237
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3238
3238
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3239
3239
|
return {
|
|
3240
|
-
url: toPathString$
|
|
3240
|
+
url: toPathString$7(localVarUrlObj),
|
|
3241
3241
|
options: localVarRequestOptions,
|
|
3242
3242
|
};
|
|
3243
3243
|
}),
|
|
@@ -3251,7 +3251,7 @@
|
|
|
3251
3251
|
organizationGetROR: (filter, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3252
3252
|
const localVarPath = `/Organization/-/ror`;
|
|
3253
3253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3254
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
3254
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$7);
|
|
3255
3255
|
let baseOptions;
|
|
3256
3256
|
if (configuration) {
|
|
3257
3257
|
baseOptions = configuration.baseOptions;
|
|
@@ -3260,15 +3260,15 @@
|
|
|
3260
3260
|
const localVarHeaderParameter = {};
|
|
3261
3261
|
const localVarQueryParameter = {};
|
|
3262
3262
|
// authentication JWT token required
|
|
3263
|
-
yield setApiKeyToObject$
|
|
3263
|
+
yield setApiKeyToObject$7(localVarHeaderParameter, "Authorization", configuration);
|
|
3264
3264
|
if (filter !== undefined) {
|
|
3265
3265
|
localVarQueryParameter['filter'] = filter;
|
|
3266
3266
|
}
|
|
3267
|
-
setSearchParams$
|
|
3267
|
+
setSearchParams$7(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3268
3268
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3269
3269
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3270
3270
|
return {
|
|
3271
|
-
url: toPathString$
|
|
3271
|
+
url: toPathString$7(localVarUrlObj),
|
|
3272
3272
|
options: localVarRequestOptions,
|
|
3273
3273
|
};
|
|
3274
3274
|
}),
|
|
@@ -3283,7 +3283,7 @@
|
|
|
3283
3283
|
organizationIndex: (member, filter, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3284
3284
|
const localVarPath = `/Organization`;
|
|
3285
3285
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3286
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
3286
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$7);
|
|
3287
3287
|
let baseOptions;
|
|
3288
3288
|
if (configuration) {
|
|
3289
3289
|
baseOptions = configuration.baseOptions;
|
|
@@ -3292,18 +3292,18 @@
|
|
|
3292
3292
|
const localVarHeaderParameter = {};
|
|
3293
3293
|
const localVarQueryParameter = {};
|
|
3294
3294
|
// authentication JWT token required
|
|
3295
|
-
yield setApiKeyToObject$
|
|
3295
|
+
yield setApiKeyToObject$7(localVarHeaderParameter, "Authorization", configuration);
|
|
3296
3296
|
if (member !== undefined) {
|
|
3297
3297
|
localVarQueryParameter['member'] = member;
|
|
3298
3298
|
}
|
|
3299
3299
|
if (filter !== undefined) {
|
|
3300
3300
|
localVarQueryParameter['filter'] = filter;
|
|
3301
3301
|
}
|
|
3302
|
-
setSearchParams$
|
|
3302
|
+
setSearchParams$7(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3303
3303
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3304
3304
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3305
3305
|
return {
|
|
3306
|
-
url: toPathString$
|
|
3306
|
+
url: toPathString$7(localVarUrlObj),
|
|
3307
3307
|
options: localVarRequestOptions,
|
|
3308
3308
|
};
|
|
3309
3309
|
}),
|
|
@@ -3316,11 +3316,11 @@
|
|
|
3316
3316
|
*/
|
|
3317
3317
|
organizationIsMember: (url, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3318
3318
|
// verify required parameter 'url' is not null or undefined
|
|
3319
|
-
assertParamExists$
|
|
3319
|
+
assertParamExists$6('organizationIsMember', 'url', url);
|
|
3320
3320
|
const localVarPath = `/Organization/-/isMember/{url}`
|
|
3321
3321
|
.replace(`{${"url"}}`, encodeURIComponent(String(url)));
|
|
3322
3322
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3323
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
3323
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$7);
|
|
3324
3324
|
let baseOptions;
|
|
3325
3325
|
if (configuration) {
|
|
3326
3326
|
baseOptions = configuration.baseOptions;
|
|
@@ -3329,12 +3329,12 @@
|
|
|
3329
3329
|
const localVarHeaderParameter = {};
|
|
3330
3330
|
const localVarQueryParameter = {};
|
|
3331
3331
|
// authentication JWT token required
|
|
3332
|
-
yield setApiKeyToObject$
|
|
3333
|
-
setSearchParams$
|
|
3332
|
+
yield setApiKeyToObject$7(localVarHeaderParameter, "Authorization", configuration);
|
|
3333
|
+
setSearchParams$7(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3334
3334
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3335
3335
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3336
3336
|
return {
|
|
3337
|
-
url: toPathString$
|
|
3337
|
+
url: toPathString$7(localVarUrlObj),
|
|
3338
3338
|
options: localVarRequestOptions,
|
|
3339
3339
|
};
|
|
3340
3340
|
}),
|
|
@@ -3347,7 +3347,7 @@
|
|
|
3347
3347
|
organizationIsMember2: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3348
3348
|
const localVarPath = `/Organization/-/isMember`;
|
|
3349
3349
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3350
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
3350
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$7);
|
|
3351
3351
|
let baseOptions;
|
|
3352
3352
|
if (configuration) {
|
|
3353
3353
|
baseOptions = configuration.baseOptions;
|
|
@@ -3356,12 +3356,12 @@
|
|
|
3356
3356
|
const localVarHeaderParameter = {};
|
|
3357
3357
|
const localVarQueryParameter = {};
|
|
3358
3358
|
// authentication JWT token required
|
|
3359
|
-
yield setApiKeyToObject$
|
|
3360
|
-
setSearchParams$
|
|
3359
|
+
yield setApiKeyToObject$7(localVarHeaderParameter, "Authorization", configuration);
|
|
3360
|
+
setSearchParams$7(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3361
3361
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3362
3362
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3363
3363
|
return {
|
|
3364
|
-
url: toPathString$
|
|
3364
|
+
url: toPathString$7(localVarUrlObj),
|
|
3365
3365
|
options: localVarRequestOptions,
|
|
3366
3366
|
};
|
|
3367
3367
|
}),
|
|
@@ -3384,7 +3384,7 @@
|
|
|
3384
3384
|
organizationGetOrganization(url, options) {
|
|
3385
3385
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3386
3386
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationGetOrganization(url, options);
|
|
3387
|
-
return createRequestFunction$
|
|
3387
|
+
return createRequestFunction$7(localVarAxiosArgs, axios, BASE_PATH$7, configuration);
|
|
3388
3388
|
});
|
|
3389
3389
|
},
|
|
3390
3390
|
/**
|
|
@@ -3397,7 +3397,7 @@
|
|
|
3397
3397
|
organizationGetROR(filter, options) {
|
|
3398
3398
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3399
3399
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationGetROR(filter, options);
|
|
3400
|
-
return createRequestFunction$
|
|
3400
|
+
return createRequestFunction$7(localVarAxiosArgs, axios, BASE_PATH$7, configuration);
|
|
3401
3401
|
});
|
|
3402
3402
|
},
|
|
3403
3403
|
/**
|
|
@@ -3411,7 +3411,7 @@
|
|
|
3411
3411
|
organizationIndex(member, filter, options) {
|
|
3412
3412
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3413
3413
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationIndex(member, filter, options);
|
|
3414
|
-
return createRequestFunction$
|
|
3414
|
+
return createRequestFunction$7(localVarAxiosArgs, axios, BASE_PATH$7, configuration);
|
|
3415
3415
|
});
|
|
3416
3416
|
},
|
|
3417
3417
|
/**
|
|
@@ -3424,7 +3424,7 @@
|
|
|
3424
3424
|
organizationIsMember(url, options) {
|
|
3425
3425
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3426
3426
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationIsMember(url, options);
|
|
3427
|
-
return createRequestFunction$
|
|
3427
|
+
return createRequestFunction$7(localVarAxiosArgs, axios, BASE_PATH$7, configuration);
|
|
3428
3428
|
});
|
|
3429
3429
|
},
|
|
3430
3430
|
/**
|
|
@@ -3436,7 +3436,7 @@
|
|
|
3436
3436
|
organizationIsMember2(options) {
|
|
3437
3437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3438
3438
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationIsMember2(options);
|
|
3439
|
-
return createRequestFunction$
|
|
3439
|
+
return createRequestFunction$7(localVarAxiosArgs, axios, BASE_PATH$7, configuration);
|
|
3440
3440
|
});
|
|
3441
3441
|
},
|
|
3442
3442
|
};
|
|
@@ -3501,6 +3501,241 @@
|
|
|
3501
3501
|
};
|
|
3502
3502
|
};
|
|
3503
3503
|
|
|
3504
|
+
/* tslint:disable */
|
|
3505
|
+
const BASE_PATH$6 = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Pid".replace(/\/+$/, "");
|
|
3506
|
+
/**
|
|
3507
|
+
*
|
|
3508
|
+
* @export
|
|
3509
|
+
* @class RequiredError
|
|
3510
|
+
* @extends {Error}
|
|
3511
|
+
*/
|
|
3512
|
+
class RequiredError$5 extends Error {
|
|
3513
|
+
constructor(field, msg) {
|
|
3514
|
+
super(msg);
|
|
3515
|
+
this.field = field;
|
|
3516
|
+
this.name = "RequiredError";
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
/* tslint:disable */
|
|
3521
|
+
/**
|
|
3522
|
+
*
|
|
3523
|
+
* @export
|
|
3524
|
+
*/
|
|
3525
|
+
const DUMMY_BASE_URL$6 = 'https://example.com';
|
|
3526
|
+
/**
|
|
3527
|
+
*
|
|
3528
|
+
* @throws {RequiredError}
|
|
3529
|
+
* @export
|
|
3530
|
+
*/
|
|
3531
|
+
const assertParamExists$5 = function (functionName, paramName, paramValue) {
|
|
3532
|
+
if (paramValue === null || paramValue === undefined) {
|
|
3533
|
+
throw new RequiredError$5(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
3534
|
+
}
|
|
3535
|
+
};
|
|
3536
|
+
/**
|
|
3537
|
+
*
|
|
3538
|
+
* @export
|
|
3539
|
+
*/
|
|
3540
|
+
const setApiKeyToObject$6 = function (object, keyParamName, configuration) {
|
|
3541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3542
|
+
if (configuration && configuration.apiKey) {
|
|
3543
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
3544
|
+
? yield configuration.apiKey(keyParamName)
|
|
3545
|
+
: yield configuration.apiKey;
|
|
3546
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
3547
|
+
}
|
|
3548
|
+
});
|
|
3549
|
+
};
|
|
3550
|
+
/**
|
|
3551
|
+
*
|
|
3552
|
+
* @export
|
|
3553
|
+
*/
|
|
3554
|
+
const setSearchParams$6 = function (url, ...objects) {
|
|
3555
|
+
const searchParams = new URLSearchParams(url.search);
|
|
3556
|
+
for (const object of objects) {
|
|
3557
|
+
for (const key in object) {
|
|
3558
|
+
if (Array.isArray(object[key])) {
|
|
3559
|
+
searchParams.delete(key);
|
|
3560
|
+
for (const item of object[key]) {
|
|
3561
|
+
searchParams.append(key, item);
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
else {
|
|
3565
|
+
searchParams.set(key, object[key]);
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
url.search = searchParams.toString();
|
|
3570
|
+
};
|
|
3571
|
+
/**
|
|
3572
|
+
*
|
|
3573
|
+
* @export
|
|
3574
|
+
*/
|
|
3575
|
+
const serializeDataIfNeeded$4 = function (value, requestOptions, configuration) {
|
|
3576
|
+
const nonString = typeof value !== 'string';
|
|
3577
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
3578
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
3579
|
+
: nonString;
|
|
3580
|
+
return needsSerialization
|
|
3581
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
3582
|
+
: (value || "");
|
|
3583
|
+
};
|
|
3584
|
+
/**
|
|
3585
|
+
*
|
|
3586
|
+
* @export
|
|
3587
|
+
*/
|
|
3588
|
+
const toPathString$6 = function (url) {
|
|
3589
|
+
return url.pathname + url.search + url.hash;
|
|
3590
|
+
};
|
|
3591
|
+
/**
|
|
3592
|
+
*
|
|
3593
|
+
* @export
|
|
3594
|
+
*/
|
|
3595
|
+
const createRequestFunction$6 = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
3596
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
3597
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
3598
|
+
return axios.request(axiosRequestArgs);
|
|
3599
|
+
};
|
|
3600
|
+
};
|
|
3601
|
+
|
|
3602
|
+
/* tslint:disable */
|
|
3603
|
+
/**
|
|
3604
|
+
* PidApi - axios parameter creator
|
|
3605
|
+
* @export
|
|
3606
|
+
*/
|
|
3607
|
+
const PidApiAxiosParamCreator = function (configuration) {
|
|
3608
|
+
return {
|
|
3609
|
+
/**
|
|
3610
|
+
*
|
|
3611
|
+
* @summary Returns a 200, if a PID is valid.
|
|
3612
|
+
* @param {string} pid PID
|
|
3613
|
+
* @param {*} [options] Override http request option.
|
|
3614
|
+
* @throws {RequiredError}
|
|
3615
|
+
*/
|
|
3616
|
+
pidIsValid: (pid, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3617
|
+
// verify required parameter 'pid' is not null or undefined
|
|
3618
|
+
assertParamExists$5('pidIsValid', 'pid', pid);
|
|
3619
|
+
const localVarPath = `/Pid/valid/{pid}`
|
|
3620
|
+
.replace(`{${"pid"}}`, encodeURIComponent(String(pid)));
|
|
3621
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3622
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
3623
|
+
let baseOptions;
|
|
3624
|
+
if (configuration) {
|
|
3625
|
+
baseOptions = configuration.baseOptions;
|
|
3626
|
+
}
|
|
3627
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3628
|
+
const localVarHeaderParameter = {};
|
|
3629
|
+
const localVarQueryParameter = {};
|
|
3630
|
+
// authentication JWT token required
|
|
3631
|
+
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
3632
|
+
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3633
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3634
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3635
|
+
return {
|
|
3636
|
+
url: toPathString$6(localVarUrlObj),
|
|
3637
|
+
options: localVarRequestOptions,
|
|
3638
|
+
};
|
|
3639
|
+
}),
|
|
3640
|
+
/**
|
|
3641
|
+
*
|
|
3642
|
+
* @summary Sends a request to the pid owner.
|
|
3643
|
+
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
|
|
3644
|
+
* @param {*} [options] Override http request option.
|
|
3645
|
+
* @throws {RequiredError}
|
|
3646
|
+
*/
|
|
3647
|
+
pidSendMailToOwner: (messageObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3648
|
+
// verify required parameter 'messageObject' is not null or undefined
|
|
3649
|
+
assertParamExists$5('pidSendMailToOwner', 'messageObject', messageObject);
|
|
3650
|
+
const localVarPath = `/Pid/sendMailToOwner`;
|
|
3651
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3652
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
3653
|
+
let baseOptions;
|
|
3654
|
+
if (configuration) {
|
|
3655
|
+
baseOptions = configuration.baseOptions;
|
|
3656
|
+
}
|
|
3657
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3658
|
+
const localVarHeaderParameter = {};
|
|
3659
|
+
const localVarQueryParameter = {};
|
|
3660
|
+
// authentication JWT token required
|
|
3661
|
+
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
3662
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3663
|
+
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3665
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3666
|
+
localVarRequestOptions.data = serializeDataIfNeeded$4(messageObject, localVarRequestOptions, configuration);
|
|
3667
|
+
return {
|
|
3668
|
+
url: toPathString$6(localVarUrlObj),
|
|
3669
|
+
options: localVarRequestOptions,
|
|
3670
|
+
};
|
|
3671
|
+
}),
|
|
3672
|
+
};
|
|
3673
|
+
};
|
|
3674
|
+
/**
|
|
3675
|
+
* PidApi - functional programming interface
|
|
3676
|
+
* @export
|
|
3677
|
+
*/
|
|
3678
|
+
const PidApiFp = function (configuration) {
|
|
3679
|
+
const localVarAxiosParamCreator = PidApiAxiosParamCreator(configuration);
|
|
3680
|
+
return {
|
|
3681
|
+
/**
|
|
3682
|
+
*
|
|
3683
|
+
* @summary Returns a 200, if a PID is valid.
|
|
3684
|
+
* @param {string} pid PID
|
|
3685
|
+
* @param {*} [options] Override http request option.
|
|
3686
|
+
* @throws {RequiredError}
|
|
3687
|
+
*/
|
|
3688
|
+
pidIsValid(pid, options) {
|
|
3689
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3690
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.pidIsValid(pid, options);
|
|
3691
|
+
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
3692
|
+
});
|
|
3693
|
+
},
|
|
3694
|
+
/**
|
|
3695
|
+
*
|
|
3696
|
+
* @summary Sends a request to the pid owner.
|
|
3697
|
+
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
|
|
3698
|
+
* @param {*} [options] Override http request option.
|
|
3699
|
+
* @throws {RequiredError}
|
|
3700
|
+
*/
|
|
3701
|
+
pidSendMailToOwner(messageObject, options) {
|
|
3702
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.pidSendMailToOwner(messageObject, options);
|
|
3704
|
+
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
3705
|
+
});
|
|
3706
|
+
},
|
|
3707
|
+
};
|
|
3708
|
+
};
|
|
3709
|
+
/**
|
|
3710
|
+
* PidApi - factory interface
|
|
3711
|
+
* @export
|
|
3712
|
+
*/
|
|
3713
|
+
const PidApiFactory = function (configuration, basePath, axios) {
|
|
3714
|
+
const localVarFp = PidApiFp(configuration);
|
|
3715
|
+
return {
|
|
3716
|
+
/**
|
|
3717
|
+
*
|
|
3718
|
+
* @summary Returns a 200, if a PID is valid.
|
|
3719
|
+
* @param {string} pid PID
|
|
3720
|
+
* @param {*} [options] Override http request option.
|
|
3721
|
+
* @throws {RequiredError}
|
|
3722
|
+
*/
|
|
3723
|
+
pidIsValid(pid, options) {
|
|
3724
|
+
return localVarFp.pidIsValid(pid, options).then((request) => request(axios, basePath));
|
|
3725
|
+
},
|
|
3726
|
+
/**
|
|
3727
|
+
*
|
|
3728
|
+
* @summary Sends a request to the pid owner.
|
|
3729
|
+
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
|
|
3730
|
+
* @param {*} [options] Override http request option.
|
|
3731
|
+
* @throws {RequiredError}
|
|
3732
|
+
*/
|
|
3733
|
+
pidSendMailToOwner(messageObject, options) {
|
|
3734
|
+
return localVarFp.pidSendMailToOwner(messageObject, options).then((request) => request(axios, basePath));
|
|
3735
|
+
},
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3738
|
+
|
|
3504
3739
|
/* tslint:disable */
|
|
3505
3740
|
const BASE_PATH$5 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
|
|
3506
3741
|
/**
|
|
@@ -6146,7 +6381,7 @@
|
|
|
6146
6381
|
};
|
|
6147
6382
|
|
|
6148
6383
|
/* tslint:disable */
|
|
6149
|
-
const BASE_PATH$3 = "https://d-
|
|
6384
|
+
const BASE_PATH$3 = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
|
|
6150
6385
|
|
|
6151
6386
|
/* tslint:disable */
|
|
6152
6387
|
/**
|
|
@@ -6208,6 +6443,17 @@
|
|
|
6208
6443
|
};
|
|
6209
6444
|
|
|
6210
6445
|
/* tslint:disable */
|
|
6446
|
+
/**
|
|
6447
|
+
*
|
|
6448
|
+
* @export
|
|
6449
|
+
* @enum {string}
|
|
6450
|
+
*/
|
|
6451
|
+
var ItemType;
|
|
6452
|
+
(function (ItemType) {
|
|
6453
|
+
ItemType["Metadata"] = "Metadata";
|
|
6454
|
+
ItemType["Project"] = "Project";
|
|
6455
|
+
ItemType["Resource"] = "Resource";
|
|
6456
|
+
})(ItemType || (ItemType = {}));
|
|
6211
6457
|
/**
|
|
6212
6458
|
* SearchApi - axios parameter creator
|
|
6213
6459
|
* @export
|
|
@@ -7765,6 +8011,7 @@
|
|
|
7765
8011
|
MetadataApi: MetadataApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Metadata', axios),
|
|
7766
8012
|
NoticeApi: NoticeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Notices', axios),
|
|
7767
8013
|
OrganizationApi: OrganizationApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Organization', axios),
|
|
8014
|
+
PidApi: PidApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Pid', axios),
|
|
7768
8015
|
ProjectApi: ProjectApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
7769
8016
|
ProjectQuotaApi: ProjectQuotaApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
7770
8017
|
ProjectRoleApi: ProjectRoleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
@@ -7831,6 +8078,7 @@
|
|
|
7831
8078
|
const MetadataApi = apis.MetadataApi;
|
|
7832
8079
|
const NoticeApi = apis.NoticeApi;
|
|
7833
8080
|
const OrganizationApi = apis.OrganizationApi;
|
|
8081
|
+
const PidApi = apis.PidApi;
|
|
7834
8082
|
const ProjectApi = apis.ProjectApi;
|
|
7835
8083
|
const ProjectQuotaApi = apis.ProjectQuotaApi;
|
|
7836
8084
|
const ProjectRoleApi = apis.ProjectRoleApi;
|
|
@@ -7856,6 +8104,7 @@
|
|
|
7856
8104
|
exports.MetadataApi = MetadataApi;
|
|
7857
8105
|
exports.NoticeApi = NoticeApi;
|
|
7858
8106
|
exports.OrganizationApi = OrganizationApi;
|
|
8107
|
+
exports.PidApi = PidApi;
|
|
7859
8108
|
exports.ProjectApi = ProjectApi;
|
|
7860
8109
|
exports.ProjectQuotaApi = ProjectQuotaApi;
|
|
7861
8110
|
exports.ProjectRoleApi = ProjectRoleApi;
|