@coscine/api-client 2.6.0 → 2.7.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 (53) hide show
  1. package/dist/index.js +232 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.js +232 -0
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/lib/Coscine.Api.Project/api.js +1 -1
  6. package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
  7. package/dist/lib/Coscine.Api.Project/base.js +1 -1
  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 +281 -2
  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/Coscine.Api.Tree/api.js +1 -1
  18. package/dist/lib/Coscine.Api.Tree/base.js +1 -1
  19. package/dist/lib/Coscine.Api.Tree/common.js +1 -1
  20. package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
  21. package/dist/lib/Coscine.Api.Tree/index.js +1 -1
  22. package/dist/lib/Coscine.Api.User/api.js +1 -1
  23. package/dist/lib/Coscine.Api.User/base.js +1 -1
  24. package/dist/lib/Coscine.Api.User/common.js +1 -1
  25. package/dist/lib/Coscine.Api.User/configuration.js +1 -1
  26. package/dist/lib/Coscine.Api.User/index.js +1 -1
  27. package/dist/lib/apis.js +23 -21
  28. package/dist/lib/apis.js.map +1 -1
  29. package/dist/lib/index.js +2 -1
  30. package/dist/lib/index.js.map +1 -1
  31. package/dist/types/Coscine.Api.Project/api.d.ts +31 -1
  32. package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
  33. package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
  34. package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
  35. package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
  36. package/dist/types/Coscine.Api.Resources/api.d.ts +730 -2
  37. package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
  38. package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
  39. package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
  40. package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
  41. package/dist/types/Coscine.Api.Tree/api.d.ts +1 -1
  42. package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
  43. package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
  44. package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
  45. package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
  46. package/dist/types/Coscine.Api.User/api.d.ts +1 -1
  47. package/dist/types/Coscine.Api.User/base.d.ts +1 -1
  48. package/dist/types/Coscine.Api.User/common.d.ts +1 -1
  49. package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
  50. package/dist/types/Coscine.Api.User/index.d.ts +1 -1
  51. package/dist/types/apis.d.ts +5 -0
  52. package/dist/types/index.d.ts +10 -0
  53. package/package.json +2 -9
package/dist/index.umd.js CHANGED
@@ -5623,6 +5623,17 @@
5623
5623
  };
5624
5624
 
5625
5625
  /* tslint:disable */
5626
+ /**
5627
+ *
5628
+ * @export
5629
+ * @enum {string}
5630
+ */
5631
+ var ProjectVisibilityLevel;
5632
+ (function (ProjectVisibilityLevel) {
5633
+ ProjectVisibilityLevel[ProjectVisibilityLevel["NUMBER_0"] = 0] = "NUMBER_0";
5634
+ ProjectVisibilityLevel[ProjectVisibilityLevel["NUMBER_1"] = 1] = "NUMBER_1";
5635
+ ProjectVisibilityLevel[ProjectVisibilityLevel["NUMBER_2"] = 2] = "NUMBER_2";
5636
+ })(ProjectVisibilityLevel || (ProjectVisibilityLevel = {}));
5626
5637
  /**
5627
5638
  *
5628
5639
  * @export
@@ -5647,6 +5658,224 @@
5647
5658
  ResourceTypeStatus["Hidden"] = "hidden";
5648
5659
  ResourceTypeStatus["Active"] = "active";
5649
5660
  })(ResourceTypeStatus || (ResourceTypeStatus = {}));
5661
+ /**
5662
+ * GitLabApi - axios parameter creator
5663
+ * @export
5664
+ */
5665
+ const GitLabApiAxiosParamCreator = function (configuration) {
5666
+ return {
5667
+ /**
5668
+ *
5669
+ * @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
5670
+ * @param {string} [domain] Domain/Host of the GitLab Provider
5671
+ * @param {string} [accessToken] GitLab Project or Group Access Token
5672
+ * @param {*} [options] Override http request option.
5673
+ * @throws {RequiredError}
5674
+ */
5675
+ gitLabGetAllProjects: (domain, accessToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
5676
+ const localVarPath = `/GitLab/projects`;
5677
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5678
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
5679
+ let baseOptions;
5680
+ if (configuration) {
5681
+ baseOptions = configuration.baseOptions;
5682
+ }
5683
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5684
+ const localVarHeaderParameter = {};
5685
+ const localVarQueryParameter = {};
5686
+ // authentication JWT token required
5687
+ yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
5688
+ if (domain !== undefined) {
5689
+ localVarQueryParameter['Domain'] = domain;
5690
+ }
5691
+ if (accessToken !== undefined) {
5692
+ localVarQueryParameter['AccessToken'] = accessToken;
5693
+ }
5694
+ setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
5695
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5696
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5697
+ return {
5698
+ url: toPathString$5(localVarUrlObj),
5699
+ options: localVarRequestOptions,
5700
+ };
5701
+ }),
5702
+ /**
5703
+ *
5704
+ * @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
5705
+ * @param {number} projectId GitLab Project Identifier
5706
+ * @param {string} [domain] Domain/Host of the GitLab Provider
5707
+ * @param {string} [accessToken] GitLab Project or Group Access Token
5708
+ * @param {*} [options] Override http request option.
5709
+ * @throws {RequiredError}
5710
+ */
5711
+ gitLabGetBranchesForProject: (projectId, domain, accessToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
5712
+ // verify required parameter 'projectId' is not null or undefined
5713
+ assertParamExists$3('gitLabGetBranchesForProject', 'projectId', projectId);
5714
+ const localVarPath = `/GitLab/branches/{projectId}`
5715
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
5716
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5717
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
5718
+ let baseOptions;
5719
+ if (configuration) {
5720
+ baseOptions = configuration.baseOptions;
5721
+ }
5722
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5723
+ const localVarHeaderParameter = {};
5724
+ const localVarQueryParameter = {};
5725
+ // authentication JWT token required
5726
+ yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
5727
+ if (domain !== undefined) {
5728
+ localVarQueryParameter['Domain'] = domain;
5729
+ }
5730
+ if (accessToken !== undefined) {
5731
+ localVarQueryParameter['AccessToken'] = accessToken;
5732
+ }
5733
+ setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
5734
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5735
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5736
+ return {
5737
+ url: toPathString$5(localVarUrlObj),
5738
+ options: localVarRequestOptions,
5739
+ };
5740
+ }),
5741
+ /**
5742
+ *
5743
+ * @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
5744
+ * @param {number} projectId GitLab Project Identifier
5745
+ * @param {string} [domain] Domain/Host of the GitLab Provider
5746
+ * @param {string} [accessToken] GitLab Project or Group Access Token
5747
+ * @param {*} [options] Override http request option.
5748
+ * @throws {RequiredError}
5749
+ */
5750
+ gitLabGetProject: (projectId, domain, accessToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
5751
+ // verify required parameter 'projectId' is not null or undefined
5752
+ assertParamExists$3('gitLabGetProject', 'projectId', projectId);
5753
+ const localVarPath = `/GitLab/projects/{projectId}`
5754
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
5755
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5756
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
5757
+ let baseOptions;
5758
+ if (configuration) {
5759
+ baseOptions = configuration.baseOptions;
5760
+ }
5761
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5762
+ const localVarHeaderParameter = {};
5763
+ const localVarQueryParameter = {};
5764
+ // authentication JWT token required
5765
+ yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
5766
+ if (domain !== undefined) {
5767
+ localVarQueryParameter['Domain'] = domain;
5768
+ }
5769
+ if (accessToken !== undefined) {
5770
+ localVarQueryParameter['AccessToken'] = accessToken;
5771
+ }
5772
+ setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
5773
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5774
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5775
+ return {
5776
+ url: toPathString$5(localVarUrlObj),
5777
+ options: localVarRequestOptions,
5778
+ };
5779
+ }),
5780
+ };
5781
+ };
5782
+ /**
5783
+ * GitLabApi - functional programming interface
5784
+ * @export
5785
+ */
5786
+ const GitLabApiFp = function (configuration) {
5787
+ const localVarAxiosParamCreator = GitLabApiAxiosParamCreator(configuration);
5788
+ return {
5789
+ /**
5790
+ *
5791
+ * @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
5792
+ * @param {string} [domain] Domain/Host of the GitLab Provider
5793
+ * @param {string} [accessToken] GitLab Project or Group Access Token
5794
+ * @param {*} [options] Override http request option.
5795
+ * @throws {RequiredError}
5796
+ */
5797
+ gitLabGetAllProjects(domain, accessToken, options) {
5798
+ return __awaiter(this, void 0, void 0, function* () {
5799
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.gitLabGetAllProjects(domain, accessToken, options);
5800
+ return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
5801
+ });
5802
+ },
5803
+ /**
5804
+ *
5805
+ * @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
5806
+ * @param {number} projectId GitLab Project Identifier
5807
+ * @param {string} [domain] Domain/Host of the GitLab Provider
5808
+ * @param {string} [accessToken] GitLab Project or Group Access Token
5809
+ * @param {*} [options] Override http request option.
5810
+ * @throws {RequiredError}
5811
+ */
5812
+ gitLabGetBranchesForProject(projectId, domain, accessToken, options) {
5813
+ return __awaiter(this, void 0, void 0, function* () {
5814
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.gitLabGetBranchesForProject(projectId, domain, accessToken, options);
5815
+ return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
5816
+ });
5817
+ },
5818
+ /**
5819
+ *
5820
+ * @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
5821
+ * @param {number} projectId GitLab Project Identifier
5822
+ * @param {string} [domain] Domain/Host of the GitLab Provider
5823
+ * @param {string} [accessToken] GitLab Project or Group Access Token
5824
+ * @param {*} [options] Override http request option.
5825
+ * @throws {RequiredError}
5826
+ */
5827
+ gitLabGetProject(projectId, domain, accessToken, options) {
5828
+ return __awaiter(this, void 0, void 0, function* () {
5829
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.gitLabGetProject(projectId, domain, accessToken, options);
5830
+ return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
5831
+ });
5832
+ },
5833
+ };
5834
+ };
5835
+ /**
5836
+ * GitLabApi - factory interface
5837
+ * @export
5838
+ */
5839
+ const GitLabApiFactory = function (configuration, basePath, axios) {
5840
+ const localVarFp = GitLabApiFp(configuration);
5841
+ return {
5842
+ /**
5843
+ *
5844
+ * @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
5845
+ * @param {string} [domain] Domain/Host of the GitLab Provider
5846
+ * @param {string} [accessToken] GitLab Project or Group Access Token
5847
+ * @param {*} [options] Override http request option.
5848
+ * @throws {RequiredError}
5849
+ */
5850
+ gitLabGetAllProjects(domain, accessToken, options) {
5851
+ return localVarFp.gitLabGetAllProjects(domain, accessToken, options).then((request) => request(axios, basePath));
5852
+ },
5853
+ /**
5854
+ *
5855
+ * @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
5856
+ * @param {number} projectId GitLab Project Identifier
5857
+ * @param {string} [domain] Domain/Host of the GitLab Provider
5858
+ * @param {string} [accessToken] GitLab Project or Group Access Token
5859
+ * @param {*} [options] Override http request option.
5860
+ * @throws {RequiredError}
5861
+ */
5862
+ gitLabGetBranchesForProject(projectId, domain, accessToken, options) {
5863
+ return localVarFp.gitLabGetBranchesForProject(projectId, domain, accessToken, options).then((request) => request(axios, basePath));
5864
+ },
5865
+ /**
5866
+ *
5867
+ * @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
5868
+ * @param {number} projectId GitLab Project Identifier
5869
+ * @param {string} [domain] Domain/Host of the GitLab Provider
5870
+ * @param {string} [accessToken] GitLab Project or Group Access Token
5871
+ * @param {*} [options] Override http request option.
5872
+ * @throws {RequiredError}
5873
+ */
5874
+ gitLabGetProject(projectId, domain, accessToken, options) {
5875
+ return localVarFp.gitLabGetProject(projectId, domain, accessToken, options).then((request) => request(axios, basePath));
5876
+ },
5877
+ };
5878
+ };
5650
5879
  /**
5651
5880
  * ResourceApi - axios parameter creator
5652
5881
  * @export
@@ -8732,6 +8961,7 @@
8732
8961
  BlobApi: BlobApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Blob', axios),
8733
8962
  ContactChangeApi: ContactChangeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.User', axios),
8734
8963
  DisciplineApi: DisciplineApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
8964
+ GitLabApi: GitLabApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Resources', axios),
8735
8965
  HomeApi: HomeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.STS', axios),
8736
8966
  LanguageApi: LanguageApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.User', axios),
8737
8967
  LicenseApi: LicenseApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
@@ -8804,6 +9034,7 @@
8804
9034
  const BlobApi = apis.BlobApi;
8805
9035
  const ContactChangeApi = apis.ContactChangeApi;
8806
9036
  const DisciplineApi = apis.DisciplineApi;
9037
+ const GitLabApi = apis.GitLabApi;
8807
9038
  const HomeApi = apis.HomeApi;
8808
9039
  const LanguageApi = apis.LanguageApi;
8809
9040
  const LicenseApi = apis.LicenseApi;
@@ -8835,6 +9066,7 @@
8835
9066
  exports.BlobApi = BlobApi;
8836
9067
  exports.ContactChangeApi = ContactChangeApi;
8837
9068
  exports.DisciplineApi = DisciplineApi;
9069
+ exports.GitLabApi = GitLabApi;
8838
9070
  exports.HomeApi = HomeApi;
8839
9071
  exports.LanguageApi = LanguageApi;
8840
9072
  exports.LicenseApi = LicenseApi;