@coscine/api-client 1.3.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +282 -227
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +282 -227
- 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 +241 -218
- 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 +29 -29
- 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 +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/apis.js +8 -1
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/axios-basic.js +36 -8
- 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 +376 -1694
- 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 +176 -38
- 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 +1 -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 +11 -11
- package/dist/types/index.d.ts +22 -22
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1855,7 +1855,7 @@
|
|
|
1855
1855
|
var axios = axios$2.exports;
|
|
1856
1856
|
|
|
1857
1857
|
/* tslint:disable */
|
|
1858
|
-
const BASE_PATH$c = "https://d-
|
|
1858
|
+
const BASE_PATH$c = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.ActivatedFeatures".replace(/\/+$/, "");
|
|
1859
1859
|
/**
|
|
1860
1860
|
*
|
|
1861
1861
|
* @export
|
|
@@ -2337,7 +2337,7 @@
|
|
|
2337
2337
|
}
|
|
2338
2338
|
|
|
2339
2339
|
/* tslint:disable */
|
|
2340
|
-
const BASE_PATH$b = "https://d-
|
|
2340
|
+
const BASE_PATH$b = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, "");
|
|
2341
2341
|
/**
|
|
2342
2342
|
*
|
|
2343
2343
|
* @export
|
|
@@ -2443,8 +2443,8 @@
|
|
|
2443
2443
|
return {
|
|
2444
2444
|
/**
|
|
2445
2445
|
*
|
|
2446
|
-
* @summary Find the project related to the
|
|
2447
|
-
* @param {string} projectString Either the id (
|
|
2446
|
+
* @summary Find the project related to the projectString(GUID or slug)
|
|
2447
|
+
* @param {string} projectString Either the id (GUID) of the project or the slug.
|
|
2448
2448
|
* @param {*} [options] Override http request option.
|
|
2449
2449
|
* @throws {RequiredError}
|
|
2450
2450
|
*/
|
|
@@ -2475,7 +2475,7 @@
|
|
|
2475
2475
|
/**
|
|
2476
2476
|
*
|
|
2477
2477
|
* @summary Update the project quota
|
|
2478
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject
|
|
2478
|
+
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
|
|
2479
2479
|
* @param {*} [options] Override http request option.
|
|
2480
2480
|
* @throws {RequiredError}
|
|
2481
2481
|
*/
|
|
@@ -2515,8 +2515,8 @@
|
|
|
2515
2515
|
return {
|
|
2516
2516
|
/**
|
|
2517
2517
|
*
|
|
2518
|
-
* @summary Find the project related to the
|
|
2519
|
-
* @param {string} projectString Either the id (
|
|
2518
|
+
* @summary Find the project related to the projectString(GUID or slug)
|
|
2519
|
+
* @param {string} projectString Either the id (GUID) of the project or the slug.
|
|
2520
2520
|
* @param {*} [options] Override http request option.
|
|
2521
2521
|
* @throws {RequiredError}
|
|
2522
2522
|
*/
|
|
@@ -2529,7 +2529,7 @@
|
|
|
2529
2529
|
/**
|
|
2530
2530
|
*
|
|
2531
2531
|
* @summary Update the project quota
|
|
2532
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject
|
|
2532
|
+
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
|
|
2533
2533
|
* @param {*} [options] Override http request option.
|
|
2534
2534
|
* @throws {RequiredError}
|
|
2535
2535
|
*/
|
|
@@ -2550,8 +2550,8 @@
|
|
|
2550
2550
|
return {
|
|
2551
2551
|
/**
|
|
2552
2552
|
*
|
|
2553
|
-
* @summary Find the project related to the
|
|
2554
|
-
* @param {string} projectString Either the id (
|
|
2553
|
+
* @summary Find the project related to the projectString(GUID or slug)
|
|
2554
|
+
* @param {string} projectString Either the id (GUID) of the project or the slug.
|
|
2555
2555
|
* @param {*} [options] Override http request option.
|
|
2556
2556
|
* @throws {RequiredError}
|
|
2557
2557
|
*/
|
|
@@ -2561,7 +2561,7 @@
|
|
|
2561
2561
|
/**
|
|
2562
2562
|
*
|
|
2563
2563
|
* @summary Update the project quota
|
|
2564
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject
|
|
2564
|
+
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
|
|
2565
2565
|
* @param {*} [options] Override http request option.
|
|
2566
2566
|
* @throws {RequiredError}
|
|
2567
2567
|
*/
|
|
@@ -2572,7 +2572,7 @@
|
|
|
2572
2572
|
};
|
|
2573
2573
|
|
|
2574
2574
|
/* tslint:disable */
|
|
2575
|
-
const BASE_PATH$a = "https://d-
|
|
2575
|
+
const BASE_PATH$a = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
|
|
2576
2576
|
/**
|
|
2577
2577
|
*
|
|
2578
2578
|
* @export
|
|
@@ -2998,7 +2998,7 @@
|
|
|
2998
2998
|
};
|
|
2999
2999
|
|
|
3000
3000
|
/* tslint:disable */
|
|
3001
|
-
const BASE_PATH$9 = "https://d-
|
|
3001
|
+
const BASE_PATH$9 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, "");
|
|
3002
3002
|
/**
|
|
3003
3003
|
*
|
|
3004
3004
|
* @export
|
|
@@ -3437,7 +3437,7 @@
|
|
|
3437
3437
|
};
|
|
3438
3438
|
|
|
3439
3439
|
/* tslint:disable */
|
|
3440
|
-
const BASE_PATH$8 = "https://d-
|
|
3440
|
+
const BASE_PATH$8 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, "");
|
|
3441
3441
|
/**
|
|
3442
3442
|
*
|
|
3443
3443
|
* @export
|
|
@@ -3658,7 +3658,7 @@
|
|
|
3658
3658
|
};
|
|
3659
3659
|
|
|
3660
3660
|
/* tslint:disable */
|
|
3661
|
-
const BASE_PATH$7 = "https://d-
|
|
3661
|
+
const BASE_PATH$7 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, "");
|
|
3662
3662
|
/**
|
|
3663
3663
|
*
|
|
3664
3664
|
* @export
|
|
@@ -4041,7 +4041,7 @@
|
|
|
4041
4041
|
};
|
|
4042
4042
|
|
|
4043
4043
|
/* tslint:disable */
|
|
4044
|
-
const BASE_PATH$6 = "https://d-
|
|
4044
|
+
const BASE_PATH$6 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
|
|
4045
4045
|
/**
|
|
4046
4046
|
*
|
|
4047
4047
|
* @export
|
|
@@ -4293,10 +4293,41 @@
|
|
|
4293
4293
|
*/
|
|
4294
4294
|
const ProjectApiAxiosParamCreator = function (configuration) {
|
|
4295
4295
|
return {
|
|
4296
|
+
/**
|
|
4297
|
+
*
|
|
4298
|
+
* @summary Call to analytics logger.
|
|
4299
|
+
* @param {string} projectId Project id of the project
|
|
4300
|
+
* @param {*} [options] Override http request option.
|
|
4301
|
+
* @throws {RequiredError}
|
|
4302
|
+
*/
|
|
4303
|
+
projectCreateApplicationProfile: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4304
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
4305
|
+
assertParamExists$5('projectCreateApplicationProfile', 'projectId', projectId);
|
|
4306
|
+
const localVarPath = `/Project/{projectId}/-/create-profile`
|
|
4307
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
4308
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4309
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4310
|
+
let baseOptions;
|
|
4311
|
+
if (configuration) {
|
|
4312
|
+
baseOptions = configuration.baseOptions;
|
|
4313
|
+
}
|
|
4314
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4315
|
+
const localVarHeaderParameter = {};
|
|
4316
|
+
const localVarQueryParameter = {};
|
|
4317
|
+
// authentication JWT token required
|
|
4318
|
+
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4319
|
+
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4321
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4322
|
+
return {
|
|
4323
|
+
url: toPathString$6(localVarUrlObj),
|
|
4324
|
+
options: localVarRequestOptions,
|
|
4325
|
+
};
|
|
4326
|
+
}),
|
|
4296
4327
|
/**
|
|
4297
4328
|
*
|
|
4298
4329
|
* @summary Deletes the selected project
|
|
4299
|
-
* @param {string} id Id of the
|
|
4330
|
+
* @param {string} id Id of the project
|
|
4300
4331
|
* @param {*} [options] Override http request option.
|
|
4301
4332
|
* @throws {RequiredError}
|
|
4302
4333
|
*/
|
|
@@ -4357,8 +4388,8 @@
|
|
|
4357
4388
|
}),
|
|
4358
4389
|
/**
|
|
4359
4390
|
*
|
|
4360
|
-
* @summary This returns the
|
|
4361
|
-
* @param {string} id Id of the
|
|
4391
|
+
* @summary This returns the project if the user has access to it
|
|
4392
|
+
* @param {string} id Id of the project
|
|
4362
4393
|
* @param {*} [options] Override http request option.
|
|
4363
4394
|
* @throws {RequiredError}
|
|
4364
4395
|
*/
|
|
@@ -4386,21 +4417,52 @@
|
|
|
4386
4417
|
options: localVarRequestOptions,
|
|
4387
4418
|
};
|
|
4388
4419
|
}),
|
|
4420
|
+
/**
|
|
4421
|
+
*
|
|
4422
|
+
* @summary This returns the project if the user has access to it
|
|
4423
|
+
* @param {string} slug Slug of the project
|
|
4424
|
+
* @param {*} [options] Override http request option.
|
|
4425
|
+
* @throws {RequiredError}
|
|
4426
|
+
*/
|
|
4427
|
+
projectGetBySlug: (slug, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4428
|
+
// verify required parameter 'slug' is not null or undefined
|
|
4429
|
+
assertParamExists$5('projectGetBySlug', 'slug', slug);
|
|
4430
|
+
const localVarPath = `/Project/slug/{slug}`
|
|
4431
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
4432
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4433
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4434
|
+
let baseOptions;
|
|
4435
|
+
if (configuration) {
|
|
4436
|
+
baseOptions = configuration.baseOptions;
|
|
4437
|
+
}
|
|
4438
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4439
|
+
const localVarHeaderParameter = {};
|
|
4440
|
+
const localVarQueryParameter = {};
|
|
4441
|
+
// authentication JWT token required
|
|
4442
|
+
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4443
|
+
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4444
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4445
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4446
|
+
return {
|
|
4447
|
+
url: toPathString$6(localVarUrlObj),
|
|
4448
|
+
options: localVarRequestOptions,
|
|
4449
|
+
};
|
|
4450
|
+
}),
|
|
4389
4451
|
/**
|
|
4390
4452
|
*
|
|
4391
4453
|
* @summary Get the max quota for a resource type.
|
|
4392
|
-
* @param {string}
|
|
4454
|
+
* @param {string} id Id of the project.
|
|
4393
4455
|
* @param {string} resourceTypeId Id of the resource
|
|
4394
4456
|
* @param {*} [options] Override http request option.
|
|
4395
4457
|
* @throws {RequiredError}
|
|
4396
4458
|
*/
|
|
4397
|
-
projectGetQuotaMax: (
|
|
4398
|
-
// verify required parameter '
|
|
4399
|
-
assertParamExists$5('projectGetQuotaMax', '
|
|
4459
|
+
projectGetQuotaMax: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4460
|
+
// verify required parameter 'id' is not null or undefined
|
|
4461
|
+
assertParamExists$5('projectGetQuotaMax', 'id', id);
|
|
4400
4462
|
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4401
4463
|
assertParamExists$5('projectGetQuotaMax', 'resourceTypeId', resourceTypeId);
|
|
4402
|
-
const localVarPath = `/Project/{
|
|
4403
|
-
.replace(`{${"
|
|
4464
|
+
const localVarPath = `/Project/{id}/quota/{resourceTypeId}/max`
|
|
4465
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4404
4466
|
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4405
4467
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4406
4468
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
@@ -4424,7 +4486,7 @@
|
|
|
4424
4486
|
/**
|
|
4425
4487
|
*
|
|
4426
4488
|
* @summary Gets the resources
|
|
4427
|
-
* @param {string} id Id of the
|
|
4489
|
+
* @param {string} id Id of the project
|
|
4428
4490
|
* @param {*} [options] Override http request option.
|
|
4429
4491
|
* @throws {RequiredError}
|
|
4430
4492
|
*/
|
|
@@ -4540,18 +4602,18 @@
|
|
|
4540
4602
|
/**
|
|
4541
4603
|
*
|
|
4542
4604
|
* @summary Retrieves the quota for the selected project and resource Type.
|
|
4543
|
-
* @param {string}
|
|
4605
|
+
* @param {string} id Id of the project
|
|
4544
4606
|
* @param {string} resourceTypeId Id of the resource type
|
|
4545
4607
|
* @param {*} [options] Override http request option.
|
|
4546
4608
|
* @throws {RequiredError}
|
|
4547
4609
|
*/
|
|
4548
|
-
projectQuota: (
|
|
4549
|
-
// verify required parameter '
|
|
4550
|
-
assertParamExists$5('projectQuota', '
|
|
4610
|
+
projectQuota: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4611
|
+
// verify required parameter 'id' is not null or undefined
|
|
4612
|
+
assertParamExists$5('projectQuota', 'id', id);
|
|
4551
4613
|
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4552
4614
|
assertParamExists$5('projectQuota', 'resourceTypeId', resourceTypeId);
|
|
4553
|
-
const localVarPath = `/Project/{
|
|
4554
|
-
.replace(`{${"
|
|
4615
|
+
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
|
|
4616
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4555
4617
|
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4556
4618
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4557
4619
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
@@ -4575,15 +4637,15 @@
|
|
|
4575
4637
|
/**
|
|
4576
4638
|
*
|
|
4577
4639
|
* @summary Retrieves the quota for the selected project.
|
|
4578
|
-
* @param {string}
|
|
4640
|
+
* @param {string} id Id of the project
|
|
4579
4641
|
* @param {*} [options] Override http request option.
|
|
4580
4642
|
* @throws {RequiredError}
|
|
4581
4643
|
*/
|
|
4582
|
-
projectQuotas: (
|
|
4583
|
-
// verify required parameter '
|
|
4584
|
-
assertParamExists$5('projectQuotas', '
|
|
4585
|
-
const localVarPath = `/Project/{
|
|
4586
|
-
.replace(`{${"
|
|
4644
|
+
projectQuotas: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4645
|
+
// verify required parameter 'id' is not null or undefined
|
|
4646
|
+
assertParamExists$5('projectQuotas', 'id', id);
|
|
4647
|
+
const localVarPath = `/Project/{id}/quota/-/all`
|
|
4648
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4587
4649
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4588
4650
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4589
4651
|
let baseOptions;
|
|
@@ -4669,10 +4731,13 @@
|
|
|
4669
4731
|
/**
|
|
4670
4732
|
*
|
|
4671
4733
|
* @summary Creates a project
|
|
4734
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
4672
4735
|
* @param {*} [options] Override http request option.
|
|
4673
4736
|
* @throws {RequiredError}
|
|
4674
4737
|
*/
|
|
4675
|
-
projectStore: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4738
|
+
projectStore: (projectObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4739
|
+
// verify required parameter 'projectObject' is not null or undefined
|
|
4740
|
+
assertParamExists$5('projectStore', 'projectObject', projectObject);
|
|
4676
4741
|
const localVarPath = `/Project`;
|
|
4677
4742
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4678
4743
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
@@ -4685,9 +4750,11 @@
|
|
|
4685
4750
|
const localVarQueryParameter = {};
|
|
4686
4751
|
// authentication JWT token required
|
|
4687
4752
|
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4753
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4688
4754
|
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4689
4755
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4690
4756
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4757
|
+
localVarRequestOptions.data = serializeDataIfNeeded$4(projectObject, localVarRequestOptions, configuration);
|
|
4691
4758
|
return {
|
|
4692
4759
|
url: toPathString$6(localVarUrlObj),
|
|
4693
4760
|
options: localVarRequestOptions,
|
|
@@ -4696,13 +4763,16 @@
|
|
|
4696
4763
|
/**
|
|
4697
4764
|
*
|
|
4698
4765
|
* @summary Updates the selected project
|
|
4699
|
-
* @param {string} id Id of the
|
|
4766
|
+
* @param {string} id Id of the project
|
|
4767
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
4700
4768
|
* @param {*} [options] Override http request option.
|
|
4701
4769
|
* @throws {RequiredError}
|
|
4702
4770
|
*/
|
|
4703
|
-
projectUpdate: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4771
|
+
projectUpdate: (id, projectObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4704
4772
|
// verify required parameter 'id' is not null or undefined
|
|
4705
4773
|
assertParamExists$5('projectUpdate', 'id', id);
|
|
4774
|
+
// verify required parameter 'projectObject' is not null or undefined
|
|
4775
|
+
assertParamExists$5('projectUpdate', 'projectObject', projectObject);
|
|
4706
4776
|
const localVarPath = `/Project/{id}`
|
|
4707
4777
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4708
4778
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -4716,9 +4786,11 @@
|
|
|
4716
4786
|
const localVarQueryParameter = {};
|
|
4717
4787
|
// authentication JWT token required
|
|
4718
4788
|
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4789
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4719
4790
|
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4720
4791
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4721
4792
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4793
|
+
localVarRequestOptions.data = serializeDataIfNeeded$4(projectObject, localVarRequestOptions, configuration);
|
|
4722
4794
|
return {
|
|
4723
4795
|
url: toPathString$6(localVarUrlObj),
|
|
4724
4796
|
options: localVarRequestOptions,
|
|
@@ -4727,21 +4799,21 @@
|
|
|
4727
4799
|
/**
|
|
4728
4800
|
*
|
|
4729
4801
|
* @summary Update the project quota.
|
|
4730
|
-
* @param {string}
|
|
4802
|
+
* @param {string} id Id of the project.
|
|
4731
4803
|
* @param {string} resourceTypeId Id of the resource.
|
|
4732
4804
|
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
4733
4805
|
* @param {*} [options] Override http request option.
|
|
4734
4806
|
* @throws {RequiredError}
|
|
4735
4807
|
*/
|
|
4736
|
-
projectUpdateQuota: (
|
|
4737
|
-
// verify required parameter '
|
|
4738
|
-
assertParamExists$5('projectUpdateQuota', '
|
|
4808
|
+
projectUpdateQuota: (id, resourceTypeId, updateProjectQuotaObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4809
|
+
// verify required parameter 'id' is not null or undefined
|
|
4810
|
+
assertParamExists$5('projectUpdateQuota', 'id', id);
|
|
4739
4811
|
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4740
4812
|
assertParamExists$5('projectUpdateQuota', 'resourceTypeId', resourceTypeId);
|
|
4741
4813
|
// verify required parameter 'updateProjectQuotaObject' is not null or undefined
|
|
4742
4814
|
assertParamExists$5('projectUpdateQuota', 'updateProjectQuotaObject', updateProjectQuotaObject);
|
|
4743
|
-
const localVarPath = `/Project/{
|
|
4744
|
-
.replace(`{${"
|
|
4815
|
+
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
|
|
4816
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4745
4817
|
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4746
4818
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4747
4819
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
@@ -4773,10 +4845,23 @@
|
|
|
4773
4845
|
const ProjectApiFp = function (configuration) {
|
|
4774
4846
|
const localVarAxiosParamCreator = ProjectApiAxiosParamCreator(configuration);
|
|
4775
4847
|
return {
|
|
4848
|
+
/**
|
|
4849
|
+
*
|
|
4850
|
+
* @summary Call to analytics logger.
|
|
4851
|
+
* @param {string} projectId Project id of the project
|
|
4852
|
+
* @param {*} [options] Override http request option.
|
|
4853
|
+
* @throws {RequiredError}
|
|
4854
|
+
*/
|
|
4855
|
+
projectCreateApplicationProfile(projectId, options) {
|
|
4856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4857
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectCreateApplicationProfile(projectId, options);
|
|
4858
|
+
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4859
|
+
});
|
|
4860
|
+
},
|
|
4776
4861
|
/**
|
|
4777
4862
|
*
|
|
4778
4863
|
* @summary Deletes the selected project
|
|
4779
|
-
* @param {string} id Id of the
|
|
4864
|
+
* @param {string} id Id of the project
|
|
4780
4865
|
* @param {*} [options] Override http request option.
|
|
4781
4866
|
* @throws {RequiredError}
|
|
4782
4867
|
*/
|
|
@@ -4801,8 +4886,8 @@
|
|
|
4801
4886
|
},
|
|
4802
4887
|
/**
|
|
4803
4888
|
*
|
|
4804
|
-
* @summary This returns the
|
|
4805
|
-
* @param {string} id Id of the
|
|
4889
|
+
* @summary This returns the project if the user has access to it
|
|
4890
|
+
* @param {string} id Id of the project
|
|
4806
4891
|
* @param {*} [options] Override http request option.
|
|
4807
4892
|
* @throws {RequiredError}
|
|
4808
4893
|
*/
|
|
@@ -4812,24 +4897,37 @@
|
|
|
4812
4897
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4813
4898
|
});
|
|
4814
4899
|
},
|
|
4900
|
+
/**
|
|
4901
|
+
*
|
|
4902
|
+
* @summary This returns the project if the user has access to it
|
|
4903
|
+
* @param {string} slug Slug of the project
|
|
4904
|
+
* @param {*} [options] Override http request option.
|
|
4905
|
+
* @throws {RequiredError}
|
|
4906
|
+
*/
|
|
4907
|
+
projectGetBySlug(slug, options) {
|
|
4908
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4909
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetBySlug(slug, options);
|
|
4910
|
+
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4911
|
+
});
|
|
4912
|
+
},
|
|
4815
4913
|
/**
|
|
4816
4914
|
*
|
|
4817
4915
|
* @summary Get the max quota for a resource type.
|
|
4818
|
-
* @param {string}
|
|
4916
|
+
* @param {string} id Id of the project.
|
|
4819
4917
|
* @param {string} resourceTypeId Id of the resource
|
|
4820
4918
|
* @param {*} [options] Override http request option.
|
|
4821
4919
|
* @throws {RequiredError}
|
|
4822
4920
|
*/
|
|
4823
|
-
projectGetQuotaMax(
|
|
4921
|
+
projectGetQuotaMax(id, resourceTypeId, options) {
|
|
4824
4922
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4825
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetQuotaMax(
|
|
4923
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetQuotaMax(id, resourceTypeId, options);
|
|
4826
4924
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4827
4925
|
});
|
|
4828
4926
|
},
|
|
4829
4927
|
/**
|
|
4830
4928
|
*
|
|
4831
4929
|
* @summary Gets the resources
|
|
4832
|
-
* @param {string} id Id of the
|
|
4930
|
+
* @param {string} id Id of the project
|
|
4833
4931
|
* @param {*} [options] Override http request option.
|
|
4834
4932
|
* @throws {RequiredError}
|
|
4835
4933
|
*/
|
|
@@ -4879,27 +4977,27 @@
|
|
|
4879
4977
|
/**
|
|
4880
4978
|
*
|
|
4881
4979
|
* @summary Retrieves the quota for the selected project and resource Type.
|
|
4882
|
-
* @param {string}
|
|
4980
|
+
* @param {string} id Id of the project
|
|
4883
4981
|
* @param {string} resourceTypeId Id of the resource type
|
|
4884
4982
|
* @param {*} [options] Override http request option.
|
|
4885
4983
|
* @throws {RequiredError}
|
|
4886
4984
|
*/
|
|
4887
|
-
projectQuota(
|
|
4985
|
+
projectQuota(id, resourceTypeId, options) {
|
|
4888
4986
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4889
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuota(
|
|
4987
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuota(id, resourceTypeId, options);
|
|
4890
4988
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4891
4989
|
});
|
|
4892
4990
|
},
|
|
4893
4991
|
/**
|
|
4894
4992
|
*
|
|
4895
4993
|
* @summary Retrieves the quota for the selected project.
|
|
4896
|
-
* @param {string}
|
|
4994
|
+
* @param {string} id Id of the project
|
|
4897
4995
|
* @param {*} [options] Override http request option.
|
|
4898
4996
|
* @throws {RequiredError}
|
|
4899
4997
|
*/
|
|
4900
|
-
projectQuotas(
|
|
4998
|
+
projectQuotas(id, options) {
|
|
4901
4999
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4902
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotas(
|
|
5000
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotas(id, options);
|
|
4903
5001
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4904
5002
|
});
|
|
4905
5003
|
},
|
|
@@ -4932,40 +5030,42 @@
|
|
|
4932
5030
|
/**
|
|
4933
5031
|
*
|
|
4934
5032
|
* @summary Creates a project
|
|
5033
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
4935
5034
|
* @param {*} [options] Override http request option.
|
|
4936
5035
|
* @throws {RequiredError}
|
|
4937
5036
|
*/
|
|
4938
|
-
projectStore(options) {
|
|
5037
|
+
projectStore(projectObject, options) {
|
|
4939
5038
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4940
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectStore(options);
|
|
5039
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectStore(projectObject, options);
|
|
4941
5040
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4942
5041
|
});
|
|
4943
5042
|
},
|
|
4944
5043
|
/**
|
|
4945
5044
|
*
|
|
4946
5045
|
* @summary Updates the selected project
|
|
4947
|
-
* @param {string} id Id of the
|
|
5046
|
+
* @param {string} id Id of the project
|
|
5047
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
4948
5048
|
* @param {*} [options] Override http request option.
|
|
4949
5049
|
* @throws {RequiredError}
|
|
4950
5050
|
*/
|
|
4951
|
-
projectUpdate(id, options) {
|
|
5051
|
+
projectUpdate(id, projectObject, options) {
|
|
4952
5052
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4953
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdate(id, options);
|
|
5053
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdate(id, projectObject, options);
|
|
4954
5054
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4955
5055
|
});
|
|
4956
5056
|
},
|
|
4957
5057
|
/**
|
|
4958
5058
|
*
|
|
4959
5059
|
* @summary Update the project quota.
|
|
4960
|
-
* @param {string}
|
|
5060
|
+
* @param {string} id Id of the project.
|
|
4961
5061
|
* @param {string} resourceTypeId Id of the resource.
|
|
4962
5062
|
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
4963
5063
|
* @param {*} [options] Override http request option.
|
|
4964
5064
|
* @throws {RequiredError}
|
|
4965
5065
|
*/
|
|
4966
|
-
projectUpdateQuota(
|
|
5066
|
+
projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
4967
5067
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4968
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdateQuota(
|
|
5068
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options);
|
|
4969
5069
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4970
5070
|
});
|
|
4971
5071
|
},
|
|
@@ -4978,10 +5078,20 @@
|
|
|
4978
5078
|
const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
4979
5079
|
const localVarFp = ProjectApiFp(configuration);
|
|
4980
5080
|
return {
|
|
5081
|
+
/**
|
|
5082
|
+
*
|
|
5083
|
+
* @summary Call to analytics logger.
|
|
5084
|
+
* @param {string} projectId Project id of the project
|
|
5085
|
+
* @param {*} [options] Override http request option.
|
|
5086
|
+
* @throws {RequiredError}
|
|
5087
|
+
*/
|
|
5088
|
+
projectCreateApplicationProfile(projectId, options) {
|
|
5089
|
+
return localVarFp.projectCreateApplicationProfile(projectId, options).then((request) => request(axios, basePath));
|
|
5090
|
+
},
|
|
4981
5091
|
/**
|
|
4982
5092
|
*
|
|
4983
5093
|
* @summary Deletes the selected project
|
|
4984
|
-
* @param {string} id Id of the
|
|
5094
|
+
* @param {string} id Id of the project
|
|
4985
5095
|
* @param {*} [options] Override http request option.
|
|
4986
5096
|
* @throws {RequiredError}
|
|
4987
5097
|
*/
|
|
@@ -5000,29 +5110,39 @@
|
|
|
5000
5110
|
},
|
|
5001
5111
|
/**
|
|
5002
5112
|
*
|
|
5003
|
-
* @summary This returns the
|
|
5004
|
-
* @param {string} id Id of the
|
|
5113
|
+
* @summary This returns the project if the user has access to it
|
|
5114
|
+
* @param {string} id Id of the project
|
|
5005
5115
|
* @param {*} [options] Override http request option.
|
|
5006
5116
|
* @throws {RequiredError}
|
|
5007
5117
|
*/
|
|
5008
5118
|
projectGet(id, options) {
|
|
5009
5119
|
return localVarFp.projectGet(id, options).then((request) => request(axios, basePath));
|
|
5010
5120
|
},
|
|
5121
|
+
/**
|
|
5122
|
+
*
|
|
5123
|
+
* @summary This returns the project if the user has access to it
|
|
5124
|
+
* @param {string} slug Slug of the project
|
|
5125
|
+
* @param {*} [options] Override http request option.
|
|
5126
|
+
* @throws {RequiredError}
|
|
5127
|
+
*/
|
|
5128
|
+
projectGetBySlug(slug, options) {
|
|
5129
|
+
return localVarFp.projectGetBySlug(slug, options).then((request) => request(axios, basePath));
|
|
5130
|
+
},
|
|
5011
5131
|
/**
|
|
5012
5132
|
*
|
|
5013
5133
|
* @summary Get the max quota for a resource type.
|
|
5014
|
-
* @param {string}
|
|
5134
|
+
* @param {string} id Id of the project.
|
|
5015
5135
|
* @param {string} resourceTypeId Id of the resource
|
|
5016
5136
|
* @param {*} [options] Override http request option.
|
|
5017
5137
|
* @throws {RequiredError}
|
|
5018
5138
|
*/
|
|
5019
|
-
projectGetQuotaMax(
|
|
5020
|
-
return localVarFp.projectGetQuotaMax(
|
|
5139
|
+
projectGetQuotaMax(id, resourceTypeId, options) {
|
|
5140
|
+
return localVarFp.projectGetQuotaMax(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
5021
5141
|
},
|
|
5022
5142
|
/**
|
|
5023
5143
|
*
|
|
5024
5144
|
* @summary Gets the resources
|
|
5025
|
-
* @param {string} id Id of the
|
|
5145
|
+
* @param {string} id Id of the project
|
|
5026
5146
|
* @param {*} [options] Override http request option.
|
|
5027
5147
|
* @throws {RequiredError}
|
|
5028
5148
|
*/
|
|
@@ -5060,23 +5180,23 @@
|
|
|
5060
5180
|
/**
|
|
5061
5181
|
*
|
|
5062
5182
|
* @summary Retrieves the quota for the selected project and resource Type.
|
|
5063
|
-
* @param {string}
|
|
5183
|
+
* @param {string} id Id of the project
|
|
5064
5184
|
* @param {string} resourceTypeId Id of the resource type
|
|
5065
5185
|
* @param {*} [options] Override http request option.
|
|
5066
5186
|
* @throws {RequiredError}
|
|
5067
5187
|
*/
|
|
5068
|
-
projectQuota(
|
|
5069
|
-
return localVarFp.projectQuota(
|
|
5188
|
+
projectQuota(id, resourceTypeId, options) {
|
|
5189
|
+
return localVarFp.projectQuota(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
5070
5190
|
},
|
|
5071
5191
|
/**
|
|
5072
5192
|
*
|
|
5073
5193
|
* @summary Retrieves the quota for the selected project.
|
|
5074
|
-
* @param {string}
|
|
5194
|
+
* @param {string} id Id of the project
|
|
5075
5195
|
* @param {*} [options] Override http request option.
|
|
5076
5196
|
* @throws {RequiredError}
|
|
5077
5197
|
*/
|
|
5078
|
-
projectQuotas(
|
|
5079
|
-
return localVarFp.projectQuotas(
|
|
5198
|
+
projectQuotas(id, options) {
|
|
5199
|
+
return localVarFp.projectQuotas(id, options).then((request) => request(axios, basePath));
|
|
5080
5200
|
},
|
|
5081
5201
|
/**
|
|
5082
5202
|
*
|
|
@@ -5101,33 +5221,35 @@
|
|
|
5101
5221
|
/**
|
|
5102
5222
|
*
|
|
5103
5223
|
* @summary Creates a project
|
|
5224
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
5104
5225
|
* @param {*} [options] Override http request option.
|
|
5105
5226
|
* @throws {RequiredError}
|
|
5106
5227
|
*/
|
|
5107
|
-
projectStore(options) {
|
|
5108
|
-
return localVarFp.projectStore(options).then((request) => request(axios, basePath));
|
|
5228
|
+
projectStore(projectObject, options) {
|
|
5229
|
+
return localVarFp.projectStore(projectObject, options).then((request) => request(axios, basePath));
|
|
5109
5230
|
},
|
|
5110
5231
|
/**
|
|
5111
5232
|
*
|
|
5112
5233
|
* @summary Updates the selected project
|
|
5113
|
-
* @param {string} id Id of the
|
|
5234
|
+
* @param {string} id Id of the project
|
|
5235
|
+
* @param {ProjectObject} projectObject A Project Object
|
|
5114
5236
|
* @param {*} [options] Override http request option.
|
|
5115
5237
|
* @throws {RequiredError}
|
|
5116
5238
|
*/
|
|
5117
|
-
projectUpdate(id, options) {
|
|
5118
|
-
return localVarFp.projectUpdate(id, options).then((request) => request(axios, basePath));
|
|
5239
|
+
projectUpdate(id, projectObject, options) {
|
|
5240
|
+
return localVarFp.projectUpdate(id, projectObject, options).then((request) => request(axios, basePath));
|
|
5119
5241
|
},
|
|
5120
5242
|
/**
|
|
5121
5243
|
*
|
|
5122
5244
|
* @summary Update the project quota.
|
|
5123
|
-
* @param {string}
|
|
5245
|
+
* @param {string} id Id of the project.
|
|
5124
5246
|
* @param {string} resourceTypeId Id of the resource.
|
|
5125
5247
|
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
5126
5248
|
* @param {*} [options] Override http request option.
|
|
5127
5249
|
* @throws {RequiredError}
|
|
5128
5250
|
*/
|
|
5129
|
-
projectUpdateQuota(
|
|
5130
|
-
return localVarFp.projectUpdateQuota(
|
|
5251
|
+
projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
5252
|
+
return localVarFp.projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(axios, basePath));
|
|
5131
5253
|
},
|
|
5132
5254
|
};
|
|
5133
5255
|
};
|
|
@@ -5544,33 +5666,6 @@
|
|
|
5544
5666
|
options: localVarRequestOptions,
|
|
5545
5667
|
};
|
|
5546
5668
|
}),
|
|
5547
|
-
/**
|
|
5548
|
-
*
|
|
5549
|
-
* @summary Searchs no filter
|
|
5550
|
-
* @param {*} [options] Override http request option.
|
|
5551
|
-
* @throws {RequiredError}
|
|
5552
|
-
*/
|
|
5553
|
-
searchSearchNoFilter: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5554
|
-
const localVarPath = `/Search/allNoFilter`;
|
|
5555
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5556
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
5557
|
-
let baseOptions;
|
|
5558
|
-
if (configuration) {
|
|
5559
|
-
baseOptions = configuration.baseOptions;
|
|
5560
|
-
}
|
|
5561
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5562
|
-
const localVarHeaderParameter = {};
|
|
5563
|
-
const localVarQueryParameter = {};
|
|
5564
|
-
// authentication JWT token required
|
|
5565
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
5566
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5567
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5568
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5569
|
-
return {
|
|
5570
|
-
url: toPathString$6(localVarUrlObj),
|
|
5571
|
-
options: localVarRequestOptions,
|
|
5572
|
-
};
|
|
5573
|
-
}),
|
|
5574
5669
|
/**
|
|
5575
5670
|
*
|
|
5576
5671
|
* @summary Returns searched projects
|
|
@@ -5606,37 +5701,6 @@
|
|
|
5606
5701
|
options: localVarRequestOptions,
|
|
5607
5702
|
};
|
|
5608
5703
|
}),
|
|
5609
|
-
/**
|
|
5610
|
-
*
|
|
5611
|
-
* @summary Returns searched projects with no filter
|
|
5612
|
-
* @param {string} projectId Id of the project
|
|
5613
|
-
* @param {*} [options] Override http request option.
|
|
5614
|
-
* @throws {RequiredError}
|
|
5615
|
-
*/
|
|
5616
|
-
searchSearchProjectNoFilter: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5617
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
5618
|
-
assertParamExists$5('searchSearchProjectNoFilter', 'projectId', projectId);
|
|
5619
|
-
const localVarPath = `/Search/projectNoFilter/{projectId}`
|
|
5620
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
5621
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5622
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
5623
|
-
let baseOptions;
|
|
5624
|
-
if (configuration) {
|
|
5625
|
-
baseOptions = configuration.baseOptions;
|
|
5626
|
-
}
|
|
5627
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5628
|
-
const localVarHeaderParameter = {};
|
|
5629
|
-
const localVarQueryParameter = {};
|
|
5630
|
-
// authentication JWT token required
|
|
5631
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
5632
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5633
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5634
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5635
|
-
return {
|
|
5636
|
-
url: toPathString$6(localVarUrlObj),
|
|
5637
|
-
options: localVarRequestOptions,
|
|
5638
|
-
};
|
|
5639
|
-
}),
|
|
5640
5704
|
};
|
|
5641
5705
|
};
|
|
5642
5706
|
/**
|
|
@@ -5659,18 +5723,6 @@
|
|
|
5659
5723
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5660
5724
|
});
|
|
5661
5725
|
},
|
|
5662
|
-
/**
|
|
5663
|
-
*
|
|
5664
|
-
* @summary Searchs no filter
|
|
5665
|
-
* @param {*} [options] Override http request option.
|
|
5666
|
-
* @throws {RequiredError}
|
|
5667
|
-
*/
|
|
5668
|
-
searchSearchNoFilter(options) {
|
|
5669
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5670
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearchNoFilter(options);
|
|
5671
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5672
|
-
});
|
|
5673
|
-
},
|
|
5674
5726
|
/**
|
|
5675
5727
|
*
|
|
5676
5728
|
* @summary Returns searched projects
|
|
@@ -5685,19 +5737,6 @@
|
|
|
5685
5737
|
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5686
5738
|
});
|
|
5687
5739
|
},
|
|
5688
|
-
/**
|
|
5689
|
-
*
|
|
5690
|
-
* @summary Returns searched projects with no filter
|
|
5691
|
-
* @param {string} projectId Id of the project
|
|
5692
|
-
* @param {*} [options] Override http request option.
|
|
5693
|
-
* @throws {RequiredError}
|
|
5694
|
-
*/
|
|
5695
|
-
searchSearchProjectNoFilter(projectId, options) {
|
|
5696
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5697
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearchProjectNoFilter(projectId, options);
|
|
5698
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5699
|
-
});
|
|
5700
|
-
},
|
|
5701
5740
|
};
|
|
5702
5741
|
};
|
|
5703
5742
|
/**
|
|
@@ -5717,15 +5756,6 @@
|
|
|
5717
5756
|
searchSearch(encodedSearchWord, options) {
|
|
5718
5757
|
return localVarFp.searchSearch(encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5719
5758
|
},
|
|
5720
|
-
/**
|
|
5721
|
-
*
|
|
5722
|
-
* @summary Searchs no filter
|
|
5723
|
-
* @param {*} [options] Override http request option.
|
|
5724
|
-
* @throws {RequiredError}
|
|
5725
|
-
*/
|
|
5726
|
-
searchSearchNoFilter(options) {
|
|
5727
|
-
return localVarFp.searchSearchNoFilter(options).then((request) => request(axios, basePath));
|
|
5728
|
-
},
|
|
5729
5759
|
/**
|
|
5730
5760
|
*
|
|
5731
5761
|
* @summary Returns searched projects
|
|
@@ -5737,16 +5767,6 @@
|
|
|
5737
5767
|
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
5738
5768
|
return localVarFp.searchSearchProject(projectId, encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5739
5769
|
},
|
|
5740
|
-
/**
|
|
5741
|
-
*
|
|
5742
|
-
* @summary Returns searched projects with no filter
|
|
5743
|
-
* @param {string} projectId Id of the project
|
|
5744
|
-
* @param {*} [options] Override http request option.
|
|
5745
|
-
* @throws {RequiredError}
|
|
5746
|
-
*/
|
|
5747
|
-
searchSearchProjectNoFilter(projectId, options) {
|
|
5748
|
-
return localVarFp.searchSearchProjectNoFilter(projectId, options).then((request) => request(axios, basePath));
|
|
5749
|
-
},
|
|
5750
5770
|
};
|
|
5751
5771
|
};
|
|
5752
5772
|
/**
|
|
@@ -5959,7 +5979,7 @@
|
|
|
5959
5979
|
};
|
|
5960
5980
|
|
|
5961
5981
|
/* tslint:disable */
|
|
5962
|
-
const BASE_PATH$5 = "https://d-
|
|
5982
|
+
const BASE_PATH$5 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, "");
|
|
5963
5983
|
/**
|
|
5964
5984
|
*
|
|
5965
5985
|
* @export
|
|
@@ -6260,7 +6280,7 @@
|
|
|
6260
6280
|
};
|
|
6261
6281
|
|
|
6262
6282
|
/* tslint:disable */
|
|
6263
|
-
const BASE_PATH$4 = "https://d-
|
|
6283
|
+
const BASE_PATH$4 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Resources".replace(/\/+$/, "");
|
|
6264
6284
|
/**
|
|
6265
6285
|
*
|
|
6266
6286
|
* @export
|
|
@@ -6367,7 +6387,7 @@
|
|
|
6367
6387
|
/**
|
|
6368
6388
|
*
|
|
6369
6389
|
* @summary This deletes the specified resource.
|
|
6370
|
-
* @param {string} id A
|
|
6390
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6371
6391
|
* @param {*} [options] Override http request option.
|
|
6372
6392
|
* @throws {RequiredError}
|
|
6373
6393
|
*/
|
|
@@ -6398,7 +6418,7 @@
|
|
|
6398
6418
|
/**
|
|
6399
6419
|
*
|
|
6400
6420
|
* @summary This returns the resource for the specified id.
|
|
6401
|
-
* @param {string} id A
|
|
6421
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6402
6422
|
* @param {*} [options] Override http request option.
|
|
6403
6423
|
* @throws {RequiredError}
|
|
6404
6424
|
*/
|
|
@@ -6456,7 +6476,7 @@
|
|
|
6456
6476
|
/**
|
|
6457
6477
|
*
|
|
6458
6478
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6459
|
-
* @param {string} id A
|
|
6479
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6460
6480
|
* @param {*} [options] Override http request option.
|
|
6461
6481
|
* @throws {RequiredError}
|
|
6462
6482
|
*/
|
|
@@ -6486,8 +6506,8 @@
|
|
|
6486
6506
|
}),
|
|
6487
6507
|
/**
|
|
6488
6508
|
*
|
|
6489
|
-
* @summary This returns the
|
|
6490
|
-
* @param {string} id A
|
|
6509
|
+
* @summary This returns the read only status of the given resource.
|
|
6510
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6491
6511
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6492
6512
|
* @param {*} [options] Override http request option.
|
|
6493
6513
|
* @throws {RequiredError}
|
|
@@ -6522,7 +6542,7 @@
|
|
|
6522
6542
|
/**
|
|
6523
6543
|
*
|
|
6524
6544
|
* @summary This stores the provided resource object for the specified project.
|
|
6525
|
-
* @param {string} projectId A
|
|
6545
|
+
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6526
6546
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6527
6547
|
* @param {*} [options] Override http request option.
|
|
6528
6548
|
* @throws {RequiredError}
|
|
@@ -6558,7 +6578,7 @@
|
|
|
6558
6578
|
/**
|
|
6559
6579
|
*
|
|
6560
6580
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6561
|
-
* @param {string} id A
|
|
6581
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6562
6582
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6563
6583
|
* @param {*} [options] Override http request option.
|
|
6564
6584
|
* @throws {RequiredError}
|
|
@@ -6603,7 +6623,7 @@
|
|
|
6603
6623
|
/**
|
|
6604
6624
|
*
|
|
6605
6625
|
* @summary This deletes the specified resource.
|
|
6606
|
-
* @param {string} id A
|
|
6626
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6607
6627
|
* @param {*} [options] Override http request option.
|
|
6608
6628
|
* @throws {RequiredError}
|
|
6609
6629
|
*/
|
|
@@ -6616,7 +6636,7 @@
|
|
|
6616
6636
|
/**
|
|
6617
6637
|
*
|
|
6618
6638
|
* @summary This returns the resource for the specified id.
|
|
6619
|
-
* @param {string} id A
|
|
6639
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6620
6640
|
* @param {*} [options] Override http request option.
|
|
6621
6641
|
* @throws {RequiredError}
|
|
6622
6642
|
*/
|
|
@@ -6641,7 +6661,7 @@
|
|
|
6641
6661
|
/**
|
|
6642
6662
|
*
|
|
6643
6663
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6644
|
-
* @param {string} id A
|
|
6664
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6645
6665
|
* @param {*} [options] Override http request option.
|
|
6646
6666
|
* @throws {RequiredError}
|
|
6647
6667
|
*/
|
|
@@ -6653,8 +6673,8 @@
|
|
|
6653
6673
|
},
|
|
6654
6674
|
/**
|
|
6655
6675
|
*
|
|
6656
|
-
* @summary This returns the
|
|
6657
|
-
* @param {string} id A
|
|
6676
|
+
* @summary This returns the read only status of the given resource.
|
|
6677
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6658
6678
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6659
6679
|
* @param {*} [options] Override http request option.
|
|
6660
6680
|
* @throws {RequiredError}
|
|
@@ -6668,7 +6688,7 @@
|
|
|
6668
6688
|
/**
|
|
6669
6689
|
*
|
|
6670
6690
|
* @summary This stores the provided resource object for the specified project.
|
|
6671
|
-
* @param {string} projectId A
|
|
6691
|
+
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6672
6692
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6673
6693
|
* @param {*} [options] Override http request option.
|
|
6674
6694
|
* @throws {RequiredError}
|
|
@@ -6682,7 +6702,7 @@
|
|
|
6682
6702
|
/**
|
|
6683
6703
|
*
|
|
6684
6704
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6685
|
-
* @param {string} id A
|
|
6705
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6686
6706
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6687
6707
|
* @param {*} [options] Override http request option.
|
|
6688
6708
|
* @throws {RequiredError}
|
|
@@ -6705,7 +6725,7 @@
|
|
|
6705
6725
|
/**
|
|
6706
6726
|
*
|
|
6707
6727
|
* @summary This deletes the specified resource.
|
|
6708
|
-
* @param {string} id A
|
|
6728
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6709
6729
|
* @param {*} [options] Override http request option.
|
|
6710
6730
|
* @throws {RequiredError}
|
|
6711
6731
|
*/
|
|
@@ -6715,7 +6735,7 @@
|
|
|
6715
6735
|
/**
|
|
6716
6736
|
*
|
|
6717
6737
|
* @summary This returns the resource for the specified id.
|
|
6718
|
-
* @param {string} id A
|
|
6738
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6719
6739
|
* @param {*} [options] Override http request option.
|
|
6720
6740
|
* @throws {RequiredError}
|
|
6721
6741
|
*/
|
|
@@ -6734,7 +6754,7 @@
|
|
|
6734
6754
|
/**
|
|
6735
6755
|
*
|
|
6736
6756
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6737
|
-
* @param {string} id A
|
|
6757
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6738
6758
|
* @param {*} [options] Override http request option.
|
|
6739
6759
|
* @throws {RequiredError}
|
|
6740
6760
|
*/
|
|
@@ -6743,8 +6763,8 @@
|
|
|
6743
6763
|
},
|
|
6744
6764
|
/**
|
|
6745
6765
|
*
|
|
6746
|
-
* @summary This returns the
|
|
6747
|
-
* @param {string} id A
|
|
6766
|
+
* @summary This returns the read only status of the given resource.
|
|
6767
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6748
6768
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6749
6769
|
* @param {*} [options] Override http request option.
|
|
6750
6770
|
* @throws {RequiredError}
|
|
@@ -6755,7 +6775,7 @@
|
|
|
6755
6775
|
/**
|
|
6756
6776
|
*
|
|
6757
6777
|
* @summary This stores the provided resource object for the specified project.
|
|
6758
|
-
* @param {string} projectId A
|
|
6778
|
+
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6759
6779
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6760
6780
|
* @param {*} [options] Override http request option.
|
|
6761
6781
|
* @throws {RequiredError}
|
|
@@ -6766,7 +6786,7 @@
|
|
|
6766
6786
|
/**
|
|
6767
6787
|
*
|
|
6768
6788
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6769
|
-
* @param {string} id A
|
|
6789
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6770
6790
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6771
6791
|
* @param {*} [options] Override http request option.
|
|
6772
6792
|
* @throws {RequiredError}
|
|
@@ -6954,7 +6974,7 @@
|
|
|
6954
6974
|
};
|
|
6955
6975
|
|
|
6956
6976
|
/* tslint:disable */
|
|
6957
|
-
const BASE_PATH$3 = "https://d-
|
|
6977
|
+
const BASE_PATH$3 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
|
|
6958
6978
|
|
|
6959
6979
|
/* tslint:disable */
|
|
6960
6980
|
/**
|
|
@@ -7116,7 +7136,7 @@
|
|
|
7116
7136
|
};
|
|
7117
7137
|
|
|
7118
7138
|
/* tslint:disable */
|
|
7119
|
-
const BASE_PATH$2 = "https://d-
|
|
7139
|
+
const BASE_PATH$2 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, "");
|
|
7120
7140
|
/**
|
|
7121
7141
|
*
|
|
7122
7142
|
* @export
|
|
@@ -7453,7 +7473,7 @@
|
|
|
7453
7473
|
};
|
|
7454
7474
|
|
|
7455
7475
|
/* tslint:disable */
|
|
7456
|
-
const BASE_PATH$1 = "https://d-
|
|
7476
|
+
const BASE_PATH$1 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
|
|
7457
7477
|
/**
|
|
7458
7478
|
*
|
|
7459
7479
|
* @export
|
|
@@ -7686,7 +7706,7 @@
|
|
|
7686
7706
|
};
|
|
7687
7707
|
|
|
7688
7708
|
/* tslint:disable */
|
|
7689
|
-
const BASE_PATH = "https://d-
|
|
7709
|
+
const BASE_PATH = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, "");
|
|
7690
7710
|
/**
|
|
7691
7711
|
*
|
|
7692
7712
|
* @export
|
|
@@ -8483,7 +8503,14 @@
|
|
|
8483
8503
|
|
|
8484
8504
|
let accessToken = '';
|
|
8485
8505
|
if (typeof coscine !== 'undefined' && typeof coscine.authorization !== 'undefined') {
|
|
8486
|
-
accessToken = coscine.authorization.bearer;
|
|
8506
|
+
accessToken = 'Bearer ' + coscine.authorization.bearer;
|
|
8507
|
+
}
|
|
8508
|
+
if (typeof window !== 'undefined') {
|
|
8509
|
+
// LocalStorage > Global Variables
|
|
8510
|
+
const localStorageToken = localStorage.getItem('coscine.authorization.bearer');
|
|
8511
|
+
if (localStorageToken) {
|
|
8512
|
+
accessToken = 'Bearer ' + localStorageToken;
|
|
8513
|
+
}
|
|
8487
8514
|
}
|
|
8488
8515
|
const getHostName = () => {
|
|
8489
8516
|
let hostName = typeof window !== 'undefined' ? window.location.hostname : 'coscine.rwth-aachen.de';
|
|
@@ -8538,25 +8565,53 @@
|
|
|
8538
8565
|
request.headers.common[clientCorrolationIdKey] = coscine.clientcorrolation.id;
|
|
8539
8566
|
}
|
|
8540
8567
|
}
|
|
8568
|
+
if (typeof window !== 'undefined') {
|
|
8569
|
+
// LocalStorage > Global Variables
|
|
8570
|
+
const localStorageToken = localStorage.getItem("coscine.authorization.bearer");
|
|
8571
|
+
if (localStorageToken) {
|
|
8572
|
+
request.headers.common[authHeaderKey] =
|
|
8573
|
+
'Bearer ' + localStorageToken;
|
|
8574
|
+
}
|
|
8575
|
+
const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrolation.id");
|
|
8576
|
+
if (localStorageClientCorrelation) {
|
|
8577
|
+
request.headers.common[clientCorrolationIdKey] = localStorageClientCorrelation;
|
|
8578
|
+
}
|
|
8579
|
+
}
|
|
8541
8580
|
}
|
|
8542
|
-
|
|
8543
|
-
setHeader(request);
|
|
8581
|
+
function increaseLoading() {
|
|
8544
8582
|
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8545
8583
|
coscine.loading.counter++;
|
|
8546
8584
|
}
|
|
8585
|
+
if (typeof window !== 'undefined') {
|
|
8586
|
+
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8587
|
+
if (localStorageLoading) {
|
|
8588
|
+
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) + 1));
|
|
8589
|
+
}
|
|
8590
|
+
}
|
|
8591
|
+
}
|
|
8592
|
+
function decreaseLoading() {
|
|
8593
|
+
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8594
|
+
coscine.loading.counter--;
|
|
8595
|
+
}
|
|
8596
|
+
if (typeof window !== 'undefined') {
|
|
8597
|
+
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8598
|
+
if (localStorageLoading) {
|
|
8599
|
+
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) - 1));
|
|
8600
|
+
}
|
|
8601
|
+
}
|
|
8602
|
+
}
|
|
8603
|
+
instance.interceptors.request.use((request) => {
|
|
8604
|
+
setHeader(request);
|
|
8605
|
+
increaseLoading();
|
|
8547
8606
|
return request;
|
|
8548
8607
|
}, (error) => {
|
|
8549
8608
|
return Promise.reject(error);
|
|
8550
8609
|
});
|
|
8551
8610
|
instance.interceptors.response.use((response) => {
|
|
8552
|
-
|
|
8553
|
-
coscine.loading.counter--;
|
|
8554
|
-
}
|
|
8611
|
+
decreaseLoading();
|
|
8555
8612
|
return response;
|
|
8556
8613
|
}, (error) => {
|
|
8557
|
-
|
|
8558
|
-
coscine.loading.counter--;
|
|
8559
|
-
}
|
|
8614
|
+
decreaseLoading();
|
|
8560
8615
|
return Promise.reject(error);
|
|
8561
8616
|
});
|
|
8562
8617
|
|