diff --git a/generate-api-client.sh b/generate-api-client.sh index 7bbb4dba6105abbbd9a01c8dba579d9dbf4698a7..a3920d29a911e35f98cc1e35b6f9211a97345b1b 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 d7d33c0fbb6c79302c9dd46dfa9c1787fda3becf..9564f253204fc51a348896a5313f925f9595b44c 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 0cfe06c792afc16d5e5c94aa183c0758b890fb59..0defad1a22eba6df17bc0bb09b3367f3bf00368a 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 0000000000000000000000000000000000000000..acdd14bf36ac1d032ee94674a50f18e7b82f2bab --- /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 0000000000000000000000000000000000000000..030933c21bf95f9e7a54529829030a816fe46073 --- /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 0000000000000000000000000000000000000000..038df5f46ae7c7df986d981be8e40fe628fc613e --- /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 0000000000000000000000000000000000000000..d32c9632504c5a976176f0d731d4fa29bd708449 --- /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 0000000000000000000000000000000000000000..ed65f49d5cd9f790c952ce7002d1db3a8d429fd2 --- /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 0000000000000000000000000000000000000000..6969f7a03917617684643ae453cd1e209e1dbdd2 --- /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 d9f2c1673898ab72314babfb45c4616bc16b86ff..6397a4348a7d1e2f1d84970fb4f1614a914e8933 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 2aba02f665dbe27afa8c7f3a1f4674acfd91e47c..5e1be58b04575823af219e1cb4b0e779fcbf87c2 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 b5029dda885afe2d026074c839fcaf38a581681e..69e381a77a22e4ef9a331639df9400d2e0e1054f 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 8aecede97260da886a9ddbd1dcc5a64043da3ab9..254477232a5ae946495ff324ea8b4765e0239919 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 13563fe671ead7261d5823254daaf8057485e63c..f8e27b1e019039e0cc70762e006c25ed7460ea48 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 37653764fbe2ffdae9b855ada26ef3098c1374cc..b1accd89c8dffd87d8db71bfa2270a3378970196 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 9667c84c5c57f8a9de17b0d04b3540e6548bad06..5e8331c4dc46ab3ae4c18f68f0b3a823917bf181 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 e825dd621c28acaba6fe50b3b666ba8dd0a0922f..48899f07a9c5c9503acafd608cc674aa4cd5b619 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 9ad2b64048fe69f8e31e641158869c322b60c626..32e62b4979f78075cd82ecd9240942e84b72062e 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 9fdc676402cdf3dca9921179d3c8b8afa587f308..ab2566c65731fa80581d79fe26b57936b706a4ba 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 a4e525a97eb45567b964aedf126af6ec8750f58d..4444d0c4cf57737acf58e18ad3fd71b8848a4c50 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 bacb351487f315876c39d18a8b075e7483578b2a..3648583157ca4a6fc5cf49091017476ae72a5242 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 e8734db245dc920f906fe4b11ba21977ae39dafa..9a81f471c3e917d01bb409232998fba6fdfd046a 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 4e1b0f6fd886a4d1334532d07f7869b7def51a76..82dd09817f38aab1c5adbb57de054e62c1f96725 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 58975734eb88a721181e00bba69367625a5d8ecf..8c1c4b60f4dbb1a84377d878cb2f1ecb361ecd7d 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;