@coscine/api-client 1.5.1 → 2.1.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 (144) hide show
  1. package/README.md +1 -0
  2. package/dist/index.js +109 -144
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.umd.js +109 -144
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +40 -40
  38. package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
  39. package/dist/lib/Coscine.Api.Project/base.js +2 -2
  40. package/dist/lib/Coscine.Api.Project/common.js +1 -1
  41. package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
  42. package/dist/lib/Coscine.Api.Project/index.js +1 -1
  43. package/dist/lib/Coscine.Api.Quota/api.js +1 -1
  44. package/dist/lib/Coscine.Api.Quota/base.js +2 -2
  45. package/dist/lib/Coscine.Api.Quota/common.js +1 -1
  46. package/dist/lib/Coscine.Api.Quota/configuration.js +1 -1
  47. package/dist/lib/Coscine.Api.Quota/index.js +1 -1
  48. package/dist/lib/Coscine.Api.Resources/api.js +12 -2
  49. package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
  50. package/dist/lib/Coscine.Api.Resources/base.js +2 -2
  51. package/dist/lib/Coscine.Api.Resources/common.js +1 -1
  52. package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
  53. package/dist/lib/Coscine.Api.Resources/index.js +1 -1
  54. package/dist/lib/Coscine.Api.Search/api.js +1 -1
  55. package/dist/lib/Coscine.Api.Search/base.js +2 -2
  56. package/dist/lib/Coscine.Api.Search/common.js +1 -1
  57. package/dist/lib/Coscine.Api.Search/configuration.js +1 -1
  58. package/dist/lib/Coscine.Api.Search/index.js +1 -1
  59. package/dist/lib/Coscine.Api.Token/api.js +59 -1
  60. package/dist/lib/Coscine.Api.Token/api.js.map +1 -1
  61. package/dist/lib/Coscine.Api.Token/base.js +2 -2
  62. package/dist/lib/Coscine.Api.Token/common.js +1 -1
  63. package/dist/lib/Coscine.Api.Token/configuration.js +1 -1
  64. package/dist/lib/Coscine.Api.Token/index.js +1 -1
  65. package/dist/lib/Coscine.Api.Tree/api.js +1 -1
  66. package/dist/lib/Coscine.Api.Tree/base.js +2 -2
  67. package/dist/lib/Coscine.Api.Tree/common.js +1 -1
  68. package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
  69. package/dist/lib/Coscine.Api.Tree/index.js +1 -1
  70. package/dist/lib/Coscine.Api.User/api.js +1 -1
  71. package/dist/lib/Coscine.Api.User/base.js +2 -2
  72. package/dist/lib/Coscine.Api.User/common.js +1 -1
  73. package/dist/lib/Coscine.Api.User/configuration.js +1 -1
  74. package/dist/lib/Coscine.Api.User/index.js +1 -1
  75. package/dist/lib/axios-basic.js +5 -30
  76. package/dist/lib/axios-basic.js.map +1 -1
  77. package/dist/types/Coscine.Api.ActivatedFeatures/api.d.ts +1 -1
  78. package/dist/types/Coscine.Api.ActivatedFeatures/base.d.ts +1 -1
  79. package/dist/types/Coscine.Api.ActivatedFeatures/common.d.ts +1 -1
  80. package/dist/types/Coscine.Api.ActivatedFeatures/configuration.d.ts +1 -1
  81. package/dist/types/Coscine.Api.ActivatedFeatures/index.d.ts +1 -1
  82. package/dist/types/Coscine.Api.Admin/api.d.ts +1 -1
  83. package/dist/types/Coscine.Api.Admin/base.d.ts +1 -1
  84. package/dist/types/Coscine.Api.Admin/common.d.ts +1 -1
  85. package/dist/types/Coscine.Api.Admin/configuration.d.ts +1 -1
  86. package/dist/types/Coscine.Api.Admin/index.d.ts +1 -1
  87. package/dist/types/Coscine.Api.Blob/api.d.ts +1 -34
  88. package/dist/types/Coscine.Api.Blob/base.d.ts +1 -1
  89. package/dist/types/Coscine.Api.Blob/common.d.ts +1 -1
  90. package/dist/types/Coscine.Api.Blob/configuration.d.ts +1 -1
  91. package/dist/types/Coscine.Api.Blob/index.d.ts +1 -1
  92. package/dist/types/Coscine.Api.Metadata/api.d.ts +1 -1
  93. package/dist/types/Coscine.Api.Metadata/base.d.ts +1 -1
  94. package/dist/types/Coscine.Api.Metadata/common.d.ts +1 -1
  95. package/dist/types/Coscine.Api.Metadata/configuration.d.ts +1 -1
  96. package/dist/types/Coscine.Api.Metadata/index.d.ts +1 -1
  97. package/dist/types/Coscine.Api.Notices/api.d.ts +1 -1
  98. package/dist/types/Coscine.Api.Notices/base.d.ts +1 -1
  99. package/dist/types/Coscine.Api.Notices/common.d.ts +1 -1
  100. package/dist/types/Coscine.Api.Notices/configuration.d.ts +1 -1
  101. package/dist/types/Coscine.Api.Notices/index.d.ts +1 -1
  102. package/dist/types/Coscine.Api.Organization/api.d.ts +1 -1
  103. package/dist/types/Coscine.Api.Organization/base.d.ts +1 -1
  104. package/dist/types/Coscine.Api.Organization/common.d.ts +1 -1
  105. package/dist/types/Coscine.Api.Organization/configuration.d.ts +1 -1
  106. package/dist/types/Coscine.Api.Organization/index.d.ts +1 -1
  107. package/dist/types/Coscine.Api.Project/api.d.ts +33 -33
  108. package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
  109. package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
  110. package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
  111. package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
  112. package/dist/types/Coscine.Api.Quota/api.d.ts +1 -1
  113. package/dist/types/Coscine.Api.Quota/base.d.ts +1 -1
  114. package/dist/types/Coscine.Api.Quota/common.d.ts +1 -1
  115. package/dist/types/Coscine.Api.Quota/configuration.d.ts +1 -1
  116. package/dist/types/Coscine.Api.Quota/index.d.ts +1 -1
  117. package/dist/types/Coscine.Api.Resources/api.d.ts +59 -8
  118. package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
  119. package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
  120. package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
  121. package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
  122. package/dist/types/Coscine.Api.Search/api.d.ts +1 -1
  123. package/dist/types/Coscine.Api.Search/base.d.ts +1 -1
  124. package/dist/types/Coscine.Api.Search/common.d.ts +1 -1
  125. package/dist/types/Coscine.Api.Search/configuration.d.ts +1 -1
  126. package/dist/types/Coscine.Api.Search/index.d.ts +1 -1
  127. package/dist/types/Coscine.Api.Token/api.d.ts +49 -1
  128. package/dist/types/Coscine.Api.Token/base.d.ts +1 -1
  129. package/dist/types/Coscine.Api.Token/common.d.ts +1 -1
  130. package/dist/types/Coscine.Api.Token/configuration.d.ts +1 -1
  131. package/dist/types/Coscine.Api.Token/index.d.ts +1 -1
  132. package/dist/types/Coscine.Api.Tree/api.d.ts +1 -1
  133. package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
  134. package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
  135. package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
  136. package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
  137. package/dist/types/Coscine.Api.User/api.d.ts +1 -1
  138. package/dist/types/Coscine.Api.User/base.d.ts +1 -1
  139. package/dist/types/Coscine.Api.User/common.d.ts +1 -1
  140. package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
  141. package/dist/types/Coscine.Api.User/index.d.ts +1 -1
  142. package/dist/types/apis.d.ts +2 -2
  143. package/dist/types/index.d.ts +4 -4
  144. package/package.json +2 -2
package/dist/index.umd.js CHANGED
@@ -1855,7 +1855,7 @@
1855
1855
  var axios = axios$2.exports;
1856
1856
 
1857
1857
  /* tslint:disable */
1858
- const BASE_PATH$c = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.ActivatedFeatures".replace(/\/+$/, "");
1858
+ const BASE_PATH$c = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.ActivatedFeatures".replace(/\/+$/, "");
1859
1859
  /**
1860
1860
  *
1861
1861
  * @export
@@ -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.0.3
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).
@@ -2337,7 +2337,7 @@
2337
2337
  }
2338
2338
 
2339
2339
  /* tslint:disable */
2340
- const BASE_PATH$b = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, "");
2340
+ const BASE_PATH$b = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, "");
2341
2341
  /**
2342
2342
  *
2343
2343
  * @export
@@ -2407,7 +2407,7 @@
2407
2407
  *
2408
2408
  * @export
2409
2409
  */
2410
- const serializeDataIfNeeded$7 = function (value, requestOptions, configuration) {
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$7(updateQuotaParameterObject, localVarRequestOptions, configuration);
2501
+ localVarRequestOptions.data = serializeDataIfNeeded$6(updateQuotaParameterObject, localVarRequestOptions, configuration);
2502
2502
  return {
2503
2503
  url: toPathString$b(localVarUrlObj),
2504
2504
  options: localVarRequestOptions,
@@ -2572,7 +2572,7 @@
2572
2572
  };
2573
2573
 
2574
2574
  /* tslint:disable */
2575
- const BASE_PATH$a = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
2575
+ const BASE_PATH$a = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
2576
2576
  /**
2577
2577
  *
2578
2578
  * @export
@@ -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
@@ -2998,7 +2930,7 @@
2998
2930
  };
2999
2931
 
3000
2932
  /* tslint:disable */
3001
- const BASE_PATH$9 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, "");
2933
+ const BASE_PATH$9 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, "");
3002
2934
  /**
3003
2935
  *
3004
2936
  * @export
@@ -3437,7 +3369,7 @@
3437
3369
  };
3438
3370
 
3439
3371
  /* tslint:disable */
3440
- const BASE_PATH$8 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, "");
3372
+ const BASE_PATH$8 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, "");
3441
3373
  /**
3442
3374
  *
3443
3375
  * @export
@@ -3658,7 +3590,7 @@
3658
3590
  };
3659
3591
 
3660
3592
  /* tslint:disable */
3661
- const BASE_PATH$7 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, "");
3593
+ const BASE_PATH$7 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, "");
3662
3594
  /**
3663
3595
  *
3664
3596
  * @export
@@ -4041,7 +3973,7 @@
4041
3973
  };
4042
3974
 
4043
3975
  /* tslint:disable */
4044
- const BASE_PATH$6 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
3976
+ const BASE_PATH$6 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
4045
3977
  /**
4046
3978
  *
4047
3979
  * @export
@@ -4357,8 +4289,8 @@
4357
4289
  }),
4358
4290
  /**
4359
4291
  *
4360
- * @summary Deletes an invitation.
4361
- * @param {string} invitationId Id of a invitation
4292
+ * @summary Deletes a project invitation.
4293
+ * @param {string} invitationId Id of an invitation
4362
4294
  * @param {*} [options] Override http request option.
4363
4295
  * @throws {RequiredError}
4364
4296
  */
@@ -4571,7 +4503,7 @@
4571
4503
  /**
4572
4504
  *
4573
4505
  * @summary List all invitations of a project.
4574
- * @param {string} projectId Project id of the project
4506
+ * @param {string} projectId Id of the project
4575
4507
  * @param {*} [options] Override http request option.
4576
4508
  * @throws {RequiredError}
4577
4509
  */
@@ -4667,16 +4599,16 @@
4667
4599
  }),
4668
4600
  /**
4669
4601
  *
4670
- * @summary Resolve an invitation for the current user.
4671
- * @param {string} token Token of a invitation
4602
+ * @summary Resolve a project invitation for the current user.
4603
+ * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
4672
4604
  * @param {*} [options] Override http request option.
4673
4605
  * @throws {RequiredError}
4674
4606
  */
4675
- projectResolveInvitation: (token, options = {}) => __awaiter(this, void 0, void 0, function* () {
4676
- // verify required parameter 'token' is not null or undefined
4677
- assertParamExists$5('projectResolveInvitation', 'token', token);
4678
- const localVarPath = `/Project/invitation/resolve/{token}`
4679
- .replace(`{${"token"}}`, encodeURIComponent(String(token)));
4607
+ projectResolveInvitation: (invitationToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
4608
+ // verify required parameter 'invitationToken' is not null or undefined
4609
+ assertParamExists$5('projectResolveInvitation', 'invitationToken', invitationToken);
4610
+ const localVarPath = `/Project/invitation/resolve/{invitationToken}`
4611
+ .replace(`{${"invitationToken"}}`, encodeURIComponent(String(invitationToken)));
4680
4612
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4681
4613
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
4682
4614
  let baseOptions;
@@ -4698,8 +4630,8 @@
4698
4630
  }),
4699
4631
  /**
4700
4632
  *
4701
- * @summary Create and send an invitation to specified mail.
4702
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
4633
+ * @summary Create and send a project invitation to a specified mail.
4634
+ * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
4703
4635
  * @param {*} [options] Override http request option.
4704
4636
  * @throws {RequiredError}
4705
4637
  */
@@ -4873,8 +4805,8 @@
4873
4805
  },
4874
4806
  /**
4875
4807
  *
4876
- * @summary Deletes an invitation.
4877
- * @param {string} invitationId Id of a invitation
4808
+ * @summary Deletes a project invitation.
4809
+ * @param {string} invitationId Id of an invitation
4878
4810
  * @param {*} [options] Override http request option.
4879
4811
  * @throws {RequiredError}
4880
4812
  */
@@ -4964,7 +4896,7 @@
4964
4896
  /**
4965
4897
  *
4966
4898
  * @summary List all invitations of a project.
4967
- * @param {string} projectId Project id of the project
4899
+ * @param {string} projectId Id of the project
4968
4900
  * @param {*} [options] Override http request option.
4969
4901
  * @throws {RequiredError}
4970
4902
  */
@@ -5003,21 +4935,21 @@
5003
4935
  },
5004
4936
  /**
5005
4937
  *
5006
- * @summary Resolve an invitation for the current user.
5007
- * @param {string} token Token of a invitation
4938
+ * @summary Resolve a project invitation for the current user.
4939
+ * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
5008
4940
  * @param {*} [options] Override http request option.
5009
4941
  * @throws {RequiredError}
5010
4942
  */
5011
- projectResolveInvitation(token, options) {
4943
+ projectResolveInvitation(invitationToken, options) {
5012
4944
  return __awaiter(this, void 0, void 0, function* () {
5013
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(token, options);
4945
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(invitationToken, options);
5014
4946
  return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
5015
4947
  });
5016
4948
  },
5017
4949
  /**
5018
4950
  *
5019
- * @summary Create and send an invitation to specified mail.
5020
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
4951
+ * @summary Create and send a project invitation to a specified mail.
4952
+ * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
5021
4953
  * @param {*} [options] Override http request option.
5022
4954
  * @throws {RequiredError}
5023
4955
  */
@@ -5100,8 +5032,8 @@
5100
5032
  },
5101
5033
  /**
5102
5034
  *
5103
- * @summary Deletes an invitation.
5104
- * @param {string} invitationId Id of a invitation
5035
+ * @summary Deletes a project invitation.
5036
+ * @param {string} invitationId Id of an invitation
5105
5037
  * @param {*} [options] Override http request option.
5106
5038
  * @throws {RequiredError}
5107
5039
  */
@@ -5170,7 +5102,7 @@
5170
5102
  /**
5171
5103
  *
5172
5104
  * @summary List all invitations of a project.
5173
- * @param {string} projectId Project id of the project
5105
+ * @param {string} projectId Id of the project
5174
5106
  * @param {*} [options] Override http request option.
5175
5107
  * @throws {RequiredError}
5176
5108
  */
@@ -5200,18 +5132,18 @@
5200
5132
  },
5201
5133
  /**
5202
5134
  *
5203
- * @summary Resolve an invitation for the current user.
5204
- * @param {string} token Token of a invitation
5135
+ * @summary Resolve a project invitation for the current user.
5136
+ * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
5205
5137
  * @param {*} [options] Override http request option.
5206
5138
  * @throws {RequiredError}
5207
5139
  */
5208
- projectResolveInvitation(token, options) {
5209
- return localVarFp.projectResolveInvitation(token, options).then((request) => request(axios, basePath));
5140
+ projectResolveInvitation(invitationToken, options) {
5141
+ return localVarFp.projectResolveInvitation(invitationToken, options).then((request) => request(axios, basePath));
5210
5142
  },
5211
5143
  /**
5212
5144
  *
5213
- * @summary Create and send an invitation to specified mail.
5214
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
5145
+ * @summary Create and send a project invitation to a specified mail.
5146
+ * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
5215
5147
  * @param {*} [options] Override http request option.
5216
5148
  * @throws {RequiredError}
5217
5149
  */
@@ -5979,7 +5911,7 @@
5979
5911
  };
5980
5912
 
5981
5913
  /* tslint:disable */
5982
- const BASE_PATH$5 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, "");
5914
+ const BASE_PATH$5 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, "");
5983
5915
  /**
5984
5916
  *
5985
5917
  * @export
@@ -6280,7 +6212,7 @@
6280
6212
  };
6281
6213
 
6282
6214
  /* tslint:disable */
6283
- const BASE_PATH$4 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Resources".replace(/\/+$/, "");
6215
+ const BASE_PATH$4 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Resources".replace(/\/+$/, "");
6284
6216
  /**
6285
6217
  *
6286
6218
  * @export
@@ -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
@@ -6974,7 +6916,7 @@
6974
6916
  };
6975
6917
 
6976
6918
  /* tslint:disable */
6977
- const BASE_PATH$3 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
6919
+ const BASE_PATH$3 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
6978
6920
 
6979
6921
  /* tslint:disable */
6980
6922
  /**
@@ -7136,7 +7078,7 @@
7136
7078
  };
7137
7079
 
7138
7080
  /* tslint:disable */
7139
- const BASE_PATH$2 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, "");
7081
+ const BASE_PATH$2 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, "");
7140
7082
  /**
7141
7083
  *
7142
7084
  * @export
@@ -7272,6 +7214,33 @@
7272
7214
  options: localVarRequestOptions,
7273
7215
  };
7274
7216
  }),
7217
+ /**
7218
+ *
7219
+ * @summary Get the specified token minumum and maximum validity in days.
7220
+ * @param {*} [options] Override http request option.
7221
+ * @throws {RequiredError}
7222
+ */
7223
+ tokenGetTokenValidityBounds: (options = {}) => __awaiter(this, void 0, void 0, function* () {
7224
+ const localVarPath = `/Token/getValidity`;
7225
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7226
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
7227
+ let baseOptions;
7228
+ if (configuration) {
7229
+ baseOptions = configuration.baseOptions;
7230
+ }
7231
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7232
+ const localVarHeaderParameter = {};
7233
+ const localVarQueryParameter = {};
7234
+ // authentication JWT token required
7235
+ yield setApiKeyToObject$2(localVarHeaderParameter, "Authorization", configuration);
7236
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter, options.query);
7237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7238
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7239
+ return {
7240
+ url: toPathString$2(localVarUrlObj),
7241
+ options: localVarRequestOptions,
7242
+ };
7243
+ }),
7275
7244
  /**
7276
7245
  *
7277
7246
  * @summary Get the specific token values.
@@ -7383,6 +7352,18 @@
7383
7352
  return createRequestFunction$2(localVarAxiosArgs, axios, BASE_PATH$2, configuration);
7384
7353
  });
7385
7354
  },
7355
+ /**
7356
+ *
7357
+ * @summary Get the specified token minumum and maximum validity in days.
7358
+ * @param {*} [options] Override http request option.
7359
+ * @throws {RequiredError}
7360
+ */
7361
+ tokenGetTokenValidityBounds(options) {
7362
+ return __awaiter(this, void 0, void 0, function* () {
7363
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tokenGetTokenValidityBounds(options);
7364
+ return createRequestFunction$2(localVarAxiosArgs, axios, BASE_PATH$2, configuration);
7365
+ });
7366
+ },
7386
7367
  /**
7387
7368
  *
7388
7369
  * @summary Get the specific token values.
@@ -7440,6 +7421,15 @@
7440
7421
  tokenAddToken(addApiTokenParameter, options) {
7441
7422
  return localVarFp.tokenAddToken(addApiTokenParameter, options).then((request) => request(axios, basePath));
7442
7423
  },
7424
+ /**
7425
+ *
7426
+ * @summary Get the specified token minumum and maximum validity in days.
7427
+ * @param {*} [options] Override http request option.
7428
+ * @throws {RequiredError}
7429
+ */
7430
+ tokenGetTokenValidityBounds(options) {
7431
+ return localVarFp.tokenGetTokenValidityBounds(options).then((request) => request(axios, basePath));
7432
+ },
7443
7433
  /**
7444
7434
  *
7445
7435
  * @summary Get the specific token values.
@@ -7473,7 +7463,7 @@
7473
7463
  };
7474
7464
 
7475
7465
  /* tslint:disable */
7476
- const BASE_PATH$1 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
7466
+ const BASE_PATH$1 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
7477
7467
  /**
7478
7468
  *
7479
7469
  * @export
@@ -7706,7 +7696,7 @@
7706
7696
  };
7707
7697
 
7708
7698
  /* tslint:disable */
7709
- const BASE_PATH = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, "");
7699
+ const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, "");
7710
7700
  /**
7711
7701
  *
7712
7702
  * @export
@@ -8554,15 +8544,15 @@
8554
8544
 
8555
8545
  const instance = axios.create();
8556
8546
  const authHeaderKey = 'Authorization';
8557
- const clientCorrolationIdKey = 'X-Coscine-Logging-CorrelationId';
8547
+ const clientCorrelationIdKey = 'X-Coscine-Logging-CorrelationId';
8558
8548
  function setHeader(request) {
8559
8549
  if (typeof coscine !== "undefined") {
8560
8550
  if (typeof coscine.authorization !== "undefined") {
8561
8551
  request.headers.common[authHeaderKey] =
8562
8552
  'Bearer ' + coscine.authorization.bearer;
8563
8553
  }
8564
- if (typeof coscine.clientcorrolation !== "undefined") {
8565
- request.headers.common[clientCorrolationIdKey] = coscine.clientcorrolation.id;
8554
+ if (typeof coscine.clientcorrelation !== "undefined") {
8555
+ request.headers.common[clientCorrelationIdKey] = coscine.clientcorrelation.id;
8566
8556
  }
8567
8557
  }
8568
8558
  if (typeof window !== 'undefined') {
@@ -8572,46 +8562,21 @@
8572
8562
  request.headers.common[authHeaderKey] =
8573
8563
  'Bearer ' + localStorageToken;
8574
8564
  }
8575
- const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrolation.id");
8565
+ const localStorageClientCorrelation = localStorage.getItem("coscine.clientcorrelation.id");
8576
8566
  if (localStorageClientCorrelation) {
8577
- request.headers.common[clientCorrolationIdKey] = localStorageClientCorrelation;
8578
- }
8579
- }
8580
- }
8581
- function increaseLoading() {
8582
- if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
8583
- coscine.loading.counter++;
8584
- }
8585
- if (typeof window !== 'undefined') {
8586
- const localStorageLoading = localStorage.getItem("coscine.loading.counter");
8587
- if (localStorageLoading) {
8588
- localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) + 1));
8589
- }
8590
- }
8591
- }
8592
- function decreaseLoading() {
8593
- if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
8594
- coscine.loading.counter--;
8595
- }
8596
- if (typeof window !== 'undefined') {
8597
- const localStorageLoading = localStorage.getItem("coscine.loading.counter");
8598
- if (localStorageLoading) {
8599
- localStorage.setItem("coscine.loading.counter", String(Number(localStorageLoading) - 1));
8567
+ request.headers.common[clientCorrelationIdKey] = localStorageClientCorrelation;
8600
8568
  }
8601
8569
  }
8602
8570
  }
8603
8571
  instance.interceptors.request.use((request) => {
8604
8572
  setHeader(request);
8605
- increaseLoading();
8606
8573
  return request;
8607
8574
  }, (error) => {
8608
8575
  return Promise.reject(error);
8609
8576
  });
8610
8577
  instance.interceptors.response.use((response) => {
8611
- decreaseLoading();
8612
8578
  return response;
8613
8579
  }, (error) => {
8614
- decreaseLoading();
8615
8580
  return Promise.reject(error);
8616
8581
  });
8617
8582