@coscine/api-client 1.5.1 → 1.5.2

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 (40) hide show
  1. package/dist/index.js +91 -43
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.js +91 -43
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/lib/Coscine.Api.ActivatedFeatures/base.js +1 -1
  6. package/dist/lib/Coscine.Api.Admin/base.js +1 -1
  7. package/dist/lib/Coscine.Api.Blob/base.js +1 -1
  8. package/dist/lib/Coscine.Api.Metadata/base.js +1 -1
  9. package/dist/lib/Coscine.Api.Notices/base.js +1 -1
  10. package/dist/lib/Coscine.Api.Organization/base.js +1 -1
  11. package/dist/lib/Coscine.Api.Project/api.js +40 -40
  12. package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
  13. package/dist/lib/Coscine.Api.Project/base.js +2 -2
  14. package/dist/lib/Coscine.Api.Project/common.js +1 -1
  15. package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
  16. package/dist/lib/Coscine.Api.Project/index.js +1 -1
  17. package/dist/lib/Coscine.Api.Quota/base.js +1 -1
  18. package/dist/lib/Coscine.Api.Resources/base.js +1 -1
  19. package/dist/lib/Coscine.Api.Search/base.js +1 -1
  20. package/dist/lib/Coscine.Api.Token/api.js +59 -1
  21. package/dist/lib/Coscine.Api.Token/api.js.map +1 -1
  22. package/dist/lib/Coscine.Api.Token/base.js +2 -2
  23. package/dist/lib/Coscine.Api.Token/common.js +1 -1
  24. package/dist/lib/Coscine.Api.Token/configuration.js +1 -1
  25. package/dist/lib/Coscine.Api.Token/index.js +1 -1
  26. package/dist/lib/Coscine.Api.Tree/base.js +1 -1
  27. package/dist/lib/Coscine.Api.User/base.js +1 -1
  28. package/dist/types/Coscine.Api.Project/api.d.ts +33 -33
  29. package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
  30. package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
  31. package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
  32. package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
  33. package/dist/types/Coscine.Api.Token/api.d.ts +49 -1
  34. package/dist/types/Coscine.Api.Token/base.d.ts +1 -1
  35. package/dist/types/Coscine.Api.Token/common.d.ts +1 -1
  36. package/dist/types/Coscine.Api.Token/configuration.d.ts +1 -1
  37. package/dist/types/Coscine.Api.Token/index.d.ts +1 -1
  38. package/dist/types/apis.d.ts +2 -1
  39. package/dist/types/index.d.ts +4 -2
  40. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1849,7 +1849,7 @@ axios$2.exports.default = axios$1;
1849
1849
  var axios = axios$2.exports;
1850
1850
 
1851
1851
  /* tslint:disable */
1852
- const BASE_PATH$c = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.ActivatedFeatures".replace(/\/+$/, "");
1852
+ const BASE_PATH$c = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.ActivatedFeatures".replace(/\/+$/, "");
1853
1853
  /**
1854
1854
  *
1855
1855
  * @export
@@ -2331,7 +2331,7 @@ class Configuration {
2331
2331
  }
2332
2332
 
2333
2333
  /* tslint:disable */
2334
- const BASE_PATH$b = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, "");
2334
+ const BASE_PATH$b = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, "");
2335
2335
  /**
2336
2336
  *
2337
2337
  * @export
@@ -2566,7 +2566,7 @@ const AdminApiFactory = function (configuration, basePath, axios) {
2566
2566
  };
2567
2567
 
2568
2568
  /* tslint:disable */
2569
- const BASE_PATH$a = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
2569
+ const BASE_PATH$a = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
2570
2570
  /**
2571
2571
  *
2572
2572
  * @export
@@ -2992,7 +2992,7 @@ const BlobApiFactory = function (configuration, basePath, axios) {
2992
2992
  };
2993
2993
 
2994
2994
  /* tslint:disable */
2995
- const BASE_PATH$9 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, "");
2995
+ const BASE_PATH$9 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, "");
2996
2996
  /**
2997
2997
  *
2998
2998
  * @export
@@ -3431,7 +3431,7 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
3431
3431
  };
3432
3432
 
3433
3433
  /* tslint:disable */
3434
- const BASE_PATH$8 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, "");
3434
+ const BASE_PATH$8 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, "");
3435
3435
  /**
3436
3436
  *
3437
3437
  * @export
@@ -3652,7 +3652,7 @@ const NoticeApiFactory = function (configuration, basePath, axios) {
3652
3652
  };
3653
3653
 
3654
3654
  /* tslint:disable */
3655
- const BASE_PATH$7 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, "");
3655
+ const BASE_PATH$7 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, "");
3656
3656
  /**
3657
3657
  *
3658
3658
  * @export
@@ -4035,7 +4035,7 @@ const OrganizationApiFactory = function (configuration, basePath, axios) {
4035
4035
  };
4036
4036
 
4037
4037
  /* tslint:disable */
4038
- const BASE_PATH$6 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
4038
+ const BASE_PATH$6 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
4039
4039
  /**
4040
4040
  *
4041
4041
  * @export
@@ -4351,8 +4351,8 @@ const ProjectApiAxiosParamCreator = function (configuration) {
4351
4351
  }),
4352
4352
  /**
4353
4353
  *
4354
- * @summary Deletes an invitation.
4355
- * @param {string} invitationId Id of a invitation
4354
+ * @summary Deletes a project invitation.
4355
+ * @param {string} invitationId Id of an invitation
4356
4356
  * @param {*} [options] Override http request option.
4357
4357
  * @throws {RequiredError}
4358
4358
  */
@@ -4565,7 +4565,7 @@ const ProjectApiAxiosParamCreator = function (configuration) {
4565
4565
  /**
4566
4566
  *
4567
4567
  * @summary List all invitations of a project.
4568
- * @param {string} projectId Project id of the project
4568
+ * @param {string} projectId Id of the project
4569
4569
  * @param {*} [options] Override http request option.
4570
4570
  * @throws {RequiredError}
4571
4571
  */
@@ -4661,16 +4661,16 @@ const ProjectApiAxiosParamCreator = function (configuration) {
4661
4661
  }),
4662
4662
  /**
4663
4663
  *
4664
- * @summary Resolve an invitation for the current user.
4665
- * @param {string} token Token of a invitation
4664
+ * @summary Resolve a project invitation for the current user.
4665
+ * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
4666
4666
  * @param {*} [options] Override http request option.
4667
4667
  * @throws {RequiredError}
4668
4668
  */
4669
- projectResolveInvitation: (token, options = {}) => __awaiter(this, void 0, void 0, function* () {
4670
- // verify required parameter 'token' is not null or undefined
4671
- assertParamExists$5('projectResolveInvitation', 'token', token);
4672
- const localVarPath = `/Project/invitation/resolve/{token}`
4673
- .replace(`{${"token"}}`, encodeURIComponent(String(token)));
4669
+ projectResolveInvitation: (invitationToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
4670
+ // verify required parameter 'invitationToken' is not null or undefined
4671
+ assertParamExists$5('projectResolveInvitation', 'invitationToken', invitationToken);
4672
+ const localVarPath = `/Project/invitation/resolve/{invitationToken}`
4673
+ .replace(`{${"invitationToken"}}`, encodeURIComponent(String(invitationToken)));
4674
4674
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4675
4675
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
4676
4676
  let baseOptions;
@@ -4692,8 +4692,8 @@ const ProjectApiAxiosParamCreator = function (configuration) {
4692
4692
  }),
4693
4693
  /**
4694
4694
  *
4695
- * @summary Create and send an invitation to specified mail.
4696
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
4695
+ * @summary Create and send a project invitation to a specified mail.
4696
+ * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
4697
4697
  * @param {*} [options] Override http request option.
4698
4698
  * @throws {RequiredError}
4699
4699
  */
@@ -4867,8 +4867,8 @@ const ProjectApiFp = function (configuration) {
4867
4867
  },
4868
4868
  /**
4869
4869
  *
4870
- * @summary Deletes an invitation.
4871
- * @param {string} invitationId Id of a invitation
4870
+ * @summary Deletes a project invitation.
4871
+ * @param {string} invitationId Id of an invitation
4872
4872
  * @param {*} [options] Override http request option.
4873
4873
  * @throws {RequiredError}
4874
4874
  */
@@ -4958,7 +4958,7 @@ const ProjectApiFp = function (configuration) {
4958
4958
  /**
4959
4959
  *
4960
4960
  * @summary List all invitations of a project.
4961
- * @param {string} projectId Project id of the project
4961
+ * @param {string} projectId Id of the project
4962
4962
  * @param {*} [options] Override http request option.
4963
4963
  * @throws {RequiredError}
4964
4964
  */
@@ -4997,21 +4997,21 @@ const ProjectApiFp = function (configuration) {
4997
4997
  },
4998
4998
  /**
4999
4999
  *
5000
- * @summary Resolve an invitation for the current user.
5001
- * @param {string} token Token of a invitation
5000
+ * @summary Resolve a project invitation for the current user.
5001
+ * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
5002
5002
  * @param {*} [options] Override http request option.
5003
5003
  * @throws {RequiredError}
5004
5004
  */
5005
- projectResolveInvitation(token, options) {
5005
+ projectResolveInvitation(invitationToken, options) {
5006
5006
  return __awaiter(this, void 0, void 0, function* () {
5007
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(token, options);
5007
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(invitationToken, options);
5008
5008
  return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
5009
5009
  });
5010
5010
  },
5011
5011
  /**
5012
5012
  *
5013
- * @summary Create and send an invitation to specified mail.
5014
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
5013
+ * @summary Create and send a project invitation to a specified mail.
5014
+ * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
5015
5015
  * @param {*} [options] Override http request option.
5016
5016
  * @throws {RequiredError}
5017
5017
  */
@@ -5094,8 +5094,8 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
5094
5094
  },
5095
5095
  /**
5096
5096
  *
5097
- * @summary Deletes an invitation.
5098
- * @param {string} invitationId Id of a invitation
5097
+ * @summary Deletes a project invitation.
5098
+ * @param {string} invitationId Id of an invitation
5099
5099
  * @param {*} [options] Override http request option.
5100
5100
  * @throws {RequiredError}
5101
5101
  */
@@ -5164,7 +5164,7 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
5164
5164
  /**
5165
5165
  *
5166
5166
  * @summary List all invitations of a project.
5167
- * @param {string} projectId Project id of the project
5167
+ * @param {string} projectId Id of the project
5168
5168
  * @param {*} [options] Override http request option.
5169
5169
  * @throws {RequiredError}
5170
5170
  */
@@ -5194,18 +5194,18 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
5194
5194
  },
5195
5195
  /**
5196
5196
  *
5197
- * @summary Resolve an invitation for the current user.
5198
- * @param {string} token Token of a invitation
5197
+ * @summary Resolve a project invitation for the current user.
5198
+ * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
5199
5199
  * @param {*} [options] Override http request option.
5200
5200
  * @throws {RequiredError}
5201
5201
  */
5202
- projectResolveInvitation(token, options) {
5203
- return localVarFp.projectResolveInvitation(token, options).then((request) => request(axios, basePath));
5202
+ projectResolveInvitation(invitationToken, options) {
5203
+ return localVarFp.projectResolveInvitation(invitationToken, options).then((request) => request(axios, basePath));
5204
5204
  },
5205
5205
  /**
5206
5206
  *
5207
- * @summary Create and send an invitation to specified mail.
5208
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation
5207
+ * @summary Create and send a project invitation to a specified mail.
5208
+ * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
5209
5209
  * @param {*} [options] Override http request option.
5210
5210
  * @throws {RequiredError}
5211
5211
  */
@@ -5973,7 +5973,7 @@ const VisibilityApiFactory = function (configuration, basePath, axios) {
5973
5973
  };
5974
5974
 
5975
5975
  /* tslint:disable */
5976
- const BASE_PATH$5 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, "");
5976
+ const BASE_PATH$5 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, "");
5977
5977
  /**
5978
5978
  *
5979
5979
  * @export
@@ -6274,7 +6274,7 @@ const QuotaApiFactory = function (configuration, basePath, axios) {
6274
6274
  };
6275
6275
 
6276
6276
  /* tslint:disable */
6277
- const BASE_PATH$4 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Resources".replace(/\/+$/, "");
6277
+ const BASE_PATH$4 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Resources".replace(/\/+$/, "");
6278
6278
  /**
6279
6279
  *
6280
6280
  * @export
@@ -6968,7 +6968,7 @@ const ResourceTypeApiFactory = function (configuration, basePath, axios) {
6968
6968
  };
6969
6969
 
6970
6970
  /* tslint:disable */
6971
- const BASE_PATH$3 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
6971
+ const BASE_PATH$3 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
6972
6972
 
6973
6973
  /* tslint:disable */
6974
6974
  /**
@@ -7130,7 +7130,7 @@ const SemanticSearchApiFactory = function (configuration, basePath, axios) {
7130
7130
  };
7131
7131
 
7132
7132
  /* tslint:disable */
7133
- const BASE_PATH$2 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, "");
7133
+ const BASE_PATH$2 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, "");
7134
7134
  /**
7135
7135
  *
7136
7136
  * @export
@@ -7266,6 +7266,33 @@ const TokenApiAxiosParamCreator = function (configuration) {
7266
7266
  options: localVarRequestOptions,
7267
7267
  };
7268
7268
  }),
7269
+ /**
7270
+ *
7271
+ * @summary Get the specified token minumum and maximum validity in days.
7272
+ * @param {*} [options] Override http request option.
7273
+ * @throws {RequiredError}
7274
+ */
7275
+ tokenGetTokenValidityBounds: (options = {}) => __awaiter(this, void 0, void 0, function* () {
7276
+ const localVarPath = `/Token/getValidity`;
7277
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7278
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
7279
+ let baseOptions;
7280
+ if (configuration) {
7281
+ baseOptions = configuration.baseOptions;
7282
+ }
7283
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7284
+ const localVarHeaderParameter = {};
7285
+ const localVarQueryParameter = {};
7286
+ // authentication JWT token required
7287
+ yield setApiKeyToObject$2(localVarHeaderParameter, "Authorization", configuration);
7288
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter, options.query);
7289
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7290
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7291
+ return {
7292
+ url: toPathString$2(localVarUrlObj),
7293
+ options: localVarRequestOptions,
7294
+ };
7295
+ }),
7269
7296
  /**
7270
7297
  *
7271
7298
  * @summary Get the specific token values.
@@ -7377,6 +7404,18 @@ const TokenApiFp = function (configuration) {
7377
7404
  return createRequestFunction$2(localVarAxiosArgs, axios, BASE_PATH$2, configuration);
7378
7405
  });
7379
7406
  },
7407
+ /**
7408
+ *
7409
+ * @summary Get the specified token minumum and maximum validity in days.
7410
+ * @param {*} [options] Override http request option.
7411
+ * @throws {RequiredError}
7412
+ */
7413
+ tokenGetTokenValidityBounds(options) {
7414
+ return __awaiter(this, void 0, void 0, function* () {
7415
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tokenGetTokenValidityBounds(options);
7416
+ return createRequestFunction$2(localVarAxiosArgs, axios, BASE_PATH$2, configuration);
7417
+ });
7418
+ },
7380
7419
  /**
7381
7420
  *
7382
7421
  * @summary Get the specific token values.
@@ -7434,6 +7473,15 @@ const TokenApiFactory = function (configuration, basePath, axios) {
7434
7473
  tokenAddToken(addApiTokenParameter, options) {
7435
7474
  return localVarFp.tokenAddToken(addApiTokenParameter, options).then((request) => request(axios, basePath));
7436
7475
  },
7476
+ /**
7477
+ *
7478
+ * @summary Get the specified token minumum and maximum validity in days.
7479
+ * @param {*} [options] Override http request option.
7480
+ * @throws {RequiredError}
7481
+ */
7482
+ tokenGetTokenValidityBounds(options) {
7483
+ return localVarFp.tokenGetTokenValidityBounds(options).then((request) => request(axios, basePath));
7484
+ },
7437
7485
  /**
7438
7486
  *
7439
7487
  * @summary Get the specific token values.
@@ -7467,7 +7515,7 @@ const TokenApiFactory = function (configuration, basePath, axios) {
7467
7515
  };
7468
7516
 
7469
7517
  /* tslint:disable */
7470
- const BASE_PATH$1 = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
7518
+ const BASE_PATH$1 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
7471
7519
  /**
7472
7520
  *
7473
7521
  * @export
@@ -7700,7 +7748,7 @@ const TreeApiFactory = function (configuration, basePath, axios) {
7700
7748
  };
7701
7749
 
7702
7750
  /* tslint:disable */
7703
- const BASE_PATH = "https://d-sp10.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, "");
7751
+ const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, "");
7704
7752
  /**
7705
7753
  *
7706
7754
  * @export