@coscine/api-client 1.4.0 → 1.5.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 (31) hide show
  1. package/dist/index.js +83 -29
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.js +82 -30
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/lib/Coscine.Api.Project/api.js +74 -9
  6. package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
  7. package/dist/lib/Coscine.Api.Project/base.js +2 -2
  8. package/dist/lib/Coscine.Api.Project/common.js +1 -1
  9. package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
  10. package/dist/lib/Coscine.Api.Project/index.js +1 -1
  11. package/dist/lib/Coscine.Api.Resources/api.js +29 -29
  12. package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
  13. package/dist/lib/Coscine.Api.Resources/base.js +1 -1
  14. package/dist/lib/Coscine.Api.Resources/common.js +1 -1
  15. package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
  16. package/dist/lib/Coscine.Api.Resources/index.js +1 -1
  17. package/dist/lib/index.js +1 -3
  18. package/dist/lib/index.js.map +1 -1
  19. package/dist/types/Coscine.Api.Project/api.d.ts +45 -12
  20. package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
  21. package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
  22. package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
  23. package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
  24. package/dist/types/Coscine.Api.Resources/api.d.ts +176 -38
  25. package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
  26. package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
  27. package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
  28. package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
  29. package/dist/types/apis.d.ts +5 -4
  30. package/dist/types/index.d.ts +10 -11
  31. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
4038
+ const BASE_PATH$6 = "https://d-sp12.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
4039
4039
  /**
4040
4040
  *
4041
4041
  * @export
@@ -4287,6 +4287,37 @@ const LicenseApiFactory = function (configuration, basePath, axios) {
4287
4287
  */
4288
4288
  const ProjectApiAxiosParamCreator = function (configuration) {
4289
4289
  return {
4290
+ /**
4291
+ *
4292
+ * @summary Call to analytics logger.
4293
+ * @param {string} projectId Project id of the project
4294
+ * @param {*} [options] Override http request option.
4295
+ * @throws {RequiredError}
4296
+ */
4297
+ projectCreateApplicationProfile: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
4298
+ // verify required parameter 'projectId' is not null or undefined
4299
+ assertParamExists$5('projectCreateApplicationProfile', 'projectId', projectId);
4300
+ const localVarPath = `/Project/{projectId}/-/create-profile`
4301
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
4302
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4303
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
4304
+ let baseOptions;
4305
+ if (configuration) {
4306
+ baseOptions = configuration.baseOptions;
4307
+ }
4308
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4309
+ const localVarHeaderParameter = {};
4310
+ const localVarQueryParameter = {};
4311
+ // authentication JWT token required
4312
+ yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
4313
+ setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
4314
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4315
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4316
+ return {
4317
+ url: toPathString$6(localVarUrlObj),
4318
+ options: localVarRequestOptions,
4319
+ };
4320
+ }),
4290
4321
  /**
4291
4322
  *
4292
4323
  * @summary Deletes the selected project
@@ -4351,8 +4382,8 @@ const ProjectApiAxiosParamCreator = function (configuration) {
4351
4382
  }),
4352
4383
  /**
4353
4384
  *
4354
- * @summary This returns the the project if the user has access to it
4355
- * @param {string} id Id of the resource
4385
+ * @summary This returns the project if the user has access to it
4386
+ * @param {string} id Id of the project
4356
4387
  * @param {*} [options] Override http request option.
4357
4388
  * @throws {RequiredError}
4358
4389
  */
@@ -4767,6 +4798,19 @@ const ProjectApiAxiosParamCreator = function (configuration) {
4767
4798
  const ProjectApiFp = function (configuration) {
4768
4799
  const localVarAxiosParamCreator = ProjectApiAxiosParamCreator(configuration);
4769
4800
  return {
4801
+ /**
4802
+ *
4803
+ * @summary Call to analytics logger.
4804
+ * @param {string} projectId Project id of the project
4805
+ * @param {*} [options] Override http request option.
4806
+ * @throws {RequiredError}
4807
+ */
4808
+ projectCreateApplicationProfile(projectId, options) {
4809
+ return __awaiter(this, void 0, void 0, function* () {
4810
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.projectCreateApplicationProfile(projectId, options);
4811
+ return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
4812
+ });
4813
+ },
4770
4814
  /**
4771
4815
  *
4772
4816
  * @summary Deletes the selected project
@@ -4795,8 +4839,8 @@ const ProjectApiFp = function (configuration) {
4795
4839
  },
4796
4840
  /**
4797
4841
  *
4798
- * @summary This returns the the project if the user has access to it
4799
- * @param {string} id Id of the resource
4842
+ * @summary This returns the project if the user has access to it
4843
+ * @param {string} id Id of the project
4800
4844
  * @param {*} [options] Override http request option.
4801
4845
  * @throws {RequiredError}
4802
4846
  */
@@ -4972,6 +5016,16 @@ const ProjectApiFp = function (configuration) {
4972
5016
  const ProjectApiFactory = function (configuration, basePath, axios) {
4973
5017
  const localVarFp = ProjectApiFp(configuration);
4974
5018
  return {
5019
+ /**
5020
+ *
5021
+ * @summary Call to analytics logger.
5022
+ * @param {string} projectId Project id of the project
5023
+ * @param {*} [options] Override http request option.
5024
+ * @throws {RequiredError}
5025
+ */
5026
+ projectCreateApplicationProfile(projectId, options) {
5027
+ return localVarFp.projectCreateApplicationProfile(projectId, options).then((request) => request(axios, basePath));
5028
+ },
4975
5029
  /**
4976
5030
  *
4977
5031
  * @summary Deletes the selected project
@@ -4994,8 +5048,8 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
4994
5048
  },
4995
5049
  /**
4996
5050
  *
4997
- * @summary This returns the the project if the user has access to it
4998
- * @param {string} id Id of the resource
5051
+ * @summary This returns the project if the user has access to it
5052
+ * @param {string} id Id of the project
4999
5053
  * @param {*} [options] Override http request option.
5000
5054
  * @throws {RequiredError}
5001
5055
  */
@@ -6361,7 +6415,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
6361
6415
  /**
6362
6416
  *
6363
6417
  * @summary This deletes the specified resource.
6364
- * @param {string} id A guid as a string that identifies the resource.
6418
+ * @param {string} id A GUID as a string that identifies the resource.
6365
6419
  * @param {*} [options] Override http request option.
6366
6420
  * @throws {RequiredError}
6367
6421
  */
@@ -6392,7 +6446,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
6392
6446
  /**
6393
6447
  *
6394
6448
  * @summary This returns the resource for the specified id.
6395
- * @param {string} id A guid as a string that identifies the resource.
6449
+ * @param {string} id A GUID as a string that identifies the resource.
6396
6450
  * @param {*} [options] Override http request option.
6397
6451
  * @throws {RequiredError}
6398
6452
  */
@@ -6450,7 +6504,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
6450
6504
  /**
6451
6505
  *
6452
6506
  * @summary This returns if the current user is the creator of the specified resource.
6453
- * @param {string} id A guid as a string that identifies the resource.
6507
+ * @param {string} id A GUID as a string that identifies the resource.
6454
6508
  * @param {*} [options] Override http request option.
6455
6509
  * @throws {RequiredError}
6456
6510
  */
@@ -6480,8 +6534,8 @@ const ResourceApiAxiosParamCreator = function (configuration) {
6480
6534
  }),
6481
6535
  /**
6482
6536
  *
6483
- * @summary This returns the readonly status of the given resource.
6484
- * @param {string} id A guid as a string that identifies the resource.
6537
+ * @summary This returns the read only status of the given resource.
6538
+ * @param {string} id A GUID as a string that identifies the resource.
6485
6539
  * @param {boolean} [status] A boolean value that specifies if the resource is archived.
6486
6540
  * @param {*} [options] Override http request option.
6487
6541
  * @throws {RequiredError}
@@ -6516,7 +6570,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
6516
6570
  /**
6517
6571
  *
6518
6572
  * @summary This stores the provided resource object for the specified project.
6519
- * @param {string} projectId A guid as a string that identifies the resource.
6573
+ * @param {string} projectId A GUID as a string that identifies the resource.
6520
6574
  * @param {ResourceObject} resourceObject Entry representing the user
6521
6575
  * @param {*} [options] Override http request option.
6522
6576
  * @throws {RequiredError}
@@ -6552,7 +6606,7 @@ const ResourceApiAxiosParamCreator = function (configuration) {
6552
6606
  /**
6553
6607
  *
6554
6608
  * @summary This returns if the current user is the creator of the specified resource.
6555
- * @param {string} id A guid as a string that identifies the resource.
6609
+ * @param {string} id A GUID as a string that identifies the resource.
6556
6610
  * @param {ResourceObject} resourceObject Entry representing the user
6557
6611
  * @param {*} [options] Override http request option.
6558
6612
  * @throws {RequiredError}
@@ -6597,7 +6651,7 @@ const ResourceApiFp = function (configuration) {
6597
6651
  /**
6598
6652
  *
6599
6653
  * @summary This deletes the specified resource.
6600
- * @param {string} id A guid as a string that identifies the resource.
6654
+ * @param {string} id A GUID as a string that identifies the resource.
6601
6655
  * @param {*} [options] Override http request option.
6602
6656
  * @throws {RequiredError}
6603
6657
  */
@@ -6610,7 +6664,7 @@ const ResourceApiFp = function (configuration) {
6610
6664
  /**
6611
6665
  *
6612
6666
  * @summary This returns the resource for the specified id.
6613
- * @param {string} id A guid as a string that identifies the resource.
6667
+ * @param {string} id A GUID as a string that identifies the resource.
6614
6668
  * @param {*} [options] Override http request option.
6615
6669
  * @throws {RequiredError}
6616
6670
  */
@@ -6635,7 +6689,7 @@ const ResourceApiFp = function (configuration) {
6635
6689
  /**
6636
6690
  *
6637
6691
  * @summary This returns if the current user is the creator of the specified resource.
6638
- * @param {string} id A guid as a string that identifies the resource.
6692
+ * @param {string} id A GUID as a string that identifies the resource.
6639
6693
  * @param {*} [options] Override http request option.
6640
6694
  * @throws {RequiredError}
6641
6695
  */
@@ -6647,8 +6701,8 @@ const ResourceApiFp = function (configuration) {
6647
6701
  },
6648
6702
  /**
6649
6703
  *
6650
- * @summary This returns the readonly status of the given resource.
6651
- * @param {string} id A guid as a string that identifies the resource.
6704
+ * @summary This returns the read only status of the given resource.
6705
+ * @param {string} id A GUID as a string that identifies the resource.
6652
6706
  * @param {boolean} [status] A boolean value that specifies if the resource is archived.
6653
6707
  * @param {*} [options] Override http request option.
6654
6708
  * @throws {RequiredError}
@@ -6662,7 +6716,7 @@ const ResourceApiFp = function (configuration) {
6662
6716
  /**
6663
6717
  *
6664
6718
  * @summary This stores the provided resource object for the specified project.
6665
- * @param {string} projectId A guid as a string that identifies the resource.
6719
+ * @param {string} projectId A GUID as a string that identifies the resource.
6666
6720
  * @param {ResourceObject} resourceObject Entry representing the user
6667
6721
  * @param {*} [options] Override http request option.
6668
6722
  * @throws {RequiredError}
@@ -6676,7 +6730,7 @@ const ResourceApiFp = function (configuration) {
6676
6730
  /**
6677
6731
  *
6678
6732
  * @summary This returns if the current user is the creator of the specified resource.
6679
- * @param {string} id A guid as a string that identifies the resource.
6733
+ * @param {string} id A GUID as a string that identifies the resource.
6680
6734
  * @param {ResourceObject} resourceObject Entry representing the user
6681
6735
  * @param {*} [options] Override http request option.
6682
6736
  * @throws {RequiredError}
@@ -6699,7 +6753,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
6699
6753
  /**
6700
6754
  *
6701
6755
  * @summary This deletes the specified resource.
6702
- * @param {string} id A guid as a string that identifies the resource.
6756
+ * @param {string} id A GUID as a string that identifies the resource.
6703
6757
  * @param {*} [options] Override http request option.
6704
6758
  * @throws {RequiredError}
6705
6759
  */
@@ -6709,7 +6763,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
6709
6763
  /**
6710
6764
  *
6711
6765
  * @summary This returns the resource for the specified id.
6712
- * @param {string} id A guid as a string that identifies the resource.
6766
+ * @param {string} id A GUID as a string that identifies the resource.
6713
6767
  * @param {*} [options] Override http request option.
6714
6768
  * @throws {RequiredError}
6715
6769
  */
@@ -6728,7 +6782,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
6728
6782
  /**
6729
6783
  *
6730
6784
  * @summary This returns if the current user is the creator of the specified resource.
6731
- * @param {string} id A guid as a string that identifies the resource.
6785
+ * @param {string} id A GUID as a string that identifies the resource.
6732
6786
  * @param {*} [options] Override http request option.
6733
6787
  * @throws {RequiredError}
6734
6788
  */
@@ -6737,8 +6791,8 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
6737
6791
  },
6738
6792
  /**
6739
6793
  *
6740
- * @summary This returns the readonly status of the given resource.
6741
- * @param {string} id A guid as a string that identifies the resource.
6794
+ * @summary This returns the read only status of the given resource.
6795
+ * @param {string} id A GUID as a string that identifies the resource.
6742
6796
  * @param {boolean} [status] A boolean value that specifies if the resource is archived.
6743
6797
  * @param {*} [options] Override http request option.
6744
6798
  * @throws {RequiredError}
@@ -6749,7 +6803,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
6749
6803
  /**
6750
6804
  *
6751
6805
  * @summary This stores the provided resource object for the specified project.
6752
- * @param {string} projectId A guid as a string that identifies the resource.
6806
+ * @param {string} projectId A GUID as a string that identifies the resource.
6753
6807
  * @param {ResourceObject} resourceObject Entry representing the user
6754
6808
  * @param {*} [options] Override http request option.
6755
6809
  * @throws {RequiredError}
@@ -6760,7 +6814,7 @@ const ResourceApiFactory = function (configuration, basePath, axios) {
6760
6814
  /**
6761
6815
  *
6762
6816
  * @summary This returns if the current user is the creator of the specified resource.
6763
- * @param {string} id A guid as a string that identifies the resource.
6817
+ * @param {string} id A GUID as a string that identifies the resource.
6764
6818
  * @param {ResourceObject} resourceObject Entry representing the user
6765
6819
  * @param {*} [options] Override http request option.
6766
6820
  * @throws {RequiredError}
@@ -8616,5 +8670,5 @@ const TreeApi = apis.TreeApi;
8616
8670
  const UserApi = apis.UserApi;
8617
8671
  const VisibilityApi = apis.VisibilityApi;
8618
8672
 
8619
- export { ActivatedFeaturesApi, AdminApi, BlobApi, ContactChangeApi, DisciplineApi, LanguageApi, LicenseApi, MetadataApi, NoticeApi, OrganizationApi, ProjectApi, ProjectRoleApi, QuotaApi, ResourceApi, ResourceTypeApi, RoleApi, SearchApi, SemanticSearchApi, SubProjectApi, TOSApi, TitleApi, TokenApi, TreeApi, UserApi, VisibilityApi, implementations as apiImplementations, instance as axiosInstance, apis as default };
8673
+ export { ActivatedFeaturesApi, AdminApi, BlobApi, ContactChangeApi, DisciplineApi, LanguageApi, LicenseApi, MetadataApi, NoticeApi, OrganizationApi, ProjectApi, ProjectRoleApi, QuotaApi, ResourceApi, ResourceTypeApi, RoleApi, SearchApi, SemanticSearchApi, SubProjectApi, TOSApi, TitleApi, TokenApi, TreeApi, UserApi, VisibilityApi, apis as default };
8620
8674
  //# sourceMappingURL=index.js.map