@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.umd.js
CHANGED
|
@@ -3102,56 +3102,17 @@
|
|
|
3102
3102
|
*/
|
|
3103
3103
|
const MetadataApiAxiosParamCreator = function (configuration) {
|
|
3104
3104
|
return {
|
|
3105
|
-
/**
|
|
3106
|
-
*
|
|
3107
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
3108
|
-
* @param {string} profile Url of the application profile
|
|
3109
|
-
* @param {string} resourceId Id of the resource
|
|
3110
|
-
* @param {*} [options] Override http request option.
|
|
3111
|
-
* @throws {RequiredError}
|
|
3112
|
-
*/
|
|
3113
|
-
metadataGetApplicationProfileComplete: (profile, resourceId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3114
|
-
// verify required parameter 'profile' is not null or undefined
|
|
3115
|
-
assertParamExists$8('metadataGetApplicationProfileComplete', 'profile', profile);
|
|
3116
|
-
// verify required parameter 'resourceId' is not null or undefined
|
|
3117
|
-
assertParamExists$8('metadataGetApplicationProfileComplete', 'resourceId', resourceId);
|
|
3118
|
-
const localVarPath = `/Metadata/profiles/{profile}/{resourceId}`
|
|
3119
|
-
.replace(`{${"profile"}}`, encodeURIComponent(String(profile)))
|
|
3120
|
-
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
3121
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3122
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
3123
|
-
let baseOptions;
|
|
3124
|
-
if (configuration) {
|
|
3125
|
-
baseOptions = configuration.baseOptions;
|
|
3126
|
-
}
|
|
3127
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3128
|
-
const localVarHeaderParameter = {};
|
|
3129
|
-
const localVarQueryParameter = {};
|
|
3130
|
-
// authentication JWT token required
|
|
3131
|
-
yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
|
|
3132
|
-
setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3133
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3134
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3135
|
-
return {
|
|
3136
|
-
url: toPathString$9(localVarUrlObj),
|
|
3137
|
-
options: localVarRequestOptions,
|
|
3138
|
-
};
|
|
3139
|
-
}),
|
|
3140
3105
|
/**
|
|
3141
3106
|
*
|
|
3142
3107
|
* @summary This method returns instances.
|
|
3143
|
-
* @param {string} projectId Id of the project
|
|
3144
3108
|
* @param {string} className class name
|
|
3145
3109
|
* @param {*} [options] Override http request option.
|
|
3146
3110
|
* @throws {RequiredError}
|
|
3147
3111
|
*/
|
|
3148
|
-
metadataGetClassInstances: (
|
|
3149
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
3150
|
-
assertParamExists$8('metadataGetClassInstances', 'projectId', projectId);
|
|
3112
|
+
metadataGetClassInstances: (className, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3151
3113
|
// verify required parameter 'className' is not null or undefined
|
|
3152
3114
|
assertParamExists$8('metadataGetClassInstances', 'className', className);
|
|
3153
|
-
const localVarPath = `/Metadata/instances/{
|
|
3154
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
3115
|
+
const localVarPath = `/Metadata/instances/{className}`
|
|
3155
3116
|
.replace(`{${"className"}}`, encodeURIComponent(String(className)));
|
|
3156
3117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3157
3118
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
@@ -3329,31 +3290,16 @@
|
|
|
3329
3290
|
const MetadataApiFp = function (configuration) {
|
|
3330
3291
|
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration);
|
|
3331
3292
|
return {
|
|
3332
|
-
/**
|
|
3333
|
-
*
|
|
3334
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
3335
|
-
* @param {string} profile Url of the application profile
|
|
3336
|
-
* @param {string} resourceId Id of the resource
|
|
3337
|
-
* @param {*} [options] Override http request option.
|
|
3338
|
-
* @throws {RequiredError}
|
|
3339
|
-
*/
|
|
3340
|
-
metadataGetApplicationProfileComplete(profile, resourceId, options) {
|
|
3341
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3342
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetApplicationProfileComplete(profile, resourceId, options);
|
|
3343
|
-
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
3344
|
-
});
|
|
3345
|
-
},
|
|
3346
3293
|
/**
|
|
3347
3294
|
*
|
|
3348
3295
|
* @summary This method returns instances.
|
|
3349
|
-
* @param {string} projectId Id of the project
|
|
3350
3296
|
* @param {string} className class name
|
|
3351
3297
|
* @param {*} [options] Override http request option.
|
|
3352
3298
|
* @throws {RequiredError}
|
|
3353
3299
|
*/
|
|
3354
|
-
metadataGetClassInstances(
|
|
3300
|
+
metadataGetClassInstances(className, options) {
|
|
3355
3301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3356
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetClassInstances(
|
|
3302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetClassInstances(className, options);
|
|
3357
3303
|
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
3358
3304
|
});
|
|
3359
3305
|
},
|
|
@@ -3429,27 +3375,15 @@
|
|
|
3429
3375
|
const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
3430
3376
|
const localVarFp = MetadataApiFp(configuration);
|
|
3431
3377
|
return {
|
|
3432
|
-
/**
|
|
3433
|
-
*
|
|
3434
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
3435
|
-
* @param {string} profile Url of the application profile
|
|
3436
|
-
* @param {string} resourceId Id of the resource
|
|
3437
|
-
* @param {*} [options] Override http request option.
|
|
3438
|
-
* @throws {RequiredError}
|
|
3439
|
-
*/
|
|
3440
|
-
metadataGetApplicationProfileComplete(profile, resourceId, options) {
|
|
3441
|
-
return localVarFp.metadataGetApplicationProfileComplete(profile, resourceId, options).then((request) => request(axios, basePath));
|
|
3442
|
-
},
|
|
3443
3378
|
/**
|
|
3444
3379
|
*
|
|
3445
3380
|
* @summary This method returns instances.
|
|
3446
|
-
* @param {string} projectId Id of the project
|
|
3447
3381
|
* @param {string} className class name
|
|
3448
3382
|
* @param {*} [options] Override http request option.
|
|
3449
3383
|
* @throws {RequiredError}
|
|
3450
3384
|
*/
|
|
3451
|
-
metadataGetClassInstances(
|
|
3452
|
-
return localVarFp.metadataGetClassInstances(
|
|
3385
|
+
metadataGetClassInstances(className, options) {
|
|
3386
|
+
return localVarFp.metadataGetClassInstances(className, options).then((request) => request(axios, basePath));
|
|
3453
3387
|
},
|
|
3454
3388
|
/**
|
|
3455
3389
|
*
|
|
@@ -4107,7 +4041,7 @@
|
|
|
4107
4041
|
};
|
|
4108
4042
|
|
|
4109
4043
|
/* tslint:disable */
|
|
4110
|
-
const BASE_PATH$6 = "https://d-
|
|
4044
|
+
const BASE_PATH$6 = "https://d-sp12.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
|
|
4111
4045
|
/**
|
|
4112
4046
|
*
|
|
4113
4047
|
* @export
|
|
@@ -4359,6 +4293,37 @@
|
|
|
4359
4293
|
*/
|
|
4360
4294
|
const ProjectApiAxiosParamCreator = function (configuration) {
|
|
4361
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
|
+
}),
|
|
4362
4327
|
/**
|
|
4363
4328
|
*
|
|
4364
4329
|
* @summary Deletes the selected project
|
|
@@ -4423,8 +4388,8 @@
|
|
|
4423
4388
|
}),
|
|
4424
4389
|
/**
|
|
4425
4390
|
*
|
|
4426
|
-
* @summary This returns the
|
|
4427
|
-
* @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
|
|
4428
4393
|
* @param {*} [options] Override http request option.
|
|
4429
4394
|
* @throws {RequiredError}
|
|
4430
4395
|
*/
|
|
@@ -4839,6 +4804,19 @@
|
|
|
4839
4804
|
const ProjectApiFp = function (configuration) {
|
|
4840
4805
|
const localVarAxiosParamCreator = ProjectApiAxiosParamCreator(configuration);
|
|
4841
4806
|
return {
|
|
4807
|
+
/**
|
|
4808
|
+
*
|
|
4809
|
+
* @summary Call to analytics logger.
|
|
4810
|
+
* @param {string} projectId Project id of the project
|
|
4811
|
+
* @param {*} [options] Override http request option.
|
|
4812
|
+
* @throws {RequiredError}
|
|
4813
|
+
*/
|
|
4814
|
+
projectCreateApplicationProfile(projectId, options) {
|
|
4815
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4816
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectCreateApplicationProfile(projectId, options);
|
|
4817
|
+
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4818
|
+
});
|
|
4819
|
+
},
|
|
4842
4820
|
/**
|
|
4843
4821
|
*
|
|
4844
4822
|
* @summary Deletes the selected project
|
|
@@ -4867,8 +4845,8 @@
|
|
|
4867
4845
|
},
|
|
4868
4846
|
/**
|
|
4869
4847
|
*
|
|
4870
|
-
* @summary This returns the
|
|
4871
|
-
* @param {string} id Id of the
|
|
4848
|
+
* @summary This returns the project if the user has access to it
|
|
4849
|
+
* @param {string} id Id of the project
|
|
4872
4850
|
* @param {*} [options] Override http request option.
|
|
4873
4851
|
* @throws {RequiredError}
|
|
4874
4852
|
*/
|
|
@@ -5044,6 +5022,16 @@
|
|
|
5044
5022
|
const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
5045
5023
|
const localVarFp = ProjectApiFp(configuration);
|
|
5046
5024
|
return {
|
|
5025
|
+
/**
|
|
5026
|
+
*
|
|
5027
|
+
* @summary Call to analytics logger.
|
|
5028
|
+
* @param {string} projectId Project id of the project
|
|
5029
|
+
* @param {*} [options] Override http request option.
|
|
5030
|
+
* @throws {RequiredError}
|
|
5031
|
+
*/
|
|
5032
|
+
projectCreateApplicationProfile(projectId, options) {
|
|
5033
|
+
return localVarFp.projectCreateApplicationProfile(projectId, options).then((request) => request(axios, basePath));
|
|
5034
|
+
},
|
|
5047
5035
|
/**
|
|
5048
5036
|
*
|
|
5049
5037
|
* @summary Deletes the selected project
|
|
@@ -5066,8 +5054,8 @@
|
|
|
5066
5054
|
},
|
|
5067
5055
|
/**
|
|
5068
5056
|
*
|
|
5069
|
-
* @summary This returns the
|
|
5070
|
-
* @param {string} id Id of the
|
|
5057
|
+
* @summary This returns the project if the user has access to it
|
|
5058
|
+
* @param {string} id Id of the project
|
|
5071
5059
|
* @param {*} [options] Override http request option.
|
|
5072
5060
|
* @throws {RequiredError}
|
|
5073
5061
|
*/
|
|
@@ -6433,7 +6421,7 @@
|
|
|
6433
6421
|
/**
|
|
6434
6422
|
*
|
|
6435
6423
|
* @summary This deletes the specified resource.
|
|
6436
|
-
* @param {string} id A
|
|
6424
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6437
6425
|
* @param {*} [options] Override http request option.
|
|
6438
6426
|
* @throws {RequiredError}
|
|
6439
6427
|
*/
|
|
@@ -6464,7 +6452,7 @@
|
|
|
6464
6452
|
/**
|
|
6465
6453
|
*
|
|
6466
6454
|
* @summary This returns the resource for the specified id.
|
|
6467
|
-
* @param {string} id A
|
|
6455
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6468
6456
|
* @param {*} [options] Override http request option.
|
|
6469
6457
|
* @throws {RequiredError}
|
|
6470
6458
|
*/
|
|
@@ -6522,7 +6510,7 @@
|
|
|
6522
6510
|
/**
|
|
6523
6511
|
*
|
|
6524
6512
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6525
|
-
* @param {string} id A
|
|
6513
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6526
6514
|
* @param {*} [options] Override http request option.
|
|
6527
6515
|
* @throws {RequiredError}
|
|
6528
6516
|
*/
|
|
@@ -6552,8 +6540,8 @@
|
|
|
6552
6540
|
}),
|
|
6553
6541
|
/**
|
|
6554
6542
|
*
|
|
6555
|
-
* @summary This returns the
|
|
6556
|
-
* @param {string} id A
|
|
6543
|
+
* @summary This returns the read only status of the given resource.
|
|
6544
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6557
6545
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6558
6546
|
* @param {*} [options] Override http request option.
|
|
6559
6547
|
* @throws {RequiredError}
|
|
@@ -6588,7 +6576,7 @@
|
|
|
6588
6576
|
/**
|
|
6589
6577
|
*
|
|
6590
6578
|
* @summary This stores the provided resource object for the specified project.
|
|
6591
|
-
* @param {string} projectId A
|
|
6579
|
+
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6592
6580
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6593
6581
|
* @param {*} [options] Override http request option.
|
|
6594
6582
|
* @throws {RequiredError}
|
|
@@ -6624,7 +6612,7 @@
|
|
|
6624
6612
|
/**
|
|
6625
6613
|
*
|
|
6626
6614
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6627
|
-
* @param {string} id A
|
|
6615
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6628
6616
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6629
6617
|
* @param {*} [options] Override http request option.
|
|
6630
6618
|
* @throws {RequiredError}
|
|
@@ -6669,7 +6657,7 @@
|
|
|
6669
6657
|
/**
|
|
6670
6658
|
*
|
|
6671
6659
|
* @summary This deletes the specified resource.
|
|
6672
|
-
* @param {string} id A
|
|
6660
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6673
6661
|
* @param {*} [options] Override http request option.
|
|
6674
6662
|
* @throws {RequiredError}
|
|
6675
6663
|
*/
|
|
@@ -6682,7 +6670,7 @@
|
|
|
6682
6670
|
/**
|
|
6683
6671
|
*
|
|
6684
6672
|
* @summary This returns the resource for the specified id.
|
|
6685
|
-
* @param {string} id A
|
|
6673
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6686
6674
|
* @param {*} [options] Override http request option.
|
|
6687
6675
|
* @throws {RequiredError}
|
|
6688
6676
|
*/
|
|
@@ -6707,7 +6695,7 @@
|
|
|
6707
6695
|
/**
|
|
6708
6696
|
*
|
|
6709
6697
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6710
|
-
* @param {string} id A
|
|
6698
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6711
6699
|
* @param {*} [options] Override http request option.
|
|
6712
6700
|
* @throws {RequiredError}
|
|
6713
6701
|
*/
|
|
@@ -6719,8 +6707,8 @@
|
|
|
6719
6707
|
},
|
|
6720
6708
|
/**
|
|
6721
6709
|
*
|
|
6722
|
-
* @summary This returns the
|
|
6723
|
-
* @param {string} id A
|
|
6710
|
+
* @summary This returns the read only status of the given resource.
|
|
6711
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6724
6712
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6725
6713
|
* @param {*} [options] Override http request option.
|
|
6726
6714
|
* @throws {RequiredError}
|
|
@@ -6734,7 +6722,7 @@
|
|
|
6734
6722
|
/**
|
|
6735
6723
|
*
|
|
6736
6724
|
* @summary This stores the provided resource object for the specified project.
|
|
6737
|
-
* @param {string} projectId A
|
|
6725
|
+
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6738
6726
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6739
6727
|
* @param {*} [options] Override http request option.
|
|
6740
6728
|
* @throws {RequiredError}
|
|
@@ -6748,7 +6736,7 @@
|
|
|
6748
6736
|
/**
|
|
6749
6737
|
*
|
|
6750
6738
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6751
|
-
* @param {string} id A
|
|
6739
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6752
6740
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6753
6741
|
* @param {*} [options] Override http request option.
|
|
6754
6742
|
* @throws {RequiredError}
|
|
@@ -6771,7 +6759,7 @@
|
|
|
6771
6759
|
/**
|
|
6772
6760
|
*
|
|
6773
6761
|
* @summary This deletes the specified resource.
|
|
6774
|
-
* @param {string} id A
|
|
6762
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6775
6763
|
* @param {*} [options] Override http request option.
|
|
6776
6764
|
* @throws {RequiredError}
|
|
6777
6765
|
*/
|
|
@@ -6781,7 +6769,7 @@
|
|
|
6781
6769
|
/**
|
|
6782
6770
|
*
|
|
6783
6771
|
* @summary This returns the resource for the specified id.
|
|
6784
|
-
* @param {string} id A
|
|
6772
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6785
6773
|
* @param {*} [options] Override http request option.
|
|
6786
6774
|
* @throws {RequiredError}
|
|
6787
6775
|
*/
|
|
@@ -6800,7 +6788,7 @@
|
|
|
6800
6788
|
/**
|
|
6801
6789
|
*
|
|
6802
6790
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6803
|
-
* @param {string} id A
|
|
6791
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6804
6792
|
* @param {*} [options] Override http request option.
|
|
6805
6793
|
* @throws {RequiredError}
|
|
6806
6794
|
*/
|
|
@@ -6809,8 +6797,8 @@
|
|
|
6809
6797
|
},
|
|
6810
6798
|
/**
|
|
6811
6799
|
*
|
|
6812
|
-
* @summary This returns the
|
|
6813
|
-
* @param {string} id A
|
|
6800
|
+
* @summary This returns the read only status of the given resource.
|
|
6801
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6814
6802
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6815
6803
|
* @param {*} [options] Override http request option.
|
|
6816
6804
|
* @throws {RequiredError}
|
|
@@ -6821,7 +6809,7 @@
|
|
|
6821
6809
|
/**
|
|
6822
6810
|
*
|
|
6823
6811
|
* @summary This stores the provided resource object for the specified project.
|
|
6824
|
-
* @param {string} projectId A
|
|
6812
|
+
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6825
6813
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6826
6814
|
* @param {*} [options] Override http request option.
|
|
6827
6815
|
* @throws {RequiredError}
|
|
@@ -6832,7 +6820,7 @@
|
|
|
6832
6820
|
/**
|
|
6833
6821
|
*
|
|
6834
6822
|
* @summary This returns if the current user is the creator of the specified resource.
|
|
6835
|
-
* @param {string} id A
|
|
6823
|
+
* @param {string} id A GUID as a string that identifies the resource.
|
|
6836
6824
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6837
6825
|
* @param {*} [options] Override http request option.
|
|
6838
6826
|
* @throws {RequiredError}
|
|
@@ -8549,7 +8537,14 @@
|
|
|
8549
8537
|
|
|
8550
8538
|
let accessToken = '';
|
|
8551
8539
|
if (typeof coscine !== 'undefined' && typeof coscine.authorization !== 'undefined') {
|
|
8552
|
-
accessToken = coscine.authorization.bearer;
|
|
8540
|
+
accessToken = 'Bearer ' + coscine.authorization.bearer;
|
|
8541
|
+
}
|
|
8542
|
+
if (typeof window !== 'undefined') {
|
|
8543
|
+
// LocalStorage > Global Variables
|
|
8544
|
+
const localStorageToken = localStorage.getItem('coscine.authorization.bearer');
|
|
8545
|
+
if (localStorageToken) {
|
|
8546
|
+
accessToken = 'Bearer ' + localStorageToken;
|
|
8547
|
+
}
|
|
8553
8548
|
}
|
|
8554
8549
|
const getHostName = () => {
|
|
8555
8550
|
let hostName = typeof window !== 'undefined' ? window.location.hostname : 'coscine.rwth-aachen.de';
|
|
@@ -8604,25 +8599,53 @@
|
|
|
8604
8599
|
request.headers.common[clientCorrolationIdKey] = coscine.clientcorrolation.id;
|
|
8605
8600
|
}
|
|
8606
8601
|
}
|
|
8602
|
+
if (typeof window !== 'undefined') {
|
|
8603
|
+
// LocalStorage > Global Variables
|
|
8604
|
+
const localStorageToken = localStorage.getItem("coscine.authorization.bearer");
|
|
8605
|
+
if (localStorageToken) {
|
|
8606
|
+
request.headers.common[authHeaderKey] =
|
|
8607
|
+
'Bearer ' + localStorageToken;
|
|
8608
|
+
}
|
|
8609
|
+
const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrolation.id");
|
|
8610
|
+
if (localStorageClientCorrelation) {
|
|
8611
|
+
request.headers.common[clientCorrolationIdKey] = localStorageClientCorrelation;
|
|
8612
|
+
}
|
|
8613
|
+
}
|
|
8607
8614
|
}
|
|
8608
|
-
|
|
8609
|
-
setHeader(request);
|
|
8615
|
+
function increaseLoading() {
|
|
8610
8616
|
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8611
8617
|
coscine.loading.counter++;
|
|
8612
8618
|
}
|
|
8619
|
+
if (typeof window !== 'undefined') {
|
|
8620
|
+
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8621
|
+
if (localStorageLoading) {
|
|
8622
|
+
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) + 1));
|
|
8623
|
+
}
|
|
8624
|
+
}
|
|
8625
|
+
}
|
|
8626
|
+
function decreaseLoading() {
|
|
8627
|
+
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8628
|
+
coscine.loading.counter--;
|
|
8629
|
+
}
|
|
8630
|
+
if (typeof window !== 'undefined') {
|
|
8631
|
+
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8632
|
+
if (localStorageLoading) {
|
|
8633
|
+
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) - 1));
|
|
8634
|
+
}
|
|
8635
|
+
}
|
|
8636
|
+
}
|
|
8637
|
+
instance.interceptors.request.use((request) => {
|
|
8638
|
+
setHeader(request);
|
|
8639
|
+
increaseLoading();
|
|
8613
8640
|
return request;
|
|
8614
8641
|
}, (error) => {
|
|
8615
8642
|
return Promise.reject(error);
|
|
8616
8643
|
});
|
|
8617
8644
|
instance.interceptors.response.use((response) => {
|
|
8618
|
-
|
|
8619
|
-
coscine.loading.counter--;
|
|
8620
|
-
}
|
|
8645
|
+
decreaseLoading();
|
|
8621
8646
|
return response;
|
|
8622
8647
|
}, (error) => {
|
|
8623
|
-
|
|
8624
|
-
coscine.loading.counter--;
|
|
8625
|
-
}
|
|
8648
|
+
decreaseLoading();
|
|
8626
8649
|
return Promise.reject(error);
|
|
8627
8650
|
});
|
|
8628
8651
|
|