@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.
- package/dist/index.js +232 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +232 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.Project/api.js +1 -1
- package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Project/base.js +1 -1
- package/dist/lib/Coscine.Api.Project/common.js +1 -1
- package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Project/index.js +1 -1
- package/dist/lib/Coscine.Api.Resources/api.js +281 -2
- package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Resources/base.js +1 -1
- package/dist/lib/Coscine.Api.Resources/common.js +1 -1
- package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Resources/index.js +1 -1
- package/dist/lib/Coscine.Api.Tree/api.js +1 -1
- package/dist/lib/Coscine.Api.Tree/base.js +1 -1
- package/dist/lib/Coscine.Api.Tree/common.js +1 -1
- package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Tree/index.js +1 -1
- package/dist/lib/Coscine.Api.User/api.js +1 -1
- package/dist/lib/Coscine.Api.User/base.js +1 -1
- package/dist/lib/Coscine.Api.User/common.js +1 -1
- package/dist/lib/Coscine.Api.User/configuration.js +1 -1
- package/dist/lib/Coscine.Api.User/index.js +1 -1
- package/dist/lib/apis.js +23 -21
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/types/Coscine.Api.Project/api.d.ts +31 -1
- package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/api.d.ts +730 -2
- package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
- package/dist/types/Coscine.Api.User/api.d.ts +1 -1
- package/dist/types/Coscine.Api.User/base.d.ts +1 -1
- package/dist/types/Coscine.Api.User/common.d.ts +1 -1
- package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.User/index.d.ts +1 -1
- package/dist/types/apis.d.ts +5 -0
- package/dist/types/index.d.ts +10 -0
- package/package.json +2 -9
package/dist/index.js
CHANGED
|
@@ -5617,6 +5617,17 @@ const createRequestFunction$5 = function (axiosArgs, globalAxios, BASE_PATH, con
|
|
|
5617
5617
|
};
|
|
5618
5618
|
|
|
5619
5619
|
/* tslint:disable */
|
|
5620
|
+
/**
|
|
5621
|
+
*
|
|
5622
|
+
* @export
|
|
5623
|
+
* @enum {string}
|
|
5624
|
+
*/
|
|
5625
|
+
var ProjectVisibilityLevel;
|
|
5626
|
+
(function (ProjectVisibilityLevel) {
|
|
5627
|
+
ProjectVisibilityLevel[ProjectVisibilityLevel["NUMBER_0"] = 0] = "NUMBER_0";
|
|
5628
|
+
ProjectVisibilityLevel[ProjectVisibilityLevel["NUMBER_1"] = 1] = "NUMBER_1";
|
|
5629
|
+
ProjectVisibilityLevel[ProjectVisibilityLevel["NUMBER_2"] = 2] = "NUMBER_2";
|
|
5630
|
+
})(ProjectVisibilityLevel || (ProjectVisibilityLevel = {}));
|
|
5620
5631
|
/**
|
|
5621
5632
|
*
|
|
5622
5633
|
* @export
|
|
@@ -5641,6 +5652,224 @@ var ResourceTypeStatus;
|
|
|
5641
5652
|
ResourceTypeStatus["Hidden"] = "hidden";
|
|
5642
5653
|
ResourceTypeStatus["Active"] = "active";
|
|
5643
5654
|
})(ResourceTypeStatus || (ResourceTypeStatus = {}));
|
|
5655
|
+
/**
|
|
5656
|
+
* GitLabApi - axios parameter creator
|
|
5657
|
+
* @export
|
|
5658
|
+
*/
|
|
5659
|
+
const GitLabApiAxiosParamCreator = function (configuration) {
|
|
5660
|
+
return {
|
|
5661
|
+
/**
|
|
5662
|
+
*
|
|
5663
|
+
* @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
|
|
5664
|
+
* @param {string} [domain] Domain/Host of the GitLab Provider
|
|
5665
|
+
* @param {string} [accessToken] GitLab Project or Group Access Token
|
|
5666
|
+
* @param {*} [options] Override http request option.
|
|
5667
|
+
* @throws {RequiredError}
|
|
5668
|
+
*/
|
|
5669
|
+
gitLabGetAllProjects: (domain, accessToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5670
|
+
const localVarPath = `/GitLab/projects`;
|
|
5671
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5672
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5673
|
+
let baseOptions;
|
|
5674
|
+
if (configuration) {
|
|
5675
|
+
baseOptions = configuration.baseOptions;
|
|
5676
|
+
}
|
|
5677
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5678
|
+
const localVarHeaderParameter = {};
|
|
5679
|
+
const localVarQueryParameter = {};
|
|
5680
|
+
// authentication JWT token required
|
|
5681
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5682
|
+
if (domain !== undefined) {
|
|
5683
|
+
localVarQueryParameter['Domain'] = domain;
|
|
5684
|
+
}
|
|
5685
|
+
if (accessToken !== undefined) {
|
|
5686
|
+
localVarQueryParameter['AccessToken'] = accessToken;
|
|
5687
|
+
}
|
|
5688
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5690
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5691
|
+
return {
|
|
5692
|
+
url: toPathString$5(localVarUrlObj),
|
|
5693
|
+
options: localVarRequestOptions,
|
|
5694
|
+
};
|
|
5695
|
+
}),
|
|
5696
|
+
/**
|
|
5697
|
+
*
|
|
5698
|
+
* @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
|
|
5699
|
+
* @param {number} projectId GitLab Project Identifier
|
|
5700
|
+
* @param {string} [domain] Domain/Host of the GitLab Provider
|
|
5701
|
+
* @param {string} [accessToken] GitLab Project or Group Access Token
|
|
5702
|
+
* @param {*} [options] Override http request option.
|
|
5703
|
+
* @throws {RequiredError}
|
|
5704
|
+
*/
|
|
5705
|
+
gitLabGetBranchesForProject: (projectId, domain, accessToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5706
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
5707
|
+
assertParamExists$3('gitLabGetBranchesForProject', 'projectId', projectId);
|
|
5708
|
+
const localVarPath = `/GitLab/branches/{projectId}`
|
|
5709
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
5710
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5711
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5712
|
+
let baseOptions;
|
|
5713
|
+
if (configuration) {
|
|
5714
|
+
baseOptions = configuration.baseOptions;
|
|
5715
|
+
}
|
|
5716
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5717
|
+
const localVarHeaderParameter = {};
|
|
5718
|
+
const localVarQueryParameter = {};
|
|
5719
|
+
// authentication JWT token required
|
|
5720
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5721
|
+
if (domain !== undefined) {
|
|
5722
|
+
localVarQueryParameter['Domain'] = domain;
|
|
5723
|
+
}
|
|
5724
|
+
if (accessToken !== undefined) {
|
|
5725
|
+
localVarQueryParameter['AccessToken'] = accessToken;
|
|
5726
|
+
}
|
|
5727
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5728
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5729
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5730
|
+
return {
|
|
5731
|
+
url: toPathString$5(localVarUrlObj),
|
|
5732
|
+
options: localVarRequestOptions,
|
|
5733
|
+
};
|
|
5734
|
+
}),
|
|
5735
|
+
/**
|
|
5736
|
+
*
|
|
5737
|
+
* @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
|
|
5738
|
+
* @param {number} projectId GitLab Project Identifier
|
|
5739
|
+
* @param {string} [domain] Domain/Host of the GitLab Provider
|
|
5740
|
+
* @param {string} [accessToken] GitLab Project or Group Access Token
|
|
5741
|
+
* @param {*} [options] Override http request option.
|
|
5742
|
+
* @throws {RequiredError}
|
|
5743
|
+
*/
|
|
5744
|
+
gitLabGetProject: (projectId, domain, accessToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5745
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
5746
|
+
assertParamExists$3('gitLabGetProject', 'projectId', projectId);
|
|
5747
|
+
const localVarPath = `/GitLab/projects/{projectId}`
|
|
5748
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
5749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5750
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5751
|
+
let baseOptions;
|
|
5752
|
+
if (configuration) {
|
|
5753
|
+
baseOptions = configuration.baseOptions;
|
|
5754
|
+
}
|
|
5755
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5756
|
+
const localVarHeaderParameter = {};
|
|
5757
|
+
const localVarQueryParameter = {};
|
|
5758
|
+
// authentication JWT token required
|
|
5759
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5760
|
+
if (domain !== undefined) {
|
|
5761
|
+
localVarQueryParameter['Domain'] = domain;
|
|
5762
|
+
}
|
|
5763
|
+
if (accessToken !== undefined) {
|
|
5764
|
+
localVarQueryParameter['AccessToken'] = accessToken;
|
|
5765
|
+
}
|
|
5766
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5768
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5769
|
+
return {
|
|
5770
|
+
url: toPathString$5(localVarUrlObj),
|
|
5771
|
+
options: localVarRequestOptions,
|
|
5772
|
+
};
|
|
5773
|
+
}),
|
|
5774
|
+
};
|
|
5775
|
+
};
|
|
5776
|
+
/**
|
|
5777
|
+
* GitLabApi - functional programming interface
|
|
5778
|
+
* @export
|
|
5779
|
+
*/
|
|
5780
|
+
const GitLabApiFp = function (configuration) {
|
|
5781
|
+
const localVarAxiosParamCreator = GitLabApiAxiosParamCreator(configuration);
|
|
5782
|
+
return {
|
|
5783
|
+
/**
|
|
5784
|
+
*
|
|
5785
|
+
* @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
|
|
5786
|
+
* @param {string} [domain] Domain/Host of the GitLab Provider
|
|
5787
|
+
* @param {string} [accessToken] GitLab Project or Group Access Token
|
|
5788
|
+
* @param {*} [options] Override http request option.
|
|
5789
|
+
* @throws {RequiredError}
|
|
5790
|
+
*/
|
|
5791
|
+
gitLabGetAllProjects(domain, accessToken, options) {
|
|
5792
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5793
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitLabGetAllProjects(domain, accessToken, options);
|
|
5794
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5795
|
+
});
|
|
5796
|
+
},
|
|
5797
|
+
/**
|
|
5798
|
+
*
|
|
5799
|
+
* @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
|
|
5800
|
+
* @param {number} projectId GitLab Project Identifier
|
|
5801
|
+
* @param {string} [domain] Domain/Host of the GitLab Provider
|
|
5802
|
+
* @param {string} [accessToken] GitLab Project or Group Access Token
|
|
5803
|
+
* @param {*} [options] Override http request option.
|
|
5804
|
+
* @throws {RequiredError}
|
|
5805
|
+
*/
|
|
5806
|
+
gitLabGetBranchesForProject(projectId, domain, accessToken, options) {
|
|
5807
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5808
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitLabGetBranchesForProject(projectId, domain, accessToken, options);
|
|
5809
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5810
|
+
});
|
|
5811
|
+
},
|
|
5812
|
+
/**
|
|
5813
|
+
*
|
|
5814
|
+
* @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
|
|
5815
|
+
* @param {number} projectId GitLab Project Identifier
|
|
5816
|
+
* @param {string} [domain] Domain/Host of the GitLab Provider
|
|
5817
|
+
* @param {string} [accessToken] GitLab Project or Group Access Token
|
|
5818
|
+
* @param {*} [options] Override http request option.
|
|
5819
|
+
* @throws {RequiredError}
|
|
5820
|
+
*/
|
|
5821
|
+
gitLabGetProject(projectId, domain, accessToken, options) {
|
|
5822
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5823
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitLabGetProject(projectId, domain, accessToken, options);
|
|
5824
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5825
|
+
});
|
|
5826
|
+
},
|
|
5827
|
+
};
|
|
5828
|
+
};
|
|
5829
|
+
/**
|
|
5830
|
+
* GitLabApi - factory interface
|
|
5831
|
+
* @export
|
|
5832
|
+
*/
|
|
5833
|
+
const GitLabApiFactory = function (configuration, basePath, axios) {
|
|
5834
|
+
const localVarFp = GitLabApiFp(configuration);
|
|
5835
|
+
return {
|
|
5836
|
+
/**
|
|
5837
|
+
*
|
|
5838
|
+
* @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
|
|
5839
|
+
* @param {string} [domain] Domain/Host of the GitLab Provider
|
|
5840
|
+
* @param {string} [accessToken] GitLab Project or Group Access Token
|
|
5841
|
+
* @param {*} [options] Override http request option.
|
|
5842
|
+
* @throws {RequiredError}
|
|
5843
|
+
*/
|
|
5844
|
+
gitLabGetAllProjects(domain, accessToken, options) {
|
|
5845
|
+
return localVarFp.gitLabGetAllProjects(domain, accessToken, options).then((request) => request(axios, basePath));
|
|
5846
|
+
},
|
|
5847
|
+
/**
|
|
5848
|
+
*
|
|
5849
|
+
* @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
|
|
5850
|
+
* @param {number} projectId GitLab Project Identifier
|
|
5851
|
+
* @param {string} [domain] Domain/Host of the GitLab Provider
|
|
5852
|
+
* @param {string} [accessToken] GitLab Project or Group Access Token
|
|
5853
|
+
* @param {*} [options] Override http request option.
|
|
5854
|
+
* @throws {RequiredError}
|
|
5855
|
+
*/
|
|
5856
|
+
gitLabGetBranchesForProject(projectId, domain, accessToken, options) {
|
|
5857
|
+
return localVarFp.gitLabGetBranchesForProject(projectId, domain, accessToken, options).then((request) => request(axios, basePath));
|
|
5858
|
+
},
|
|
5859
|
+
/**
|
|
5860
|
+
*
|
|
5861
|
+
* @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
|
|
5862
|
+
* @param {number} projectId GitLab Project Identifier
|
|
5863
|
+
* @param {string} [domain] Domain/Host of the GitLab Provider
|
|
5864
|
+
* @param {string} [accessToken] GitLab Project or Group Access Token
|
|
5865
|
+
* @param {*} [options] Override http request option.
|
|
5866
|
+
* @throws {RequiredError}
|
|
5867
|
+
*/
|
|
5868
|
+
gitLabGetProject(projectId, domain, accessToken, options) {
|
|
5869
|
+
return localVarFp.gitLabGetProject(projectId, domain, accessToken, options).then((request) => request(axios, basePath));
|
|
5870
|
+
},
|
|
5871
|
+
};
|
|
5872
|
+
};
|
|
5644
5873
|
/**
|
|
5645
5874
|
* ResourceApi - axios parameter creator
|
|
5646
5875
|
* @export
|
|
@@ -8726,6 +8955,7 @@ function implementations(axios) {
|
|
|
8726
8955
|
BlobApi: BlobApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Blob', axios),
|
|
8727
8956
|
ContactChangeApi: ContactChangeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.User', axios),
|
|
8728
8957
|
DisciplineApi: DisciplineApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
8958
|
+
GitLabApi: GitLabApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Resources', axios),
|
|
8729
8959
|
HomeApi: HomeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.STS', axios),
|
|
8730
8960
|
LanguageApi: LanguageApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.User', axios),
|
|
8731
8961
|
LicenseApi: LicenseApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
@@ -8798,6 +9028,7 @@ const AdminApi = apis.AdminApi;
|
|
|
8798
9028
|
const BlobApi = apis.BlobApi;
|
|
8799
9029
|
const ContactChangeApi = apis.ContactChangeApi;
|
|
8800
9030
|
const DisciplineApi = apis.DisciplineApi;
|
|
9031
|
+
const GitLabApi = apis.GitLabApi;
|
|
8801
9032
|
const HomeApi = apis.HomeApi;
|
|
8802
9033
|
const LanguageApi = apis.LanguageApi;
|
|
8803
9034
|
const LicenseApi = apis.LicenseApi;
|
|
@@ -8824,5 +9055,5 @@ const TreeApi = apis.TreeApi;
|
|
|
8824
9055
|
const UserApi = apis.UserApi;
|
|
8825
9056
|
const VisibilityApi = apis.VisibilityApi;
|
|
8826
9057
|
|
|
8827
|
-
export { AccountApi, AdminApi, BlobApi, ContactChangeApi, DisciplineApi, HomeApi, LanguageApi, LicenseApi, MergeApi, MetadataApi, NoticeApi, ORCiDApi, OrganizationApi, PidApi, ProjectApi, ProjectQuotaApi, ProjectRoleApi, ResourceApi, ResourceQuotaApi, ResourceTypeApi, RoleApi, SearchApi, ShibbolethApi, SubProjectApi, TOSApi, TitleApi, TokenApi, TreeApi, UserApi, VisibilityApi, apis as default };
|
|
9058
|
+
export { AccountApi, AdminApi, BlobApi, ContactChangeApi, DisciplineApi, GitLabApi, HomeApi, LanguageApi, LicenseApi, MergeApi, MetadataApi, NoticeApi, ORCiDApi, OrganizationApi, PidApi, ProjectApi, ProjectQuotaApi, ProjectRoleApi, ResourceApi, ResourceQuotaApi, ResourceTypeApi, RoleApi, SearchApi, ShibbolethApi, SubProjectApi, TOSApi, TitleApi, TokenApi, TreeApi, UserApi, VisibilityApi, apis as default };
|
|
8828
9059
|
//# sourceMappingURL=index.js.map
|