From 326171b336997cc409155bb92d6c9cd7495e9566 Mon Sep 17 00:00:00 2001 From: Timo Date: Thu, 24 Jun 2021 11:13:36 +0300 Subject: [PATCH] API rework --- .../app/models/file/file-status.wrapper.ts | 2 +- .../src/lib/api/auditController.service.ts | 22 ++-- .../lib/api/dictionaryController.service.ts | 52 ++++----- .../api/digitalSignatureController.service.ts | 48 ++++---- .../dossierAttributesController.service.ts | 28 ++--- .../src/lib/api/dossierController.service.ts | 44 +++----- .../api/dossierTemplateController.service.ts | 32 ++---- .../src/lib/api/downloadController.service.ts | 50 ++++----- .../api/fileAttributesController.service.ts | 22 ++-- .../api/fileManagementController.service.ts | 12 +- .../api/generalSettingsController.service.ts | 22 ++-- .../src/lib/api/infoController.service.ts | 18 ++- .../legalBasisMappingController.service.ts | 10 +- .../api/licenseReportController.service.ts | 22 ++-- .../api/manualRedactionController.service.ts | 46 +++----- .../lib/api/reanalysisController.service.ts | 28 ++--- .../lib/api/redactionLogController.service.ts | 8 +- .../api/reportTemplateController.service.ts | 14 +-- .../src/lib/api/rulesController.service.ts | 16 +-- .../smtpConfigurationController.service.ts | 56 ++++----- .../src/lib/api/statusController.service.ts | 38 +++---- .../src/lib/api/uploadController.service.ts | 4 +- .../src/lib/api/userController.service.ts | 106 +++++++----------- .../api/userPreferenceController.service.ts | 8 +- .../src/lib/api/versionsController.service.ts | 6 +- .../lib/api/viewedPagesController.service.ts | 8 +- .../lib/api/watermarkController.service.ts | 14 +-- 27 files changed, 287 insertions(+), 449 deletions(-) diff --git a/apps/red-ui/src/app/models/file/file-status.wrapper.ts b/apps/red-ui/src/app/models/file/file-status.wrapper.ts index 2a30f521b..3ba6c8808 100644 --- a/apps/red-ui/src/app/models/file/file-status.wrapper.ts +++ b/apps/red-ui/src/app/models/file/file-status.wrapper.ts @@ -141,7 +141,7 @@ export class FileStatusWrapper { return [ FileStatus.StatusEnum.REPROCESS, FileStatus.StatusEnum.FULLREPROCESS, - FileStatus.StatusEnum.OCR_PROCESSING, + FileStatus.StatusEnum.OCRPROCESSING, FileStatus.StatusEnum.PROCESSING ].includes(this.status); } diff --git a/libs/red-ui-http/src/lib/api/auditController.service.ts b/libs/red-ui-http/src/lib/api/auditController.service.ts index 6ad508c16..ca9c7491c 100644 --- a/libs/red-ui-http/src/lib/api/auditController.service.ts +++ b/libs/red-ui-http/src/lib/api/auditController.service.ts @@ -26,7 +26,7 @@ import { Configuration } from '../configuration'; export class AuditControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -88,7 +88,7 @@ export class AuditControllerService { return this.httpClient.request>( 'get', - `${this.basePath}/redaction-gateway-v1/audit/categories`, + `${this.basePath}/audit/categories`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -161,16 +161,12 @@ export class AuditControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/redaction-gateway-v1/audit/search`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/audit/search`, { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } } diff --git a/libs/red-ui-http/src/lib/api/dictionaryController.service.ts b/libs/red-ui-http/src/lib/api/dictionaryController.service.ts index c696cd9dd..28fe72ac1 100644 --- a/libs/red-ui-http/src/lib/api/dictionaryController.service.ts +++ b/libs/red-ui-http/src/lib/api/dictionaryController.service.ts @@ -146,9 +146,9 @@ export class DictionaryControllerService { return this.httpClient.request( 'post', - `${this.basePath}/dictionary/${encodeURIComponent( - String(type) - )}/${encodeURIComponent(String(dossierTemplateId))}`, + `${this.basePath}/dictionary/${encodeURIComponent(String(type))}/${encodeURIComponent( + String(dossierTemplateId) + )}`, { body: body, params: queryParameters, @@ -231,18 +231,14 @@ export class DictionaryControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/dictionary/type`, - { - body: body, - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/dictionary/type`, { + body: body, + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -445,11 +441,9 @@ export class DictionaryControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/dictionary/${encodeURIComponent( - String(type) - )}/${encodeURIComponent(String(dossierTemplateId))}/${encodeURIComponent( - String(entry) - )}`, + `${this.basePath}/dictionary/${encodeURIComponent(String(type))}/${encodeURIComponent( + String(dossierTemplateId) + )}/${encodeURIComponent(String(entry))}`, { params: queryParameters, withCredentials: this.configuration.withCredentials, @@ -809,9 +803,7 @@ export class DictionaryControllerService { return this.httpClient.request( 'get', - `${this.basePath}/dictionary/type/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/dictionary/type/${encodeURIComponent(String(dossierTemplateId))}`, { params: queryParameters, withCredentials: this.configuration.withCredentials, @@ -879,9 +871,7 @@ export class DictionaryControllerService { return this.httpClient.request( 'get', - `${this.basePath}/color/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/color/${encodeURIComponent(String(dossierTemplateId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -969,9 +959,9 @@ export class DictionaryControllerService { return this.httpClient.request( 'get', - `${this.basePath}/dictionary/${encodeURIComponent( - String(type) - )}/${encodeURIComponent(String(dossierTemplateId))}`, + `${this.basePath}/dictionary/${encodeURIComponent(String(type))}/${encodeURIComponent( + String(dossierTemplateId) + )}`, { params: queryParameters, withCredentials: this.configuration.withCredentials, @@ -1058,9 +1048,7 @@ export class DictionaryControllerService { return this.httpClient.request( 'post', - `${this.basePath}/color/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/color/${encodeURIComponent(String(dossierTemplateId))}`, { body: body, withCredentials: this.configuration.withCredentials, diff --git a/libs/red-ui-http/src/lib/api/digitalSignatureController.service.ts b/libs/red-ui-http/src/lib/api/digitalSignatureController.service.ts index 9cebe01c0..f46bb07d3 100644 --- a/libs/red-ui-http/src/lib/api/digitalSignatureController.service.ts +++ b/libs/red-ui-http/src/lib/api/digitalSignatureController.service.ts @@ -26,7 +26,7 @@ import { Configuration } from '../configuration'; export class DigitalSignatureControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -83,16 +83,12 @@ export class DigitalSignatureControllerService { headers = headers.set('Accept', httpHeaderAcceptSelected); } - return this.httpClient.request( - 'delete', - `${this.basePath}/redaction-gateway-v1/digital-signature`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('delete', `${this.basePath}/digital-signature`, { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -141,7 +137,7 @@ export class DigitalSignatureControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/digital-signature`, + `${this.basePath}/digital-signature`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -216,7 +212,7 @@ export class DigitalSignatureControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/digital-signature`, + `${this.basePath}/digital-signature`, { body: body, withCredentials: this.configuration.withCredentials, @@ -234,25 +230,25 @@ export class DigitalSignatureControllerService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public saveDigitalSignature1( + public updateDigitalSignature( body: DigitalSignatureViewModelReq, observe?: 'body', reportProgress?: boolean ): Observable; - public saveDigitalSignature1( + public updateDigitalSignature( body: DigitalSignatureViewModelReq, observe?: 'response', reportProgress?: boolean ): Observable>; - public saveDigitalSignature1( + public updateDigitalSignature( body: DigitalSignatureViewModelReq, observe?: 'events', reportProgress?: boolean ): Observable>; - public saveDigitalSignature1( + public updateDigitalSignature( body: DigitalSignatureViewModelReq, observe: any = 'body', reportProgress: boolean = false @@ -290,16 +286,12 @@ export class DigitalSignatureControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'put', - `${this.basePath}/redaction-gateway-v1/digital-signature`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('put', `${this.basePath}/digital-signature`, { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } } diff --git a/libs/red-ui-http/src/lib/api/dossierAttributesController.service.ts b/libs/red-ui-http/src/lib/api/dossierAttributesController.service.ts index f19b49a71..d9aa1af5e 100644 --- a/libs/red-ui-http/src/lib/api/dossierAttributesController.service.ts +++ b/libs/red-ui-http/src/lib/api/dossierAttributesController.service.ts @@ -28,7 +28,7 @@ import { Configuration } from '../configuration'; export class DossierAttributesControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -120,9 +120,7 @@ export class DossierAttributesControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/dossierAttributes/update/${encodeURIComponent( - String(dossierId) - )}`, + `${this.basePath}/dossierAttributes/update/${encodeURIComponent(String(dossierId))}`, { body: body, withCredentials: this.configuration.withCredentials, @@ -209,7 +207,7 @@ export class DossierAttributesControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/dossierAttributes/config/${encodeURIComponent( + `${this.basePath}/dossierAttributes/config/${encodeURIComponent( String(dossierTemplateId) )}`, { @@ -290,7 +288,7 @@ export class DossierAttributesControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/dossierAttributes/set/${encodeURIComponent( + `${this.basePath}/dossierAttributes/set/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(dossierAttributeId))}`, { @@ -370,7 +368,7 @@ export class DossierAttributesControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/dossierAttributes/config/${encodeURIComponent( + `${this.basePath}/dossierAttributes/config/${encodeURIComponent( String(dossierTemplateId) )}/${encodeURIComponent(String(dossierAttributeId))}`, { @@ -458,9 +456,7 @@ export class DossierAttributesControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/dossierAttributes/config/delete/${encodeURIComponent( + `${this.basePath}/dossierAttributes/config/delete/${encodeURIComponent( String(dossierTemplateId) )}`, { @@ -530,9 +526,7 @@ export class DossierAttributesControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/dossierAttributes/${encodeURIComponent( - String(dossierId) - )}`, + `${this.basePath}/dossierAttributes/${encodeURIComponent(String(dossierId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -599,7 +593,7 @@ export class DossierAttributesControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/dossierAttributes/config/${encodeURIComponent( + `${this.basePath}/dossierAttributes/config/${encodeURIComponent( String(dossierTemplateId) )}`, { @@ -687,9 +681,7 @@ export class DossierAttributesControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/dossierAttributes/set/${encodeURIComponent( - String(dossierId) - )}`, + `${this.basePath}/dossierAttributes/set/${encodeURIComponent(String(dossierId))}`, { body: body, withCredentials: this.configuration.withCredentials, @@ -776,7 +768,7 @@ export class DossierAttributesControllerService { return this.httpClient.request( 'put', - `${this.basePath}/redaction-gateway-v1/dossierAttributes/config/${encodeURIComponent( + `${this.basePath}/dossierAttributes/config/${encodeURIComponent( String(dossierTemplateId) )}`, { diff --git a/libs/red-ui-http/src/lib/api/dossierController.service.ts b/libs/red-ui-http/src/lib/api/dossierController.service.ts index f713f99de..1e5a59344 100644 --- a/libs/red-ui-http/src/lib/api/dossierController.service.ts +++ b/libs/red-ui-http/src/lib/api/dossierController.service.ts @@ -25,7 +25,7 @@ import { Configuration } from '../configuration'; export class DossierControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -104,17 +104,13 @@ export class DossierControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/redaction-gateway-v1/dossier`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/dossier`, { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -174,9 +170,7 @@ export class DossierControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/dossier/${encodeURIComponent( - String(dossierId) - )}`, + `${this.basePath}/dossier/${encodeURIComponent(String(dossierId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -243,9 +237,7 @@ export class DossierControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/dossier/${encodeURIComponent( - String(dossierId) - )}`, + `${this.basePath}/dossier/${encodeURIComponent(String(dossierId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -293,15 +285,11 @@ export class DossierControllerService { headers = headers.set('Accept', httpHeaderAcceptSelected); } - return this.httpClient.request>( - 'get', - `${this.basePath}/redaction-gateway-v1/dossier`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request>('get', `${this.basePath}/dossier`, { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } } diff --git a/libs/red-ui-http/src/lib/api/dossierTemplateController.service.ts b/libs/red-ui-http/src/lib/api/dossierTemplateController.service.ts index f66fb9d78..9183f6736 100644 --- a/libs/red-ui-http/src/lib/api/dossierTemplateController.service.ts +++ b/libs/red-ui-http/src/lib/api/dossierTemplateController.service.ts @@ -24,7 +24,7 @@ import { Configuration } from '../configuration'; export class DossierTemplateControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -105,7 +105,7 @@ export class DossierTemplateControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/dossier-template`, + `${this.basePath}/dossier-template`, { body: body, withCredentials: this.configuration.withCredentials, @@ -173,9 +173,7 @@ export class DossierTemplateControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/dossier-template/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/dossier-template/${encodeURIComponent(String(dossierTemplateId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -248,17 +246,13 @@ export class DossierTemplateControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/redaction-gateway-v1/dossier-template/delete`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/dossier-template/delete`, { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -376,7 +370,7 @@ export class DossierTemplateControllerService { return this.httpClient.request>( 'get', - `${this.basePath}/redaction-gateway-v1/dossier-template`, + `${this.basePath}/dossier-template`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -443,9 +437,7 @@ export class DossierTemplateControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/dossier-template/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/dossier-template/${encodeURIComponent(String(dossierTemplateId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/libs/red-ui-http/src/lib/api/downloadController.service.ts b/libs/red-ui-http/src/lib/api/downloadController.service.ts index f9c761cba..14ec27043 100644 --- a/libs/red-ui-http/src/lib/api/downloadController.service.ts +++ b/libs/red-ui-http/src/lib/api/downloadController.service.ts @@ -28,7 +28,7 @@ import { Configuration } from '../configuration'; export class DownloadControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -112,17 +112,13 @@ export class DownloadControllerService { headers = headers.set('Accept', httpHeaderAcceptSelected); } - return this.httpClient.request( - 'get', - `${this.basePath}/redaction-gateway-v1/async/download`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('get', `${this.basePath}/async/download`, { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -171,7 +167,7 @@ export class DownloadControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/async/download/status`, + `${this.basePath}/async/download/status`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -246,7 +242,7 @@ export class DownloadControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/async/download/prepare`, + `${this.basePath}/async/download/prepare`, { body: body, withCredentials: this.configuration.withCredentials, @@ -264,25 +260,25 @@ export class DownloadControllerService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public prepareDownload1( + public deleteDownload( body: RemoveDownloadRequest, observe?: 'body', reportProgress?: boolean ): Observable; - public prepareDownload1( + public deleteDownload( body: RemoveDownloadRequest, observe?: 'response', reportProgress?: boolean ): Observable>; - public prepareDownload1( + public deleteDownload( body: RemoveDownloadRequest, observe?: 'events', reportProgress?: boolean ): Observable>; - public prepareDownload1( + public deleteDownload( body: RemoveDownloadRequest, observe: any = 'body', reportProgress: boolean = false @@ -320,16 +316,12 @@ export class DownloadControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/redaction-gateway-v1/async/download/delete`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/async/download/delete`, { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } } diff --git a/libs/red-ui-http/src/lib/api/fileAttributesController.service.ts b/libs/red-ui-http/src/lib/api/fileAttributesController.service.ts index 09f964e5d..f7c2e2627 100644 --- a/libs/red-ui-http/src/lib/api/fileAttributesController.service.ts +++ b/libs/red-ui-http/src/lib/api/fileAttributesController.service.ts @@ -26,7 +26,7 @@ import { Configuration } from '../configuration'; export class FileAttributesControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -110,9 +110,7 @@ export class FileAttributesControllerService { return this.httpClient.request( 'delete', - `${ - this.basePath - }/redaction-gateway-v1/fileAttributes/config/fileAttribute/${encodeURIComponent( + `${this.basePath}/fileAttributes/config/fileAttribute/${encodeURIComponent( String(dossierTemplateId) )}/${encodeURIComponent(String(fileAttributeId))}`, { @@ -200,9 +198,7 @@ export class FileAttributesControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/fileAttributes/config/fileAttribute/${encodeURIComponent( + `${this.basePath}/fileAttributes/config/fileAttribute/${encodeURIComponent( String(dossierTemplateId) )}/delete`, { @@ -272,7 +268,7 @@ export class FileAttributesControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/fileAttributes/config/${encodeURIComponent( + `${this.basePath}/fileAttributes/config/${encodeURIComponent( String(dossierTemplateId) )}`, { @@ -371,7 +367,7 @@ export class FileAttributesControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/fileAttributes/set/${encodeURIComponent( + `${this.basePath}/fileAttributes/set/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -460,9 +456,7 @@ export class FileAttributesControllerService { return this.httpClient.request( 'put', - `${ - this.basePath - }/redaction-gateway-v1/fileAttributes/config/baseConfig/${encodeURIComponent( + `${this.basePath}/fileAttributes/config/baseConfig/${encodeURIComponent( String(dossierTemplateId) )}`, { @@ -551,9 +545,7 @@ export class FileAttributesControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/fileAttributes/config/fileAttribute/${encodeURIComponent( + `${this.basePath}/fileAttributes/config/fileAttribute/${encodeURIComponent( String(dossierTemplateId) )}`, { diff --git a/libs/red-ui-http/src/lib/api/fileManagementController.service.ts b/libs/red-ui-http/src/lib/api/fileManagementController.service.ts index f42f7ae70..b3230bcc3 100644 --- a/libs/red-ui-http/src/lib/api/fileManagementController.service.ts +++ b/libs/red-ui-http/src/lib/api/fileManagementController.service.ts @@ -23,7 +23,7 @@ import { Configuration } from '../configuration'; export class FileManagementControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -107,9 +107,9 @@ export class FileManagementControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/delete/${encodeURIComponent( - String(dossierId) - )}/${encodeURIComponent(String(fileId))}`, + `${this.basePath}/delete/${encodeURIComponent(String(dossierId))}/${encodeURIComponent( + String(fileId) + )}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -195,7 +195,7 @@ export class FileManagementControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/delete/${encodeURIComponent(String(dossierId))}`, + `${this.basePath}/delete/${encodeURIComponent(String(dossierId))}`, { body: body, withCredentials: this.configuration.withCredentials, @@ -284,7 +284,7 @@ export class FileManagementControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/download/annotated/${encodeURIComponent( + `${this.basePath}/download/annotated/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { diff --git a/libs/red-ui-http/src/lib/api/generalSettingsController.service.ts b/libs/red-ui-http/src/lib/api/generalSettingsController.service.ts index 1174f4d00..1d5722b0b 100644 --- a/libs/red-ui-http/src/lib/api/generalSettingsController.service.ts +++ b/libs/red-ui-http/src/lib/api/generalSettingsController.service.ts @@ -24,7 +24,7 @@ import { Configuration } from '../configuration'; export class GeneralSettingsControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -86,7 +86,7 @@ export class GeneralSettingsControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/configuration/general`, + `${this.basePath}/configuration/general`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -159,16 +159,12 @@ export class GeneralSettingsControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/redaction-gateway-v1/configuration/general`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/configuration/general`, { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } } diff --git a/libs/red-ui-http/src/lib/api/infoController.service.ts b/libs/red-ui-http/src/lib/api/infoController.service.ts index 48c994455..a16aeabac 100644 --- a/libs/red-ui-http/src/lib/api/infoController.service.ts +++ b/libs/red-ui-http/src/lib/api/infoController.service.ts @@ -24,7 +24,7 @@ import { Configuration } from '../configuration'; export class InfoControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -78,15 +78,11 @@ export class InfoControllerService { headers = headers.set('Accept', httpHeaderAcceptSelected); } - return this.httpClient.request( - 'get', - `${this.basePath}/redaction-gateway-v1/info`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('get', `${this.basePath}/info`, { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } } diff --git a/libs/red-ui-http/src/lib/api/legalBasisMappingController.service.ts b/libs/red-ui-http/src/lib/api/legalBasisMappingController.service.ts index b6489f5ca..894586ed8 100644 --- a/libs/red-ui-http/src/lib/api/legalBasisMappingController.service.ts +++ b/libs/red-ui-http/src/lib/api/legalBasisMappingController.service.ts @@ -24,7 +24,7 @@ import { Configuration } from '../configuration'; export class LegalBasisMappingControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -97,9 +97,7 @@ export class LegalBasisMappingControllerService { return this.httpClient.request>( 'get', - `${this.basePath}/redaction-gateway-v1/legalBasis/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/legalBasis/${encodeURIComponent(String(dossierTemplateId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -185,9 +183,7 @@ export class LegalBasisMappingControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/legalBasis/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/legalBasis/${encodeURIComponent(String(dossierTemplateId))}`, { body: body, withCredentials: this.configuration.withCredentials, diff --git a/libs/red-ui-http/src/lib/api/licenseReportController.service.ts b/libs/red-ui-http/src/lib/api/licenseReportController.service.ts index 4d0c30dda..eadc5b1d5 100644 --- a/libs/red-ui-http/src/lib/api/licenseReportController.service.ts +++ b/libs/red-ui-http/src/lib/api/licenseReportController.service.ts @@ -26,7 +26,7 @@ import { Configuration } from '../configuration'; export class LicenseReportControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -123,17 +123,13 @@ export class LicenseReportControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/redaction-gateway-v1/report/license`, - { - body: body, - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/report/license`, { + body: body, + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } } diff --git a/libs/red-ui-http/src/lib/api/manualRedactionController.service.ts b/libs/red-ui-http/src/lib/api/manualRedactionController.service.ts index e444c0a5a..af7bfccbd 100644 --- a/libs/red-ui-http/src/lib/api/manualRedactionController.service.ts +++ b/libs/red-ui-http/src/lib/api/manualRedactionController.service.ts @@ -32,7 +32,7 @@ import { Configuration } from '../configuration'; export class ManualRedactionControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -146,7 +146,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/manualRedaction/comment/add/${encodeURIComponent( + `${this.basePath}/manualRedaction/comment/add/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}/${encodeURIComponent(String(annotationId))}`, { @@ -246,9 +246,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/manualRedaction/redaction/add/${encodeURIComponent( + `${this.basePath}/manualRedaction/redaction/add/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -359,7 +357,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/manualRedaction/approve/${encodeURIComponent( + `${this.basePath}/manualRedaction/approve/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}/${encodeURIComponent(String(annotationId))}`, { @@ -451,7 +449,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/manualRedaction/decline/${encodeURIComponent( + `${this.basePath}/manualRedaction/decline/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}/${encodeURIComponent(String(annotationId))}`, { @@ -550,9 +548,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/manualRedaction/redaction/force/${encodeURIComponent( + `${this.basePath}/manualRedaction/redaction/force/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -633,7 +629,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/manualRedaction/${encodeURIComponent( + `${this.basePath}/manualRedaction/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -732,9 +728,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/manualRedaction/redaction/recategorize/${encodeURIComponent( + `${this.basePath}/manualRedaction/redaction/recategorize/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -834,9 +828,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/manualRedaction/redaction/remove/${encodeURIComponent( + `${this.basePath}/manualRedaction/redaction/remove/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -936,7 +928,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/manualRedaction/request/add/${encodeURIComponent( + `${this.basePath}/manualRedaction/request/add/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -1036,9 +1028,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/manualRedaction/request/force/${encodeURIComponent( + `${this.basePath}/manualRedaction/request/force/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -1138,9 +1128,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/manualRedaction/request/recategorize/${encodeURIComponent( + `${this.basePath}/manualRedaction/request/recategorize/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -1240,9 +1228,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'post', - `${ - this.basePath - }/redaction-gateway-v1/manualRedaction/request/remove/${encodeURIComponent( + `${this.basePath}/manualRedaction/request/remove/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -1332,7 +1318,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/manualRedaction/undo/${encodeURIComponent( + `${this.basePath}/manualRedaction/undo/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}/${encodeURIComponent(String(annotationId))}`, { @@ -1434,9 +1420,7 @@ export class ManualRedactionControllerService { return this.httpClient.request( 'delete', - `${ - this.basePath - }/redaction-gateway-v1/manualRedaction/comment/undo/${encodeURIComponent( + `${this.basePath}/manualRedaction/comment/undo/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}/${encodeURIComponent( String(annotationId) diff --git a/libs/red-ui-http/src/lib/api/reanalysisController.service.ts b/libs/red-ui-http/src/lib/api/reanalysisController.service.ts index 119b491b2..b7a8a3861 100644 --- a/libs/red-ui-http/src/lib/api/reanalysisController.service.ts +++ b/libs/red-ui-http/src/lib/api/reanalysisController.service.ts @@ -25,7 +25,7 @@ import { Configuration } from '../configuration'; export class ReanalysisControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -128,7 +128,7 @@ export class ReanalysisControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/exclude-pages/${encodeURIComponent( + `${this.basePath}/exclude-pages/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -228,7 +228,7 @@ export class ReanalysisControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/include-pages/${encodeURIComponent( + `${this.basePath}/include-pages/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -298,9 +298,7 @@ export class ReanalysisControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/ocr/reanalyze/${encodeURIComponent( - String(dossierId) - )}`, + `${this.basePath}/ocr/reanalyze/${encodeURIComponent(String(dossierId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -378,7 +376,7 @@ export class ReanalysisControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/ocr/reanalyze/${encodeURIComponent( + `${this.basePath}/ocr/reanalyze/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -464,9 +462,7 @@ export class ReanalysisControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/ocr/reanalyze/${encodeURIComponent( - String(dossierId) - )}/bulk`, + `${this.basePath}/ocr/reanalyze/${encodeURIComponent(String(dossierId))}/bulk`, { body: body, withCredentials: this.configuration.withCredentials, @@ -544,9 +540,7 @@ export class ReanalysisControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/reanalyze/${encodeURIComponent( - String(dossierId) - )}`, + `${this.basePath}/reanalyze/${encodeURIComponent(String(dossierId))}`, { params: queryParameters, withCredentials: this.configuration.withCredentials, @@ -635,7 +629,7 @@ export class ReanalysisControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/reanalyze/${encodeURIComponent( + `${this.basePath}/reanalyze/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -734,9 +728,7 @@ export class ReanalysisControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/reanalyze/${encodeURIComponent( - String(dossierId) - )}/bulk`, + `${this.basePath}/reanalyze/${encodeURIComponent(String(dossierId))}/bulk`, { body: body, params: queryParameters, @@ -826,7 +818,7 @@ export class ReanalysisControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/toggle-analysis/${encodeURIComponent( + `${this.basePath}/toggle-analysis/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { diff --git a/libs/red-ui-http/src/lib/api/redactionLogController.service.ts b/libs/red-ui-http/src/lib/api/redactionLogController.service.ts index b75c1c328..f6ea16eb2 100644 --- a/libs/red-ui-http/src/lib/api/redactionLogController.service.ts +++ b/libs/red-ui-http/src/lib/api/redactionLogController.service.ts @@ -26,7 +26,7 @@ import { Configuration } from '../configuration'; export class RedactionLogControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -110,7 +110,7 @@ export class RedactionLogControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/redactionChnageLog/${encodeURIComponent( + `${this.basePath}/redactionChnageLog/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -190,7 +190,7 @@ export class RedactionLogControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/redactionLog/${encodeURIComponent( + `${this.basePath}/redactionLog/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -270,7 +270,7 @@ export class RedactionLogControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/sectionGrid/${encodeURIComponent( + `${this.basePath}/sectionGrid/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { diff --git a/libs/red-ui-http/src/lib/api/reportTemplateController.service.ts b/libs/red-ui-http/src/lib/api/reportTemplateController.service.ts index 8e2a9fb50..8e4b4eaf5 100644 --- a/libs/red-ui-http/src/lib/api/reportTemplateController.service.ts +++ b/libs/red-ui-http/src/lib/api/reportTemplateController.service.ts @@ -25,7 +25,7 @@ import { Configuration } from '../configuration'; export class ReportTemplateControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -109,7 +109,7 @@ export class ReportTemplateControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent( + `${this.basePath}/templateUpload/${encodeURIComponent( String(dossierTemplateId) )}/${encodeURIComponent(String(templateId))}`, { @@ -189,7 +189,7 @@ export class ReportTemplateControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent( + `${this.basePath}/templateUpload/${encodeURIComponent( String(dossierTemplateId) )}/${encodeURIComponent(String(templateId))}`, { @@ -258,9 +258,7 @@ export class ReportTemplateControllerService { return this.httpClient.request>( 'get', - `${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/templateUpload/${encodeURIComponent(String(dossierTemplateId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -353,9 +351,7 @@ export class ReportTemplateControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/templateUpload/${encodeURIComponent(String(dossierTemplateId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, withCredentials: this.configuration.withCredentials, diff --git a/libs/red-ui-http/src/lib/api/rulesController.service.ts b/libs/red-ui-http/src/lib/api/rulesController.service.ts index 43574437f..6a1eea3d3 100644 --- a/libs/red-ui-http/src/lib/api/rulesController.service.ts +++ b/libs/red-ui-http/src/lib/api/rulesController.service.ts @@ -25,7 +25,7 @@ import { Configuration } from '../configuration'; export class RulesControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -98,9 +98,7 @@ export class RulesControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/rules/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/rules/${encodeURIComponent(String(dossierTemplateId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,9 +165,7 @@ export class RulesControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/rules/${encodeURIComponent( - String(dossierTemplateId) - )}/download`, + `${this.basePath}/rules/${encodeURIComponent(String(dossierTemplateId))}/download`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -238,7 +234,7 @@ export class RulesControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request('post', `${this.basePath}/redaction-gateway-v1/rules`, { + return this.httpClient.request('post', `${this.basePath}/rules`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, @@ -330,9 +326,7 @@ export class RulesControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/rules/${encodeURIComponent( - String(dossierTemplateId) - )}/upload`, + `${this.basePath}/rules/${encodeURIComponent(String(dossierTemplateId))}/upload`, { body: convertFormParamsToString ? formParams.toString() : formParams, withCredentials: this.configuration.withCredentials, diff --git a/libs/red-ui-http/src/lib/api/smtpConfigurationController.service.ts b/libs/red-ui-http/src/lib/api/smtpConfigurationController.service.ts index 6356ab0c5..3c88f814d 100644 --- a/libs/red-ui-http/src/lib/api/smtpConfigurationController.service.ts +++ b/libs/red-ui-http/src/lib/api/smtpConfigurationController.service.ts @@ -24,7 +24,7 @@ import { Configuration } from '../configuration'; export class SmtpConfigurationControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -81,16 +81,12 @@ export class SmtpConfigurationControllerService { headers = headers.set('Accept', httpHeaderAcceptSelected); } - return this.httpClient.request( - 'delete', - `${this.basePath}/redaction-gateway-v1/configuration/smtp`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('delete', `${this.basePath}/configuration/smtp`, { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -139,7 +135,7 @@ export class SmtpConfigurationControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/configuration/smtp`, + `${this.basePath}/configuration/smtp`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -212,17 +208,13 @@ export class SmtpConfigurationControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/redaction-gateway-v1/configuration/smtp/test`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/configuration/smtp/test`, { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -288,16 +280,12 @@ export class SmtpConfigurationControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/redaction-gateway-v1/configuration/smtp`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/configuration/smtp`, { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } } diff --git a/libs/red-ui-http/src/lib/api/statusController.service.ts b/libs/red-ui-http/src/lib/api/statusController.service.ts index 69876309a..d6cbfe094 100644 --- a/libs/red-ui-http/src/lib/api/statusController.service.ts +++ b/libs/red-ui-http/src/lib/api/statusController.service.ts @@ -25,7 +25,7 @@ import { Configuration } from '../configuration'; export class StatusControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -98,7 +98,7 @@ export class StatusControllerService { return this.httpClient.request>( 'get', - `${this.basePath}/redaction-gateway-v1/status/${encodeURIComponent(String(dossierId))}`, + `${this.basePath}/status/${encodeURIComponent(String(dossierId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -176,9 +176,9 @@ export class StatusControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/status/${encodeURIComponent( - String(dossierId) - )}/${encodeURIComponent(String(fileId))}`, + `${this.basePath}/status/${encodeURIComponent(String(dossierId))}/${encodeURIComponent( + String(fileId) + )}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -253,7 +253,7 @@ export class StatusControllerService { return this.httpClient.request<{ [key: string]: Array }>( 'post', - `${this.basePath}/redaction-gateway-v1/status`, + `${this.basePath}/status`, { body: body, withCredentials: this.configuration.withCredentials, @@ -343,9 +343,9 @@ export class StatusControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/status/${encodeURIComponent( - String(dossierId) - )}/${encodeURIComponent(String(fileId))}/${encodeURIComponent(String(reviewerId))}`, + `${this.basePath}/status/${encodeURIComponent(String(dossierId))}/${encodeURIComponent( + String(fileId) + )}/${encodeURIComponent(String(reviewerId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -442,7 +442,7 @@ export class StatusControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/status/${encodeURIComponent( + `${this.basePath}/status/${encodeURIComponent( String(dossierId) )}/bulk/${encodeURIComponent(String(reviewerId))}`, { @@ -523,7 +523,7 @@ export class StatusControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/status/approved/${encodeURIComponent( + `${this.basePath}/status/approved/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -611,9 +611,7 @@ export class StatusControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/status/approved/${encodeURIComponent( - String(dossierId) - )}/bulk`, + `${this.basePath}/status/approved/${encodeURIComponent(String(dossierId))}/bulk`, { body: body, withCredentials: this.configuration.withCredentials, @@ -702,7 +700,7 @@ export class StatusControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/status/underapproval/${encodeURIComponent( + `${this.basePath}/status/underapproval/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -807,9 +805,7 @@ export class StatusControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/status/underapproval/${encodeURIComponent( - String(dossierId) - )}/bulk`, + `${this.basePath}/status/underapproval/${encodeURIComponent(String(dossierId))}/bulk`, { body: body, params: queryParameters, @@ -889,7 +885,7 @@ export class StatusControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/status/underreview/${encodeURIComponent( + `${this.basePath}/status/underreview/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -977,9 +973,7 @@ export class StatusControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/status/underreview/${encodeURIComponent( - String(dossierId) - )}/bulk`, + `${this.basePath}/status/underreview/${encodeURIComponent(String(dossierId))}/bulk`, { body: body, withCredentials: this.configuration.withCredentials, diff --git a/libs/red-ui-http/src/lib/api/uploadController.service.ts b/libs/red-ui-http/src/lib/api/uploadController.service.ts index d657d892f..439ce3506 100644 --- a/libs/red-ui-http/src/lib/api/uploadController.service.ts +++ b/libs/red-ui-http/src/lib/api/uploadController.service.ts @@ -25,7 +25,7 @@ import { Configuration } from '../configuration'; export class UploadControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -124,7 +124,7 @@ export class UploadControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/upload/${encodeURIComponent(String(dossierId))}`, + `${this.basePath}/upload/${encodeURIComponent(String(dossierId))}`, { body: convertFormParamsToString ? formParams.toString() : formParams, withCredentials: this.configuration.withCredentials, diff --git a/libs/red-ui-http/src/lib/api/userController.service.ts b/libs/red-ui-http/src/lib/api/userController.service.ts index 450a2d21f..90d13f363 100644 --- a/libs/red-ui-http/src/lib/api/userController.service.ts +++ b/libs/red-ui-http/src/lib/api/userController.service.ts @@ -29,7 +29,7 @@ import { Configuration } from '../configuration'; export class UserControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -121,7 +121,7 @@ export class UserControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/user/${encodeURIComponent(String(userId))}/role`, + `${this.basePath}/user/${encodeURIComponent(String(userId))}/role`, { body: body, withCredentials: this.configuration.withCredentials, @@ -195,7 +195,7 @@ export class UserControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request('post', `${this.basePath}/redaction-gateway-v1/user`, { + return this.httpClient.request('post', `${this.basePath}/user`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, @@ -257,7 +257,7 @@ export class UserControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/user/${encodeURIComponent(String(userId))}`, + `${this.basePath}/user/${encodeURIComponent(String(userId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -329,17 +329,13 @@ export class UserControllerService { headers = headers.set('Accept', httpHeaderAcceptSelected); } - return this.httpClient.request( - 'delete', - `${this.basePath}/redaction-gateway-v1/user`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('delete', `${this.basePath}/user`, { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -396,17 +392,13 @@ export class UserControllerService { headers = headers.set('Accept', httpHeaderAcceptSelected); } - return this.httpClient.request>( - 'get', - `${this.basePath}/redaction-gateway-v1/user`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request>('get', `${this.basePath}/user`, { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -466,7 +458,7 @@ export class UserControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/user/${encodeURIComponent(String(userId))}`, + `${this.basePath}/user/${encodeURIComponent(String(userId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -530,17 +522,13 @@ export class UserControllerService { headers = headers.set('Accept', httpHeaderAcceptSelected); } - return this.httpClient.request>( - 'get', - `${this.basePath}/redaction-gateway-v1/user/red`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request>('get', `${this.basePath}/user/red`, { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -619,9 +607,7 @@ export class UserControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/user/${encodeURIComponent( - String(userId) - )}/reset-password`, + `${this.basePath}/user/${encodeURIComponent(String(userId))}/reset-password`, { body: body, withCredentials: this.configuration.withCredentials, @@ -639,25 +625,25 @@ export class UserControllerService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateProfile( + public updateMyProfile( body: UpdateMyProfileRequest, observe?: 'body', reportProgress?: boolean ): Observable; - public updateProfile( + public updateMyProfile( body: UpdateMyProfileRequest, observe?: 'response', reportProgress?: boolean ): Observable>; - public updateProfile( + public updateMyProfile( body: UpdateMyProfileRequest, observe?: 'events', reportProgress?: boolean ): Observable>; - public updateProfile( + public updateMyProfile( body: UpdateMyProfileRequest, observe: any = 'body', reportProgress: boolean = false @@ -695,17 +681,13 @@ export class UserControllerService { headers = headers.set('Content-Type', httpContentTypeSelected); } - return this.httpClient.request( - 'post', - `${this.basePath}/redaction-gateway-v1/user/my-profile`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); + return this.httpClient.request('post', `${this.basePath}/user/my-profile`, { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + }); } /** @@ -716,28 +698,28 @@ export class UserControllerService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateProfile1( + public updateProfile( body: UpdateProfileRequest, userId: string, observe?: 'body', reportProgress?: boolean ): Observable; - public updateProfile1( + public updateProfile( body: UpdateProfileRequest, userId: string, observe?: 'response', reportProgress?: boolean ): Observable>; - public updateProfile1( + public updateProfile( body: UpdateProfileRequest, userId: string, observe?: 'events', reportProgress?: boolean ): Observable>; - public updateProfile1( + public updateProfile( body: UpdateProfileRequest, userId: string, observe: any = 'body', @@ -784,9 +766,7 @@ export class UserControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/user/profile/${encodeURIComponent( - String(userId) - )}`, + `${this.basePath}/user/profile/${encodeURIComponent(String(userId))}`, { body: body, withCredentials: this.configuration.withCredentials, diff --git a/libs/red-ui-http/src/lib/api/userPreferenceController.service.ts b/libs/red-ui-http/src/lib/api/userPreferenceController.service.ts index e77846281..56502f06d 100644 --- a/libs/red-ui-http/src/lib/api/userPreferenceController.service.ts +++ b/libs/red-ui-http/src/lib/api/userPreferenceController.service.ts @@ -22,7 +22,7 @@ import { Configuration } from '../configuration'; export class UserPreferenceControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -95,7 +95,7 @@ export class UserPreferenceControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/attributes/${encodeURIComponent(String(key))}`, + `${this.basePath}/attributes/${encodeURIComponent(String(key))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -151,7 +151,7 @@ export class UserPreferenceControllerService { return this.httpClient.request<{ [key: string]: Array }>( 'get', - `${this.basePath}/redaction-gateway-v1/attributes`, + `${this.basePath}/attributes`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -237,7 +237,7 @@ export class UserPreferenceControllerService { return this.httpClient.request( 'put', - `${this.basePath}/redaction-gateway-v1/attributes/${encodeURIComponent(String(key))}`, + `${this.basePath}/attributes/${encodeURIComponent(String(key))}`, { body: body, withCredentials: this.configuration.withCredentials, diff --git a/libs/red-ui-http/src/lib/api/versionsController.service.ts b/libs/red-ui-http/src/lib/api/versionsController.service.ts index 48f7c34d9..73d201b79 100644 --- a/libs/red-ui-http/src/lib/api/versionsController.service.ts +++ b/libs/red-ui-http/src/lib/api/versionsController.service.ts @@ -25,7 +25,7 @@ import { Configuration } from '../configuration'; export class VersionsControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -109,7 +109,7 @@ export class VersionsControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/version/dossier/${encodeURIComponent( + `${this.basePath}/version/dossier/${encodeURIComponent( String(dossierTemplateId) )}/${encodeURIComponent(String(dossierId))}`, { @@ -185,7 +185,7 @@ export class VersionsControllerService { return this.httpClient.request<{ [key: string]: VersionsResponse }>( 'get', - `${this.basePath}/redaction-gateway-v1/version`, + `${this.basePath}/version`, { params: queryParameters, withCredentials: this.configuration.withCredentials, diff --git a/libs/red-ui-http/src/lib/api/viewedPagesController.service.ts b/libs/red-ui-http/src/lib/api/viewedPagesController.service.ts index f1b29aff9..f5ad9b03d 100644 --- a/libs/red-ui-http/src/lib/api/viewedPagesController.service.ts +++ b/libs/red-ui-http/src/lib/api/viewedPagesController.service.ts @@ -25,7 +25,7 @@ import { Configuration } from '../configuration'; export class ViewedPagesControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -126,7 +126,7 @@ export class ViewedPagesControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/viewedPages/${encodeURIComponent( + `${this.basePath}/viewedPages/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -207,7 +207,7 @@ export class ViewedPagesControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/viewedPages/${encodeURIComponent( + `${this.basePath}/viewedPages/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}`, { @@ -298,7 +298,7 @@ export class ViewedPagesControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/viewedPages/${encodeURIComponent( + `${this.basePath}/viewedPages/${encodeURIComponent( String(dossierId) )}/${encodeURIComponent(String(fileId))}/${encodeURIComponent(String(page))}`, { diff --git a/libs/red-ui-http/src/lib/api/watermarkController.service.ts b/libs/red-ui-http/src/lib/api/watermarkController.service.ts index f88037719..0e3f7536d 100644 --- a/libs/red-ui-http/src/lib/api/watermarkController.service.ts +++ b/libs/red-ui-http/src/lib/api/watermarkController.service.ts @@ -25,7 +25,7 @@ import { Configuration } from '../configuration'; export class WatermarkControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//red-staging.iqser.cloud/'; + protected basePath = ''; constructor( protected httpClient: HttpClient, @@ -98,9 +98,7 @@ export class WatermarkControllerService { return this.httpClient.request( 'delete', - `${this.basePath}/redaction-gateway-v1/watermark/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -167,9 +165,7 @@ export class WatermarkControllerService { return this.httpClient.request( 'get', - `${this.basePath}/redaction-gateway-v1/watermark/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -255,9 +251,7 @@ export class WatermarkControllerService { return this.httpClient.request( 'post', - `${this.basePath}/redaction-gateway-v1/watermark/${encodeURIComponent( - String(dossierTemplateId) - )}`, + `${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`, { body: body, withCredentials: this.configuration.withCredentials,