@coscine/api-client 1.2.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +132 -109
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +132 -109
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.Metadata/api.js +9 -88
- package/dist/lib/Coscine.Api.Metadata/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Metadata/base.js +1 -1
- 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.Project/api.js +74 -9
- 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.Resources/api.js +29 -29
- package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Resources/base.js +1 -1
- 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/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.Metadata/api.d.ts +52 -55
- 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.Project/api.d.ts +45 -12
- 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.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/apis.d.ts +9 -9
- package/dist/types/index.d.ts +18 -18
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3096,56 +3096,17 @@ const createRequestFunction$9 = function (axiosArgs, globalAxios, BASE_PATH, con
|
|
|
3096
3096
|
*/
|
|
3097
3097
|
const MetadataApiAxiosParamCreator = function (configuration) {
|
|
3098
3098
|
return {
|
|
3099
|
-
/**
|
|
3100
|
-
*
|
|
3101
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
3102
|
-
* @param {string} profile Url of the application profile
|
|
3103
|
-
* @param {string} resourceId Id of the resource
|
|
3104
|
-
* @param {*} [options] Override http request option.
|
|
3105
|
-
* @throws {RequiredError}
|
|
3106
|
-
*/
|
|
3107
|
-
metadataGetApplicationProfileComplete: (profile, resourceId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3108
|
-
// verify required parameter 'profile' is not null or undefined
|
|
3109
|
-
assertParamExists$8('metadataGetApplicationProfileComplete', 'profile', profile);
|
|
3110
|
-
// verify required parameter 'resourceId' is not null or undefined
|
|
3111
|
-
assertParamExists$8('metadataGetApplicationProfileComplete', 'resourceId', resourceId);
|
|
3112
|
-
const localVarPath = `/Metadata/profiles/{profile}/{resourceId}`
|
|
3113
|
-
.replace(`{${"profile"}}`, encodeURIComponent(String(profile)))
|
|
3114
|
-
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
3115
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3116
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
3117
|
-
let baseOptions;
|
|
3118
|
-
if (configuration) {
|
|
3119
|
-
baseOptions = configuration.baseOptions;
|
|
3120
|
-
}
|
|
3121
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3122
|
-
const localVarHeaderParameter = {};
|
|
3123
|
-
const localVarQueryParameter = {};
|
|
3124
|
-
// authentication JWT token required
|
|
3125
|
-
yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
|
|
3126
|
-
setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3127
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3128
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3129
|
-
return {
|
|
3130
|
-
url: toPathString$9(localVarUrlObj),
|
|
3131
|
-
options: localVarRequestOptions,
|
|
3132
|
-
};
|
|
3133
|
-
}),
|
|
3134
3099
|
/**
|
|
3135
3100
|
*
|
|
3136
3101
|
* @summary This method returns instances.
|
|
3137
|
-
* @param {string} projectId Id of the project
|
|
3138
3102
|
* @param {string} className class name
|
|
3139
3103
|
* @param {*} [options] Override http request option.
|
|
3140
3104
|
* @throws {RequiredError}
|
|
3141
3105
|
*/
|
|
3142
|
-
metadataGetClassInstances: (
|
|
3143
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
3144
|
-
assertParamExists$8('metadataGetClassInstances', 'projectId', projectId);
|
|
3106
|
+
metadataGetClassInstances: (className, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3145
3107
|
// verify required parameter 'className' is not null or undefined
|
|
3146
3108
|
assertParamExists$8('metadataGetClassInstances', 'className', className);
|
|
3147
|
-
const localVarPath = `/Metadata/instances/{
|
|
3148
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
3109
|
+
const localVarPath = `/Metadata/instances/{className}`
|
|
3149
3110
|
.replace(`{${"className"}}`, encodeURIComponent(String(className)));
|
|
3150
3111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3151
3112
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
@@ -3323,31 +3284,16 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
3323
3284
|
const MetadataApiFp = function (configuration) {
|
|
3324
3285
|
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration);
|
|
3325
3286
|
return {
|
|
3326
|
-
/**
|
|
3327
|
-
*
|
|
3328
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
3329
|
-
* @param {string} profile Url of the application profile
|
|
3330
|
-
* @param {string} resourceId Id of the resource
|
|
3331
|
-
* @param {*} [options] Override http request option.
|
|
3332
|
-
* @throws {RequiredError}
|
|
3333
|
-
*/
|
|
3334
|
-
metadataGetApplicationProfileComplete(profile, resourceId, options) {
|
|
3335
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3336
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetApplicationProfileComplete(profile, resourceId, options);
|
|
3337
|
-
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
3338
|
-
});
|
|
3339
|
-
},
|
|
3340
3287
|
/**
|
|
3341
3288
|
*
|
|
3342
3289
|
* @summary This method returns instances.
|
|
3343
|
-
* @param {string} projectId Id of the project
|
|
3344
3290
|
* @param {string} className class name
|
|
3345
3291
|
* @param {*} [options] Override http request option.
|
|
3346
3292
|
* @throws {RequiredError}
|
|
3347
3293
|
*/
|
|
3348
|
-
metadataGetClassInstances(
|
|
3294
|
+
metadataGetClassInstances(className, options) {
|
|
3349
3295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3350
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetClassInstances(
|
|
3296
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetClassInstances(className, options);
|
|
3351
3297
|
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
3352
3298
|
});
|
|
3353
3299
|
},
|
|
@@ -3423,27 +3369,15 @@ const MetadataApiFp = function (configuration) {
|
|
|
3423
3369
|
const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
3424
3370
|
const localVarFp = MetadataApiFp(configuration);
|
|
3425
3371
|
return {
|
|
3426
|
-
/**
|
|
3427
|
-
*
|
|
3428
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
3429
|
-
* @param {string} profile Url of the application profile
|
|
3430
|
-
* @param {string} resourceId Id of the resource
|
|
3431
|
-
* @param {*} [options] Override http request option.
|
|
3432
|
-
* @throws {RequiredError}
|
|
3433
|
-
*/
|
|
3434
|
-
metadataGetApplicationProfileComplete(profile, resourceId, options) {
|
|
3435
|
-
return localVarFp.metadataGetApplicationProfileComplete(profile, resourceId, options).then((request) => request(axios, basePath));
|
|
3436
|
-
},
|
|
3437
3372
|
/**
|
|
3438
3373
|
*
|
|
3439
3374
|
* @summary This method returns instances.
|
|
3440
|
-
* @param {string} projectId Id of the project
|
|
3441
3375
|
* @param {string} className class name
|
|
3442
3376
|
* @param {*} [options] Override http request option.
|
|
3443
3377
|
* @throws {RequiredError}
|
|
3444
3378
|
*/
|
|
3445
|
-
metadataGetClassInstances(
|
|
3446
|
-
return localVarFp.metadataGetClassInstances(
|
|
3379
|
+
metadataGetClassInstances(className, options) {
|
|
3380
|
+
return localVarFp.metadataGetClassInstances(className, options).then((request) => request(axios, basePath));
|
|
3447
3381
|
},
|
|
3448
3382
|
/**
|
|
3449
3383
|
*
|
|
@@ -4101,7 +4035,7 @@ const OrganizationApiFactory = function (configuration, basePath, axios) {
|
|
|
4101
4035
|
};
|
|
4102
4036
|
|
|
4103
4037
|
/* tslint:disable */
|
|
4104
|
-
const BASE_PATH$6 = "https://d-
|
|
4038
|
+
const BASE_PATH$6 = "https://d-sp12.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
|
|
4105
4039
|
/**
|
|
4106
4040
|
*
|
|
4107
4041
|
* @export
|
|
@@ -4353,6 +4287,37 @@ const LicenseApiFactory = function (configuration, basePath, axios) {
|
|
|
4353
4287
|
*/
|
|
4354
4288
|
const ProjectApiAxiosParamCreator = function (configuration) {
|
|
4355
4289
|
return {
|
|
4290
|
+
/**
|
|
4291
|
+
*
|
|
4292
|
+
* @summary Call to analytics logger.
|
|
4293
|
+
* @param {string} projectId Project id of the project
|
|
4294
|
+
* @param {*} [options] Override http request option.
|
|
4295
|
+
* @throws {RequiredError}
|
|
4296
|
+
*/
|
|
4297
|
+
projectCreateApplicationProfile: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4298
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
4299
|
+
assertParamExists$5('projectCreateApplicationProfile', 'projectId', projectId);
|
|
4300
|
+
const localVarPath = `/Project/{projectId}/-/create-profile`
|
|
4301
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
4302
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4303
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4304
|
+
let baseOptions;
|
|
4305
|
+
if (configuration) {
|
|
4306
|
+
baseOptions = configuration.baseOptions;
|
|
4307
|
+
}
|
|
4308
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4309
|
+
const localVarHeaderParameter = {};
|
|
4310
|
+
const localVarQueryParameter = {};
|
|
4311
|
+
// authentication JWT token required
|
|
4312
|
+
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4313
|
+
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4315
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4316
|
+
return {
|
|
4317
|
+
url: toPathString$6(localVarUrlObj),
|
|
4318
|
+
options: localVarRequestOptions,
|
|
4319
|
+
};
|
|
4320
|
+
}),
|
|
4356
4321
|
/**
|
|
4357
4322
|
*
|
|
4358
4323
|
* @summary Deletes the selected project
|
|
@@ -4417,8 +4382,8 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4417
4382
|
}),
|
|
4418
4383
|
/**
|
|
4419
4384
|
*
|
|
4420
|
-
* @summary This returns the
|
|
4421
|
-
* @param {string} id Id of the
|
|
4385
|
+
* @summary This returns the project if the user has access to it
|
|
4386
|
+
* @param {string} id Id of the project
|
|
4422
4387
|
* @param {*} [options] Override http request option.
|
|
4423
4388
|
* @throws {RequiredError}
|
|
4424
4389
|
*/
|
|
@@ -4833,6 +4798,19 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
4833
4798
|
const ProjectApiFp = function (configuration) {
|
|
4834
4799
|
const localVarAxiosParamCreator = ProjectApiAxiosParamCreator(configuration);
|
|
4835
4800
|
return {
|
|
4801
|
+
/**
|
|
4802
|
+
*
|
|
4803
|
+
* @summary Call to analytics logger.
|
|
4804
|
+
* @param {string} projectId Project id of the project
|
|
4805
|
+
* @param {*} [options] Override http request option.
|
|
4806
|
+
* @throws {RequiredError}
|
|
4807
|
+
*/
|
|
4808
|
+
projectCreateApplicationProfile(projectId, options) {
|
|
4809
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4810
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectCreateApplicationProfile(projectId, options);
|
|
4811
|
+
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4812
|
+
});
|
|
4813
|
+
},
|
|
4836
4814
|
/**
|
|
4837
4815
|
*
|
|
4838
4816
|
* @summary Deletes the selected project
|
|
@@ -4861,8 +4839,8 @@ const ProjectApiFp = function (configuration) {
|
|
|
4861
4839
|
},
|
|
4862
4840
|
/**
|
|
4863
4841
|
*
|
|
4864
|
-
* @summary This returns the
|
|
4865
|
-
* @param {string} id Id of the
|
|
4842
|
+
* @summary This returns the project if the user has access to it
|
|
4843
|
+
* @param {string} id Id of the project
|
|
4866
4844
|
* @param {*} [options] Override http request option.
|
|
4867
4845
|
* @throws {RequiredError}
|
|
4868
4846
|
*/
|
|
@@ -5038,6 +5016,16 @@ const ProjectApiFp = function (configuration) {
|
|
|
5038
5016
|
const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
5039
5017
|
const localVarFp = ProjectApiFp(configuration);
|
|
5040
5018
|
return {
|
|
5019
|
+
/**
|
|
5020
|
+
*
|
|
5021
|
+
* @summary Call to analytics logger.
|
|
5022
|
+
* @param {string} projectId Project id of the project
|
|
5023
|
+
* @param {*} [options] Override http request option.
|
|
5024
|
+
* @throws {RequiredError}
|
|
5025
|
+
*/
|
|
5026
|
+
projectCreateApplicationProfile(projectId, options) {
|
|
5027
|
+
return localVarFp.projectCreateApplicationProfile(projectId, options).then((request) => request(axios, basePath));
|
|
5028
|
+
},
|
|
5041
5029
|
/**
|
|
5042
5030
|
*
|
|
5043
5031
|
* @summary Deletes the selected project
|
|
@@ -5060,8 +5048,8 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
5060
5048
|
},
|
|
5061
5049
|
/**
|
|
5062
5050
|
*
|
|
5063
|
-
* @summary This returns the
|
|
5064
|
-
* @param {string} id Id of the
|
|
5051
|
+
* @summary This returns the project if the user has access to it
|
|
5052
|
+
* @param {string} id Id of the project
|
|
5065
5053
|
* @param {*} [options] Override http request option.
|
|
5066
5054
|
* @throws {RequiredError}
|
|
5067
5055
|
*/
|
|
@@ -6427,7 +6415,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
|
|
|
6427
6415
|
/**
|
|
6428
6416
|
*
|
|
6429
6417
|
* @summary This deletes the specified resource.
|
|
6430
|
-
* @param {string} id A
|
|
6418
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6431
6419
|
* @param {*} [options] Override http request option.
|
|
6432
6420
|
* @throws {RequiredError}
|
|
6433
6421
|
*/
|
|
@@ -6458,7 +6446,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
|
|
|
6458
6446
|
/**
|
|
6459
6447
|
*
|
|
6460
6448
|
* @summary This returns the resource for the specified id.
|
|
6461
|
-
* @param {string} id A
|
|
6449
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6462
6450
|
* @param {*} [options] Override http request option.
|
|
6463
6451
|
* @throws {RequiredError}
|
|
6464
6452
|
*/
|
|
@@ -6516,7 +6504,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
|
|
|
6516
6504
|
/**
|
|
6517
6505
|
*
|
|
6518
6506
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6519
|
-
* @param {string} id A
|
|
6507
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6520
6508
|
* @param {*} [options] Override http request option.
|
|
6521
6509
|
* @throws {RequiredError}
|
|
6522
6510
|
*/
|
|
@@ -6546,8 +6534,8 @@ const ResourceApiAxiosParamCreator = function (configuration) {
|
|
|
6546
6534
|
}),
|
|
6547
6535
|
/**
|
|
6548
6536
|
*
|
|
6549
|
-
* @summary This returns the
|
|
6550
|
-
* @param {string} id A
|
|
6537
|
+
* @summary This returns the read only status of the given resource.
|
|
6538
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6551
6539
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6552
6540
|
* @param {*} [options] Override http request option.
|
|
6553
6541
|
* @throws {RequiredError}
|
|
@@ -6582,7 +6570,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
|
|
|
6582
6570
|
/**
|
|
6583
6571
|
*
|
|
6584
6572
|
* @summary This stores the provided resource object for the specified project.
|
|
6585
|
-
* @param {string} projectId A
|
|
6573
|
+
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6586
6574
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6587
6575
|
* @param {*} [options] Override http request option.
|
|
6588
6576
|
* @throws {RequiredError}
|
|
@@ -6618,7 +6606,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
|
|
|
6618
6606
|
/**
|
|
6619
6607
|
*
|
|
6620
6608
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6621
|
-
* @param {string} id A
|
|
6609
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6622
6610
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6623
6611
|
* @param {*} [options] Override http request option.
|
|
6624
6612
|
* @throws {RequiredError}
|
|
@@ -6663,7 +6651,7 @@ const ResourceApiFp = function (configuration) {
|
|
|
6663
6651
|
/**
|
|
6664
6652
|
*
|
|
6665
6653
|
* @summary This deletes the specified resource.
|
|
6666
|
-
* @param {string} id A
|
|
6654
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6667
6655
|
* @param {*} [options] Override http request option.
|
|
6668
6656
|
* @throws {RequiredError}
|
|
6669
6657
|
*/
|
|
@@ -6676,7 +6664,7 @@ const ResourceApiFp = function (configuration) {
|
|
|
6676
6664
|
/**
|
|
6677
6665
|
*
|
|
6678
6666
|
* @summary This returns the resource for the specified id.
|
|
6679
|
-
* @param {string} id A
|
|
6667
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6680
6668
|
* @param {*} [options] Override http request option.
|
|
6681
6669
|
* @throws {RequiredError}
|
|
6682
6670
|
*/
|
|
@@ -6701,7 +6689,7 @@ const ResourceApiFp = function (configuration) {
|
|
|
6701
6689
|
/**
|
|
6702
6690
|
*
|
|
6703
6691
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6704
|
-
* @param {string} id A
|
|
6692
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6705
6693
|
* @param {*} [options] Override http request option.
|
|
6706
6694
|
* @throws {RequiredError}
|
|
6707
6695
|
*/
|
|
@@ -6713,8 +6701,8 @@ const ResourceApiFp = function (configuration) {
|
|
|
6713
6701
|
},
|
|
6714
6702
|
/**
|
|
6715
6703
|
*
|
|
6716
|
-
* @summary This returns the
|
|
6717
|
-
* @param {string} id A
|
|
6704
|
+
* @summary This returns the read only status of the given resource.
|
|
6705
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6718
6706
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6719
6707
|
* @param {*} [options] Override http request option.
|
|
6720
6708
|
* @throws {RequiredError}
|
|
@@ -6728,7 +6716,7 @@ const ResourceApiFp = function (configuration) {
|
|
|
6728
6716
|
/**
|
|
6729
6717
|
*
|
|
6730
6718
|
* @summary This stores the provided resource object for the specified project.
|
|
6731
|
-
* @param {string} projectId A
|
|
6719
|
+
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6732
6720
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6733
6721
|
* @param {*} [options] Override http request option.
|
|
6734
6722
|
* @throws {RequiredError}
|
|
@@ -6742,7 +6730,7 @@ const ResourceApiFp = function (configuration) {
|
|
|
6742
6730
|
/**
|
|
6743
6731
|
*
|
|
6744
6732
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6745
|
-
* @param {string} id A
|
|
6733
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6746
6734
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6747
6735
|
* @param {*} [options] Override http request option.
|
|
6748
6736
|
* @throws {RequiredError}
|
|
@@ -6765,7 +6753,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
6765
6753
|
/**
|
|
6766
6754
|
*
|
|
6767
6755
|
* @summary This deletes the specified resource.
|
|
6768
|
-
* @param {string} id A
|
|
6756
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6769
6757
|
* @param {*} [options] Override http request option.
|
|
6770
6758
|
* @throws {RequiredError}
|
|
6771
6759
|
*/
|
|
@@ -6775,7 +6763,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
6775
6763
|
/**
|
|
6776
6764
|
*
|
|
6777
6765
|
* @summary This returns the resource for the specified id.
|
|
6778
|
-
* @param {string} id A
|
|
6766
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6779
6767
|
* @param {*} [options] Override http request option.
|
|
6780
6768
|
* @throws {RequiredError}
|
|
6781
6769
|
*/
|
|
@@ -6794,7 +6782,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
6794
6782
|
/**
|
|
6795
6783
|
*
|
|
6796
6784
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6797
|
-
* @param {string} id A
|
|
6785
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6798
6786
|
* @param {*} [options] Override http request option.
|
|
6799
6787
|
* @throws {RequiredError}
|
|
6800
6788
|
*/
|
|
@@ -6803,8 +6791,8 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
6803
6791
|
},
|
|
6804
6792
|
/**
|
|
6805
6793
|
*
|
|
6806
|
-
* @summary This returns the
|
|
6807
|
-
* @param {string} id A
|
|
6794
|
+
* @summary This returns the read only status of the given resource.
|
|
6795
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6808
6796
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6809
6797
|
* @param {*} [options] Override http request option.
|
|
6810
6798
|
* @throws {RequiredError}
|
|
@@ -6815,7 +6803,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
6815
6803
|
/**
|
|
6816
6804
|
*
|
|
6817
6805
|
* @summary This stores the provided resource object for the specified project.
|
|
6818
|
-
* @param {string} projectId A
|
|
6806
|
+
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6819
6807
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6820
6808
|
* @param {*} [options] Override http request option.
|
|
6821
6809
|
* @throws {RequiredError}
|
|
@@ -6826,7 +6814,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
6826
6814
|
/**
|
|
6827
6815
|
*
|
|
6828
6816
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6829
|
-
* @param {string} id A
|
|
6817
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6830
6818
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6831
6819
|
* @param {*} [options] Override http request option.
|
|
6832
6820
|
* @throws {RequiredError}
|
|
@@ -8543,7 +8531,14 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
8543
8531
|
|
|
8544
8532
|
let accessToken = '';
|
|
8545
8533
|
if (typeof coscine !== 'undefined' && typeof coscine.authorization !== 'undefined') {
|
|
8546
|
-
accessToken = coscine.authorization.bearer;
|
|
8534
|
+
accessToken = 'Bearer ' + coscine.authorization.bearer;
|
|
8535
|
+
}
|
|
8536
|
+
if (typeof window !== 'undefined') {
|
|
8537
|
+
// LocalStorage > Global Variables
|
|
8538
|
+
const localStorageToken = localStorage.getItem('coscine.authorization.bearer');
|
|
8539
|
+
if (localStorageToken) {
|
|
8540
|
+
accessToken = 'Bearer ' + localStorageToken;
|
|
8541
|
+
}
|
|
8547
8542
|
}
|
|
8548
8543
|
const getHostName = () => {
|
|
8549
8544
|
let hostName = typeof window !== 'undefined' ? window.location.hostname : 'coscine.rwth-aachen.de';
|
|
@@ -8598,25 +8593,53 @@ function setHeader(request) {
|
|
|
8598
8593
|
request.headers.common[clientCorrolationIdKey] = coscine.clientcorrolation.id;
|
|
8599
8594
|
}
|
|
8600
8595
|
}
|
|
8596
|
+
if (typeof window !== 'undefined') {
|
|
8597
|
+
// LocalStorage > Global Variables
|
|
8598
|
+
const localStorageToken = localStorage.getItem("coscine.authorization.bearer");
|
|
8599
|
+
if (localStorageToken) {
|
|
8600
|
+
request.headers.common[authHeaderKey] =
|
|
8601
|
+
'Bearer ' + localStorageToken;
|
|
8602
|
+
}
|
|
8603
|
+
const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrolation.id");
|
|
8604
|
+
if (localStorageClientCorrelation) {
|
|
8605
|
+
request.headers.common[clientCorrolationIdKey] = localStorageClientCorrelation;
|
|
8606
|
+
}
|
|
8607
|
+
}
|
|
8601
8608
|
}
|
|
8602
|
-
|
|
8603
|
-
setHeader(request);
|
|
8609
|
+
function increaseLoading() {
|
|
8604
8610
|
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8605
8611
|
coscine.loading.counter++;
|
|
8606
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));
|
|
8628
|
+
}
|
|
8629
|
+
}
|
|
8630
|
+
}
|
|
8631
|
+
instance.interceptors.request.use((request) => {
|
|
8632
|
+
setHeader(request);
|
|
8633
|
+
increaseLoading();
|
|
8607
8634
|
return request;
|
|
8608
8635
|
}, (error) => {
|
|
8609
8636
|
return Promise.reject(error);
|
|
8610
8637
|
});
|
|
8611
8638
|
instance.interceptors.response.use((response) => {
|
|
8612
|
-
|
|
8613
|
-
coscine.loading.counter--;
|
|
8614
|
-
}
|
|
8639
|
+
decreaseLoading();
|
|
8615
8640
|
return response;
|
|
8616
8641
|
}, (error) => {
|
|
8617
|
-
|
|
8618
|
-
coscine.loading.counter--;
|
|
8619
|
-
}
|
|
8642
|
+
decreaseLoading();
|
|
8620
8643
|
return Promise.reject(error);
|
|
8621
8644
|
});
|
|
8622
8645
|
|