@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.
Files changed (143) hide show
  1. package/README.md +1 -0
  2. package/dist/index.js +41 -112
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.umd.js +41 -112
  5. package/dist/index.umd.js.map +1 -1
  6. package/dist/lib/Coscine.Api.ActivatedFeatures/api.js +1 -1
  7. package/dist/lib/Coscine.Api.ActivatedFeatures/base.js +1 -1
  8. package/dist/lib/Coscine.Api.ActivatedFeatures/common.js +1 -1
  9. package/dist/lib/Coscine.Api.ActivatedFeatures/configuration.js +1 -1
  10. package/dist/lib/Coscine.Api.ActivatedFeatures/index.js +1 -1
  11. package/dist/lib/Coscine.Api.Admin/api.js +1 -1
  12. package/dist/lib/Coscine.Api.Admin/base.js +1 -1
  13. package/dist/lib/Coscine.Api.Admin/common.js +1 -1
  14. package/dist/lib/Coscine.Api.Admin/configuration.js +1 -1
  15. package/dist/lib/Coscine.Api.Admin/index.js +1 -1
  16. package/dist/lib/Coscine.Api.Blob/api.js +1 -67
  17. package/dist/lib/Coscine.Api.Blob/api.js.map +1 -1
  18. package/dist/lib/Coscine.Api.Blob/base.js +1 -1
  19. package/dist/lib/Coscine.Api.Blob/common.js +1 -1
  20. package/dist/lib/Coscine.Api.Blob/configuration.js +1 -1
  21. package/dist/lib/Coscine.Api.Blob/index.js +1 -1
  22. package/dist/lib/Coscine.Api.Metadata/api.js +1 -1
  23. package/dist/lib/Coscine.Api.Metadata/base.js +1 -1
  24. package/dist/lib/Coscine.Api.Metadata/common.js +1 -1
  25. package/dist/lib/Coscine.Api.Metadata/configuration.js +1 -1
  26. package/dist/lib/Coscine.Api.Metadata/index.js +1 -1
  27. package/dist/lib/Coscine.Api.Notices/api.js +1 -1
  28. package/dist/lib/Coscine.Api.Notices/base.js +1 -1
  29. package/dist/lib/Coscine.Api.Notices/common.js +1 -1
  30. package/dist/lib/Coscine.Api.Notices/configuration.js +1 -1
  31. package/dist/lib/Coscine.Api.Notices/index.js +1 -1
  32. package/dist/lib/Coscine.Api.Organization/api.js +1 -1
  33. package/dist/lib/Coscine.Api.Organization/base.js +1 -1
  34. package/dist/lib/Coscine.Api.Organization/common.js +1 -1
  35. package/dist/lib/Coscine.Api.Organization/configuration.js +1 -1
  36. package/dist/lib/Coscine.Api.Organization/index.js +1 -1
  37. package/dist/lib/Coscine.Api.Project/api.js +1 -1
  38. package/dist/lib/Coscine.Api.Project/base.js +1 -1
  39. package/dist/lib/Coscine.Api.Project/common.js +1 -1
  40. package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
  41. package/dist/lib/Coscine.Api.Project/index.js +1 -1
  42. package/dist/lib/Coscine.Api.Quota/api.js +1 -1
  43. package/dist/lib/Coscine.Api.Quota/base.js +1 -1
  44. package/dist/lib/Coscine.Api.Quota/common.js +1 -1
  45. package/dist/lib/Coscine.Api.Quota/configuration.js +1 -1
  46. package/dist/lib/Coscine.Api.Quota/index.js +1 -1
  47. package/dist/lib/Coscine.Api.Resources/api.js +12 -2
  48. package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
  49. package/dist/lib/Coscine.Api.Resources/base.js +1 -1
  50. package/dist/lib/Coscine.Api.Resources/common.js +1 -1
  51. package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
  52. package/dist/lib/Coscine.Api.Resources/index.js +1 -1
  53. package/dist/lib/Coscine.Api.Search/api.js +1 -1
  54. package/dist/lib/Coscine.Api.Search/base.js +1 -1
  55. package/dist/lib/Coscine.Api.Search/common.js +1 -1
  56. package/dist/lib/Coscine.Api.Search/configuration.js +1 -1
  57. package/dist/lib/Coscine.Api.Search/index.js +1 -1
  58. package/dist/lib/Coscine.Api.Token/api.js +1 -1
  59. package/dist/lib/Coscine.Api.Token/base.js +1 -1
  60. package/dist/lib/Coscine.Api.Token/common.js +1 -1
  61. package/dist/lib/Coscine.Api.Token/configuration.js +1 -1
  62. package/dist/lib/Coscine.Api.Token/index.js +1 -1
  63. package/dist/lib/Coscine.Api.Tree/api.js +29 -15
  64. package/dist/lib/Coscine.Api.Tree/api.js.map +1 -1
  65. package/dist/lib/Coscine.Api.Tree/base.js +2 -2
  66. package/dist/lib/Coscine.Api.Tree/common.js +1 -1
  67. package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
  68. package/dist/lib/Coscine.Api.Tree/index.js +1 -1
  69. package/dist/lib/Coscine.Api.User/api.js +1 -1
  70. package/dist/lib/Coscine.Api.User/base.js +1 -1
  71. package/dist/lib/Coscine.Api.User/common.js +1 -1
  72. package/dist/lib/Coscine.Api.User/configuration.js +1 -1
  73. package/dist/lib/Coscine.Api.User/index.js +1 -1
  74. package/dist/lib/axios-basic.js +5 -30
  75. package/dist/lib/axios-basic.js.map +1 -1
  76. package/dist/types/Coscine.Api.ActivatedFeatures/api.d.ts +1 -1
  77. package/dist/types/Coscine.Api.ActivatedFeatures/base.d.ts +1 -1
  78. package/dist/types/Coscine.Api.ActivatedFeatures/common.d.ts +1 -1
  79. package/dist/types/Coscine.Api.ActivatedFeatures/configuration.d.ts +1 -1
  80. package/dist/types/Coscine.Api.ActivatedFeatures/index.d.ts +1 -1
  81. package/dist/types/Coscine.Api.Admin/api.d.ts +1 -1
  82. package/dist/types/Coscine.Api.Admin/base.d.ts +1 -1
  83. package/dist/types/Coscine.Api.Admin/common.d.ts +1 -1
  84. package/dist/types/Coscine.Api.Admin/configuration.d.ts +1 -1
  85. package/dist/types/Coscine.Api.Admin/index.d.ts +1 -1
  86. package/dist/types/Coscine.Api.Blob/api.d.ts +1 -34
  87. package/dist/types/Coscine.Api.Blob/base.d.ts +1 -1
  88. package/dist/types/Coscine.Api.Blob/common.d.ts +1 -1
  89. package/dist/types/Coscine.Api.Blob/configuration.d.ts +1 -1
  90. package/dist/types/Coscine.Api.Blob/index.d.ts +1 -1
  91. package/dist/types/Coscine.Api.Metadata/api.d.ts +1 -1
  92. package/dist/types/Coscine.Api.Metadata/base.d.ts +1 -1
  93. package/dist/types/Coscine.Api.Metadata/common.d.ts +1 -1
  94. package/dist/types/Coscine.Api.Metadata/configuration.d.ts +1 -1
  95. package/dist/types/Coscine.Api.Metadata/index.d.ts +1 -1
  96. package/dist/types/Coscine.Api.Notices/api.d.ts +1 -1
  97. package/dist/types/Coscine.Api.Notices/base.d.ts +1 -1
  98. package/dist/types/Coscine.Api.Notices/common.d.ts +1 -1
  99. package/dist/types/Coscine.Api.Notices/configuration.d.ts +1 -1
  100. package/dist/types/Coscine.Api.Notices/index.d.ts +1 -1
  101. package/dist/types/Coscine.Api.Organization/api.d.ts +1 -1
  102. package/dist/types/Coscine.Api.Organization/base.d.ts +1 -1
  103. package/dist/types/Coscine.Api.Organization/common.d.ts +1 -1
  104. package/dist/types/Coscine.Api.Organization/configuration.d.ts +1 -1
  105. package/dist/types/Coscine.Api.Organization/index.d.ts +1 -1
  106. package/dist/types/Coscine.Api.Project/api.d.ts +1 -1
  107. package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
  108. package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
  109. package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
  110. package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
  111. package/dist/types/Coscine.Api.Quota/api.d.ts +1 -1
  112. package/dist/types/Coscine.Api.Quota/base.d.ts +1 -1
  113. package/dist/types/Coscine.Api.Quota/common.d.ts +1 -1
  114. package/dist/types/Coscine.Api.Quota/configuration.d.ts +1 -1
  115. package/dist/types/Coscine.Api.Quota/index.d.ts +1 -1
  116. package/dist/types/Coscine.Api.Resources/api.d.ts +59 -8
  117. package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
  118. package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
  119. package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
  120. package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
  121. package/dist/types/Coscine.Api.Search/api.d.ts +1 -1
  122. package/dist/types/Coscine.Api.Search/base.d.ts +1 -1
  123. package/dist/types/Coscine.Api.Search/common.d.ts +1 -1
  124. package/dist/types/Coscine.Api.Search/configuration.d.ts +1 -1
  125. package/dist/types/Coscine.Api.Search/index.d.ts +1 -1
  126. package/dist/types/Coscine.Api.Token/api.d.ts +1 -1
  127. package/dist/types/Coscine.Api.Token/base.d.ts +1 -1
  128. package/dist/types/Coscine.Api.Token/common.d.ts +1 -1
  129. package/dist/types/Coscine.Api.Token/configuration.d.ts +1 -1
  130. package/dist/types/Coscine.Api.Token/index.d.ts +1 -1
  131. package/dist/types/Coscine.Api.Tree/api.d.ts +17 -9
  132. package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
  133. package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
  134. package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
  135. package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
  136. package/dist/types/Coscine.Api.User/api.d.ts +1 -1
  137. package/dist/types/Coscine.Api.User/base.d.ts +1 -1
  138. package/dist/types/Coscine.Api.User/common.d.ts +1 -1
  139. package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
  140. package/dist/types/Coscine.Api.User/index.d.ts +1 -1
  141. package/dist/types/apis.d.ts +2 -3
  142. package/dist/types/index.d.ts +4 -6
  143. package/package.json +2 -2
package/README.md CHANGED
@@ -19,3 +19,4 @@ Furthermore, some setup is done, to deliver an easy API connection for our Cosci
19
19
  ## Links
20
20
 
21
21
  Bundles the output of [CodeGen](https://git.rwth-aachen.de/coscine/backend/scripts/codegen).
22
+
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.0.3
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$7 = function (value, requestOptions, configuration) {
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$7(updateQuotaParameterObject, localVarRequestOptions, configuration);
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-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
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 clientCorrolationIdKey = 'X-Coscine-Logging-CorrelationId';
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.clientcorrolation !== "undefined") {
8607
- request.headers.common[clientCorrolationIdKey] = coscine.clientcorrolation.id;
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.clientcorrolation.id");
8571
+ const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrelation.id");
8618
8572
  if (localStorageClientCorrelation) {
8619
- request.headers.common[clientCorrolationIdKey] = localStorageClientCorrelation;
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