@coscine/api-client 1.5.0 → 2.0.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 +240 -251
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +240 -251
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/base.js +1 -1
- package/dist/lib/Coscine.Api.Admin/api.js +13 -13
- 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 -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/base.js +1 -1
- package/dist/lib/Coscine.Api.Project/api.js +206 -248
- package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Project/base.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 +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 +58 -0
- package/dist/lib/Coscine.Api.Token/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Token/base.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.Admin/api.d.ts +13 -13
- 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 -1
- 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.Project/api.d.ts +366 -1717
- 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 +1 -1
- 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 +48 -0
- 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 +9 -9
- package/dist/types/index.d.ts +18 -18
- package/package.json +1 -1
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
|
|
@@ -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
|
|
@@ -2437,8 +2437,8 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
2437
2437
|
return {
|
|
2438
2438
|
/**
|
|
2439
2439
|
*
|
|
2440
|
-
* @summary Find the project related to the
|
|
2441
|
-
* @param {string} projectString Either the id (
|
|
2440
|
+
* @summary Find the project related to the projectString(GUID or slug)
|
|
2441
|
+
* @param {string} projectString Either the id (GUID) of the project or the slug.
|
|
2442
2442
|
* @param {*} [options] Override http request option.
|
|
2443
2443
|
* @throws {RequiredError}
|
|
2444
2444
|
*/
|
|
@@ -2469,7 +2469,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
2469
2469
|
/**
|
|
2470
2470
|
*
|
|
2471
2471
|
* @summary Update the project quota
|
|
2472
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject
|
|
2472
|
+
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
|
|
2473
2473
|
* @param {*} [options] Override http request option.
|
|
2474
2474
|
* @throws {RequiredError}
|
|
2475
2475
|
*/
|
|
@@ -2509,8 +2509,8 @@ const AdminApiFp = function (configuration) {
|
|
|
2509
2509
|
return {
|
|
2510
2510
|
/**
|
|
2511
2511
|
*
|
|
2512
|
-
* @summary Find the project related to the
|
|
2513
|
-
* @param {string} projectString Either the id (
|
|
2512
|
+
* @summary Find the project related to the projectString(GUID or slug)
|
|
2513
|
+
* @param {string} projectString Either the id (GUID) of the project or the slug.
|
|
2514
2514
|
* @param {*} [options] Override http request option.
|
|
2515
2515
|
* @throws {RequiredError}
|
|
2516
2516
|
*/
|
|
@@ -2523,7 +2523,7 @@ const AdminApiFp = function (configuration) {
|
|
|
2523
2523
|
/**
|
|
2524
2524
|
*
|
|
2525
2525
|
* @summary Update the project quota
|
|
2526
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject
|
|
2526
|
+
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
|
|
2527
2527
|
* @param {*} [options] Override http request option.
|
|
2528
2528
|
* @throws {RequiredError}
|
|
2529
2529
|
*/
|
|
@@ -2544,8 +2544,8 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
2544
2544
|
return {
|
|
2545
2545
|
/**
|
|
2546
2546
|
*
|
|
2547
|
-
* @summary Find the project related to the
|
|
2548
|
-
* @param {string} projectString Either the id (
|
|
2547
|
+
* @summary Find the project related to the projectString(GUID or slug)
|
|
2548
|
+
* @param {string} projectString Either the id (GUID) of the project or the slug.
|
|
2549
2549
|
* @param {*} [options] Override http request option.
|
|
2550
2550
|
* @throws {RequiredError}
|
|
2551
2551
|
*/
|
|
@@ -2555,7 +2555,7 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
2555
2555
|
/**
|
|
2556
2556
|
*
|
|
2557
2557
|
* @summary Update the project quota
|
|
2558
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject
|
|
2558
|
+
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
|
|
2559
2559
|
* @param {*} [options] Override http request option.
|
|
2560
2560
|
* @throws {RequiredError}
|
|
2561
2561
|
*/
|
|
@@ -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
|
|
@@ -2992,7 +2992,7 @@ const BlobApiFactory = function (configuration, basePath, axios) {
|
|
|
2992
2992
|
};
|
|
2993
2993
|
|
|
2994
2994
|
/* tslint:disable */
|
|
2995
|
-
const BASE_PATH$9 = "https://d-
|
|
2995
|
+
const BASE_PATH$9 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, "");
|
|
2996
2996
|
/**
|
|
2997
2997
|
*
|
|
2998
2998
|
* @export
|
|
@@ -3431,7 +3431,7 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
3431
3431
|
};
|
|
3432
3432
|
|
|
3433
3433
|
/* tslint:disable */
|
|
3434
|
-
const BASE_PATH$8 = "https://d-
|
|
3434
|
+
const BASE_PATH$8 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, "");
|
|
3435
3435
|
/**
|
|
3436
3436
|
*
|
|
3437
3437
|
* @export
|
|
@@ -3652,7 +3652,7 @@ const NoticeApiFactory = function (configuration, basePath, axios) {
|
|
|
3652
3652
|
};
|
|
3653
3653
|
|
|
3654
3654
|
/* tslint:disable */
|
|
3655
|
-
const BASE_PATH$7 = "https://d-
|
|
3655
|
+
const BASE_PATH$7 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, "");
|
|
3656
3656
|
/**
|
|
3657
3657
|
*
|
|
3658
3658
|
* @export
|
|
@@ -4035,7 +4035,7 @@ const OrganizationApiFactory = function (configuration, basePath, axios) {
|
|
|
4035
4035
|
};
|
|
4036
4036
|
|
|
4037
4037
|
/* tslint:disable */
|
|
4038
|
-
const BASE_PATH$6 = "https://d-
|
|
4038
|
+
const BASE_PATH$6 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
|
|
4039
4039
|
/**
|
|
4040
4040
|
*
|
|
4041
4041
|
* @export
|
|
@@ -4321,7 +4321,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4321
4321
|
/**
|
|
4322
4322
|
*
|
|
4323
4323
|
* @summary Deletes the selected project
|
|
4324
|
-
* @param {string} id Id of the
|
|
4324
|
+
* @param {string} id Id of the project
|
|
4325
4325
|
* @param {*} [options] Override http request option.
|
|
4326
4326
|
* @throws {RequiredError}
|
|
4327
4327
|
*/
|
|
@@ -4351,8 +4351,8 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4351
4351
|
}),
|
|
4352
4352
|
/**
|
|
4353
4353
|
*
|
|
4354
|
-
* @summary Deletes
|
|
4355
|
-
* @param {string} invitationId Id of
|
|
4354
|
+
* @summary Deletes a project invitation.
|
|
4355
|
+
* @param {string} invitationId Id of an invitation
|
|
4356
4356
|
* @param {*} [options] Override http request option.
|
|
4357
4357
|
* @throws {RequiredError}
|
|
4358
4358
|
*/
|
|
@@ -4411,21 +4411,52 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4411
4411
|
options: localVarRequestOptions,
|
|
4412
4412
|
};
|
|
4413
4413
|
}),
|
|
4414
|
+
/**
|
|
4415
|
+
*
|
|
4416
|
+
* @summary This returns the project if the user has access to it
|
|
4417
|
+
* @param {string} slug Slug of the project
|
|
4418
|
+
* @param {*} [options] Override http request option.
|
|
4419
|
+
* @throws {RequiredError}
|
|
4420
|
+
*/
|
|
4421
|
+
projectGetBySlug: (slug, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4422
|
+
// verify required parameter 'slug' is not null or undefined
|
|
4423
|
+
assertParamExists$5('projectGetBySlug', 'slug', slug);
|
|
4424
|
+
const localVarPath = `/Project/slug/{slug}`
|
|
4425
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
4426
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4427
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4428
|
+
let baseOptions;
|
|
4429
|
+
if (configuration) {
|
|
4430
|
+
baseOptions = configuration.baseOptions;
|
|
4431
|
+
}
|
|
4432
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4433
|
+
const localVarHeaderParameter = {};
|
|
4434
|
+
const localVarQueryParameter = {};
|
|
4435
|
+
// authentication JWT token required
|
|
4436
|
+
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4437
|
+
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4438
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4439
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4440
|
+
return {
|
|
4441
|
+
url: toPathString$6(localVarUrlObj),
|
|
4442
|
+
options: localVarRequestOptions,
|
|
4443
|
+
};
|
|
4444
|
+
}),
|
|
4414
4445
|
/**
|
|
4415
4446
|
*
|
|
4416
4447
|
* @summary Get the max quota for a resource type.
|
|
4417
|
-
* @param {string}
|
|
4448
|
+
* @param {string} id Id of the project.
|
|
4418
4449
|
* @param {string} resourceTypeId Id of the resource
|
|
4419
4450
|
* @param {*} [options] Override http request option.
|
|
4420
4451
|
* @throws {RequiredError}
|
|
4421
4452
|
*/
|
|
4422
|
-
projectGetQuotaMax: (
|
|
4423
|
-
// verify required parameter '
|
|
4424
|
-
assertParamExists$5('projectGetQuotaMax', '
|
|
4453
|
+
projectGetQuotaMax: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4454
|
+
// verify required parameter 'id' is not null or undefined
|
|
4455
|
+
assertParamExists$5('projectGetQuotaMax', 'id', id);
|
|
4425
4456
|
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4426
4457
|
assertParamExists$5('projectGetQuotaMax', 'resourceTypeId', resourceTypeId);
|
|
4427
|
-
const localVarPath = `/Project/{
|
|
4428
|
-
.replace(`{${"
|
|
4458
|
+
const localVarPath = `/Project/{id}/quota/{resourceTypeId}/max`
|
|
4459
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4429
4460
|
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4430
4461
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4431
4462
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
@@ -4449,7 +4480,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4449
4480
|
/**
|
|
4450
4481
|
*
|
|
4451
4482
|
* @summary Gets the resources
|
|
4452
|
-
* @param {string} id Id of the
|
|
4483
|
+
* @param {string} id Id of the project
|
|
4453
4484
|
* @param {*} [options] Override http request option.
|
|
4454
4485
|
* @throws {RequiredError}
|
|
4455
4486
|
*/
|
|
@@ -4534,7 +4565,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4534
4565
|
/**
|
|
4535
4566
|
*
|
|
4536
4567
|
* @summary List all invitations of a project.
|
|
4537
|
-
* @param {string} projectId
|
|
4568
|
+
* @param {string} projectId Id of the project
|
|
4538
4569
|
* @param {*} [options] Override http request option.
|
|
4539
4570
|
* @throws {RequiredError}
|
|
4540
4571
|
*/
|
|
@@ -4565,18 +4596,18 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4565
4596
|
/**
|
|
4566
4597
|
*
|
|
4567
4598
|
* @summary Retrieves the quota for the selected project and resource Type.
|
|
4568
|
-
* @param {string}
|
|
4599
|
+
* @param {string} id Id of the project
|
|
4569
4600
|
* @param {string} resourceTypeId Id of the resource type
|
|
4570
4601
|
* @param {*} [options] Override http request option.
|
|
4571
4602
|
* @throws {RequiredError}
|
|
4572
4603
|
*/
|
|
4573
|
-
projectQuota: (
|
|
4574
|
-
// verify required parameter '
|
|
4575
|
-
assertParamExists$5('projectQuota', '
|
|
4604
|
+
projectQuota: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4605
|
+
// verify required parameter 'id' is not null or undefined
|
|
4606
|
+
assertParamExists$5('projectQuota', 'id', id);
|
|
4576
4607
|
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4577
4608
|
assertParamExists$5('projectQuota', 'resourceTypeId', resourceTypeId);
|
|
4578
|
-
const localVarPath = `/Project/{
|
|
4579
|
-
.replace(`{${"
|
|
4609
|
+
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
|
|
4610
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4580
4611
|
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4581
4612
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4582
4613
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
@@ -4600,15 +4631,15 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4600
4631
|
/**
|
|
4601
4632
|
*
|
|
4602
4633
|
* @summary Retrieves the quota for the selected project.
|
|
4603
|
-
* @param {string}
|
|
4634
|
+
* @param {string} id Id of the project
|
|
4604
4635
|
* @param {*} [options] Override http request option.
|
|
4605
4636
|
* @throws {RequiredError}
|
|
4606
4637
|
*/
|
|
4607
|
-
projectQuotas: (
|
|
4608
|
-
// verify required parameter '
|
|
4609
|
-
assertParamExists$5('projectQuotas', '
|
|
4610
|
-
const localVarPath = `/Project/{
|
|
4611
|
-
.replace(`{${"
|
|
4638
|
+
projectQuotas: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4639
|
+
// verify required parameter 'id' is not null or undefined
|
|
4640
|
+
assertParamExists$5('projectQuotas', 'id', id);
|
|
4641
|
+
const localVarPath = `/Project/{id}/quota/-/all`
|
|
4642
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4612
4643
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4613
4644
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4614
4645
|
let baseOptions;
|
|
@@ -4630,16 +4661,16 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4630
4661
|
}),
|
|
4631
4662
|
/**
|
|
4632
4663
|
*
|
|
4633
|
-
* @summary Resolve
|
|
4634
|
-
* @param {string}
|
|
4664
|
+
* @summary Resolve a project invitation for the current user.
|
|
4665
|
+
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
4635
4666
|
* @param {*} [options] Override http request option.
|
|
4636
4667
|
* @throws {RequiredError}
|
|
4637
4668
|
*/
|
|
4638
|
-
projectResolveInvitation: (
|
|
4639
|
-
// verify required parameter '
|
|
4640
|
-
assertParamExists$5('projectResolveInvitation', '
|
|
4641
|
-
const localVarPath = `/Project/invitation/resolve/{
|
|
4642
|
-
.replace(`{${"
|
|
4669
|
+
projectResolveInvitation: (invitationToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4670
|
+
// verify required parameter 'invitationToken' is not null or undefined
|
|
4671
|
+
assertParamExists$5('projectResolveInvitation', 'invitationToken', invitationToken);
|
|
4672
|
+
const localVarPath = `/Project/invitation/resolve/{invitationToken}`
|
|
4673
|
+
.replace(`{${"invitationToken"}}`, encodeURIComponent(String(invitationToken)));
|
|
4643
4674
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4644
4675
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4645
4676
|
let baseOptions;
|
|
@@ -4661,8 +4692,8 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4661
4692
|
}),
|
|
4662
4693
|
/**
|
|
4663
4694
|
*
|
|
4664
|
-
* @summary Create and send
|
|
4665
|
-
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
|
|
4695
|
+
* @summary Create and send a project invitation to a specified mail.
|
|
4696
|
+
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
4666
4697
|
* @param {*} [options] Override http request option.
|
|
4667
4698
|
* @throws {RequiredError}
|
|
4668
4699
|
*/
|
|
@@ -4694,10 +4725,13 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4694
4725
|
/**
|
|
4695
4726
|
*
|
|
4696
4727
|
* @summary Creates a project
|
|
4728
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
4697
4729
|
* @param {*} [options] Override http request option.
|
|
4698
4730
|
* @throws {RequiredError}
|
|
4699
4731
|
*/
|
|
4700
|
-
projectStore: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4732
|
+
projectStore: (projectObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4733
|
+
// verify required parameter 'projectObject' is not null or undefined
|
|
4734
|
+
assertParamExists$5('projectStore', 'projectObject', projectObject);
|
|
4701
4735
|
const localVarPath = `/Project`;
|
|
4702
4736
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4703
4737
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
@@ -4710,9 +4744,11 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4710
4744
|
const localVarQueryParameter = {};
|
|
4711
4745
|
// authentication JWT token required
|
|
4712
4746
|
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4747
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4713
4748
|
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4714
4749
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4715
4750
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4751
|
+
localVarRequestOptions.data = serializeDataIfNeeded$4(projectObject, localVarRequestOptions, configuration);
|
|
4716
4752
|
return {
|
|
4717
4753
|
url: toPathString$6(localVarUrlObj),
|
|
4718
4754
|
options: localVarRequestOptions,
|
|
@@ -4721,13 +4757,16 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4721
4757
|
/**
|
|
4722
4758
|
*
|
|
4723
4759
|
* @summary Updates the selected project
|
|
4724
|
-
* @param {string} id Id of the
|
|
4760
|
+
* @param {string} id Id of the project
|
|
4761
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
4725
4762
|
* @param {*} [options] Override http request option.
|
|
4726
4763
|
* @throws {RequiredError}
|
|
4727
4764
|
*/
|
|
4728
|
-
projectUpdate: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4765
|
+
projectUpdate: (id, projectObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4729
4766
|
// verify required parameter 'id' is not null or undefined
|
|
4730
4767
|
assertParamExists$5('projectUpdate', 'id', id);
|
|
4768
|
+
// verify required parameter 'projectObject' is not null or undefined
|
|
4769
|
+
assertParamExists$5('projectUpdate', 'projectObject', projectObject);
|
|
4731
4770
|
const localVarPath = `/Project/{id}`
|
|
4732
4771
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4733
4772
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -4741,9 +4780,11 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4741
4780
|
const localVarQueryParameter = {};
|
|
4742
4781
|
// authentication JWT token required
|
|
4743
4782
|
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4783
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4744
4784
|
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4745
4785
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4746
4786
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4787
|
+
localVarRequestOptions.data = serializeDataIfNeeded$4(projectObject, localVarRequestOptions, configuration);
|
|
4747
4788
|
return {
|
|
4748
4789
|
url: toPathString$6(localVarUrlObj),
|
|
4749
4790
|
options: localVarRequestOptions,
|
|
@@ -4752,21 +4793,21 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4752
4793
|
/**
|
|
4753
4794
|
*
|
|
4754
4795
|
* @summary Update the project quota.
|
|
4755
|
-
* @param {string}
|
|
4796
|
+
* @param {string} id Id of the project.
|
|
4756
4797
|
* @param {string} resourceTypeId Id of the resource.
|
|
4757
4798
|
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
4758
4799
|
* @param {*} [options] Override http request option.
|
|
4759
4800
|
* @throws {RequiredError}
|
|
4760
4801
|
*/
|
|
4761
|
-
projectUpdateQuota: (
|
|
4762
|
-
// verify required parameter '
|
|
4763
|
-
assertParamExists$5('projectUpdateQuota', '
|
|
4802
|
+
projectUpdateQuota: (id, resourceTypeId, updateProjectQuotaObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4803
|
+
// verify required parameter 'id' is not null or undefined
|
|
4804
|
+
assertParamExists$5('projectUpdateQuota', 'id', id);
|
|
4764
4805
|
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4765
4806
|
assertParamExists$5('projectUpdateQuota', 'resourceTypeId', resourceTypeId);
|
|
4766
4807
|
// verify required parameter 'updateProjectQuotaObject' is not null or undefined
|
|
4767
4808
|
assertParamExists$5('projectUpdateQuota', 'updateProjectQuotaObject', updateProjectQuotaObject);
|
|
4768
|
-
const localVarPath = `/Project/{
|
|
4769
|
-
.replace(`{${"
|
|
4809
|
+
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
|
|
4810
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4770
4811
|
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4771
4812
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4772
4813
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
@@ -4814,7 +4855,7 @@ const ProjectApiFp = function (configuration) {
|
|
|
4814
4855
|
/**
|
|
4815
4856
|
*
|
|
4816
4857
|
* @summary Deletes the selected project
|
|
4817
|
-
* @param {string} id Id of the
|
|
4858
|
+
* @param {string} id Id of the project
|
|
4818
4859
|
* @param {*} [options] Override http request option.
|
|
4819
4860
|
* @throws {RequiredError}
|
|
4820
4861
|
*/
|
|
@@ -4826,8 +4867,8 @@ const ProjectApiFp = function (configuration) {
|
|
|
4826
4867
|
},
|
|
4827
4868
|
/**
|
|
4828
4869
|
*
|
|
4829
|
-
* @summary Deletes
|
|
4830
|
-
* @param {string} invitationId Id of
|
|
4870
|
+
* @summary Deletes a project invitation.
|
|
4871
|
+
* @param {string} invitationId Id of an invitation
|
|
4831
4872
|
* @param {*} [options] Override http request option.
|
|
4832
4873
|
* @throws {RequiredError}
|
|
4833
4874
|
*/
|
|
@@ -4850,24 +4891,37 @@ const ProjectApiFp = function (configuration) {
|
|
|
4850
4891
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4851
4892
|
});
|
|
4852
4893
|
},
|
|
4894
|
+
/**
|
|
4895
|
+
*
|
|
4896
|
+
* @summary This returns the project if the user has access to it
|
|
4897
|
+
* @param {string} slug Slug of the project
|
|
4898
|
+
* @param {*} [options] Override http request option.
|
|
4899
|
+
* @throws {RequiredError}
|
|
4900
|
+
*/
|
|
4901
|
+
projectGetBySlug(slug, options) {
|
|
4902
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4903
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetBySlug(slug, options);
|
|
4904
|
+
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4905
|
+
});
|
|
4906
|
+
},
|
|
4853
4907
|
/**
|
|
4854
4908
|
*
|
|
4855
4909
|
* @summary Get the max quota for a resource type.
|
|
4856
|
-
* @param {string}
|
|
4910
|
+
* @param {string} id Id of the project.
|
|
4857
4911
|
* @param {string} resourceTypeId Id of the resource
|
|
4858
4912
|
* @param {*} [options] Override http request option.
|
|
4859
4913
|
* @throws {RequiredError}
|
|
4860
4914
|
*/
|
|
4861
|
-
projectGetQuotaMax(
|
|
4915
|
+
projectGetQuotaMax(id, resourceTypeId, options) {
|
|
4862
4916
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4863
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetQuotaMax(
|
|
4917
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetQuotaMax(id, resourceTypeId, options);
|
|
4864
4918
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4865
4919
|
});
|
|
4866
4920
|
},
|
|
4867
4921
|
/**
|
|
4868
4922
|
*
|
|
4869
4923
|
* @summary Gets the resources
|
|
4870
|
-
* @param {string} id Id of the
|
|
4924
|
+
* @param {string} id Id of the project
|
|
4871
4925
|
* @param {*} [options] Override http request option.
|
|
4872
4926
|
* @throws {RequiredError}
|
|
4873
4927
|
*/
|
|
@@ -4904,7 +4958,7 @@ const ProjectApiFp = function (configuration) {
|
|
|
4904
4958
|
/**
|
|
4905
4959
|
*
|
|
4906
4960
|
* @summary List all invitations of a project.
|
|
4907
|
-
* @param {string} projectId
|
|
4961
|
+
* @param {string} projectId Id of the project
|
|
4908
4962
|
* @param {*} [options] Override http request option.
|
|
4909
4963
|
* @throws {RequiredError}
|
|
4910
4964
|
*/
|
|
@@ -4917,47 +4971,47 @@ const ProjectApiFp = function (configuration) {
|
|
|
4917
4971
|
/**
|
|
4918
4972
|
*
|
|
4919
4973
|
* @summary Retrieves the quota for the selected project and resource Type.
|
|
4920
|
-
* @param {string}
|
|
4974
|
+
* @param {string} id Id of the project
|
|
4921
4975
|
* @param {string} resourceTypeId Id of the resource type
|
|
4922
4976
|
* @param {*} [options] Override http request option.
|
|
4923
4977
|
* @throws {RequiredError}
|
|
4924
4978
|
*/
|
|
4925
|
-
projectQuota(
|
|
4979
|
+
projectQuota(id, resourceTypeId, options) {
|
|
4926
4980
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4927
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuota(
|
|
4981
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuota(id, resourceTypeId, options);
|
|
4928
4982
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4929
4983
|
});
|
|
4930
4984
|
},
|
|
4931
4985
|
/**
|
|
4932
4986
|
*
|
|
4933
4987
|
* @summary Retrieves the quota for the selected project.
|
|
4934
|
-
* @param {string}
|
|
4988
|
+
* @param {string} id Id of the project
|
|
4935
4989
|
* @param {*} [options] Override http request option.
|
|
4936
4990
|
* @throws {RequiredError}
|
|
4937
4991
|
*/
|
|
4938
|
-
projectQuotas(
|
|
4992
|
+
projectQuotas(id, options) {
|
|
4939
4993
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4940
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotas(
|
|
4994
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotas(id, options);
|
|
4941
4995
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4942
4996
|
});
|
|
4943
4997
|
},
|
|
4944
4998
|
/**
|
|
4945
4999
|
*
|
|
4946
|
-
* @summary Resolve
|
|
4947
|
-
* @param {string}
|
|
5000
|
+
* @summary Resolve a project invitation for the current user.
|
|
5001
|
+
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
4948
5002
|
* @param {*} [options] Override http request option.
|
|
4949
5003
|
* @throws {RequiredError}
|
|
4950
5004
|
*/
|
|
4951
|
-
projectResolveInvitation(
|
|
5005
|
+
projectResolveInvitation(invitationToken, options) {
|
|
4952
5006
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4953
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(
|
|
5007
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(invitationToken, options);
|
|
4954
5008
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4955
5009
|
});
|
|
4956
5010
|
},
|
|
4957
5011
|
/**
|
|
4958
5012
|
*
|
|
4959
|
-
* @summary Create and send
|
|
4960
|
-
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
|
|
5013
|
+
* @summary Create and send a project invitation to a specified mail.
|
|
5014
|
+
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
4961
5015
|
* @param {*} [options] Override http request option.
|
|
4962
5016
|
* @throws {RequiredError}
|
|
4963
5017
|
*/
|
|
@@ -4970,40 +5024,42 @@ const ProjectApiFp = function (configuration) {
|
|
|
4970
5024
|
/**
|
|
4971
5025
|
*
|
|
4972
5026
|
* @summary Creates a project
|
|
5027
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
4973
5028
|
* @param {*} [options] Override http request option.
|
|
4974
5029
|
* @throws {RequiredError}
|
|
4975
5030
|
*/
|
|
4976
|
-
projectStore(options) {
|
|
5031
|
+
projectStore(projectObject, options) {
|
|
4977
5032
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4978
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectStore(options);
|
|
5033
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectStore(projectObject, options);
|
|
4979
5034
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4980
5035
|
});
|
|
4981
5036
|
},
|
|
4982
5037
|
/**
|
|
4983
5038
|
*
|
|
4984
5039
|
* @summary Updates the selected project
|
|
4985
|
-
* @param {string} id Id of the
|
|
5040
|
+
* @param {string} id Id of the project
|
|
5041
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
4986
5042
|
* @param {*} [options] Override http request option.
|
|
4987
5043
|
* @throws {RequiredError}
|
|
4988
5044
|
*/
|
|
4989
|
-
projectUpdate(id, options) {
|
|
5045
|
+
projectUpdate(id, projectObject, options) {
|
|
4990
5046
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4991
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdate(id, options);
|
|
5047
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdate(id, projectObject, options);
|
|
4992
5048
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4993
5049
|
});
|
|
4994
5050
|
},
|
|
4995
5051
|
/**
|
|
4996
5052
|
*
|
|
4997
5053
|
* @summary Update the project quota.
|
|
4998
|
-
* @param {string}
|
|
5054
|
+
* @param {string} id Id of the project.
|
|
4999
5055
|
* @param {string} resourceTypeId Id of the resource.
|
|
5000
5056
|
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
5001
5057
|
* @param {*} [options] Override http request option.
|
|
5002
5058
|
* @throws {RequiredError}
|
|
5003
5059
|
*/
|
|
5004
|
-
projectUpdateQuota(
|
|
5060
|
+
projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
5005
5061
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5006
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdateQuota(
|
|
5062
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options);
|
|
5007
5063
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5008
5064
|
});
|
|
5009
5065
|
},
|
|
@@ -5029,7 +5085,7 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5029
5085
|
/**
|
|
5030
5086
|
*
|
|
5031
5087
|
* @summary Deletes the selected project
|
|
5032
|
-
* @param {string} id Id of the
|
|
5088
|
+
* @param {string} id Id of the project
|
|
5033
5089
|
* @param {*} [options] Override http request option.
|
|
5034
5090
|
* @throws {RequiredError}
|
|
5035
5091
|
*/
|
|
@@ -5038,8 +5094,8 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5038
5094
|
},
|
|
5039
5095
|
/**
|
|
5040
5096
|
*
|
|
5041
|
-
* @summary Deletes
|
|
5042
|
-
* @param {string} invitationId Id of
|
|
5097
|
+
* @summary Deletes a project invitation.
|
|
5098
|
+
* @param {string} invitationId Id of an invitation
|
|
5043
5099
|
* @param {*} [options] Override http request option.
|
|
5044
5100
|
* @throws {RequiredError}
|
|
5045
5101
|
*/
|
|
@@ -5056,21 +5112,31 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5056
5112
|
projectGet(id, options) {
|
|
5057
5113
|
return localVarFp.projectGet(id, options).then((request) => request(axios, basePath));
|
|
5058
5114
|
},
|
|
5115
|
+
/**
|
|
5116
|
+
*
|
|
5117
|
+
* @summary This returns the project if the user has access to it
|
|
5118
|
+
* @param {string} slug Slug of the project
|
|
5119
|
+
* @param {*} [options] Override http request option.
|
|
5120
|
+
* @throws {RequiredError}
|
|
5121
|
+
*/
|
|
5122
|
+
projectGetBySlug(slug, options) {
|
|
5123
|
+
return localVarFp.projectGetBySlug(slug, options).then((request) => request(axios, basePath));
|
|
5124
|
+
},
|
|
5059
5125
|
/**
|
|
5060
5126
|
*
|
|
5061
5127
|
* @summary Get the max quota for a resource type.
|
|
5062
|
-
* @param {string}
|
|
5128
|
+
* @param {string} id Id of the project.
|
|
5063
5129
|
* @param {string} resourceTypeId Id of the resource
|
|
5064
5130
|
* @param {*} [options] Override http request option.
|
|
5065
5131
|
* @throws {RequiredError}
|
|
5066
5132
|
*/
|
|
5067
|
-
projectGetQuotaMax(
|
|
5068
|
-
return localVarFp.projectGetQuotaMax(
|
|
5133
|
+
projectGetQuotaMax(id, resourceTypeId, options) {
|
|
5134
|
+
return localVarFp.projectGetQuotaMax(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
5069
5135
|
},
|
|
5070
5136
|
/**
|
|
5071
5137
|
*
|
|
5072
5138
|
* @summary Gets the resources
|
|
5073
|
-
* @param {string} id Id of the
|
|
5139
|
+
* @param {string} id Id of the project
|
|
5074
5140
|
* @param {*} [options] Override http request option.
|
|
5075
5141
|
* @throws {RequiredError}
|
|
5076
5142
|
*/
|
|
@@ -5098,7 +5164,7 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5098
5164
|
/**
|
|
5099
5165
|
*
|
|
5100
5166
|
* @summary List all invitations of a project.
|
|
5101
|
-
* @param {string} projectId
|
|
5167
|
+
* @param {string} projectId Id of the project
|
|
5102
5168
|
* @param {*} [options] Override http request option.
|
|
5103
5169
|
* @throws {RequiredError}
|
|
5104
5170
|
*/
|
|
@@ -5108,38 +5174,38 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5108
5174
|
/**
|
|
5109
5175
|
*
|
|
5110
5176
|
* @summary Retrieves the quota for the selected project and resource Type.
|
|
5111
|
-
* @param {string}
|
|
5177
|
+
* @param {string} id Id of the project
|
|
5112
5178
|
* @param {string} resourceTypeId Id of the resource type
|
|
5113
5179
|
* @param {*} [options] Override http request option.
|
|
5114
5180
|
* @throws {RequiredError}
|
|
5115
5181
|
*/
|
|
5116
|
-
projectQuota(
|
|
5117
|
-
return localVarFp.projectQuota(
|
|
5182
|
+
projectQuota(id, resourceTypeId, options) {
|
|
5183
|
+
return localVarFp.projectQuota(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
5118
5184
|
},
|
|
5119
5185
|
/**
|
|
5120
5186
|
*
|
|
5121
5187
|
* @summary Retrieves the quota for the selected project.
|
|
5122
|
-
* @param {string}
|
|
5188
|
+
* @param {string} id Id of the project
|
|
5123
5189
|
* @param {*} [options] Override http request option.
|
|
5124
5190
|
* @throws {RequiredError}
|
|
5125
5191
|
*/
|
|
5126
|
-
projectQuotas(
|
|
5127
|
-
return localVarFp.projectQuotas(
|
|
5192
|
+
projectQuotas(id, options) {
|
|
5193
|
+
return localVarFp.projectQuotas(id, options).then((request) => request(axios, basePath));
|
|
5128
5194
|
},
|
|
5129
5195
|
/**
|
|
5130
5196
|
*
|
|
5131
|
-
* @summary Resolve
|
|
5132
|
-
* @param {string}
|
|
5197
|
+
* @summary Resolve a project invitation for the current user.
|
|
5198
|
+
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
5133
5199
|
* @param {*} [options] Override http request option.
|
|
5134
5200
|
* @throws {RequiredError}
|
|
5135
5201
|
*/
|
|
5136
|
-
projectResolveInvitation(
|
|
5137
|
-
return localVarFp.projectResolveInvitation(
|
|
5202
|
+
projectResolveInvitation(invitationToken, options) {
|
|
5203
|
+
return localVarFp.projectResolveInvitation(invitationToken, options).then((request) => request(axios, basePath));
|
|
5138
5204
|
},
|
|
5139
5205
|
/**
|
|
5140
5206
|
*
|
|
5141
|
-
* @summary Create and send
|
|
5142
|
-
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
|
|
5207
|
+
* @summary Create and send a project invitation to a specified mail.
|
|
5208
|
+
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
5143
5209
|
* @param {*} [options] Override http request option.
|
|
5144
5210
|
* @throws {RequiredError}
|
|
5145
5211
|
*/
|
|
@@ -5149,33 +5215,35 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5149
5215
|
/**
|
|
5150
5216
|
*
|
|
5151
5217
|
* @summary Creates a project
|
|
5218
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
5152
5219
|
* @param {*} [options] Override http request option.
|
|
5153
5220
|
* @throws {RequiredError}
|
|
5154
5221
|
*/
|
|
5155
|
-
projectStore(options) {
|
|
5156
|
-
return localVarFp.projectStore(options).then((request) => request(axios, basePath));
|
|
5222
|
+
projectStore(projectObject, options) {
|
|
5223
|
+
return localVarFp.projectStore(projectObject, options).then((request) => request(axios, basePath));
|
|
5157
5224
|
},
|
|
5158
5225
|
/**
|
|
5159
5226
|
*
|
|
5160
5227
|
* @summary Updates the selected project
|
|
5161
|
-
* @param {string} id Id of the
|
|
5228
|
+
* @param {string} id Id of the project
|
|
5229
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
5162
5230
|
* @param {*} [options] Override http request option.
|
|
5163
5231
|
* @throws {RequiredError}
|
|
5164
5232
|
*/
|
|
5165
|
-
projectUpdate(id, options) {
|
|
5166
|
-
return localVarFp.projectUpdate(id, options).then((request) => request(axios, basePath));
|
|
5233
|
+
projectUpdate(id, projectObject, options) {
|
|
5234
|
+
return localVarFp.projectUpdate(id, projectObject, options).then((request) => request(axios, basePath));
|
|
5167
5235
|
},
|
|
5168
5236
|
/**
|
|
5169
5237
|
*
|
|
5170
5238
|
* @summary Update the project quota.
|
|
5171
|
-
* @param {string}
|
|
5239
|
+
* @param {string} id Id of the project.
|
|
5172
5240
|
* @param {string} resourceTypeId Id of the resource.
|
|
5173
5241
|
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
5174
5242
|
* @param {*} [options] Override http request option.
|
|
5175
5243
|
* @throws {RequiredError}
|
|
5176
5244
|
*/
|
|
5177
|
-
projectUpdateQuota(
|
|
5178
|
-
return localVarFp.projectUpdateQuota(
|
|
5245
|
+
projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
5246
|
+
return localVarFp.projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(axios, basePath));
|
|
5179
5247
|
},
|
|
5180
5248
|
};
|
|
5181
5249
|
};
|
|
@@ -5592,33 +5660,6 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
5592
5660
|
options: localVarRequestOptions,
|
|
5593
5661
|
};
|
|
5594
5662
|
}),
|
|
5595
|
-
/**
|
|
5596
|
-
*
|
|
5597
|
-
* @summary Searchs no filter
|
|
5598
|
-
* @param {*} [options] Override http request option.
|
|
5599
|
-
* @throws {RequiredError}
|
|
5600
|
-
*/
|
|
5601
|
-
searchSearchNoFilter: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5602
|
-
const localVarPath = `/Search/allNoFilter`;
|
|
5603
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5604
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
5605
|
-
let baseOptions;
|
|
5606
|
-
if (configuration) {
|
|
5607
|
-
baseOptions = configuration.baseOptions;
|
|
5608
|
-
}
|
|
5609
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5610
|
-
const localVarHeaderParameter = {};
|
|
5611
|
-
const localVarQueryParameter = {};
|
|
5612
|
-
// authentication JWT token required
|
|
5613
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
5614
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5615
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5616
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5617
|
-
return {
|
|
5618
|
-
url: toPathString$6(localVarUrlObj),
|
|
5619
|
-
options: localVarRequestOptions,
|
|
5620
|
-
};
|
|
5621
|
-
}),
|
|
5622
5663
|
/**
|
|
5623
5664
|
*
|
|
5624
5665
|
* @summary Returns searched projects
|
|
@@ -5654,37 +5695,6 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
5654
5695
|
options: localVarRequestOptions,
|
|
5655
5696
|
};
|
|
5656
5697
|
}),
|
|
5657
|
-
/**
|
|
5658
|
-
*
|
|
5659
|
-
* @summary Returns searched projects with no filter
|
|
5660
|
-
* @param {string} projectId Id of the project
|
|
5661
|
-
* @param {*} [options] Override http request option.
|
|
5662
|
-
* @throws {RequiredError}
|
|
5663
|
-
*/
|
|
5664
|
-
searchSearchProjectNoFilter: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5665
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
5666
|
-
assertParamExists$5('searchSearchProjectNoFilter', 'projectId', projectId);
|
|
5667
|
-
const localVarPath = `/Search/projectNoFilter/{projectId}`
|
|
5668
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
5669
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5670
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
5671
|
-
let baseOptions;
|
|
5672
|
-
if (configuration) {
|
|
5673
|
-
baseOptions = configuration.baseOptions;
|
|
5674
|
-
}
|
|
5675
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5676
|
-
const localVarHeaderParameter = {};
|
|
5677
|
-
const localVarQueryParameter = {};
|
|
5678
|
-
// authentication JWT token required
|
|
5679
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
5680
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5681
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5682
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5683
|
-
return {
|
|
5684
|
-
url: toPathString$6(localVarUrlObj),
|
|
5685
|
-
options: localVarRequestOptions,
|
|
5686
|
-
};
|
|
5687
|
-
}),
|
|
5688
5698
|
};
|
|
5689
5699
|
};
|
|
5690
5700
|
/**
|
|
@@ -5707,18 +5717,6 @@ const SearchApiFp = function (configuration) {
|
|
|
5707
5717
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5708
5718
|
});
|
|
5709
5719
|
},
|
|
5710
|
-
/**
|
|
5711
|
-
*
|
|
5712
|
-
* @summary Searchs no filter
|
|
5713
|
-
* @param {*} [options] Override http request option.
|
|
5714
|
-
* @throws {RequiredError}
|
|
5715
|
-
*/
|
|
5716
|
-
searchSearchNoFilter(options) {
|
|
5717
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5718
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearchNoFilter(options);
|
|
5719
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5720
|
-
});
|
|
5721
|
-
},
|
|
5722
5720
|
/**
|
|
5723
5721
|
*
|
|
5724
5722
|
* @summary Returns searched projects
|
|
@@ -5733,19 +5731,6 @@ const SearchApiFp = function (configuration) {
|
|
|
5733
5731
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5734
5732
|
});
|
|
5735
5733
|
},
|
|
5736
|
-
/**
|
|
5737
|
-
*
|
|
5738
|
-
* @summary Returns searched projects with no filter
|
|
5739
|
-
* @param {string} projectId Id of the project
|
|
5740
|
-
* @param {*} [options] Override http request option.
|
|
5741
|
-
* @throws {RequiredError}
|
|
5742
|
-
*/
|
|
5743
|
-
searchSearchProjectNoFilter(projectId, options) {
|
|
5744
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5745
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearchProjectNoFilter(projectId, options);
|
|
5746
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5747
|
-
});
|
|
5748
|
-
},
|
|
5749
5734
|
};
|
|
5750
5735
|
};
|
|
5751
5736
|
/**
|
|
@@ -5765,15 +5750,6 @@ const SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
5765
5750
|
searchSearch(encodedSearchWord, options) {
|
|
5766
5751
|
return localVarFp.searchSearch(encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5767
5752
|
},
|
|
5768
|
-
/**
|
|
5769
|
-
*
|
|
5770
|
-
* @summary Searchs no filter
|
|
5771
|
-
* @param {*} [options] Override http request option.
|
|
5772
|
-
* @throws {RequiredError}
|
|
5773
|
-
*/
|
|
5774
|
-
searchSearchNoFilter(options) {
|
|
5775
|
-
return localVarFp.searchSearchNoFilter(options).then((request) => request(axios, basePath));
|
|
5776
|
-
},
|
|
5777
5753
|
/**
|
|
5778
5754
|
*
|
|
5779
5755
|
* @summary Returns searched projects
|
|
@@ -5785,16 +5761,6 @@ const SearchApiFactory = function (configuration, basePath, axios) {
|
|
|
5785
5761
|
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
5786
5762
|
return localVarFp.searchSearchProject(projectId, encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5787
5763
|
},
|
|
5788
|
-
/**
|
|
5789
|
-
*
|
|
5790
|
-
* @summary Returns searched projects with no filter
|
|
5791
|
-
* @param {string} projectId Id of the project
|
|
5792
|
-
* @param {*} [options] Override http request option.
|
|
5793
|
-
* @throws {RequiredError}
|
|
5794
|
-
*/
|
|
5795
|
-
searchSearchProjectNoFilter(projectId, options) {
|
|
5796
|
-
return localVarFp.searchSearchProjectNoFilter(projectId, options).then((request) => request(axios, basePath));
|
|
5797
|
-
},
|
|
5798
5764
|
};
|
|
5799
5765
|
};
|
|
5800
5766
|
/**
|
|
@@ -6007,7 +5973,7 @@ const VisibilityApiFactory = function (configuration, basePath, axios) {
|
|
|
6007
5973
|
};
|
|
6008
5974
|
|
|
6009
5975
|
/* tslint:disable */
|
|
6010
|
-
const BASE_PATH$5 = "https://d-
|
|
5976
|
+
const BASE_PATH$5 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, "");
|
|
6011
5977
|
/**
|
|
6012
5978
|
*
|
|
6013
5979
|
* @export
|
|
@@ -6308,7 +6274,7 @@ const QuotaApiFactory = function (configuration, basePath, axios) {
|
|
|
6308
6274
|
};
|
|
6309
6275
|
|
|
6310
6276
|
/* tslint:disable */
|
|
6311
|
-
const BASE_PATH$4 = "https://d-
|
|
6277
|
+
const BASE_PATH$4 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Resources".replace(/\/+$/, "");
|
|
6312
6278
|
/**
|
|
6313
6279
|
*
|
|
6314
6280
|
* @export
|
|
@@ -7002,7 +6968,7 @@ const ResourceTypeApiFactory = function (configuration, basePath, axios) {
|
|
|
7002
6968
|
};
|
|
7003
6969
|
|
|
7004
6970
|
/* tslint:disable */
|
|
7005
|
-
const BASE_PATH$3 = "https://d-
|
|
6971
|
+
const BASE_PATH$3 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
|
|
7006
6972
|
|
|
7007
6973
|
/* tslint:disable */
|
|
7008
6974
|
/**
|
|
@@ -7164,7 +7130,7 @@ const SemanticSearchApiFactory = function (configuration, basePath, axios) {
|
|
|
7164
7130
|
};
|
|
7165
7131
|
|
|
7166
7132
|
/* tslint:disable */
|
|
7167
|
-
const BASE_PATH$2 = "https://d-
|
|
7133
|
+
const BASE_PATH$2 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, "");
|
|
7168
7134
|
/**
|
|
7169
7135
|
*
|
|
7170
7136
|
* @export
|
|
@@ -7300,6 +7266,33 @@ const TokenApiAxiosParamCreator = function (configuration) {
|
|
|
7300
7266
|
options: localVarRequestOptions,
|
|
7301
7267
|
};
|
|
7302
7268
|
}),
|
|
7269
|
+
/**
|
|
7270
|
+
*
|
|
7271
|
+
* @summary Get the specified token minumum and maximum validity in days.
|
|
7272
|
+
* @param {*} [options] Override http request option.
|
|
7273
|
+
* @throws {RequiredError}
|
|
7274
|
+
*/
|
|
7275
|
+
tokenGetTokenValidityBounds: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7276
|
+
const localVarPath = `/Token/getValidity`;
|
|
7277
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7278
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
7279
|
+
let baseOptions;
|
|
7280
|
+
if (configuration) {
|
|
7281
|
+
baseOptions = configuration.baseOptions;
|
|
7282
|
+
}
|
|
7283
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7284
|
+
const localVarHeaderParameter = {};
|
|
7285
|
+
const localVarQueryParameter = {};
|
|
7286
|
+
// authentication JWT token required
|
|
7287
|
+
yield setApiKeyToObject$2(localVarHeaderParameter, "Authorization", configuration);
|
|
7288
|
+
setSearchParams$2(localVarUrlObj, localVarQueryParameter, options.query);
|
|
7289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7290
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7291
|
+
return {
|
|
7292
|
+
url: toPathString$2(localVarUrlObj),
|
|
7293
|
+
options: localVarRequestOptions,
|
|
7294
|
+
};
|
|
7295
|
+
}),
|
|
7303
7296
|
/**
|
|
7304
7297
|
*
|
|
7305
7298
|
* @summary Get the specific token values.
|
|
@@ -7411,6 +7404,18 @@ const TokenApiFp = function (configuration) {
|
|
|
7411
7404
|
return createRequestFunction$2(localVarAxiosArgs, axios, BASE_PATH$2, configuration);
|
|
7412
7405
|
});
|
|
7413
7406
|
},
|
|
7407
|
+
/**
|
|
7408
|
+
*
|
|
7409
|
+
* @summary Get the specified token minumum and maximum validity in days.
|
|
7410
|
+
* @param {*} [options] Override http request option.
|
|
7411
|
+
* @throws {RequiredError}
|
|
7412
|
+
*/
|
|
7413
|
+
tokenGetTokenValidityBounds(options) {
|
|
7414
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7415
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tokenGetTokenValidityBounds(options);
|
|
7416
|
+
return createRequestFunction$2(localVarAxiosArgs, axios, BASE_PATH$2, configuration);
|
|
7417
|
+
});
|
|
7418
|
+
},
|
|
7414
7419
|
/**
|
|
7415
7420
|
*
|
|
7416
7421
|
* @summary Get the specific token values.
|
|
@@ -7468,6 +7473,15 @@ const TokenApiFactory = function (configuration, basePath, axios) {
|
|
|
7468
7473
|
tokenAddToken(addApiTokenParameter, options) {
|
|
7469
7474
|
return localVarFp.tokenAddToken(addApiTokenParameter, options).then((request) => request(axios, basePath));
|
|
7470
7475
|
},
|
|
7476
|
+
/**
|
|
7477
|
+
*
|
|
7478
|
+
* @summary Get the specified token minumum and maximum validity in days.
|
|
7479
|
+
* @param {*} [options] Override http request option.
|
|
7480
|
+
* @throws {RequiredError}
|
|
7481
|
+
*/
|
|
7482
|
+
tokenGetTokenValidityBounds(options) {
|
|
7483
|
+
return localVarFp.tokenGetTokenValidityBounds(options).then((request) => request(axios, basePath));
|
|
7484
|
+
},
|
|
7471
7485
|
/**
|
|
7472
7486
|
*
|
|
7473
7487
|
* @summary Get the specific token values.
|
|
@@ -7501,7 +7515,7 @@ const TokenApiFactory = function (configuration, basePath, axios) {
|
|
|
7501
7515
|
};
|
|
7502
7516
|
|
|
7503
7517
|
/* tslint:disable */
|
|
7504
|
-
const BASE_PATH$1 = "https://d-
|
|
7518
|
+
const BASE_PATH$1 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
|
|
7505
7519
|
/**
|
|
7506
7520
|
*
|
|
7507
7521
|
* @export
|
|
@@ -7734,7 +7748,7 @@ const TreeApiFactory = function (configuration, basePath, axios) {
|
|
|
7734
7748
|
};
|
|
7735
7749
|
|
|
7736
7750
|
/* tslint:disable */
|
|
7737
|
-
const BASE_PATH = "https://d-
|
|
7751
|
+
const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, "");
|
|
7738
7752
|
/**
|
|
7739
7753
|
*
|
|
7740
7754
|
* @export
|
|
@@ -8582,15 +8596,15 @@ function implementations(axios) {
|
|
|
8582
8596
|
|
|
8583
8597
|
const instance = axios.create();
|
|
8584
8598
|
const authHeaderKey = 'Authorization';
|
|
8585
|
-
const
|
|
8599
|
+
const clientCorrelationIdKey = 'X-Coscine-Logging-CorrelationId';
|
|
8586
8600
|
function setHeader(request) {
|
|
8587
8601
|
if (typeof coscine !== "undefined") {
|
|
8588
8602
|
if (typeof coscine.authorization !== "undefined") {
|
|
8589
8603
|
request.headers.common[authHeaderKey] =
|
|
8590
8604
|
'Bearer ' + coscine.authorization.bearer;
|
|
8591
8605
|
}
|
|
8592
|
-
if (typeof coscine.
|
|
8593
|
-
request.headers.common[
|
|
8606
|
+
if (typeof coscine.clientcorrelation !== "undefined") {
|
|
8607
|
+
request.headers.common[clientCorrelationIdKey] = coscine.clientcorrelation.id;
|
|
8594
8608
|
}
|
|
8595
8609
|
}
|
|
8596
8610
|
if (typeof window !== 'undefined') {
|
|
@@ -8600,46 +8614,21 @@ function setHeader(request) {
|
|
|
8600
8614
|
request.headers.common[authHeaderKey] =
|
|
8601
8615
|
'Bearer ' + localStorageToken;
|
|
8602
8616
|
}
|
|
8603
|
-
const localStorageClientCorrelation = localStorage.getItem("coscine.
|
|
8617
|
+
const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrelation.id");
|
|
8604
8618
|
if (localStorageClientCorrelation) {
|
|
8605
|
-
request.headers.common[
|
|
8606
|
-
}
|
|
8607
|
-
}
|
|
8608
|
-
}
|
|
8609
|
-
function increaseLoading() {
|
|
8610
|
-
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8611
|
-
coscine.loading.counter++;
|
|
8612
|
-
}
|
|
8613
|
-
if (typeof window !== 'undefined') {
|
|
8614
|
-
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8615
|
-
if (localStorageLoading) {
|
|
8616
|
-
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) + 1));
|
|
8617
|
-
}
|
|
8618
|
-
}
|
|
8619
|
-
}
|
|
8620
|
-
function decreaseLoading() {
|
|
8621
|
-
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8622
|
-
coscine.loading.counter--;
|
|
8623
|
-
}
|
|
8624
|
-
if (typeof window !== 'undefined') {
|
|
8625
|
-
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8626
|
-
if (localStorageLoading) {
|
|
8627
|
-
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) - 1));
|
|
8619
|
+
request.headers.common[clientCorrelationIdKey] = localStorageClientCorrelation;
|
|
8628
8620
|
}
|
|
8629
8621
|
}
|
|
8630
8622
|
}
|
|
8631
8623
|
instance.interceptors.request.use((request) => {
|
|
8632
8624
|
setHeader(request);
|
|
8633
|
-
increaseLoading();
|
|
8634
8625
|
return request;
|
|
8635
8626
|
}, (error) => {
|
|
8636
8627
|
return Promise.reject(error);
|
|
8637
8628
|
});
|
|
8638
8629
|
instance.interceptors.response.use((response) => {
|
|
8639
|
-
decreaseLoading();
|
|
8640
8630
|
return response;
|
|
8641
8631
|
}, (error) => {
|
|
8642
|
-
decreaseLoading();
|
|
8643
8632
|
return Promise.reject(error);
|
|
8644
8633
|
});
|
|
8645
8634
|
|