Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • APIv2
  • Experiment/esbuild
  • Fix/xxxx-OpenAPI630
  • Fix/xxxx-migrateLogin
  • Hotfix/1917-vocabCheck
  • Hotfix/2258-saveButtonWorksAsExpected
  • Hotfix/2427-adminTrouble
  • Hotfix/2611-feedback
  • Hotfix/2681-validationErrors
  • Hotfix/xxxx-release
  • Issue/1172-uploadProgress
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1740-ElasticSearchOnCoscineFrontend
  • Issue/1745-coscineConnection
  • Issue/1746-ApplicationProfileStoringMethod
  • Issue/1782-structualDataIntegration
  • Issue/1804-fixedValueFix
  • Issue/1833-newLogin
  • Issue/1861-searchMetadata
  • Issue/1863-paginationForSearch
  • Issue/1926-userProfile
  • Issue/1938-internalHandling
  • Issue/1951-quotaImplementation
  • Issue/1957-resourceAppMigrationNew
  • Issue/1971-projectEditCreateMigration
  • Issue/1972-homeDepot
  • Issue/2001-extendAnalyticsLogger
  • Issue/2008-quotaManagement
  • Issue/2072-wormResourceType
  • Issue/2101-gitLabResTypeUi
  • Issue/2228-userOrganization
  • Issue/2257-proofOfConceptTest
  • Issue/2262-frontendWorkspace
  • Issue/2264-sortSearchResults
  • Issue/2309-docs
  • Issue/2373-fixPagination
  • Issue/2401-advisoryServiceUI2
  • Issue/2414-resourceTypesAffilAndAllocQuota
  • Issue/2434-searchAPI
  • Issue/2435-userApi
  • Issue/2436-projectApi
  • Issue/2438-adminApi
  • Issue/2439-noticeApi
  • Issue/2440-migrateTokenApi
  • Issue/2445-extractedMetadata
  • Issue/2446-addingResponsibleOrganization
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2469-hideDotCoscine
  • Issue/2489-addNotificationManagement
  • Issue/2586-migrateBlob
  • Issue/2587-migrateTreeApi
  • Issue/2589-metadataOrganizationAPI
  • Issue/2627-addPidRecord
  • Issue/2665-extractLogger
  • Issue/2672-fixSfbPidPointing
  • Issue/2732-updatedApiClient
  • Issue/2739-outputCache
  • Issue/2782-correctUsageRights
  • Issue/2829-useHrefProperty
  • Issue/2875-devcontainer
  • Issue/2881-messageController
  • Issue/2900-removeInsituteField
  • Issue/2921-changesToDataPublicationFeature
  • Issue/2926-regAppLogin
  • Issue/2981-dataPubInDb
  • Issue/3011-maintenanceMode
  • Issue/3043-DataStorageNrwResource
  • Issue/3085-useNewApiClient
  • Issue/3133-subProjectsChanges
  • Issue/xxxx-configurableApiHostname
  • Issue/xxxx-excludeModuleAPs
  • Sprint/2021-2022
  • Sprint/2021-23
  • Sprint/2021-24
  • Sprint/2022-01
  • Sprint/2022-05
  • coscine/issues#2727
  • dev
  • main
  • main-testing
  • revert-3c6942bb
  • uiv2
  • x/setup
  • v1.0.0
  • v1.1.0
  • v1.1.1
  • v1.2.0
  • v1.3.0
  • v1.4.0
  • v1.5.0
  • v1.5.1
  • v1.5.2
  • v2.0.0
  • v2.1.0
  • v2.10.0
  • v2.11.0
  • v2.12.0
  • v2.2.0
  • v2.3.0
  • v2.4.0
  • v2.5.0
  • v2.6.0
  • v2.7.0
  • v2.8.0
  • v2.8.1
  • v2.9.0
  • v2.9.1
  • v2.9.2
  • v3.0.0
  • v3.1.0
  • v3.10.0
  • v3.11.0
  • v3.12.0
  • v3.13.0
  • v3.14.0
  • v3.15.0
  • v3.16.0
  • v3.2.0
  • v3.2.1
  • v3.3.0
  • v3.3.1
  • v3.3.2-package.0
  • v3.4.0
  • v3.4.1
  • v3.4.2
  • v3.4.3
  • v3.5.0
  • v3.6.0
  • v3.7.0
  • v3.8.0
  • v3.9.0
131 results

Target

Select target project
  • coscine/frontend/libraries/api-client
1 result
Select Git revision
  • APIv2
  • Experiment/esbuild
  • Fix/xxxx-OpenAPI630
  • Fix/xxxx-migrateLogin
  • Hotfix/1917-vocabCheck
  • Hotfix/2258-saveButtonWorksAsExpected
  • Hotfix/2427-adminTrouble
  • Hotfix/2611-feedback
  • Hotfix/2681-validationErrors
  • Hotfix/xxxx-release
  • Issue/1172-uploadProgress
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1740-ElasticSearchOnCoscineFrontend
  • Issue/1745-coscineConnection
  • Issue/1746-ApplicationProfileStoringMethod
  • Issue/1782-structualDataIntegration
  • Issue/1804-fixedValueFix
  • Issue/1833-newLogin
  • Issue/1861-searchMetadata
  • Issue/1863-paginationForSearch
  • Issue/1926-userProfile
  • Issue/1938-internalHandling
  • Issue/1951-quotaImplementation
  • Issue/1957-resourceAppMigrationNew
  • Issue/1971-projectEditCreateMigration
  • Issue/1972-homeDepot
  • Issue/2001-extendAnalyticsLogger
  • Issue/2008-quotaManagement
  • Issue/2072-wormResourceType
  • Issue/2101-gitLabResTypeUi
  • Issue/2228-userOrganization
  • Issue/2257-proofOfConceptTest
  • Issue/2262-frontendWorkspace
  • Issue/2264-sortSearchResults
  • Issue/2309-docs
  • Issue/2373-fixPagination
  • Issue/2401-advisoryServiceUI2
  • Issue/2414-resourceTypesAffilAndAllocQuota
  • Issue/2434-searchAPI
  • Issue/2435-userApi
  • Issue/2436-projectApi
  • Issue/2438-adminApi
  • Issue/2439-noticeApi
  • Issue/2440-migrateTokenApi
  • Issue/2445-extractedMetadata
  • Issue/2446-addingResponsibleOrganization
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2469-hideDotCoscine
  • Issue/2489-addNotificationManagement
  • Issue/2586-migrateBlob
  • Issue/2587-migrateTreeApi
  • Issue/2589-metadataOrganizationAPI
  • Issue/2627-addPidRecord
  • Issue/2665-extractLogger
  • Issue/2672-fixSfbPidPointing
  • Issue/2732-updatedApiClient
  • Issue/2739-outputCache
  • Issue/2782-correctUsageRights
  • Issue/2829-useHrefProperty
  • Issue/2875-devcontainer
  • Issue/2881-messageController
  • Issue/2900-removeInsituteField
  • Issue/2921-changesToDataPublicationFeature
  • Issue/2926-regAppLogin
  • Issue/2981-dataPubInDb
  • Issue/3011-maintenanceMode
  • Issue/3043-DataStorageNrwResource
  • Issue/3085-useNewApiClient
  • Issue/3133-subProjectsChanges
  • Issue/xxxx-configurableApiHostname
  • Issue/xxxx-excludeModuleAPs
  • Sprint/2021-2022
  • Sprint/2021-23
  • Sprint/2021-24
  • Sprint/2022-01
  • Sprint/2022-05
  • coscine/issues#2727
  • dev
  • main
  • main-testing
  • revert-3c6942bb
  • uiv2
  • x/setup
  • v1.0.0
  • v1.1.0
  • v1.1.1
  • v1.2.0
  • v1.3.0
  • v1.4.0
  • v1.5.0
  • v1.5.1
  • v1.5.2
  • v2.0.0
  • v2.1.0
  • v2.10.0
  • v2.11.0
  • v2.12.0
  • v2.2.0
  • v2.3.0
  • v2.4.0
  • v2.5.0
  • v2.6.0
  • v2.7.0
  • v2.8.0
  • v2.8.1
  • v2.9.0
  • v2.9.1
  • v2.9.2
  • v3.0.0
  • v3.1.0
  • v3.10.0
  • v3.11.0
  • v3.12.0
  • v3.13.0
  • v3.14.0
  • v3.15.0
  • v3.16.0
  • v3.2.0
  • v3.2.1
  • v3.3.0
  • v3.3.1
  • v3.3.2-package.0
  • v3.4.0
  • v3.4.1
  • v3.4.2
  • v3.4.3
  • v3.5.0
  • v3.6.0
  • v3.7.0
  • v3.8.0
  • v3.9.0
131 results
Show changes
Commits on Source (6)
Showing
with 642 additions and 457 deletions
......@@ -24,7 +24,6 @@ yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
......
{
"name": "@coscine/api-client",
"version": "2.4.0",
"version": "2.5.0",
"description": "This project contains the generated api connection classes.",
"keywords": [
"coscine",
......@@ -129,5 +129,5 @@
"dependencies": {
"axios": "^0.21.1"
},
"packageManager": "yarn@3.2.2"
"packageManager": "yarn@3.2.3"
}
wwwroot/*.js
node_modules
typings
dist
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
\ No newline at end of file
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
.gitignore
.npmignore
.openapi-generator-ignore
api.ts
base.ts
common.ts
configuration.ts
git_push.sh
index.ts
5.2.1
\ No newline at end of file
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Pid
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Configuration } from './configuration';
import globalAxios, { AxiosPromise, AxiosInstance } 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, RequestArgs, BaseAPI, RequiredError } from './base';
/**
* Message Object.
* @export
* @interface MessageObject
*/
export interface MessageObject {
/**
* Name of the requester.
* @type {string}
* @memberof MessageObject
*/
name?: string | null;
/**
* Email address of the requester.
* @type {string}
* @memberof MessageObject
*/
email?: string | null;
/**
* Message Text.
* @type {string}
* @memberof MessageObject
*/
message?: string | null;
/**
* Send copy to requester.
* @type {boolean}
* @memberof MessageObject
*/
sendCopy?: boolean;
/**
* Pid of the resource.
* @type {string}
* @memberof MessageObject
*/
pid?: string | null;
/**
* Message Object.
* @type {string}
* @memberof MessageObject
*/
guid?: string | null;
}
/**
* PidApi - axios parameter creator
* @export
*/
export const PidApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Returns a 200, if a PID is valid.
* @param {string} pid PID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
pidIsValid: async (pid: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'pid' is not null or undefined
assertParamExists('pidIsValid', 'pid', pid)
const localVarPath = `/Pid/valid/{pid}`
.replace(`{${"pid"}}`, encodeURIComponent(String(pid)));
// 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 JWT token required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Sends a request to the pid owner.
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
pidSendMailToOwner: async (messageObject: MessageObject, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'messageObject' is not null or undefined
assertParamExists('pidSendMailToOwner', 'messageObject', messageObject)
const localVarPath = `/Pid/sendMailToOwner`;
// 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: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWT token required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
localVarHeaderParameter['Content-Type'] = 'application/json';
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(messageObject, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
}
};
/**
* PidApi - functional programming interface
* @export
*/
export const PidApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = PidApiAxiosParamCreator(configuration)
return {
/**
*
* @summary Returns a 200, if a PID is valid.
* @param {string} pid PID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async pidIsValid(pid: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.pidIsValid(pid, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Sends a request to the pid owner.
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async pidSendMailToOwner(messageObject: MessageObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.pidSendMailToOwner(messageObject, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
};
/**
* PidApi - factory interface
* @export
*/
export const PidApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = PidApiFp(configuration)
return {
/**
*
* @summary Returns a 200, if a PID is valid.
* @param {string} pid PID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
pidIsValid(pid: string, options?: any): AxiosPromise<any> {
return localVarFp.pidIsValid(pid, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Sends a request to the pid owner.
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
pidSendMailToOwner(messageObject: MessageObject, options?: any): AxiosPromise<any> {
return localVarFp.pidSendMailToOwner(messageObject, options).then((request) => request(axios, basePath));
},
};
};
/**
* PidApi - object-oriented interface
* @export
* @class PidApi
* @extends {BaseAPI}
*/
export class PidApi extends BaseAPI {
/**
*
* @summary Returns a 200, if a PID is valid.
* @param {string} pid PID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PidApi
*/
public pidIsValid(pid: string, options?: any) {
return PidApiFp(this.configuration).pidIsValid(pid, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Sends a request to the pid owner.
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PidApi
*/
public pidSendMailToOwner(messageObject: MessageObject, options?: any) {
return PidApiFp(this.configuration).pidSendMailToOwner(messageObject, options).then((request) => request(this.axios, this.basePath));
}
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Pid
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Pid".replace(/\/+$/, "");
/**
*
* @export
*/
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @interface RequestArgs
*/
export interface RequestArgs {
url: string;
options: any;
}
/**
*
* @export
* @class BaseAPI
*/
export class BaseAPI {
protected configuration: Configuration | undefined;
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
}
}
};
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
}
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Pid
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Configuration } from "./configuration";
import { RequiredError, RequestArgs } from "./base";
import { AxiosInstance } from 'axios';
/**
*
* @export
*/
export const DUMMY_BASE_URL = 'https://example.com'
/**
*
* @throws {RequiredError}
* @export
*/
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
if (paramValue === null || paramValue === undefined) {
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
}
}
/**
*
* @export
*/
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
if (configuration && configuration.apiKey) {
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
? await configuration.apiKey(keyParamName)
: await configuration.apiKey;
object[keyParamName] = localVarApiKeyValue;
}
}
/**
*
* @export
*/
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
if (configuration && (configuration.username || configuration.password)) {
object["auth"] = { username: configuration.username, password: configuration.password };
}
}
/**
*
* @export
*/
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
if (configuration && configuration.accessToken) {
const accessToken = typeof configuration.accessToken === 'function'
? await configuration.accessToken()
: await configuration.accessToken;
object["Authorization"] = "Bearer " + accessToken;
}
}
/**
*
* @export
*/
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
if (configuration && configuration.accessToken) {
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
? await configuration.accessToken(name, scopes)
: await configuration.accessToken;
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
}
}
/**
*
* @export
*/
export const setSearchParams = function (url: URL, ...objects: any[]) {
const searchParams = new URLSearchParams(url.search);
for (const object of objects) {
for (const key in object) {
if (Array.isArray(object[key])) {
searchParams.delete(key);
for (const item of object[key]) {
searchParams.append(key, item);
}
} else {
searchParams.set(key, object[key]);
}
}
}
url.search = searchParams.toString();
}
/**
*
* @export
*/
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
const nonString = typeof value !== 'string';
const needsSerialization = nonString && configuration && configuration.isJsonMime
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
: nonString;
return needsSerialization
? JSON.stringify(value !== undefined ? value : {})
: (value || "");
}
/**
*
* @export
*/
export const toPathString = function (url: URL) {
return url.pathname + url.search + url.hash
}
/**
*
* @export
*/
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
return axios.request(axiosRequestArgs);
};
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Pid
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export interface ConfigurationParameters {
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
username?: string;
password?: string;
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
basePath?: string;
baseOptions?: any;
formDataCtor?: new () => any;
}
export class Configuration {
/**
* parameter for apiKey security
* @param name security name
* @memberof Configuration
*/
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
username?: string;
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
password?: string;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
* @memberof Configuration
*/
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
/**
* override base path
*
* @type {string}
* @memberof Configuration
*/
basePath?: string;
/**
* base options for axios calls
*
* @type {any}
* @memberof Configuration
*/
baseOptions?: any;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
* do not support the FormData class can still run the generated client.
*
* @type {new () => FormData}
*/
formDataCtor?: new () => any;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
this.username = param.username;
this.password = param.password;
this.accessToken = param.accessToken;
this.basePath = param.basePath;
this.baseOptions = param.baseOptions;
this.formDataCtor = param.formDataCtor;
}
/**
* Check if the given MIME is a JSON MIME.
* JSON MIME examples:
* application/json
* application/json; charset=UTF8
* APPLICATION/JSON
* application/vnd.company+json
* @param mime - MIME (Multipurpose Internet Mail Extensions)
* @return True if the given MIME is JSON, false otherwise.
*/
public isJsonMime(mime: string): boolean {
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
}
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Pid
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export * from "./api";
export * from "./configuration";
.gitignore
.npmignore
.openapi-generator-ignore
api.ts
base.ts
common.ts
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.3.2
* The version of the OpenAPI document: 1.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......@@ -22,483 +22,54 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
/**
*
* Item Search Result Object
* @export
* @interface DisciplineObject
*/
export interface DisciplineObject {
/**
*
* @type {string}
* @memberof DisciplineObject
*/
id?: string;
/**
*
* @type {string}
* @memberof DisciplineObject
* @interface ItemSearchResult
*/
url?: string | null;
/**
*
* @type {string}
* @memberof DisciplineObject
*/
displayNameDe?: string | null;
/**
*
* @type {string}
* @memberof DisciplineObject
*/
displayNameEn?: string | null;
}
/**
* File Search Result Object
* @export
* @interface FileSearchResult
*/
export interface FileSearchResult {
export interface ItemSearchResult {
/**
* Graph Name
* @type {string}
* @memberof FileSearchResult
* @memberof ItemSearchResult
*/
graphName?: string | null;
/**
* ID of Project containing the file
* @type {string}
* @memberof FileSearchResult
*/
projectId?: string | null;
/**
* ID of Resource containing the file
* @type {string}
* @memberof FileSearchResult
* Graph Name
* @type {ItemType}
* @memberof ItemSearchResult
*/
resourceId?: string | null;
type?: ItemType;
/**
* Search result fields
* @type {any}
* @memberof FileSearchResult
* @memberof ItemSearchResult
*/
source?: any | null;
}
/**
*
* @export
* @interface LicenseObject
*/
export interface LicenseObject {
/**
*
* @type {string}
* @memberof LicenseObject
*/
id?: string;
/**
*
* @type {string}
* @memberof LicenseObject
*/
displayName?: string | null;
}
/**
*
* @export
* @interface OrganizationObject
*/
export interface OrganizationObject {
/**
*
* @type {string}
* @memberof OrganizationObject
*/
url?: string | null;
/**
*
* @type {string}
* @memberof OrganizationObject
*/
displayName?: string | null;
}
/**
*
* @export
* @interface ProjectObject
*/
export interface ProjectObject {
/**
*
* @type {string}
* @memberof ProjectObject
*/
id?: string;
/**
*
* @type {string}
* @memberof ProjectObject
*/
description?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
displayName?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
startDate?: string;
/**
*
* @type {string}
* @memberof ProjectObject
*/
endDate?: string;
/**
*
* @type {string}
* @memberof ProjectObject
*/
keywords?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
projectName?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
principleInvestigators?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
grantId?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
slug?: string | null;
/**
*
* @type {Array<DisciplineObject>}
* @memberof ProjectObject
*/
disciplines?: Array<DisciplineObject> | null;
/**
*
* @type {Array<OrganizationObject>}
* @memberof ProjectObject
*/
organizations?: Array<OrganizationObject> | null;
/**
*
* @type {VisibilityObject}
* @memberof ProjectObject
*/
visibility?: VisibilityObject | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
parentId?: string;
}
/**
*
* @export
* @interface ResourceObject
*/
export interface ResourceObject {
/**
*
* @type {string}
* @memberof ResourceObject
*/
id?: string;
/**
*
* @type {string}
* @memberof ResourceObject
*/
pid?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
displayName?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
resourceName?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
description?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
keywords?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
usageRights?: string | null;
/**
*
* @type {ResourceTypeObject}
* @memberof ResourceObject
*/
type?: ResourceTypeObject | null;
/**
*
* @type {Array<DisciplineObject>}
* @memberof ResourceObject
*/
disciplines?: Array<DisciplineObject> | null;
/**
*
* @type {VisibilityObject}
* @memberof ResourceObject
*/
visibility?: VisibilityObject | null;
/**
*
* @type {LicenseObject}
* @memberof ResourceObject
*/
license?: LicenseObject | null;
/**
*
* @type {any}
* @memberof ResourceObject
*/
resourceTypeOption?: any | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
applicationProfile?: string | null;
/**
*
* @type {any}
* @memberof ResourceObject
*/
fixedValues?: any | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
creator?: string | null;
/**
*
* @type {boolean}
* @memberof ResourceObject
*/
archived?: boolean;
}
/**
*
* @export
* @interface ResourceSearchResult
*/
export interface ResourceSearchResult {
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
id?: string;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
pid?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
displayName?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
resourceName?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
description?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
keywords?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
usageRights?: string | null;
/**
*
* @type {ResourceTypeObject}
* @memberof ResourceSearchResult
*/
type?: ResourceTypeObject | null;
/**
*
* @type {Array<DisciplineObject>}
* @memberof ResourceSearchResult
*/
disciplines?: Array<DisciplineObject> | null;
/**
*
* @type {VisibilityObject}
* @memberof ResourceSearchResult
*/
visibility?: VisibilityObject | null;
/**
*
* @type {LicenseObject}
* @memberof ResourceSearchResult
*/
license?: LicenseObject | null;
/**
*
* @type {any}
* @memberof ResourceSearchResult
*/
resourceTypeOption?: any | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
applicationProfile?: string | null;
/**
*
* @type {any}
* @memberof ResourceSearchResult
*/
fixedValues?: any | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
creator?: string | null;
/**
*
* @type {boolean}
* @memberof ResourceSearchResult
*/
archived?: boolean;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
projectId?: string | null;
}
/**
*
* @export
* @interface ResourceSearchResultAllOf
*/
export interface ResourceSearchResultAllOf {
/**
*
* @type {string}
* @memberof ResourceSearchResultAllOf
*/
projectId?: string | null;
}
/**
*
* @export
* @interface ResourceTypeObject
*/
export interface ResourceTypeObject {
/**
*
* @type {string}
* @memberof ResourceTypeObject
*/
id?: string;
/**
*
* @type {string}
* @memberof ResourceTypeObject
* @enum {string}
*/
displayName?: string | null;
export enum ItemType {
Metadata = 'Metadata',
Project = 'Project',
Resource = 'Resource'
}
/**
* Search result return object
* @export
* @interface SearchResult
*/
export interface SearchResult {
/**
* Search result projects
* @type {Array<ProjectObject>}
* @memberof SearchResult
*/
projects?: Array<ProjectObject> | null;
/**
* Search result resources
* @type {Array<ResourceSearchResult>}
* @memberof SearchResult
*/
resources?: Array<ResourceSearchResult> | null;
/**
* Search result files
* @type {Array<FileSearchResult>}
* @type {Array<ItemSearchResult>}
* @memberof SearchResult
*/
files?: Array<FileSearchResult> | null;
}
/**
*
* @export
* @interface VisibilityObject
*/
export interface VisibilityObject {
/**
*
* @type {string}
* @memberof VisibilityObject
*/
id?: string;
/**
*
* @type {string}
* @memberof VisibilityObject
*/
displayName?: string | null;
items?: Array<ItemSearchResult> | null;
}
/**
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.3.2
* The version of the OpenAPI document: 1.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
/**
*
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.3.2
* The version of the OpenAPI document: 1.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.3.2
* The version of the OpenAPI document: 1.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.3.2
* The version of the OpenAPI document: 1.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -6,6 +6,7 @@ import { BlobApiFactory } from './Coscine.Api.Blob/api';
import { MetadataApiFactory } from './Coscine.Api.Metadata/api';
import { NoticeApiFactory } from './Coscine.Api.Notices/api';
import { OrganizationApiFactory } from './Coscine.Api.Organization/api';
import { PidApiFactory } from './Coscine.Api.Pid/api';
import { DisciplineApiFactory } from './Coscine.Api.Project/api';
import { LicenseApiFactory } from './Coscine.Api.Project/api';
import { ProjectApiFactory } from './Coscine.Api.Project/api';
......@@ -60,6 +61,7 @@ function implementations(axios?: AxiosInstance) {
MetadataApi: MetadataApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Metadata', axios),
NoticeApi: NoticeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Notices', axios),
OrganizationApi: OrganizationApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Organization', axios),
PidApi: PidApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Pid', axios),
ProjectApi: ProjectApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
ProjectQuotaApi: ProjectQuotaApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
ProjectRoleApi: ProjectRoleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
......
......@@ -12,6 +12,7 @@ export const LicenseApi = apis.LicenseApi;
export const MetadataApi = apis.MetadataApi;
export const NoticeApi = apis.NoticeApi;
export const OrganizationApi = apis.OrganizationApi;
export const PidApi = apis.PidApi;
export const ProjectApi = apis.ProjectApi;
export const ProjectQuotaApi = apis.ProjectQuotaApi;
export const ProjectRoleApi = apis.ProjectRoleApi;
......