From 88433d74099006aa8246a302d365a6bf98c1e589 Mon Sep 17 00:00:00 2001 From: Philip Dorsch <dorsch@itc.rwth-aachen.de> Date: Wed, 26 Mar 2025 11:39:17 +0100 Subject: [PATCH] Update: api client with resource type gitlab --- generate-api-client.sh | 2 +- .../@coscine/model/accepted-language.ts | 4 +- .../@coscine/model/coscine-http-method.ts | 10 +-- .../model/data-storage-nrw-s3-options-dto.ts | 69 +++++++++++++++++++ ...ource-type-options-for-manipulation-dto.ts | 33 +++++++++ .../data-storage-nrw-s3-worm-options-dto.ts | 69 +++++++++++++++++++ ...ource-type-options-for-manipulation-dto.ts | 33 +++++++++ .../model/data-storage-nrw-web-options-dto.ts | 39 +++++++++++ ...ource-type-options-for-manipulation-dto.ts | 33 +++++++++ .../@coscine/model/file-action-http-method.ts | 8 +-- .../@coscine/model/identity-providers.ts | 2 +- src/Coscine.Api/@coscine/model/index.ts | 6 ++ src/Coscine.Api/@coscine/model/pid-type.ts | 4 +- src/Coscine.Api/@coscine/model/quota-unit.ts | 12 ++-- src/Coscine.Api/@coscine/model/rdf-format.ts | 6 +- .../model/resource-type-options-dto.ts | 27 ++++++++ .../resource-type-options-for-creation-dto.ts | 27 ++++++++ .../resource-type-options-for-update-dto.ts | 27 ++++++++ .../@coscine/model/resource-type-status.ts | 4 +- .../@coscine/model/search-category-type.ts | 6 +- src/Coscine.Api/base.ts | 2 +- src/Coscine.Api/configuration.ts | 3 +- src/apis.ts | 2 + src/index.ts | 1 + 24 files changed, 397 insertions(+), 32 deletions(-) create mode 100644 src/Coscine.Api/@coscine/model/data-storage-nrw-s3-options-dto.ts create mode 100644 src/Coscine.Api/@coscine/model/data-storage-nrw-s3-resource-type-options-for-manipulation-dto.ts create mode 100644 src/Coscine.Api/@coscine/model/data-storage-nrw-s3-worm-options-dto.ts create mode 100644 src/Coscine.Api/@coscine/model/data-storage-nrw-s3-worm-resource-type-options-for-manipulation-dto.ts create mode 100644 src/Coscine.Api/@coscine/model/data-storage-nrw-web-options-dto.ts create mode 100644 src/Coscine.Api/@coscine/model/data-storage-nrw-web-resource-type-options-for-manipulation-dto.ts diff --git a/generate-api-client.sh b/generate-api-client.sh index 7bbb4db..a3920d2 100644 --- a/generate-api-client.sh +++ b/generate-api-client.sh @@ -14,7 +14,7 @@ # Defined variables: OUTPUT_DIR="temp" # The temporary directory for generated files PACKAGE_NAME="Coscine.Api" # The package name for the API client -API_SPEC_URL="https://coscine-hristov.web.vulcanus.otc.coscine.dev/coscine/api/swagger/v2/swagger.json" # URL to the OpenAPI spec file +API_SPEC_URL="https://coscine-dorsch.web.vulcanus.otc.coscine.dev/coscine/api/swagger/v2/swagger.json" # URL to the OpenAPI spec file # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # ANSI color codes for styling diff --git a/src/Coscine.Api/@coscine/model/accepted-language.ts b/src/Coscine.Api/@coscine/model/accepted-language.ts index d7d33c0..9564f25 100644 --- a/src/Coscine.Api/@coscine/model/accepted-language.ts +++ b/src/Coscine.Api/@coscine/model/accepted-language.ts @@ -21,8 +21,8 @@ */ export const AcceptedLanguage = { - De: 'de', - En: 'en' + de: 'de', + en: 'en' } as const; export type AcceptedLanguage = typeof AcceptedLanguage[keyof typeof AcceptedLanguage]; diff --git a/src/Coscine.Api/@coscine/model/coscine-http-method.ts b/src/Coscine.Api/@coscine/model/coscine-http-method.ts index 0cfe06c..0defad1 100644 --- a/src/Coscine.Api/@coscine/model/coscine-http-method.ts +++ b/src/Coscine.Api/@coscine/model/coscine-http-method.ts @@ -21,11 +21,11 @@ */ export const CoscineHttpMethod = { - Get: 'GET', - Head: 'HEAD', - Post: 'POST', - Put: 'PUT', - Delete: 'DELETE' + GET: 'GET', + HEAD: 'HEAD', + POST: 'POST', + PUT: 'PUT', + DELETE: 'DELETE' } as const; export type CoscineHttpMethod = typeof CoscineHttpMethod[keyof typeof CoscineHttpMethod]; diff --git a/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-options-dto.ts b/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-options-dto.ts new file mode 100644 index 0000000..acdd14b --- /dev/null +++ b/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-options-dto.ts @@ -0,0 +1,69 @@ +/* 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; +} + diff --git a/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-resource-type-options-for-manipulation-dto.ts b/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-resource-type-options-for-manipulation-dto.ts new file mode 100644 index 0000000..030933c --- /dev/null +++ b/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-resource-type-options-for-manipulation-dto.ts @@ -0,0 +1,33 @@ +/* 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; +} + diff --git a/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-worm-options-dto.ts b/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-worm-options-dto.ts new file mode 100644 index 0000000..038df5f --- /dev/null +++ b/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-worm-options-dto.ts @@ -0,0 +1,69 @@ +/* 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; +} + diff --git a/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-worm-resource-type-options-for-manipulation-dto.ts b/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-worm-resource-type-options-for-manipulation-dto.ts new file mode 100644 index 0000000..d32c963 --- /dev/null +++ b/src/Coscine.Api/@coscine/model/data-storage-nrw-s3-worm-resource-type-options-for-manipulation-dto.ts @@ -0,0 +1,33 @@ +/* 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; +} + diff --git a/src/Coscine.Api/@coscine/model/data-storage-nrw-web-options-dto.ts b/src/Coscine.Api/@coscine/model/data-storage-nrw-web-options-dto.ts new file mode 100644 index 0000000..ed65f49 --- /dev/null +++ b/src/Coscine.Api/@coscine/model/data-storage-nrw-web-options-dto.ts @@ -0,0 +1,39 @@ +/* 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; +} + diff --git a/src/Coscine.Api/@coscine/model/data-storage-nrw-web-resource-type-options-for-manipulation-dto.ts b/src/Coscine.Api/@coscine/model/data-storage-nrw-web-resource-type-options-for-manipulation-dto.ts new file mode 100644 index 0000000..6969f7a --- /dev/null +++ b/src/Coscine.Api/@coscine/model/data-storage-nrw-web-resource-type-options-for-manipulation-dto.ts @@ -0,0 +1,33 @@ +/* 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; +} + diff --git a/src/Coscine.Api/@coscine/model/file-action-http-method.ts b/src/Coscine.Api/@coscine/model/file-action-http-method.ts index d9f2c16..6397a43 100644 --- a/src/Coscine.Api/@coscine/model/file-action-http-method.ts +++ b/src/Coscine.Api/@coscine/model/file-action-http-method.ts @@ -21,10 +21,10 @@ */ export const FileActionHttpMethod = { - Get: 'GET', - Post: 'POST', - Put: 'PUT', - Delete: 'DELETE' + GET: 'GET', + POST: 'POST', + PUT: 'PUT', + DELETE: 'DELETE' } as const; export type FileActionHttpMethod = typeof FileActionHttpMethod[keyof typeof FileActionHttpMethod]; diff --git a/src/Coscine.Api/@coscine/model/identity-providers.ts b/src/Coscine.Api/@coscine/model/identity-providers.ts index 2aba02f..5e1be58 100644 --- a/src/Coscine.Api/@coscine/model/identity-providers.ts +++ b/src/Coscine.Api/@coscine/model/identity-providers.ts @@ -22,7 +22,7 @@ export const IdentityProviders = { Shibboleth: 'Shibboleth', - OrciD: 'ORCiD' + ORCiD: 'ORCiD' } as const; export type IdentityProviders = typeof IdentityProviders[keyof typeof IdentityProviders]; diff --git a/src/Coscine.Api/@coscine/model/index.ts b/src/Coscine.Api/@coscine/model/index.ts index b5029dd..69e381a 100644 --- a/src/Coscine.Api/@coscine/model/index.ts +++ b/src/Coscine.Api/@coscine/model/index.ts @@ -13,6 +13,12 @@ export * from './application-profile-for-creation-dto-response'; export * from './application-profile-for-resource-creation-dto'; export * from './application-profile-minimal-dto'; 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-paged-response'; export * from './discipline-dto'; diff --git a/src/Coscine.Api/@coscine/model/pid-type.ts b/src/Coscine.Api/@coscine/model/pid-type.ts index 8aecede..2544772 100644 --- a/src/Coscine.Api/@coscine/model/pid-type.ts +++ b/src/Coscine.Api/@coscine/model/pid-type.ts @@ -21,8 +21,8 @@ */ export const PidType = { - Project: 'project', - Resource: 'resource' + project: 'project', + resource: 'resource' } as const; export type PidType = typeof PidType[keyof typeof PidType]; diff --git a/src/Coscine.Api/@coscine/model/quota-unit.ts b/src/Coscine.Api/@coscine/model/quota-unit.ts index 13563fe..f8e27b1 100644 --- a/src/Coscine.Api/@coscine/model/quota-unit.ts +++ b/src/Coscine.Api/@coscine/model/quota-unit.ts @@ -21,12 +21,12 @@ */ export const QuotaUnit = { - HttpsQudtOrgVocabUnitByte: 'https://qudt.org/vocab/unit/BYTE', - HttpsQudtOrgVocabUnitKibiByte: 'https://qudt.org/vocab/unit/KibiBYTE', - HttpsQudtOrgVocabUnitMebiByte: 'https://qudt.org/vocab/unit/MebiBYTE', - HttpsQudtOrgVocabUnitGibiByte: 'https://qudt.org/vocab/unit/GibiBYTE', - HttpsQudtOrgVocabUnitTebiByte: 'https://qudt.org/vocab/unit/TebiBYTE', - HttpsQudtOrgVocabUnitPebiByte: 'https://qudt.org/vocab/unit/PebiBYTE' + https___qudt_org_vocab_unit_BYTE: 'https://qudt.org/vocab/unit/BYTE', + https___qudt_org_vocab_unit_KibiBYTE: 'https://qudt.org/vocab/unit/KibiBYTE', + https___qudt_org_vocab_unit_MebiBYTE: 'https://qudt.org/vocab/unit/MebiBYTE', + https___qudt_org_vocab_unit_GibiBYTE: 'https://qudt.org/vocab/unit/GibiBYTE', + https___qudt_org_vocab_unit_TebiBYTE: 'https://qudt.org/vocab/unit/TebiBYTE', + https___qudt_org_vocab_unit_PebiBYTE: 'https://qudt.org/vocab/unit/PebiBYTE' } as const; export type QuotaUnit = typeof QuotaUnit[keyof typeof QuotaUnit]; diff --git a/src/Coscine.Api/@coscine/model/rdf-format.ts b/src/Coscine.Api/@coscine/model/rdf-format.ts index 3765376..b1accd8 100644 --- a/src/Coscine.Api/@coscine/model/rdf-format.ts +++ b/src/Coscine.Api/@coscine/model/rdf-format.ts @@ -21,9 +21,9 @@ */ export const RdfFormat = { - TextTurtle: 'text/turtle', - ApplicationLdjson: 'application/ld+json', - ApplicationXTrig: 'application/x-trig' + text_turtle: 'text/turtle', + application_ldjson: 'application/ld+json', + application_x_trig: 'application/x-trig' } as const; export type RdfFormat = typeof RdfFormat[keyof typeof RdfFormat]; diff --git a/src/Coscine.Api/@coscine/model/resource-type-options-dto.ts b/src/Coscine.Api/@coscine/model/resource-type-options-dto.ts index 9667c84..5e8331c 100644 --- a/src/Coscine.Api/@coscine/model/resource-type-options-dto.ts +++ b/src/Coscine.Api/@coscine/model/resource-type-options-dto.ts @@ -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 // @ts-ignore import type { FileSystemStorageOptionsDto } from './file-system-storage-options-dto'; @@ -71,5 +80,23 @@ export interface ResourceTypeOptionsDto { * @memberof ResourceTypeOptionsDto */ 'fileSystemStorage'?: FileSystemStorageOptionsDto; + /** + * + * @type {DataStorageNrwWebOptionsDto} + * @memberof ResourceTypeOptionsDto + */ + 'dataStorageNrwWeb'?: DataStorageNrwWebOptionsDto; + /** + * + * @type {DataStorageNrwS3OptionsDto} + * @memberof ResourceTypeOptionsDto + */ + 'dataStorageNrwS3'?: DataStorageNrwS3OptionsDto; + /** + * + * @type {DataStorageNrwS3WormOptionsDto} + * @memberof ResourceTypeOptionsDto + */ + 'dataStorageNrwS3Worm'?: DataStorageNrwS3WormOptionsDto; } diff --git a/src/Coscine.Api/@coscine/model/resource-type-options-for-creation-dto.ts b/src/Coscine.Api/@coscine/model/resource-type-options-for-creation-dto.ts index e825dd6..48899f0 100644 --- a/src/Coscine.Api/@coscine/model/resource-type-options-for-creation-dto.ts +++ b/src/Coscine.Api/@coscine/model/resource-type-options-for-creation-dto.ts @@ -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 // @ts-ignore import type { GitlabResourceTypeOptionsForCreationDto } from './gitlab-resource-type-options-for-creation-dto'; @@ -62,5 +71,23 @@ export interface ResourceTypeOptionsForCreationDto { * @memberof ResourceTypeOptionsForCreationDto */ 'rdsS3WormResourceTypeOptions'?: RdsS3WormResourceTypeOptionsForManipulationDto; + /** + * + * @type {DataStorageNrwWebResourceTypeOptionsForManipulationDto} + * @memberof ResourceTypeOptionsForCreationDto + */ + 'dataStorageNrwWebResourceTypeOptions'?: DataStorageNrwWebResourceTypeOptionsForManipulationDto; + /** + * + * @type {DataStorageNrwS3ResourceTypeOptionsForManipulationDto} + * @memberof ResourceTypeOptionsForCreationDto + */ + 'dataStorageNrwS3ResourceTypeOptions'?: DataStorageNrwS3ResourceTypeOptionsForManipulationDto; + /** + * + * @type {DataStorageNrwS3WormResourceTypeOptionsForManipulationDto} + * @memberof ResourceTypeOptionsForCreationDto + */ + 'dataStorageNrwS3WormResourceTypeOptions'?: DataStorageNrwS3WormResourceTypeOptionsForManipulationDto; } diff --git a/src/Coscine.Api/@coscine/model/resource-type-options-for-update-dto.ts b/src/Coscine.Api/@coscine/model/resource-type-options-for-update-dto.ts index 9ad2b64..32e62b4 100644 --- a/src/Coscine.Api/@coscine/model/resource-type-options-for-update-dto.ts +++ b/src/Coscine.Api/@coscine/model/resource-type-options-for-update-dto.ts @@ -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 // @ts-ignore import type { GitlabResourceTypeOptionsForUpdateDto } from './gitlab-resource-type-options-for-update-dto'; @@ -62,5 +71,23 @@ export interface ResourceTypeOptionsForUpdateDto { * @memberof ResourceTypeOptionsForUpdateDto */ 'rdsS3WormResourceTypeOptions'?: RdsS3WormResourceTypeOptionsForManipulationDto; + /** + * + * @type {DataStorageNrwWebResourceTypeOptionsForManipulationDto} + * @memberof ResourceTypeOptionsForUpdateDto + */ + 'dataStorageNrwWebResourceTypeOptions'?: DataStorageNrwWebResourceTypeOptionsForManipulationDto; + /** + * + * @type {DataStorageNrwS3ResourceTypeOptionsForManipulationDto} + * @memberof ResourceTypeOptionsForUpdateDto + */ + 'dataStorageNrwS3ResourceTypeOptions'?: DataStorageNrwS3ResourceTypeOptionsForManipulationDto; + /** + * + * @type {DataStorageNrwS3WormResourceTypeOptionsForManipulationDto} + * @memberof ResourceTypeOptionsForUpdateDto + */ + 'dataStorageNrwS3WormResourceTypeOptions'?: DataStorageNrwS3WormResourceTypeOptionsForManipulationDto; } diff --git a/src/Coscine.Api/@coscine/model/resource-type-status.ts b/src/Coscine.Api/@coscine/model/resource-type-status.ts index 9fdc676..ab2566c 100644 --- a/src/Coscine.Api/@coscine/model/resource-type-status.ts +++ b/src/Coscine.Api/@coscine/model/resource-type-status.ts @@ -21,8 +21,8 @@ */ export const ResourceTypeStatus = { - Hidden: 'hidden', - Active: 'active' + hidden: 'hidden', + active: 'active' } as const; export type ResourceTypeStatus = typeof ResourceTypeStatus[keyof typeof ResourceTypeStatus]; diff --git a/src/Coscine.Api/@coscine/model/search-category-type.ts b/src/Coscine.Api/@coscine/model/search-category-type.ts index a4e525a..4444d0c 100644 --- a/src/Coscine.Api/@coscine/model/search-category-type.ts +++ b/src/Coscine.Api/@coscine/model/search-category-type.ts @@ -22,9 +22,9 @@ export const SearchCategoryType = { None: 'None', - HttpsPurlOrgCoscineTermsStructureMetadata: 'https://purl.org/coscine/terms/structure#Metadata', - HttpsPurlOrgCoscineTermsStructureProject: 'https://purl.org/coscine/terms/structure#Project', - HttpsPurlOrgCoscineTermsStructureResource: 'https://purl.org/coscine/terms/structure#Resource' + https___purl_org_coscine_terms_structureMetadata: 'https://purl.org/coscine/terms/structure#Metadata', + https___purl_org_coscine_terms_structureProject: 'https://purl.org/coscine/terms/structure#Project', + https___purl_org_coscine_terms_structureResource: 'https://purl.org/coscine/terms/structure#Resource' } as const; export type SearchCategoryType = typeof SearchCategoryType[keyof typeof SearchCategoryType]; diff --git a/src/Coscine.Api/base.ts b/src/Coscine.Api/base.ts index bacb351..3648583 100644 --- a/src/Coscine.Api/base.ts +++ b/src/Coscine.Api/base.ts @@ -19,7 +19,7 @@ import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; -export const BASE_PATH = "https://coscine-hristov.web.vulcanus.otc.coscine.dev/coscine".replace(/\/+$/, ""); +export const BASE_PATH = "https://coscine-dorsch.web.vulcanus.otc.coscine.dev/coscine".replace(/\/+$/, ""); /** * diff --git a/src/Coscine.Api/configuration.ts b/src/Coscine.Api/configuration.ts index e8734db..9a81f47 100644 --- a/src/Coscine.Api/configuration.ts +++ b/src/Coscine.Api/configuration.ts @@ -90,11 +90,10 @@ export class Configuration { this.basePath = param.basePath; this.serverIndex = param.serverIndex; this.baseOptions = { + ...param.baseOptions, headers: { ...param.baseOptions?.headers, - 'User-Agent': "OpenAPI-Generator/typescript-axios" }, - ...param.baseOptions }; this.formDataCtor = param.formDataCtor; } diff --git a/src/apis.ts b/src/apis.ts index 4e1b0f6..82dd098 100644 --- a/src/apis.ts +++ b/src/apis.ts @@ -24,6 +24,7 @@ import { ProjectResourceTypeApiFactory, ResourceApiFactory, ResourceTypeApiFactory, + ResourceTypeGitLabApiFactory, RoleApiFactory, SearchApiFactory, SelfApiFactory, @@ -98,6 +99,7 @@ function implementations(axios?: AxiosInstance) { ProjectResourceTypeApi: ProjectResourceTypeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine', axios), ResourceApi: ResourceApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine', axios), ResourceTypeApi: ResourceTypeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine', axios), + ResourceTypeGitLabApi: ResourceTypeGitLabApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine', axios), RoleApi: RoleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine', axios), SearchApi: SearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine', axios), SelfApi: SelfApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine', axios), diff --git a/src/index.ts b/src/index.ts index 5897573..8c1c4b6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -28,6 +28,7 @@ export const ProjectResourceQuotaApi = apis.ProjectResourceQuotaApi; export const ProjectResourceTypeApi = apis.ProjectResourceTypeApi; export const ResourceApi = apis.ResourceApi; export const ResourceTypeApi = apis.ResourceTypeApi; +export const ResourceTypeGitLabApi = apis.ResourceTypeGitLabApi; export const RoleApi = apis.RoleApi; export const SearchApi = apis.SearchApi; export const SelfApi = apis.SelfApi; -- GitLab