@coscine/api-client 1.5.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.js +41 -112
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +41 -112
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/api.js +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/base.js +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/common.js +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/configuration.js +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/index.js +1 -1
- package/dist/lib/Coscine.Api.Admin/api.js +1 -1
- package/dist/lib/Coscine.Api.Admin/base.js +1 -1
- package/dist/lib/Coscine.Api.Admin/common.js +1 -1
- package/dist/lib/Coscine.Api.Admin/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Admin/index.js +1 -1
- package/dist/lib/Coscine.Api.Blob/api.js +1 -67
- package/dist/lib/Coscine.Api.Blob/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Blob/base.js +1 -1
- 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 +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.Notices/api.js +1 -1
- package/dist/lib/Coscine.Api.Notices/base.js +1 -1
- package/dist/lib/Coscine.Api.Notices/common.js +1 -1
- package/dist/lib/Coscine.Api.Notices/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Notices/index.js +1 -1
- package/dist/lib/Coscine.Api.Organization/api.js +1 -1
- package/dist/lib/Coscine.Api.Organization/base.js +1 -1
- package/dist/lib/Coscine.Api.Organization/common.js +1 -1
- package/dist/lib/Coscine.Api.Organization/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Organization/index.js +1 -1
- package/dist/lib/Coscine.Api.Project/api.js +1 -1
- package/dist/lib/Coscine.Api.Project/base.js +1 -1
- 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 +1 -1
- package/dist/lib/Coscine.Api.Quota/common.js +1 -1
- package/dist/lib/Coscine.Api.Quota/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Quota/index.js +1 -1
- package/dist/lib/Coscine.Api.Resources/api.js +12 -2
- package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Resources/base.js +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/Coscine.Api.Search/api.js +1 -1
- package/dist/lib/Coscine.Api.Search/base.js +1 -1
- 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 +1 -1
- 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 +29 -15
- package/dist/lib/Coscine.Api.Tree/api.js.map +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 +1 -1
- package/dist/lib/Coscine.Api.User/common.js +1 -1
- package/dist/lib/Coscine.Api.User/configuration.js +1 -1
- package/dist/lib/Coscine.Api.User/index.js +1 -1
- package/dist/lib/axios-basic.js +5 -30
- package/dist/lib/axios-basic.js.map +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/api.d.ts +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/base.d.ts +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/common.d.ts +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.ActivatedFeatures/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/api.d.ts +1 -34
- package/dist/types/Coscine.Api.Blob/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Organization/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Quota/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/api.d.ts +59 -8
- package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Token/api.d.ts +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 +17 -9
- package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
- package/dist/types/Coscine.Api.User/api.d.ts +1 -1
- package/dist/types/Coscine.Api.User/base.d.ts +1 -1
- package/dist/types/Coscine.Api.User/common.d.ts +1 -1
- package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.User/index.d.ts +1 -1
- package/dist/types/apis.d.ts +2 -3
- package/dist/types/index.d.ts +4 -6
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2297,7 +2297,7 @@ const ActivatedFeaturesApiFactory = function (configuration, basePath, axios) {
|
|
|
2297
2297
|
* Coscine.Api.ActivatedFeatures
|
|
2298
2298
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2299
2299
|
*
|
|
2300
|
-
* The version of the OpenAPI document: 2.
|
|
2300
|
+
* The version of the OpenAPI document: 2.1.2
|
|
2301
2301
|
*
|
|
2302
2302
|
*
|
|
2303
2303
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2401,7 +2401,7 @@ const setSearchParams$b = function (url, ...objects) {
|
|
|
2401
2401
|
*
|
|
2402
2402
|
* @export
|
|
2403
2403
|
*/
|
|
2404
|
-
const serializeDataIfNeeded$
|
|
2404
|
+
const serializeDataIfNeeded$6 = function (value, requestOptions, configuration) {
|
|
2405
2405
|
const nonString = typeof value !== 'string';
|
|
2406
2406
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
2407
2407
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
@@ -2492,7 +2492,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
2492
2492
|
setSearchParams$b(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2493
2493
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2494
2494
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2495
|
-
localVarRequestOptions.data = serializeDataIfNeeded$
|
|
2495
|
+
localVarRequestOptions.data = serializeDataIfNeeded$6(updateQuotaParameterObject, localVarRequestOptions, configuration);
|
|
2496
2496
|
return {
|
|
2497
2497
|
url: toPathString$b(localVarUrlObj),
|
|
2498
2498
|
options: localVarRequestOptions,
|
|
@@ -2632,19 +2632,6 @@ const setSearchParams$a = function (url, ...objects) {
|
|
|
2632
2632
|
}
|
|
2633
2633
|
url.search = searchParams.toString();
|
|
2634
2634
|
};
|
|
2635
|
-
/**
|
|
2636
|
-
*
|
|
2637
|
-
* @export
|
|
2638
|
-
*/
|
|
2639
|
-
const serializeDataIfNeeded$6 = function (value, requestOptions, configuration) {
|
|
2640
|
-
const nonString = typeof value !== 'string';
|
|
2641
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
2642
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
2643
|
-
: nonString;
|
|
2644
|
-
return needsSerialization
|
|
2645
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
2646
|
-
: (value || "");
|
|
2647
|
-
};
|
|
2648
2635
|
/**
|
|
2649
2636
|
*
|
|
2650
2637
|
* @export
|
|
@@ -2771,38 +2758,6 @@ const BlobApiAxiosParamCreator = function (configuration) {
|
|
|
2771
2758
|
options: localVarRequestOptions,
|
|
2772
2759
|
};
|
|
2773
2760
|
}),
|
|
2774
|
-
/**
|
|
2775
|
-
*
|
|
2776
|
-
* @summary This method checks if the resource is valid
|
|
2777
|
-
* @param {any} body
|
|
2778
|
-
* @param {*} [options] Override http request option.
|
|
2779
|
-
* @throws {RequiredError}
|
|
2780
|
-
*/
|
|
2781
|
-
blobIsResourceValid: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2782
|
-
// verify required parameter 'body' is not null or undefined
|
|
2783
|
-
assertParamExists$9('blobIsResourceValid', 'body', body);
|
|
2784
|
-
const localVarPath = `/Blob/validate`;
|
|
2785
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2786
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$a);
|
|
2787
|
-
let baseOptions;
|
|
2788
|
-
if (configuration) {
|
|
2789
|
-
baseOptions = configuration.baseOptions;
|
|
2790
|
-
}
|
|
2791
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2792
|
-
const localVarHeaderParameter = {};
|
|
2793
|
-
const localVarQueryParameter = {};
|
|
2794
|
-
// authentication JWT token required
|
|
2795
|
-
yield setApiKeyToObject$a(localVarHeaderParameter, "Authorization", configuration);
|
|
2796
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2797
|
-
setSearchParams$a(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2798
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2799
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2800
|
-
localVarRequestOptions.data = serializeDataIfNeeded$6(body, localVarRequestOptions, configuration);
|
|
2801
|
-
return {
|
|
2802
|
-
url: toPathString$a(localVarUrlObj),
|
|
2803
|
-
options: localVarRequestOptions,
|
|
2804
|
-
};
|
|
2805
|
-
}),
|
|
2806
2761
|
/**
|
|
2807
2762
|
*
|
|
2808
2763
|
* @summary This method uploads a given File
|
|
@@ -2897,19 +2852,6 @@ const BlobApiFp = function (configuration) {
|
|
|
2897
2852
|
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2898
2853
|
});
|
|
2899
2854
|
},
|
|
2900
|
-
/**
|
|
2901
|
-
*
|
|
2902
|
-
* @summary This method checks if the resource is valid
|
|
2903
|
-
* @param {any} body
|
|
2904
|
-
* @param {*} [options] Override http request option.
|
|
2905
|
-
* @throws {RequiredError}
|
|
2906
|
-
*/
|
|
2907
|
-
blobIsResourceValid(body, options) {
|
|
2908
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2909
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.blobIsResourceValid(body, options);
|
|
2910
|
-
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2911
|
-
});
|
|
2912
|
-
},
|
|
2913
2855
|
/**
|
|
2914
2856
|
*
|
|
2915
2857
|
* @summary This method uploads a given File
|
|
@@ -2966,16 +2908,6 @@ const BlobApiFactory = function (configuration, basePath, axios) {
|
|
|
2966
2908
|
blobGetQuota(resourceId, options) {
|
|
2967
2909
|
return localVarFp.blobGetQuota(resourceId, options).then((request) => request(axios, basePath));
|
|
2968
2910
|
},
|
|
2969
|
-
/**
|
|
2970
|
-
*
|
|
2971
|
-
* @summary This method checks if the resource is valid
|
|
2972
|
-
* @param {any} body
|
|
2973
|
-
* @param {*} [options] Override http request option.
|
|
2974
|
-
* @throws {RequiredError}
|
|
2975
|
-
*/
|
|
2976
|
-
blobIsResourceValid(body, options) {
|
|
2977
|
-
return localVarFp.blobIsResourceValid(body, options).then((request) => request(axios, basePath));
|
|
2978
|
-
},
|
|
2979
2911
|
/**
|
|
2980
2912
|
*
|
|
2981
2913
|
* @summary This method uploads a given File
|
|
@@ -6372,6 +6304,16 @@ const createRequestFunction$4 = function (axiosArgs, globalAxios, BASE_PATH, con
|
|
|
6372
6304
|
};
|
|
6373
6305
|
|
|
6374
6306
|
/* tslint:disable */
|
|
6307
|
+
/**
|
|
6308
|
+
*
|
|
6309
|
+
* @export
|
|
6310
|
+
* @enum {string}
|
|
6311
|
+
*/
|
|
6312
|
+
var ResourceTypeStatus;
|
|
6313
|
+
(function (ResourceTypeStatus) {
|
|
6314
|
+
ResourceTypeStatus["Hidden"] = "hidden";
|
|
6315
|
+
ResourceTypeStatus["Active"] = "active";
|
|
6316
|
+
})(ResourceTypeStatus || (ResourceTypeStatus = {}));
|
|
6375
6317
|
/**
|
|
6376
6318
|
* ResourceApi - axios parameter creator
|
|
6377
6319
|
* @export
|
|
@@ -7515,7 +7457,7 @@ const TokenApiFactory = function (configuration, basePath, axios) {
|
|
|
7515
7457
|
};
|
|
7516
7458
|
|
|
7517
7459
|
/* tslint:disable */
|
|
7518
|
-
const BASE_PATH$1 = "https://d-
|
|
7460
|
+
const BASE_PATH$1 = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
|
|
7519
7461
|
/**
|
|
7520
7462
|
*
|
|
7521
7463
|
* @export
|
|
@@ -7611,10 +7553,11 @@ const TreeApiAxiosParamCreator = function (configuration) {
|
|
|
7611
7553
|
* @summary This method retrieves the metadata
|
|
7612
7554
|
* @param {string} resourceId Id of a resource
|
|
7613
7555
|
* @param {string} [path] Path to the file
|
|
7556
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7614
7557
|
* @param {*} [options] Override http request option.
|
|
7615
7558
|
* @throws {RequiredError}
|
|
7616
7559
|
*/
|
|
7617
|
-
treeGetMetadataWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7560
|
+
treeGetMetadataWithParameter: (resourceId, path, mimeType, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7618
7561
|
// verify required parameter 'resourceId' is not null or undefined
|
|
7619
7562
|
assertParamExists$1('treeGetMetadataWithParameter', 'resourceId', resourceId);
|
|
7620
7563
|
const localVarPath = `/Tree/{resourceId}`
|
|
@@ -7633,6 +7576,9 @@ const TreeApiAxiosParamCreator = function (configuration) {
|
|
|
7633
7576
|
if (path !== undefined) {
|
|
7634
7577
|
localVarQueryParameter['path'] = path;
|
|
7635
7578
|
}
|
|
7579
|
+
if (mimeType !== undefined) {
|
|
7580
|
+
localVarQueryParameter['mimeType'] = mimeType;
|
|
7581
|
+
}
|
|
7636
7582
|
setSearchParams$1(localVarUrlObj, localVarQueryParameter, options.query);
|
|
7637
7583
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7638
7584
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7646,10 +7592,11 @@ const TreeApiAxiosParamCreator = function (configuration) {
|
|
|
7646
7592
|
* @summary This method stores the metadata of the file
|
|
7647
7593
|
* @param {string} resourceId Id of the resource
|
|
7648
7594
|
* @param {string} [path] Path to the file
|
|
7595
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7649
7596
|
* @param {*} [options] Override http request option.
|
|
7650
7597
|
* @throws {RequiredError}
|
|
7651
7598
|
*/
|
|
7652
|
-
treeStoreMetadataForFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7599
|
+
treeStoreMetadataForFileWithParameter: (resourceId, path, mimeType, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7653
7600
|
// verify required parameter 'resourceId' is not null or undefined
|
|
7654
7601
|
assertParamExists$1('treeStoreMetadataForFileWithParameter', 'resourceId', resourceId);
|
|
7655
7602
|
const localVarPath = `/Tree/{resourceId}`
|
|
@@ -7668,6 +7615,9 @@ const TreeApiAxiosParamCreator = function (configuration) {
|
|
|
7668
7615
|
if (path !== undefined) {
|
|
7669
7616
|
localVarQueryParameter['path'] = path;
|
|
7670
7617
|
}
|
|
7618
|
+
if (mimeType !== undefined) {
|
|
7619
|
+
localVarQueryParameter['mimeType'] = mimeType;
|
|
7620
|
+
}
|
|
7671
7621
|
setSearchParams$1(localVarUrlObj, localVarQueryParameter, options.query);
|
|
7672
7622
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7673
7623
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7690,12 +7640,13 @@ const TreeApiFp = function (configuration) {
|
|
|
7690
7640
|
* @summary This method retrieves the metadata
|
|
7691
7641
|
* @param {string} resourceId Id of a resource
|
|
7692
7642
|
* @param {string} [path] Path to the file
|
|
7643
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7693
7644
|
* @param {*} [options] Override http request option.
|
|
7694
7645
|
* @throws {RequiredError}
|
|
7695
7646
|
*/
|
|
7696
|
-
treeGetMetadataWithParameter(resourceId, path, options) {
|
|
7647
|
+
treeGetMetadataWithParameter(resourceId, path, mimeType, options) {
|
|
7697
7648
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7698
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.treeGetMetadataWithParameter(resourceId, path, options);
|
|
7649
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.treeGetMetadataWithParameter(resourceId, path, mimeType, options);
|
|
7699
7650
|
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
7700
7651
|
});
|
|
7701
7652
|
},
|
|
@@ -7704,12 +7655,13 @@ const TreeApiFp = function (configuration) {
|
|
|
7704
7655
|
* @summary This method stores the metadata of the file
|
|
7705
7656
|
* @param {string} resourceId Id of the resource
|
|
7706
7657
|
* @param {string} [path] Path to the file
|
|
7658
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7707
7659
|
* @param {*} [options] Override http request option.
|
|
7708
7660
|
* @throws {RequiredError}
|
|
7709
7661
|
*/
|
|
7710
|
-
treeStoreMetadataForFileWithParameter(resourceId, path, options) {
|
|
7662
|
+
treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options) {
|
|
7711
7663
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7712
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.treeStoreMetadataForFileWithParameter(resourceId, path, options);
|
|
7664
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options);
|
|
7713
7665
|
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
7714
7666
|
});
|
|
7715
7667
|
},
|
|
@@ -7727,22 +7679,24 @@ const TreeApiFactory = function (configuration, basePath, axios) {
|
|
|
7727
7679
|
* @summary This method retrieves the metadata
|
|
7728
7680
|
* @param {string} resourceId Id of a resource
|
|
7729
7681
|
* @param {string} [path] Path to the file
|
|
7682
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7730
7683
|
* @param {*} [options] Override http request option.
|
|
7731
7684
|
* @throws {RequiredError}
|
|
7732
7685
|
*/
|
|
7733
|
-
treeGetMetadataWithParameter(resourceId, path, options) {
|
|
7734
|
-
return localVarFp.treeGetMetadataWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
|
|
7686
|
+
treeGetMetadataWithParameter(resourceId, path, mimeType, options) {
|
|
7687
|
+
return localVarFp.treeGetMetadataWithParameter(resourceId, path, mimeType, options).then((request) => request(axios, basePath));
|
|
7735
7688
|
},
|
|
7736
7689
|
/**
|
|
7737
7690
|
*
|
|
7738
7691
|
* @summary This method stores the metadata of the file
|
|
7739
7692
|
* @param {string} resourceId Id of the resource
|
|
7740
7693
|
* @param {string} [path] Path to the file
|
|
7694
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7741
7695
|
* @param {*} [options] Override http request option.
|
|
7742
7696
|
* @throws {RequiredError}
|
|
7743
7697
|
*/
|
|
7744
|
-
treeStoreMetadataForFileWithParameter(resourceId, path, options) {
|
|
7745
|
-
return localVarFp.treeStoreMetadataForFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
|
|
7698
|
+
treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options) {
|
|
7699
|
+
return localVarFp.treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options).then((request) => request(axios, basePath));
|
|
7746
7700
|
},
|
|
7747
7701
|
};
|
|
7748
7702
|
};
|
|
@@ -8596,15 +8550,15 @@ function implementations(axios) {
|
|
|
8596
8550
|
|
|
8597
8551
|
const instance = axios.create();
|
|
8598
8552
|
const authHeaderKey = 'Authorization';
|
|
8599
|
-
const
|
|
8553
|
+
const clientCorrelationIdKey = 'X-Coscine-Logging-CorrelationId';
|
|
8600
8554
|
function setHeader(request) {
|
|
8601
8555
|
if (typeof coscine !== "undefined") {
|
|
8602
8556
|
if (typeof coscine.authorization !== "undefined") {
|
|
8603
8557
|
request.headers.common[authHeaderKey] =
|
|
8604
8558
|
'Bearer ' + coscine.authorization.bearer;
|
|
8605
8559
|
}
|
|
8606
|
-
if (typeof coscine.
|
|
8607
|
-
request.headers.common[
|
|
8560
|
+
if (typeof coscine.clientcorrelation !== "undefined") {
|
|
8561
|
+
request.headers.common[clientCorrelationIdKey] = coscine.clientcorrelation.id;
|
|
8608
8562
|
}
|
|
8609
8563
|
}
|
|
8610
8564
|
if (typeof window !== 'undefined') {
|
|
@@ -8614,46 +8568,21 @@ function setHeader(request) {
|
|
|
8614
8568
|
request.headers.common[authHeaderKey] =
|
|
8615
8569
|
'Bearer ' + localStorageToken;
|
|
8616
8570
|
}
|
|
8617
|
-
const localStorageClientCorrelation = localStorage.getItem("coscine.
|
|
8571
|
+
const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrelation.id");
|
|
8618
8572
|
if (localStorageClientCorrelation) {
|
|
8619
|
-
request.headers.common[
|
|
8620
|
-
}
|
|
8621
|
-
}
|
|
8622
|
-
}
|
|
8623
|
-
function increaseLoading() {
|
|
8624
|
-
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8625
|
-
coscine.loading.counter++;
|
|
8626
|
-
}
|
|
8627
|
-
if (typeof window !== 'undefined') {
|
|
8628
|
-
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8629
|
-
if (localStorageLoading) {
|
|
8630
|
-
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) + 1));
|
|
8631
|
-
}
|
|
8632
|
-
}
|
|
8633
|
-
}
|
|
8634
|
-
function decreaseLoading() {
|
|
8635
|
-
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8636
|
-
coscine.loading.counter--;
|
|
8637
|
-
}
|
|
8638
|
-
if (typeof window !== 'undefined') {
|
|
8639
|
-
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8640
|
-
if (localStorageLoading) {
|
|
8641
|
-
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) - 1));
|
|
8573
|
+
request.headers.common[clientCorrelationIdKey] = localStorageClientCorrelation;
|
|
8642
8574
|
}
|
|
8643
8575
|
}
|
|
8644
8576
|
}
|
|
8645
8577
|
instance.interceptors.request.use((request) => {
|
|
8646
8578
|
setHeader(request);
|
|
8647
|
-
increaseLoading();
|
|
8648
8579
|
return request;
|
|
8649
8580
|
}, (error) => {
|
|
8650
8581
|
return Promise.reject(error);
|
|
8651
8582
|
});
|
|
8652
8583
|
instance.interceptors.response.use((response) => {
|
|
8653
|
-
decreaseLoading();
|
|
8654
8584
|
return response;
|
|
8655
8585
|
}, (error) => {
|
|
8656
|
-
decreaseLoading();
|
|
8657
8586
|
return Promise.reject(error);
|
|
8658
8587
|
});
|
|
8659
8588
|
|