@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/dist/index.umd.js
CHANGED
|
@@ -2303,7 +2303,7 @@
|
|
|
2303
2303
|
* Coscine.Api.ActivatedFeatures
|
|
2304
2304
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2305
2305
|
*
|
|
2306
|
-
* The version of the OpenAPI document: 2.
|
|
2306
|
+
* The version of the OpenAPI document: 2.1.2
|
|
2307
2307
|
*
|
|
2308
2308
|
*
|
|
2309
2309
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2407,7 +2407,7 @@
|
|
|
2407
2407
|
*
|
|
2408
2408
|
* @export
|
|
2409
2409
|
*/
|
|
2410
|
-
const serializeDataIfNeeded$
|
|
2410
|
+
const serializeDataIfNeeded$6 = function (value, requestOptions, configuration) {
|
|
2411
2411
|
const nonString = typeof value !== 'string';
|
|
2412
2412
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
2413
2413
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
@@ -2498,7 +2498,7 @@
|
|
|
2498
2498
|
setSearchParams$b(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2499
2499
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2500
2500
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2501
|
-
localVarRequestOptions.data = serializeDataIfNeeded$
|
|
2501
|
+
localVarRequestOptions.data = serializeDataIfNeeded$6(updateQuotaParameterObject, localVarRequestOptions, configuration);
|
|
2502
2502
|
return {
|
|
2503
2503
|
url: toPathString$b(localVarUrlObj),
|
|
2504
2504
|
options: localVarRequestOptions,
|
|
@@ -2638,19 +2638,6 @@
|
|
|
2638
2638
|
}
|
|
2639
2639
|
url.search = searchParams.toString();
|
|
2640
2640
|
};
|
|
2641
|
-
/**
|
|
2642
|
-
*
|
|
2643
|
-
* @export
|
|
2644
|
-
*/
|
|
2645
|
-
const serializeDataIfNeeded$6 = function (value, requestOptions, configuration) {
|
|
2646
|
-
const nonString = typeof value !== 'string';
|
|
2647
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
2648
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
2649
|
-
: nonString;
|
|
2650
|
-
return needsSerialization
|
|
2651
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
2652
|
-
: (value || "");
|
|
2653
|
-
};
|
|
2654
2641
|
/**
|
|
2655
2642
|
*
|
|
2656
2643
|
* @export
|
|
@@ -2777,38 +2764,6 @@
|
|
|
2777
2764
|
options: localVarRequestOptions,
|
|
2778
2765
|
};
|
|
2779
2766
|
}),
|
|
2780
|
-
/**
|
|
2781
|
-
*
|
|
2782
|
-
* @summary This method checks if the resource is valid
|
|
2783
|
-
* @param {any} body
|
|
2784
|
-
* @param {*} [options] Override http request option.
|
|
2785
|
-
* @throws {RequiredError}
|
|
2786
|
-
*/
|
|
2787
|
-
blobIsResourceValid: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2788
|
-
// verify required parameter 'body' is not null or undefined
|
|
2789
|
-
assertParamExists$9('blobIsResourceValid', 'body', body);
|
|
2790
|
-
const localVarPath = `/Blob/validate`;
|
|
2791
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2792
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$a);
|
|
2793
|
-
let baseOptions;
|
|
2794
|
-
if (configuration) {
|
|
2795
|
-
baseOptions = configuration.baseOptions;
|
|
2796
|
-
}
|
|
2797
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2798
|
-
const localVarHeaderParameter = {};
|
|
2799
|
-
const localVarQueryParameter = {};
|
|
2800
|
-
// authentication JWT token required
|
|
2801
|
-
yield setApiKeyToObject$a(localVarHeaderParameter, "Authorization", configuration);
|
|
2802
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2803
|
-
setSearchParams$a(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2804
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2805
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2806
|
-
localVarRequestOptions.data = serializeDataIfNeeded$6(body, localVarRequestOptions, configuration);
|
|
2807
|
-
return {
|
|
2808
|
-
url: toPathString$a(localVarUrlObj),
|
|
2809
|
-
options: localVarRequestOptions,
|
|
2810
|
-
};
|
|
2811
|
-
}),
|
|
2812
2767
|
/**
|
|
2813
2768
|
*
|
|
2814
2769
|
* @summary This method uploads a given File
|
|
@@ -2903,19 +2858,6 @@
|
|
|
2903
2858
|
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2904
2859
|
});
|
|
2905
2860
|
},
|
|
2906
|
-
/**
|
|
2907
|
-
*
|
|
2908
|
-
* @summary This method checks if the resource is valid
|
|
2909
|
-
* @param {any} body
|
|
2910
|
-
* @param {*} [options] Override http request option.
|
|
2911
|
-
* @throws {RequiredError}
|
|
2912
|
-
*/
|
|
2913
|
-
blobIsResourceValid(body, options) {
|
|
2914
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2915
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.blobIsResourceValid(body, options);
|
|
2916
|
-
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2917
|
-
});
|
|
2918
|
-
},
|
|
2919
2861
|
/**
|
|
2920
2862
|
*
|
|
2921
2863
|
* @summary This method uploads a given File
|
|
@@ -2972,16 +2914,6 @@
|
|
|
2972
2914
|
blobGetQuota(resourceId, options) {
|
|
2973
2915
|
return localVarFp.blobGetQuota(resourceId, options).then((request) => request(axios, basePath));
|
|
2974
2916
|
},
|
|
2975
|
-
/**
|
|
2976
|
-
*
|
|
2977
|
-
* @summary This method checks if the resource is valid
|
|
2978
|
-
* @param {any} body
|
|
2979
|
-
* @param {*} [options] Override http request option.
|
|
2980
|
-
* @throws {RequiredError}
|
|
2981
|
-
*/
|
|
2982
|
-
blobIsResourceValid(body, options) {
|
|
2983
|
-
return localVarFp.blobIsResourceValid(body, options).then((request) => request(axios, basePath));
|
|
2984
|
-
},
|
|
2985
2917
|
/**
|
|
2986
2918
|
*
|
|
2987
2919
|
* @summary This method uploads a given File
|
|
@@ -6378,6 +6310,16 @@
|
|
|
6378
6310
|
};
|
|
6379
6311
|
|
|
6380
6312
|
/* tslint:disable */
|
|
6313
|
+
/**
|
|
6314
|
+
*
|
|
6315
|
+
* @export
|
|
6316
|
+
* @enum {string}
|
|
6317
|
+
*/
|
|
6318
|
+
var ResourceTypeStatus;
|
|
6319
|
+
(function (ResourceTypeStatus) {
|
|
6320
|
+
ResourceTypeStatus["Hidden"] = "hidden";
|
|
6321
|
+
ResourceTypeStatus["Active"] = "active";
|
|
6322
|
+
})(ResourceTypeStatus || (ResourceTypeStatus = {}));
|
|
6381
6323
|
/**
|
|
6382
6324
|
* ResourceApi - axios parameter creator
|
|
6383
6325
|
* @export
|
|
@@ -7521,7 +7463,7 @@
|
|
|
7521
7463
|
};
|
|
7522
7464
|
|
|
7523
7465
|
/* tslint:disable */
|
|
7524
|
-
const BASE_PATH$1 = "https://d-
|
|
7466
|
+
const BASE_PATH$1 = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
|
|
7525
7467
|
/**
|
|
7526
7468
|
*
|
|
7527
7469
|
* @export
|
|
@@ -7617,10 +7559,11 @@
|
|
|
7617
7559
|
* @summary This method retrieves the metadata
|
|
7618
7560
|
* @param {string} resourceId Id of a resource
|
|
7619
7561
|
* @param {string} [path] Path to the file
|
|
7562
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7620
7563
|
* @param {*} [options] Override http request option.
|
|
7621
7564
|
* @throws {RequiredError}
|
|
7622
7565
|
*/
|
|
7623
|
-
treeGetMetadataWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7566
|
+
treeGetMetadataWithParameter: (resourceId, path, mimeType, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7624
7567
|
// verify required parameter 'resourceId' is not null or undefined
|
|
7625
7568
|
assertParamExists$1('treeGetMetadataWithParameter', 'resourceId', resourceId);
|
|
7626
7569
|
const localVarPath = `/Tree/{resourceId}`
|
|
@@ -7639,6 +7582,9 @@
|
|
|
7639
7582
|
if (path !== undefined) {
|
|
7640
7583
|
localVarQueryParameter['path'] = path;
|
|
7641
7584
|
}
|
|
7585
|
+
if (mimeType !== undefined) {
|
|
7586
|
+
localVarQueryParameter['mimeType'] = mimeType;
|
|
7587
|
+
}
|
|
7642
7588
|
setSearchParams$1(localVarUrlObj, localVarQueryParameter, options.query);
|
|
7643
7589
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7644
7590
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7652,10 +7598,11 @@
|
|
|
7652
7598
|
* @summary This method stores the metadata of the file
|
|
7653
7599
|
* @param {string} resourceId Id of the resource
|
|
7654
7600
|
* @param {string} [path] Path to the file
|
|
7601
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7655
7602
|
* @param {*} [options] Override http request option.
|
|
7656
7603
|
* @throws {RequiredError}
|
|
7657
7604
|
*/
|
|
7658
|
-
treeStoreMetadataForFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7605
|
+
treeStoreMetadataForFileWithParameter: (resourceId, path, mimeType, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7659
7606
|
// verify required parameter 'resourceId' is not null or undefined
|
|
7660
7607
|
assertParamExists$1('treeStoreMetadataForFileWithParameter', 'resourceId', resourceId);
|
|
7661
7608
|
const localVarPath = `/Tree/{resourceId}`
|
|
@@ -7674,6 +7621,9 @@
|
|
|
7674
7621
|
if (path !== undefined) {
|
|
7675
7622
|
localVarQueryParameter['path'] = path;
|
|
7676
7623
|
}
|
|
7624
|
+
if (mimeType !== undefined) {
|
|
7625
|
+
localVarQueryParameter['mimeType'] = mimeType;
|
|
7626
|
+
}
|
|
7677
7627
|
setSearchParams$1(localVarUrlObj, localVarQueryParameter, options.query);
|
|
7678
7628
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7679
7629
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7696,12 +7646,13 @@
|
|
|
7696
7646
|
* @summary This method retrieves the metadata
|
|
7697
7647
|
* @param {string} resourceId Id of a resource
|
|
7698
7648
|
* @param {string} [path] Path to the file
|
|
7649
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7699
7650
|
* @param {*} [options] Override http request option.
|
|
7700
7651
|
* @throws {RequiredError}
|
|
7701
7652
|
*/
|
|
7702
|
-
treeGetMetadataWithParameter(resourceId, path, options) {
|
|
7653
|
+
treeGetMetadataWithParameter(resourceId, path, mimeType, options) {
|
|
7703
7654
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7704
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.treeGetMetadataWithParameter(resourceId, path, options);
|
|
7655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.treeGetMetadataWithParameter(resourceId, path, mimeType, options);
|
|
7705
7656
|
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
7706
7657
|
});
|
|
7707
7658
|
},
|
|
@@ -7710,12 +7661,13 @@
|
|
|
7710
7661
|
* @summary This method stores the metadata of the file
|
|
7711
7662
|
* @param {string} resourceId Id of the resource
|
|
7712
7663
|
* @param {string} [path] Path to the file
|
|
7664
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7713
7665
|
* @param {*} [options] Override http request option.
|
|
7714
7666
|
* @throws {RequiredError}
|
|
7715
7667
|
*/
|
|
7716
|
-
treeStoreMetadataForFileWithParameter(resourceId, path, options) {
|
|
7668
|
+
treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options) {
|
|
7717
7669
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7718
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.treeStoreMetadataForFileWithParameter(resourceId, path, options);
|
|
7670
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options);
|
|
7719
7671
|
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
7720
7672
|
});
|
|
7721
7673
|
},
|
|
@@ -7733,22 +7685,24 @@
|
|
|
7733
7685
|
* @summary This method retrieves the metadata
|
|
7734
7686
|
* @param {string} resourceId Id of a resource
|
|
7735
7687
|
* @param {string} [path] Path to the file
|
|
7688
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7736
7689
|
* @param {*} [options] Override http request option.
|
|
7737
7690
|
* @throws {RequiredError}
|
|
7738
7691
|
*/
|
|
7739
|
-
treeGetMetadataWithParameter(resourceId, path, options) {
|
|
7740
|
-
return localVarFp.treeGetMetadataWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
|
|
7692
|
+
treeGetMetadataWithParameter(resourceId, path, mimeType, options) {
|
|
7693
|
+
return localVarFp.treeGetMetadataWithParameter(resourceId, path, mimeType, options).then((request) => request(axios, basePath));
|
|
7741
7694
|
},
|
|
7742
7695
|
/**
|
|
7743
7696
|
*
|
|
7744
7697
|
* @summary This method stores the metadata of the file
|
|
7745
7698
|
* @param {string} resourceId Id of the resource
|
|
7746
7699
|
* @param {string} [path] Path to the file
|
|
7700
|
+
* @param {string} [mimeType] Requested MimeType of the metadata
|
|
7747
7701
|
* @param {*} [options] Override http request option.
|
|
7748
7702
|
* @throws {RequiredError}
|
|
7749
7703
|
*/
|
|
7750
|
-
treeStoreMetadataForFileWithParameter(resourceId, path, options) {
|
|
7751
|
-
return localVarFp.treeStoreMetadataForFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
|
|
7704
|
+
treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options) {
|
|
7705
|
+
return localVarFp.treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options).then((request) => request(axios, basePath));
|
|
7752
7706
|
},
|
|
7753
7707
|
};
|
|
7754
7708
|
};
|
|
@@ -8602,15 +8556,15 @@
|
|
|
8602
8556
|
|
|
8603
8557
|
const instance = axios.create();
|
|
8604
8558
|
const authHeaderKey = 'Authorization';
|
|
8605
|
-
const
|
|
8559
|
+
const clientCorrelationIdKey = 'X-Coscine-Logging-CorrelationId';
|
|
8606
8560
|
function setHeader(request) {
|
|
8607
8561
|
if (typeof coscine !== "undefined") {
|
|
8608
8562
|
if (typeof coscine.authorization !== "undefined") {
|
|
8609
8563
|
request.headers.common[authHeaderKey] =
|
|
8610
8564
|
'Bearer ' + coscine.authorization.bearer;
|
|
8611
8565
|
}
|
|
8612
|
-
if (typeof coscine.
|
|
8613
|
-
request.headers.common[
|
|
8566
|
+
if (typeof coscine.clientcorrelation !== "undefined") {
|
|
8567
|
+
request.headers.common[clientCorrelationIdKey] = coscine.clientcorrelation.id;
|
|
8614
8568
|
}
|
|
8615
8569
|
}
|
|
8616
8570
|
if (typeof window !== 'undefined') {
|
|
@@ -8620,46 +8574,21 @@
|
|
|
8620
8574
|
request.headers.common[authHeaderKey] =
|
|
8621
8575
|
'Bearer ' + localStorageToken;
|
|
8622
8576
|
}
|
|
8623
|
-
const localStorageClientCorrelation = localStorage.getItem("coscine.
|
|
8577
|
+
const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrelation.id");
|
|
8624
8578
|
if (localStorageClientCorrelation) {
|
|
8625
|
-
request.headers.common[
|
|
8626
|
-
}
|
|
8627
|
-
}
|
|
8628
|
-
}
|
|
8629
|
-
function increaseLoading() {
|
|
8630
|
-
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8631
|
-
coscine.loading.counter++;
|
|
8632
|
-
}
|
|
8633
|
-
if (typeof window !== 'undefined') {
|
|
8634
|
-
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8635
|
-
if (localStorageLoading) {
|
|
8636
|
-
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) + 1));
|
|
8637
|
-
}
|
|
8638
|
-
}
|
|
8639
|
-
}
|
|
8640
|
-
function decreaseLoading() {
|
|
8641
|
-
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
|
|
8642
|
-
coscine.loading.counter--;
|
|
8643
|
-
}
|
|
8644
|
-
if (typeof window !== 'undefined') {
|
|
8645
|
-
const localStorageLoading = localStorage.getItem("coscine.loading.counter");
|
|
8646
|
-
if (localStorageLoading) {
|
|
8647
|
-
localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) - 1));
|
|
8579
|
+
request.headers.common[clientCorrelationIdKey] = localStorageClientCorrelation;
|
|
8648
8580
|
}
|
|
8649
8581
|
}
|
|
8650
8582
|
}
|
|
8651
8583
|
instance.interceptors.request.use((request) => {
|
|
8652
8584
|
setHeader(request);
|
|
8653
|
-
increaseLoading();
|
|
8654
8585
|
return request;
|
|
8655
8586
|
}, (error) => {
|
|
8656
8587
|
return Promise.reject(error);
|
|
8657
8588
|
});
|
|
8658
8589
|
instance.interceptors.response.use((response) => {
|
|
8659
|
-
decreaseLoading();
|
|
8660
8590
|
return response;
|
|
8661
8591
|
}, (error) => {
|
|
8662
|
-
decreaseLoading();
|
|
8663
8592
|
return Promise.reject(error);
|
|
8664
8593
|
});
|
|
8665
8594
|
|