Skip to content
Snippets Groups Projects
Commit a04c9eaa authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

New: DataStorage.nrw client generation

parent 4c7287ac
No related branches found
No related tags found
3 merge requests!129merge dev into main,!125Update: api client with resource type gitlab,!124New: DataStorage.nrw client generation
Showing
with 392 additions and 30 deletions
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
*/ */
export const AcceptedLanguage = { export const AcceptedLanguage = {
De: 'de', de: 'de',
En: 'en' en: 'en'
} as const; } as const;
export type AcceptedLanguage = typeof AcceptedLanguage[keyof typeof AcceptedLanguage]; export type AcceptedLanguage = typeof AcceptedLanguage[keyof typeof AcceptedLanguage];
......
...@@ -21,11 +21,11 @@ ...@@ -21,11 +21,11 @@
*/ */
export const CoscineHttpMethod = { export const CoscineHttpMethod = {
Get: 'GET', GET: 'GET',
Head: 'HEAD', HEAD: 'HEAD',
Post: 'POST', POST: 'POST',
Put: 'PUT', PUT: 'PUT',
Delete: 'DELETE' DELETE: 'DELETE'
} as const; } as const;
export type CoscineHttpMethod = typeof CoscineHttpMethod[keyof typeof CoscineHttpMethod]; export type CoscineHttpMethod = typeof CoscineHttpMethod[keyof typeof CoscineHttpMethod];
......
/* tslint:disable */
/* eslint-disable */
/**
* Coscine Web API
* Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project.
*
* The version of the OpenAPI document: 2.0
* Contact: servicedesk@itc.rwth-aachen.de
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { QuotaDto } from './quota-dto';
/**
* Represents the data transfer object (DTO) for DataStorage.nrw S3 options.
* @export
* @interface DataStorageNrwS3OptionsDto
*/
export interface DataStorageNrwS3OptionsDto {
/**
* The name of the bucket associated with DataStorage.nrw S3.
* @type {string}
* @memberof DataStorageNrwS3OptionsDto
*/
'bucketName': string;
/**
* The access key for reading from the DataStorage.nrw S3 bucket.
* @type {string}
* @memberof DataStorageNrwS3OptionsDto
*/
'accessKeyRead': string;
/**
* The secret key for reading from the DataStorage.nrw S3 bucket.
* @type {string}
* @memberof DataStorageNrwS3OptionsDto
*/
'secretKeyRead': string;
/**
* The access key for writing to the DataStorage.nrw S3 bucket.
* @type {string}
* @memberof DataStorageNrwS3OptionsDto
*/
'accessKeyWrite': string;
/**
* The secret key for writing to the DataStorage.nrw S3 bucket.
* @type {string}
* @memberof DataStorageNrwS3OptionsDto
*/
'secretKeyWrite': string;
/**
* The endpoint for the DataStorage.nrw S3 bucket.
* @type {string}
* @memberof DataStorageNrwS3OptionsDto
*/
'endpoint': string;
/**
*
* @type {QuotaDto}
* @memberof DataStorageNrwS3OptionsDto
*/
'size'?: QuotaDto;
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine Web API
* Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project.
*
* The version of the OpenAPI document: 2.0
* Contact: servicedesk@itc.rwth-aachen.de
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { QuotaForManipulationDto } from './quota-for-manipulation-dto';
/**
* Represents the data transfer object (DTO) for manipulating DataStorage.nrw S3 resource type options.
* @export
* @interface DataStorageNrwS3ResourceTypeOptionsForManipulationDto
*/
export interface DataStorageNrwS3ResourceTypeOptionsForManipulationDto {
/**
*
* @type {QuotaForManipulationDto}
* @memberof DataStorageNrwS3ResourceTypeOptionsForManipulationDto
*/
'quota': QuotaForManipulationDto;
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine Web API
* Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project.
*
* The version of the OpenAPI document: 2.0
* Contact: servicedesk@itc.rwth-aachen.de
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { QuotaDto } from './quota-dto';
/**
* Represents the data transfer object (DTO) for DataStorage.nrw S3 WORM options.
* @export
* @interface DataStorageNrwS3WormOptionsDto
*/
export interface DataStorageNrwS3WormOptionsDto {
/**
* The name of the bucket associated with DataStorage.nrw S3 WORM.
* @type {string}
* @memberof DataStorageNrwS3WormOptionsDto
*/
'bucketName': string;
/**
* The access key for reading from the DataStorage.nrw S3 WORM bucket.
* @type {string}
* @memberof DataStorageNrwS3WormOptionsDto
*/
'accessKeyRead': string;
/**
* The secret key for reading from the DataStorage.nrw S3 WORM bucket.
* @type {string}
* @memberof DataStorageNrwS3WormOptionsDto
*/
'secretKeyRead': string;
/**
* The access key for writing to the DataStorage.nrw S3 WORM bucket.
* @type {string}
* @memberof DataStorageNrwS3WormOptionsDto
*/
'accessKeyWrite': string;
/**
* The secret key for writing to the DataStorage.nrw S3 WORM bucket.
* @type {string}
* @memberof DataStorageNrwS3WormOptionsDto
*/
'secretKeyWrite': string;
/**
* The endpoint for the RDS DataStorage.nrw WORM bucket.
* @type {string}
* @memberof DataStorageNrwS3WormOptionsDto
*/
'endpoint': string;
/**
*
* @type {QuotaDto}
* @memberof DataStorageNrwS3WormOptionsDto
*/
'size'?: QuotaDto;
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine Web API
* Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project.
*
* The version of the OpenAPI document: 2.0
* Contact: servicedesk@itc.rwth-aachen.de
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { QuotaForManipulationDto } from './quota-for-manipulation-dto';
/**
* Represents the data transfer object (DTO) for manipulating DataStorage.nrw S3 WORM resource type options.
* @export
* @interface DataStorageNrwS3WormResourceTypeOptionsForManipulationDto
*/
export interface DataStorageNrwS3WormResourceTypeOptionsForManipulationDto {
/**
*
* @type {QuotaForManipulationDto}
* @memberof DataStorageNrwS3WormResourceTypeOptionsForManipulationDto
*/
'quota': QuotaForManipulationDto;
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine Web API
* Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project.
*
* The version of the OpenAPI document: 2.0
* Contact: servicedesk@itc.rwth-aachen.de
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { QuotaDto } from './quota-dto';
/**
* Represents the data transfer object (DTO) for DataStorage.nrw Web options.
* @export
* @interface DataStorageNrwWebOptionsDto
*/
export interface DataStorageNrwWebOptionsDto {
/**
* The name of the bucket associated with DataStorage.nrw Web.
* @type {string}
* @memberof DataStorageNrwWebOptionsDto
*/
'bucketName': string;
/**
*
* @type {QuotaDto}
* @memberof DataStorageNrwWebOptionsDto
*/
'size'?: QuotaDto;
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine Web API
* Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project.
*
* The version of the OpenAPI document: 2.0
* Contact: servicedesk@itc.rwth-aachen.de
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { QuotaForManipulationDto } from './quota-for-manipulation-dto';
/**
* Represents the data transfer object (DTO) for manipulating DataStorage.nrw Web resource type options.
* @export
* @interface DataStorageNrwWebResourceTypeOptionsForManipulationDto
*/
export interface DataStorageNrwWebResourceTypeOptionsForManipulationDto {
/**
*
* @type {QuotaForManipulationDto}
* @memberof DataStorageNrwWebResourceTypeOptionsForManipulationDto
*/
'quota': QuotaForManipulationDto;
}
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
*/ */
export const FileActionHttpMethod = { export const FileActionHttpMethod = {
Get: 'GET', GET: 'GET',
Post: 'POST', POST: 'POST',
Put: 'PUT', PUT: 'PUT',
Delete: 'DELETE' DELETE: 'DELETE'
} as const; } as const;
export type FileActionHttpMethod = typeof FileActionHttpMethod[keyof typeof FileActionHttpMethod]; export type FileActionHttpMethod = typeof FileActionHttpMethod[keyof typeof FileActionHttpMethod];
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
export const IdentityProviders = { export const IdentityProviders = {
Shibboleth: 'Shibboleth', Shibboleth: 'Shibboleth',
OrciD: 'ORCiD' ORCiD: 'ORCiD'
} as const; } as const;
export type IdentityProviders = typeof IdentityProviders[keyof typeof IdentityProviders]; export type IdentityProviders = typeof IdentityProviders[keyof typeof IdentityProviders];
......
...@@ -13,6 +13,12 @@ export * from './application-profile-for-creation-dto-response'; ...@@ -13,6 +13,12 @@ export * from './application-profile-for-creation-dto-response';
export * from './application-profile-for-resource-creation-dto'; export * from './application-profile-for-resource-creation-dto';
export * from './application-profile-minimal-dto'; export * from './application-profile-minimal-dto';
export * from './coscine-http-method'; export * from './coscine-http-method';
export * from './data-storage-nrw-s3-options-dto';
export * from './data-storage-nrw-s3-resource-type-options-for-manipulation-dto';
export * from './data-storage-nrw-s3-worm-options-dto';
export * from './data-storage-nrw-s3-worm-resource-type-options-for-manipulation-dto';
export * from './data-storage-nrw-web-options-dto';
export * from './data-storage-nrw-web-resource-type-options-for-manipulation-dto';
export * from './deployed-graph-dto'; export * from './deployed-graph-dto';
export * from './deployed-graph-dto-paged-response'; export * from './deployed-graph-dto-paged-response';
export * from './discipline-dto'; export * from './discipline-dto';
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
*/ */
export const PidType = { export const PidType = {
Project: 'project', project: 'project',
Resource: 'resource' resource: 'resource'
} as const; } as const;
export type PidType = typeof PidType[keyof typeof PidType]; export type PidType = typeof PidType[keyof typeof PidType];
......
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
*/ */
export const QuotaUnit = { export const QuotaUnit = {
HttpsQudtOrgVocabUnitByte: 'https://qudt.org/vocab/unit/BYTE', https___qudt_org_vocab_unit_BYTE: 'https://qudt.org/vocab/unit/BYTE',
HttpsQudtOrgVocabUnitKibiByte: 'https://qudt.org/vocab/unit/KibiBYTE', https___qudt_org_vocab_unit_KibiBYTE: 'https://qudt.org/vocab/unit/KibiBYTE',
HttpsQudtOrgVocabUnitMebiByte: 'https://qudt.org/vocab/unit/MebiBYTE', https___qudt_org_vocab_unit_MebiBYTE: 'https://qudt.org/vocab/unit/MebiBYTE',
HttpsQudtOrgVocabUnitGibiByte: 'https://qudt.org/vocab/unit/GibiBYTE', https___qudt_org_vocab_unit_GibiBYTE: 'https://qudt.org/vocab/unit/GibiBYTE',
HttpsQudtOrgVocabUnitTebiByte: 'https://qudt.org/vocab/unit/TebiBYTE', https___qudt_org_vocab_unit_TebiBYTE: 'https://qudt.org/vocab/unit/TebiBYTE',
HttpsQudtOrgVocabUnitPebiByte: 'https://qudt.org/vocab/unit/PebiBYTE' https___qudt_org_vocab_unit_PebiBYTE: 'https://qudt.org/vocab/unit/PebiBYTE'
} as const; } as const;
export type QuotaUnit = typeof QuotaUnit[keyof typeof QuotaUnit]; export type QuotaUnit = typeof QuotaUnit[keyof typeof QuotaUnit];
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
*/ */
export const RdfFormat = { export const RdfFormat = {
TextTurtle: 'text/turtle', text_turtle: 'text/turtle',
ApplicationLdjson: 'application/ld+json', application_ldjson: 'application/ld+json',
ApplicationXTrig: 'application/x-trig' application_x_trig: 'application/x-trig'
} as const; } as const;
export type RdfFormat = typeof RdfFormat[keyof typeof RdfFormat]; export type RdfFormat = typeof RdfFormat[keyof typeof RdfFormat];
......
...@@ -13,6 +13,15 @@ ...@@ -13,6 +13,15 @@
*/ */
// May contain unused imports in some cases
// @ts-ignore
import type { DataStorageNrwS3OptionsDto } from './data-storage-nrw-s3-options-dto';
// May contain unused imports in some cases
// @ts-ignore
import type { DataStorageNrwS3WormOptionsDto } from './data-storage-nrw-s3-worm-options-dto';
// May contain unused imports in some cases
// @ts-ignore
import type { DataStorageNrwWebOptionsDto } from './data-storage-nrw-web-options-dto';
// May contain unused imports in some cases // May contain unused imports in some cases
// @ts-ignore // @ts-ignore
import type { FileSystemStorageOptionsDto } from './file-system-storage-options-dto'; import type { FileSystemStorageOptionsDto } from './file-system-storage-options-dto';
...@@ -71,5 +80,23 @@ export interface ResourceTypeOptionsDto { ...@@ -71,5 +80,23 @@ export interface ResourceTypeOptionsDto {
* @memberof ResourceTypeOptionsDto * @memberof ResourceTypeOptionsDto
*/ */
'fileSystemStorage'?: FileSystemStorageOptionsDto; 'fileSystemStorage'?: FileSystemStorageOptionsDto;
/**
*
* @type {DataStorageNrwWebOptionsDto}
* @memberof ResourceTypeOptionsDto
*/
'dataStorageNrwWeb'?: DataStorageNrwWebOptionsDto;
/**
*
* @type {DataStorageNrwS3OptionsDto}
* @memberof ResourceTypeOptionsDto
*/
'dataStorageNrwS3'?: DataStorageNrwS3OptionsDto;
/**
*
* @type {DataStorageNrwS3WormOptionsDto}
* @memberof ResourceTypeOptionsDto
*/
'dataStorageNrwS3Worm'?: DataStorageNrwS3WormOptionsDto;
} }
...@@ -13,6 +13,15 @@ ...@@ -13,6 +13,15 @@
*/ */
// May contain unused imports in some cases
// @ts-ignore
import type { DataStorageNrwS3ResourceTypeOptionsForManipulationDto } from './data-storage-nrw-s3-resource-type-options-for-manipulation-dto';
// May contain unused imports in some cases
// @ts-ignore
import type { DataStorageNrwS3WormResourceTypeOptionsForManipulationDto } from './data-storage-nrw-s3-worm-resource-type-options-for-manipulation-dto';
// May contain unused imports in some cases
// @ts-ignore
import type { DataStorageNrwWebResourceTypeOptionsForManipulationDto } from './data-storage-nrw-web-resource-type-options-for-manipulation-dto';
// May contain unused imports in some cases // May contain unused imports in some cases
// @ts-ignore // @ts-ignore
import type { GitlabResourceTypeOptionsForCreationDto } from './gitlab-resource-type-options-for-creation-dto'; import type { GitlabResourceTypeOptionsForCreationDto } from './gitlab-resource-type-options-for-creation-dto';
...@@ -62,5 +71,23 @@ export interface ResourceTypeOptionsForCreationDto { ...@@ -62,5 +71,23 @@ export interface ResourceTypeOptionsForCreationDto {
* @memberof ResourceTypeOptionsForCreationDto * @memberof ResourceTypeOptionsForCreationDto
*/ */
'rdsS3WormResourceTypeOptions'?: RdsS3WormResourceTypeOptionsForManipulationDto; 'rdsS3WormResourceTypeOptions'?: RdsS3WormResourceTypeOptionsForManipulationDto;
/**
*
* @type {DataStorageNrwWebResourceTypeOptionsForManipulationDto}
* @memberof ResourceTypeOptionsForCreationDto
*/
'dataStorageNrwWebResourceTypeOptions'?: DataStorageNrwWebResourceTypeOptionsForManipulationDto;
/**
*
* @type {DataStorageNrwS3ResourceTypeOptionsForManipulationDto}
* @memberof ResourceTypeOptionsForCreationDto
*/
'dataStorageNrwS3ResourceTypeOptions'?: DataStorageNrwS3ResourceTypeOptionsForManipulationDto;
/**
*
* @type {DataStorageNrwS3WormResourceTypeOptionsForManipulationDto}
* @memberof ResourceTypeOptionsForCreationDto
*/
'dataStorageNrwS3WormResourceTypeOptions'?: DataStorageNrwS3WormResourceTypeOptionsForManipulationDto;
} }
...@@ -13,6 +13,15 @@ ...@@ -13,6 +13,15 @@
*/ */
// May contain unused imports in some cases
// @ts-ignore
import type { DataStorageNrwS3ResourceTypeOptionsForManipulationDto } from './data-storage-nrw-s3-resource-type-options-for-manipulation-dto';
// May contain unused imports in some cases
// @ts-ignore
import type { DataStorageNrwS3WormResourceTypeOptionsForManipulationDto } from './data-storage-nrw-s3-worm-resource-type-options-for-manipulation-dto';
// May contain unused imports in some cases
// @ts-ignore
import type { DataStorageNrwWebResourceTypeOptionsForManipulationDto } from './data-storage-nrw-web-resource-type-options-for-manipulation-dto';
// May contain unused imports in some cases // May contain unused imports in some cases
// @ts-ignore // @ts-ignore
import type { GitlabResourceTypeOptionsForUpdateDto } from './gitlab-resource-type-options-for-update-dto'; import type { GitlabResourceTypeOptionsForUpdateDto } from './gitlab-resource-type-options-for-update-dto';
...@@ -62,5 +71,23 @@ export interface ResourceTypeOptionsForUpdateDto { ...@@ -62,5 +71,23 @@ export interface ResourceTypeOptionsForUpdateDto {
* @memberof ResourceTypeOptionsForUpdateDto * @memberof ResourceTypeOptionsForUpdateDto
*/ */
'rdsS3WormResourceTypeOptions'?: RdsS3WormResourceTypeOptionsForManipulationDto; 'rdsS3WormResourceTypeOptions'?: RdsS3WormResourceTypeOptionsForManipulationDto;
/**
*
* @type {DataStorageNrwWebResourceTypeOptionsForManipulationDto}
* @memberof ResourceTypeOptionsForUpdateDto
*/
'dataStorageNrwWebResourceTypeOptions'?: DataStorageNrwWebResourceTypeOptionsForManipulationDto;
/**
*
* @type {DataStorageNrwS3ResourceTypeOptionsForManipulationDto}
* @memberof ResourceTypeOptionsForUpdateDto
*/
'dataStorageNrwS3ResourceTypeOptions'?: DataStorageNrwS3ResourceTypeOptionsForManipulationDto;
/**
*
* @type {DataStorageNrwS3WormResourceTypeOptionsForManipulationDto}
* @memberof ResourceTypeOptionsForUpdateDto
*/
'dataStorageNrwS3WormResourceTypeOptions'?: DataStorageNrwS3WormResourceTypeOptionsForManipulationDto;
} }
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
*/ */
export const ResourceTypeStatus = { export const ResourceTypeStatus = {
Hidden: 'hidden', hidden: 'hidden',
Active: 'active' active: 'active'
} as const; } as const;
export type ResourceTypeStatus = typeof ResourceTypeStatus[keyof typeof ResourceTypeStatus]; export type ResourceTypeStatus = typeof ResourceTypeStatus[keyof typeof ResourceTypeStatus];
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
export const SearchCategoryType = { export const SearchCategoryType = {
None: 'None', None: 'None',
HttpsPurlOrgCoscineTermsStructureMetadata: 'https://purl.org/coscine/terms/structure#Metadata', https___purl_org_coscine_terms_structureMetadata: 'https://purl.org/coscine/terms/structure#Metadata',
HttpsPurlOrgCoscineTermsStructureProject: 'https://purl.org/coscine/terms/structure#Project', https___purl_org_coscine_terms_structureProject: 'https://purl.org/coscine/terms/structure#Project',
HttpsPurlOrgCoscineTermsStructureResource: 'https://purl.org/coscine/terms/structure#Resource' https___purl_org_coscine_terms_structureResource: 'https://purl.org/coscine/terms/structure#Resource'
} as const; } as const;
export type SearchCategoryType = typeof SearchCategoryType[keyof typeof SearchCategoryType]; export type SearchCategoryType = typeof SearchCategoryType[keyof typeof SearchCategoryType];
......
...@@ -90,11 +90,10 @@ export class Configuration { ...@@ -90,11 +90,10 @@ export class Configuration {
this.basePath = param.basePath; this.basePath = param.basePath;
this.serverIndex = param.serverIndex; this.serverIndex = param.serverIndex;
this.baseOptions = { this.baseOptions = {
...param.baseOptions,
headers: { headers: {
...param.baseOptions?.headers, ...param.baseOptions?.headers,
'User-Agent': "OpenAPI-Generator/typescript-axios"
}, },
...param.baseOptions
}; };
this.formDataCtor = param.formDataCtor; this.formDataCtor = param.formDataCtor;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment