Skip to content
Snippets Groups Projects

New: Made handle endpoint publicly available and other updates

Files

@@ -26,6 +26,8 @@ import { ActivityLogDtoPagedResponse } from '../../@coscine/model';
@@ -26,6 +26,8 @@ import { ActivityLogDtoPagedResponse } from '../../@coscine/model';
// @ts-ignore
// @ts-ignore
import { CoscineHttpMethod } from '../../@coscine/model';
import { CoscineHttpMethod } from '../../@coscine/model';
// @ts-ignore
// @ts-ignore
 
import { DeployedGraphDtoPagedResponse } from '../../@coscine/model';
 
// @ts-ignore
import { MetadataUpdateAdminParameters } from '../../@coscine/model';
import { MetadataUpdateAdminParameters } from '../../@coscine/model';
// @ts-ignore
// @ts-ignore
import { ProjectAdminDtoPagedResponse } from '../../@coscine/model';
import { ProjectAdminDtoPagedResponse } from '../../@coscine/model';
@@ -325,6 +327,54 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration
@@ -325,6 +327,54 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration
 
setSearchParams(localVarUrlObj, localVarQueryParameter);
 
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
 
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
 
 
return {
 
url: toPathString(localVarUrlObj),
 
options: localVarRequestOptions,
 
};
 
},
 
/**
 
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
 
* @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 \&quot;asc\&quot; or \&quot;desc\&quot; and separate properties by commas. Default is asc.
 
* @param {*} [options] Override http request option.
 
* @throws {RequiredError}
 
*/
 
getDeployedGraphs: async (pageNumber?: number, pageSize?: number, orderBy?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
 
const localVarPath = `/api/v2/admin/graphs`;
 
// 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 (pageNumber !== undefined) {
 
localVarQueryParameter['PageNumber'] = pageNumber;
 
}
 
 
if (pageSize !== undefined) {
 
localVarQueryParameter['PageSize'] = pageSize;
 
}
 
 
if (orderBy !== undefined) {
 
localVarQueryParameter['OrderBy'] = orderBy;
 
}
 
 
 
setSearchParams(localVarUrlObj, localVarQueryParameter);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -552,6 +602,21 @@ export const AdminApiFp = function(configuration?: Configuration) {
@@ -552,6 +602,21 @@ export const AdminApiFp = function(configuration?: Configuration) {
const operationBasePath = operationServerMap['AdminApi.getAllUsers']?.[index]?.url;
const operationBasePath = operationServerMap['AdminApi.getAllUsers']?.[index]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
},
},
 
/**
 
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
 
* @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 \&quot;asc\&quot; or \&quot;desc\&quot; and separate properties by commas. Default is asc.
 
* @param {*} [options] Override http request option.
 
* @throws {RequiredError}
 
*/
 
async getDeployedGraphs(pageNumber?: number, pageSize?: number, orderBy?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeployedGraphDtoPagedResponse>> {
 
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployedGraphs(pageNumber, pageSize, orderBy, options);
 
const index = configuration?.serverIndex ?? 0;
 
const operationBasePath = operationServerMap['AdminApi.getDeployedGraphs']?.[index]?.url;
 
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
 
},
/**
/**
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
* @summary Gets a metadata graph.
* @summary Gets a metadata graph.
@@ -653,6 +718,16 @@ export const AdminApiFactory = function (configuration?: Configuration, basePath
@@ -653,6 +718,16 @@ export const AdminApiFactory = function (configuration?: Configuration, basePath
getAllUsers(requestParameters: AdminApiGetAllUsersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<UserDtoPagedResponse> {
getAllUsers(requestParameters: AdminApiGetAllUsersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<UserDtoPagedResponse> {
return localVarFp.getAllUsers(requestParameters.tosAccepted, requestParameters.pageSize, requestParameters.pageNumber, requestParameters.orderBy, options).then((request) => request(axios, basePath));
return localVarFp.getAllUsers(requestParameters.tosAccepted, requestParameters.pageSize, requestParameters.pageNumber, requestParameters.orderBy, options).then((request) => request(axios, basePath));
},
},
 
/**
 
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
 
* @summary Gets all deployed graphs.
 
* @param {AdminApiGetDeployedGraphsRequest} requestParameters Request parameters.
 
* @param {*} [options] Override http request option.
 
* @throws {RequiredError}
 
*/
 
getDeployedGraphs(requestParameters: AdminApiGetDeployedGraphsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<DeployedGraphDtoPagedResponse> {
 
return localVarFp.getDeployedGraphs(requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, options).then((request) => request(axios, basePath));
 
},
/**
/**
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
* @summary Gets a metadata graph.
* @summary Gets a metadata graph.
@@ -882,6 +957,34 @@ export interface AdminApiGetAllUsersRequest {
@@ -882,6 +957,34 @@ export interface AdminApiGetAllUsersRequest {
readonly orderBy?: string
readonly orderBy?: string
}
}
 
/**
 
* Request parameters for getDeployedGraphs operation in AdminApi.
 
* @export
 
* @interface AdminApiGetDeployedGraphsRequest
 
*/
 
export interface AdminApiGetDeployedGraphsRequest {
 
/**
 
* The desired page number. Should be greater than or equal to 1. Default is 1.
 
* @type {number}
 
* @memberof AdminApiGetDeployedGraphs
 
*/
 
readonly pageNumber?: number
 
 
/**
 
* The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10.
 
* @type {number}
 
* @memberof AdminApiGetDeployedGraphs
 
*/
 
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 \&quot;asc\&quot; or \&quot;desc\&quot; and separate properties by commas. Default is asc.
 
* @type {string}
 
* @memberof AdminApiGetDeployedGraphs
 
*/
 
readonly orderBy?: string
 
}
 
/**
/**
* Request parameters for getMetadataGraph operation in AdminApi.
* Request parameters for getMetadataGraph operation in AdminApi.
* @export
* @export
@@ -1011,6 +1114,18 @@ export class AdminApi extends BaseAPI {
@@ -1011,6 +1114,18 @@ export class AdminApi extends BaseAPI {
return AdminApiFp(this.configuration).getAllUsers(requestParameters.tosAccepted, requestParameters.pageSize, requestParameters.pageNumber, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
return AdminApiFp(this.configuration).getAllUsers(requestParameters.tosAccepted, requestParameters.pageSize, requestParameters.pageNumber, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
}
}
 
/**
 
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
 
* @summary Gets all deployed graphs.
 
* @param {AdminApiGetDeployedGraphsRequest} requestParameters Request parameters.
 
* @param {*} [options] Override http request option.
 
* @throws {RequiredError}
 
* @memberof AdminApi
 
*/
 
public getDeployedGraphs(requestParameters: AdminApiGetDeployedGraphsRequest = {}, options?: AxiosRequestConfig) {
 
return AdminApiFp(this.configuration).getDeployedGraphs(requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
 
}
 
/**
/**
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
* <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p>
* @summary Gets a metadata graph.
* @summary Gets a metadata graph.
Loading