From 28529ad15656466958870fda880d90737fd2a31a Mon Sep 17 00:00:00 2001 From: Petar Hristov <hristov@itc.rwth-aachen.de> Date: Fri, 18 Feb 2022 13:39:47 +0100 Subject: [PATCH] Update: Token and Project API refactoring (coscine/issues#1926) --- .../.openapi-generator/FILES | 1 + src/Coscine.Api.ActivatedFeatures/base.ts | 2 +- .../.openapi-generator/FILES | 1 + src/Coscine.Api.Admin/api.ts | 2 +- src/Coscine.Api.Admin/base.ts | 4 +- src/Coscine.Api.Admin/common.ts | 2 +- src/Coscine.Api.Admin/configuration.ts | 2 +- src/Coscine.Api.Admin/index.ts | 2 +- src/Coscine.Api.Blob/api.ts | 2 +- src/Coscine.Api.Blob/base.ts | 4 +- src/Coscine.Api.Blob/common.ts | 2 +- src/Coscine.Api.Blob/configuration.ts | 2 +- src/Coscine.Api.Blob/index.ts | 2 +- .../.openapi-generator/FILES | 1 + src/Coscine.Api.Metadata/api.ts | 2 +- src/Coscine.Api.Metadata/base.ts | 4 +- src/Coscine.Api.Metadata/common.ts | 2 +- src/Coscine.Api.Metadata/configuration.ts | 2 +- src/Coscine.Api.Metadata/index.ts | 2 +- .../.openapi-generator/FILES | 1 + src/Coscine.Api.Notices/base.ts | 2 +- .../.openapi-generator/FILES | 1 + src/Coscine.Api.Organization/base.ts | 2 +- .../.openapi-generator/FILES | 1 + src/Coscine.Api.Project/api.ts | 96 +++++++++---------- src/Coscine.Api.Project/base.ts | 4 +- src/Coscine.Api.Project/common.ts | 2 +- src/Coscine.Api.Project/configuration.ts | 2 +- src/Coscine.Api.Project/index.ts | 2 +- .../.openapi-generator/FILES | 1 + src/Coscine.Api.Quota/api.ts | 2 +- src/Coscine.Api.Quota/base.ts | 4 +- src/Coscine.Api.Quota/common.ts | 2 +- src/Coscine.Api.Quota/configuration.ts | 2 +- src/Coscine.Api.Quota/index.ts | 2 +- .../.openapi-generator/FILES | 1 + src/Coscine.Api.Resources/api.ts | 58 +++++------ src/Coscine.Api.Resources/base.ts | 4 +- src/Coscine.Api.Resources/common.ts | 2 +- src/Coscine.Api.Resources/configuration.ts | 2 +- src/Coscine.Api.Resources/index.ts | 2 +- src/Coscine.Api.Search/api.ts | 2 +- src/Coscine.Api.Search/base.ts | 4 +- src/Coscine.Api.Search/common.ts | 2 +- src/Coscine.Api.Search/configuration.ts | 2 +- src/Coscine.Api.Search/index.ts | 2 +- .../.openapi-generator/FILES | 1 + src/Coscine.Api.Token/api.ts | 82 ++++++++++++++++ src/Coscine.Api.Token/base.ts | 2 +- src/Coscine.Api.Tree/api.ts | 2 +- src/Coscine.Api.Tree/base.ts | 4 +- src/Coscine.Api.Tree/common.ts | 2 +- src/Coscine.Api.Tree/configuration.ts | 2 +- src/Coscine.Api.Tree/index.ts | 2 +- src/Coscine.Api.User/.openapi-generator/FILES | 1 + src/Coscine.Api.User/api.ts | 2 +- src/Coscine.Api.User/base.ts | 4 +- src/Coscine.Api.User/common.ts | 2 +- src/Coscine.Api.User/configuration.ts | 2 +- src/Coscine.Api.User/index.ts | 2 +- src/index.ts | 2 - 61 files changed, 225 insertions(+), 135 deletions(-) diff --git a/src/Coscine.Api.ActivatedFeatures/.openapi-generator/FILES b/src/Coscine.Api.ActivatedFeatures/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.ActivatedFeatures/.openapi-generator/FILES +++ b/src/Coscine.Api.ActivatedFeatures/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.ActivatedFeatures/base.ts b/src/Coscine.Api.ActivatedFeatures/base.ts index b5b12e6..3d3cece 100644 --- a/src/Coscine.Api.ActivatedFeatures/base.ts +++ b/src/Coscine.Api.ActivatedFeatures/base.ts @@ -18,7 +18,7 @@ import { Configuration } from "./configuration"; // @ts-ignore import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.ActivatedFeatures".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.ActivatedFeatures".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Admin/.openapi-generator/FILES b/src/Coscine.Api.Admin/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.Admin/.openapi-generator/FILES +++ b/src/Coscine.Api.Admin/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.Admin/api.ts b/src/Coscine.Api.Admin/api.ts index 6d929f0..9ec9841 100644 --- a/src/Coscine.Api.Admin/api.ts +++ b/src/Coscine.Api.Admin/api.ts @@ -4,7 +4,7 @@ * Coscine.Api.Admin * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.0 + * The version of the OpenAPI document: 2.3.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Admin/base.ts b/src/Coscine.Api.Admin/base.ts index 79d7bcb..15f09c2 100644 --- a/src/Coscine.Api.Admin/base.ts +++ b/src/Coscine.Api.Admin/base.ts @@ -4,7 +4,7 @@ * Coscine.Api.Admin * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.0 + * The version of the OpenAPI document: 2.3.1 * * * 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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Admin/common.ts b/src/Coscine.Api.Admin/common.ts index 5fd26a0..3d2626a 100644 --- a/src/Coscine.Api.Admin/common.ts +++ b/src/Coscine.Api.Admin/common.ts @@ -4,7 +4,7 @@ * Coscine.Api.Admin * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.0 + * The version of the OpenAPI document: 2.3.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Admin/configuration.ts b/src/Coscine.Api.Admin/configuration.ts index 3ae46cf..8de9045 100644 --- a/src/Coscine.Api.Admin/configuration.ts +++ b/src/Coscine.Api.Admin/configuration.ts @@ -4,7 +4,7 @@ * Coscine.Api.Admin * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.0 + * The version of the OpenAPI document: 2.3.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Admin/index.ts b/src/Coscine.Api.Admin/index.ts index 820501e..7cf4c93 100644 --- a/src/Coscine.Api.Admin/index.ts +++ b/src/Coscine.Api.Admin/index.ts @@ -4,7 +4,7 @@ * Coscine.Api.Admin * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.0 + * The version of the OpenAPI document: 2.3.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Blob/api.ts b/src/Coscine.Api.Blob/api.ts index 0092d46..b468440 100644 --- a/src/Coscine.Api.Blob/api.ts +++ b/src/Coscine.Api.Blob/api.ts @@ -4,7 +4,7 @@ * Coscine.Api.Blob * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.5.1 + * The version of the OpenAPI document: 2.6.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Blob/base.ts b/src/Coscine.Api.Blob/base.ts index 617ae84..f75f9af 100644 --- a/src/Coscine.Api.Blob/base.ts +++ b/src/Coscine.Api.Blob/base.ts @@ -4,7 +4,7 @@ * Coscine.Api.Blob * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.5.1 + * The version of the OpenAPI document: 2.6.3 * * * 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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Blob/common.ts b/src/Coscine.Api.Blob/common.ts index 88eafb7..1bf0dab 100644 --- a/src/Coscine.Api.Blob/common.ts +++ b/src/Coscine.Api.Blob/common.ts @@ -4,7 +4,7 @@ * Coscine.Api.Blob * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.5.1 + * The version of the OpenAPI document: 2.6.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Blob/configuration.ts b/src/Coscine.Api.Blob/configuration.ts index 1372f44..3482a43 100644 --- a/src/Coscine.Api.Blob/configuration.ts +++ b/src/Coscine.Api.Blob/configuration.ts @@ -4,7 +4,7 @@ * Coscine.Api.Blob * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.5.1 + * The version of the OpenAPI document: 2.6.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Blob/index.ts b/src/Coscine.Api.Blob/index.ts index f1547f5..5cb8c2b 100644 --- a/src/Coscine.Api.Blob/index.ts +++ b/src/Coscine.Api.Blob/index.ts @@ -4,7 +4,7 @@ * Coscine.Api.Blob * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.5.1 + * The version of the OpenAPI document: 2.6.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Metadata/.openapi-generator/FILES b/src/Coscine.Api.Metadata/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.Metadata/.openapi-generator/FILES +++ b/src/Coscine.Api.Metadata/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.Metadata/api.ts b/src/Coscine.Api.Metadata/api.ts index eb859e2..8e2fa1e 100644 --- a/src/Coscine.Api.Metadata/api.ts +++ b/src/Coscine.Api.Metadata/api.ts @@ -4,7 +4,7 @@ * Coscine.Api.Metadata * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.1 + * The version of the OpenAPI document: 3.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Metadata/base.ts b/src/Coscine.Api.Metadata/base.ts index 28ff5f7..b400c89 100644 --- a/src/Coscine.Api.Metadata/base.ts +++ b/src/Coscine.Api.Metadata/base.ts @@ -4,7 +4,7 @@ * Coscine.Api.Metadata * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.1 + * The version of the OpenAPI document: 3.0.1 * * * 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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Metadata".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Metadata/common.ts b/src/Coscine.Api.Metadata/common.ts index a8d7bc2..860b19b 100644 --- a/src/Coscine.Api.Metadata/common.ts +++ b/src/Coscine.Api.Metadata/common.ts @@ -4,7 +4,7 @@ * Coscine.Api.Metadata * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.1 + * The version of the OpenAPI document: 3.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Metadata/configuration.ts b/src/Coscine.Api.Metadata/configuration.ts index 43c52e2..3c6e2f3 100644 --- a/src/Coscine.Api.Metadata/configuration.ts +++ b/src/Coscine.Api.Metadata/configuration.ts @@ -4,7 +4,7 @@ * Coscine.Api.Metadata * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.1 + * The version of the OpenAPI document: 3.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Metadata/index.ts b/src/Coscine.Api.Metadata/index.ts index cac3e0d..bd83a1d 100644 --- a/src/Coscine.Api.Metadata/index.ts +++ b/src/Coscine.Api.Metadata/index.ts @@ -4,7 +4,7 @@ * Coscine.Api.Metadata * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.2.1 + * The version of the OpenAPI document: 3.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Notices/.openapi-generator/FILES b/src/Coscine.Api.Notices/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.Notices/.openapi-generator/FILES +++ b/src/Coscine.Api.Notices/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.Notices/base.ts b/src/Coscine.Api.Notices/base.ts index 43793c4..aaff335 100644 --- a/src/Coscine.Api.Notices/base.ts +++ b/src/Coscine.Api.Notices/base.ts @@ -18,7 +18,7 @@ import { Configuration } from "./configuration"; // @ts-ignore import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Notices".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Organization/.openapi-generator/FILES b/src/Coscine.Api.Organization/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.Organization/.openapi-generator/FILES +++ b/src/Coscine.Api.Organization/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.Organization/base.ts b/src/Coscine.Api.Organization/base.ts index 4682c25..8b846a5 100644 --- a/src/Coscine.Api.Organization/base.ts +++ b/src/Coscine.Api.Organization/base.ts @@ -18,7 +18,7 @@ import { Configuration } from "./configuration"; // @ts-ignore import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Organization".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Project/.openapi-generator/FILES b/src/Coscine.Api.Project/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.Project/.openapi-generator/FILES +++ b/src/Coscine.Api.Project/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.Project/api.ts b/src/Coscine.Api.Project/api.ts index 01311fb..b639c6e 100644 --- a/src/Coscine.Api.Project/api.ts +++ b/src/Coscine.Api.Project/api.ts @@ -4,7 +4,7 @@ * Coscine.Api.Project * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -2235,8 +2235,8 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati }, /** * - * @summary Deletes an invitation. - * @param {string} invitationId Id of a invitation + * @summary Deletes a project invitation. + * @param {string} invitationId Id of an invitation * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2272,8 +2272,8 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati }, /** * - * @summary This returns the the project if the user has access to it - * @param {string} id Id of the resource + * @summary This returns the project if the user has access to it + * @param {string} id Id of the project * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2568,16 +2568,16 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati }, /** * - * @summary Resolve an invitation for the current user. - * @param {string} token Token of a invitation + * @summary Resolve a project invitation for the current user. + * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationtoken={token}\" * @param {*} [options] Override http request option. * @throws {RequiredError} */ - projectResolveInvitation: async (token: string, options: any = {}): Promise<RequestArgs> => { - // verify required parameter 'token' is not null or undefined - assertParamExists('projectResolveInvitation', 'token', token) - const localVarPath = `/Project/invitation/resolve/{token}` - .replace(`{${"token"}}`, encodeURIComponent(String(token))); + projectResolveInvitation: async (invitationToken: string, options: any = {}): Promise<RequestArgs> => { + // verify required parameter 'invitationToken' is not null or undefined + assertParamExists('projectResolveInvitation', 'invitationToken', invitationToken) + const localVarPath = `/Project/invitation/resolve/{invitationtoken}` + .replace(`{${"invitationToken"}}`, encodeURIComponent(String(invitationToken))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2605,8 +2605,8 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati }, /** * - * @summary Create and send an invitation to specified mail. - * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation + * @summary Create and send a project invitation to a specified mail. + * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationtoken={token}\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2677,7 +2677,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati }, /** * - * @summary Updates the selected project + * @summary Updates the selected project * @param {string} id Id of the resource * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2782,8 +2782,8 @@ export const ProjectApiFp = function(configuration?: Configuration) { }, /** * - * @summary Deletes an invitation. - * @param {string} invitationId Id of a invitation + * @summary Deletes a project invitation. + * @param {string} invitationId Id of an invitation * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2793,8 +2793,8 @@ export const ProjectApiFp = function(configuration?: Configuration) { }, /** * - * @summary This returns the the project if the user has access to it - * @param {string} id Id of the resource + * @summary This returns the project if the user has access to it + * @param {string} id Id of the project * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2881,19 +2881,19 @@ export const ProjectApiFp = function(configuration?: Configuration) { }, /** * - * @summary Resolve an invitation for the current user. - * @param {string} token Token of a invitation + * @summary Resolve a project invitation for the current user. + * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationtoken={token}\" * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async projectResolveInvitation(token: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.projectResolveInvitation(token, options); + async projectResolveInvitation(invitationToken: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.projectResolveInvitation(invitationToken, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @summary Create and send an invitation to specified mail. - * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation + * @summary Create and send a project invitation to a specified mail. + * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationtoken={token}\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2913,7 +2913,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { }, /** * - * @summary Updates the selected project + * @summary Updates the selected project * @param {string} id Id of the resource * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2957,8 +2957,8 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa }, /** * - * @summary Deletes an invitation. - * @param {string} invitationId Id of a invitation + * @summary Deletes a project invitation. + * @param {string} invitationId Id of an invitation * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2967,8 +2967,8 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa }, /** * - * @summary This returns the the project if the user has access to it - * @param {string} id Id of the resource + * @summary This returns the project if the user has access to it + * @param {string} id Id of the project * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3047,18 +3047,18 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa }, /** * - * @summary Resolve an invitation for the current user. - * @param {string} token Token of a invitation + * @summary Resolve a project invitation for the current user. + * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationtoken={token}\" * @param {*} [options] Override http request option. * @throws {RequiredError} */ - projectResolveInvitation(token: string, options?: any): AxiosPromise<any> { - return localVarFp.projectResolveInvitation(token, options).then((request) => request(axios, basePath)); + projectResolveInvitation(invitationToken: string, options?: any): AxiosPromise<any> { + return localVarFp.projectResolveInvitation(invitationToken, options).then((request) => request(axios, basePath)); }, /** * - * @summary Create and send an invitation to specified mail. - * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation + * @summary Create and send a project invitation to a specified mail. + * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationtoken={token}\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3076,7 +3076,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa }, /** * - * @summary Updates the selected project + * @summary Updates the selected project * @param {string} id Id of the resource * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3120,8 +3120,8 @@ export class ProjectApi extends BaseAPI { /** * - * @summary Deletes an invitation. - * @param {string} invitationId Id of a invitation + * @summary Deletes a project invitation. + * @param {string} invitationId Id of an invitation * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectApi @@ -3132,8 +3132,8 @@ export class ProjectApi extends BaseAPI { /** * - * @summary This returns the the project if the user has access to it - * @param {string} id Id of the resource + * @summary This returns the project if the user has access to it + * @param {string} id Id of the project * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectApi @@ -3228,20 +3228,20 @@ export class ProjectApi extends BaseAPI { /** * - * @summary Resolve an invitation for the current user. - * @param {string} token Token of a invitation + * @summary Resolve a project invitation for the current user. + * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationtoken={token}\" * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectApi */ - public projectResolveInvitation(token: string, options?: any) { - return ProjectApiFp(this.configuration).projectResolveInvitation(token, options).then((request) => request(this.axios, this.basePath)); + public projectResolveInvitation(invitationToken: string, options?: any) { + return ProjectApiFp(this.configuration).projectResolveInvitation(invitationToken, options).then((request) => request(this.axios, this.basePath)); } /** * - * @summary Create and send an invitation to specified mail. - * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation + * @summary Create and send a project invitation to a specified mail. + * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationtoken={token}\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectApi @@ -3263,7 +3263,7 @@ export class ProjectApi extends BaseAPI { /** * - * @summary Updates the selected project + * @summary Updates the selected project * @param {string} id Id of the resource * @param {*} [options] Override http request option. * @throws {RequiredError} diff --git a/src/Coscine.Api.Project/base.ts b/src/Coscine.Api.Project/base.ts index 9be191b..5a7077f 100644 --- a/src/Coscine.Api.Project/base.ts +++ b/src/Coscine.Api.Project/base.ts @@ -4,7 +4,7 @@ * Coscine.Api.Project * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.4 * * * 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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Project/common.ts b/src/Coscine.Api.Project/common.ts index 50b129d..6834f44 100644 --- a/src/Coscine.Api.Project/common.ts +++ b/src/Coscine.Api.Project/common.ts @@ -4,7 +4,7 @@ * Coscine.Api.Project * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Project/configuration.ts b/src/Coscine.Api.Project/configuration.ts index 4fe8a85..76d8b9d 100644 --- a/src/Coscine.Api.Project/configuration.ts +++ b/src/Coscine.Api.Project/configuration.ts @@ -4,7 +4,7 @@ * Coscine.Api.Project * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Project/index.ts b/src/Coscine.Api.Project/index.ts index 4383c0a..4e88e8f 100644 --- a/src/Coscine.Api.Project/index.ts +++ b/src/Coscine.Api.Project/index.ts @@ -4,7 +4,7 @@ * Coscine.Api.Project * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Quota/.openapi-generator/FILES b/src/Coscine.Api.Quota/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.Quota/.openapi-generator/FILES +++ b/src/Coscine.Api.Quota/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.Quota/api.ts b/src/Coscine.Api.Quota/api.ts index 66982e3..48da463 100644 --- a/src/Coscine.Api.Quota/api.ts +++ b/src/Coscine.Api.Quota/api.ts @@ -4,7 +4,7 @@ * Coscine.Api.Quota * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.4.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Quota/base.ts b/src/Coscine.Api.Quota/base.ts index 1d5a71f..52f512a 100644 --- a/src/Coscine.Api.Quota/base.ts +++ b/src/Coscine.Api.Quota/base.ts @@ -4,7 +4,7 @@ * Coscine.Api.Quota * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.4.2 * * * 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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Quota/common.ts b/src/Coscine.Api.Quota/common.ts index aa550f2..ff19528 100644 --- a/src/Coscine.Api.Quota/common.ts +++ b/src/Coscine.Api.Quota/common.ts @@ -4,7 +4,7 @@ * Coscine.Api.Quota * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.4.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Quota/configuration.ts b/src/Coscine.Api.Quota/configuration.ts index 072ea19..932c7d1 100644 --- a/src/Coscine.Api.Quota/configuration.ts +++ b/src/Coscine.Api.Quota/configuration.ts @@ -4,7 +4,7 @@ * Coscine.Api.Quota * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.4.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Quota/index.ts b/src/Coscine.Api.Quota/index.ts index d8f991b..4c0adcd 100644 --- a/src/Coscine.Api.Quota/index.ts +++ b/src/Coscine.Api.Quota/index.ts @@ -4,7 +4,7 @@ * Coscine.Api.Quota * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.4.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Resources/.openapi-generator/FILES b/src/Coscine.Api.Resources/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.Resources/.openapi-generator/FILES +++ b/src/Coscine.Api.Resources/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.Resources/api.ts b/src/Coscine.Api.Resources/api.ts index 319c96a..417d704 100644 --- a/src/Coscine.Api.Resources/api.ts +++ b/src/Coscine.Api.Resources/api.ts @@ -4,7 +4,7 @@ * Coscine.Api.Resources * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.5.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -222,7 +222,7 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat /** * * @summary This deletes the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -259,7 +259,7 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat /** * * @summary This returns the resource for the specified id. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -329,7 +329,7 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat /** * * @summary This returns if the current user is the creator of the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -365,8 +365,8 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat }, /** * - * @summary This returns the readonly status of the given resource. - * @param {string} id A guid as a string that identifies the resource. + * @summary This returns the read only status of the given resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {boolean} [status] A boolean value that specifies if the resource is archived. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -408,7 +408,7 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat /** * * @summary This stores the provided resource object for the specified project. - * @param {string} projectId A guid as a string that identifies the resource. + * @param {string} projectId A GUID as a string that identifies the resource. * @param {ResourceObject} resourceObject Entry representing the user * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -451,7 +451,7 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat /** * * @summary This returns if the current user is the creator of the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {ResourceObject} resourceObject Entry representing the user * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -504,7 +504,7 @@ export const ResourceApiFp = function(configuration?: Configuration) { /** * * @summary This deletes the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -515,7 +515,7 @@ export const ResourceApiFp = function(configuration?: Configuration) { /** * * @summary This returns the resource for the specified id. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -536,7 +536,7 @@ export const ResourceApiFp = function(configuration?: Configuration) { /** * * @summary This returns if the current user is the creator of the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -546,8 +546,8 @@ export const ResourceApiFp = function(configuration?: Configuration) { }, /** * - * @summary This returns the readonly status of the given resource. - * @param {string} id A guid as a string that identifies the resource. + * @summary This returns the read only status of the given resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {boolean} [status] A boolean value that specifies if the resource is archived. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -559,7 +559,7 @@ export const ResourceApiFp = function(configuration?: Configuration) { /** * * @summary This stores the provided resource object for the specified project. - * @param {string} projectId A guid as a string that identifies the resource. + * @param {string} projectId A GUID as a string that identifies the resource. * @param {ResourceObject} resourceObject Entry representing the user * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -571,7 +571,7 @@ export const ResourceApiFp = function(configuration?: Configuration) { /** * * @summary This returns if the current user is the creator of the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {ResourceObject} resourceObject Entry representing the user * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -593,7 +593,7 @@ export const ResourceApiFactory = function (configuration?: Configuration, baseP /** * * @summary This deletes the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -603,7 +603,7 @@ export const ResourceApiFactory = function (configuration?: Configuration, baseP /** * * @summary This returns the resource for the specified id. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -622,7 +622,7 @@ export const ResourceApiFactory = function (configuration?: Configuration, baseP /** * * @summary This returns if the current user is the creator of the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -631,8 +631,8 @@ export const ResourceApiFactory = function (configuration?: Configuration, baseP }, /** * - * @summary This returns the readonly status of the given resource. - * @param {string} id A guid as a string that identifies the resource. + * @summary This returns the read only status of the given resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {boolean} [status] A boolean value that specifies if the resource is archived. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -643,7 +643,7 @@ export const ResourceApiFactory = function (configuration?: Configuration, baseP /** * * @summary This stores the provided resource object for the specified project. - * @param {string} projectId A guid as a string that identifies the resource. + * @param {string} projectId A GUID as a string that identifies the resource. * @param {ResourceObject} resourceObject Entry representing the user * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -654,7 +654,7 @@ export const ResourceApiFactory = function (configuration?: Configuration, baseP /** * * @summary This returns if the current user is the creator of the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {ResourceObject} resourceObject Entry representing the user * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -675,7 +675,7 @@ export class ResourceApi extends BaseAPI { /** * * @summary This deletes the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ResourceApi @@ -687,7 +687,7 @@ export class ResourceApi extends BaseAPI { /** * * @summary This returns the resource for the specified id. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ResourceApi @@ -710,7 +710,7 @@ export class ResourceApi extends BaseAPI { /** * * @summary This returns if the current user is the creator of the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ResourceApi @@ -721,8 +721,8 @@ export class ResourceApi extends BaseAPI { /** * - * @summary This returns the readonly status of the given resource. - * @param {string} id A guid as a string that identifies the resource. + * @summary This returns the read only status of the given resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {boolean} [status] A boolean value that specifies if the resource is archived. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -735,7 +735,7 @@ export class ResourceApi extends BaseAPI { /** * * @summary This stores the provided resource object for the specified project. - * @param {string} projectId A guid as a string that identifies the resource. + * @param {string} projectId A GUID as a string that identifies the resource. * @param {ResourceObject} resourceObject Entry representing the user * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -748,7 +748,7 @@ export class ResourceApi extends BaseAPI { /** * * @summary This returns if the current user is the creator of the specified resource. - * @param {string} id A guid as a string that identifies the resource. + * @param {string} id A GUID as a string that identifies the resource. * @param {ResourceObject} resourceObject Entry representing the user * @param {*} [options] Override http request option. * @throws {RequiredError} diff --git a/src/Coscine.Api.Resources/base.ts b/src/Coscine.Api.Resources/base.ts index 83750c9..5f78b6e 100644 --- a/src/Coscine.Api.Resources/base.ts +++ b/src/Coscine.Api.Resources/base.ts @@ -4,7 +4,7 @@ * Coscine.Api.Resources * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.5.1 * * * 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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Resources".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Resources".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Resources/common.ts b/src/Coscine.Api.Resources/common.ts index 27cace7..07d1e38 100644 --- a/src/Coscine.Api.Resources/common.ts +++ b/src/Coscine.Api.Resources/common.ts @@ -4,7 +4,7 @@ * Coscine.Api.Resources * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.5.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Resources/configuration.ts b/src/Coscine.Api.Resources/configuration.ts index 27562ee..67d5d2d 100644 --- a/src/Coscine.Api.Resources/configuration.ts +++ b/src/Coscine.Api.Resources/configuration.ts @@ -4,7 +4,7 @@ * Coscine.Api.Resources * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.5.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Resources/index.ts b/src/Coscine.Api.Resources/index.ts index a3e1eb3..ec227f8 100644 --- a/src/Coscine.Api.Resources/index.ts +++ b/src/Coscine.Api.Resources/index.ts @@ -4,7 +4,7 @@ * Coscine.Api.Resources * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.3.0 + * The version of the OpenAPI document: 2.5.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Search/api.ts b/src/Coscine.Api.Search/api.ts index 570a397..be7d5c1 100644 --- a/src/Coscine.Api.Search/api.ts +++ b/src/Coscine.Api.Search/api.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.1.0 + * The version of the OpenAPI document: 1.2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Search/base.ts b/src/Coscine.Api.Search/base.ts index d50dfd9..d60cdaa 100644 --- a/src/Coscine.Api.Search/base.ts +++ b/src/Coscine.Api.Search/base.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.1.0 + * The version of the OpenAPI document: 1.2.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-sp25.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Search/common.ts b/src/Coscine.Api.Search/common.ts index 51c71e0..739f477 100644 --- a/src/Coscine.Api.Search/common.ts +++ b/src/Coscine.Api.Search/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.1.0 + * The version of the OpenAPI document: 1.2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Search/configuration.ts b/src/Coscine.Api.Search/configuration.ts index 5f1f977..e906a50 100644 --- a/src/Coscine.Api.Search/configuration.ts +++ b/src/Coscine.Api.Search/configuration.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.1.0 + * The version of the OpenAPI document: 1.2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Search/index.ts b/src/Coscine.Api.Search/index.ts index 982b422..694e146 100644 --- a/src/Coscine.Api.Search/index.ts +++ b/src/Coscine.Api.Search/index.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.1.0 + * The version of the OpenAPI document: 1.2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Token/.openapi-generator/FILES b/src/Coscine.Api.Token/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.Token/.openapi-generator/FILES +++ b/src/Coscine.Api.Token/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.Token/api.ts b/src/Coscine.Api.Token/api.ts index 901c803..02b0218 100644 --- a/src/Coscine.Api.Token/api.ts +++ b/src/Coscine.Api.Token/api.ts @@ -121,6 +121,25 @@ export interface CreatedApiTokenObjectAllOf { */ token?: string | null; } +/** + * Retuned upon creation of a new token. Contains the minimum and maximum token validity in days from today. + * @export + * @interface TokenValidityObject + */ +export interface TokenValidityObject { + /** + * Object holding the specified token minumum and maximum validity in days. + * @type {number} + * @memberof TokenValidityObject + */ + minDays?: number; + /** + * + * @type {number} + * @memberof TokenValidityObject + */ + maxDays?: number; +} /** * TokenApi - axios parameter creator @@ -167,6 +186,39 @@ export const TokenApiAxiosParamCreator = function (configuration?: Configuration options: localVarRequestOptions, }; }, + /** + * + * @summary Get the specified token minumum and maximum validity in days. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + tokenGetTokenValidityBounds: async (options: any = {}): Promise<RequestArgs> => { + const localVarPath = `/Token/getValidity`; + // 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 Get the specific token values. @@ -295,6 +347,16 @@ export const TokenApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.tokenAddToken(addApiTokenParameter, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * + * @summary Get the specified token minumum and maximum validity in days. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async tokenGetTokenValidityBounds(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokenValidityObject>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.tokenGetTokenValidityBounds(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * * @summary Get the specific token values. @@ -347,6 +409,15 @@ export const TokenApiFactory = function (configuration?: Configuration, basePath tokenAddToken(addApiTokenParameter: AddApiTokenParameter, options?: any): AxiosPromise<CreatedApiTokenObject> { return localVarFp.tokenAddToken(addApiTokenParameter, options).then((request) => request(axios, basePath)); }, + /** + * + * @summary Get the specified token minumum and maximum validity in days. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + tokenGetTokenValidityBounds(options?: any): AxiosPromise<TokenValidityObject> { + return localVarFp.tokenGetTokenValidityBounds(options).then((request) => request(axios, basePath)); + }, /** * * @summary Get the specific token values. @@ -398,6 +469,17 @@ export class TokenApi extends BaseAPI { return TokenApiFp(this.configuration).tokenAddToken(addApiTokenParameter, options).then((request) => request(this.axios, this.basePath)); } + /** + * + * @summary Get the specified token minumum and maximum validity in days. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TokenApi + */ + public tokenGetTokenValidityBounds(options?: any) { + return TokenApiFp(this.configuration).tokenGetTokenValidityBounds(options).then((request) => request(this.axios, this.basePath)); + } + /** * * @summary Get the specific token values. diff --git a/src/Coscine.Api.Token/base.ts b/src/Coscine.Api.Token/base.ts index 05f5895..576bc13 100644 --- a/src/Coscine.Api.Token/base.ts +++ b/src/Coscine.Api.Token/base.ts @@ -18,7 +18,7 @@ import { Configuration } from "./configuration"; // @ts-ignore import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Tree/api.ts b/src/Coscine.Api.Tree/api.ts index 453808a..1a44222 100644 --- a/src/Coscine.Api.Tree/api.ts +++ b/src/Coscine.Api.Tree/api.ts @@ -4,7 +4,7 @@ * Coscine.Api.Tree * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Tree/base.ts b/src/Coscine.Api.Tree/base.ts index deb8b17..1f78252 100644 --- a/src/Coscine.Api.Tree/base.ts +++ b/src/Coscine.Api.Tree/base.ts @@ -4,7 +4,7 @@ * Coscine.Api.Tree * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.2 * * * 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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.Tree/common.ts b/src/Coscine.Api.Tree/common.ts index 3700db3..8eb2bd4 100644 --- a/src/Coscine.Api.Tree/common.ts +++ b/src/Coscine.Api.Tree/common.ts @@ -4,7 +4,7 @@ * Coscine.Api.Tree * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Tree/configuration.ts b/src/Coscine.Api.Tree/configuration.ts index c024dfd..ccc111a 100644 --- a/src/Coscine.Api.Tree/configuration.ts +++ b/src/Coscine.Api.Tree/configuration.ts @@ -4,7 +4,7 @@ * Coscine.Api.Tree * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.Tree/index.ts b/src/Coscine.Api.Tree/index.ts index 3b53904..188b3b0 100644 --- a/src/Coscine.Api.Tree/index.ts +++ b/src/Coscine.Api.Tree/index.ts @@ -4,7 +4,7 @@ * Coscine.Api.Tree * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.4.3 + * The version of the OpenAPI document: 2.5.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.User/.openapi-generator/FILES b/src/Coscine.Api.User/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/src/Coscine.Api.User/.openapi-generator/FILES +++ b/src/Coscine.Api.User/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/src/Coscine.Api.User/api.ts b/src/Coscine.Api.User/api.ts index 001926e..716230e 100644 --- a/src/Coscine.Api.User/api.ts +++ b/src/Coscine.Api.User/api.ts @@ -4,7 +4,7 @@ * Coscine.Api.User * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.1.3 + * The version of the OpenAPI document: 2.2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.User/base.ts b/src/Coscine.Api.User/base.ts index d532f0b..a7cc19e 100644 --- a/src/Coscine.Api.User/base.ts +++ b/src/Coscine.Api.User/base.ts @@ -4,7 +4,7 @@ * Coscine.Api.User * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.1.3 + * The version of the OpenAPI document: 2.2.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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, ""); +export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api.User/common.ts b/src/Coscine.Api.User/common.ts index 022abb3..882aa96 100644 --- a/src/Coscine.Api.User/common.ts +++ b/src/Coscine.Api.User/common.ts @@ -4,7 +4,7 @@ * Coscine.Api.User * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.1.3 + * The version of the OpenAPI document: 2.2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.User/configuration.ts b/src/Coscine.Api.User/configuration.ts index c23b6d0..5a7f59c 100644 --- a/src/Coscine.Api.User/configuration.ts +++ b/src/Coscine.Api.User/configuration.ts @@ -4,7 +4,7 @@ * Coscine.Api.User * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.1.3 + * The version of the OpenAPI document: 2.2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/Coscine.Api.User/index.ts b/src/Coscine.Api.User/index.ts index 96f0e8b..0d85fc1 100644 --- a/src/Coscine.Api.User/index.ts +++ b/src/Coscine.Api.User/index.ts @@ -4,7 +4,7 @@ * Coscine.Api.User * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.1.3 + * The version of the OpenAPI document: 2.2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/index.ts b/src/index.ts index d7e0ad4..3a89a17 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,6 @@ import implementations from './apis'; import instance from './axios-basic'; -export { implementations as apiImplementations, instance as axiosInstance }; - const apis = implementations(instance); export const ActivatedFeaturesApi = apis.ActivatedFeaturesApi; -- GitLab