Skip to content
Snippets Groups Projects

merge dev into main

Merged Sandra Westerhoff requested to merge dev into main
7 files
+ 36
8
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -187,6 +187,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
/**
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
* @summary Retrieves all projects.
* @param {boolean} [includeOrganizations] Gets or sets a value indicating whether to retrieve the organizations.
* @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.
@@ -194,7 +195,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getProjects: async (topLevel?: boolean, pageNumber?: number, pageSize?: number, orderBy?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
getProjects: async (includeOrganizations?: boolean, topLevel?: boolean, pageNumber?: number, pageSize?: number, orderBy?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/v2/projects`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -210,6 +211,10 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
// authentication Bearer required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
if (includeOrganizations !== undefined) {
localVarQueryParameter['IncludeOrganizations'] = includeOrganizations;
}
if (topLevel !== undefined) {
localVarQueryParameter['TopLevel'] = topLevel;
}
@@ -343,6 +348,7 @@ export const ProjectApiFp = function(configuration?: Configuration) {
/**
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
* @summary Retrieves all projects.
* @param {boolean} [includeOrganizations] Gets or sets a value indicating whether to retrieve the organizations.
* @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.
@@ -350,8 +356,8 @@ export const ProjectApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getProjects(topLevel?: boolean, pageNumber?: number, pageSize?: number, orderBy?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDtoPagedResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getProjects(topLevel, pageNumber, pageSize, orderBy, options);
async getProjects(includeOrganizations?: boolean, topLevel?: boolean, pageNumber?: number, pageSize?: number, orderBy?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDtoPagedResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getProjects(includeOrganizations, topLevel, pageNumber, pageSize, orderBy, options);
const index = configuration?.serverIndex ?? 0;
const operationBasePath = operationServerMap['ProjectApi.getProjects']?.[index]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -427,7 +433,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
* @throws {RequiredError}
*/
getProjects(requestParameters: ProjectApiGetProjectsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<ProjectDtoPagedResponse> {
return localVarFp.getProjects(requestParameters.topLevel, requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, options).then((request) => request(axios, basePath));
return localVarFp.getProjects(requestParameters.includeOrganizations, requestParameters.topLevel, requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, options).then((request) => request(axios, basePath));
},
/**
* <p><strong>Required JWT roles for access:</strong> <code></code>.</p>
@@ -497,6 +503,13 @@ export interface ProjectApiGetProjectRequest {
* @interface ProjectApiGetProjectsRequest
*/
export interface ProjectApiGetProjectsRequest {
/**
* Gets or sets a value indicating whether to retrieve the organizations.
* @type {boolean}
* @memberof ProjectApiGetProjects
*/
readonly includeOrganizations?: boolean
/**
* Gets or sets a value indicating whether to retrieve only top-level projects.
* @type {boolean}
@@ -610,7 +623,7 @@ export class ProjectApi extends BaseAPI {
* @memberof ProjectApi
*/
public getProjects(requestParameters: ProjectApiGetProjectsRequest = {}, options?: AxiosRequestConfig) {
return ProjectApiFp(this.configuration).getProjects(requestParameters.topLevel, requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
return ProjectApiFp(this.configuration).getProjects(requestParameters.includeOrganizations, requestParameters.topLevel, requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
}
/**
Loading