api regeneration

This commit is contained in:
Timo 2021-06-24 11:03:54 +03:00
parent 62d6435d9c
commit 1001e2b424
68 changed files with 2980 additions and 1248 deletions

View File

@ -7,7 +7,7 @@ To re-generate http rune swagger
YOu need swagger-codegen installed `brew install swagger-codegen`
```
BASE=https://dev-06.iqser.cloud/
BASE=https://red-staging.iqser.cloud/
URL="$BASE"redaction-gateway-v1/v2/api-docs?group=redaction-gateway-v1
rm -Rf /tmp/swagger
mkdir -p /tmp/swagger

View File

@ -150,7 +150,8 @@ export class WatermarkScreenComponent implements OnInit {
path: this._baseHref + '/assets/wv-resources',
css: this._baseHref + '/assets/pdftron/stylesheet.css',
fullAPI: true,
isReadOnly: true
isReadOnly: true,
backendType: 'ems'
},
this._viewer.nativeElement
).then(instance => {

View File

@ -81,9 +81,6 @@ export class AdminDialogService {
const ref = this._dialog.open(ConfirmationDialogComponent, dialogConfig);
ref.afterClosed().subscribe(async result => {
if (result) {
await this._dossierTemplateControllerService
.deleteDossierTemplate(dossierTemplate.dossierTemplateId)
.toPromise();
if (cb) await cb();
}
});
@ -99,9 +96,6 @@ export class AdminDialogService {
const ref = this._dialog.open(ConfirmationDialogComponent, dialogConfig);
ref.afterClosed().subscribe(async result => {
if (result) {
await this._dossierTemplateControllerService
.deleteDossierTemplates(dossierTemplateIds)
.toPromise();
if (cb) await cb();
}
});

View File

@ -114,7 +114,7 @@
<!-- reanalyse file preview -->
<redaction-circle-button
(action)="reanalyseFile($event, 100)"
(action)="reanalyseFile($event)"
*ngIf="canReanalyse && screen === 'file-preview'"
icon="red:refresh"
tooltip="file-preview.reanalyse-notification"

View File

@ -131,9 +131,9 @@ export class FileActionsComponent implements OnInit {
});
}
reanalyseFile($event: MouseEvent, priority = -1) {
reanalyseFile($event: MouseEvent) {
$event.stopPropagation();
this._fileActionService.reanalyseFile(this.fileStatus, priority).subscribe(() => {
this._fileActionService.reanalyseFile(this.fileStatus).subscribe(() => {
this.reloadDossiers('reanalyse');
});
}

View File

@ -140,7 +140,8 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges {
{
licenseKey: environment.licenseKey ? atob(environment.licenseKey) : null,
path: this._convertPath('/assets/wv-resources'),
css: this._convertPath('/assets/pdftron/stylesheet.css')
css: this._convertPath('/assets/pdftron/stylesheet.css'),
backendType: 'ems'
},
this.viewer.nativeElement
);

View File

@ -123,8 +123,12 @@
class="table-item"
>
<div class="filename">
<div class="table-item-title heading">
{{ dw.dossier.dossierName }}
<div
class="table-item-title heading"
[matTooltip]="dw.dossierName"
matTooltipPosition="above"
>
{{ dw.dossierName }}
</div>
<div class="small-label stats-subtitle">
<div>

View File

@ -18,14 +18,13 @@ export class FileActionService {
private readonly _appStateService: AppStateService
) {}
reanalyseFile(fileStatusWrapper?: FileStatusWrapper, priority = -1) {
reanalyseFile(fileStatusWrapper?: FileStatusWrapper) {
if (!fileStatusWrapper) {
fileStatusWrapper = this._appStateService.activeFile;
}
return this._reanalysisControllerService.reanalyzeFile(
this._appStateService.activeDossier.dossier.dossierId,
fileStatusWrapper.fileId,
priority
fileStatusWrapper.fileId
);
}

View File

@ -430,7 +430,7 @@ export class AppStateService {
async loadAllDossierTemplates() {
const dossierTemplates = await this._dossierTemplateControllerService
.getAllDossierTemplates1()
.getAllDossierTemplates()
.toPromise();
this._appState.dossierTemplates = dossierTemplates.map(
dossierTemplate => new DossierTemplateModelWrapper(dossierTemplate)

View File

@ -1,6 +1,6 @@
{
"OAUTH_URL": "https://dev-06.iqser.cloud/auth/realms/redaction",
"API_URL": "https://dev-06.iqser.cloud/redaction-gateway-v1",
"OAUTH_URL": "https://red-staging.iqser.cloud/auth/realms/redaction",
"API_URL": "https://red-staging.iqser.cloud/redaction-gateway-v1",
"OAUTH_CLIENT_ID": "redaction",
"BACKEND_APP_VERSION": "4.4.40",
"FRONTEND_APP_VERSION": "1.1",

View File

@ -96,6 +96,7 @@ $toast-width: 400px;
.toast-warning {
background-color: $yellow-2;
color: $grey-1;
}
.toast-info {

View File

@ -2,28 +2,32 @@ import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core
import { Configuration } from './configuration';
import { HttpClient } from '@angular/common/http';
import { DebugControllerService } from './api/debugController.service';
import { AuditControllerService } from './api/auditController.service';
import { DictionaryControllerService } from './api/dictionaryController.service';
import { FileManagementControllerService } from './api/fileManagementController.service';
import { LicenseReportControllerService } from './api/licenseReportController.service';
import { ManualRedactionControllerService } from './api/manualRedactionController.service';
import { DigitalSignatureControllerService } from './api/digitalSignatureController.service';
import { DossierAttributesControllerService } from './api/dossierAttributesController.service';
import { DossierControllerService } from './api/dossierController.service';
import { ReanalysisControllerService } from './api/reanalysisController.service';
import { RedactionLogControllerService } from './api/redactionLogController.service';
import { RulesControllerService } from './api/rulesController.service';
import { StatusControllerService } from './api/statusController.service';
import { UserControllerService } from './api/userController.service';
import { VersionsControllerService } from './api/versionsController.service';
import { ViewedPagesControllerService } from './api/viewedPagesController.service';
import { LegalBasisMappingControllerService } from './api/legalBasisMappingController.service';
import { WatermarkControllerService } from './api/watermarkController.service';
import { DossierTemplateControllerService } from './api/dossierTemplateController.service';
import { DownloadControllerService } from './api/downloadController.service';
import { DigitalSignatureControllerService } from './api/digitalSignatureController.service';
import { AuditControllerService } from './api/auditController.service';
import { FileAttributesControllerService } from './api/fileAttributesController.service';
import { FileManagementControllerService } from './api/fileManagementController.service';
import { GeneralSettingsControllerService } from './api/generalSettingsController.service';
import { InfoControllerService } from './api/infoController.service';
import { LegalBasisMappingControllerService } from './api/legalBasisMappingController.service';
import { LicenseReportControllerService } from './api/licenseReportController.service';
import { ManualRedactionControllerService } from './api/manualRedactionController.service';
import { ReanalysisControllerService } from './api/reanalysisController.service';
import { RedactionLogControllerService } from './api/redactionLogController.service';
import { ReportTemplateControllerService } from './api/reportTemplateController.service';
import { RulesControllerService } from './api/rulesController.service';
import { SmtpConfigurationControllerService } from './api/smtpConfigurationController.service';
import { StatusControllerService } from './api/statusController.service';
import { UploadControllerService } from './api/uploadController.service';
import { UserControllerService } from './api/userController.service';
import { UserPreferenceControllerService } from './api/userPreferenceController.service';
import { VersionsControllerService } from './api/versionsController.service';
import { ViewedPagesControllerService } from './api/viewedPagesController.service';
import { WatermarkControllerService } from './api/watermarkController.service';
@NgModule({
imports: [],
@ -31,27 +35,31 @@ import { UploadControllerService } from './api/uploadController.service';
exports: [],
providers: [
AuditControllerService,
DebugControllerService,
DictionaryControllerService,
DigitalSignatureControllerService,
DossierAttributesControllerService,
DossierControllerService,
DossierTemplateControllerService,
DownloadControllerService,
FileAttributesControllerService,
FileManagementControllerService,
GeneralSettingsControllerService,
InfoControllerService,
LegalBasisMappingControllerService,
LicenseReportControllerService,
ManualRedactionControllerService,
DossierControllerService,
ReanalysisControllerService,
RedactionLogControllerService,
DossierTemplateControllerService,
ReportTemplateControllerService,
RulesControllerService,
UserControllerService,
SmtpConfigurationControllerService,
StatusControllerService,
UploadControllerService,
UserControllerService,
UserPreferenceControllerService,
VersionsControllerService,
ViewedPagesControllerService,
LegalBasisMappingControllerService,
WatermarkControllerService,
DownloadControllerService,
DigitalSignatureControllerService,
FileAttributesControllerService,
SmtpConfigurationControllerService,
UploadControllerService
WatermarkControllerService
]
})
export class ApiModule {
@ -67,9 +75,7 @@ export class ApiModule {
}
}
public static forRoot(
configurationFactory: () => Configuration
): ModuleWithProviders<ApiModule> {
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<any> {
return {
ngModule: ApiModule,
providers: [{ provide: Configuration, useFactory: configurationFactory }]

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
@ -24,9 +24,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class AuditControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -42,20 +42,6 @@ export class AuditControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Get a list of available categories for the audit-log
* None
@ -66,14 +52,17 @@ export class AuditControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<Array<CategoryModel>>;
public getAuditCategories(
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<Array<CategoryModel>>>;
public getAuditCategories(
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<Array<CategoryModel>>>;
public getAuditCategories(
observe: any = 'body',
reportProgress: boolean = false
@ -97,12 +86,9 @@ export class AuditControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<Array<CategoryModel>>(
'get',
`${this.basePath}/audit/categories`,
`${this.basePath}/redaction-gateway-v1/audit/categories`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -124,16 +110,19 @@ export class AuditControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<AuditResponse>;
public searchAuditLog(
body: AuditSearchRequest,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<AuditResponse>>;
public searchAuditLog(
body: AuditSearchRequest,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<AuditResponse>>;
public searchAuditLog(
body: AuditSearchRequest,
observe: any = 'body',
@ -172,12 +161,16 @@ export class AuditControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<AuditResponse>('post', `${this.basePath}/audit/search`, {
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<AuditResponse>(
'post',
`${this.basePath}/redaction-gateway-v1/audit/search`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

View File

@ -146,9 +146,9 @@ export class DictionaryControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/dictionary/${encodeURIComponent(String(type))}/${encodeURIComponent(
String(dossierTemplateId)
)}`,
`${this.basePath}/dictionary/${encodeURIComponent(
String(type)
)}/${encodeURIComponent(String(dossierTemplateId))}`,
{
body: body,
params: queryParameters,
@ -231,14 +231,18 @@ export class DictionaryControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>('post', `${this.basePath}/dictionary/type`, {
body: body,
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<any>(
'post',
`${this.basePath}/dictionary/type`,
{
body: body,
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
@ -441,9 +445,11 @@ export class DictionaryControllerService {
return this.httpClient.request<any>(
'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,
@ -470,6 +476,7 @@ export class DictionaryControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteType(
dossierTemplateId: string,
type: string,
@ -477,6 +484,7 @@ export class DictionaryControllerService {
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteType(
dossierTemplateId: string,
type: string,
@ -484,6 +492,7 @@ export class DictionaryControllerService {
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteType(
dossierTemplateId: string,
type: string,
@ -800,7 +809,9 @@ export class DictionaryControllerService {
return this.httpClient.request<TypeResponse>(
'get',
`${this.basePath}/dictionary/type/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/dictionary/type/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
@ -868,7 +879,9 @@ export class DictionaryControllerService {
return this.httpClient.request<Colors>(
'get',
`${this.basePath}/color/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/color/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -956,9 +969,9 @@ export class DictionaryControllerService {
return this.httpClient.request<Dictionary>(
'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,
@ -1045,7 +1058,9 @@ export class DictionaryControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/color/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/color/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
body: body,
withCredentials: this.configuration.withCredentials,

View File

@ -24,9 +24,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class DigitalSignatureControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -49,14 +49,17 @@ export class DigitalSignatureControllerService {
* @param reportProgress flag to report request and response progress.
*/
public deleteDigitalSignature(observe?: 'body', reportProgress?: boolean): Observable<any>;
public deleteDigitalSignature(
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteDigitalSignature(
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteDigitalSignature(
observe: any = 'body',
reportProgress: boolean = false
@ -80,12 +83,16 @@ export class DigitalSignatureControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<any>('delete', `${this.basePath}/digital-signature`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<any>(
'delete',
`${this.basePath}/redaction-gateway-v1/digital-signature`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
@ -98,14 +105,17 @@ export class DigitalSignatureControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<DigitalSignatureViewModelRes>;
public getDigitalSignature(
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DigitalSignatureViewModelRes>>;
public getDigitalSignature(
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DigitalSignatureViewModelRes>>;
public getDigitalSignature(
observe: any = 'body',
reportProgress: boolean = false
@ -131,7 +141,7 @@ export class DigitalSignatureControllerService {
return this.httpClient.request<DigitalSignatureViewModelRes>(
'get',
`${this.basePath}/digital-signature`,
`${this.basePath}/redaction-gateway-v1/digital-signature`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -153,16 +163,19 @@ export class DigitalSignatureControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<DigitalSignatureViewModelRes>;
public saveDigitalSignature(
body: DigitalSignature,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DigitalSignatureViewModelRes>>;
public saveDigitalSignature(
body: DigitalSignature,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DigitalSignatureViewModelRes>>;
public saveDigitalSignature(
body: DigitalSignature,
observe: any = 'body',
@ -203,7 +216,7 @@ export class DigitalSignatureControllerService {
return this.httpClient.request<DigitalSignatureViewModelRes>(
'post',
`${this.basePath}/digital-signature`,
`${this.basePath}/redaction-gateway-v1/digital-signature`,
{
body: body,
withCredentials: this.configuration.withCredentials,
@ -221,22 +234,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 updateDigitalSignature(
public saveDigitalSignature1(
body: DigitalSignatureViewModelReq,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public updateDigitalSignature(
public saveDigitalSignature1(
body: DigitalSignatureViewModelReq,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public updateDigitalSignature(
public saveDigitalSignature1(
body: DigitalSignatureViewModelReq,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public updateDigitalSignature(
public saveDigitalSignature1(
body: DigitalSignatureViewModelReq,
observe: any = 'body',
reportProgress: boolean = false
@ -274,12 +290,16 @@ export class DigitalSignatureControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>('put', `${this.basePath}/digital-signature`, {
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<any>(
'put',
`${this.basePath}/redaction-gateway-v1/digital-signature`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

View File

@ -0,0 +1,791 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { DossierAttributeConfig } from '../model/dossierAttributeConfig';
import { DossierAttributeReq } from '../model/dossierAttributeReq';
import { DossierAttributesConfig } from '../model/dossierAttributesConfig';
import { DossierAttributesReq } from '../model/dossierAttributesReq';
import { DossierAttributesRes } from '../model/dossierAttributesRes';
import { BASE_PATH } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class DossierAttributesControllerService {
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string,
@Optional() configuration: Configuration
) {
if (basePath) {
this.basePath = basePath;
}
if (configuration) {
this.configuration = configuration;
this.basePath = basePath || configuration.basePath || this.basePath;
}
}
/**
* Add or update a dossier attribute in existing dossier.
* None
* @param body dossierAttribute
* @param dossierId dossierId
* @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 addOrUpdateDossierAttributes(
body: DossierAttributeReq,
dossierId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<DossierAttributesRes>;
public addOrUpdateDossierAttributes(
body: DossierAttributeReq,
dossierId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DossierAttributesRes>>;
public addOrUpdateDossierAttributes(
body: DossierAttributeReq,
dossierId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DossierAttributesRes>>;
public addOrUpdateDossierAttributes(
body: DossierAttributeReq,
dossierId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling addOrUpdateDossierAttributes.'
);
}
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling addOrUpdateDossierAttributes.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<DossierAttributesRes>(
'post',
`${this.basePath}/redaction-gateway-v1/dossierAttributes/update/${encodeURIComponent(
String(dossierId)
)}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Add or update a dossier attribute in base configuration.
* None
* @param body dossierAttribute
* @param dossierTemplateId dossierTemplateId
* @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 addOrUpdateDossierAttributesConfig(
body: DossierAttributeConfig,
dossierTemplateId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<DossierAttributeConfig>;
public addOrUpdateDossierAttributesConfig(
body: DossierAttributeConfig,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DossierAttributeConfig>>;
public addOrUpdateDossierAttributesConfig(
body: DossierAttributeConfig,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DossierAttributeConfig>>;
public addOrUpdateDossierAttributesConfig(
body: DossierAttributeConfig,
dossierTemplateId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling addOrUpdateDossierAttributesConfig.'
);
}
if (dossierTemplateId === null || dossierTemplateId === undefined) {
throw new Error(
'Required parameter dossierTemplateId was null or undefined when calling addOrUpdateDossierAttributesConfig.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<DossierAttributeConfig>(
'post',
`${this.basePath}/redaction-gateway-v1/dossierAttributes/config/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Delete a specific dossier attribute.
* None
* @param dossierAttributeId dossierAttributeId
* @param dossierId dossierId
* @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 deleteDossierAttribute(
dossierAttributeId: string,
dossierId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteDossierAttribute(
dossierAttributeId: string,
dossierId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteDossierAttribute(
dossierAttributeId: string,
dossierId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteDossierAttribute(
dossierAttributeId: string,
dossierId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierAttributeId === null || dossierAttributeId === undefined) {
throw new Error(
'Required parameter dossierAttributeId was null or undefined when calling deleteDossierAttribute.'
);
}
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling deleteDossierAttribute.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<any>(
'delete',
`${this.basePath}/redaction-gateway-v1/dossierAttributes/set/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(dossierAttributeId))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Delete a specific dossier attribute.
* None
* @param dossierAttributeId dossierAttributeId
* @param dossierTemplateId dossierTemplateId
* @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 deleteDossierAttributeConfig(
dossierAttributeId: string,
dossierTemplateId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteDossierAttributeConfig(
dossierAttributeId: string,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteDossierAttributeConfig(
dossierAttributeId: string,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteDossierAttributeConfig(
dossierAttributeId: string,
dossierTemplateId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierAttributeId === null || dossierAttributeId === undefined) {
throw new Error(
'Required parameter dossierAttributeId was null or undefined when calling deleteDossierAttributeConfig.'
);
}
if (dossierTemplateId === null || dossierTemplateId === undefined) {
throw new Error(
'Required parameter dossierTemplateId was null or undefined when calling deleteDossierAttributeConfig.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<any>(
'delete',
`${this.basePath}/redaction-gateway-v1/dossierAttributes/config/${encodeURIComponent(
String(dossierTemplateId)
)}/${encodeURIComponent(String(dossierAttributeId))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Bulk delete dossier attributes.
* None
* @param body dossierAttributeIds
* @param dossierTemplateId dossierTemplateId
* @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 deleteDossierAttributesConfig(
body: Array<string>,
dossierTemplateId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteDossierAttributesConfig(
body: Array<string>,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteDossierAttributesConfig(
body: Array<string>,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteDossierAttributesConfig(
body: Array<string>,
dossierTemplateId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling deleteDossierAttributesConfig.'
);
}
if (dossierTemplateId === null || dossierTemplateId === undefined) {
throw new Error(
'Required parameter dossierTemplateId was null or undefined when calling deleteDossierAttributesConfig.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>(
'post',
`${
this.basePath
}/redaction-gateway-v1/dossierAttributes/config/delete/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Get the dossier attributes.
* None
* @param dossierId dossierId
* @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 getDossierAttributes(
dossierId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<DossierAttributesRes>;
public getDossierAttributes(
dossierId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DossierAttributesRes>>;
public getDossierAttributes(
dossierId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DossierAttributesRes>>;
public getDossierAttributes(
dossierId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling getDossierAttributes.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<DossierAttributesRes>(
'get',
`${this.basePath}/redaction-gateway-v1/dossierAttributes/${encodeURIComponent(
String(dossierId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Get the dossier attributes configuration.
* None
* @param dossierTemplateId dossierTemplateId
* @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 getDossierAttributesConfig(
dossierTemplateId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<DossierAttributesConfig>;
public getDossierAttributesConfig(
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DossierAttributesConfig>>;
public getDossierAttributesConfig(
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DossierAttributesConfig>>;
public getDossierAttributesConfig(
dossierTemplateId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierTemplateId === null || dossierTemplateId === undefined) {
throw new Error(
'Required parameter dossierTemplateId was null or undefined when calling getDossierAttributesConfig.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<DossierAttributesConfig>(
'get',
`${this.basePath}/redaction-gateway-v1/dossierAttributes/config/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Set dossier attributes to an existing dossier
* None
* @param body dossierAttributes
* @param dossierId dossierId
* @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 setDossierAttributes(
body: DossierAttributesReq,
dossierId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<DossierAttributesRes>;
public setDossierAttributes(
body: DossierAttributesReq,
dossierId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DossierAttributesRes>>;
public setDossierAttributes(
body: DossierAttributesReq,
dossierId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DossierAttributesRes>>;
public setDossierAttributes(
body: DossierAttributesReq,
dossierId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling setDossierAttributes.'
);
}
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling setDossierAttributes.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<DossierAttributesRes>(
'post',
`${this.basePath}/redaction-gateway-v1/dossierAttributes/set/${encodeURIComponent(
String(dossierId)
)}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Set dossier attributes base configuration.
* None
* @param body dossierAttributesConfig
* @param dossierTemplateId dossierTemplateId
* @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 setDossierAttributesConfig(
body: DossierAttributesConfig,
dossierTemplateId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<DossierAttributesConfig>;
public setDossierAttributesConfig(
body: DossierAttributesConfig,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DossierAttributesConfig>>;
public setDossierAttributesConfig(
body: DossierAttributesConfig,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DossierAttributesConfig>>;
public setDossierAttributesConfig(
body: DossierAttributesConfig,
dossierTemplateId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling setDossierAttributesConfig.'
);
}
if (dossierTemplateId === null || dossierTemplateId === undefined) {
throw new Error(
'Required parameter dossierTemplateId was null or undefined when calling setDossierAttributesConfig.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<DossierAttributesConfig>(
'put',
`${this.basePath}/redaction-gateway-v1/dossierAttributes/config/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
@ -25,7 +25,7 @@ import { Configuration } from '../configuration';
export class DossierControllerService {
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '';
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -104,13 +104,17 @@ export class DossierControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<Dossier>('post', `${this.basePath}/dossier`, {
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<Dossier>(
'post',
`${this.basePath}/redaction-gateway-v1/dossier`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
@ -168,12 +172,11 @@ export class DossierControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'delete',
`${this.basePath}/dossier/${encodeURIComponent(String(dossierId))}`,
`${this.basePath}/redaction-gateway-v1/dossier/${encodeURIComponent(
String(dossierId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -238,12 +241,11 @@ export class DossierControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<Dossier>(
'get',
`${this.basePath}/dossier/${encodeURIComponent(String(dossierId))}`,
`${this.basePath}/redaction-gateway-v1/dossier/${encodeURIComponent(
String(dossierId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -291,28 +293,15 @@ export class DossierControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<Array<Dossier>>('get', `${this.basePath}/dossier`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
return this.httpClient.request<Array<Dossier>>(
'get',
`${this.basePath}/redaction-gateway-v1/dossier`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
}
return false;
);
}
}

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
@ -24,7 +24,7 @@ import { Configuration } from '../configuration';
export class DossierTemplateControllerService {
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '';
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -105,7 +105,7 @@ export class DossierTemplateControllerService {
return this.httpClient.request<DossierTemplateModel>(
'post',
`${this.basePath}/dossier-template`,
`${this.basePath}/redaction-gateway-v1/dossier-template`,
{
body: body,
withCredentials: this.configuration.withCredentials,
@ -148,7 +148,76 @@ export class DossierTemplateControllerService {
): Observable<any> {
if (dossierTemplateId === null || dossierTemplateId === undefined) {
throw new Error(
'Required parameter dossierTemplateId was null or undefined when calling getAllDossierTemplates.'
'Required parameter dossierTemplateId was null or undefined when calling deleteDossierTemplate.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<any>(
'delete',
`${this.basePath}/redaction-gateway-v1/dossier-template/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Delete multiple DossierTemplates by their IDs
* None
* @param body dossierTemplateIds
* @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 deleteDossierTemplates(
body: Array<string>,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteDossierTemplates(
body: Array<string>,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteDossierTemplates(
body: Array<string>,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteDossierTemplates(
body: Array<string>,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling deleteDossierTemplates.'
);
}
@ -172,12 +241,18 @@ export class DossierTemplateControllerService {
}
// to determine the Content-Type header
const consumes: string[] = [];
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>(
'delete',
`${this.basePath}/dossier-template/${encodeURIComponent(String(dossierTemplateId))}`,
'post',
`${this.basePath}/redaction-gateway-v1/dossier-template/delete`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@ -261,22 +336,22 @@ export class DossierTemplateControllerService {
* @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 getAllDossierTemplates1(
public getAllDossierTemplates(
observe?: 'body',
reportProgress?: boolean
): Observable<Array<DossierTemplateModel>>;
public getAllDossierTemplates1(
public getAllDossierTemplates(
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<Array<DossierTemplateModel>>>;
public getAllDossierTemplates1(
public getAllDossierTemplates(
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<Array<DossierTemplateModel>>>;
public getAllDossierTemplates1(
public getAllDossierTemplates(
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
@ -299,12 +374,9 @@ export class DossierTemplateControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<Array<DossierTemplateModel>>(
'get',
`${this.basePath}/dossier-template`,
`${this.basePath}/redaction-gateway-v1/dossier-template`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -321,32 +393,32 @@ export class DossierTemplateControllerService {
* @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 getAllDossierTemplates2(
public getDossierTemplate(
dossierTemplateId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<DossierTemplateModel>;
public getAllDossierTemplates2(
public getDossierTemplate(
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DossierTemplateModel>>;
public getAllDossierTemplates2(
public getDossierTemplate(
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DossierTemplateModel>>;
public getAllDossierTemplates2(
public getDossierTemplate(
dossierTemplateId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierTemplateId === null || dossierTemplateId === undefined) {
throw new Error(
'Required parameter dossierTemplateId was null or undefined when calling getAllDossierTemplates2.'
'Required parameter dossierTemplateId was null or undefined when calling getDossierTemplate.'
);
}
@ -369,12 +441,11 @@ export class DossierTemplateControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<DossierTemplateModel>(
'get',
`${this.basePath}/dossier-template/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/redaction-gateway-v1/dossier-template/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -383,18 +454,4 @@ export class DossierTemplateControllerService {
}
);
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
}

View File

@ -8,26 +8,27 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
import { CustomHttpUrlEncodingCodec } from '../encoder';
import { Observable } from 'rxjs';
import { DownloadResponse } from '../model/downloadResponse';
import { DownloadStatusResponse } from '../model/downloadStatusResponse';
import { PrepareDownloadRequest } from '../model/prepareDownloadRequest';
import { RemoveDownloadRequest } from '../model/removeDownloadRequest';
import { BASE_PATH } from '../variables';
import { Configuration } from '../configuration';
import { RemoveDownloadRequest } from '../model/removeDownloadRequest';
@Injectable()
export class DownloadControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -43,20 +44,6 @@ export class DownloadControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Returns a downloadable byte stream of the requested file
* Use the optional \&quot;inline\&quot; request parameter to select, if this report will be opened in the browser.
@ -71,18 +58,21 @@ export class DownloadControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public downloadFile(
storageId: string,
inline?: boolean,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public downloadFile(
storageId: string,
inline?: boolean,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public downloadFile(
storageId: string,
inline?: boolean,
@ -96,11 +86,12 @@ export class DownloadControllerService {
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
queryParameters = queryParameters.set('storageId', <any>storageId);
if (inline !== undefined && inline !== null) {
queryParameters = queryParameters.set('inline', <any>inline);
}
if (storageId !== undefined && storageId !== null) {
queryParameters = queryParameters.set('storageId', <any>storageId);
}
let headers = this.defaultHeaders;
@ -121,16 +112,17 @@ export class DownloadControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>('get', `${this.basePath}/async/download`, {
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<any>(
'get',
`${this.basePath}/redaction-gateway-v1/async/download`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
@ -143,14 +135,17 @@ export class DownloadControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<DownloadStatusResponse>;
public getDownloadStatus(
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DownloadStatusResponse>>;
public getDownloadStatus(
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DownloadStatusResponse>>;
public getDownloadStatus(
observe: any = 'body',
reportProgress: boolean = false
@ -174,12 +169,9 @@ export class DownloadControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<DownloadStatusResponse>(
'get',
`${this.basePath}/async/download/status`,
`${this.basePath}/redaction-gateway-v1/async/download/status`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -189,75 +181,6 @@ export class DownloadControllerService {
);
}
/**
* Removes a previously created download status
* None
* @param body removeDownloadRequest
* @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 deleteDownload(
body: RemoveDownloadRequest,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteDownload(
body: RemoveDownloadRequest,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteDownload(
body: RemoveDownloadRequest,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteDownload(
body: RemoveDownloadRequest,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling prepareDownload.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>('post', `${this.basePath}/async/download/delete`, {
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
/**
* Prepares a download for given fileIds and types
* None
@ -270,16 +193,19 @@ export class DownloadControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<DownloadResponse>;
public prepareDownload(
body: PrepareDownloadRequest,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<DownloadResponse>>;
public prepareDownload(
body: PrepareDownloadRequest,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<DownloadResponse>>;
public prepareDownload(
body: PrepareDownloadRequest,
observe: any = 'body',
@ -320,7 +246,83 @@ export class DownloadControllerService {
return this.httpClient.request<DownloadResponse>(
'post',
`${this.basePath}/async/download/prepare`,
`${this.basePath}/redaction-gateway-v1/async/download/prepare`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Removes a previously created download status
* None
* @param body removeDownloadRequest
* @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(
body: RemoveDownloadRequest,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public prepareDownload1(
body: RemoveDownloadRequest,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public prepareDownload1(
body: RemoveDownloadRequest,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public prepareDownload1(
body: RemoveDownloadRequest,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling prepareDownload1.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>(
'post',
`${this.basePath}/redaction-gateway-v1/async/download/delete`,
{
body: body,
withCredentials: this.configuration.withCredentials,

View File

@ -24,9 +24,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class FileAttributesControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -56,18 +56,21 @@ export class FileAttributesControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteFileAttribute(
dossierTemplateId: string,
fileAttributeId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteFileAttribute(
dossierTemplateId: string,
fileAttributeId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteFileAttribute(
dossierTemplateId: string,
fileAttributeId: string,
@ -107,7 +110,9 @@ export class FileAttributesControllerService {
return this.httpClient.request<any>(
'delete',
`${this.basePath}/fileAttributes/config/fileAttribute/${encodeURIComponent(
`${
this.basePath
}/redaction-gateway-v1/fileAttributes/config/fileAttribute/${encodeURIComponent(
String(dossierTemplateId)
)}/${encodeURIComponent(String(fileAttributeId))}`,
{
@ -133,18 +138,21 @@ export class FileAttributesControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteFileAttributes(
body: Array<string>,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteFileAttributes(
body: Array<string>,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteFileAttributes(
body: Array<string>,
dossierTemplateId: string,
@ -192,7 +200,9 @@ export class FileAttributesControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/fileAttributes/config/fileAttribute/${encodeURIComponent(
`${
this.basePath
}/redaction-gateway-v1/fileAttributes/config/fileAttribute/${encodeURIComponent(
String(dossierTemplateId)
)}/delete`,
{
@ -217,16 +227,19 @@ export class FileAttributesControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<FileAttributesConfig>;
public getFileAttributesConfiguration(
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<FileAttributesConfig>>;
public getFileAttributesConfiguration(
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<FileAttributesConfig>>;
public getFileAttributesConfiguration(
dossierTemplateId: string,
observe: any = 'body',
@ -259,7 +272,7 @@ export class FileAttributesControllerService {
return this.httpClient.request<FileAttributesConfig>(
'get',
`${this.basePath}/fileAttributes/config/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/fileAttributes/config/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
@ -272,7 +285,7 @@ export class FileAttributesControllerService {
}
/**
* Set file attributes to a existing file
* Set file attributes to an existing file
* None
* @param body fileAttributes
* @param dossierId dossierId
@ -287,6 +300,7 @@ export class FileAttributesControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public setFileAttributes(
body: FileAttributes,
dossierId: string,
@ -294,6 +308,7 @@ export class FileAttributesControllerService {
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public setFileAttributes(
body: FileAttributes,
dossierId: string,
@ -301,6 +316,7 @@ export class FileAttributesControllerService {
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public setFileAttributes(
body: FileAttributes,
dossierId: string,
@ -355,7 +371,7 @@ export class FileAttributesControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/fileAttributes/set/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/fileAttributes/set/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -382,18 +398,21 @@ export class FileAttributesControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<FileAttributesConfig>;
public setFileAttributesConfig(
body: FileAttributesConfig,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<FileAttributesConfig>>;
public setFileAttributesConfig(
body: FileAttributesConfig,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<FileAttributesConfig>>;
public setFileAttributesConfig(
body: FileAttributesConfig,
dossierTemplateId: string,
@ -441,7 +460,9 @@ export class FileAttributesControllerService {
return this.httpClient.request<FileAttributesConfig>(
'put',
`${this.basePath}/fileAttributes/config/baseConfig/${encodeURIComponent(
`${
this.basePath
}/redaction-gateway-v1/fileAttributes/config/baseConfig/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
@ -468,18 +489,21 @@ export class FileAttributesControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<FileAttributeConfig>;
public setFileAttributesConfiguration(
body: FileAttributeConfig,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<FileAttributeConfig>>;
public setFileAttributesConfiguration(
body: FileAttributeConfig,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<FileAttributeConfig>>;
public setFileAttributesConfiguration(
body: FileAttributeConfig,
dossierTemplateId: string,
@ -527,7 +551,9 @@ export class FileAttributesControllerService {
return this.httpClient.request<FileAttributeConfig>(
'post',
`${this.basePath}/fileAttributes/config/fileAttribute/${encodeURIComponent(
`${
this.basePath
}/redaction-gateway-v1/fileAttributes/config/fileAttribute/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{

View File

@ -21,9 +21,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class FileManagementControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -53,18 +53,21 @@ export class FileManagementControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteFile(
dossierId: string,
fileId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteFile(
dossierId: string,
fileId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteFile(
dossierId: string,
fileId: string,
@ -104,9 +107,9 @@ export class FileManagementControllerService {
return this.httpClient.request<any>(
'delete',
`${this.basePath}/delete/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(
String(fileId)
)}`,
`${this.basePath}/redaction-gateway-v1/delete/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -130,18 +133,21 @@ export class FileManagementControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteFiles(
body: Array<string>,
dossierId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteFiles(
body: Array<string>,
dossierId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteFiles(
body: Array<string>,
dossierId: string,
@ -189,7 +195,7 @@ export class FileManagementControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/delete/${encodeURIComponent(String(dossierId))}`,
`${this.basePath}/redaction-gateway-v1/delete/${encodeURIComponent(String(dossierId))}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
@ -216,6 +222,7 @@ export class FileManagementControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public downloadAnnotatedFile(
dossierId: string,
fileId: string,
@ -223,6 +230,7 @@ export class FileManagementControllerService {
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public downloadAnnotatedFile(
dossierId: string,
fileId: string,
@ -230,6 +238,7 @@ export class FileManagementControllerService {
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public downloadAnnotatedFile(
dossierId: string,
fileId: string,
@ -275,7 +284,7 @@ export class FileManagementControllerService {
return this.httpClient.request<any>(
'get',
`${this.basePath}/download/annotated/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/download/annotated/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{

View File

@ -0,0 +1,174 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { GeneralConfigurationModel } from '../model/generalConfigurationModel';
import { BASE_PATH } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class GeneralSettingsControllerService {
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string,
@Optional() configuration: Configuration
) {
if (basePath) {
this.basePath = basePath;
}
if (configuration) {
this.configuration = configuration;
this.basePath = basePath || configuration.basePath || this.basePath;
}
}
/**
* Returns the current general Configuration.
*
* @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 getGeneralConfigurations(
observe?: 'body',
reportProgress?: boolean
): Observable<GeneralConfigurationModel>;
public getGeneralConfigurations(
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<GeneralConfigurationModel>>;
public getGeneralConfigurations(
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<GeneralConfigurationModel>>;
public getGeneralConfigurations(
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<GeneralConfigurationModel>(
'get',
`${this.basePath}/redaction-gateway-v1/configuration/general`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Write General Configurations to KeyCloak
*
* @param body generalConfigurationModel
* @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 updateGeneralConfigurations(
body: GeneralConfigurationModel,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public updateGeneralConfigurations(
body: GeneralConfigurationModel,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public updateGeneralConfigurations(
body: GeneralConfigurationModel,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public updateGeneralConfigurations(
body: GeneralConfigurationModel,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling updateGeneralConfigurations.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>(
'post',
`${this.basePath}/redaction-gateway-v1/configuration/general`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
@ -24,7 +24,7 @@ import { Configuration } from '../configuration';
export class InfoControllerService {
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '';
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -78,28 +78,15 @@ export class InfoControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<AuthInfo>('get', `${this.basePath}/info`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
return this.httpClient.request<AuthInfo>(
'get',
`${this.basePath}/redaction-gateway-v1/info`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
}
return false;
);
}
}

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
@ -22,9 +22,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class LegalBasisMappingControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -40,20 +40,6 @@ export class LegalBasisMappingControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Set the mapping between legal basis and redaction reason.
* None
@ -66,16 +52,19 @@ export class LegalBasisMappingControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<Array<LegalBasisMapping>>;
public getLegalBasisMapping(
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<Array<LegalBasisMapping>>>;
public getLegalBasisMapping(
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<Array<LegalBasisMapping>>>;
public getLegalBasisMapping(
dossierTemplateId: string,
observe: any = 'body',
@ -106,12 +95,11 @@ export class LegalBasisMappingControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<Array<LegalBasisMapping>>(
'get',
`${this.basePath}/legalBasis/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/redaction-gateway-v1/legalBasis/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -135,18 +123,21 @@ export class LegalBasisMappingControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public setLegalBasisMapping(
body: Array<LegalBasisMapping>,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public setLegalBasisMapping(
body: Array<LegalBasisMapping>,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public setLegalBasisMapping(
body: Array<LegalBasisMapping>,
dossierTemplateId: string,
@ -194,7 +185,9 @@ export class LegalBasisMappingControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/legalBasis/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/redaction-gateway-v1/legalBasis/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
body: body,
withCredentials: this.configuration.withCredentials,

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
@ -26,7 +26,7 @@ import { Configuration } from '../configuration';
export class LicenseReportControllerService {
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '';
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -46,39 +46,39 @@ export class LicenseReportControllerService {
* Creates and serves license report.
* None
* @param body reportRequest
* @param offset offset
* @param limit limit
* @param offset offset
* @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 licenseReport(
body: LicenseReportRequest,
offset?: number,
limit?: number,
offset?: number,
observe?: 'body',
reportProgress?: boolean
): Observable<LicenseReport>;
public licenseReport(
body: LicenseReportRequest,
offset?: number,
limit?: number,
offset?: number,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<LicenseReport>>;
public licenseReport(
body: LicenseReportRequest,
offset?: number,
limit?: number,
offset?: number,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<LicenseReport>>;
public licenseReport(
body: LicenseReportRequest,
offset?: number,
limit?: number,
offset?: number,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
@ -89,12 +89,12 @@ export class LicenseReportControllerService {
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (offset !== undefined && offset !== null) {
queryParameters = queryParameters.set('offset', <any>offset);
}
if (limit !== undefined && limit !== null) {
queryParameters = queryParameters.set('limit', <any>limit);
}
if (offset !== undefined && offset !== null) {
queryParameters = queryParameters.set('offset', <any>offset);
}
let headers = this.defaultHeaders;
@ -123,27 +123,17 @@ export class LicenseReportControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<LicenseReport>('post', `${this.basePath}/report/license`, {
body: body,
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
return this.httpClient.request<LicenseReport>(
'post',
`${this.basePath}/redaction-gateway-v1/report/license`,
{
body: body,
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
}
return false;
);
}
}

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
@ -16,14 +16,16 @@ import { CustomHttpUrlEncodingCodec } from '../encoder';
import { Observable } from 'rxjs';
import { PageExclusionRequest } from '../model/pageExclusionRequest';
import { BASE_PATH } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class ReanalysisControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -40,17 +42,272 @@ export class ReanalysisControllerService {
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
* Exclude pages from analysis for a file
* None
* @param body pageExclusionRequest
* @param dossierId dossierId
* @param fileId fileId
* @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.
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
public excludePages(
body: PageExclusionRequest,
dossierId: string,
fileId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public excludePages(
body: PageExclusionRequest,
dossierId: string,
fileId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public excludePages(
body: PageExclusionRequest,
dossierId: string,
fileId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public excludePages(
body: PageExclusionRequest,
dossierId: string,
fileId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling excludePages.'
);
}
return false;
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling excludePages.'
);
}
if (fileId === null || fileId === undefined) {
throw new Error(
'Required parameter fileId was null or undefined when calling excludePages.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>(
'post',
`${this.basePath}/redaction-gateway-v1/exclude-pages/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Include pages from analysis for a file
* None
* @param body pageInclusionRequest
* @param dossierId dossierId
* @param fileId fileId
* @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 includePages(
body: PageExclusionRequest,
dossierId: string,
fileId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public includePages(
body: PageExclusionRequest,
dossierId: string,
fileId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public includePages(
body: PageExclusionRequest,
dossierId: string,
fileId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public includePages(
body: PageExclusionRequest,
dossierId: string,
fileId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling includePages.'
);
}
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling includePages.'
);
}
if (fileId === null || fileId === undefined) {
throw new Error(
'Required parameter fileId was null or undefined when calling includePages.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>(
'post',
`${this.basePath}/redaction-gateway-v1/include-pages/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Ocr and reanalyze a dossier
* None
* @param dossierId dossierId
* @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 ocrDossier(
dossierId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public ocrDossier(
dossierId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public ocrDossier(
dossierId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public ocrDossier(
dossierId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling ocrDossier.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<any>(
'post',
`${this.basePath}/redaction-gateway-v1/ocr/reanalyze/${encodeURIComponent(
String(dossierId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
@ -67,18 +324,21 @@ export class ReanalysisControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public ocrFile(
dossierId: string,
fileId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public ocrFile(
dossierId: string,
fileId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public ocrFile(
dossierId: string,
fileId: string,
@ -116,12 +376,9 @@ export class ReanalysisControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'post',
`${this.basePath}/ocr/reanalyze/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/ocr/reanalyze/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -147,18 +404,21 @@ export class ReanalysisControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public ocrFiles(
body: Array<string>,
dossierId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public ocrFiles(
body: Array<string>,
dossierId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public ocrFiles(
body: Array<string>,
dossierId: string,
@ -204,7 +464,9 @@ export class ReanalysisControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/ocr/reanalyze/${encodeURIComponent(String(dossierId))}/bulk`,
`${this.basePath}/redaction-gateway-v1/ocr/reanalyze/${encodeURIComponent(
String(dossierId)
)}/bulk`,
{
body: body,
withCredentials: this.configuration.withCredentials,
@ -216,38 +478,51 @@ export class ReanalysisControllerService {
}
/**
* Ocr and reanalyze a dossier
* Reanalyze all files of the dossier.
* None
* @param dossierId dossierId
* @param force force
* @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 ocrDossier(
public reanalyzeDossier(
dossierId: string,
force?: boolean,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public ocrDossier(
public reanalyzeDossier(
dossierId: string,
force?: boolean,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public ocrDossier(
public reanalyzeDossier(
dossierId: string,
force?: boolean,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public ocrDossier(
public reanalyzeDossier(
dossierId: string,
force?: boolean,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling ocrDossier.'
'Required parameter dossierId was null or undefined when calling reanalyzeDossier.'
);
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (force !== undefined && force !== null) {
queryParameters = queryParameters.set('force', <any>force);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
@ -267,13 +542,13 @@ export class ReanalysisControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'post',
`${this.basePath}/ocr/reanalyze/${encodeURIComponent(String(dossierId))}`,
`${this.basePath}/redaction-gateway-v1/reanalyze/${encodeURIComponent(
String(dossierId)
)}`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@ -287,14 +562,14 @@ export class ReanalysisControllerService {
* None
* @param dossierId dossierId
* @param fileId fileId
* @param priority priority
* @param force force
* @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 reanalyzeFile(
dossierId: string,
fileId: string,
priority?: number,
force?: boolean,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
@ -302,7 +577,7 @@ export class ReanalysisControllerService {
public reanalyzeFile(
dossierId: string,
fileId: string,
priority?: number,
force?: boolean,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
@ -310,7 +585,7 @@ export class ReanalysisControllerService {
public reanalyzeFile(
dossierId: string,
fileId: string,
priority?: number,
force?: boolean,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
@ -318,7 +593,7 @@ export class ReanalysisControllerService {
public reanalyzeFile(
dossierId: string,
fileId: string,
priority?: number,
force?: boolean,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
@ -335,8 +610,8 @@ export class ReanalysisControllerService {
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (priority !== undefined && priority !== null) {
queryParameters = queryParameters.set('priority', <any>priority);
if (force !== undefined && force !== null) {
queryParameters = queryParameters.set('force', <any>force);
}
let headers = this.defaultHeaders;
@ -358,12 +633,9 @@ export class ReanalysisControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'post',
`${this.basePath}/reanalyze/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/reanalyze/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -392,6 +664,7 @@ export class ReanalysisControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public reanalyzeFilesForDossier(
body: Array<string>,
dossierId: string,
@ -399,6 +672,7 @@ export class ReanalysisControllerService {
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public reanalyzeFilesForDossier(
body: Array<string>,
dossierId: string,
@ -406,6 +680,7 @@ export class ReanalysisControllerService {
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public reanalyzeFilesForDossier(
body: Array<string>,
dossierId: string,
@ -459,7 +734,9 @@ export class ReanalysisControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/reanalyze/${encodeURIComponent(String(dossierId))}/bulk`,
`${this.basePath}/redaction-gateway-v1/reanalyze/${encodeURIComponent(
String(dossierId)
)}/bulk`,
{
body: body,
params: queryParameters,
@ -471,133 +748,58 @@ export class ReanalysisControllerService {
);
}
/**
* Reanalyze all files of the dossier.
* None
* @param dossierId dossierId
* @param force force
* @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 reanalyzeDossier(
dossierId: string,
force?: boolean,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public reanalyzeDossier(
dossierId: string,
force?: boolean,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public reanalyzeDossier(
dossierId: string,
force?: boolean,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public reanalyzeDossier(
dossierId: string,
force?: boolean,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling reanalyzeDossier.'
);
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (force !== undefined && force !== null) {
queryParameters = queryParameters.set('force', <any>force);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'post',
`${this.basePath}/reanalyze/${encodeURIComponent(String(dossierId))}`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Exclude or re-include a file to analysis
* None
* @param fileId fileId
* @param dossierId dossierId
* @param fileId fileId
* @param excluded excluded
* @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 toggleAnalysis(
fileId: string,
dossierId: string,
fileId: string,
excluded?: boolean,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public toggleAnalysis(
fileId: string,
dossierId: string,
fileId: string,
excluded?: boolean,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public toggleAnalysis(
fileId: string,
dossierId: string,
fileId: string,
excluded?: boolean,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public toggleAnalysis(
fileId: string,
dossierId: string,
fileId: string,
excluded?: boolean,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (fileId === null || fileId === undefined) {
throw new Error(
'Required parameter fileId was null or undefined when calling toggleAnalysis.'
);
}
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling toggleAnalysis.'
);
}
if (fileId === null || fileId === undefined) {
throw new Error(
'Required parameter fileId was null or undefined when calling toggleAnalysis.'
);
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (excluded !== undefined && excluded !== null) {
queryParameters = queryParameters.set('excluded', <any>excluded);
@ -624,7 +826,7 @@ export class ReanalysisControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/toggle-analysis/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/toggle-analysis/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
@ -24,9 +24,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class RedactionLogControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -42,20 +42,6 @@ export class RedactionLogControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Gets the redaction changelog for a fileId
* None
@ -64,25 +50,28 @@ export class RedactionLogControllerService {
* @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 getRedactionChangeLog(
public getRedactionLog(
dossierId: string,
fileId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<RedactionChangeLog>;
public getRedactionChangeLog(
public getRedactionLog(
dossierId: string,
fileId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<RedactionChangeLog>>;
public getRedactionChangeLog(
public getRedactionLog(
dossierId: string,
fileId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<RedactionChangeLog>>;
public getRedactionChangeLog(
public getRedactionLog(
dossierId: string,
fileId: string,
observe: any = 'body',
@ -119,12 +108,9 @@ export class RedactionLogControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<RedactionChangeLog>(
'get',
`${this.basePath}/redactionChnageLog/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/redactionChnageLog/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -144,25 +130,28 @@ export class RedactionLogControllerService {
* @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 getRedactionLog(
public getRedactionChangeLog(
dossierId: string,
fileId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<RedactionLog>;
public getRedactionLog(
public getRedactionChangeLog(
dossierId: string,
fileId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<RedactionLog>>;
public getRedactionLog(
public getRedactionChangeLog(
dossierId: string,
fileId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<RedactionLog>>;
public getRedactionLog(
public getRedactionChangeLog(
dossierId: string,
fileId: string,
observe: any = 'body',
@ -199,12 +188,9 @@ export class RedactionLogControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<RedactionLog>(
'get',
`${this.basePath}/redactionLog/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/redactionLog/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -230,18 +216,21 @@ export class RedactionLogControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<SectionGrid>;
public getSectionGrid(
dossierId: string,
fileId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<SectionGrid>>;
public getSectionGrid(
dossierId: string,
fileId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<SectionGrid>>;
public getSectionGrid(
dossierId: string,
fileId: string,
@ -279,12 +268,9 @@ export class RedactionLogControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<SectionGrid>(
'get',
`${this.basePath}/sectionGrid/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/sectionGrid/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{

View File

@ -23,9 +23,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class ReportTemplateControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -41,20 +41,6 @@ export class ReportTemplateControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Delete template file for redaction-report
* None
@ -69,18 +55,21 @@ export class ReportTemplateControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteTemplate(
dossierTemplateId: string,
templateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteTemplate(
dossierTemplateId: string,
templateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteTemplate(
dossierTemplateId: string,
templateId: string,
@ -120,7 +109,7 @@ export class ReportTemplateControllerService {
return this.httpClient.request<any>(
'delete',
`${this.basePath}/templateUpload/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent(
String(dossierTemplateId)
)}/${encodeURIComponent(String(templateId))}`,
{
@ -146,18 +135,21 @@ export class ReportTemplateControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public downloadReportTemplate(
dossierTemplateId: string,
templateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public downloadReportTemplate(
dossierTemplateId: string,
templateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public downloadReportTemplate(
dossierTemplateId: string,
templateId: string,
@ -197,7 +189,7 @@ export class ReportTemplateControllerService {
return this.httpClient.request<any>(
'get',
`${this.basePath}/templateUpload/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent(
String(dossierTemplateId)
)}/${encodeURIComponent(String(templateId))}`,
{
@ -221,16 +213,19 @@ export class ReportTemplateControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<Array<ReportTemplate>>;
public getAvailableReportTemplates(
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<Array<ReportTemplate>>>;
public getAvailableReportTemplates(
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<Array<ReportTemplate>>>;
public getAvailableReportTemplates(
dossierTemplateId: string,
observe: any = 'body',
@ -263,7 +258,9 @@ export class ReportTemplateControllerService {
return this.httpClient.request<Array<ReportTemplate>>(
'get',
`${this.basePath}/templateUpload/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -287,18 +284,21 @@ export class ReportTemplateControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<ReportTemplate>;
public uploadTemplateForm(
dossierTemplateId: string,
file?: Blob,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<ReportTemplate>>;
public uploadTemplateForm(
dossierTemplateId: string,
file?: Blob,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<ReportTemplate>>;
public uploadTemplateForm(
dossierTemplateId: string,
file?: Blob,
@ -353,7 +353,9 @@ export class ReportTemplateControllerService {
return this.httpClient.request<ReportTemplate>(
'post',
`${this.basePath}/templateUpload/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
body: convertFormParamsToString ? formParams.toString() : formParams,
withCredentials: this.configuration.withCredentials,
@ -363,4 +365,18 @@ export class ReportTemplateControllerService {
}
);
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
}

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
@ -25,7 +25,7 @@ import { Configuration } from '../configuration';
export class RulesControllerService {
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '';
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -96,12 +96,11 @@ export class RulesControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<Rules>(
'get',
`${this.basePath}/rules/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/redaction-gateway-v1/rules/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -166,12 +165,11 @@ export class RulesControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'get',
`${this.basePath}/rules/${encodeURIComponent(String(dossierTemplateId))}/download`,
`${this.basePath}/redaction-gateway-v1/rules/${encodeURIComponent(
String(dossierTemplateId)
)}/download`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -185,7 +183,6 @@ export class RulesControllerService {
* Takes object containing string or rules as argument, which will be used by the redaction service.
*
* @param body rules
* @param dossierTemplateId dossierTemplateId
* @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.
*/
@ -199,7 +196,7 @@ export class RulesControllerService {
public uploadRules(
body: Rules,
bserve?: 'events',
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
@ -241,7 +238,7 @@ export class RulesControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>('post', `${this.basePath}/rules`, {
return this.httpClient.request<any>('post', `${this.basePath}/redaction-gateway-v1/rules`, {
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -253,44 +250,38 @@ export class RulesControllerService {
/**
* Takes object containing string or rules as argument, which will be used by the redaction service.
*
* @param file
* @param dossierTemplateId dossierTemplateId
* @param file
* @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 uploadRulesFileForm(
file: Blob,
dossierTemplateId: string,
file?: Blob,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public uploadRulesFileForm(
file: Blob,
dossierTemplateId: string,
file?: Blob,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public uploadRulesFileForm(
file: Blob,
dossierTemplateId: string,
file?: Blob,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public uploadRulesFileForm(
file: Blob,
dossierTemplateId: string,
file?: Blob,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (file === null || file === undefined) {
throw new Error(
'Required parameter file was null or undefined when calling uploadRulesFile.'
);
}
if (dossierTemplateId === null || dossierTemplateId === undefined) {
throw new Error(
'Required parameter dossierTemplateId was null or undefined when calling uploadRulesFile.'
@ -339,7 +330,9 @@ export class RulesControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/rules/${encodeURIComponent(String(dossierTemplateId))}/upload`,
`${this.basePath}/redaction-gateway-v1/rules/${encodeURIComponent(
String(dossierTemplateId)
)}/upload`,
{
body: convertFormParamsToString ? formParams.toString() : formParams,
withCredentials: this.configuration.withCredentials,

View File

@ -8,24 +8,23 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent } from '@angular/common/http';
import { CustomHttpUrlEncodingCodec } from '../encoder';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { SMTPConfigurationModel } from '../model/sMTPConfigurationModel';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { BASE_PATH } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class SmtpConfigurationControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -41,20 +40,6 @@ export class SmtpConfigurationControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Clear SMTP Settings to KeyCloak
*
@ -62,14 +47,17 @@ export class SmtpConfigurationControllerService {
* @param reportProgress flag to report request and response progress.
*/
public clearSMTPConfiguration(observe?: 'body', reportProgress?: boolean): Observable<any>;
public clearSMTPConfiguration(
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public clearSMTPConfiguration(
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public clearSMTPConfiguration(
observe: any = 'body',
reportProgress: boolean = false
@ -93,15 +81,16 @@ export class SmtpConfigurationControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>('delete', `${this.basePath}/configuration/smtp`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<any>(
'delete',
`${this.basePath}/redaction-gateway-v1/configuration/smtp`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
@ -114,14 +103,17 @@ export class SmtpConfigurationControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<SMTPConfigurationModel>;
public getCurrentSMTPConfiguration(
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<SMTPConfigurationModel>>;
public getCurrentSMTPConfiguration(
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<SMTPConfigurationModel>>;
public getCurrentSMTPConfiguration(
observe: any = 'body',
reportProgress: boolean = false
@ -145,12 +137,9 @@ export class SmtpConfigurationControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<SMTPConfigurationModel>(
'get',
`${this.basePath}/configuration/smtp`,
`${this.basePath}/redaction-gateway-v1/configuration/smtp`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -172,16 +161,19 @@ export class SmtpConfigurationControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public testSMTPConfiguration(
body: SMTPConfigurationModel,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public testSMTPConfiguration(
body: SMTPConfigurationModel,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public testSMTPConfiguration(
body: SMTPConfigurationModel,
observe: any = 'body',
@ -220,13 +212,17 @@ export class SmtpConfigurationControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>('post', `${this.basePath}/configuration/smtp/test`, {
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<any>(
'post',
`${this.basePath}/redaction-gateway-v1/configuration/smtp/test`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
@ -241,16 +237,19 @@ export class SmtpConfigurationControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public updateSMTPConfiguration(
body: SMTPConfigurationModel,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public updateSMTPConfiguration(
body: SMTPConfigurationModel,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public updateSMTPConfiguration(
body: SMTPConfigurationModel,
observe: any = 'body',
@ -289,12 +288,16 @@ export class SmtpConfigurationControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>('post', `${this.basePath}/configuration/smtp`, {
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<any>(
'post',
`${this.basePath}/redaction-gateway-v1/configuration/smtp`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

View File

@ -8,10 +8,11 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
import { CustomHttpUrlEncodingCodec } from '../encoder';
import { Observable } from 'rxjs';
@ -19,13 +20,12 @@ import { FileStatus } from '../model/fileStatus';
import { BASE_PATH } from '../variables';
import { Configuration } from '../configuration';
import { CustomHttpUrlEncodingCodec } from '../encoder';
@Injectable()
export class StatusControllerService {
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '';
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -41,6 +41,73 @@ export class StatusControllerService {
}
}
/**
* Gets the status for all files in a dossier.
* None
* @param dossierId The id of the dossier you want the status for.
* @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 getDossierStatus(
dossierId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<Array<FileStatus>>;
public getDossierStatus(
dossierId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<Array<FileStatus>>>;
public getDossierStatus(
dossierId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<Array<FileStatus>>>;
public getDossierStatus(
dossierId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling getDossierStatus.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<Array<FileStatus>>(
'get',
`${this.basePath}/redaction-gateway-v1/status/${encodeURIComponent(String(dossierId))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Gets the status for a file.
* None
@ -107,14 +174,11 @@ export class StatusControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<FileStatus>(
'get',
`${this.basePath}/status/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(
String(fileId)
)}`,
`${this.basePath}/redaction-gateway-v1/status/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -189,7 +253,7 @@ export class StatusControllerService {
return this.httpClient.request<{ [key: string]: Array<FileStatus> }>(
'post',
`${this.basePath}/status`,
`${this.basePath}/redaction-gateway-v1/status`,
{
body: body,
withCredentials: this.configuration.withCredentials,
@ -200,76 +264,6 @@ export class StatusControllerService {
);
}
/**
* Gets the status for all files in a dossier.
* None
* @param dossierId The id of the dossier you want the status for.
* @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 getDossierStatus(
dossierId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<Array<FileStatus>>;
public getDossierStatus(
dossierId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<Array<FileStatus>>>;
public getDossierStatus(
dossierId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<Array<FileStatus>>>;
public getDossierStatus(
dossierId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling getDossierStatus.'
);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<Array<FileStatus>>(
'get',
`${this.basePath}/status/${encodeURIComponent(String(dossierId))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Assigns a reviewer for a file.
* None
@ -347,14 +341,11 @@ export class StatusControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'post',
`${this.basePath}/status/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(
String(fileId)
)}/${encodeURIComponent(String(reviewerId))}`,
`${this.basePath}/redaction-gateway-v1/status/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}/${encodeURIComponent(String(reviewerId))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -451,7 +442,7 @@ export class StatusControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/status/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/status/${encodeURIComponent(
String(dossierId)
)}/bulk/${encodeURIComponent(String(reviewerId))}`,
{
@ -530,12 +521,9 @@ export class StatusControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'post',
`${this.basePath}/status/approved/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/status/approved/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -623,7 +611,9 @@ export class StatusControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/status/approved/${encodeURIComponent(String(dossierId))}/bulk`,
`${this.basePath}/redaction-gateway-v1/status/approved/${encodeURIComponent(
String(dossierId)
)}/bulk`,
{
body: body,
withCredentials: this.configuration.withCredentials,
@ -637,52 +627,55 @@ export class StatusControllerService {
/**
* Sets the status UNDER_APPROVAL for a file.
* None
* @param fileId fileId
* @param dossierId dossierId
* @param fileId fileId
* @param approverId approverId
* @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 setStatusUnderApproval(
fileId: string,
dossierId: string,
fileId: string,
approverId?: string,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public setStatusUnderApproval(
fileId: string,
dossierId: string,
fileId: string,
approverId?: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public setStatusUnderApproval(
fileId: string,
dossierId: string,
fileId: string,
approverId?: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public setStatusUnderApproval(
fileId: string,
dossierId: string,
fileId: string,
approverId?: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
if (fileId === null || fileId === undefined) {
throw new Error(
'Required parameter fileId was null or undefined when calling setStatusUnderApproval.'
);
}
if (dossierId === null || dossierId === undefined) {
throw new Error(
'Required parameter dossierId was null or undefined when calling setStatusUnderApproval.'
);
}
if (fileId === null || fileId === undefined) {
throw new Error(
'Required parameter fileId was null or undefined when calling setStatusUnderApproval.'
);
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (approverId !== undefined && approverId !== null) {
queryParameters = queryParameters.set('approverId', <any>approverId);
@ -707,12 +700,9 @@ export class StatusControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'post',
`${this.basePath}/status/underapproval/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/status/underapproval/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -736,29 +726,32 @@ export class StatusControllerService {
*/
public setStatusUnderApprovalForList(
body: Array<string>,
approverId: string,
dossierId: string,
approverId?: string,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public setStatusUnderApprovalForList(
body: Array<string>,
approverId: string,
dossierId: string,
approverId?: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public setStatusUnderApprovalForList(
body: Array<string>,
approverId: string,
dossierId: string,
approverId?: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public setStatusUnderApprovalForList(
body: Array<string>,
approverId: string,
dossierId: string,
approverId?: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
@ -781,7 +774,9 @@ export class StatusControllerService {
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
queryParameters = queryParameters.set('approverId', <any>approverId);
if (approverId !== undefined && approverId !== null) {
queryParameters = queryParameters.set('approverId', <any>approverId);
}
let headers = this.defaultHeaders;
@ -812,7 +807,9 @@ export class StatusControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/status/underapproval/${encodeURIComponent(String(dossierId))}/bulk`,
`${this.basePath}/redaction-gateway-v1/status/underapproval/${encodeURIComponent(
String(dossierId)
)}/bulk`,
{
body: body,
params: queryParameters,
@ -890,12 +887,9 @@ export class StatusControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'post',
`${this.basePath}/status/underreview/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/status/underreview/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -983,7 +977,9 @@ export class StatusControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/status/underreview/${encodeURIComponent(String(dossierId))}/bulk`,
`${this.basePath}/redaction-gateway-v1/status/underreview/${encodeURIComponent(
String(dossierId)
)}/bulk`,
{
body: body,
withCredentials: this.configuration.withCredentials,
@ -993,18 +989,4 @@ export class StatusControllerService {
}
);
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
}

View File

@ -23,9 +23,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class UploadControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -41,20 +41,6 @@ export class UploadControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Receives an uploaded file and returns its fileId.
* None
@ -69,18 +55,21 @@ export class UploadControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<FileUploadResult>;
public uploadFileForm(
dossierId: string,
file?: Blob,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<FileUploadResult>>;
public uploadFileForm(
dossierId: string,
file?: Blob,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<FileUploadResult>>;
public uploadFileForm(
dossierId: string,
file?: Blob,
@ -135,7 +124,7 @@ export class UploadControllerService {
return this.httpClient.request<FileUploadResult>(
'post',
`${this.basePath}/upload/${encodeURIComponent(String(dossierId))}`,
`${this.basePath}/redaction-gateway-v1/upload/${encodeURIComponent(String(dossierId))}`,
{
body: convertFormParamsToString ? formParams.toString() : formParams,
withCredentials: this.configuration.withCredentials,
@ -145,4 +134,18 @@ export class UploadControllerService {
}
);
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
}

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
@ -17,18 +17,19 @@ import { CustomHttpUrlEncodingCodec } from '../encoder';
import { Observable } from 'rxjs';
import { CreateUserRequest } from '../model/createUserRequest';
import { ResetPasswordRequest } from '../model/resetPasswordRequest';
import { UpdateMyProfileRequest } from '../model/updateMyProfileRequest';
import { UpdateProfileRequest } from '../model/updateProfileRequest';
import { User } from '../model/user';
import { BASE_PATH } from '../variables';
import { Configuration } from '../configuration';
import { UpdateMyProfileRequest } from '../model/updateMyProfileRequest';
@Injectable()
export class UserControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -44,20 +45,6 @@ export class UserControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Add a role to users
* None
@ -72,18 +59,21 @@ export class UserControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public addRoleToUsers(
body: Array<string>,
userId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public addRoleToUsers(
body: Array<string>,
userId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public addRoleToUsers(
body: Array<string>,
userId: string,
@ -131,7 +121,7 @@ export class UserControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/user/${encodeURIComponent(String(userId))}/role`,
`${this.basePath}/redaction-gateway-v1/user/${encodeURIComponent(String(userId))}/role`,
{
body: body,
withCredentials: this.configuration.withCredentials,
@ -154,16 +144,19 @@ export class UserControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<User>;
public createUser(
body: CreateUserRequest,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<User>>;
public createUser(
body: CreateUserRequest,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<User>>;
public createUser(
body: CreateUserRequest,
observe: any = 'body',
@ -202,7 +195,7 @@ export class UserControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<User>('post', `${this.basePath}/user`, {
return this.httpClient.request<User>('post', `${this.basePath}/redaction-gateway-v1/user`, {
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -219,16 +212,19 @@ export class UserControllerService {
* @param reportProgress flag to report request and response progress.
*/
public deleteUser(userId: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
public deleteUser(
userId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteUser(
userId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteUser(
userId: string,
observe: any = 'body',
@ -259,12 +255,9 @@ export class UserControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'delete',
`${this.basePath}/user/${encodeURIComponent(String(userId))}`,
`${this.basePath}/redaction-gateway-v1/user/${encodeURIComponent(String(userId))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -286,16 +279,19 @@ export class UserControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteUsers(
userId: Array<string>,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteUsers(
userId: Array<string>,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteUsers(
userId: Array<string>,
observe: any = 'body',
@ -333,16 +329,84 @@ export class UserControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'delete',
`${this.basePath}/redaction-gateway-v1/user`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
return this.httpClient.request<any>('delete', `${this.basePath}/user`, {
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
/**
* Gets all the users in realm with information of roles.
* None
* @param refreshCache refreshCache
* @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 getAllUsers(
refreshCache?: boolean,
observe?: 'body',
reportProgress?: boolean
): Observable<Array<User>>;
public getAllUsers(
refreshCache?: boolean,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<Array<User>>>;
public getAllUsers(
refreshCache?: boolean,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<Array<User>>>;
public getAllUsers(
refreshCache?: boolean,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (refreshCache !== undefined && refreshCache !== null) {
queryParameters = queryParameters.set('refreshCache', <any>refreshCache);
}
let headers = this.defaultHeaders;
// authentication (RED-OAUTH) required
if (this.configuration.accessToken) {
const accessToken =
typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
return this.httpClient.request<Array<User>>(
'get',
`${this.basePath}/redaction-gateway-v1/user`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
@ -357,16 +421,19 @@ export class UserControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<User>;
public getUserById(
userId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<User>>;
public getUserById(
userId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<User>>;
public getUserById(
userId: string,
observe: any = 'body',
@ -397,12 +464,9 @@ export class UserControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<User>(
'get',
`${this.basePath}/user/${encodeURIComponent(String(userId))}`,
`${this.basePath}/redaction-gateway-v1/user/${encodeURIComponent(String(userId))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -424,16 +488,19 @@ export class UserControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<Array<User>>;
public getUsers(
refreshCache?: boolean,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<Array<User>>>;
public getUsers(
refreshCache?: boolean,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<Array<User>>>;
public getUsers(
refreshCache?: boolean,
observe: any = 'body',
@ -463,48 +530,64 @@ export class UserControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<Array<User>>('get', `${this.basePath}/user/red`, {
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<Array<User>>(
'get',
`${this.basePath}/redaction-gateway-v1/user/red`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Gets all the users in realm with information of roles.
* Reset a user&#x27;s password
* None
* @param refreshCache refreshCache
* @param body resetPasswordRequest
* @param userId userId
* @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 getAllUsers(
refreshCache?: boolean,
public resetPassword(
body: ResetPasswordRequest,
userId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<Array<User>>;
public getAllUsers(
refreshCache?: boolean,
): Observable<any>;
public resetPassword(
body: ResetPasswordRequest,
userId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<Array<User>>>;
public getAllUsers(
refreshCache?: boolean,
): Observable<HttpResponse<any>>;
public resetPassword(
body: ResetPasswordRequest,
userId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<Array<User>>>;
public getAllUsers(
refreshCache?: boolean,
): Observable<HttpEvent<any>>;
public resetPassword(
body: ResetPasswordRequest,
userId: string,
observe: any = 'body',
reportProgress: boolean = false
): Observable<any> {
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (refreshCache !== undefined && refreshCache !== null) {
queryParameters = queryParameters.set('refreshCache', <any>refreshCache);
if (body === null || body === undefined) {
throw new Error(
'Required parameter body was null or undefined when calling resetPassword.'
);
}
if (userId === null || userId === undefined) {
throw new Error(
'Required parameter userId was null or undefined when calling resetPassword.'
);
}
let headers = this.defaultHeaders;
@ -519,7 +602,7 @@ export class UserControllerService {
}
// to determine the Accept header
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAccepts: string[] = [];
const httpHeaderAcceptSelected: string | undefined =
this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
@ -527,15 +610,26 @@ export class UserControllerService {
}
// to determine the Content-Type header
const consumes: string[] = [];
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<Array<User>>('get', `${this.basePath}/user`, {
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<any>(
'post',
`${this.basePath}/redaction-gateway-v1/user/${encodeURIComponent(
String(userId)
)}/reset-password`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
@ -545,22 +639,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 updateMyProfile(
public updateProfile(
body: UpdateMyProfileRequest,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public updateMyProfile(
public updateProfile(
body: UpdateMyProfileRequest,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public updateMyProfile(
public updateProfile(
body: UpdateMyProfileRequest,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public updateMyProfile(
public updateProfile(
body: UpdateMyProfileRequest,
observe: any = 'body',
reportProgress: boolean = false
@ -598,42 +695,49 @@ export class UserControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>('post', `${this.basePath}/user/my-profile`, {
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
return this.httpClient.request<any>(
'post',
`${this.basePath}/redaction-gateway-v1/user/my-profile`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
* Update a users profile. Invoked by admin.
* Update your own user-profile.
* None
* @param body updateProfileRequest
* @param userId userId
* @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 updateProfile1(
body: UpdateProfileRequest,
userId: string,
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public updateProfile(
public updateProfile1(
body: UpdateProfileRequest,
userId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public updateProfile(
public updateProfile1(
body: UpdateProfileRequest,
userId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public updateProfile(
public updateProfile1(
body: UpdateProfileRequest,
userId: string,
observe: any = 'body',
@ -680,7 +784,9 @@ export class UserControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/user/profile/${encodeURIComponent(String(userId))}`,
`${this.basePath}/redaction-gateway-v1/user/profile/${encodeURIComponent(
String(userId)
)}`,
{
body: body,
withCredentials: this.configuration.withCredentials,

View File

@ -20,9 +20,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class UserPreferenceControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -38,20 +38,6 @@ export class UserPreferenceControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Delete User Preferences by key.
* None
@ -64,16 +50,19 @@ export class UserPreferenceControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deletePreferences(
key: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deletePreferences(
key: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deletePreferences(
key: string,
observe: any = 'body',
@ -106,7 +95,7 @@ export class UserPreferenceControllerService {
return this.httpClient.request<any>(
'delete',
`${this.basePath}/attributes/${encodeURIComponent(String(key))}`,
`${this.basePath}/redaction-gateway-v1/attributes/${encodeURIComponent(String(key))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -126,14 +115,17 @@ export class UserPreferenceControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<{ [key: string]: Array<string> }>;
public getAllUserAttributes(
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<{ [key: string]: Array<string> }>>;
public getAllUserAttributes(
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<{ [key: string]: Array<string> }>>;
public getAllUserAttributes(
observe: any = 'body',
reportProgress: boolean = false
@ -159,7 +151,7 @@ export class UserPreferenceControllerService {
return this.httpClient.request<{ [key: string]: Array<string> }>(
'get',
`${this.basePath}/attributes`,
`${this.basePath}/redaction-gateway-v1/attributes`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -183,18 +175,21 @@ export class UserPreferenceControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public savePreferences(
body: Array<string>,
key: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public savePreferences(
body: Array<string>,
key: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public savePreferences(
body: Array<string>,
key: string,
@ -242,7 +237,7 @@ export class UserPreferenceControllerService {
return this.httpClient.request<any>(
'put',
`${this.basePath}/attributes/${encodeURIComponent(String(key))}`,
`${this.basePath}/redaction-gateway-v1/attributes/${encodeURIComponent(String(key))}`,
{
body: body,
withCredentials: this.configuration.withCredentials,

View File

@ -23,9 +23,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class VersionsControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -41,20 +41,6 @@ export class VersionsControllerService {
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* Retrieves current version for dossier dictionary.
* None
@ -69,18 +55,21 @@ export class VersionsControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<number>;
public getDossierDictionaryVersion(
dossierId: string,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<number>>;
public getDossierDictionaryVersion(
dossierId: string,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<number>>;
public getDossierDictionaryVersion(
dossierId: string,
dossierTemplateId: string,
@ -120,7 +109,7 @@ export class VersionsControllerService {
return this.httpClient.request<number>(
'get',
`${this.basePath}/version/dossier/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/version/dossier/${encodeURIComponent(
String(dossierTemplateId)
)}/${encodeURIComponent(String(dossierId))}`,
{
@ -144,16 +133,19 @@ export class VersionsControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<{ [key: string]: VersionsResponse }>;
public getVersions(
dossierTemplateId: Array<string>,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<{ [key: string]: VersionsResponse }>>;
public getVersions(
dossierTemplateId: Array<string>,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<{ [key: string]: VersionsResponse }>>;
public getVersions(
dossierTemplateId: Array<string>,
observe: any = 'body',
@ -193,7 +185,7 @@ export class VersionsControllerService {
return this.httpClient.request<{ [key: string]: VersionsResponse }>(
'get',
`${this.basePath}/version`,
`${this.basePath}/redaction-gateway-v1/version`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,

View File

@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
*/ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
@ -25,7 +25,7 @@ import { Configuration } from '../configuration';
export class ViewedPagesControllerService {
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '';
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -126,7 +126,7 @@ export class ViewedPagesControllerService {
return this.httpClient.request<any>(
'post',
`${this.basePath}/viewedPages/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/viewedPages/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -205,12 +205,9 @@ export class ViewedPagesControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<ViewedPages>(
'get',
`${this.basePath}/viewedPages/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/viewedPages/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}`,
{
@ -299,12 +296,9 @@ export class ViewedPagesControllerService {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>(
'delete',
`${this.basePath}/viewedPages/${encodeURIComponent(
`${this.basePath}/redaction-gateway-v1/viewedPages/${encodeURIComponent(
String(dossierId)
)}/${encodeURIComponent(String(fileId))}/${encodeURIComponent(String(page))}`,
{
@ -315,18 +309,4 @@ export class ViewedPagesControllerService {
}
);
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm(consumes: string[]): boolean {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
}

View File

@ -23,9 +23,9 @@ import { Configuration } from '../configuration';
@Injectable()
export class WatermarkControllerService {
protected basePath = '';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
protected basePath = '//red-staging.iqser.cloud/';
constructor(
protected httpClient: HttpClient,
@ -53,16 +53,19 @@ export class WatermarkControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<any>;
public deleteWatermark(
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<any>>;
public deleteWatermark(
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<any>>;
public deleteWatermark(
dossierTemplateId: string,
observe: any = 'body',
@ -95,7 +98,9 @@ export class WatermarkControllerService {
return this.httpClient.request<any>(
'delete',
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/redaction-gateway-v1/watermark/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -117,16 +122,19 @@ export class WatermarkControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<WatermarkModelRes>;
public getWatermark(
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<WatermarkModelRes>>;
public getWatermark(
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<WatermarkModelRes>>;
public getWatermark(
dossierTemplateId: string,
observe: any = 'body',
@ -159,7 +167,9 @@ export class WatermarkControllerService {
return this.httpClient.request<WatermarkModelRes>(
'get',
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/redaction-gateway-v1/watermark/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@ -183,18 +193,21 @@ export class WatermarkControllerService {
observe?: 'body',
reportProgress?: boolean
): Observable<WatermarkModelRes>;
public saveWatermark(
body: WatermarkModelReq,
dossierTemplateId: string,
observe?: 'response',
reportProgress?: boolean
): Observable<HttpResponse<WatermarkModelRes>>;
public saveWatermark(
body: WatermarkModelReq,
dossierTemplateId: string,
observe?: 'events',
reportProgress?: boolean
): Observable<HttpEvent<WatermarkModelRes>>;
public saveWatermark(
body: WatermarkModelReq,
dossierTemplateId: string,
@ -242,7 +255,9 @@ export class WatermarkControllerService {
return this.httpClient.request<WatermarkModelRes>(
'post',
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
`${this.basePath}/redaction-gateway-v1/watermark/${encodeURIComponent(
String(dossierTemplateId)
)}`,
{
body: body,
withCredentials: this.configuration.withCredentials,

View File

@ -26,6 +26,7 @@ export interface Dossier {
status?: Dossier.StatusEnum;
watermarkEnabled?: boolean;
}
export namespace Dossier {
export type DownloadFileTypesEnum =
| 'ANNOTATED'

View File

@ -17,6 +17,7 @@ export interface DossierAttributeConfig {
placeholder?: string;
type?: DossierAttributeConfig.TypeEnum;
}
export namespace DossierAttributeConfig {
export type TypeEnum = 'DATE' | 'IMAGE' | 'NUMBER' | 'TEXT';
export const TypeEnum = {

View File

@ -0,0 +1,16 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
export interface DossierAttributeReq {
dossierAttributeId?: string;
value?: string;
}

View File

@ -0,0 +1,16 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
export interface DossierAttributeRes {
dossierAttributeId?: string;
value?: string;
}

View File

@ -0,0 +1,16 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { DossierAttributeReq } from './dossierAttributeReq';
export interface DossierAttributesReq {
dossierAttributeList?: Array<DossierAttributeReq>;
}

View File

@ -0,0 +1,16 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { DossierAttributeRes } from './dossierAttributeRes';
export interface DossierAttributesRes {
dossierAttributeList?: Array<DossierAttributeRes>;
}

View File

@ -63,6 +63,7 @@ export interface DossierRequest {
*/
watermarkEnabled?: boolean;
}
export namespace DossierRequest {
export type DownloadFileTypesEnum =
| 'ANNOTATED'

View File

@ -56,6 +56,7 @@ export interface DossierTemplateModel {
*/
validTo?: string;
}
export namespace DossierTemplateModel {
export type DownloadFileTypesEnum =
| 'ANNOTATED'

View File

@ -16,6 +16,7 @@ export interface DownloadDetails {
reportTemplateIds?: Array<string>;
reportTypes?: Array<DownloadDetails.ReportTypesEnum>;
}
export namespace DownloadDetails {
export type DownloadFileTypesEnum =
| 'ANNOTATED'

View File

@ -23,6 +23,7 @@ export interface DownloadStatus {
storageId?: string;
userId?: string;
}
export namespace DownloadStatus {
export type StatusEnum = 'FAILED' | 'GENERATING' | 'QUEUED' | 'READY';
export const StatusEnum = {

View File

@ -19,6 +19,7 @@ export interface FileAttributeConfig {
primaryAttribute?: boolean;
type?: FileAttributeConfig.TypeEnum;
}
export namespace FileAttributeConfig {
export type TypeEnum = 'DATE' | 'NUMBER' | 'TEXT';
export const TypeEnum = {

View File

@ -137,6 +137,7 @@ export interface FileStatus {
*/
uploader?: string;
}
export namespace FileStatus {
export type StatusEnum =
| 'APPROVED'
@ -155,7 +156,7 @@ export namespace FileStatus {
ERROR: 'ERROR' as StatusEnum,
EXCLUDED: 'EXCLUDED' as StatusEnum,
FULLREPROCESS: 'FULLREPROCESS' as StatusEnum,
OCR_PROCESSING: 'OCR_PROCESSING' as StatusEnum,
OCRPROCESSING: 'OCR_PROCESSING' as StatusEnum,
PROCESSING: 'PROCESSING' as StatusEnum,
REPROCESS: 'REPROCESS' as StatusEnum,
UNASSIGNED: 'UNASSIGNED' as StatusEnum,

View File

@ -0,0 +1,15 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
export interface GeneralConfigurationModel {
forgotPasswordFunctionEnabled?: boolean;
}

View File

@ -18,6 +18,7 @@ export interface IdRemoval {
status?: IdRemoval.StatusEnum;
user?: string;
}
export namespace IdRemoval {
export type StatusEnum = 'APPROVED' | 'DECLINED' | 'REQUESTED';
export const StatusEnum = {

View File

@ -0,0 +1,19 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
export interface ImageRecategorizationRequest {
annotationId?: string;
comment?: string;
legalBasis?: string;
redacted?: boolean;
type?: string;
}

View File

@ -18,6 +18,7 @@ export interface ManualForceRedaction {
status?: ManualForceRedaction.StatusEnum;
user?: string;
}
export namespace ManualForceRedaction {
export type StatusEnum = 'APPROVED' | 'DECLINED' | 'REQUESTED';
export const StatusEnum = {

View File

@ -0,0 +1,31 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
export interface ManualImageRecategorization {
id?: string;
legalBasis?: string;
processedDate?: string;
redacted?: boolean;
requestDate?: string;
status?: ManualImageRecategorization.StatusEnum;
type?: string;
user?: string;
}
export namespace ManualImageRecategorization {
export type StatusEnum = 'APPROVED' | 'DECLINED' | 'REQUESTED';
export const StatusEnum = {
APPROVED: 'APPROVED' as StatusEnum,
DECLINED: 'DECLINED' as StatusEnum,
REQUESTED: 'REQUESTED' as StatusEnum
};
}

View File

@ -25,6 +25,7 @@ export interface ManualRedactionEntry {
user?: string;
value?: string;
}
export namespace ManualRedactionEntry {
export type StatusEnum = 'APPROVED' | 'DECLINED' | 'REQUESTED';
export const StatusEnum = {

View File

@ -12,6 +12,7 @@
import { Comment } from './comment';
import { IdRemoval } from './idRemoval';
import { ManualForceRedaction } from './manualForceRedaction';
import { ManualImageRecategorization } from './manualImageRecategorization';
import { ManualRedactionEntry } from './manualRedactionEntry';
export interface ManualRedactions {
@ -19,4 +20,5 @@ export interface ManualRedactions {
entriesToAdd?: Array<ManualRedactionEntry>;
forceRedactions?: Array<ManualForceRedaction>;
idsToRemove?: Array<IdRemoval>;
imageRecategorization?: Array<ManualImageRecategorization>;
}

View File

@ -17,7 +17,11 @@ export * from './digitalSignatureViewModelReq';
export * from './digitalSignatureViewModelRes';
export * from './dossier';
export * from './dossierAttributeConfig';
export * from './dossierAttributeReq';
export * from './dossierAttributeRes';
export * from './dossierAttributesConfig';
export * from './dossierAttributesReq';
export * from './dossierAttributesRes';
export * from './dossierRequest';
export * from './dossierTemplateModel';
export * from './downloadDetails';
@ -30,14 +34,19 @@ export * from './fileAttributesConfig';
export * from './fileStatus';
export * from './fileUploadResult';
export * from './forceRedactionRequest';
export * from './generalConfigurationModel';
export * from './idRemoval';
export * from './imageRecategorizationRequest';
export * from './legalBasisMapping';
export * from './licenseReport';
export * from './licenseReportRequest';
export * from './manualAddResponse';
export * from './manualForceRedaction';
export * from './manualImageRecategorization';
export * from './manualRedactionEntry';
export * from './manualRedactions';
export * from './pageExclusionRequest';
export * from './pageRange';
export * from './point';
export * from './prepareDownloadRequest';
export * from './rectangle';
@ -49,6 +58,7 @@ export * from './removeDownloadRequest';
export * from './removeRedactionRequest';
export * from './reportData';
export * from './reportTemplate';
export * from './resetPasswordRequest';
export * from './rules';
export * from './sMTPConfigurationModel';
export * from './sectionGrid';

View File

@ -0,0 +1,16 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { PageRange } from './pageRange';
export interface PageExclusionRequest {
pageRanges?: Array<PageRange>;
}

View File

@ -0,0 +1,16 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
export interface PageRange {
endPage?: number;
startPage?: number;
}

View File

@ -18,6 +18,7 @@ export interface RedactionChangeLogEntry {
comments?: Array<Comment>;
dictionaryEntry?: boolean;
dossierDictionaryEntry?: boolean;
excluded?: boolean;
hint?: boolean;
id?: string;
legalBasis?: string;
@ -36,16 +37,18 @@ export interface RedactionChangeLogEntry {
type?: string;
value?: string;
}
export namespace RedactionChangeLogEntry {
export type ChangeTypeEnum = 'ADDED' | 'REMOVED';
export const ChangeTypeEnum = {
ADDED: 'ADDED' as ChangeTypeEnum,
REMOVED: 'REMOVED' as ChangeTypeEnum
};
export type ManualRedactionTypeEnum = 'ADD' | 'FORCE_REDACT' | 'REMOVE';
export type ManualRedactionTypeEnum = 'ADD' | 'FORCE_REDACT' | 'RECATEGORIZE' | 'REMOVE';
export const ManualRedactionTypeEnum = {
ADD: 'ADD' as ManualRedactionTypeEnum,
FORCEREDACT: 'FORCE_REDACT' as ManualRedactionTypeEnum,
RECATEGORIZE: 'RECATEGORIZE' as ManualRedactionTypeEnum,
REMOVE: 'REMOVE' as ManualRedactionTypeEnum
};
export type StatusEnum = 'APPROVED' | 'DECLINED' | 'REQUESTED';

View File

@ -18,6 +18,7 @@ export interface RedactionLogEntry {
dictionaryEntry?: boolean;
dossierDictionaryEntry?: boolean;
endOffset?: number;
excluded?: boolean;
hint?: boolean;
id?: string;
image?: boolean;
@ -27,6 +28,7 @@ export interface RedactionLogEntry {
matchedRule?: number;
positions?: Array<Rectangle>;
reason?: string;
recategorizationType?: string;
recommendation?: boolean;
redacted?: boolean;
section?: string;
@ -38,11 +40,13 @@ export interface RedactionLogEntry {
type?: string;
value?: string;
}
export namespace RedactionLogEntry {
export type ManualRedactionTypeEnum = 'ADD' | 'FORCE_REDACT' | 'REMOVE';
export type ManualRedactionTypeEnum = 'ADD' | 'FORCE_REDACT' | 'RECATEGORIZE' | 'REMOVE';
export const ManualRedactionTypeEnum = {
ADD: 'ADD' as ManualRedactionTypeEnum,
FORCEREDACT: 'FORCE_REDACT' as ManualRedactionTypeEnum,
RECATEGORIZE: 'RECATEGORIZE' as ManualRedactionTypeEnum,
REMOVE: 'REMOVE' as ManualRedactionTypeEnum
};
export type StatusEnum = 'APPROVED' | 'DECLINED' | 'REQUESTED';

View File

@ -20,6 +20,7 @@ export interface ReportData {
numberOfAnalyzedPages?: number;
status?: ReportData.StatusEnum;
}
export namespace ReportData {
export type StatusEnum =
| 'APPROVED'
@ -40,7 +41,7 @@ export namespace ReportData {
ERROR: 'ERROR' as StatusEnum,
EXCLUDED: 'EXCLUDED' as StatusEnum,
FULLREPROCESS: 'FULLREPROCESS' as StatusEnum,
OCR_PROCESSING: 'OCR_PROCESSING' as StatusEnum,
OCRPROCESSING: 'OCR_PROCESSING' as StatusEnum,
PROCESSING: 'PROCESSING' as StatusEnum,
REPROCESS: 'REPROCESS' as StatusEnum,
UNASSIGNED: 'UNASSIGNED' as StatusEnum,

View File

@ -0,0 +1,16 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
export interface ResetPasswordRequest {
password?: string;
temporary?: boolean;
}

View File

@ -18,6 +18,7 @@ export interface WatermarkModelReq {
orientation?: WatermarkModelReq.OrientationEnum;
text?: string;
}
export namespace WatermarkModelReq {
export type OrientationEnum = 'DIAGONAL' | 'HORIZONTAL' | 'VERTICAL';
export const OrientationEnum = {

View File

@ -18,6 +18,7 @@ export interface WatermarkModelRes {
orientation?: WatermarkModelRes.OrientationEnum;
text?: string;
}
export namespace WatermarkModelRes {
export type OrientationEnum = 'DIAGONAL' | 'HORIZONTAL' | 'VERTICAL';
export const OrientationEnum = {

View File

@ -51,7 +51,7 @@
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"@nrwl/angular": "12.3.6",
"@pdftron/webviewer": "7.3.2",
"@pdftron/webviewer": "7.3.3",
"@swimlane/ngx-charts": "^17.0.1",
"file-saver": "^2.0.5",
"jwt-decode": "^3.1.2",

View File

@ -2873,10 +2873,10 @@
yargs "15.4.1"
yargs-parser "20.0.0"
"@pdftron/webviewer@7.3.2":
version "7.3.2"
resolved "https://registry.yarnpkg.com/@pdftron/webviewer/-/webviewer-7.3.2.tgz#58c24fa6318268b7962fb51bbf6486bac24c7d64"
integrity sha512-GJJ3ErKn2gZKXcjFBg46d4u0X+60daiVu04i+AoYbA7xyocCpGIhW/cg0dZmTq0c1ITfHXvn5uG42UN3BBFWiA==
"@pdftron/webviewer@7.3.3":
version "7.3.3"
resolved "https://registry.yarnpkg.com/@pdftron/webviewer/-/webviewer-7.3.3.tgz#e5ada58c4c4a4101a095507673ba2278042942ef"
integrity sha512-cTJf9pXlN9tilliO8NgKw6vn1PPXSHKLOrUS7j4f+0sz2BJDVwO2rlI4BJBQ5BT2qIru1dg2GxYUyeXOqNyi9Q==
"@rollup/plugin-commonjs@^19.0.0":
version "19.0.0"