From ce8afa3f3ac834e4ff1f59eb7ddabfdac16d03f7 Mon Sep 17 00:00:00 2001 From: Petar Hristov <hristov@itc.rwth-aachen.de> Date: Wed, 5 Feb 2025 14:23:24 +0100 Subject: [PATCH] New: Maintenance mode for resources --- generate-api-client.sh | 2 +- src/Coscine.Api/@coscine/api/admin-api.ts | 30 +- .../@coscine/api/application-profile-api.ts | 11 +- .../@coscine/api/discipline-api.ts | 6 +- src/Coscine.Api/@coscine/api/language-api.ts | 6 +- src/Coscine.Api/@coscine/api/license-api.ts | 6 +- .../@coscine/api/organization-api.ts | 6 +- src/Coscine.Api/@coscine/api/pid-api.ts | 6 +- src/Coscine.Api/@coscine/api/project-api.ts | 6 +- .../@coscine/api/project-invitation-api.ts | 6 +- .../@coscine/api/project-member-api.ts | 6 +- .../@coscine/api/project-quota-api.ts | 6 +- .../@coscine/api/project-resource-api.ts | 6 +- .../@coscine/api/resource-type-api.ts | 342 ------------- .../@coscine/api/resource-type-git-lab-api.ts | 467 ++++++++++++++++++ src/Coscine.Api/@coscine/api/role-api.ts | 6 +- src/Coscine.Api/@coscine/api/search-api.ts | 6 +- .../@coscine/api/self-api-token-api.ts | 6 +- .../@coscine/api/system-status-api.ts | 12 +- src/Coscine.Api/@coscine/api/title-api.ts | 6 +- src/Coscine.Api/@coscine/api/tree-api.ts | 12 +- .../@coscine/api/visibility-api.ts | 6 +- .../@coscine/api/vocabulary-api.ts | 17 +- .../model/file-system-storage-options-dto.ts | 30 ++ src/Coscine.Api/@coscine/model/index.ts | 1 + src/Coscine.Api/@coscine/model/quota-unit.ts | 12 +- .../@coscine/model/resource-admin-dto.ts | 10 +- .../@coscine/model/resource-dto.ts | 10 +- .../@coscine/model/resource-for-update-dto.ts | 6 + .../model/resource-type-options-dto.ts | 9 + src/Coscine.Api/api.ts | 1 + src/Coscine.Api/configuration.ts | 8 +- 32 files changed, 629 insertions(+), 441 deletions(-) create mode 100644 src/Coscine.Api/@coscine/api/resource-type-git-lab-api.ts create mode 100644 src/Coscine.Api/@coscine/model/file-system-storage-options-dto.ts diff --git a/generate-api-client.sh b/generate-api-client.sh index 75b5118..7bbb4db 100644 --- a/generate-api-client.sh +++ b/generate-api-client.sh @@ -30,7 +30,7 @@ podman run --rm \ -i "$API_SPEC_URL" \ -g typescript-axios \ -o /local/$OUTPUT_DIR \ - --additional-properties=useSingleRequestParameter=true,apiPackage=@coscine/api,modelPackage=@coscine/model,withSeparateModelsAndApi=true \ + --additional-properties=useSingleRequestParameter=true,apiPackage=@coscine/api,modelPackage=@coscine/model,withSeparateModelsAndApi=true,enumPropertyNaming=original \ --skip-validate-spec echo -e "${GREEN}API client generation complete.${NC}" diff --git a/src/Coscine.Api/@coscine/api/admin-api.ts b/src/Coscine.Api/@coscine/api/admin-api.ts index e3f3dfe..6a11f34 100644 --- a/src/Coscine.Api/@coscine/api/admin-api.ts +++ b/src/Coscine.Api/@coscine/api/admin-api.ts @@ -91,7 +91,7 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration * @param {CoscineHttpMethod} [httpMethod] The http method to filter activity logs by. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -171,7 +171,7 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration * @param {boolean} [includePublicationRequests] Gets or sets a value indicating whether to include project publication requests in the results. * @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -237,7 +237,7 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration * @param {boolean} [includeQuotas] Value indicating whether to include individual resource quotas. * @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -294,7 +294,7 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration * @param {boolean} [tosAccepted] Gets or sets a value indicating whether the terms of service have been accepted by the user. * @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -346,7 +346,7 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration * @summary Gets all deployed graphs. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -546,7 +546,7 @@ export const AdminApiFp = function(configuration?: Configuration) { * @param {CoscineHttpMethod} [httpMethod] The http method to filter activity logs by. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -565,7 +565,7 @@ export const AdminApiFp = function(configuration?: Configuration) { * @param {boolean} [includePublicationRequests] Gets or sets a value indicating whether to include project publication requests in the results. * @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -582,7 +582,7 @@ export const AdminApiFp = function(configuration?: Configuration) { * @param {boolean} [includeQuotas] Value indicating whether to include individual resource quotas. * @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -598,7 +598,7 @@ export const AdminApiFp = function(configuration?: Configuration) { * @param {boolean} [tosAccepted] Gets or sets a value indicating whether the terms of service have been accepted by the user. * @param {number} [pageSize] Number of items per page. The maximum number of items per page is `250`. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -613,7 +613,7 @@ export const AdminApiFp = function(configuration?: Configuration) { * @summary Gets all deployed graphs. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -830,7 +830,7 @@ export interface AdminApiGetAllActivityLogsRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof AdminApiGetAllActivityLogs */ @@ -886,7 +886,7 @@ export interface AdminApiGetAllProjectsRequest { readonly pageNumber?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof AdminApiGetAllProjects */ @@ -928,7 +928,7 @@ export interface AdminApiGetAllResourcesRequest { readonly pageNumber?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof AdminApiGetAllResources */ @@ -963,7 +963,7 @@ export interface AdminApiGetAllUsersRequest { readonly pageNumber?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof AdminApiGetAllUsers */ @@ -991,7 +991,7 @@ export interface AdminApiGetDeployedGraphsRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof AdminApiGetDeployedGraphs */ diff --git a/src/Coscine.Api/@coscine/api/application-profile-api.ts b/src/Coscine.Api/@coscine/api/application-profile-api.ts index 1aa4034..eb70c75 100644 --- a/src/Coscine.Api/@coscine/api/application-profile-api.ts +++ b/src/Coscine.Api/@coscine/api/application-profile-api.ts @@ -141,14 +141,13 @@ export const ApplicationProfileApiAxiosParamCreator = function (configuration?: localVarQueryParameter['format'] = format; } + + if (acceptLanguage != null) { localVarHeaderParameter['Accept-Language'] = typeof acceptLanguage === 'string' ? acceptLanguage : JSON.stringify(acceptLanguage); } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -166,7 +165,7 @@ export const ApplicationProfileApiAxiosParamCreator = function (configuration?: * @param {boolean} [modules] Gets or sets a value indicating whether to include modules in the application profiles. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -316,7 +315,7 @@ export const ApplicationProfileApiFp = function(configuration?: Configuration) { * @param {boolean} [modules] Gets or sets a value indicating whether to include modules in the application profiles. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -485,7 +484,7 @@ export interface ApplicationProfileApiGetApplicationProfilesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof ApplicationProfileApiGetApplicationProfiles */ diff --git a/src/Coscine.Api/@coscine/api/discipline-api.ts b/src/Coscine.Api/@coscine/api/discipline-api.ts index f801d41..e9996b2 100644 --- a/src/Coscine.Api/@coscine/api/discipline-api.ts +++ b/src/Coscine.Api/@coscine/api/discipline-api.ts @@ -106,7 +106,7 @@ export const DisciplineApiAxiosParamCreator = function (configuration?: Configur * @summary Retrieves all disciplines. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -189,7 +189,7 @@ export const DisciplineApiFp = function(configuration?: Configuration) { * @summary Retrieves all disciplines. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -276,7 +276,7 @@ export interface DisciplineApiGetDisciplinesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof DisciplineApiGetDisciplines */ diff --git a/src/Coscine.Api/@coscine/api/language-api.ts b/src/Coscine.Api/@coscine/api/language-api.ts index 74cb86a..ceb674b 100644 --- a/src/Coscine.Api/@coscine/api/language-api.ts +++ b/src/Coscine.Api/@coscine/api/language-api.ts @@ -106,7 +106,7 @@ export const LanguageApiAxiosParamCreator = function (configuration?: Configurat * @summary Retrieves all languages. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -189,7 +189,7 @@ export const LanguageApiFp = function(configuration?: Configuration) { * @summary Retrieves all languages. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -276,7 +276,7 @@ export interface LanguageApiGetLanguagesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof LanguageApiGetLanguages */ diff --git a/src/Coscine.Api/@coscine/api/license-api.ts b/src/Coscine.Api/@coscine/api/license-api.ts index 40cf6cc..9011d72 100644 --- a/src/Coscine.Api/@coscine/api/license-api.ts +++ b/src/Coscine.Api/@coscine/api/license-api.ts @@ -106,7 +106,7 @@ export const LicenseApiAxiosParamCreator = function (configuration?: Configurati * @summary Retrieves all licenses. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -189,7 +189,7 @@ export const LicenseApiFp = function(configuration?: Configuration) { * @summary Retrieves all licenses. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -276,7 +276,7 @@ export interface LicenseApiGetLicensesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof LicenseApiGetLicenses */ diff --git a/src/Coscine.Api/@coscine/api/organization-api.ts b/src/Coscine.Api/@coscine/api/organization-api.ts index 1c08de5..d968a16 100644 --- a/src/Coscine.Api/@coscine/api/organization-api.ts +++ b/src/Coscine.Api/@coscine/api/organization-api.ts @@ -111,7 +111,7 @@ export const OrganizationApiAxiosParamCreator = function (configuration?: Config * @param {boolean} [filterByPublicationService] Gets or sets the option to find only organizations having the publication service set. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -209,7 +209,7 @@ export const OrganizationApiFp = function(configuration?: Configuration) { * @param {boolean} [filterByPublicationService] Gets or sets the option to find only organizations having the publication service set. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -317,7 +317,7 @@ export interface OrganizationApiGetOrganizationsRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof OrganizationApiGetOrganizations */ diff --git a/src/Coscine.Api/@coscine/api/pid-api.ts b/src/Coscine.Api/@coscine/api/pid-api.ts index 8fba2ea..8ff432d 100644 --- a/src/Coscine.Api/@coscine/api/pid-api.ts +++ b/src/Coscine.Api/@coscine/api/pid-api.ts @@ -115,7 +115,7 @@ export const PidApiAxiosParamCreator = function (configuration?: Configuration) * @param {boolean} [includeDeleted] Gets or sets a value indicating whether to include deleted pid information. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -259,7 +259,7 @@ export const PidApiFp = function(configuration?: Configuration) { * @param {boolean} [includeDeleted] Gets or sets a value indicating whether to include deleted pid information. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -399,7 +399,7 @@ export interface PidApiGetPidsRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof PidApiGetPids */ diff --git a/src/Coscine.Api/@coscine/api/project-api.ts b/src/Coscine.Api/@coscine/api/project-api.ts index d599a2d..527d01c 100644 --- a/src/Coscine.Api/@coscine/api/project-api.ts +++ b/src/Coscine.Api/@coscine/api/project-api.ts @@ -191,7 +191,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {boolean} [topLevel] Gets or sets a value indicating whether to retrieve only top-level projects. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -352,7 +352,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {boolean} [topLevel] Gets or sets a value indicating whether to retrieve only top-level projects. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -532,7 +532,7 @@ export interface ProjectApiGetProjectsRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof ProjectApiGetProjects */ diff --git a/src/Coscine.Api/@coscine/api/project-invitation-api.ts b/src/Coscine.Api/@coscine/api/project-invitation-api.ts index f417960..fc9d321 100644 --- a/src/Coscine.Api/@coscine/api/project-invitation-api.ts +++ b/src/Coscine.Api/@coscine/api/project-invitation-api.ts @@ -199,7 +199,7 @@ export const ProjectInvitationApiAxiosParamCreator = function (configuration?: C * @param {string} projectId The Id or slug of the project. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -316,7 +316,7 @@ export const ProjectInvitationApiFp = function(configuration?: Configuration) { * @param {string} projectId The Id or slug of the project. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -494,7 +494,7 @@ export interface ProjectInvitationApiGetProjectInvitationsRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof ProjectInvitationApiGetProjectInvitations */ diff --git a/src/Coscine.Api/@coscine/api/project-member-api.ts b/src/Coscine.Api/@coscine/api/project-member-api.ts index b549862..c87a661 100644 --- a/src/Coscine.Api/@coscine/api/project-member-api.ts +++ b/src/Coscine.Api/@coscine/api/project-member-api.ts @@ -201,7 +201,7 @@ export const ProjectMemberApiAxiosParamCreator = function (configuration?: Confi * @param {string} projectId The Id or slug of the project. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -363,7 +363,7 @@ export const ProjectMemberApiFp = function(configuration?: Configuration) { * @param {string} projectId The Id or slug of the project. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -566,7 +566,7 @@ export interface ProjectMemberApiGetMembershipsRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof ProjectMemberApiGetMemberships */ diff --git a/src/Coscine.Api/@coscine/api/project-quota-api.ts b/src/Coscine.Api/@coscine/api/project-quota-api.ts index a57e633..2f594e7 100644 --- a/src/Coscine.Api/@coscine/api/project-quota-api.ts +++ b/src/Coscine.Api/@coscine/api/project-quota-api.ts @@ -117,7 +117,7 @@ export const ProjectQuotaApiAxiosParamCreator = function (configuration?: Config * @param {string} projectId The Id or slug of the project. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -251,7 +251,7 @@ export const ProjectQuotaApiFp = function(configuration?: Configuration) { * @param {string} projectId The Id or slug of the project. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -392,7 +392,7 @@ export interface ProjectQuotaApiGetProjectQuotasRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof ProjectQuotaApiGetProjectQuotas */ diff --git a/src/Coscine.Api/@coscine/api/project-resource-api.ts b/src/Coscine.Api/@coscine/api/project-resource-api.ts index 30215a4..9b0b6c8 100644 --- a/src/Coscine.Api/@coscine/api/project-resource-api.ts +++ b/src/Coscine.Api/@coscine/api/project-resource-api.ts @@ -201,7 +201,7 @@ export const ProjectResourceApiAxiosParamCreator = function (configuration?: Con * @param {string} projectId The Id or slug of the project. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -363,7 +363,7 @@ export const ProjectResourceApiFp = function(configuration?: Configuration) { * @param {string} projectId The Id or slug of the project. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -566,7 +566,7 @@ export interface ProjectResourceApiGetResourcesForProjectRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof ProjectResourceApiGetResourcesForProject */ diff --git a/src/Coscine.Api/@coscine/api/resource-type-api.ts b/src/Coscine.Api/@coscine/api/resource-type-api.ts index abb0f3a..25cf456 100644 --- a/src/Coscine.Api/@coscine/api/resource-type-api.ts +++ b/src/Coscine.Api/@coscine/api/resource-type-api.ts @@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../../base'; // @ts-ignore -import type { GitlabBranchDtoIEnumerableResponse } from '../../@coscine/model'; -// @ts-ignore -import type { GitlabProjectDtoIEnumerableResponse } from '../../@coscine/model'; -// @ts-ignore -import type { GitlabProjectDtoResponse } from '../../@coscine/model'; -// @ts-ignore import type { ResourceTypeInformationDtoIEnumerableResponse } from '../../@coscine/model'; // @ts-ignore import type { ResourceTypeInformationDtoResponse } from '../../@coscine/model'; @@ -61,104 +55,6 @@ export const ResourceTypeApiAxiosParamCreator = function (configuration?: Config - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - * @param {number} gitlabProjectId The ID of the GitLab project. - * @param {string} domain Domain/Host of the GitLab Provider. - * @param {string} accessToken GitLab Project or Group Access Token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAllGitlabBranchesForProject: async (gitlabProjectId: number, domain: string, accessToken: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { - // verify required parameter 'gitlabProjectId' is not null or undefined - assertParamExists('getAllGitlabBranchesForProject', 'gitlabProjectId', gitlabProjectId) - // verify required parameter 'domain' is not null or undefined - assertParamExists('getAllGitlabBranchesForProject', 'domain', domain) - // verify required parameter 'accessToken' is not null or undefined - assertParamExists('getAllGitlabBranchesForProject', 'accessToken', accessToken) - const localVarPath = `/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches` - .replace(`{${"gitlabProjectId"}}`, encodeURIComponent(String(gitlabProjectId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication Bearer required - await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - - if (domain !== undefined) { - localVarQueryParameter['Domain'] = domain; - } - - if (accessToken !== undefined) { - localVarQueryParameter['AccessToken'] = accessToken; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - * @param {string} domain Domain/Host of the GitLab Provider. - * @param {string} accessToken GitLab Project or Group Access Token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAllGitlabProjects: async (domain: string, accessToken: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { - // verify required parameter 'domain' is not null or undefined - assertParamExists('getAllGitlabProjects', 'domain', domain) - // verify required parameter 'accessToken' is not null or undefined - assertParamExists('getAllGitlabProjects', 'accessToken', accessToken) - const localVarPath = `/api/v2/resource-types/gitlab/projects`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication Bearer required - await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - - if (domain !== undefined) { - localVarQueryParameter['Domain'] = domain; - } - - if (accessToken !== undefined) { - localVarQueryParameter['AccessToken'] = accessToken; - } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -192,57 +88,6 @@ export const ResourceTypeApiAxiosParamCreator = function (configuration?: Config - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - * @param {number} gitlabProjectId The ID of the GitLab project. - * @param {string} domain Domain/Host of the GitLab Provider. - * @param {string} accessToken GitLab Project or Group Access Token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getGitlabProject: async (gitlabProjectId: number, domain: string, accessToken: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { - // verify required parameter 'gitlabProjectId' is not null or undefined - assertParamExists('getGitlabProject', 'gitlabProjectId', gitlabProjectId) - // verify required parameter 'domain' is not null or undefined - assertParamExists('getGitlabProject', 'domain', domain) - // verify required parameter 'accessToken' is not null or undefined - assertParamExists('getGitlabProject', 'accessToken', accessToken) - const localVarPath = `/api/v2/resource-types/gitlab/projects/{gitlabProjectId}` - .replace(`{${"gitlabProjectId"}}`, encodeURIComponent(String(gitlabProjectId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication Bearer required - await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - - if (domain !== undefined) { - localVarQueryParameter['Domain'] = domain; - } - - if (accessToken !== undefined) { - localVarQueryParameter['AccessToken'] = accessToken; - } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -311,35 +156,6 @@ export const ResourceTypeApiFp = function(configuration?: Configuration) { const localVarOperationServerBasePath = operationServerMap['ResourceTypeApi.apiV2ResourceTypesOptions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, - /** - * - * @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - * @param {number} gitlabProjectId The ID of the GitLab project. - * @param {string} domain Domain/Host of the GitLab Provider. - * @param {string} accessToken GitLab Project or Group Access Token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getAllGitlabBranchesForProject(gitlabProjectId: number, domain: string, accessToken: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitlabBranchDtoIEnumerableResponse>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGitlabBranchesForProject(gitlabProjectId, domain, accessToken, options); - const localVarOperationServerIndex = configuration?.serverIndex ?? 0; - const localVarOperationServerBasePath = operationServerMap['ResourceTypeApi.getAllGitlabBranchesForProject']?.[localVarOperationServerIndex]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); - }, - /** - * - * @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - * @param {string} domain Domain/Host of the GitLab Provider. - * @param {string} accessToken GitLab Project or Group Access Token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getAllGitlabProjects(domain: string, accessToken: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitlabProjectDtoIEnumerableResponse>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGitlabProjects(domain, accessToken, options); - const localVarOperationServerIndex = configuration?.serverIndex ?? 0; - const localVarOperationServerBasePath = operationServerMap['ResourceTypeApi.getAllGitlabProjects']?.[localVarOperationServerIndex]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); - }, /** * * @summary Retrieves the entire global resource types information. @@ -352,21 +168,6 @@ export const ResourceTypeApiFp = function(configuration?: Configuration) { const localVarOperationServerBasePath = operationServerMap['ResourceTypeApi.getAllResourceTypesInformation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, - /** - * - * @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - * @param {number} gitlabProjectId The ID of the GitLab project. - * @param {string} domain Domain/Host of the GitLab Provider. - * @param {string} accessToken GitLab Project or Group Access Token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async getGitlabProject(gitlabProjectId: number, domain: string, accessToken: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitlabProjectDtoResponse>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getGitlabProject(gitlabProjectId, domain, accessToken, options); - const localVarOperationServerIndex = configuration?.serverIndex ?? 0; - const localVarOperationServerBasePath = operationServerMap['ResourceTypeApi.getGitlabProject']?.[localVarOperationServerIndex]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); - }, /** * * @summary Retrieves the resource type information for a specific resource type. @@ -399,26 +200,6 @@ export const ResourceTypeApiFactory = function (configuration?: Configuration, b apiV2ResourceTypesOptions(options?: RawAxiosRequestConfig): AxiosPromise<void> { return localVarFp.apiV2ResourceTypesOptions(options).then((request) => request(axios, basePath)); }, - /** - * - * @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - * @param {ResourceTypeApiGetAllGitlabBranchesForProjectRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAllGitlabBranchesForProject(requestParameters: ResourceTypeApiGetAllGitlabBranchesForProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitlabBranchDtoIEnumerableResponse> { - return localVarFp.getAllGitlabBranchesForProject(requestParameters.gitlabProjectId, requestParameters.domain, requestParameters.accessToken, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - * @param {ResourceTypeApiGetAllGitlabProjectsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAllGitlabProjects(requestParameters: ResourceTypeApiGetAllGitlabProjectsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitlabProjectDtoIEnumerableResponse> { - return localVarFp.getAllGitlabProjects(requestParameters.domain, requestParameters.accessToken, options).then((request) => request(axios, basePath)); - }, /** * * @summary Retrieves the entire global resource types information. @@ -428,16 +209,6 @@ export const ResourceTypeApiFactory = function (configuration?: Configuration, b getAllResourceTypesInformation(options?: RawAxiosRequestConfig): AxiosPromise<ResourceTypeInformationDtoIEnumerableResponse> { return localVarFp.getAllResourceTypesInformation(options).then((request) => request(axios, basePath)); }, - /** - * - * @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - * @param {ResourceTypeApiGetGitlabProjectRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getGitlabProject(requestParameters: ResourceTypeApiGetGitlabProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitlabProjectDtoResponse> { - return localVarFp.getGitlabProject(requestParameters.gitlabProjectId, requestParameters.domain, requestParameters.accessToken, options).then((request) => request(axios, basePath)); - }, /** * * @summary Retrieves the resource type information for a specific resource type. @@ -451,83 +222,6 @@ export const ResourceTypeApiFactory = function (configuration?: Configuration, b }; }; -/** - * Request parameters for getAllGitlabBranchesForProject operation in ResourceTypeApi. - * @export - * @interface ResourceTypeApiGetAllGitlabBranchesForProjectRequest - */ -export interface ResourceTypeApiGetAllGitlabBranchesForProjectRequest { - /** - * The ID of the GitLab project. - * @type {number} - * @memberof ResourceTypeApiGetAllGitlabBranchesForProject - */ - readonly gitlabProjectId: number - - /** - * Domain/Host of the GitLab Provider. - * @type {string} - * @memberof ResourceTypeApiGetAllGitlabBranchesForProject - */ - readonly domain: string - - /** - * GitLab Project or Group Access Token. - * @type {string} - * @memberof ResourceTypeApiGetAllGitlabBranchesForProject - */ - readonly accessToken: string -} - -/** - * Request parameters for getAllGitlabProjects operation in ResourceTypeApi. - * @export - * @interface ResourceTypeApiGetAllGitlabProjectsRequest - */ -export interface ResourceTypeApiGetAllGitlabProjectsRequest { - /** - * Domain/Host of the GitLab Provider. - * @type {string} - * @memberof ResourceTypeApiGetAllGitlabProjects - */ - readonly domain: string - - /** - * GitLab Project or Group Access Token. - * @type {string} - * @memberof ResourceTypeApiGetAllGitlabProjects - */ - readonly accessToken: string -} - -/** - * Request parameters for getGitlabProject operation in ResourceTypeApi. - * @export - * @interface ResourceTypeApiGetGitlabProjectRequest - */ -export interface ResourceTypeApiGetGitlabProjectRequest { - /** - * The ID of the GitLab project. - * @type {number} - * @memberof ResourceTypeApiGetGitlabProject - */ - readonly gitlabProjectId: number - - /** - * Domain/Host of the GitLab Provider. - * @type {string} - * @memberof ResourceTypeApiGetGitlabProject - */ - readonly domain: string - - /** - * GitLab Project or Group Access Token. - * @type {string} - * @memberof ResourceTypeApiGetGitlabProject - */ - readonly accessToken: string -} - /** * Request parameters for getResourceTypeInformation operation in ResourceTypeApi. * @export @@ -560,30 +254,6 @@ export class ResourceTypeApi extends BaseAPI { return ResourceTypeApiFp(this.configuration).apiV2ResourceTypesOptions(options).then((request) => request(this.axios, this.basePath)); } - /** - * - * @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - * @param {ResourceTypeApiGetAllGitlabBranchesForProjectRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResourceTypeApi - */ - public getAllGitlabBranchesForProject(requestParameters: ResourceTypeApiGetAllGitlabBranchesForProjectRequest, options?: RawAxiosRequestConfig) { - return ResourceTypeApiFp(this.configuration).getAllGitlabBranchesForProject(requestParameters.gitlabProjectId, requestParameters.domain, requestParameters.accessToken, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - * @param {ResourceTypeApiGetAllGitlabProjectsRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResourceTypeApi - */ - public getAllGitlabProjects(requestParameters: ResourceTypeApiGetAllGitlabProjectsRequest, options?: RawAxiosRequestConfig) { - return ResourceTypeApiFp(this.configuration).getAllGitlabProjects(requestParameters.domain, requestParameters.accessToken, options).then((request) => request(this.axios, this.basePath)); - } - /** * * @summary Retrieves the entire global resource types information. @@ -595,18 +265,6 @@ export class ResourceTypeApi extends BaseAPI { return ResourceTypeApiFp(this.configuration).getAllResourceTypesInformation(options).then((request) => request(this.axios, this.basePath)); } - /** - * - * @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - * @param {ResourceTypeApiGetGitlabProjectRequest} requestParameters Request parameters. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ResourceTypeApi - */ - public getGitlabProject(requestParameters: ResourceTypeApiGetGitlabProjectRequest, options?: RawAxiosRequestConfig) { - return ResourceTypeApiFp(this.configuration).getGitlabProject(requestParameters.gitlabProjectId, requestParameters.domain, requestParameters.accessToken, options).then((request) => request(this.axios, this.basePath)); - } - /** * * @summary Retrieves the resource type information for a specific resource type. diff --git a/src/Coscine.Api/@coscine/api/resource-type-git-lab-api.ts b/src/Coscine.Api/@coscine/api/resource-type-git-lab-api.ts new file mode 100644 index 0000000..17904c1 --- /dev/null +++ b/src/Coscine.Api/@coscine/api/resource-type-git-lab-api.ts @@ -0,0 +1,467 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Coscine Web API + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../../base'; +// @ts-ignore +import type { GitlabBranchDtoIEnumerableResponse } from '../../@coscine/model'; +// @ts-ignore +import type { GitlabProjectDtoIEnumerableResponse } from '../../@coscine/model'; +// @ts-ignore +import type { GitlabProjectDtoResponse } from '../../@coscine/model'; +/** + * ResourceTypeGitLabApi - axios parameter creator + * @export + */ +export const ResourceTypeGitLabApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Responds with the HTTP methods allowed for the endpoint. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiV2ResourceTypesGitlabOptions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { + const localVarPath = `/api/v2/resource-types/gitlab`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'OPTIONS', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + * @param {number} gitlabProjectId The ID of the GitLab project. + * @param {string} domain Domain/Host of the GitLab Provider. + * @param {string} accessToken GitLab Project or Group Access Token. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllGitlabBranchesForProject: async (gitlabProjectId: number, domain: string, accessToken: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { + // verify required parameter 'gitlabProjectId' is not null or undefined + assertParamExists('getAllGitlabBranchesForProject', 'gitlabProjectId', gitlabProjectId) + // verify required parameter 'domain' is not null or undefined + assertParamExists('getAllGitlabBranchesForProject', 'domain', domain) + // verify required parameter 'accessToken' is not null or undefined + assertParamExists('getAllGitlabBranchesForProject', 'accessToken', accessToken) + const localVarPath = `/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches` + .replace(`{${"gitlabProjectId"}}`, encodeURIComponent(String(gitlabProjectId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (domain !== undefined) { + localVarQueryParameter['Domain'] = domain; + } + + if (accessToken !== undefined) { + localVarQueryParameter['AccessToken'] = accessToken; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + * @param {string} domain Domain/Host of the GitLab Provider. + * @param {string} accessToken GitLab Project or Group Access Token. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllGitlabProjects: async (domain: string, accessToken: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { + // verify required parameter 'domain' is not null or undefined + assertParamExists('getAllGitlabProjects', 'domain', domain) + // verify required parameter 'accessToken' is not null or undefined + assertParamExists('getAllGitlabProjects', 'accessToken', accessToken) + const localVarPath = `/api/v2/resource-types/gitlab/projects`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (domain !== undefined) { + localVarQueryParameter['Domain'] = domain; + } + + if (accessToken !== undefined) { + localVarQueryParameter['AccessToken'] = accessToken; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + * @param {number} gitlabProjectId The ID of the GitLab project. + * @param {string} domain Domain/Host of the GitLab Provider. + * @param {string} accessToken GitLab Project or Group Access Token. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGitlabProject: async (gitlabProjectId: number, domain: string, accessToken: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { + // verify required parameter 'gitlabProjectId' is not null or undefined + assertParamExists('getGitlabProject', 'gitlabProjectId', gitlabProjectId) + // verify required parameter 'domain' is not null or undefined + assertParamExists('getGitlabProject', 'domain', domain) + // verify required parameter 'accessToken' is not null or undefined + assertParamExists('getGitlabProject', 'accessToken', accessToken) + const localVarPath = `/api/v2/resource-types/gitlab/projects/{gitlabProjectId}` + .replace(`{${"gitlabProjectId"}}`, encodeURIComponent(String(gitlabProjectId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (domain !== undefined) { + localVarQueryParameter['Domain'] = domain; + } + + if (accessToken !== undefined) { + localVarQueryParameter['AccessToken'] = accessToken; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * ResourceTypeGitLabApi - functional programming interface + * @export + */ +export const ResourceTypeGitLabApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ResourceTypeGitLabApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Responds with the HTTP methods allowed for the endpoint. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiV2ResourceTypesGitlabOptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ResourceTypesGitlabOptions(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ResourceTypeGitLabApi.apiV2ResourceTypesGitlabOptions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + * @param {number} gitlabProjectId The ID of the GitLab project. + * @param {string} domain Domain/Host of the GitLab Provider. + * @param {string} accessToken GitLab Project or Group Access Token. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllGitlabBranchesForProject(gitlabProjectId: number, domain: string, accessToken: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitlabBranchDtoIEnumerableResponse>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGitlabBranchesForProject(gitlabProjectId, domain, accessToken, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ResourceTypeGitLabApi.getAllGitlabBranchesForProject']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + * @param {string} domain Domain/Host of the GitLab Provider. + * @param {string} accessToken GitLab Project or Group Access Token. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getAllGitlabProjects(domain: string, accessToken: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitlabProjectDtoIEnumerableResponse>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllGitlabProjects(domain, accessToken, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ResourceTypeGitLabApi.getAllGitlabProjects']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + * @param {number} gitlabProjectId The ID of the GitLab project. + * @param {string} domain Domain/Host of the GitLab Provider. + * @param {string} accessToken GitLab Project or Group Access Token. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getGitlabProject(gitlabProjectId: number, domain: string, accessToken: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitlabProjectDtoResponse>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGitlabProject(gitlabProjectId, domain, accessToken, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ResourceTypeGitLabApi.getGitlabProject']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * ResourceTypeGitLabApi - factory interface + * @export + */ +export const ResourceTypeGitLabApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ResourceTypeGitLabApiFp(configuration) + return { + /** + * + * @summary Responds with the HTTP methods allowed for the endpoint. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiV2ResourceTypesGitlabOptions(options?: RawAxiosRequestConfig): AxiosPromise<void> { + return localVarFp.apiV2ResourceTypesGitlabOptions(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + * @param {ResourceTypeGitLabApiGetAllGitlabBranchesForProjectRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllGitlabBranchesForProject(requestParameters: ResourceTypeGitLabApiGetAllGitlabBranchesForProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitlabBranchDtoIEnumerableResponse> { + return localVarFp.getAllGitlabBranchesForProject(requestParameters.gitlabProjectId, requestParameters.domain, requestParameters.accessToken, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + * @param {ResourceTypeGitLabApiGetAllGitlabProjectsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllGitlabProjects(requestParameters: ResourceTypeGitLabApiGetAllGitlabProjectsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitlabProjectDtoIEnumerableResponse> { + return localVarFp.getAllGitlabProjects(requestParameters.domain, requestParameters.accessToken, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + * @param {ResourceTypeGitLabApiGetGitlabProjectRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGitlabProject(requestParameters: ResourceTypeGitLabApiGetGitlabProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitlabProjectDtoResponse> { + return localVarFp.getGitlabProject(requestParameters.gitlabProjectId, requestParameters.domain, requestParameters.accessToken, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for getAllGitlabBranchesForProject operation in ResourceTypeGitLabApi. + * @export + * @interface ResourceTypeGitLabApiGetAllGitlabBranchesForProjectRequest + */ +export interface ResourceTypeGitLabApiGetAllGitlabBranchesForProjectRequest { + /** + * The ID of the GitLab project. + * @type {number} + * @memberof ResourceTypeGitLabApiGetAllGitlabBranchesForProject + */ + readonly gitlabProjectId: number + + /** + * Domain/Host of the GitLab Provider. + * @type {string} + * @memberof ResourceTypeGitLabApiGetAllGitlabBranchesForProject + */ + readonly domain: string + + /** + * GitLab Project or Group Access Token. + * @type {string} + * @memberof ResourceTypeGitLabApiGetAllGitlabBranchesForProject + */ + readonly accessToken: string +} + +/** + * Request parameters for getAllGitlabProjects operation in ResourceTypeGitLabApi. + * @export + * @interface ResourceTypeGitLabApiGetAllGitlabProjectsRequest + */ +export interface ResourceTypeGitLabApiGetAllGitlabProjectsRequest { + /** + * Domain/Host of the GitLab Provider. + * @type {string} + * @memberof ResourceTypeGitLabApiGetAllGitlabProjects + */ + readonly domain: string + + /** + * GitLab Project or Group Access Token. + * @type {string} + * @memberof ResourceTypeGitLabApiGetAllGitlabProjects + */ + readonly accessToken: string +} + +/** + * Request parameters for getGitlabProject operation in ResourceTypeGitLabApi. + * @export + * @interface ResourceTypeGitLabApiGetGitlabProjectRequest + */ +export interface ResourceTypeGitLabApiGetGitlabProjectRequest { + /** + * The ID of the GitLab project. + * @type {number} + * @memberof ResourceTypeGitLabApiGetGitlabProject + */ + readonly gitlabProjectId: number + + /** + * Domain/Host of the GitLab Provider. + * @type {string} + * @memberof ResourceTypeGitLabApiGetGitlabProject + */ + readonly domain: string + + /** + * GitLab Project or Group Access Token. + * @type {string} + * @memberof ResourceTypeGitLabApiGetGitlabProject + */ + readonly accessToken: string +} + +/** + * ResourceTypeGitLabApi - object-oriented interface + * @export + * @class ResourceTypeGitLabApi + * @extends {BaseAPI} + */ +export class ResourceTypeGitLabApi extends BaseAPI { + /** + * + * @summary Responds with the HTTP methods allowed for the endpoint. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ResourceTypeGitLabApi + */ + public apiV2ResourceTypesGitlabOptions(options?: RawAxiosRequestConfig) { + return ResourceTypeGitLabApiFp(this.configuration).apiV2ResourceTypesGitlabOptions(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + * @param {ResourceTypeGitLabApiGetAllGitlabBranchesForProjectRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ResourceTypeGitLabApi + */ + public getAllGitlabBranchesForProject(requestParameters: ResourceTypeGitLabApiGetAllGitlabBranchesForProjectRequest, options?: RawAxiosRequestConfig) { + return ResourceTypeGitLabApiFp(this.configuration).getAllGitlabBranchesForProject(requestParameters.gitlabProjectId, requestParameters.domain, requestParameters.accessToken, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + * @param {ResourceTypeGitLabApiGetAllGitlabProjectsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ResourceTypeGitLabApi + */ + public getAllGitlabProjects(requestParameters: ResourceTypeGitLabApiGetAllGitlabProjectsRequest, options?: RawAxiosRequestConfig) { + return ResourceTypeGitLabApiFp(this.configuration).getAllGitlabProjects(requestParameters.domain, requestParameters.accessToken, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + * @param {ResourceTypeGitLabApiGetGitlabProjectRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ResourceTypeGitLabApi + */ + public getGitlabProject(requestParameters: ResourceTypeGitLabApiGetGitlabProjectRequest, options?: RawAxiosRequestConfig) { + return ResourceTypeGitLabApiFp(this.configuration).getGitlabProject(requestParameters.gitlabProjectId, requestParameters.domain, requestParameters.accessToken, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/Coscine.Api/@coscine/api/role-api.ts b/src/Coscine.Api/@coscine/api/role-api.ts index ac707b6..8027f64 100644 --- a/src/Coscine.Api/@coscine/api/role-api.ts +++ b/src/Coscine.Api/@coscine/api/role-api.ts @@ -106,7 +106,7 @@ export const RoleApiAxiosParamCreator = function (configuration?: Configuration) * @summary Retrieves all roles. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -189,7 +189,7 @@ export const RoleApiFp = function(configuration?: Configuration) { * @summary Retrieves all roles. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -276,7 +276,7 @@ export interface RoleApiGetRolesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof RoleApiGetRoles */ diff --git a/src/Coscine.Api/@coscine/api/search-api.ts b/src/Coscine.Api/@coscine/api/search-api.ts index fa5fd85..a067724 100644 --- a/src/Coscine.Api/@coscine/api/search-api.ts +++ b/src/Coscine.Api/@coscine/api/search-api.ts @@ -73,7 +73,7 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio * @param {SearchCategoryType} [category] Set the category filter * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -163,7 +163,7 @@ export const SearchApiFp = function(configuration?: Configuration) { * @param {SearchCategoryType} [category] Set the category filter * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -254,7 +254,7 @@ export interface SearchApiGetSearchResultsRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof SearchApiGetSearchResults */ diff --git a/src/Coscine.Api/@coscine/api/self-api-token-api.ts b/src/Coscine.Api/@coscine/api/self-api-token-api.ts index 7892914..63aebc5 100644 --- a/src/Coscine.Api/@coscine/api/self-api-token-api.ts +++ b/src/Coscine.Api/@coscine/api/self-api-token-api.ts @@ -108,7 +108,7 @@ export const SelfApiTokenApiAxiosParamCreator = function (configuration?: Config * @summary Retrieves all API tokens for the current authenticated user. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -265,7 +265,7 @@ export const SelfApiTokenApiFp = function(configuration?: Configuration) { * @summary Retrieves all API tokens for the current authenticated user. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -398,7 +398,7 @@ export interface SelfApiTokenApiGetAllApiTokensRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof SelfApiTokenApiGetAllApiTokens */ diff --git a/src/Coscine.Api/@coscine/api/system-status-api.ts b/src/Coscine.Api/@coscine/api/system-status-api.ts index 8dc1ab3..1be6ee6 100644 --- a/src/Coscine.Api/@coscine/api/system-status-api.ts +++ b/src/Coscine.Api/@coscine/api/system-status-api.ts @@ -75,7 +75,7 @@ export const SystemStatusApiAxiosParamCreator = function (configuration?: Config * @param {string} [searchTerm] Filter messages by text contained in the messages or title. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -161,7 +161,7 @@ export const SystemStatusApiAxiosParamCreator = function (configuration?: Config * @param {string} [searchTerm] Filter messages by text contained in the messages or title. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -269,7 +269,7 @@ export const SystemStatusApiFp = function(configuration?: Configuration) { * @param {string} [searchTerm] Filter messages by text contained in the messages or title. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -290,7 +290,7 @@ export const SystemStatusApiFp = function(configuration?: Configuration) { * @param {string} [searchTerm] Filter messages by text contained in the messages or title. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -405,7 +405,7 @@ export interface SystemStatusApiGetInternalMessagesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof SystemStatusApiGetInternalMessages */ @@ -475,7 +475,7 @@ export interface SystemStatusApiGetNocMessagesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof SystemStatusApiGetNocMessages */ diff --git a/src/Coscine.Api/@coscine/api/title-api.ts b/src/Coscine.Api/@coscine/api/title-api.ts index bb64a58..cd0a4f4 100644 --- a/src/Coscine.Api/@coscine/api/title-api.ts +++ b/src/Coscine.Api/@coscine/api/title-api.ts @@ -106,7 +106,7 @@ export const TitleApiAxiosParamCreator = function (configuration?: Configuration * @summary Retrieves all titles. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -189,7 +189,7 @@ export const TitleApiFp = function(configuration?: Configuration) { * @summary Retrieves all titles. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -276,7 +276,7 @@ export interface TitleApiGetTitlesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof TitleApiGetTitles */ diff --git a/src/Coscine.Api/@coscine/api/tree-api.ts b/src/Coscine.Api/@coscine/api/tree-api.ts index afa680d..1b133f8 100644 --- a/src/Coscine.Api/@coscine/api/tree-api.ts +++ b/src/Coscine.Api/@coscine/api/tree-api.ts @@ -229,7 +229,7 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration) * @param {string} [path] Gets or sets the path of the file tree. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -293,7 +293,7 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration) * @param {boolean} [includeProvenance] Gets or sets if provenance metadata should be included. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -593,7 +593,7 @@ export const TreeApiFp = function(configuration?: Configuration) { * @param {string} [path] Gets or sets the path of the file tree. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -614,7 +614,7 @@ export const TreeApiFp = function(configuration?: Configuration) { * @param {boolean} [includeProvenance] Gets or sets if provenance metadata should be included. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -923,7 +923,7 @@ export interface TreeApiGetFileTreeRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof TreeApiGetFileTree */ @@ -993,7 +993,7 @@ export interface TreeApiGetMetadataTreeRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof TreeApiGetMetadataTree */ diff --git a/src/Coscine.Api/@coscine/api/visibility-api.ts b/src/Coscine.Api/@coscine/api/visibility-api.ts index 2aa5c6a..f0cf7b2 100644 --- a/src/Coscine.Api/@coscine/api/visibility-api.ts +++ b/src/Coscine.Api/@coscine/api/visibility-api.ts @@ -69,7 +69,7 @@ export const VisibilityApiAxiosParamCreator = function (configuration?: Configur * @summary Retrieves all visibilities. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -176,7 +176,7 @@ export const VisibilityApiFp = function(configuration?: Configuration) { * @summary Retrieves all visibilities. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -262,7 +262,7 @@ export interface VisibilityApiGetVisibilitiesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof VisibilityApiGetVisibilities */ diff --git a/src/Coscine.Api/@coscine/api/vocabulary-api.ts b/src/Coscine.Api/@coscine/api/vocabulary-api.ts index 96440c2..32535e8 100644 --- a/src/Coscine.Api/@coscine/api/vocabulary-api.ts +++ b/src/Coscine.Api/@coscine/api/vocabulary-api.ts @@ -75,7 +75,7 @@ export const VocabularyApiAxiosParamCreator = function (configuration?: Configur * @param {AcceptedLanguage} [language] Gets or sets the language for which the vocabularies are requested. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -153,14 +153,13 @@ export const VocabularyApiAxiosParamCreator = function (configuration?: Configur // authentication Bearer required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (acceptLanguage != null) { localVarHeaderParameter['Accept-Language'] = typeof acceptLanguage === 'string' ? acceptLanguage : JSON.stringify(acceptLanguage); } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -178,7 +177,7 @@ export const VocabularyApiAxiosParamCreator = function (configuration?: Configur * @param {AcceptedLanguage} [language] Gets or sets the language for which the vocabulary instances are requested. * @param {number} [pageSize] Number of items per page. The maximum number of items per page is `150`. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -264,7 +263,7 @@ export const VocabularyApiFp = function(configuration?: Configuration) { * @param {AcceptedLanguage} [language] Gets or sets the language for which the vocabularies are requested. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. * @param {number} [pageSize] The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -296,7 +295,7 @@ export const VocabularyApiFp = function(configuration?: Configuration) { * @param {AcceptedLanguage} [language] Gets or sets the language for which the vocabulary instances are requested. * @param {number} [pageSize] Number of items per page. The maximum number of items per page is `150`. * @param {number} [pageNumber] The desired page number. Should be greater than or equal to 1. Default is 1. - * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * @param {string} [orderBy] Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -393,7 +392,7 @@ export interface VocabularyApiGetVocabulariesRequest { readonly pageSize?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof VocabularyApiGetVocabularies */ @@ -463,7 +462,7 @@ export interface VocabularyApiGetVocabularyInstancesRequest { readonly pageNumber?: number /** - * Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. + * Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. * @type {string} * @memberof VocabularyApiGetVocabularyInstances */ diff --git a/src/Coscine.Api/@coscine/model/file-system-storage-options-dto.ts b/src/Coscine.Api/@coscine/model/file-system-storage-options-dto.ts new file mode 100644 index 0000000..5531ed2 --- /dev/null +++ b/src/Coscine.Api/@coscine/model/file-system-storage-options-dto.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Coscine Web API + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Represents the data transfer object (DTO) for FileSystemStorage options. + * @export + * @interface FileSystemStorageOptionsDto + */ +export interface FileSystemStorageOptionsDto { + /** + * The directory where the files are stored. + * @type {string} + * @memberof FileSystemStorageOptionsDto + */ + 'directory': string; +} + diff --git a/src/Coscine.Api/@coscine/model/index.ts b/src/Coscine.Api/@coscine/model/index.ts index aa9b248..b5029dd 100644 --- a/src/Coscine.Api/@coscine/model/index.ts +++ b/src/Coscine.Api/@coscine/model/index.ts @@ -26,6 +26,7 @@ export * from './extracted-metadata-tree-for-update-dto'; export * from './file-action-dto'; export * from './file-action-http-method'; export * from './file-actions-dto'; +export * from './file-system-storage-options-dto'; export * from './file-tree-dto'; export * from './file-tree-dto-paged-response'; export * from './fixed-value-for-resource-manipulation-dto'; diff --git a/src/Coscine.Api/@coscine/model/quota-unit.ts b/src/Coscine.Api/@coscine/model/quota-unit.ts index 64432e9..13563fe 100644 --- a/src/Coscine.Api/@coscine/model/quota-unit.ts +++ b/src/Coscine.Api/@coscine/model/quota-unit.ts @@ -21,12 +21,12 @@ */ export const QuotaUnit = { - Byte: 'https://qudt.org/vocab/unit/BYTE', - KibiByte: 'https://qudt.org/vocab/unit/KibiBYTE', - MebiByte: 'https://qudt.org/vocab/unit/MebiBYTE', - GibiByte: 'https://qudt.org/vocab/unit/GibiBYTE', - TebiByte: 'https://qudt.org/vocab/unit/TebiBYTE', - PebiByte: 'https://qudt.org/vocab/unit/PebiBYTE' + HttpsQudtOrgVocabUnitByte: 'https://qudt.org/vocab/unit/BYTE', + HttpsQudtOrgVocabUnitKibiByte: 'https://qudt.org/vocab/unit/KibiBYTE', + HttpsQudtOrgVocabUnitMebiByte: 'https://qudt.org/vocab/unit/MebiBYTE', + HttpsQudtOrgVocabUnitGibiByte: 'https://qudt.org/vocab/unit/GibiBYTE', + HttpsQudtOrgVocabUnitTebiByte: 'https://qudt.org/vocab/unit/TebiBYTE', + HttpsQudtOrgVocabUnitPebiByte: 'https://qudt.org/vocab/unit/PebiBYTE' } as const; export type QuotaUnit = typeof QuotaUnit[keyof typeof QuotaUnit]; diff --git a/src/Coscine.Api/@coscine/model/resource-admin-dto.ts b/src/Coscine.Api/@coscine/model/resource-admin-dto.ts index 3750aae..d6e0cd3 100644 --- a/src/Coscine.Api/@coscine/model/resource-admin-dto.ts +++ b/src/Coscine.Api/@coscine/model/resource-admin-dto.ts @@ -105,13 +105,13 @@ export interface ResourceAdminDto { */ 'usageRights'?: string | null; /** - * Setting for creating a local copy of the metadata. + * Indicates whether a local copy of the metadata is available for the resource. * @type {boolean} * @memberof ResourceAdminDto */ 'metadataLocalCopy'?: boolean; /** - * Setting for metadata extraction. + * Indicates whether metadata extraction is enabled for the resource. * @type {boolean} * @memberof ResourceAdminDto */ @@ -158,6 +158,12 @@ export interface ResourceAdminDto { * @memberof ResourceAdminDto */ 'archived'?: boolean; + /** + * Indicates whether the resource is in maintenance mode. + * @type {boolean} + * @memberof ResourceAdminDto + */ + 'maintenanceMode'?: boolean; /** * The projects associated with the resource. * @type {Array<ProjectMinimalDto>} diff --git a/src/Coscine.Api/@coscine/model/resource-dto.ts b/src/Coscine.Api/@coscine/model/resource-dto.ts index 0fde5ba..e54fd19 100644 --- a/src/Coscine.Api/@coscine/model/resource-dto.ts +++ b/src/Coscine.Api/@coscine/model/resource-dto.ts @@ -99,13 +99,13 @@ export interface ResourceDto { */ 'usageRights'?: string | null; /** - * Setting for creating a local copy of the metadata. + * Indicates whether a local copy of the metadata is available for the resource. * @type {boolean} * @memberof ResourceDto */ 'metadataLocalCopy'?: boolean; /** - * Setting for metadata extraction. + * Indicates whether metadata extraction is enabled for the resource. * @type {boolean} * @memberof ResourceDto */ @@ -152,6 +152,12 @@ export interface ResourceDto { * @memberof ResourceDto */ 'archived'?: boolean; + /** + * Indicates whether the resource is in maintenance mode. + * @type {boolean} + * @memberof ResourceDto + */ + 'maintenanceMode'?: boolean; /** * The projects associated with the resource. * @type {Array<ProjectMinimalDto>} diff --git a/src/Coscine.Api/@coscine/model/resource-for-update-dto.ts b/src/Coscine.Api/@coscine/model/resource-for-update-dto.ts index 6a1b79c..fd5deae 100644 --- a/src/Coscine.Api/@coscine/model/resource-for-update-dto.ts +++ b/src/Coscine.Api/@coscine/model/resource-for-update-dto.ts @@ -107,5 +107,11 @@ export interface ResourceForUpdateDto { * @memberof ResourceForUpdateDto */ 'resourceTypeOptions'?: ResourceTypeOptionsForUpdateDto; + /** + * Indicates whether the resource is in maintenance mode. + * @type {boolean} + * @memberof ResourceForUpdateDto + */ + 'maintenanceMode'?: boolean | null; } diff --git a/src/Coscine.Api/@coscine/model/resource-type-options-dto.ts b/src/Coscine.Api/@coscine/model/resource-type-options-dto.ts index 87607bd..9667c84 100644 --- a/src/Coscine.Api/@coscine/model/resource-type-options-dto.ts +++ b/src/Coscine.Api/@coscine/model/resource-type-options-dto.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import type { FileSystemStorageOptionsDto } from './file-system-storage-options-dto'; // May contain unused imports in some cases // @ts-ignore import type { GitLabOptionsDto } from './git-lab-options-dto'; @@ -62,5 +65,11 @@ export interface ResourceTypeOptionsDto { * @memberof ResourceTypeOptionsDto */ 'rdsS3Worm'?: RdsS3WormOptionsDto; + /** + * + * @type {FileSystemStorageOptionsDto} + * @memberof ResourceTypeOptionsDto + */ + 'fileSystemStorage'?: FileSystemStorageOptionsDto; } diff --git a/src/Coscine.Api/api.ts b/src/Coscine.Api/api.ts index 6ff3909..0c6f291 100644 --- a/src/Coscine.Api/api.ts +++ b/src/Coscine.Api/api.ts @@ -35,6 +35,7 @@ export * from './@coscine/api/project-resource-type-api'; export * from './@coscine/api/provenance-api'; export * from './@coscine/api/resource-api'; export * from './@coscine/api/resource-type-api'; +export * from './@coscine/api/resource-type-git-lab-api'; export * from './@coscine/api/role-api'; export * from './@coscine/api/search-api'; export * from './@coscine/api/self-api'; diff --git a/src/Coscine.Api/configuration.ts b/src/Coscine.Api/configuration.ts index 24434ec..e8734db 100644 --- a/src/Coscine.Api/configuration.ts +++ b/src/Coscine.Api/configuration.ts @@ -89,7 +89,13 @@ export class Configuration { this.accessToken = param.accessToken; this.basePath = param.basePath; this.serverIndex = param.serverIndex; - this.baseOptions = param.baseOptions; + this.baseOptions = { + headers: { + ...param.baseOptions?.headers, + 'User-Agent': "OpenAPI-Generator/typescript-axios" + }, + ...param.baseOptions + }; this.formDataCtor = param.formDataCtor; } -- GitLab