@coscine/api-client 1.5.1 → 2.1.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/README.md +1 -0
- package/dist/index.js +109 -144
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +109 -144
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/api.js +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/base.js +2 -2
- package/dist/lib/Coscine.Api.ActivatedFeatures/common.js +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/configuration.js +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/index.js +1 -1
- package/dist/lib/Coscine.Api.Admin/api.js +1 -1
- package/dist/lib/Coscine.Api.Admin/base.js +2 -2
- package/dist/lib/Coscine.Api.Admin/common.js +1 -1
- package/dist/lib/Coscine.Api.Admin/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Admin/index.js +1 -1
- package/dist/lib/Coscine.Api.Blob/api.js +1 -67
- package/dist/lib/Coscine.Api.Blob/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Blob/base.js +2 -2
- package/dist/lib/Coscine.Api.Blob/common.js +1 -1
- package/dist/lib/Coscine.Api.Blob/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Blob/index.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/api.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/base.js +2 -2
- package/dist/lib/Coscine.Api.Metadata/common.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/index.js +1 -1
- package/dist/lib/Coscine.Api.Notices/api.js +1 -1
- package/dist/lib/Coscine.Api.Notices/base.js +2 -2
- package/dist/lib/Coscine.Api.Notices/common.js +1 -1
- package/dist/lib/Coscine.Api.Notices/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Notices/index.js +1 -1
- package/dist/lib/Coscine.Api.Organization/api.js +1 -1
- package/dist/lib/Coscine.Api.Organization/base.js +2 -2
- package/dist/lib/Coscine.Api.Organization/common.js +1 -1
- package/dist/lib/Coscine.Api.Organization/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Organization/index.js +1 -1
- package/dist/lib/Coscine.Api.Project/api.js +40 -40
- package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Project/base.js +2 -2
- package/dist/lib/Coscine.Api.Project/common.js +1 -1
- package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Project/index.js +1 -1
- package/dist/lib/Coscine.Api.Quota/api.js +1 -1
- package/dist/lib/Coscine.Api.Quota/base.js +2 -2
- package/dist/lib/Coscine.Api.Quota/common.js +1 -1
- package/dist/lib/Coscine.Api.Quota/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Quota/index.js +1 -1
- package/dist/lib/Coscine.Api.Resources/api.js +12 -2
- package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Resources/base.js +2 -2
- package/dist/lib/Coscine.Api.Resources/common.js +1 -1
- package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Resources/index.js +1 -1
- package/dist/lib/Coscine.Api.Search/api.js +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/Coscine.Api.Token/api.js +59 -1
- package/dist/lib/Coscine.Api.Token/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Token/base.js +2 -2
- package/dist/lib/Coscine.Api.Token/common.js +1 -1
- package/dist/lib/Coscine.Api.Token/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Token/index.js +1 -1
- package/dist/lib/Coscine.Api.Tree/api.js +1 -1
- package/dist/lib/Coscine.Api.Tree/base.js +2 -2
- package/dist/lib/Coscine.Api.Tree/common.js +1 -1
- package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Tree/index.js +1 -1
- package/dist/lib/Coscine.Api.User/api.js +1 -1
- package/dist/lib/Coscine.Api.User/base.js +2 -2
- package/dist/lib/Coscine.Api.User/common.js +1 -1
- package/dist/lib/Coscine.Api.User/configuration.js +1 -1
- package/dist/lib/Coscine.Api.User/index.js +1 -1
- package/dist/lib/axios-basic.js +5 -30
- package/dist/lib/axios-basic.js.map +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/api.d.ts +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/base.d.ts +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/common.d.ts +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/api.d.ts +1 -34
- package/dist/types/Coscine.Api.Blob/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/api.d.ts +33 -33
- package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/api.d.ts +59 -8
- package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/api.d.ts +1 -1
- 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/Coscine.Api.Token/api.d.ts +49 -1
- package/dist/types/Coscine.Api.Token/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Token/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Token/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Token/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
- package/dist/types/Coscine.Api.User/api.d.ts +1 -1
- package/dist/types/Coscine.Api.User/base.d.ts +1 -1
- package/dist/types/Coscine.Api.User/common.d.ts +1 -1
- package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.User/index.d.ts +1 -1
- package/dist/types/apis.d.ts +2 -2
- package/dist/types/index.d.ts +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1849,7 +1849,7 @@ axios$2.exports.default = axios$1;
|
|
|
1849
1849
|
var axios = axios$2.exports;
|
|
1850
1850
|
|
|
1851
1851
|
/* tslint:disable */
|
|
1852
|
-
const BASE_PATH$c = "https://d-
|
|
1852
|
+
const BASE_PATH$c = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.ActivatedFeatures".replace(/\/+$/, "");
|
|
1853
1853
|
/**
|
|
1854
1854
|
*
|
|
1855
1855
|
* @export
|
|
@@ -2297,7 +2297,7 @@ const ActivatedFeaturesApiFactory = function (configuration, basePath, axios) {
|
|
|
2297
2297
|
* Coscine.Api.ActivatedFeatures
|
|
2298
2298
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2299
2299
|
*
|
|
2300
|
-
* The version of the OpenAPI document: 2.
|
|
2300
|
+
* The version of the OpenAPI document: 2.1.2
|
|
2301
2301
|
*
|
|
2302
2302
|
*
|
|
2303
2303
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2331,7 +2331,7 @@ class Configuration {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
|
|
2333
2333
|
/* tslint:disable */
|
|
2334
|
-
const BASE_PATH$b = "https://d-
|
|
2334
|
+
const BASE_PATH$b = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, "");
|
|
2335
2335
|
/**
|
|
2336
2336
|
*
|
|
2337
2337
|
* @export
|
|
@@ -2401,7 +2401,7 @@ const setSearchParams$b = function (url, ...objects) {
|
|
|
2401
2401
|
*
|
|
2402
2402
|
* @export
|
|
2403
2403
|
*/
|
|
2404
|
-
const serializeDataIfNeeded$
|
|
2404
|
+
const serializeDataIfNeeded$6 = function (value, requestOptions, configuration) {
|
|
2405
2405
|
const nonString = typeof value !== 'string';
|
|
2406
2406
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
2407
2407
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
@@ -2492,7 +2492,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
2492
2492
|
setSearchParams$b(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2493
2493
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2494
2494
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2495
|
-
localVarRequestOptions.data = serializeDataIfNeeded$
|
|
2495
|
+
localVarRequestOptions.data = serializeDataIfNeeded$6(updateQuotaParameterObject, localVarRequestOptions, configuration);
|
|
2496
2496
|
return {
|
|
2497
2497
|
url: toPathString$b(localVarUrlObj),
|
|
2498
2498
|
options: localVarRequestOptions,
|
|
@@ -2566,7 +2566,7 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
2566
2566
|
};
|
|
2567
2567
|
|
|
2568
2568
|
/* tslint:disable */
|
|
2569
|
-
const BASE_PATH$a = "https://d-
|
|
2569
|
+
const BASE_PATH$a = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
|
|
2570
2570
|
/**
|
|
2571
2571
|
*
|
|
2572
2572
|
* @export
|
|
@@ -2632,19 +2632,6 @@ const setSearchParams$a = function (url, ...objects) {
|
|
|
2632
2632
|
}
|
|
2633
2633
|
url.search = searchParams.toString();
|
|
2634
2634
|
};
|
|
2635
|
-
/**
|
|
2636
|
-
*
|
|
2637
|
-
* @export
|
|
2638
|
-
*/
|
|
2639
|
-
const serializeDataIfNeeded$6 = function (value, requestOptions, configuration) {
|
|
2640
|
-
const nonString = typeof value !== 'string';
|
|
2641
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
2642
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
2643
|
-
: nonString;
|
|
2644
|
-
return needsSerialization
|
|
2645
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
2646
|
-
: (value || "");
|
|
2647
|
-
};
|
|
2648
2635
|
/**
|
|
2649
2636
|
*
|
|
2650
2637
|
* @export
|
|
@@ -2771,38 +2758,6 @@ const BlobApiAxiosParamCreator = function (configuration) {
|
|
|
2771
2758
|
options: localVarRequestOptions,
|
|
2772
2759
|
};
|
|
2773
2760
|
}),
|
|
2774
|
-
/**
|
|
2775
|
-
*
|
|
2776
|
-
* @summary This method checks if the resource is valid
|
|
2777
|
-
* @param {any} body
|
|
2778
|
-
* @param {*} [options] Override http request option.
|
|
2779
|
-
* @throws {RequiredError}
|
|
2780
|
-
*/
|
|
2781
|
-
blobIsResourceValid: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2782
|
-
// verify required parameter 'body' is not null or undefined
|
|
2783
|
-
assertParamExists$9('blobIsResourceValid', 'body', body);
|
|
2784
|
-
const localVarPath = `/Blob/validate`;
|
|
2785
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2786
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$a);
|
|
2787
|
-
let baseOptions;
|
|
2788
|
-
if (configuration) {
|
|
2789
|
-
baseOptions = configuration.baseOptions;
|
|
2790
|
-
}
|
|
2791
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2792
|
-
const localVarHeaderParameter = {};
|
|
2793
|
-
const localVarQueryParameter = {};
|
|
2794
|
-
// authentication JWT token required
|
|
2795
|
-
yield setApiKeyToObject$a(localVarHeaderParameter, "Authorization", configuration);
|
|
2796
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2797
|
-
setSearchParams$a(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2798
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2799
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2800
|
-
localVarRequestOptions.data = serializeDataIfNeeded$6(body, localVarRequestOptions, configuration);
|
|
2801
|
-
return {
|
|
2802
|
-
url: toPathString$a(localVarUrlObj),
|
|
2803
|
-
options: localVarRequestOptions,
|
|
2804
|
-
};
|
|
2805
|
-
}),
|
|
2806
2761
|
/**
|
|
2807
2762
|
*
|
|
2808
2763
|
* @summary This method uploads a given File
|
|
@@ -2897,19 +2852,6 @@ const BlobApiFp = function (configuration) {
|
|
|
2897
2852
|
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2898
2853
|
});
|
|
2899
2854
|
},
|
|
2900
|
-
/**
|
|
2901
|
-
*
|
|
2902
|
-
* @summary This method checks if the resource is valid
|
|
2903
|
-
* @param {any} body
|
|
2904
|
-
* @param {*} [options] Override http request option.
|
|
2905
|
-
* @throws {RequiredError}
|
|
2906
|
-
*/
|
|
2907
|
-
blobIsResourceValid(body, options) {
|
|
2908
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2909
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.blobIsResourceValid(body, options);
|
|
2910
|
-
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2911
|
-
});
|
|
2912
|
-
},
|
|
2913
2855
|
/**
|
|
2914
2856
|
*
|
|
2915
2857
|
* @summary This method uploads a given File
|
|
@@ -2966,16 +2908,6 @@ const BlobApiFactory = function (configuration, basePath, axios) {
|
|
|
2966
2908
|
blobGetQuota(resourceId, options) {
|
|
2967
2909
|
return localVarFp.blobGetQuota(resourceId, options).then((request) => request(axios, basePath));
|
|
2968
2910
|
},
|
|
2969
|
-
/**
|
|
2970
|
-
*
|
|
2971
|
-
* @summary This method checks if the resource is valid
|
|
2972
|
-
* @param {any} body
|
|
2973
|
-
* @param {*} [options] Override http request option.
|
|
2974
|
-
* @throws {RequiredError}
|
|
2975
|
-
*/
|
|
2976
|
-
blobIsResourceValid(body, options) {
|
|
2977
|
-
return localVarFp.blobIsResourceValid(body, options).then((request) => request(axios, basePath));
|
|
2978
|
-
},
|
|
2979
2911
|
/**
|
|
2980
2912
|
*
|
|
2981
2913
|
* @summary This method uploads a given File
|
|
@@ -2992,7 +2924,7 @@ const BlobApiFactory = function (configuration, basePath, axios) {
|
|
|
2992
2924
|
};
|
|
2993
2925
|
|
|
2994
2926
|
/* tslint:disable */
|
|
2995
|
-
const BASE_PATH$9 = "https://d-
|
|
2927
|
+
const BASE_PATH$9 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, "");
|
|
2996
2928
|
/**
|
|
2997
2929
|
*
|
|
2998
2930
|
* @export
|
|
@@ -3431,7 +3363,7 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
3431
3363
|
};
|
|
3432
3364
|
|
|
3433
3365
|
/* tslint:disable */
|
|
3434
|
-
const BASE_PATH$8 = "https://d-
|
|
3366
|
+
const BASE_PATH$8 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, "");
|
|
3435
3367
|
/**
|
|
3436
3368
|
*
|
|
3437
3369
|
* @export
|
|
@@ -3652,7 +3584,7 @@ const NoticeApiFactory = function (configuration, basePath, axios) {
|
|
|
3652
3584
|
};
|
|
3653
3585
|
|
|
3654
3586
|
/* tslint:disable */
|
|
3655
|
-
const BASE_PATH$7 = "https://d-
|
|
3587
|
+
const BASE_PATH$7 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, "");
|
|
3656
3588
|
/**
|
|
3657
3589
|
*
|
|
3658
3590
|
* @export
|
|
@@ -4035,7 +3967,7 @@ const OrganizationApiFactory = function (configuration, basePath, axios) {
|
|
|
4035
3967
|
};
|
|
4036
3968
|
|
|
4037
3969
|
/* tslint:disable */
|
|
4038
|
-
const BASE_PATH$6 = "https://d-
|
|
3970
|
+
const BASE_PATH$6 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
|
|
4039
3971
|
/**
|
|
4040
3972
|
*
|
|
4041
3973
|
* @export
|
|
@@ -4351,8 +4283,8 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4351
4283
|
}),
|
|
4352
4284
|
/**
|
|
4353
4285
|
*
|
|
4354
|
-
* @summary Deletes
|
|
4355
|
-
* @param {string} invitationId Id of
|
|
4286
|
+
* @summary Deletes a project invitation.
|
|
4287
|
+
* @param {string} invitationId Id of an invitation
|
|
4356
4288
|
* @param {*} [options] Override http request option.
|
|
4357
4289
|
* @throws {RequiredError}
|
|
4358
4290
|
*/
|
|
@@ -4565,7 +4497,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4565
4497
|
/**
|
|
4566
4498
|
*
|
|
4567
4499
|
* @summary List all invitations of a project.
|
|
4568
|
-
* @param {string} projectId
|
|
4500
|
+
* @param {string} projectId Id of the project
|
|
4569
4501
|
* @param {*} [options] Override http request option.
|
|
4570
4502
|
* @throws {RequiredError}
|
|
4571
4503
|
*/
|
|
@@ -4661,16 +4593,16 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4661
4593
|
}),
|
|
4662
4594
|
/**
|
|
4663
4595
|
*
|
|
4664
|
-
* @summary Resolve
|
|
4665
|
-
* @param {string}
|
|
4596
|
+
* @summary Resolve a project invitation for the current user.
|
|
4597
|
+
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
4666
4598
|
* @param {*} [options] Override http request option.
|
|
4667
4599
|
* @throws {RequiredError}
|
|
4668
4600
|
*/
|
|
4669
|
-
projectResolveInvitation: (
|
|
4670
|
-
// verify required parameter '
|
|
4671
|
-
assertParamExists$5('projectResolveInvitation', '
|
|
4672
|
-
const localVarPath = `/Project/invitation/resolve/{
|
|
4673
|
-
.replace(`{${"
|
|
4601
|
+
projectResolveInvitation: (invitationToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4602
|
+
// verify required parameter 'invitationToken' is not null or undefined
|
|
4603
|
+
assertParamExists$5('projectResolveInvitation', 'invitationToken', invitationToken);
|
|
4604
|
+
const localVarPath = `/Project/invitation/resolve/{invitationToken}`
|
|
4605
|
+
.replace(`{${"invitationToken"}}`, encodeURIComponent(String(invitationToken)));
|
|
4674
4606
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4675
4607
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4676
4608
|
let baseOptions;
|
|
@@ -4692,8 +4624,8 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4692
4624
|
}),
|
|
4693
4625
|
/**
|
|
4694
4626
|
*
|
|
4695
|
-
* @summary Create and send
|
|
4696
|
-
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
|
|
4627
|
+
* @summary Create and send a project invitation to a specified mail.
|
|
4628
|
+
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
4697
4629
|
* @param {*} [options] Override http request option.
|
|
4698
4630
|
* @throws {RequiredError}
|
|
4699
4631
|
*/
|
|
@@ -4867,8 +4799,8 @@ const ProjectApiFp = function (configuration) {
|
|
|
4867
4799
|
},
|
|
4868
4800
|
/**
|
|
4869
4801
|
*
|
|
4870
|
-
* @summary Deletes
|
|
4871
|
-
* @param {string} invitationId Id of
|
|
4802
|
+
* @summary Deletes a project invitation.
|
|
4803
|
+
* @param {string} invitationId Id of an invitation
|
|
4872
4804
|
* @param {*} [options] Override http request option.
|
|
4873
4805
|
* @throws {RequiredError}
|
|
4874
4806
|
*/
|
|
@@ -4958,7 +4890,7 @@ const ProjectApiFp = function (configuration) {
|
|
|
4958
4890
|
/**
|
|
4959
4891
|
*
|
|
4960
4892
|
* @summary List all invitations of a project.
|
|
4961
|
-
* @param {string} projectId
|
|
4893
|
+
* @param {string} projectId Id of the project
|
|
4962
4894
|
* @param {*} [options] Override http request option.
|
|
4963
4895
|
* @throws {RequiredError}
|
|
4964
4896
|
*/
|
|
@@ -4997,21 +4929,21 @@ const ProjectApiFp = function (configuration) {
|
|
|
4997
4929
|
},
|
|
4998
4930
|
/**
|
|
4999
4931
|
*
|
|
5000
|
-
* @summary Resolve
|
|
5001
|
-
* @param {string}
|
|
4932
|
+
* @summary Resolve a project invitation for the current user.
|
|
4933
|
+
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
5002
4934
|
* @param {*} [options] Override http request option.
|
|
5003
4935
|
* @throws {RequiredError}
|
|
5004
4936
|
*/
|
|
5005
|
-
projectResolveInvitation(
|
|
4937
|
+
projectResolveInvitation(invitationToken, options) {
|
|
5006
4938
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5007
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(
|
|
4939
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(invitationToken, options);
|
|
5008
4940
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5009
4941
|
});
|
|
5010
4942
|
},
|
|
5011
4943
|
/**
|
|
5012
4944
|
*
|
|
5013
|
-
* @summary Create and send
|
|
5014
|
-
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
|
|
4945
|
+
* @summary Create and send a project invitation to a specified mail.
|
|
4946
|
+
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
5015
4947
|
* @param {*} [options] Override http request option.
|
|
5016
4948
|
* @throws {RequiredError}
|
|
5017
4949
|
*/
|
|
@@ -5094,8 +5026,8 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5094
5026
|
},
|
|
5095
5027
|
/**
|
|
5096
5028
|
*
|
|
5097
|
-
* @summary Deletes
|
|
5098
|
-
* @param {string} invitationId Id of
|
|
5029
|
+
* @summary Deletes a project invitation.
|
|
5030
|
+
* @param {string} invitationId Id of an invitation
|
|
5099
5031
|
* @param {*} [options] Override http request option.
|
|
5100
5032
|
* @throws {RequiredError}
|
|
5101
5033
|
*/
|
|
@@ -5164,7 +5096,7 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5164
5096
|
/**
|
|
5165
5097
|
*
|
|
5166
5098
|
* @summary List all invitations of a project.
|
|
5167
|
-
* @param {string} projectId
|
|
5099
|
+
* @param {string} projectId Id of the project
|
|
5168
5100
|
* @param {*} [options] Override http request option.
|
|
5169
5101
|
* @throws {RequiredError}
|
|
5170
5102
|
*/
|
|
@@ -5194,18 +5126,18 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5194
5126
|
},
|
|
5195
5127
|
/**
|
|
5196
5128
|
*
|
|
5197
|
-
* @summary Resolve
|
|
5198
|
-
* @param {string}
|
|
5129
|
+
* @summary Resolve a project invitation for the current user.
|
|
5130
|
+
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
5199
5131
|
* @param {*} [options] Override http request option.
|
|
5200
5132
|
* @throws {RequiredError}
|
|
5201
5133
|
*/
|
|
5202
|
-
projectResolveInvitation(
|
|
5203
|
-
return localVarFp.projectResolveInvitation(
|
|
5134
|
+
projectResolveInvitation(invitationToken, options) {
|
|
5135
|
+
return localVarFp.projectResolveInvitation(invitationToken, options).then((request) => request(axios, basePath));
|
|
5204
5136
|
},
|
|
5205
5137
|
/**
|
|
5206
5138
|
*
|
|
5207
|
-
* @summary Create and send
|
|
5208
|
-
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
|
|
5139
|
+
* @summary Create and send a project invitation to a specified mail.
|
|
5140
|
+
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
5209
5141
|
* @param {*} [options] Override http request option.
|
|
5210
5142
|
* @throws {RequiredError}
|
|
5211
5143
|
*/
|
|
@@ -5973,7 +5905,7 @@ const VisibilityApiFactory = function (configuration, basePath, axios) {
|
|
|
5973
5905
|
};
|
|
5974
5906
|
|
|
5975
5907
|
/* tslint:disable */
|
|
5976
|
-
const BASE_PATH$5 = "https://d-
|
|
5908
|
+
const BASE_PATH$5 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, "");
|
|
5977
5909
|
/**
|
|
5978
5910
|
*
|
|
5979
5911
|
* @export
|
|
@@ -6274,7 +6206,7 @@ const QuotaApiFactory = function (configuration, basePath, axios) {
|
|
|
6274
6206
|
};
|
|
6275
6207
|
|
|
6276
6208
|
/* tslint:disable */
|
|
6277
|
-
const BASE_PATH$4 = "https://d-
|
|
6209
|
+
const BASE_PATH$4 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Resources".replace(/\/+$/, "");
|
|
6278
6210
|
/**
|
|
6279
6211
|
*
|
|
6280
6212
|
* @export
|
|
@@ -6372,6 +6304,16 @@ const createRequestFunction$4 = function (axiosArgs, globalAxios, BASE_PATH, con
|
|
|
6372
6304
|
};
|
|
6373
6305
|
|
|
6374
6306
|
/* tslint:disable */
|
|
6307
|
+
/**
|
|
6308
|
+
*
|
|
6309
|
+
* @export
|
|
6310
|
+
* @enum {string}
|
|
6311
|
+
*/
|
|
6312
|
+
var ResourceTypeStatus;
|
|
6313
|
+
(function (ResourceTypeStatus) {
|
|
6314
|
+
ResourceTypeStatus["Hidden"] = "hidden";
|
|
6315
|
+
ResourceTypeStatus["Active"] = "active";
|
|
6316
|
+
})(ResourceTypeStatus || (ResourceTypeStatus = {}));
|
|
6375
6317
|
/**
|
|
6376
6318
|
* ResourceApi - axios parameter creator
|
|
6377
6319
|
* @export
|
|
@@ -6968,7 +6910,7 @@ const ResourceTypeApiFactory = function (configuration, basePath, axios) {
|
|
|
6968
6910
|
};
|
|
6969
6911
|
|
|
6970
6912
|
/* tslint:disable */
|
|
6971
|
-
const BASE_PATH$3 = "https://d-
|
|
6913
|
+
const BASE_PATH$3 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
|
|
6972
6914
|
|
|
6973
6915
|
/* tslint:disable */
|
|
6974
6916
|
/**
|
|
@@ -7130,7 +7072,7 @@ const SemanticSearchApiFactory = function (configuration, basePath, axios) {
|
|
|
7130
7072
|
};
|
|
7131
7073
|
|
|
7132
7074
|
/* tslint:disable */
|
|
7133
|
-
const BASE_PATH$2 = "https://d-
|
|
7075
|
+
const BASE_PATH$2 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, "");
|
|
7134
7076
|
/**
|
|
7135
7077
|
*
|
|
7136
7078
|
* @export
|
|
@@ -7266,6 +7208,33 @@ const TokenApiAxiosParamCreator = function (configuration) {
|
|
|
7266
7208
|
options: localVarRequestOptions,
|
|
7267
7209
|
};
|
|
7268
7210
|
}),
|
|
7211
|
+
/**
|
|
7212
|
+
*
|
|
7213
|
+
* @summary Get the specified token minumum and maximum validity in days.
|
|
7214
|
+
* @param {*} [options] Override http request option.
|
|
7215
|
+
* @throws {RequiredError}
|
|
7216
|
+
*/
|
|
7217
|
+
tokenGetTokenValidityBounds: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7218
|
+
const localVarPath = `/Token/getValidity`;
|
|
7219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7220
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
7221
|
+
let baseOptions;
|
|
7222
|
+
if (configuration) {
|
|
7223
|
+
baseOptions = configuration.baseOptions;
|
|
7224
|
+
}
|
|
7225
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7226
|
+
const localVarHeaderParameter = {};
|
|
7227
|
+
const localVarQueryParameter = {};
|
|
7228
|
+
// authentication JWT token required
|
|
7229
|
+
yield setApiKeyToObject$2(localVarHeaderParameter, "Authorization", configuration);
|
|
7230
|
+
setSearchParams$2(localVarUrlObj, localVarQueryParameter, options.query);
|
|
7231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7232
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7233
|
+
return {
|
|
7234
|
+
url: toPathString$2(localVarUrlObj),
|
|
7235
|
+
options: localVarRequestOptions,
|
|
7236
|
+
};
|
|
7237
|
+
}),
|
|
7269
7238
|
/**
|
|
7270
7239
|
*
|
|
7271
7240
|
* @summary Get the specific token values.
|
|
@@ -7377,6 +7346,18 @@ const TokenApiFp = function (configuration) {
|
|
|
7377
7346
|
return createRequestFunction$2(localVarAxiosArgs, axios, BASE_PATH$2, configuration);
|
|
7378
7347
|
});
|
|
7379
7348
|
},
|
|
7349
|
+
/**
|
|
7350
|
+
*
|
|
7351
|
+
* @summary Get the specified token minumum and maximum validity in days.
|
|
7352
|
+
* @param {*} [options] Override http request option.
|
|
7353
|
+
* @throws {RequiredError}
|
|
7354
|
+
*/
|
|
7355
|
+
tokenGetTokenValidityBounds(options) {
|
|
7356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7357
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tokenGetTokenValidityBounds(options);
|
|
7358
|
+
return createRequestFunction$2(localVarAxiosArgs, axios, BASE_PATH$2, configuration);
|
|
7359
|
+
});
|
|
7360
|
+
},
|
|
7380
7361
|
/**
|
|
7381
7362
|
*
|
|
7382
7363
|
* @summary Get the specific token values.
|
|
@@ -7434,6 +7415,15 @@ const TokenApiFactory = function (configuration, basePath, axios) {
|
|
|
7434
7415
|
tokenAddToken(addApiTokenParameter, options) {
|
|
7435
7416
|
return localVarFp.tokenAddToken(addApiTokenParameter, options).then((request) => request(axios, basePath));
|
|
7436
7417
|
},
|
|
7418
|
+
/**
|
|
7419
|
+
*
|
|
7420
|
+
* @summary Get the specified token minumum and maximum validity in days.
|
|
7421
|
+
* @param {*} [options] Override http request option.
|
|
7422
|
+
* @throws {RequiredError}
|
|
7423
|
+
*/
|
|
7424
|
+
tokenGetTokenValidityBounds(options) {
|
|
7425
|
+
return localVarFp.tokenGetTokenValidityBounds(options).then((request) => request(axios, basePath));
|
|
7426
|
+
},
|
|
7437
7427
|
/**
|
|
7438
7428
|
*
|
|
7439
7429
|
* @summary Get the specific token values.
|
|
@@ -7467,7 +7457,7 @@ const TokenApiFactory = function (configuration, basePath, axios) {
|
|
|
7467
7457
|
};
|
|
7468
7458
|
|
|
7469
7459
|
/* tslint:disable */
|
|
7470
|
-
const BASE_PATH$1 = "https://d-
|
|
7460
|
+
const BASE_PATH$1 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
|
|
7471
7461
|
/**
|
|
7472
7462
|
*
|
|
7473
7463
|
* @export
|
|
@@ -7700,7 +7690,7 @@ const TreeApiFactory = function (configuration, basePath, axios) {
|
|
|
7700
7690
|
};
|
|
7701
7691
|
|
|
7702
7692
|
/* tslint:disable */
|
|
7703
|
-
const BASE_PATH = "https://d-
|
|
7693
|
+
const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, "");
|
|
7704
7694
|
/**
|
|
7705
7695
|
*
|
|
7706
7696
|
* @export
|
|
@@ -8548,15 +8538,15 @@ function implementations(axios) {
|
|
|
8548
8538
|
|
|
8549
8539
|
const instance = axios.create();
|
|
8550
8540
|
const authHeaderKey = 'Authorization';
|
|
8551
|
-
const
|
|
8541
|
+
const clientCorrelationIdKey = 'X-Coscine-Logging-CorrelationId';
|
|
8552
8542
|
function setHeader(request) {
|
|
8553
8543
|
if (typeof coscine !== "undefined") {
|
|
8554
8544
|
if (typeof coscine.authorization !== "undefined") {
|
|
8555
8545
|
request.headers.common[authHeaderKey] =
|
|
8556
8546
|
'Bearer ' + coscine.authorization.bearer;
|
|
8557
8547
|
}
|
|
8558
|
-
if (typeof coscine.
|
|
8559
|
-
request.headers.common[
|
|
8548
|
+
if (typeof coscine.clientcorrelation !== "undefined") {
|
|
8549
|
+
request.headers.common[clientCorrelationIdKey] = coscine.clientcorrelation.id;
|
|
8560
8550
|
}
|
|
8561
8551
|
}
|
|
8562
8552
|
if (typeof window !== 'undefined') {
|
|
@@ -8566,46 +8556,21 @@ function setHeader(request) {
|
|
|
8566
8556
|
request.headers.common[authHeaderKey] =
|
|
8567
8557
|
'Bearer ' + localStorageToken;
|
|
8568
8558
|
}
|
|
8569
|
-
const localStorageClientCorrelation = localStorage.getItem("coscine.
|
|
8559
|
+
const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrelation.id");
|
|
8570
8560
|
if (localStorageClientCorrelation) {
|
|
8571
|
-
request.headers.common[
|
|
8572
|
-
}
|
|
8573
|
-
}
|
|
8574
|
-
}
|
|
8575
|
-
function increaseLoading() {
|
|
8576
|
-
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8577
|
-
coscine.loading.counter++;
|
|
8578
|
-
}
|
|
8579
|
-
if (typeof window !== 'undefined') {
|
|
8580
|
-
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8581
|
-
if (localStorageLoading) {
|
|
8582
|
-
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) + 1));
|
|
8583
|
-
}
|
|
8584
|
-
}
|
|
8585
|
-
}
|
|
8586
|
-
function decreaseLoading() {
|
|
8587
|
-
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8588
|
-
coscine.loading.counter--;
|
|
8589
|
-
}
|
|
8590
|
-
if (typeof window !== 'undefined') {
|
|
8591
|
-
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8592
|
-
if (localStorageLoading) {
|
|
8593
|
-
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) - 1));
|
|
8561
|
+
request.headers.common[clientCorrelationIdKey] = localStorageClientCorrelation;
|
|
8594
8562
|
}
|
|
8595
8563
|
}
|
|
8596
8564
|
}
|
|
8597
8565
|
instance.interceptors.request.use((request) => {
|
|
8598
8566
|
setHeader(request);
|
|
8599
|
-
increaseLoading();
|
|
8600
8567
|
return request;
|
|
8601
8568
|
}, (error) => {
|
|
8602
8569
|
return Promise.reject(error);
|
|
8603
8570
|
});
|
|
8604
8571
|
instance.interceptors.response.use((response) => {
|
|
8605
|
-
decreaseLoading();
|
|
8606
8572
|
return response;
|
|
8607
8573
|
}, (error) => {
|
|
8608
|
-
decreaseLoading();
|
|
8609
8574
|
return Promise.reject(error);
|
|
8610
8575
|
});
|
|
8611
8576
|
|