Merge branch 'master' into VM/NotificationsPreferences
This commit is contained in:
commit
a5454b062e
@ -7,7 +7,7 @@ To re-generate http rune swagger
|
|||||||
YOu need swagger-codegen installed `brew install swagger-codegen`
|
YOu need swagger-codegen installed `brew install swagger-codegen`
|
||||||
|
|
||||||
```
|
```
|
||||||
BASE=https://red-staging.iqser.cloud/
|
BASE=https://dev-06.iqser.cloud/
|
||||||
URL="$BASE"redaction-gateway-v1/v2/api-docs?group=redaction-gateway-v1
|
URL="$BASE"redaction-gateway-v1/v2/api-docs?group=redaction-gateway-v1
|
||||||
rm -Rf /tmp/swagger
|
rm -Rf /tmp/swagger
|
||||||
mkdir -p /tmp/swagger
|
mkdir -p /tmp/swagger
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export class NotificationsComponent {
|
|||||||
|
|
||||||
async markRead(notification: Notification, $event, isRead: boolean = true) {
|
async markRead(notification: Notification, $event, isRead: boolean = true) {
|
||||||
$event.stopPropagation();
|
$event.stopPropagation();
|
||||||
const ids = [notification.notificationId];
|
const ids = [`${notification.id}`];
|
||||||
await this._notificationControllerService.toggleNotificationRead(ids, isRead).toPromise();
|
await this._notificationControllerService.toggleNotificationRead(ids, isRead).toPromise();
|
||||||
if (isRead) {
|
if (isRead) {
|
||||||
notification.readDate = moment().format('YYYY-MM-DDTHH:mm:ss Z');
|
notification.readDate = moment().format('YYYY-MM-DDTHH:mm:ss Z');
|
||||||
|
|||||||
@ -2,12 +2,12 @@ import { IAudit } from '@redaction/red-ui-http';
|
|||||||
import { IListable } from '@iqser/common-ui';
|
import { IListable } from '@iqser/common-ui';
|
||||||
|
|
||||||
export class Audit implements IAudit, IListable {
|
export class Audit implements IAudit, IListable {
|
||||||
|
readonly recordId?: number;
|
||||||
readonly category?: string;
|
readonly category?: string;
|
||||||
readonly details?: unknown;
|
readonly details?: unknown;
|
||||||
readonly message?: string;
|
readonly message?: string;
|
||||||
readonly objectId?: string;
|
readonly objectId?: string;
|
||||||
readonly recordDate?: string;
|
readonly recordDate?: string;
|
||||||
readonly recordId?: string;
|
|
||||||
readonly userId?: string;
|
readonly userId?: string;
|
||||||
|
|
||||||
constructor(audit: IAudit) {
|
constructor(audit: IAudit) {
|
||||||
|
|||||||
@ -56,7 +56,7 @@ export class AnnotationWrapper {
|
|||||||
textBefore?: string;
|
textBefore?: string;
|
||||||
|
|
||||||
isChangeLogEntry?: boolean;
|
isChangeLogEntry?: boolean;
|
||||||
changeLogType?: 'ADDED' | 'REMOVED';
|
changeLogType?: 'ADDED' | 'REMOVED' | 'CHANGED';
|
||||||
engines?: string[];
|
engines?: string[];
|
||||||
|
|
||||||
private _origin: RedactionLogEntryWrapper;
|
private _origin: RedactionLogEntryWrapper;
|
||||||
@ -204,7 +204,7 @@ export class AnnotationWrapper {
|
|||||||
annotationWrapper.changeLogType = redactionLogEntry.changeLogType;
|
annotationWrapper.changeLogType = redactionLogEntry.changeLogType;
|
||||||
annotationWrapper.redaction = redactionLogEntry.redacted;
|
annotationWrapper.redaction = redactionLogEntry.redacted;
|
||||||
annotationWrapper.hint = redactionLogEntry.hint;
|
annotationWrapper.hint = redactionLogEntry.hint;
|
||||||
annotationWrapper.typeValue = redactionLogEntry.type;
|
annotationWrapper.typeValue = redactionLogEntry.typeId;
|
||||||
annotationWrapper.recategorizationType = redactionLogEntry.recategorizationType;
|
annotationWrapper.recategorizationType = redactionLogEntry.recategorizationType;
|
||||||
annotationWrapper.value = redactionLogEntry.value;
|
annotationWrapper.value = redactionLogEntry.value;
|
||||||
annotationWrapper.firstTopLeftPoint = redactionLogEntry.positions[0]?.topLeft;
|
annotationWrapper.firstTopLeftPoint = redactionLogEntry.positions[0]?.topLeft;
|
||||||
@ -231,7 +231,7 @@ export class AnnotationWrapper {
|
|||||||
|
|
||||||
private static _handleRecommendations(annotationWrapper: AnnotationWrapper, redactionLogEntry: RedactionLogEntryWrapper) {
|
private static _handleRecommendations(annotationWrapper: AnnotationWrapper, redactionLogEntry: RedactionLogEntryWrapper) {
|
||||||
if (annotationWrapper.superType === 'recommendation') {
|
if (annotationWrapper.superType === 'recommendation') {
|
||||||
annotationWrapper.recommendationType = redactionLogEntry.type.substr('recommendation_'.length);
|
annotationWrapper.recommendationType = redactionLogEntry.typeId.substr('recommendation_'.length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,7 +277,7 @@ export class AnnotationWrapper {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (redactionLogEntryWrapper.type?.toLowerCase() === 'manual') {
|
if (redactionLogEntryWrapper.typeId?.startsWith('manual')) {
|
||||||
if (redactionLogEntryWrapper.status === 'REQUESTED') {
|
if (redactionLogEntryWrapper.status === 'REQUESTED') {
|
||||||
annotationWrapper.superType = 'suggestion-add';
|
annotationWrapper.superType = 'suggestion-add';
|
||||||
return;
|
return;
|
||||||
@ -408,7 +408,7 @@ export class AnnotationWrapper {
|
|||||||
|
|
||||||
private static _getShortContent(annotationWrapper: AnnotationWrapper, entry: RedactionLogEntryWrapper) {
|
private static _getShortContent(annotationWrapper: AnnotationWrapper, entry: RedactionLogEntryWrapper) {
|
||||||
if (annotationWrapper.legalBasis) {
|
if (annotationWrapper.legalBasis) {
|
||||||
const lb = entry.legalBasisMapping?.find(lbm => lbm.reason.toLowerCase().includes(annotationWrapper.legalBasis.toLowerCase()));
|
const lb = entry.legalBasisList?.find(lbm => lbm.reason.toLowerCase().includes(annotationWrapper.legalBasis.toLowerCase()));
|
||||||
if (lb) {
|
if (lb) {
|
||||||
return lb.name;
|
return lb.name;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
import { RedactionChangeLog, RedactionLog, ViewedPages } from '@redaction/red-ui-http';
|
import { RedactionLog, RedactionLogEntry, ViewedPages } from '@redaction/red-ui-http';
|
||||||
import { File } from './file';
|
import { File } from './file';
|
||||||
import { AnnotationWrapper } from './annotation.wrapper';
|
import { AnnotationWrapper } from './annotation.wrapper';
|
||||||
import { RedactionLogEntryWrapper } from './redaction-log-entry.wrapper';
|
import { RedactionLogEntryWrapper } from './redaction-log-entry.wrapper';
|
||||||
import { ViewMode } from './view-mode';
|
import { ViewMode } from './view-mode';
|
||||||
|
import * as moment from 'moment';
|
||||||
import { TypeValue } from './type-value';
|
import { TypeValue } from './type-value';
|
||||||
import { User } from '@models/user';
|
import { User } from '@models/user';
|
||||||
|
|
||||||
@ -16,7 +17,6 @@ export class FileDataModel {
|
|||||||
public file: File,
|
public file: File,
|
||||||
public fileData: Blob,
|
public fileData: Blob,
|
||||||
public redactionLog: RedactionLog,
|
public redactionLog: RedactionLog,
|
||||||
public redactionChangeLog: RedactionChangeLog,
|
|
||||||
public viewedPages?: ViewedPages
|
public viewedPages?: ViewedPages
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
@ -54,42 +54,21 @@ export class FileDataModel {
|
|||||||
private _convertData(): RedactionLogEntryWrapper[] {
|
private _convertData(): RedactionLogEntryWrapper[] {
|
||||||
let result: RedactionLogEntryWrapper[] = [];
|
let result: RedactionLogEntryWrapper[] = [];
|
||||||
|
|
||||||
this.redactionChangeLog?.redactionLogEntry?.forEach(changeLogEntry => {
|
|
||||||
if (changeLogEntry.changeType === 'REMOVED') {
|
|
||||||
// Fix backend issue where some annotations are both added and removed
|
|
||||||
const sameEntryExistsAsAdd = !!this.redactionChangeLog.redactionLogEntry.find(
|
|
||||||
rle => rle.id === changeLogEntry.id && rle.changeType === 'ADDED'
|
|
||||||
);
|
|
||||||
if (sameEntryExistsAsAdd) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const redactionLogEntryWrapper: RedactionLogEntryWrapper = {};
|
|
||||||
|
|
||||||
Object.assign(redactionLogEntryWrapper, changeLogEntry);
|
|
||||||
|
|
||||||
redactionLogEntryWrapper.isChangeLogEntry = true;
|
|
||||||
redactionLogEntryWrapper.changeLogType = changeLogEntry.changeType;
|
|
||||||
redactionLogEntryWrapper.id = 'changed-log-removed-' + redactionLogEntryWrapper.id;
|
|
||||||
|
|
||||||
result.push(redactionLogEntryWrapper);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const reasonAnnotationIds: { [key: string]: RedactionLogEntryWrapper[] } = {};
|
const reasonAnnotationIds: { [key: string]: RedactionLogEntryWrapper[] } = {};
|
||||||
this.redactionLog.redactionLogEntry?.forEach(redactionLogEntry => {
|
this.redactionLog.redactionLogEntry?.forEach(redactionLogEntry => {
|
||||||
const existingChangeLogEntry = this.redactionChangeLog?.redactionLogEntry?.find(rle => rle.id === redactionLogEntry.id);
|
|
||||||
|
|
||||||
// copy the redactionLog Entry
|
// copy the redactionLog Entry
|
||||||
const redactionLogEntryWrapper: RedactionLogEntryWrapper = {};
|
const redactionLogEntryWrapper: RedactionLogEntryWrapper = {};
|
||||||
Object.assign(redactionLogEntryWrapper, redactionLogEntry);
|
Object.assign(redactionLogEntryWrapper, redactionLogEntry);
|
||||||
redactionLogEntryWrapper.isChangeLogEntry = !!existingChangeLogEntry;
|
|
||||||
|
redactionLogEntryWrapper.isChangeLogEntry = this._isChangeLogEntry(redactionLogEntry);
|
||||||
|
// redactionLogEntryWrapper.changeLogType = changeLogEntry.changeType;
|
||||||
|
// redactionLogEntryWrapper.isChangeLogEntry = !!existingChangeLogEntry;
|
||||||
redactionLogEntryWrapper.changeLogType = 'ADDED';
|
redactionLogEntryWrapper.changeLogType = 'ADDED';
|
||||||
|
|
||||||
if (
|
if (
|
||||||
redactionLogEntryWrapper.status === 'DECLINED' &&
|
redactionLogEntryWrapper.status === 'DECLINED' &&
|
||||||
redactionLogEntryWrapper.manualRedactionType === 'ADD' &&
|
redactionLogEntryWrapper.manualRedactionType === 'ADD' &&
|
||||||
redactionLogEntryWrapper.type === 'false_positive'
|
redactionLogEntryWrapper.typeId.startsWith('false_positive')
|
||||||
) {
|
) {
|
||||||
// ignore these
|
// ignore these
|
||||||
return;
|
return;
|
||||||
@ -120,9 +99,25 @@ export class FileDataModel {
|
|||||||
});
|
});
|
||||||
|
|
||||||
result.forEach(redactionLogEntry => {
|
result.forEach(redactionLogEntry => {
|
||||||
redactionLogEntry.legalBasisMapping = this.redactionLog.legalBasis;
|
redactionLogEntry.legalBasisList = this.redactionLog.legalBasis;
|
||||||
});
|
});
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get hasChangeLog() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private _isChangeLogEntry(redactionLogEntry: RedactionLogEntry) {
|
||||||
|
redactionLogEntry.changes.sort((a, b) => moment(a.dateTime).date() - moment(b.dateTime).date());
|
||||||
|
//
|
||||||
|
// relevantChanges = redactionLogEntry.changes.filter(moment(change.dateTime).date() > );
|
||||||
|
//
|
||||||
|
// lastSeenState = redactionLogEntry.changes.indexOf(relevantChanges[0]-1);
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// if(redactionLogEntry.)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,6 +11,6 @@ export class ManualAnnotationResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get dictionary() {
|
get dictionary() {
|
||||||
return this.manualRedactionEntryWrapper.manualRedactionEntry.type;
|
return this.manualRedactionEntryWrapper.manualRedactionEntry.typeId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,21 @@
|
|||||||
import { Comment, LegalBasisMapping, Rectangle } from '@redaction/red-ui-http';
|
import { Change, Comment, LegalBasis, Rectangle } from '@redaction/red-ui-http';
|
||||||
|
|
||||||
export interface RedactionLogEntryWrapper {
|
export interface RedactionLogEntryWrapper {
|
||||||
|
changes?: Array<Change>;
|
||||||
|
dossierDictionaryEntry?: boolean;
|
||||||
|
endOffset?: number;
|
||||||
|
excluded?: boolean;
|
||||||
|
imageHasTransparency?: boolean;
|
||||||
|
manualRedactionUserId?: string;
|
||||||
|
reference?: Array<string>;
|
||||||
|
startOffset?: number;
|
||||||
|
typeId?: string;
|
||||||
|
|
||||||
color?: Array<number>;
|
color?: Array<number>;
|
||||||
dictionaryEntry?: boolean;
|
dictionaryEntry?: boolean;
|
||||||
hint?: boolean;
|
hint?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
legalBasis?: string;
|
legalBasis?: string;
|
||||||
legalBasisMapping?: Array<LegalBasisMapping>;
|
|
||||||
manual?: boolean;
|
manual?: boolean;
|
||||||
manualRedactionType?: 'ADD' | 'REMOVE' | 'UNDO' | 'LEGAL_BASIS_CHANGE' | 'FORCE_REDACT' | 'RECATEGORIZE';
|
manualRedactionType?: 'ADD' | 'REMOVE' | 'UNDO' | 'LEGAL_BASIS_CHANGE' | 'FORCE_REDACT' | 'RECATEGORIZE';
|
||||||
matchedRule?: number;
|
matchedRule?: number;
|
||||||
@ -18,9 +27,9 @@ export interface RedactionLogEntryWrapper {
|
|||||||
status?: 'REQUESTED' | 'APPROVED' | 'DECLINED';
|
status?: 'REQUESTED' | 'APPROVED' | 'DECLINED';
|
||||||
textAfter?: string;
|
textAfter?: string;
|
||||||
textBefore?: string;
|
textBefore?: string;
|
||||||
type?: string;
|
|
||||||
value?: string;
|
value?: string;
|
||||||
image?: boolean;
|
image?: boolean;
|
||||||
|
legalBasisList?: Array<LegalBasis>;
|
||||||
|
|
||||||
recommendation?: boolean;
|
recommendation?: boolean;
|
||||||
recommendationAnnotationId?: string;
|
recommendationAnnotationId?: string;
|
||||||
@ -31,7 +40,7 @@ export interface RedactionLogEntryWrapper {
|
|||||||
comments?: Comment[];
|
comments?: Comment[];
|
||||||
|
|
||||||
isChangeLogEntry?: boolean;
|
isChangeLogEntry?: boolean;
|
||||||
changeLogType?: 'ADDED' | 'REMOVED';
|
changeLogType?: 'ADDED' | 'REMOVED' | 'CHANGED';
|
||||||
|
|
||||||
recategorizationType?: string;
|
recategorizationType?: string;
|
||||||
legalBasisChangeValue?: string;
|
legalBasisChangeValue?: string;
|
||||||
|
|||||||
@ -62,6 +62,7 @@ export class DossierTemplateActionsComponent implements OnInit {
|
|||||||
await this._appStateService.loadAllDossierTemplates();
|
await this._appStateService.loadAllDossierTemplates();
|
||||||
await this._appStateService.loadDictionaryData();
|
await this._appStateService.loadDictionaryData();
|
||||||
await this._router.navigate(['main', 'admin']);
|
await this._router.navigate(['main', 'admin']);
|
||||||
|
this._loadingService.stop();
|
||||||
this.loadDossierTemplatesData?.emit();
|
this.loadDossierTemplatesData?.emit();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -95,7 +95,3 @@
|
|||||||
|
|
||||||
<iqser-circle-button class="dialog-close" icon="iqser:close" mat-dialog-close></iqser-circle-button>
|
<iqser-circle-button class="dialog-close" icon="iqser:close" mat-dialog-close></iqser-circle-button>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<ng-template #reportTemplateOptionTemplate let-option="option">
|
|
||||||
{{ option.fileName }}
|
|
||||||
</ng-template>
|
|
||||||
|
|||||||
@ -1,25 +1,19 @@
|
|||||||
import { Component, Inject, OnInit } from '@angular/core';
|
import {Component, Inject} from '@angular/core';
|
||||||
import { AppStateService } from '@state/app-state.service';
|
import {AppStateService} from '@state/app-state.service';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
import { Moment } from 'moment';
|
import {Moment} from 'moment';
|
||||||
import {
|
import {DossierTemplateControllerService, DownloadFileType, IDossierTemplate} from '@redaction/red-ui-http';
|
||||||
DossierTemplateControllerService,
|
import {applyIntervalConstraints} from '@utils/date-inputs-utils';
|
||||||
DownloadFileType,
|
import {downloadTypesTranslations} from '../../../../translations/download-types-translations';
|
||||||
IDossierTemplate,
|
|
||||||
ReportTemplate,
|
|
||||||
ReportTemplateControllerService
|
|
||||||
} from '@redaction/red-ui-http';
|
|
||||||
import { applyIntervalConstraints } from '@utils/date-inputs-utils';
|
|
||||||
import { downloadTypesTranslations } from '../../../../translations/download-types-translations';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'redaction-add-edit-dossier-template-dialog',
|
selector: 'redaction-add-edit-dossier-template-dialog',
|
||||||
templateUrl: './add-edit-dossier-template-dialog.component.html',
|
templateUrl: './add-edit-dossier-template-dialog.component.html',
|
||||||
styleUrls: ['./add-edit-dossier-template-dialog.component.scss']
|
styleUrls: ['./add-edit-dossier-template-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class AddEditDossierTemplateDialogComponent implements OnInit {
|
export class AddEditDossierTemplateDialogComponent {
|
||||||
dossierTemplateForm: FormGroup;
|
dossierTemplateForm: FormGroup;
|
||||||
hasValidFrom: boolean;
|
hasValidFrom: boolean;
|
||||||
hasValidTo: boolean;
|
hasValidTo: boolean;
|
||||||
@ -28,7 +22,6 @@ export class AddEditDossierTemplateDialogComponent implements OnInit {
|
|||||||
key: type,
|
key: type,
|
||||||
label: downloadTypesTranslations[type]
|
label: downloadTypesTranslations[type]
|
||||||
}));
|
}));
|
||||||
availableReportTypes: ReportTemplate[] = [];
|
|
||||||
|
|
||||||
private _previousValidFrom: Moment;
|
private _previousValidFrom: Moment;
|
||||||
private _previousValidTo: Moment;
|
private _previousValidTo: Moment;
|
||||||
@ -37,7 +30,6 @@ export class AddEditDossierTemplateDialogComponent implements OnInit {
|
|||||||
private readonly _appStateService: AppStateService,
|
private readonly _appStateService: AppStateService,
|
||||||
private readonly _formBuilder: FormBuilder,
|
private readonly _formBuilder: FormBuilder,
|
||||||
private readonly _dossierTemplateController: DossierTemplateControllerService,
|
private readonly _dossierTemplateController: DossierTemplateControllerService,
|
||||||
private readonly _reportTemplateController: ReportTemplateControllerService,
|
|
||||||
public dialogRef: MatDialogRef<AddEditDossierTemplateDialogComponent>,
|
public dialogRef: MatDialogRef<AddEditDossierTemplateDialogComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) readonly dossierTemplate: IDossierTemplate
|
@Inject(MAT_DIALOG_DATA) readonly dossierTemplate: IDossierTemplate
|
||||||
) {
|
) {
|
||||||
@ -98,13 +90,6 @@ export class AddEditDossierTemplateDialogComponent implements OnInit {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
reportTemplateValueMapper = (reportTemplate: ReportTemplate) => reportTemplate.templateId;
|
|
||||||
|
|
||||||
async ngOnInit() {
|
|
||||||
this.availableReportTypes =
|
|
||||||
(await this._reportTemplateController.getAvailableReportTemplates(this.dossierTemplate?.dossierTemplateId).toPromise()) || [];
|
|
||||||
}
|
|
||||||
|
|
||||||
async saveDossierTemplate() {
|
async saveDossierTemplate() {
|
||||||
const dossierTemplate = {
|
const dossierTemplate = {
|
||||||
dossierTemplateId: this.dossierTemplate?.dossierTemplateId,
|
dossierTemplateId: this.dossierTemplate?.dossierTemplateId,
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { Component, Inject } from '@angular/core';
|
|||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||||
import { UserService } from '@services/user.service';
|
import { UserService } from '@services/user.service';
|
||||||
import { SMTPConfigurationModel } from '@redaction/red-ui-http';
|
import { SMTPConfiguration } from '@redaction/red-ui-http';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'redaction-smtp-auth-dialog',
|
selector: 'redaction-smtp-auth-dialog',
|
||||||
@ -16,7 +16,7 @@ export class SmtpAuthDialogComponent {
|
|||||||
private readonly _formBuilder: FormBuilder,
|
private readonly _formBuilder: FormBuilder,
|
||||||
private readonly _userService: UserService,
|
private readonly _userService: UserService,
|
||||||
public dialogRef: MatDialogRef<SmtpAuthDialogComponent>,
|
public dialogRef: MatDialogRef<SmtpAuthDialogComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: SMTPConfigurationModel
|
@Inject(MAT_DIALOG_DATA) public data: SMTPConfiguration
|
||||||
) {
|
) {
|
||||||
this.authForm = this._formBuilder.group({
|
this.authForm = this._formBuilder.group({
|
||||||
user: [data?.user || this._userService.currentUser.email, [Validators.required]],
|
user: [data?.user || this._userService.currentUser.email, [Validators.required]],
|
||||||
|
|||||||
@ -117,7 +117,6 @@ export class AuditScreenComponent extends ListingComponent<Audit> implements OnD
|
|||||||
}
|
}
|
||||||
const logsRequestBody: AuditSearchRequest = {
|
const logsRequestBody: AuditSearchRequest = {
|
||||||
pageSize: PAGE_SIZE,
|
pageSize: PAGE_SIZE,
|
||||||
withTotalHits: true,
|
|
||||||
page: page,
|
page: page,
|
||||||
category: category === this.ALL_CATEGORIES ? undefined : category,
|
category: category === this.ALL_CATEGORIES ? undefined : category,
|
||||||
userId: userId === this.ALL_USERS ? undefined : userId,
|
userId: userId === this.ALL_USERS ? undefined : userId,
|
||||||
|
|||||||
@ -90,14 +90,16 @@ export class DefaultColorsScreenComponent extends ListingComponent<ListItem> imp
|
|||||||
|
|
||||||
private async _loadColors() {
|
private async _loadColors() {
|
||||||
this._loadingService.start();
|
this._loadingService.start();
|
||||||
const data = await this._dictionaryService.getColors(this._appStateService.activeDossierTemplateId).toPromise();
|
const data = await this._appStateService.loadColors(this._appStateService.activeDossierTemplateId).toPromise();
|
||||||
this._colorsObj = data;
|
this._colorsObj = data;
|
||||||
const entities: ListItem[] = Object.keys(data).map(key => ({
|
const entities = Object.keys(data)
|
||||||
id: key,
|
.map(key => ({
|
||||||
key,
|
id: key,
|
||||||
searchKey: key,
|
key,
|
||||||
value: data[key]
|
searchKey: key,
|
||||||
}));
|
value: data[key]
|
||||||
|
}))
|
||||||
|
.filter(entry => entry.id !== 'dossierTemplateId');
|
||||||
this.entitiesService.setEntities(entities);
|
this.entitiesService.setEntities(entities);
|
||||||
this._loadingService.stop();
|
this._loadingService.stop();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,8 +4,8 @@ import { AdminDialogService } from '../../services/admin-dialog.service';
|
|||||||
import {
|
import {
|
||||||
GeneralConfigurationModel,
|
GeneralConfigurationModel,
|
||||||
GeneralSettingsControllerService,
|
GeneralSettingsControllerService,
|
||||||
SmtpConfigurationControllerService,
|
SMTPConfiguration,
|
||||||
SMTPConfigurationModel
|
SmtpConfigurationControllerService
|
||||||
} from '@redaction/red-ui-http';
|
} from '@redaction/red-ui-http';
|
||||||
import { ConfigService } from '@services/config.service';
|
import { ConfigService } from '@services/config.service';
|
||||||
import { AutoUnsubscribe, IconButtonTypes, LoadingService, Toaster } from '@iqser/common-ui';
|
import { AutoUnsubscribe, IconButtonTypes, LoadingService, Toaster } from '@iqser/common-ui';
|
||||||
@ -25,7 +25,7 @@ export class GeneralConfigScreenComponent extends AutoUnsubscribe implements OnI
|
|||||||
readonly smtpForm: FormGroup;
|
readonly smtpForm: FormGroup;
|
||||||
|
|
||||||
private _initialGeneralConfiguration: GeneralConfigurationModel;
|
private _initialGeneralConfiguration: GeneralConfigurationModel;
|
||||||
private _initialSMTPConfiguration: SMTPConfigurationModel;
|
private _initialSMTPConfiguration: SMTPConfiguration;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private readonly _toaster: Toaster,
|
private readonly _toaster: Toaster,
|
||||||
|
|||||||
@ -6,19 +6,19 @@ import { environment } from '@environments/environment';
|
|||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import { Debounce, IconButtonTypes, LoadingService, Toaster } from '@iqser/common-ui';
|
import { Debounce, IconButtonTypes, LoadingService, Toaster } from '@iqser/common-ui';
|
||||||
import { WatermarkControllerService, WatermarkModelRes } from '@redaction/red-ui-http';
|
import { WatermarkControllerService, WatermarkModel } from '@redaction/red-ui-http';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { BASE_HREF } from '../../../../tokens';
|
import { BASE_HREF } from '../../../../tokens';
|
||||||
import { stampPDFPage } from '@utils/page-stamper';
|
import { stampPDFPage } from '@utils/page-stamper';
|
||||||
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
||||||
|
|
||||||
export const DEFAULT_WATERMARK: WatermarkModelRes = {
|
export const DEFAULT_WATERMARK: WatermarkModel = {
|
||||||
text: null,
|
text: null,
|
||||||
hexColor: '#dd4d50',
|
hexColor: '#dd4d50',
|
||||||
opacity: 70,
|
opacity: 70,
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
fontType: 'sans-serif',
|
fontType: 'sans-serif',
|
||||||
orientation: WatermarkModelRes.OrientationEnum.DIAGONAL
|
orientation: WatermarkModel.OrientationEnum.DIAGONAL
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -30,7 +30,7 @@ export class WatermarkScreenComponent implements OnInit {
|
|||||||
readonly iconButtonTypes = IconButtonTypes;
|
readonly iconButtonTypes = IconButtonTypes;
|
||||||
configForm: FormGroup;
|
configForm: FormGroup;
|
||||||
private _instance: WebViewerInstance;
|
private _instance: WebViewerInstance;
|
||||||
private _watermark: WatermarkModelRes = {};
|
private _watermark: WatermarkModel = {};
|
||||||
@ViewChild('viewer', { static: true })
|
@ViewChild('viewer', { static: true })
|
||||||
private _viewer: ElementRef;
|
private _viewer: ElementRef;
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ export class WatermarkScreenComponent implements OnInit {
|
|||||||
const text = this.configForm.get('text').value || '';
|
const text = this.configForm.get('text').value || '';
|
||||||
const fontSize = this.configForm.get('fontSize').value;
|
const fontSize = this.configForm.get('fontSize').value;
|
||||||
const fontType = this.configForm.get('fontType').value;
|
const fontType = this.configForm.get('fontType').value;
|
||||||
const orientation: WatermarkModelRes.OrientationEnum = this.configForm.get('orientation').value;
|
const orientation: WatermarkModel.OrientationEnum = this.configForm.get('orientation').value;
|
||||||
const opacity = this.configForm.get('opacity').value;
|
const opacity = this.configForm.get('opacity').value;
|
||||||
const color = this.configForm.get('hexColor').value;
|
const color = this.configForm.get('hexColor').value;
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ export class CommentsComponent {
|
|||||||
.then(commentResponse => {
|
.then(commentResponse => {
|
||||||
this.annotation.comments.push({
|
this.annotation.comments.push({
|
||||||
text: value,
|
text: value,
|
||||||
id: commentResponse.commentId,
|
id: parseInt(commentResponse.commentId, 10),
|
||||||
user: this._userService.currentUser.id
|
user: this._userService.currentUser.id
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -43,7 +43,7 @@ export class CommentsComponent {
|
|||||||
|
|
||||||
deleteComment(comment: Comment): void {
|
deleteComment(comment: Comment): void {
|
||||||
this._manualAnnotationService
|
this._manualAnnotationService
|
||||||
.deleteComment(comment.id, this.annotation.id)
|
.deleteComment(`${comment.id}`, this.annotation.id)
|
||||||
.toPromise()
|
.toPromise()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.annotation.comments.splice(this.annotation.comments.indexOf(comment), 1);
|
this.annotation.comments.splice(this.annotation.comments.indexOf(comment), 1);
|
||||||
|
|||||||
@ -82,7 +82,7 @@ export class DossierDetailsComponent implements OnInit {
|
|||||||
|
|
||||||
async assignOwner(user: User | string) {
|
async assignOwner(user: User | string) {
|
||||||
this.owner = typeof user === 'string' ? this._userService.getRedUserById(user) : user;
|
this.owner = typeof user === 'string' ? this._userService.getRedUserById(user) : user;
|
||||||
const dw = { ...this.appStateService.activeDossier, ownerId: this.owner.id };
|
const dw = { ...this.appStateService.activeDossier, id: this.appStateService.activeDossierId, ownerId: this.owner.id };
|
||||||
await this.appStateService.createOrUpdateDossier(dw);
|
await this.appStateService.createOrUpdateDossier(dw);
|
||||||
|
|
||||||
const ownerName = this._userService.getNameForId(this.owner.id);
|
const ownerName = this._userService.getNameForId(this.owner.id);
|
||||||
|
|||||||
@ -30,7 +30,7 @@ export class PageIndicatorComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
get read() {
|
get read() {
|
||||||
return this.viewedPages?.pages?.indexOf(this.number) >= 0;
|
return this.viewedPages?.pages?.findIndex(p => p.page === this.number) >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
@ -96,8 +96,8 @@ export class PageIndicatorComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
private _markPageRead() {
|
private _markPageRead() {
|
||||||
this._viewedPagesControllerService
|
this._viewedPagesControllerService
|
||||||
.addPage({ page: this.number }, this._appStateService.activeDossierId, this._appStateService.activeFileId)
|
.addPage({ page: this.number }, this._appStateService.activeDossierId, this._appStateService.activeFileId)
|
||||||
.subscribe(() => {
|
.subscribe(page => {
|
||||||
this.viewedPages?.pages?.push(this.number);
|
this.viewedPages?.pages?.push(page);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +105,10 @@ export class PageIndicatorComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
this._viewedPagesControllerService
|
this._viewedPagesControllerService
|
||||||
.removePage(this._appStateService.activeDossierId, this._appStateService.activeFileId, this.number)
|
.removePage(this._appStateService.activeDossierId, this._appStateService.activeFileId, this.number)
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
this.viewedPages?.pages?.splice(this.viewedPages?.pages?.indexOf(this.number), 1);
|
this.viewedPages?.pages?.splice(
|
||||||
|
this.viewedPages?.pages?.findIndex(p => p.page === this.number),
|
||||||
|
1
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import { MatDialogRef } from '@angular/material/dialog';
|
import {MatDialogRef} from '@angular/material/dialog';
|
||||||
import { DownloadFileType, IDossier, IDossierTemplate, ReportTemplate, ReportTemplateControllerService } from '@redaction/red-ui-http';
|
import {DossierRequest, DownloadFileType, IDossierTemplate, ReportTemplate, ReportTemplateControllerService} from '@redaction/red-ui-http';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
|
||||||
import { AppStateService } from '@state/app-state.service';
|
import {AppStateService} from '@state/app-state.service';
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
import { downloadTypesTranslations } from '../../../../translations/download-types-translations';
|
import {downloadTypesTranslations} from '../../../../translations/download-types-translations';
|
||||||
import { IconButtonTypes } from '@iqser/common-ui';
|
import {IconButtonTypes} from '@iqser/common-ui';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './add-dossier-dialog.component.html',
|
templateUrl: './add-dossier-dialog.component.html',
|
||||||
@ -45,7 +45,7 @@ export class AddDossierDialogComponent {
|
|||||||
validators: control =>
|
validators: control =>
|
||||||
control.value.reportTemplateIds?.length > 0 || control.value.downloadFileTypes?.length > 0
|
control.value.reportTemplateIds?.length > 0 || control.value.downloadFileTypes?.length > 0
|
||||||
? null
|
? null
|
||||||
: { downloadPackage: true }
|
: {downloadPackage: true}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -69,15 +69,15 @@ export class AddDossierDialogComponent {
|
|||||||
async saveDossier() {
|
async saveDossier() {
|
||||||
const savedDossier = await this._appStateService.createOrUpdateDossier(this._formToObject());
|
const savedDossier = await this._appStateService.createOrUpdateDossier(this._formToObject());
|
||||||
if (savedDossier) {
|
if (savedDossier) {
|
||||||
this.dialogRef.close({ dossier: savedDossier });
|
this.dialogRef.close({dossier: savedDossier});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async saveDossierAndAddMembers() {
|
async saveDossierAndAddMembers() {
|
||||||
const dossier: IDossier = this._formToObject();
|
const dossier: DossierRequest = this._formToObject();
|
||||||
const savedDossier = await this._appStateService.createOrUpdateDossier(dossier);
|
const savedDossier = await this._appStateService.createOrUpdateDossier(dossier);
|
||||||
if (savedDossier) {
|
if (savedDossier) {
|
||||||
this.dialogRef.close({ addMembers: true, dossier: savedDossier });
|
this.dialogRef.close({addMembers: true, dossier: savedDossier});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,9 +92,9 @@ export class AddDossierDialogComponent {
|
|||||||
this.dossierForm.patchValue(
|
this.dossierForm.patchValue(
|
||||||
{
|
{
|
||||||
downloadFileTypes: dossierTemplate.downloadFileTypes,
|
downloadFileTypes: dossierTemplate.downloadFileTypes,
|
||||||
reportTemplateIds: dossierTemplate.reportTemplateIds
|
reportTemplateIds: [] // TODO DEFAULT
|
||||||
},
|
},
|
||||||
{ emitEvent: false }
|
{emitEvent: false}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
this.availableReportTypes = [];
|
this.availableReportTypes = [];
|
||||||
@ -103,7 +103,7 @@ export class AddDossierDialogComponent {
|
|||||||
downloadFileTypes: [],
|
downloadFileTypes: [],
|
||||||
reportTemplateIds: []
|
reportTemplateIds: []
|
||||||
},
|
},
|
||||||
{ emitEvent: false }
|
{emitEvent: false}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -116,7 +116,7 @@ export class AddDossierDialogComponent {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private _formToObject(): IDossier {
|
private _formToObject(): DossierRequest {
|
||||||
return {
|
return {
|
||||||
dossierName: this.dossierForm.get('dossierName').value,
|
dossierName: this.dossierForm.get('dossierName').value,
|
||||||
description: this.dossierForm.get('description').value,
|
description: this.dossierForm.get('description').value,
|
||||||
@ -124,8 +124,6 @@ export class AddDossierDialogComponent {
|
|||||||
dossierTemplateId: this.dossierForm.get('dossierTemplateId').value,
|
dossierTemplateId: this.dossierForm.get('dossierTemplateId').value,
|
||||||
downloadFileTypes: this.dossierForm.get('downloadFileTypes').value,
|
downloadFileTypes: this.dossierForm.get('downloadFileTypes').value,
|
||||||
reportTemplateIds: this.dossierForm.get('reportTemplateIds').value,
|
reportTemplateIds: this.dossierForm.get('reportTemplateIds').value,
|
||||||
// TODO REMOVE THIS
|
|
||||||
reportTypes: [],
|
|
||||||
watermarkEnabled: this.dossierForm.get('watermarkEnabled').value
|
watermarkEnabled: this.dossierForm.get('watermarkEnabled').value
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -168,7 +168,7 @@ export class DossierOverviewScreenComponent extends ListingComponent<File> imple
|
|||||||
}
|
}
|
||||||
|
|
||||||
get displayedInFileListAttributes() {
|
get displayedInFileListAttributes() {
|
||||||
return this.fileAttributeConfigs.filter(config => config.displayedInFileList);
|
return this.fileAttributeConfigs?.filter(config => config.displayedInFileList) || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
unassignFn = async (file: File) => {
|
unassignFn = async (file: File) => {
|
||||||
|
|||||||
@ -147,7 +147,7 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
|
|||||||
}
|
}
|
||||||
|
|
||||||
get canSwitchToDeltaView(): boolean {
|
get canSwitchToDeltaView(): boolean {
|
||||||
return this.fileData?.redactionChangeLog?.redactionLogEntry?.length > 0 && !this.fileData.file.excluded;
|
return this.fileData.hasChangeLog;
|
||||||
}
|
}
|
||||||
|
|
||||||
get canAssign(): boolean {
|
get canAssign(): boolean {
|
||||||
@ -604,7 +604,6 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
|
|||||||
if (!fileData.file?.isPending && !fileData.file?.isError) {
|
if (!fileData.file?.isPending && !fileData.file?.isError) {
|
||||||
if (performUpdate) {
|
if (performUpdate) {
|
||||||
this.fileData.redactionLog = fileData.redactionLog;
|
this.fileData.redactionLog = fileData.redactionLog;
|
||||||
this.fileData.redactionChangeLog = fileData.redactionChangeLog;
|
|
||||||
this.fileData.file = fileData.file;
|
this.fileData.file = fileData.file;
|
||||||
this.rebuildFilters(true);
|
this.rebuildFilters(true);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -35,17 +35,11 @@ export class PdfViewerDataService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadActiveFileData(): Observable<FileDataModel> {
|
loadActiveFileData(): Observable<FileDataModel> {
|
||||||
const dossierId = this._appStateService.activeDossierId;
|
|
||||||
const fileId = this._appStateService.activeFileId;
|
|
||||||
|
|
||||||
const file$ = this.downloadOriginalFile(this._appStateService.activeFile);
|
const file$ = this.downloadOriginalFile(this._appStateService.activeFile);
|
||||||
const reactionLog$ = this.loadActiveFileRedactionLog();
|
const reactionLog$ = this.loadActiveFileRedactionLog();
|
||||||
const redactionChangeLog$ = this._redactionLogControllerService
|
|
||||||
.getRedactionChangeLog(dossierId, fileId)
|
|
||||||
.pipe(catchError(() => of({})));
|
|
||||||
const viewedPages$ = this.getViewedPagesForActiveFile();
|
const viewedPages$ = this.getViewedPagesForActiveFile();
|
||||||
|
|
||||||
return forkJoin([file$, reactionLog$, redactionChangeLog$, viewedPages$]).pipe(
|
return forkJoin([file$, reactionLog$, viewedPages$]).pipe(
|
||||||
map(data => new FileDataModel(this._appStateService.activeFile, ...data))
|
map(data => new FileDataModel(this._appStateService.activeFile, ...data))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import {
|
import { DossierAttribute, DossierAttributes, DossierAttributesControllerService, IDossierAttributeConfig } from '@redaction/red-ui-http';
|
||||||
DossierAttributeReq,
|
|
||||||
DossierAttributesControllerService,
|
|
||||||
DossierAttributesRes,
|
|
||||||
IDossierAttributeConfig
|
|
||||||
} from '@redaction/red-ui-http';
|
|
||||||
import { Dossier } from '@state/model/dossier';
|
import { Dossier } from '@state/model/dossier';
|
||||||
import { DossierAttributeWithValue } from '@models/dossier-attributes.model';
|
import { DossierAttributeWithValue } from '@models/dossier-attributes.model';
|
||||||
import { AppStateService } from '@state/app-state.service';
|
import { AppStateService } from '@state/app-state.service';
|
||||||
@ -28,11 +23,11 @@ export class DossierAttributesService {
|
|||||||
|
|
||||||
return attributesConfig.dossierAttributeConfigs.map(config => ({
|
return attributesConfig.dossierAttributeConfigs.map(config => ({
|
||||||
...config,
|
...config,
|
||||||
value: attributes.dossierAttributeList.find(attr => attr.dossierAttributeId === config.id)?.value
|
value: attributes.dossierAttributeList.find(attr => attr.dossierAttributeConfigId === config.id)?.value
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
setValues(dossier: Dossier, dossierAttributeList: DossierAttributeReq[]): Promise<DossierAttributesRes> {
|
setValues(dossier: Dossier, dossierAttributeList: DossierAttribute[]): Promise<DossierAttributes> {
|
||||||
return this._dossierAttributesControllerService.setDossierAttributes({ dossierAttributeList }, dossier.id).toPromise();
|
return this._dossierAttributesControllerService.setDossierAttributes({ dossierAttributeList }, dossier.id).toPromise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
import { DownloadDetails, DownloadStatus } from '@redaction/red-ui-http';
|
import {DownloadStatus} from '@redaction/red-ui-http';
|
||||||
import { IListable } from '@iqser/common-ui';
|
import {IListable} from '@iqser/common-ui';
|
||||||
|
|
||||||
export class DownloadStatusWrapper implements IListable {
|
export class DownloadStatusWrapper implements IListable {
|
||||||
inProgress: boolean;
|
inProgress: boolean;
|
||||||
|
|
||||||
constructor(private _downloadStatus: DownloadStatus) {}
|
constructor(private _downloadStatus: DownloadStatus) {
|
||||||
|
}
|
||||||
|
|
||||||
get id() {
|
get id() {
|
||||||
return this.storageId;
|
return this.storageId;
|
||||||
@ -23,9 +24,6 @@ export class DownloadStatusWrapper implements IListable {
|
|||||||
return this._downloadStatus.creationDate;
|
return this._downloadStatus.creationDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
get downloadDetails(): DownloadDetails {
|
|
||||||
return this._downloadStatus.downloadDetails;
|
|
||||||
}
|
|
||||||
|
|
||||||
get filename() {
|
get filename() {
|
||||||
return this._downloadStatus.filename;
|
return this._downloadStatus.filename;
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import {
|
import {
|
||||||
|
Colors,
|
||||||
DossierTemplateControllerService,
|
DossierTemplateControllerService,
|
||||||
FileAttributesConfig,
|
FileAttributesConfig,
|
||||||
FileAttributesControllerService,
|
FileAttributesControllerService,
|
||||||
@ -438,6 +439,25 @@ export class AppStateService {
|
|||||||
this._dictionaryData[dossierTemplateId] = await this._getDictionaryDataForDossierTemplateObservables(dossierTemplateId).toPromise();
|
this._dictionaryData[dossierTemplateId] = await this._getDictionaryDataForDossierTemplateObservables(dossierTemplateId).toPromise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loadColors(dossierTemplateId: string) {
|
||||||
|
return this._dictionaryService.getColors(dossierTemplateId).pipe(
|
||||||
|
catchError(() =>
|
||||||
|
of({
|
||||||
|
analysisColor: FALLBACK_COLOR,
|
||||||
|
dictionaryRequestColor: FALLBACK_COLOR,
|
||||||
|
defaultColor: FALLBACK_COLOR,
|
||||||
|
manualRedactionColor: FALLBACK_COLOR,
|
||||||
|
notRedacted: FALLBACK_COLOR,
|
||||||
|
requestAdd: FALLBACK_COLOR,
|
||||||
|
previewColor: FALLBACK_COLOR,
|
||||||
|
requestRemove: FALLBACK_COLOR,
|
||||||
|
updatedColor: FALLBACK_COLOR,
|
||||||
|
dossierTemplateId: dossierTemplateId
|
||||||
|
} as Colors)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
private _getDictionaryDataForDossierTemplateObservables(dossierTemplateId: string): Observable<{ [key: string]: any }> {
|
private _getDictionaryDataForDossierTemplateObservables(dossierTemplateId: string): Observable<{ [key: string]: any }> {
|
||||||
const dictionaryData: { [key: string]: any } = {};
|
const dictionaryData: { [key: string]: any } = {};
|
||||||
|
|
||||||
@ -449,7 +469,7 @@ export class AppStateService {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
const colorsObs = this._dictionaryService.getColors(dossierTemplateId).pipe(
|
const colorsObs = this.loadColors(dossierTemplateId).pipe(
|
||||||
tap(colors => {
|
tap(colors => {
|
||||||
for (const key of Object.keys(colors)) {
|
for (const key of Object.keys(colors)) {
|
||||||
const color = colors[key];
|
const color = colors[key];
|
||||||
@ -465,7 +485,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['declined-suggestion'] = new TypeValue(
|
dictionaryData['declined-suggestion'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.notRedacted,
|
hexColor: colors.notRedacted || FALLBACK_COLOR,
|
||||||
type: 'declined-suggestion'
|
type: 'declined-suggestion'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -473,7 +493,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['manual'] = new TypeValue(
|
dictionaryData['manual'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.manualRedactionColor,
|
hexColor: colors.manualRedactionColor || FALLBACK_COLOR,
|
||||||
type: 'manual'
|
type: 'manual'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -481,7 +501,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['manual-redaction'] = new TypeValue(
|
dictionaryData['manual-redaction'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.manualRedactionColor,
|
hexColor: colors.manualRedactionColor || FALLBACK_COLOR,
|
||||||
type: 'manual-redaction'
|
type: 'manual-redaction'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -497,21 +517,21 @@ export class AppStateService {
|
|||||||
// dictionary actions
|
// dictionary actions
|
||||||
dictionaryData['add-dictionary'] = new TypeValue(
|
dictionaryData['add-dictionary'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.analysisColor,
|
hexColor: colors.analysisColor || FALLBACK_COLOR,
|
||||||
type: 'add-dictionary'
|
type: 'add-dictionary'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
dictionaryData['remove-dictionary'] = new TypeValue(
|
dictionaryData['remove-dictionary'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.analysisColor,
|
hexColor: colors.analysisColor || FALLBACK_COLOR,
|
||||||
type: 'remove-dictionary'
|
type: 'remove-dictionary'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
dictionaryData['remove-only-here'] = new TypeValue(
|
dictionaryData['remove-only-here'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.analysisColor,
|
hexColor: colors.analysisColor || FALLBACK_COLOR,
|
||||||
type: 'remove-only-here'
|
type: 'remove-only-here'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -519,7 +539,7 @@ export class AppStateService {
|
|||||||
// generic suggestions
|
// generic suggestions
|
||||||
dictionaryData['suggestion'] = new TypeValue(
|
dictionaryData['suggestion'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.requestAdd,
|
hexColor: colors.requestAdd || FALLBACK_COLOR,
|
||||||
type: 'suggestion'
|
type: 'suggestion'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -527,7 +547,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['suggestion-add'] = new TypeValue(
|
dictionaryData['suggestion-add'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.requestAdd,
|
hexColor: colors.requestAdd || FALLBACK_COLOR,
|
||||||
type: 'suggestion-add'
|
type: 'suggestion-add'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -535,21 +555,21 @@ export class AppStateService {
|
|||||||
// add suggestions
|
// add suggestions
|
||||||
dictionaryData['suggestion-change-legal-basis'] = new TypeValue(
|
dictionaryData['suggestion-change-legal-basis'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.requestAdd,
|
hexColor: colors.requestAdd || FALLBACK_COLOR,
|
||||||
type: 'suggestion-change-legal-basis'
|
type: 'suggestion-change-legal-basis'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
dictionaryData['suggestion-recategorize-image'] = new TypeValue(
|
dictionaryData['suggestion-recategorize-image'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.requestAdd,
|
hexColor: colors.requestAdd || FALLBACK_COLOR,
|
||||||
type: 'suggestion-recategorize-image'
|
type: 'suggestion-recategorize-image'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
dictionaryData['suggestion-add-dictionary'] = new TypeValue(
|
dictionaryData['suggestion-add-dictionary'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.dictionaryRequestColor,
|
hexColor: colors.dictionaryRequestColor || FALLBACK_COLOR,
|
||||||
type: 'suggestion-add'
|
type: 'suggestion-add'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -557,7 +577,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['suggestion-remove'] = new TypeValue(
|
dictionaryData['suggestion-remove'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.requestRemove,
|
hexColor: colors.requestRemove || FALLBACK_COLOR,
|
||||||
type: 'suggestion-add'
|
type: 'suggestion-add'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -565,7 +585,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['suggestion-remove-dictionary'] = new TypeValue(
|
dictionaryData['suggestion-remove-dictionary'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.dictionaryRequestColor,
|
hexColor: colors.dictionaryRequestColor || FALLBACK_COLOR,
|
||||||
type: 'suggestion-add'
|
type: 'suggestion-add'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -573,7 +593,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['skipped'] = new TypeValue(
|
dictionaryData['skipped'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.notRedacted,
|
hexColor: colors.notRedacted || FALLBACK_COLOR,
|
||||||
type: 'skipped'
|
type: 'skipped'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -581,7 +601,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['default'] = new TypeValue(
|
dictionaryData['default'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.defaultColor,
|
hexColor: colors.defaultColor || FALLBACK_COLOR,
|
||||||
type: 'default'
|
type: 'default'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -589,7 +609,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['add'] = new TypeValue(
|
dictionaryData['add'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.requestAdd,
|
hexColor: colors.requestAdd || FALLBACK_COLOR,
|
||||||
type: 'add'
|
type: 'add'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -597,7 +617,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['analysis'] = new TypeValue(
|
dictionaryData['analysis'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.analysisColor,
|
hexColor: colors.analysisColor || FALLBACK_COLOR,
|
||||||
type: 'analysis'
|
type: 'analysis'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -605,7 +625,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['pending-analysis'] = new TypeValue(
|
dictionaryData['pending-analysis'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.analysisColor,
|
hexColor: colors.analysisColor || FALLBACK_COLOR,
|
||||||
type: 'analysis'
|
type: 'analysis'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -613,7 +633,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['change-legal-basis'] = new TypeValue(
|
dictionaryData['change-legal-basis'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.analysisColor,
|
hexColor: colors.analysisColor || FALLBACK_COLOR,
|
||||||
type: 'analysis'
|
type: 'analysis'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -630,7 +650,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['redaction'] = new TypeValue(
|
dictionaryData['redaction'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.previewColor,
|
hexColor: colors.previewColor || FALLBACK_COLOR,
|
||||||
type: 'redaction'
|
type: 'redaction'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
@ -638,7 +658,7 @@ export class AppStateService {
|
|||||||
|
|
||||||
dictionaryData['updated'] = new TypeValue(
|
dictionaryData['updated'] = new TypeValue(
|
||||||
{
|
{
|
||||||
hexColor: colors.updatedColor,
|
hexColor: colors.updatedColor || FALLBACK_COLOR,
|
||||||
type: 'updated'
|
type: 'updated'
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
|
|||||||
0
apps/red-ui/src/app/state/model/dossier.wrapper.ts
Normal file
0
apps/red-ui/src/app/state/model/dossier.wrapper.ts
Normal file
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"ADMIN_CONTACT_NAME": null,
|
"ADMIN_CONTACT_NAME": null,
|
||||||
"ADMIN_CONTACT_URL": null,
|
"ADMIN_CONTACT_URL": null,
|
||||||
"API_URL": "https://red-staging.iqser.cloud/redaction-gateway-v1",
|
"API_URL": "https://dev-06.iqser.cloud/redaction-gateway-v1",
|
||||||
"APP_NAME": "RedactManager",
|
"APP_NAME": "RedactManager",
|
||||||
"AUTO_READ_TIME": 1.5,
|
"AUTO_READ_TIME": 1.5,
|
||||||
"BACKEND_APP_VERSION": "4.4.40",
|
"BACKEND_APP_VERSION": "4.4.40",
|
||||||
@ -17,7 +17,7 @@
|
|||||||
"MAX_RETRIES_ON_SERVER_ERROR": 3,
|
"MAX_RETRIES_ON_SERVER_ERROR": 3,
|
||||||
"OAUTH_CLIENT_ID": "redaction",
|
"OAUTH_CLIENT_ID": "redaction",
|
||||||
"OAUTH_IDP_HINT": null,
|
"OAUTH_IDP_HINT": null,
|
||||||
"OAUTH_URL": "https://red-staging.iqser.cloud/auth/realms/redaction",
|
"OAUTH_URL": "https://dev-06.iqser.cloud/auth/realms/redaction",
|
||||||
"RECENT_PERIOD_IN_HOURS": 24,
|
"RECENT_PERIOD_IN_HOURS": 24,
|
||||||
"SELECTION_MODE": "structural"
|
"SELECTION_MODE": "structural"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 33da1ce58575adf4fc0bddf8f8e3e8c0f4304765
|
Subproject commit 1ab7d6bbad76ab82ce3582101d60cecb5494122b
|
||||||
@ -27,6 +27,7 @@ import { ViewedPagesControllerService } from './api/viewedPagesController.servic
|
|||||||
import { WatermarkControllerService } from './api/watermarkController.service';
|
import { WatermarkControllerService } from './api/watermarkController.service';
|
||||||
import { SearchControllerService } from './api/searchController.service';
|
import { SearchControllerService } from './api/searchController.service';
|
||||||
import { NotificationControllerService } from './api/notificationController.service';
|
import { NotificationControllerService } from './api/notificationController.service';
|
||||||
|
import { StatusReportControllerService } from './api/statusReportController.service';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [],
|
imports: [],
|
||||||
@ -57,7 +58,8 @@ import { NotificationControllerService } from './api/notificationController.serv
|
|||||||
ViewedPagesControllerService,
|
ViewedPagesControllerService,
|
||||||
WatermarkControllerService,
|
WatermarkControllerService,
|
||||||
SearchControllerService,
|
SearchControllerService,
|
||||||
NotificationControllerService
|
NotificationControllerService,
|
||||||
|
StatusReportControllerService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class ApiModule {
|
export class ApiModule {
|
||||||
|
|||||||
@ -1,36 +1,52 @@
|
|||||||
|
export * from './auditController.service';
|
||||||
import { AuditControllerService } from './auditController.service';
|
import { AuditControllerService } from './auditController.service';
|
||||||
import { DebugControllerService } from './debugController.service';
|
import { DictionaryControllerService } from './dictionaryController.service';
|
||||||
|
import { DigitalSignatureControllerService } from './digitalSignatureController.service';
|
||||||
|
import { DossierAttributesControllerService } from './dossierAttributesController.service';
|
||||||
|
import { DossierControllerService } from './dossierController.service';
|
||||||
|
import { DossierTemplateControllerService } from './dossierTemplateController.service';
|
||||||
|
import { DownloadControllerService } from './downloadController.service';
|
||||||
|
import { FileAttributesControllerService } from './fileAttributesController.service';
|
||||||
import { FileManagementControllerService } from './fileManagementController.service';
|
import { FileManagementControllerService } from './fileManagementController.service';
|
||||||
|
import { GeneralSettingsControllerService } from './generalSettingsController.service';
|
||||||
import { InfoControllerService } from './infoController.service';
|
import { InfoControllerService } from './infoController.service';
|
||||||
import { LegalBasisMappingControllerService } from './legalBasisMappingController.service';
|
import { LegalBasisMappingControllerService } from './legalBasisMappingController.service';
|
||||||
import { LicenseReportControllerService } from './licenseReportController.service';
|
import { LicenseReportControllerService } from './licenseReportController.service';
|
||||||
import { ManualRedactionControllerService } from './manualRedactionController.service';
|
import { ManualRedactionControllerService } from './manualRedactionController.service';
|
||||||
|
import { NotificationControllerService } from './notificationController.service';
|
||||||
import { ReanalysisControllerService } from './reanalysisController.service';
|
import { ReanalysisControllerService } from './reanalysisController.service';
|
||||||
import { RedactionLogControllerService } from './redactionLogController.service';
|
import { RedactionLogControllerService } from './redactionLogController.service';
|
||||||
import { DossierTemplateControllerService } from './dossierTemplateController.service';
|
import { ReportTemplateControllerService } from './reportTemplateController.service';
|
||||||
import { RulesControllerService } from './rulesController.service';
|
import { RulesControllerService } from './rulesController.service';
|
||||||
|
import { SearchControllerService } from './searchController.service';
|
||||||
|
import { SmtpConfigurationControllerService } from './smtpConfigurationController.service';
|
||||||
|
import { StatusControllerService } from './statusController.service';
|
||||||
|
import { StatusReportControllerService } from './statusReportController.service';
|
||||||
|
import { UploadControllerService } from './uploadController.service';
|
||||||
import { UserControllerService } from './userController.service';
|
import { UserControllerService } from './userController.service';
|
||||||
import { UserPreferenceControllerService } from './userPreferenceController.service';
|
import { UserPreferenceControllerService } from './userPreferenceController.service';
|
||||||
import { VersionsControllerService } from './versionsController.service';
|
import { VersionsControllerService } from './versionsController.service';
|
||||||
import { ViewedPagesControllerService } from './viewedPagesController.service';
|
import { ViewedPagesControllerService } from './viewedPagesController.service';
|
||||||
import { WatermarkControllerService } from './watermarkController.service';
|
import { WatermarkControllerService } from './watermarkController.service';
|
||||||
import { DownloadControllerService } from './downloadController.service';
|
|
||||||
import { DigitalSignatureControllerService } from './digitalSignatureController.service';
|
|
||||||
import { FileAttributesControllerService } from './fileAttributesController.service';
|
|
||||||
import { SmtpConfigurationControllerService } from './smtpConfigurationController.service';
|
|
||||||
import { ReportTemplateControllerService } from './reportTemplateController.service';
|
|
||||||
import { UploadControllerService } from './uploadController.service';
|
|
||||||
import { GeneralSettingsControllerService } from './generalSettingsController.service';
|
|
||||||
import { DossierAttributesControllerService } from './dossierAttributesController.service';
|
|
||||||
import { SearchControllerService } from './searchController.service';
|
|
||||||
import { NotificationControllerService } from './notificationController.service';
|
|
||||||
|
|
||||||
export * from './auditController.service';
|
|
||||||
|
|
||||||
export * from './dictionaryController.service';
|
export * from './dictionaryController.service';
|
||||||
|
|
||||||
|
export * from './digitalSignatureController.service';
|
||||||
|
|
||||||
|
export * from './dossierAttributesController.service';
|
||||||
|
|
||||||
|
export * from './dossierController.service';
|
||||||
|
|
||||||
|
export * from './dossierTemplateController.service';
|
||||||
|
|
||||||
|
export * from './downloadController.service';
|
||||||
|
|
||||||
|
export * from './fileAttributesController.service';
|
||||||
|
|
||||||
export * from './fileManagementController.service';
|
export * from './fileManagementController.service';
|
||||||
|
|
||||||
|
export * from './generalSettingsController.service';
|
||||||
|
|
||||||
export * from './infoController.service';
|
export * from './infoController.service';
|
||||||
|
|
||||||
export * from './legalBasisMappingController.service';
|
export * from './legalBasisMappingController.service';
|
||||||
@ -39,18 +55,26 @@ export * from './licenseReportController.service';
|
|||||||
|
|
||||||
export * from './manualRedactionController.service';
|
export * from './manualRedactionController.service';
|
||||||
|
|
||||||
export * from './dossierController.service';
|
export * from './notificationController.service';
|
||||||
|
|
||||||
export * from './reanalysisController.service';
|
export * from './reanalysisController.service';
|
||||||
|
|
||||||
export * from './redactionLogController.service';
|
export * from './redactionLogController.service';
|
||||||
|
|
||||||
export * from './dossierTemplateController.service';
|
export * from './reportTemplateController.service';
|
||||||
|
|
||||||
export * from './rulesController.service';
|
export * from './rulesController.service';
|
||||||
|
|
||||||
|
export * from './searchController.service';
|
||||||
|
|
||||||
|
export * from './smtpConfigurationController.service';
|
||||||
|
|
||||||
export * from './statusController.service';
|
export * from './statusController.service';
|
||||||
|
|
||||||
|
export * from './statusReportController.service';
|
||||||
|
|
||||||
|
export * from './uploadController.service';
|
||||||
|
|
||||||
export * from './userController.service';
|
export * from './userController.service';
|
||||||
|
|
||||||
export * from './userPreferenceController.service';
|
export * from './userPreferenceController.service';
|
||||||
@ -61,53 +85,34 @@ export * from './viewedPagesController.service';
|
|||||||
|
|
||||||
export * from './watermarkController.service';
|
export * from './watermarkController.service';
|
||||||
|
|
||||||
export * from './downloadController.service';
|
|
||||||
|
|
||||||
export * from './digitalSignatureController.service';
|
|
||||||
|
|
||||||
export * from './debugController.service';
|
|
||||||
|
|
||||||
export * from './fileAttributesController.service';
|
|
||||||
|
|
||||||
export * from './smtpConfigurationController.service';
|
|
||||||
|
|
||||||
export * from './reportTemplateController.service';
|
|
||||||
|
|
||||||
export * from './uploadController.service';
|
|
||||||
|
|
||||||
export * from './generalSettingsController.service';
|
|
||||||
|
|
||||||
export * from './dossierAttributesController.service';
|
|
||||||
|
|
||||||
export * from './searchController.service';
|
|
||||||
|
|
||||||
export * from './notificationController.service';
|
|
||||||
|
|
||||||
export const APIS = [
|
export const APIS = [
|
||||||
AuditControllerService,
|
AuditControllerService,
|
||||||
DebugControllerService,
|
DictionaryControllerService,
|
||||||
|
DigitalSignatureControllerService,
|
||||||
|
DossierAttributesControllerService,
|
||||||
|
DossierControllerService,
|
||||||
|
DossierTemplateControllerService,
|
||||||
|
DownloadControllerService,
|
||||||
|
FileAttributesControllerService,
|
||||||
FileManagementControllerService,
|
FileManagementControllerService,
|
||||||
|
GeneralSettingsControllerService,
|
||||||
InfoControllerService,
|
InfoControllerService,
|
||||||
LegalBasisMappingControllerService,
|
LegalBasisMappingControllerService,
|
||||||
LicenseReportControllerService,
|
LicenseReportControllerService,
|
||||||
ManualRedactionControllerService,
|
ManualRedactionControllerService,
|
||||||
|
NotificationControllerService,
|
||||||
ReanalysisControllerService,
|
ReanalysisControllerService,
|
||||||
RedactionLogControllerService,
|
RedactionLogControllerService,
|
||||||
DossierTemplateControllerService,
|
ReportTemplateControllerService,
|
||||||
RulesControllerService,
|
RulesControllerService,
|
||||||
|
SearchControllerService,
|
||||||
|
SmtpConfigurationControllerService,
|
||||||
|
StatusControllerService,
|
||||||
|
StatusReportControllerService,
|
||||||
|
UploadControllerService,
|
||||||
UserControllerService,
|
UserControllerService,
|
||||||
UserPreferenceControllerService,
|
UserPreferenceControllerService,
|
||||||
VersionsControllerService,
|
VersionsControllerService,
|
||||||
ViewedPagesControllerService,
|
ViewedPagesControllerService,
|
||||||
WatermarkControllerService,
|
WatermarkControllerService
|
||||||
DownloadControllerService,
|
|
||||||
DigitalSignatureControllerService,
|
|
||||||
FileAttributesControllerService,
|
|
||||||
SmtpConfigurationControllerService,
|
|
||||||
ReportTemplateControllerService,
|
|
||||||
UploadControllerService,
|
|
||||||
GeneralSettingsControllerService,
|
|
||||||
DossierAttributesControllerService,
|
|
||||||
SearchControllerService,
|
|
||||||
NotificationControllerService
|
|
||||||
];
|
];
|
||||||
|
|||||||
@ -132,4 +132,18 @@ export class AuditControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,373 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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.
|
|
||||||
*/ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/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 { BASE_PATH } from '../variables';
|
|
||||||
import { Configuration } from '../configuration';
|
|
||||||
|
|
||||||
@Injectable()
|
|
||||||
export class DebugControllerService {
|
|
||||||
public defaultHeaders = new HttpHeaders();
|
|
||||||
public configuration = new Configuration();
|
|
||||||
protected basePath = '';
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Receives an uploaded file and returns it with its classified elements visualized for debugging.
|
|
||||||
* None
|
|
||||||
* @param file
|
|
||||||
* @param inline inline
|
|
||||||
* @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 debugClassificationsForm(file: Blob, inline?: boolean, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
|
||||||
|
|
||||||
public debugClassificationsForm(
|
|
||||||
file: Blob,
|
|
||||||
inline?: boolean,
|
|
||||||
observe?: 'response',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<HttpResponse<any>>;
|
|
||||||
|
|
||||||
public debugClassificationsForm(file: Blob, inline?: boolean, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
|
||||||
|
|
||||||
public debugClassificationsForm(file: Blob, inline?: boolean, 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 debugClassifications.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
if (inline !== undefined && inline !== null) {
|
|
||||||
queryParameters = queryParameters.set('inline', <any>inline);
|
|
||||||
}
|
|
||||||
|
|
||||||
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[] = ['multipart/form-data'];
|
|
||||||
|
|
||||||
const canConsumeForm = this.canConsumeForm(consumes);
|
|
||||||
|
|
||||||
let formParams: { append(param: string, value: any): void };
|
|
||||||
let useForm = false;
|
|
||||||
const convertFormParamsToString = false;
|
|
||||||
// use FormData to transmit files using content-type "multipart/form-data"
|
|
||||||
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
||||||
useForm = canConsumeForm;
|
|
||||||
if (useForm) {
|
|
||||||
formParams = new FormData();
|
|
||||||
} else {
|
|
||||||
formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
}
|
|
||||||
|
|
||||||
if (file !== undefined) {
|
|
||||||
formParams = (formParams.append('file', <any>file) as any) || formParams;
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.httpClient.request<any>('post', `${this.basePath}/debug/classification`, {
|
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
|
||||||
params: queryParameters,
|
|
||||||
withCredentials: this.configuration.withCredentials,
|
|
||||||
headers: headers,
|
|
||||||
observe: observe,
|
|
||||||
reportProgress: reportProgress
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Receives an uploaded file and returns a html file with its extracted tables for debugging.
|
|
||||||
* None
|
|
||||||
* @param file
|
|
||||||
* @param inline inline
|
|
||||||
* @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 debugHtmlTablesForm(file: Blob, inline?: boolean, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
|
||||||
|
|
||||||
public debugHtmlTablesForm(file: Blob, inline?: boolean, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
|
||||||
|
|
||||||
public debugHtmlTablesForm(file: Blob, inline?: boolean, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
|
||||||
|
|
||||||
public debugHtmlTablesForm(file: Blob, inline?: boolean, 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 debugHtmlTables.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
if (inline !== undefined && inline !== null) {
|
|
||||||
queryParameters = queryParameters.set('inline', <any>inline);
|
|
||||||
}
|
|
||||||
|
|
||||||
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[] = ['multipart/form-data'];
|
|
||||||
|
|
||||||
const canConsumeForm = this.canConsumeForm(consumes);
|
|
||||||
|
|
||||||
let formParams: { append(param: string, value: any): void };
|
|
||||||
let useForm = false;
|
|
||||||
const convertFormParamsToString = false;
|
|
||||||
// use FormData to transmit files using content-type "multipart/form-data"
|
|
||||||
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
||||||
useForm = canConsumeForm;
|
|
||||||
if (useForm) {
|
|
||||||
formParams = new FormData();
|
|
||||||
} else {
|
|
||||||
formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
}
|
|
||||||
|
|
||||||
if (file !== undefined) {
|
|
||||||
formParams = (formParams.append('file', <any>file) as any) || formParams;
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.httpClient.request('post', `${this.basePath}/debug/htmlTables`, {
|
|
||||||
responseType: 'blob',
|
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
|
||||||
params: queryParameters,
|
|
||||||
withCredentials: this.configuration.withCredentials,
|
|
||||||
headers: headers,
|
|
||||||
observe: observe,
|
|
||||||
reportProgress: reportProgress
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Receives an uploaded file and returns it with its sections visualized for debugging.
|
|
||||||
* None
|
|
||||||
* @param file
|
|
||||||
* @param inline inline
|
|
||||||
* @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 debugSectionsForm(file: Blob, inline?: boolean, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
|
||||||
|
|
||||||
public debugSectionsForm(file: Blob, inline?: boolean, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
|
||||||
|
|
||||||
public debugSectionsForm(file: Blob, inline?: boolean, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
|
||||||
|
|
||||||
public debugSectionsForm(file: Blob, inline?: boolean, 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 debugSections.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
if (inline !== undefined && inline !== null) {
|
|
||||||
queryParameters = queryParameters.set('inline', <any>inline);
|
|
||||||
}
|
|
||||||
|
|
||||||
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[] = ['multipart/form-data'];
|
|
||||||
|
|
||||||
const canConsumeForm = this.canConsumeForm(consumes);
|
|
||||||
|
|
||||||
let formParams: { append(param: string, value: any): void };
|
|
||||||
let useForm = false;
|
|
||||||
const convertFormParamsToString = false;
|
|
||||||
// use FormData to transmit files using content-type "multipart/form-data"
|
|
||||||
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
||||||
useForm = canConsumeForm;
|
|
||||||
if (useForm) {
|
|
||||||
formParams = new FormData();
|
|
||||||
} else {
|
|
||||||
formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
}
|
|
||||||
|
|
||||||
if (file !== undefined) {
|
|
||||||
formParams = (formParams.append('file', <any>file) as any) || formParams;
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.httpClient.request<any>('post', `${this.basePath}/debug/sections`, {
|
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
|
||||||
params: queryParameters,
|
|
||||||
withCredentials: this.configuration.withCredentials,
|
|
||||||
headers: headers,
|
|
||||||
observe: observe,
|
|
||||||
reportProgress: reportProgress
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Receives an uploaded file and returns it redacted.
|
|
||||||
* None
|
|
||||||
* @param file
|
|
||||||
* @param inline inline
|
|
||||||
* @param flatRedaction flatRedaction
|
|
||||||
* @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 redactionForm(
|
|
||||||
file: Blob,
|
|
||||||
inline?: boolean,
|
|
||||||
flatRedaction?: boolean,
|
|
||||||
observe?: 'body',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<any>;
|
|
||||||
|
|
||||||
public redactionForm(
|
|
||||||
file: Blob,
|
|
||||||
inline?: boolean,
|
|
||||||
flatRedaction?: boolean,
|
|
||||||
observe?: 'response',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<HttpResponse<any>>;
|
|
||||||
|
|
||||||
public redactionForm(
|
|
||||||
file: Blob,
|
|
||||||
inline?: boolean,
|
|
||||||
flatRedaction?: boolean,
|
|
||||||
observe?: 'events',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<HttpEvent<any>>;
|
|
||||||
|
|
||||||
public redactionForm(
|
|
||||||
file: Blob,
|
|
||||||
inline?: boolean,
|
|
||||||
flatRedaction?: boolean,
|
|
||||||
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 redaction.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
if (inline !== undefined && inline !== null) {
|
|
||||||
queryParameters = queryParameters.set('inline', <any>inline);
|
|
||||||
}
|
|
||||||
if (flatRedaction !== undefined && flatRedaction !== null) {
|
|
||||||
queryParameters = queryParameters.set('flatRedaction', <any>flatRedaction);
|
|
||||||
}
|
|
||||||
|
|
||||||
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[] = ['multipart/form-data'];
|
|
||||||
|
|
||||||
const canConsumeForm = this.canConsumeForm(consumes);
|
|
||||||
|
|
||||||
let formParams: { append(param: string, value: any): void };
|
|
||||||
let useForm = false;
|
|
||||||
const convertFormParamsToString = false;
|
|
||||||
// use FormData to transmit files using content-type "multipart/form-data"
|
|
||||||
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
||||||
useForm = canConsumeForm;
|
|
||||||
if (useForm) {
|
|
||||||
formParams = new FormData();
|
|
||||||
} else {
|
|
||||||
formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
}
|
|
||||||
|
|
||||||
if (file !== undefined) {
|
|
||||||
formParams = (formParams.append('file', <any>file) as any) || formParams;
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.httpClient.request<any>('post', `${this.basePath}/debug/redaction`, {
|
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
|
||||||
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 false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -10,20 +10,20 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/ /* tslint:disable:no-unused-variable member-ordering */
|
*/ /* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from "@angular/core";
|
import {Inject, Injectable, Optional} from "@angular/core";
|
||||||
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from "@angular/common/http";
|
import {HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse} from "@angular/common/http";
|
||||||
import { CustomHttpUrlEncodingCodec } from "../encoder";
|
import {CustomHttpUrlEncodingCodec} from "../encoder";
|
||||||
|
|
||||||
import { Observable } from "rxjs";
|
import {Observable} from "rxjs";
|
||||||
|
|
||||||
import { Colors } from "../model/colors";
|
import {Colors} from "../model/colors";
|
||||||
import { IDictionary } from "../model/dictionary";
|
import {IDictionary} from "../model/dictionary";
|
||||||
import { TypeResponse } from "../model/typeResponse";
|
import {TypeResponse} from "../model/typeResponse";
|
||||||
import { ITypeValue } from "../model/typeValue";
|
import {ITypeValue} from "../model/typeValue";
|
||||||
import { UpdateTypeValue } from "../model/updateTypeValue";
|
import {UpdateTypeValue} from "../model/updateTypeValue";
|
||||||
|
|
||||||
import { BASE_PATH } from "../variables";
|
import {BASE_PATH} from "../variables";
|
||||||
import { Configuration } from "../configuration";
|
import {Configuration} from "../configuration";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class DictionaryControllerService {
|
export class DictionaryControllerService {
|
||||||
@ -107,7 +107,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter type was null or undefined when calling addEntry.');
|
throw new Error('Required parameter type was null or undefined when calling addEntry.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -171,7 +171,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter body was null or undefined when calling addType.');
|
throw new Error('Required parameter body was null or undefined when calling addType.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -266,7 +266,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter type was null or undefined when calling deleteEntries.');
|
throw new Error('Required parameter type was null or undefined when calling deleteEntries.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -365,7 +365,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter type was null or undefined when calling deleteEntry.');
|
throw new Error('Required parameter type was null or undefined when calling deleteEntry.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -449,7 +449,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter type was null or undefined when calling deleteType.');
|
throw new Error('Required parameter type was null or undefined when calling deleteType.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -531,7 +531,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter dossierTemplateId was null or undefined when calling deleteTypes.');
|
throw new Error('Required parameter dossierTemplateId was null or undefined when calling deleteTypes.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -621,7 +621,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter type was null or undefined when calling downloadDictionaryFile.');
|
throw new Error('Required parameter type was null or undefined when calling downloadDictionaryFile.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -689,7 +689,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter dossierTemplateId was null or undefined when calling getAllTypes.');
|
throw new Error('Required parameter dossierTemplateId was null or undefined when calling getAllTypes.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -813,7 +813,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter type was null or undefined when calling getDictionaryForType.');
|
throw new Error('Required parameter type was null or undefined when calling getDictionaryForType.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -964,7 +964,7 @@ export class DictionaryControllerService {
|
|||||||
throw new Error('Required parameter type was null or undefined when calling updateType.');
|
throw new Error('Required parameter type was null or undefined when calling updateType.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierId !== undefined && dossierId !== null) {
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
}
|
}
|
||||||
@ -1089,7 +1089,7 @@ export class DictionaryControllerService {
|
|||||||
if (useForm) {
|
if (useForm) {
|
||||||
formParams = new FormData();
|
formParams = new FormData();
|
||||||
} else {
|
} else {
|
||||||
formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
formParams = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file !== undefined) {
|
if (file !== undefined) {
|
||||||
|
|||||||
@ -16,8 +16,7 @@ import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/commo
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
import { DigitalSignature } from '../model/digitalSignature';
|
import { DigitalSignature } from '../model/digitalSignature';
|
||||||
import { DigitalSignatureViewModelReq } from '../model/digitalSignatureViewModelReq';
|
import { DigitalSignatureViewModel } from '../model/digitalSignatureViewModel';
|
||||||
import { DigitalSignatureViewModelRes } from '../model/digitalSignatureViewModelRes';
|
|
||||||
|
|
||||||
import { BASE_PATH } from '../variables';
|
import { BASE_PATH } from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
@ -85,11 +84,11 @@ 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDigitalSignature(observe?: 'body', reportProgress?: boolean): Observable<DigitalSignatureViewModelRes>;
|
public getDigitalSignature(observe?: 'body', reportProgress?: boolean): Observable<DigitalSignatureViewModel>;
|
||||||
|
|
||||||
public getDigitalSignature(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DigitalSignatureViewModelRes>>;
|
public getDigitalSignature(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DigitalSignatureViewModel>>;
|
||||||
|
|
||||||
public getDigitalSignature(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DigitalSignatureViewModelRes>>;
|
public getDigitalSignature(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DigitalSignatureViewModel>>;
|
||||||
|
|
||||||
public getDigitalSignature(observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getDigitalSignature(observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
@ -108,7 +107,7 @@ export class DigitalSignatureControllerService {
|
|||||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<DigitalSignatureViewModelRes>('get', `${this.basePath}/digital-signature`, {
|
return this.httpClient.request<DigitalSignatureViewModel>('get', `${this.basePath}/digital-signature`, {
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -123,23 +122,19 @@ 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public saveDigitalSignature(
|
public saveDigitalSignature(body: DigitalSignature, observe?: 'body', reportProgress?: boolean): Observable<DigitalSignatureViewModel>;
|
||||||
body: DigitalSignature,
|
|
||||||
observe?: 'body',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<DigitalSignatureViewModelRes>;
|
|
||||||
|
|
||||||
public saveDigitalSignature(
|
public saveDigitalSignature(
|
||||||
body: DigitalSignature,
|
body: DigitalSignature,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<DigitalSignatureViewModelRes>>;
|
): Observable<HttpResponse<DigitalSignatureViewModel>>;
|
||||||
|
|
||||||
public saveDigitalSignature(
|
public saveDigitalSignature(
|
||||||
body: DigitalSignature,
|
body: DigitalSignature,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<DigitalSignatureViewModelRes>>;
|
): Observable<HttpEvent<DigitalSignatureViewModel>>;
|
||||||
|
|
||||||
public saveDigitalSignature(body: DigitalSignature, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public saveDigitalSignature(body: DigitalSignature, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (body === null || body === undefined) {
|
||||||
@ -169,7 +164,7 @@ export class DigitalSignatureControllerService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<DigitalSignatureViewModelRes>('post', `${this.basePath}/digital-signature`, {
|
return this.httpClient.request<DigitalSignatureViewModel>('post', `${this.basePath}/digital-signature`, {
|
||||||
body: body,
|
body: body,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@ -185,27 +180,27 @@ 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public updateDigitalSignature(body: DigitalSignatureViewModelReq, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public updateDigitalSignature(body: DigitalSignatureViewModel, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public updateDigitalSignature(
|
public updateDigitalSignature(
|
||||||
body: DigitalSignatureViewModelReq,
|
body: DigitalSignatureViewModel,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public updateDigitalSignature(
|
public updateDigitalSignature(
|
||||||
body: DigitalSignatureViewModelReq,
|
body: DigitalSignatureViewModel,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public updateDigitalSignature(
|
public updateDigitalSignature(
|
||||||
body: DigitalSignatureViewModelReq,
|
body: DigitalSignatureViewModel,
|
||||||
observe: any = 'body',
|
observe: any = 'body',
|
||||||
reportProgress: boolean = false
|
reportProgress: boolean = false
|
||||||
): Observable<any> {
|
): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (body === null || body === undefined) {
|
||||||
throw new Error('Required parameter body was null or undefined when calling saveDigitalSignature1.');
|
throw new Error('Required parameter body was null or undefined when calling updateDigitalSignaturegit_.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
@ -239,4 +234,18 @@ export class DigitalSignatureControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,20 +10,18 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/ /* tslint:disable:no-unused-variable member-ordering */
|
*/ /* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from "@angular/core";
|
import {Inject, Injectable, Optional} from "@angular/core";
|
||||||
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from "@angular/common/http";
|
import {HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse} from "@angular/common/http";
|
||||||
|
import {CustomHttpUrlEncodingCodec} from '../encoder';
|
||||||
|
|
||||||
import { Observable } from "rxjs";
|
import {Observable} from "rxjs";
|
||||||
|
import { DossierAttributes } from '../model/dossierAttributes';
|
||||||
|
import { DossierAttribute } from '../model/dossierAttribute';
|
||||||
|
import {IDossierAttributeConfig} from "../model/dossierAttributeConfig";
|
||||||
|
import {DossierAttributesConfig} from "../model/dossierAttributesConfig";
|
||||||
|
|
||||||
import { IDossierAttributeConfig } from "../model/dossierAttributeConfig";
|
import {BASE_PATH} from "../variables";
|
||||||
import { DossierAttributeReq } from "../model/dossierAttributeReq";
|
import {Configuration} from "../configuration";
|
||||||
import { DossierAttributesConfig } from "../model/dossierAttributesConfig";
|
|
||||||
import { DossierAttributesReq } from "../model/dossierAttributesReq";
|
|
||||||
import { DossierAttributesRes } from "../model/dossierAttributesRes";
|
|
||||||
|
|
||||||
import { BASE_PATH } from "../variables";
|
|
||||||
import { Configuration } from "../configuration";
|
|
||||||
import { CustomHttpUrlEncodingCodec } from "../encoder";
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class DossierAttributesControllerService {
|
export class DossierAttributesControllerService {
|
||||||
@ -54,28 +52,28 @@ export class DossierAttributesControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public addOrUpdateDossierAttributes(
|
public addOrUpdateDossierAttributes(
|
||||||
body: DossierAttributeReq,
|
body: DossierAttribute,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<DossierAttributesRes>;
|
): Observable<DossierAttributes>;
|
||||||
|
|
||||||
public addOrUpdateDossierAttributes(
|
public addOrUpdateDossierAttributes(
|
||||||
body: DossierAttributeReq,
|
body: DossierAttribute,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<DossierAttributesRes>>;
|
): Observable<HttpResponse<DossierAttributes>>;
|
||||||
|
|
||||||
public addOrUpdateDossierAttributes(
|
public addOrUpdateDossierAttributes(
|
||||||
body: DossierAttributeReq,
|
body: DossierAttribute,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<DossierAttributesRes>>;
|
): Observable<HttpEvent<DossierAttributes>>;
|
||||||
|
|
||||||
public addOrUpdateDossierAttributes(
|
public addOrUpdateDossierAttributes(
|
||||||
body: DossierAttributeReq,
|
body: DossierAttribute,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
observe: any = 'body',
|
observe: any = 'body',
|
||||||
reportProgress: boolean = false
|
reportProgress: boolean = false
|
||||||
@ -111,7 +109,7 @@ export class DossierAttributesControllerService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<DossierAttributesRes>(
|
return this.httpClient.request<DossierAttributes>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/dossier-attributes/update/${encodeURIComponent(String(dossierId))}`,
|
`${this.basePath}/dossier-attributes/update/${encodeURIComponent(String(dossierId))}`,
|
||||||
{
|
{
|
||||||
@ -392,7 +390,7 @@ export class DossierAttributesControllerService {
|
|||||||
throw new Error('Required parameter dossierTemplateId was null or undefined when calling deleteDossierAttributesConfig.');
|
throw new Error('Required parameter dossierTemplateId was null or undefined when calling deleteDossierAttributesConfig.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (dossierAttributeIds) {
|
if (dossierAttributeIds) {
|
||||||
dossierAttributeIds.forEach(element => {
|
dossierAttributeIds.forEach(element => {
|
||||||
queryParameters = queryParameters.append('dossierAttributeIds', <any>element);
|
queryParameters = queryParameters.append('dossierAttributeIds', <any>element);
|
||||||
@ -435,19 +433,15 @@ export class DossierAttributesControllerService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDossierAttributes(dossierId: string, observe?: 'body', reportProgress?: boolean): Observable<DossierAttributesRes>;
|
public getDossierAttributes(dossierId: string, observe?: 'body', reportProgress?: boolean): Observable<DossierAttributes>;
|
||||||
|
|
||||||
public getDossierAttributes(
|
public getDossierAttributes(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<DossierAttributesRes>>;
|
): Observable<HttpResponse<DossierAttributes>>;
|
||||||
|
|
||||||
public getDossierAttributes(
|
public getDossierAttributes(dossierId: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DossierAttributes>>;
|
||||||
dossierId: string,
|
|
||||||
observe?: 'events',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<HttpEvent<DossierAttributesRes>>;
|
|
||||||
|
|
||||||
public getDossierAttributes(dossierId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getDossierAttributes(dossierId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (dossierId === null || dossierId === undefined) {
|
if (dossierId === null || dossierId === undefined) {
|
||||||
@ -470,7 +464,7 @@ export class DossierAttributesControllerService {
|
|||||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<DossierAttributesRes>(
|
return this.httpClient.request<DossierAttributes>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/dossier-attributes/${encodeURIComponent(String(dossierId))}`,
|
`${this.basePath}/dossier-attributes/${encodeURIComponent(String(dossierId))}`,
|
||||||
{
|
{
|
||||||
@ -549,28 +543,28 @@ export class DossierAttributesControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public setDossierAttributes(
|
public setDossierAttributes(
|
||||||
body: DossierAttributesReq,
|
body: DossierAttributes,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<DossierAttributesRes>;
|
): Observable<DossierAttributes>;
|
||||||
|
|
||||||
public setDossierAttributes(
|
public setDossierAttributes(
|
||||||
body: DossierAttributesReq,
|
body: DossierAttributes,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<DossierAttributesRes>>;
|
): Observable<HttpResponse<DossierAttributes>>;
|
||||||
|
|
||||||
public setDossierAttributes(
|
public setDossierAttributes(
|
||||||
body: DossierAttributesReq,
|
body: DossierAttributes,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<DossierAttributesRes>>;
|
): Observable<HttpEvent<DossierAttributes>>;
|
||||||
|
|
||||||
public setDossierAttributes(
|
public setDossierAttributes(
|
||||||
body: DossierAttributesReq,
|
body: DossierAttributes,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
observe: any = 'body',
|
observe: any = 'body',
|
||||||
reportProgress: boolean = false
|
reportProgress: boolean = false
|
||||||
@ -606,7 +600,7 @@ export class DossierAttributesControllerService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<DossierAttributesRes>(
|
return this.httpClient.request<DossierAttributes>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/dossier-attributes/set/${encodeURIComponent(String(dossierId))}`,
|
`${this.basePath}/dossier-attributes/set/${encodeURIComponent(String(dossierId))}`,
|
||||||
{
|
{
|
||||||
|
|||||||
@ -253,19 +253,26 @@ export class DossierControllerService {
|
|||||||
/**
|
/**
|
||||||
* Hard deletes existing dossiers.
|
* Hard deletes existing dossiers.
|
||||||
* None
|
* None
|
||||||
* @param body dossierId
|
* @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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public hardDeleteDossiers(body: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public hardDeleteDossiers(dossierId: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public hardDeleteDossiers(body: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
public hardDeleteDossiers(dossierId: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public hardDeleteDossiers(body: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
public hardDeleteDossiers(dossierId: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public hardDeleteDossiers(body: Array<string>, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public hardDeleteDossiers(dossierId: Array<string>, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (dossierId === null || dossierId === undefined) {
|
||||||
throw new Error('Required parameter body was null or undefined when calling hardDeleteDossiers.');
|
throw new Error('Required parameter dossierId was null or undefined when calling hardDeleteDossiers.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
||||||
|
if (dossierId) {
|
||||||
|
dossierId.forEach(element => {
|
||||||
|
queryParameters = queryParameters.append('dossierId', <any>element);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
@ -277,27 +284,14 @@ export class DossierControllerService {
|
|||||||
headers = headers.set('Authorization', 'Bearer ' + accessToken);
|
headers = headers.set('Authorization', 'Bearer ' + accessToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
for (const dossierId of body) {
|
|
||||||
queryParameters = queryParameters.set('dossierId', dossierId);
|
|
||||||
}
|
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
const httpHeaderAccepts: string[] = ['application/json'];
|
const httpHeaderAccepts: string[] = [];
|
||||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||||
if (httpHeaderAcceptSelected !== undefined) {
|
if (httpHeaderAcceptSelected !== undefined) {
|
||||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
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>('delete', `${this.basePath}/deleted-dossiers/hard-delete`, {
|
return this.httpClient.request<any>('delete', `${this.basePath}/deleted-dossiers/hard-delete`, {
|
||||||
body: body,
|
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@ -309,7 +303,7 @@ export class DossierControllerService {
|
|||||||
/**
|
/**
|
||||||
* Restores dossiers.
|
* Restores dossiers.
|
||||||
* None
|
* None
|
||||||
* @param body dossierId
|
* @param body dossierIds
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
@ -333,11 +327,6 @@ export class DossierControllerService {
|
|||||||
headers = headers.set('Authorization', 'Bearer ' + accessToken);
|
headers = headers.set('Authorization', 'Bearer ' + accessToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
||||||
for (const dossierId of body) {
|
|
||||||
queryParameters = queryParameters.set('dossierId', dossierId);
|
|
||||||
}
|
|
||||||
|
|
||||||
// to determine the Accept header
|
// to determine the Accept header
|
||||||
const httpHeaderAccepts: string[] = [];
|
const httpHeaderAccepts: string[] = [];
|
||||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||||
@ -354,7 +343,6 @@ export class DossierControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>('post', `${this.basePath}/deleted-dossiers/restore`, {
|
return this.httpClient.request<any>('post', `${this.basePath}/deleted-dossiers/restore`, {
|
||||||
body: body,
|
body: body,
|
||||||
params: queryParameters,
|
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
|
|||||||
@ -10,15 +10,14 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/ /* tslint:disable:no-unused-variable member-ordering */
|
*/ /* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from "@angular/core";
|
import {Inject, Injectable, Optional} from "@angular/core";
|
||||||
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from "@angular/common/http";
|
import {HttpClient, HttpEvent, HttpHeaders, HttpResponse} from "@angular/common/http";
|
||||||
|
|
||||||
import { Observable } from "rxjs";
|
import {Observable} from "rxjs";
|
||||||
|
|
||||||
import { IDossierTemplate } from "../model/dossierTemplate";
|
import {BASE_PATH} from '../variables';
|
||||||
|
import {Configuration} from '../configuration';
|
||||||
import { BASE_PATH } from "../variables";
|
import {IDossierTemplate} from "../model/dossierTemplate";
|
||||||
import { Configuration } from "../configuration";
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class DossierTemplateControllerService {
|
export class DossierTemplateControllerService {
|
||||||
@ -152,8 +151,11 @@ export class DossierTemplateControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @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?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public deleteDossierTemplates(body: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<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?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public deleteDossierTemplates(body: Array<string>, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public deleteDossierTemplates(body: Array<string>, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (body === null || body === undefined) {
|
||||||
throw new Error('Required parameter body was null or undefined when calling deleteDossierTemplates.');
|
throw new Error('Required parameter body was null or undefined when calling deleteDossierTemplates.');
|
||||||
@ -281,4 +283,18 @@ 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,6 +44,56 @@ 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 deleteDownload.');
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a downloadable byte stream of the requested file
|
* Returns a downloadable byte stream of the requested file
|
||||||
* Use the optional \"inline\" request parameter to select, if this report will be opened in the browser.
|
* Use the optional \"inline\" request parameter to select, if this report will be opened in the browser.
|
||||||
@ -192,52 +242,16 @@ export class DownloadControllerService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a previously created download status
|
* @param consumes string[] mime-types
|
||||||
* None
|
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
||||||
* @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>;
|
private canConsumeForm(consumes: string[]): boolean {
|
||||||
|
const form = 'multipart/form-data';
|
||||||
public deleteDownload(body: RemoveDownloadRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
for (const consume of consumes) {
|
||||||
|
if (form === consume) {
|
||||||
public deleteDownload(body: RemoveDownloadRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
return true;
|
||||||
|
}
|
||||||
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 prepareDownload1.');
|
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
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
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -501,4 +501,18 @@ export class FileAttributesControllerService {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -331,18 +331,21 @@ export class FileManagementControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public hardDeleteFile(dossierId: string, fileIds: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public hardDeleteFile(dossierId: string, fileIds: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public hardDeleteFile(
|
public hardDeleteFile(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileIds: Array<string>,
|
fileIds: Array<string>,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public hardDeleteFile(
|
public hardDeleteFile(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileIds: Array<string>,
|
fileIds: Array<string>,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public hardDeleteFile(
|
public hardDeleteFile(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileIds: Array<string>,
|
fileIds: Array<string>,
|
||||||
|
|||||||
@ -138,4 +138,18 @@ export class GeneralSettingsControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -76,4 +76,18 @@ export class InfoControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/commo
|
|||||||
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
import { LegalBasisMapping } from '../model/legalBasisMapping';
|
import { LegalBasis } from '../model/legalBasis';
|
||||||
|
|
||||||
import { BASE_PATH } from '../variables';
|
import { BASE_PATH } from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
@ -47,23 +47,19 @@ export class LegalBasisMappingControllerService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getLegalBasisMapping(
|
public getLegalBasisMapping(dossierTemplateId: string, observe?: 'body', reportProgress?: boolean): Observable<Array<LegalBasis>>;
|
||||||
dossierTemplateId: string,
|
|
||||||
observe?: 'body',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<Array<LegalBasisMapping>>;
|
|
||||||
|
|
||||||
public getLegalBasisMapping(
|
public getLegalBasisMapping(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<Array<LegalBasisMapping>>>;
|
): Observable<HttpResponse<Array<LegalBasis>>>;
|
||||||
|
|
||||||
public getLegalBasisMapping(
|
public getLegalBasisMapping(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<Array<LegalBasisMapping>>>;
|
): Observable<HttpEvent<Array<LegalBasis>>>;
|
||||||
|
|
||||||
public getLegalBasisMapping(dossierTemplateId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getLegalBasisMapping(dossierTemplateId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (dossierTemplateId === null || dossierTemplateId === undefined) {
|
if (dossierTemplateId === null || dossierTemplateId === undefined) {
|
||||||
@ -86,7 +82,7 @@ export class LegalBasisMappingControllerService {
|
|||||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<Array<LegalBasisMapping>>(
|
return this.httpClient.request<Array<LegalBasis>>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/legalBasis/${encodeURIComponent(String(dossierTemplateId))}`,
|
`${this.basePath}/legalBasis/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
{
|
{
|
||||||
@ -107,28 +103,28 @@ export class LegalBasisMappingControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public setLegalBasisMapping(
|
public setLegalBasisMapping(
|
||||||
body: Array<LegalBasisMapping>,
|
body: Array<LegalBasis>,
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<any>;
|
): Observable<any>;
|
||||||
|
|
||||||
public setLegalBasisMapping(
|
public setLegalBasisMapping(
|
||||||
body: Array<LegalBasisMapping>,
|
body: Array<LegalBasis>,
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public setLegalBasisMapping(
|
public setLegalBasisMapping(
|
||||||
body: Array<LegalBasisMapping>,
|
body: Array<LegalBasis>,
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public setLegalBasisMapping(
|
public setLegalBasisMapping(
|
||||||
body: Array<LegalBasisMapping>,
|
body: Array<LegalBasis>,
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe: any = 'body',
|
observe: any = 'body',
|
||||||
reportProgress: boolean = false
|
reportProgress: boolean = false
|
||||||
@ -172,4 +168,18 @@ export class LegalBasisMappingControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -126,4 +126,18 @@ export class LicenseReportControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -67,6 +67,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<CommentResponse>;
|
): Observable<CommentResponse>;
|
||||||
|
|
||||||
public addComment(
|
public addComment(
|
||||||
body: AddCommentRequest,
|
body: AddCommentRequest,
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
@ -75,6 +76,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<CommentResponse>>;
|
): Observable<HttpResponse<CommentResponse>>;
|
||||||
|
|
||||||
public addComment(
|
public addComment(
|
||||||
body: AddCommentRequest,
|
body: AddCommentRequest,
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
@ -83,6 +85,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<CommentResponse>>;
|
): Observable<HttpEvent<CommentResponse>>;
|
||||||
|
|
||||||
public addComment(
|
public addComment(
|
||||||
body: AddCommentRequest,
|
body: AddCommentRequest,
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
@ -161,6 +164,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public addRedaction(
|
public addRedaction(
|
||||||
body: AddRedactionRequest,
|
body: AddRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -168,6 +172,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public addRedaction(
|
public addRedaction(
|
||||||
body: AddRedactionRequest,
|
body: AddRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -175,6 +180,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public addRedaction(
|
public addRedaction(
|
||||||
body: AddRedactionRequest,
|
body: AddRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -248,6 +254,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<any>;
|
): Observable<any>;
|
||||||
|
|
||||||
public approveRequest(
|
public approveRequest(
|
||||||
body: ApproveRequest,
|
body: ApproveRequest,
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
@ -256,6 +263,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public approveRequest(
|
public approveRequest(
|
||||||
body: ApproveRequest,
|
body: ApproveRequest,
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
@ -264,6 +272,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public approveRequest(
|
public approveRequest(
|
||||||
body: ApproveRequest,
|
body: ApproveRequest,
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
@ -342,6 +351,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<any>;
|
): Observable<any>;
|
||||||
|
|
||||||
public declineRequest(
|
public declineRequest(
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -349,6 +359,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public declineRequest(
|
public declineRequest(
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -356,6 +367,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public declineRequest(
|
public declineRequest(
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -421,6 +433,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public forceRedaction(
|
public forceRedaction(
|
||||||
body: ForceRedactionRequest,
|
body: ForceRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -428,6 +441,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public forceRedaction(
|
public forceRedaction(
|
||||||
body: ForceRedactionRequest,
|
body: ForceRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -435,6 +449,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public forceRedaction(
|
public forceRedaction(
|
||||||
body: ForceRedactionRequest,
|
body: ForceRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -501,18 +516,21 @@ export class ManualRedactionControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getManualRedaction(dossierId: string, fileId: string, observe?: 'body', reportProgress?: boolean): Observable<ManualRedactions>;
|
public getManualRedaction(dossierId: string, fileId: string, observe?: 'body', reportProgress?: boolean): Observable<ManualRedactions>;
|
||||||
|
|
||||||
public getManualRedaction(
|
public getManualRedaction(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualRedactions>>;
|
): Observable<HttpResponse<ManualRedactions>>;
|
||||||
|
|
||||||
public getManualRedaction(
|
public getManualRedaction(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualRedactions>>;
|
): Observable<HttpEvent<ManualRedactions>>;
|
||||||
|
|
||||||
public getManualRedaction(dossierId: string, fileId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getManualRedaction(dossierId: string, fileId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (dossierId === null || dossierId === undefined) {
|
if (dossierId === null || dossierId === undefined) {
|
||||||
throw new Error('Required parameter dossierId was null or undefined when calling getManualRedaction.');
|
throw new Error('Required parameter dossierId was null or undefined when calling getManualRedaction.');
|
||||||
@ -566,6 +584,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public legalBasisChange(
|
public legalBasisChange(
|
||||||
body: LegalBasisChangeRequest,
|
body: LegalBasisChangeRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -573,6 +592,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public legalBasisChange(
|
public legalBasisChange(
|
||||||
body: LegalBasisChangeRequest,
|
body: LegalBasisChangeRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -580,6 +600,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public legalBasisChange(
|
public legalBasisChange(
|
||||||
body: LegalBasisChangeRequest,
|
body: LegalBasisChangeRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -653,6 +674,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public recategorizeImage(
|
public recategorizeImage(
|
||||||
body: ImageRecategorizationRequest,
|
body: ImageRecategorizationRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -660,6 +682,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public recategorizeImage(
|
public recategorizeImage(
|
||||||
body: ImageRecategorizationRequest,
|
body: ImageRecategorizationRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -667,6 +690,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public recategorizeImage(
|
public recategorizeImage(
|
||||||
body: ImageRecategorizationRequest,
|
body: ImageRecategorizationRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -740,6 +764,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public removeRedaction(
|
public removeRedaction(
|
||||||
body: RemoveRedactionRequest,
|
body: RemoveRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -747,6 +772,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public removeRedaction(
|
public removeRedaction(
|
||||||
body: RemoveRedactionRequest,
|
body: RemoveRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -754,6 +780,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public removeRedaction(
|
public removeRedaction(
|
||||||
body: RemoveRedactionRequest,
|
body: RemoveRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -827,6 +854,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public requestAddRedaction(
|
public requestAddRedaction(
|
||||||
body: AddRedactionRequest,
|
body: AddRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -834,6 +862,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestAddRedaction(
|
public requestAddRedaction(
|
||||||
body: AddRedactionRequest,
|
body: AddRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -841,6 +870,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestAddRedaction(
|
public requestAddRedaction(
|
||||||
body: AddRedactionRequest,
|
body: AddRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -912,6 +942,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public requestForceRedaction(
|
public requestForceRedaction(
|
||||||
body: ForceRedactionRequest,
|
body: ForceRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -919,6 +950,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestForceRedaction(
|
public requestForceRedaction(
|
||||||
body: ForceRedactionRequest,
|
body: ForceRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -926,6 +958,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestForceRedaction(
|
public requestForceRedaction(
|
||||||
body: ForceRedactionRequest,
|
body: ForceRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -997,6 +1030,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public requestImageRecategorization(
|
public requestImageRecategorization(
|
||||||
body: ImageRecategorizationRequest,
|
body: ImageRecategorizationRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1004,6 +1038,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestImageRecategorization(
|
public requestImageRecategorization(
|
||||||
body: ImageRecategorizationRequest,
|
body: ImageRecategorizationRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1011,6 +1046,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestImageRecategorization(
|
public requestImageRecategorization(
|
||||||
body: ImageRecategorizationRequest,
|
body: ImageRecategorizationRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1084,6 +1120,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public requestLegalBasisChange(
|
public requestLegalBasisChange(
|
||||||
body: LegalBasisChangeRequest,
|
body: LegalBasisChangeRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1091,6 +1128,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestLegalBasisChange(
|
public requestLegalBasisChange(
|
||||||
body: LegalBasisChangeRequest,
|
body: LegalBasisChangeRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1098,6 +1136,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestLegalBasisChange(
|
public requestLegalBasisChange(
|
||||||
body: LegalBasisChangeRequest,
|
body: LegalBasisChangeRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1171,6 +1210,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ManualAddResponse>;
|
): Observable<ManualAddResponse>;
|
||||||
|
|
||||||
public requestRemoveRedaction(
|
public requestRemoveRedaction(
|
||||||
body: RemoveRedactionRequest,
|
body: RemoveRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1178,6 +1218,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ManualAddResponse>>;
|
): Observable<HttpResponse<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestRemoveRedaction(
|
public requestRemoveRedaction(
|
||||||
body: RemoveRedactionRequest,
|
body: RemoveRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1185,6 +1226,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ManualAddResponse>>;
|
): Observable<HttpEvent<ManualAddResponse>>;
|
||||||
|
|
||||||
public requestRemoveRedaction(
|
public requestRemoveRedaction(
|
||||||
body: RemoveRedactionRequest,
|
body: RemoveRedactionRequest,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1252,6 +1294,7 @@ export class ManualRedactionControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public undo(annotationId: string, dossierId: string, fileId: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public undo(annotationId: string, dossierId: string, fileId: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public undo(
|
public undo(
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1259,6 +1302,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public undo(
|
public undo(
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1266,6 +1310,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public undo(
|
public undo(
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
@ -1333,6 +1378,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<any>;
|
): Observable<any>;
|
||||||
|
|
||||||
public undoComment(
|
public undoComment(
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
commentId: string,
|
commentId: string,
|
||||||
@ -1341,6 +1387,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public undoComment(
|
public undoComment(
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
commentId: string,
|
commentId: string,
|
||||||
@ -1349,6 +1396,7 @@ export class ManualRedactionControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public undoComment(
|
public undoComment(
|
||||||
annotationId: string,
|
annotationId: string,
|
||||||
commentId: string,
|
commentId: string,
|
||||||
@ -1389,7 +1437,6 @@ export class ManualRedactionControllerService {
|
|||||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
// to determine the Content-Type header
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'delete',
|
'delete',
|
||||||
`${this.basePath}/manualRedaction/comment/undo/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(
|
`${this.basePath}/manualRedaction/comment/undo/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(
|
||||||
@ -1403,4 +1450,18 @@ export class ManualRedactionControllerService {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,9 +23,9 @@ import { Configuration } from '../configuration';
|
|||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class NotificationControllerService {
|
export class NotificationControllerService {
|
||||||
protected basePath = '';
|
|
||||||
public defaultHeaders = new HttpHeaders();
|
public defaultHeaders = new HttpHeaders();
|
||||||
public configuration = new Configuration();
|
public configuration = new Configuration();
|
||||||
|
protected basePath = '';
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected httpClient: HttpClient,
|
protected httpClient: HttpClient,
|
||||||
@ -41,20 +41,6 @@ export class NotificationControllerService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @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 notifications
|
* Delete notifications
|
||||||
* None
|
* None
|
||||||
@ -63,8 +49,11 @@ export class NotificationControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deleteNotifications(body: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public deleteNotifications(body: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public deleteNotifications(body: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
public deleteNotifications(body: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public deleteNotifications(body: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
public deleteNotifications(body: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public deleteNotifications(body: Array<string>, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public deleteNotifications(body: Array<string>, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (body === null || body === undefined) {
|
||||||
throw new Error('Required parameter body was null or undefined when calling deleteNotifications.');
|
throw new Error('Required parameter body was null or undefined when calling deleteNotifications.');
|
||||||
@ -110,16 +99,19 @@ export class NotificationControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getNotifications(includeSeen: boolean, observe?: 'body', reportProgress?: boolean): Observable<NotificationResponse>;
|
public getNotifications(includeSeen: boolean, observe?: 'body', reportProgress?: boolean): Observable<NotificationResponse>;
|
||||||
|
|
||||||
public getNotifications(
|
public getNotifications(
|
||||||
includeSeen: boolean,
|
includeSeen: boolean,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<NotificationResponse>>;
|
): Observable<HttpResponse<NotificationResponse>>;
|
||||||
|
|
||||||
public getNotifications(
|
public getNotifications(
|
||||||
includeSeen: boolean,
|
includeSeen: boolean,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<NotificationResponse>>;
|
): Observable<HttpEvent<NotificationResponse>>;
|
||||||
|
|
||||||
public getNotifications(includeSeen: boolean, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getNotifications(includeSeen: boolean, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (includeSeen === null || includeSeen === undefined) {
|
if (includeSeen === null || includeSeen === undefined) {
|
||||||
throw new Error('Required parameter includeSeen was null or undefined when calling getNotifications.');
|
throw new Error('Required parameter includeSeen was null or undefined when calling getNotifications.');
|
||||||
@ -164,18 +156,21 @@ export class NotificationControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public toggleNotificationRead(body: Array<string>, setRead: boolean, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public toggleNotificationRead(body: Array<string>, setRead: boolean, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public toggleNotificationRead(
|
public toggleNotificationRead(
|
||||||
body: Array<string>,
|
body: Array<string>,
|
||||||
setRead: boolean,
|
setRead: boolean,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public toggleNotificationRead(
|
public toggleNotificationRead(
|
||||||
body: Array<string>,
|
body: Array<string>,
|
||||||
setRead: boolean,
|
setRead: boolean,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public toggleNotificationRead(
|
public toggleNotificationRead(
|
||||||
body: Array<string>,
|
body: Array<string>,
|
||||||
setRead: boolean,
|
setRead: boolean,
|
||||||
@ -237,18 +232,21 @@ export class NotificationControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public toggleNotificationSeen(body: Array<string>, setSeen: boolean, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public toggleNotificationSeen(body: Array<string>, setSeen: boolean, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public toggleNotificationSeen(
|
public toggleNotificationSeen(
|
||||||
body: Array<string>,
|
body: Array<string>,
|
||||||
setSeen: boolean,
|
setSeen: boolean,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public toggleNotificationSeen(
|
public toggleNotificationSeen(
|
||||||
body: Array<string>,
|
body: Array<string>,
|
||||||
setSeen: boolean,
|
setSeen: boolean,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public toggleNotificationSeen(
|
public toggleNotificationSeen(
|
||||||
body: Array<string>,
|
body: Array<string>,
|
||||||
setSeen: boolean,
|
setSeen: boolean,
|
||||||
@ -300,4 +298,18 @@ export class NotificationControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -264,16 +264,35 @@ export class ReanalysisControllerService {
|
|||||||
* None
|
* None
|
||||||
* @param dossierId dossierId
|
* @param dossierId dossierId
|
||||||
* @param fileId fileId
|
* @param fileId fileId
|
||||||
|
* @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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public ocrFile(dossierId: string, fileId: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public ocrFile(dossierId: string, fileId: string, force?: boolean, 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,
|
||||||
|
force?: boolean,
|
||||||
|
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,
|
||||||
|
force?: boolean,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean
|
||||||
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public ocrFile(dossierId: string, fileId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public ocrFile(
|
||||||
|
dossierId: string,
|
||||||
|
fileId: string,
|
||||||
|
force?: boolean,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false
|
||||||
|
): Observable<any> {
|
||||||
if (dossierId === null || dossierId === undefined) {
|
if (dossierId === null || dossierId === undefined) {
|
||||||
throw new Error('Required parameter dossierId was null or undefined when calling ocrFile.');
|
throw new Error('Required parameter dossierId was null or undefined when calling ocrFile.');
|
||||||
}
|
}
|
||||||
@ -282,6 +301,11 @@ export class ReanalysisControllerService {
|
|||||||
throw new Error('Required parameter fileId was null or undefined when calling ocrFile.');
|
throw new Error('Required parameter fileId was null or undefined when calling ocrFile.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
||||||
|
if (force !== undefined && force !== null) {
|
||||||
|
queryParameters = queryParameters.set('force', <any>force);
|
||||||
|
}
|
||||||
|
|
||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (RED-OAUTH) required
|
// authentication (RED-OAUTH) required
|
||||||
@ -302,6 +326,7 @@ export class ReanalysisControllerService {
|
|||||||
'post',
|
'post',
|
||||||
`${this.basePath}/ocr/reanalyze/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(String(fileId))}`,
|
`${this.basePath}/ocr/reanalyze/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(String(fileId))}`,
|
||||||
{
|
{
|
||||||
|
params: queryParameters,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -581,6 +606,63 @@ export class ReanalysisControllerService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reindex a dossier, files of a dossier or all
|
||||||
|
* None
|
||||||
|
* @param body fileIds
|
||||||
|
* @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 reindex(body: Array<string>, dossierId?: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
|
public reindex(body: Array<string>, dossierId?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
|
public reindex(body: Array<string>, dossierId?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
|
public reindex(body: Array<string>, 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 reindex.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
||||||
|
if (dossierId !== undefined && dossierId !== null) {
|
||||||
|
queryParameters = queryParameters.set('dossierId', <any>dossierId);
|
||||||
|
}
|
||||||
|
|
||||||
|
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}/reindex`, {
|
||||||
|
body: body,
|
||||||
|
params: queryParameters,
|
||||||
|
withCredentials: this.configuration.withCredentials,
|
||||||
|
headers: headers,
|
||||||
|
observe: observe,
|
||||||
|
reportProgress: reportProgress
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exclude or re-include a file to analysis
|
* Exclude or re-include a file to analysis
|
||||||
* None
|
* None
|
||||||
@ -662,4 +744,18 @@ export class ReanalysisControllerService {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,11 +11,11 @@
|
|||||||
*/ /* tslint:disable:no-unused-variable member-ordering */
|
*/ /* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
|
||||||
|
import { CustomHttpUrlEncodingCodec } from '../encoder';
|
||||||
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
import { RedactionChangeLog } from '../model/redactionChangeLog';
|
|
||||||
import { RedactionLog } from '../model/redactionLog';
|
import { RedactionLog } from '../model/redactionLog';
|
||||||
import { SectionGrid } from '../model/sectionGrid';
|
import { SectionGrid } from '../model/sectionGrid';
|
||||||
|
|
||||||
@ -43,37 +43,42 @@ export class RedactionLogControllerService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the redaction changelog for a fileId
|
* Gets the redaction log for a fileId
|
||||||
* None
|
* None
|
||||||
* @param dossierId dossierId
|
* @param dossierId dossierId
|
||||||
* @param fileId fileId
|
* @param fileId fileId
|
||||||
|
* @param withManualRedactions withManualRedactions
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getRedactionChangeLog(
|
public getRedactionLog(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
|
withManualRedactions?: boolean,
|
||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<RedactionChangeLog>;
|
): Observable<RedactionLog>;
|
||||||
|
|
||||||
public getRedactionChangeLog(
|
public getRedactionLog(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
|
withManualRedactions?: boolean,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<RedactionChangeLog>>;
|
): Observable<HttpResponse<RedactionLog>>;
|
||||||
|
|
||||||
public getRedactionChangeLog(
|
public getRedactionLog(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
|
withManualRedactions?: boolean,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<RedactionChangeLog>>;
|
): Observable<HttpEvent<RedactionLog>>;
|
||||||
|
|
||||||
public getRedactionChangeLog(
|
public getRedactionLog(
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
|
withManualRedactions?: boolean,
|
||||||
observe: any = 'body',
|
observe: any = 'body',
|
||||||
reportProgress: boolean = false
|
reportProgress: boolean = false
|
||||||
): Observable<any> {
|
): Observable<any> {
|
||||||
@ -85,65 +90,9 @@ export class RedactionLogControllerService {
|
|||||||
throw new Error('Required parameter fileId was null or undefined when calling getRedactionLog.');
|
throw new Error('Required parameter fileId was null or undefined when calling getRedactionLog.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let headers = this.defaultHeaders;
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
||||||
|
if (withManualRedactions !== undefined && withManualRedactions !== null) {
|
||||||
// authentication (RED-OAUTH) required
|
queryParameters = queryParameters.set('withManualRedactions', <any>withManualRedactions);
|
||||||
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<RedactionChangeLog>(
|
|
||||||
'get',
|
|
||||||
`${this.basePath}/redactionChnageLog/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(String(fileId))}`,
|
|
||||||
{
|
|
||||||
withCredentials: this.configuration.withCredentials,
|
|
||||||
headers: headers,
|
|
||||||
observe: observe,
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the redaction log for a fileId
|
|
||||||
* None
|
|
||||||
* @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 getRedactionLog(dossierId: string, fileId: string, observe?: 'body', reportProgress?: boolean): Observable<RedactionLog>;
|
|
||||||
|
|
||||||
public getRedactionLog(
|
|
||||||
dossierId: string,
|
|
||||||
fileId: string,
|
|
||||||
observe?: 'response',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<HttpResponse<RedactionLog>>;
|
|
||||||
|
|
||||||
public getRedactionLog(
|
|
||||||
dossierId: string,
|
|
||||||
fileId: string,
|
|
||||||
observe?: 'events',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<HttpEvent<RedactionLog>>;
|
|
||||||
|
|
||||||
public getRedactionLog(dossierId: string, fileId: 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 getRedactionLog1.');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fileId === null || fileId === undefined) {
|
|
||||||
throw new Error('Required parameter fileId was null or undefined when calling getRedactionLog1.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
@ -166,6 +115,7 @@ export class RedactionLogControllerService {
|
|||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redactionLog/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(String(fileId))}`,
|
`${this.basePath}/redactionLog/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(String(fileId))}`,
|
||||||
{
|
{
|
||||||
|
params: queryParameters,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -234,4 +184,18 @@ 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,9 +24,9 @@ import { Configuration } from '../configuration';
|
|||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ReportTemplateControllerService {
|
export class ReportTemplateControllerService {
|
||||||
protected basePath = '';
|
|
||||||
public defaultHeaders = new HttpHeaders();
|
public defaultHeaders = new HttpHeaders();
|
||||||
public configuration = new Configuration();
|
public configuration = new Configuration();
|
||||||
|
protected basePath = '';
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected httpClient: HttpClient,
|
protected httpClient: HttpClient,
|
||||||
@ -42,20 +42,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
|
* Delete template file for redaction-report
|
||||||
* None
|
* None
|
||||||
@ -65,18 +51,21 @@ export class ReportTemplateControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deleteTemplate(dossierTemplateId: string, templateId: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public deleteTemplate(dossierTemplateId: string, templateId: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public deleteTemplate(
|
public deleteTemplate(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
templateId: string,
|
templateId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public deleteTemplate(
|
public deleteTemplate(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
templateId: string,
|
templateId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public deleteTemplate(
|
public deleteTemplate(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
templateId: string,
|
templateId: string,
|
||||||
@ -133,18 +122,21 @@ export class ReportTemplateControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<any>;
|
): Observable<any>;
|
||||||
|
|
||||||
public downloadReportTemplate(
|
public downloadReportTemplate(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
templateId: string,
|
templateId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public downloadReportTemplate(
|
public downloadReportTemplate(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
templateId: string,
|
templateId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public downloadReportTemplate(
|
public downloadReportTemplate(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
templateId: string,
|
templateId: string,
|
||||||
@ -175,11 +167,10 @@ export class ReportTemplateControllerService {
|
|||||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request(
|
return this.httpClient.request<any>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/templateUpload/${encodeURIComponent(String(dossierTemplateId))}/${encodeURIComponent(String(templateId))}`,
|
`${this.basePath}/templateUpload/${encodeURIComponent(String(dossierTemplateId))}/${encodeURIComponent(String(templateId))}`,
|
||||||
{
|
{
|
||||||
responseType: 'blob',
|
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -200,16 +191,19 @@ export class ReportTemplateControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<PlaceholdersResponse>;
|
): Observable<PlaceholdersResponse>;
|
||||||
|
|
||||||
public getAvailablePlaceholders(
|
public getAvailablePlaceholders(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<PlaceholdersResponse>>;
|
): Observable<HttpResponse<PlaceholdersResponse>>;
|
||||||
|
|
||||||
public getAvailablePlaceholders(
|
public getAvailablePlaceholders(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<PlaceholdersResponse>>;
|
): Observable<HttpEvent<PlaceholdersResponse>>;
|
||||||
|
|
||||||
public getAvailablePlaceholders(dossierTemplateId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getAvailablePlaceholders(dossierTemplateId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (dossierTemplateId === null || dossierTemplateId === undefined) {
|
if (dossierTemplateId === null || dossierTemplateId === undefined) {
|
||||||
throw new Error('Required parameter dossierTemplateId was null or undefined when calling getAvailablePlaceholders.');
|
throw new Error('Required parameter dossierTemplateId was null or undefined when calling getAvailablePlaceholders.');
|
||||||
@ -255,16 +249,19 @@ export class ReportTemplateControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<Array<ReportTemplate>>;
|
): Observable<Array<ReportTemplate>>;
|
||||||
|
|
||||||
public getAvailableReportTemplates(
|
public getAvailableReportTemplates(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<Array<ReportTemplate>>>;
|
): Observable<HttpResponse<Array<ReportTemplate>>>;
|
||||||
|
|
||||||
public getAvailableReportTemplates(
|
public getAvailableReportTemplates(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<Array<ReportTemplate>>>;
|
): Observable<HttpEvent<Array<ReportTemplate>>>;
|
||||||
|
|
||||||
public getAvailableReportTemplates(dossierTemplateId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getAvailableReportTemplates(dossierTemplateId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (dossierTemplateId === null || dossierTemplateId === undefined) {
|
if (dossierTemplateId === null || dossierTemplateId === undefined) {
|
||||||
throw new Error('Required parameter dossierTemplateId was null or undefined when calling getAvailableReportTemplates.');
|
throw new Error('Required parameter dossierTemplateId was null or undefined when calling getAvailableReportTemplates.');
|
||||||
@ -314,6 +311,7 @@ export class ReportTemplateControllerService {
|
|||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<ReportTemplate>;
|
): Observable<ReportTemplate>;
|
||||||
|
|
||||||
public uploadTemplateForm(
|
public uploadTemplateForm(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
multiFileReport?: boolean,
|
multiFileReport?: boolean,
|
||||||
@ -321,6 +319,7 @@ export class ReportTemplateControllerService {
|
|||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<ReportTemplate>>;
|
): Observable<HttpResponse<ReportTemplate>>;
|
||||||
|
|
||||||
public uploadTemplateForm(
|
public uploadTemplateForm(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
multiFileReport?: boolean,
|
multiFileReport?: boolean,
|
||||||
@ -328,6 +327,7 @@ export class ReportTemplateControllerService {
|
|||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<ReportTemplate>>;
|
): Observable<HttpEvent<ReportTemplate>>;
|
||||||
|
|
||||||
public uploadTemplateForm(
|
public uploadTemplateForm(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
multiFileReport?: boolean,
|
multiFileReport?: boolean,
|
||||||
@ -391,4 +391,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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,9 +23,9 @@ import { Configuration } from '../configuration';
|
|||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class SearchControllerService {
|
export class SearchControllerService {
|
||||||
protected basePath = '';
|
|
||||||
public defaultHeaders = new HttpHeaders();
|
public defaultHeaders = new HttpHeaders();
|
||||||
public configuration = new Configuration();
|
public configuration = new Configuration();
|
||||||
|
protected basePath = '';
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected httpClient: HttpClient,
|
protected httpClient: HttpClient,
|
||||||
@ -49,8 +49,11 @@ export class SearchControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public search(body: SearchRequest, observe?: 'body', reportProgress?: boolean): Observable<SearchResult>;
|
public search(body: SearchRequest, observe?: 'body', reportProgress?: boolean): Observable<SearchResult>;
|
||||||
|
|
||||||
public search(body: SearchRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<SearchResult>>;
|
public search(body: SearchRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<SearchResult>>;
|
||||||
|
|
||||||
public search(body: SearchRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<SearchResult>>;
|
public search(body: SearchRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<SearchResult>>;
|
||||||
|
|
||||||
public search(body: SearchRequest, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public search(body: SearchRequest, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (body === null || body === undefined) {
|
||||||
throw new Error('Required parameter body was null or undefined when calling search.');
|
throw new Error('Required parameter body was null or undefined when calling search.');
|
||||||
@ -87,4 +90,18 @@ export class SearchControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,10 +15,9 @@ import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/commo
|
|||||||
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
import { SMTPConfigurationModel } from '../model/sMTPConfigurationModel';
|
|
||||||
|
|
||||||
import { BASE_PATH } from '../variables';
|
import { BASE_PATH } from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
|
import { SMTPConfiguration } from '../model/SMTPConfiguration';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class SmtpConfigurationControllerService {
|
export class SmtpConfigurationControllerService {
|
||||||
@ -83,11 +82,11 @@ export class SmtpConfigurationControllerService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getCurrentSMTPConfiguration(observe?: 'body', reportProgress?: boolean): Observable<SMTPConfigurationModel>;
|
public getCurrentSMTPConfiguration(observe?: 'body', reportProgress?: boolean): Observable<SMTPConfiguration>;
|
||||||
|
|
||||||
public getCurrentSMTPConfiguration(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<SMTPConfigurationModel>>;
|
public getCurrentSMTPConfiguration(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<SMTPConfiguration>>;
|
||||||
|
|
||||||
public getCurrentSMTPConfiguration(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<SMTPConfigurationModel>>;
|
public getCurrentSMTPConfiguration(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<SMTPConfiguration>>;
|
||||||
|
|
||||||
public getCurrentSMTPConfiguration(observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getCurrentSMTPConfiguration(observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
@ -106,7 +105,7 @@ export class SmtpConfigurationControllerService {
|
|||||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<SMTPConfigurationModel>('get', `${this.basePath}/configuration/smtp`, {
|
return this.httpClient.request<SMTPConfiguration>('get', `${this.basePath}/configuration/smtp`, {
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
@ -121,17 +120,13 @@ export class SmtpConfigurationControllerService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public testSMTPConfiguration(body: SMTPConfigurationModel, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public testSMTPConfiguration(body: SMTPConfiguration, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public testSMTPConfiguration(
|
public testSMTPConfiguration(body: SMTPConfiguration, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
||||||
body: SMTPConfigurationModel,
|
|
||||||
observe?: 'response',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<HttpResponse<any>>;
|
|
||||||
|
|
||||||
public testSMTPConfiguration(body: SMTPConfigurationModel, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
public testSMTPConfiguration(body: SMTPConfiguration, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public testSMTPConfiguration(body: SMTPConfigurationModel, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public testSMTPConfiguration(body: SMTPConfiguration, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (body === null || body === undefined) {
|
||||||
throw new Error('Required parameter body was null or undefined when calling testSMTPConfiguration.');
|
throw new Error('Required parameter body was null or undefined when calling testSMTPConfiguration.');
|
||||||
}
|
}
|
||||||
@ -175,17 +170,13 @@ export class SmtpConfigurationControllerService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public updateSMTPConfiguration(body: SMTPConfigurationModel, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
public updateSMTPConfiguration(body: SMTPConfiguration, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
public updateSMTPConfiguration(
|
public updateSMTPConfiguration(body: SMTPConfiguration, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
||||||
body: SMTPConfigurationModel,
|
|
||||||
observe?: 'response',
|
|
||||||
reportProgress?: boolean
|
|
||||||
): Observable<HttpResponse<any>>;
|
|
||||||
|
|
||||||
public updateSMTPConfiguration(body: SMTPConfigurationModel, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
public updateSMTPConfiguration(body: SMTPConfiguration, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public updateSMTPConfiguration(body: SMTPConfigurationModel, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public updateSMTPConfiguration(body: SMTPConfiguration, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (body === null || body === undefined) {
|
||||||
throw new Error('Required parameter body was null or undefined when calling updateSMTPConfiguration.');
|
throw new Error('Required parameter body was null or undefined when calling updateSMTPConfiguration.');
|
||||||
}
|
}
|
||||||
@ -221,4 +212,18 @@ export class SmtpConfigurationControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,16 +10,17 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/ /* tslint:disable:no-unused-variable member-ordering */
|
*/ /* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from "@angular/core";
|
import {Inject, Injectable, Optional} from "@angular/core";
|
||||||
import { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from "@angular/common/http";
|
import {HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpResponse} from "@angular/common/http";
|
||||||
import { CustomHttpUrlEncodingCodec } from "../encoder";
|
import {CustomHttpUrlEncodingCodec} from "../encoder";
|
||||||
|
|
||||||
import { Observable } from "rxjs";
|
import {Observable} from "rxjs";
|
||||||
|
|
||||||
import { IFile } from "../model/file";
|
import {IFile} from "../model/file";
|
||||||
|
import {JSONPrimitive} from '../model/JSONPrimitive';
|
||||||
|
|
||||||
import { BASE_PATH } from "../variables";
|
import {BASE_PATH} from "../variables";
|
||||||
import { Configuration } from "../configuration";
|
import {Configuration} from "../configuration";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class StatusControllerService {
|
export class StatusControllerService {
|
||||||
@ -49,7 +50,9 @@ export class StatusControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDeletedFileStatus(dossierId: string, observe?: 'body', reportProgress?: boolean): Observable<Array<IFile>>;
|
public getDeletedFileStatus(dossierId: string, observe?: 'body', reportProgress?: boolean): Observable<Array<IFile>>;
|
||||||
|
|
||||||
public getDeletedFileStatus(dossierId: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<IFile>>>;
|
public getDeletedFileStatus(dossierId: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<IFile>>>;
|
||||||
|
|
||||||
public getDeletedFileStatus(dossierId: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<IFile>>>;
|
public getDeletedFileStatus(dossierId: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<IFile>>>;
|
||||||
public getDeletedFileStatus(dossierId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getDeletedFileStatus(dossierId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (dossierId === null || dossierId === undefined) {
|
if (dossierId === null || dossierId === undefined) {
|
||||||
@ -247,43 +250,47 @@ export class StatusControllerService {
|
|||||||
/**
|
/**
|
||||||
* Assigns a reviewer for a file.
|
* Assigns a reviewer for a file.
|
||||||
* None
|
* None
|
||||||
|
* @param body reviewerId
|
||||||
* @param dossierId dossierId
|
* @param dossierId dossierId
|
||||||
* @param fileId fileId
|
* @param fileId fileId
|
||||||
* @param reviewerId reviewerId
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public setFileReviewer(
|
public setFileReviewer(
|
||||||
|
body: JSONPrimitive<string>,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
reviewerId: string,
|
|
||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<any>;
|
): Observable<any>;
|
||||||
|
|
||||||
public setFileReviewer(
|
public setFileReviewer(
|
||||||
|
body: JSONPrimitive<string>,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
reviewerId: string,
|
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public setFileReviewer(
|
public setFileReviewer(
|
||||||
|
body: JSONPrimitive<string>,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
reviewerId: string,
|
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public setFileReviewer(
|
public setFileReviewer(
|
||||||
|
body: JSONPrimitive<string>,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
reviewerId: string,
|
|
||||||
observe: any = 'body',
|
observe: any = 'body',
|
||||||
reportProgress: boolean = false
|
reportProgress: boolean = false
|
||||||
): Observable<any> {
|
): Observable<any> {
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new Error('Required parameter body was null or undefined when calling setFileReviewer.');
|
||||||
|
}
|
||||||
|
|
||||||
if (dossierId === null || dossierId === undefined) {
|
if (dossierId === null || dossierId === undefined) {
|
||||||
throw new Error('Required parameter dossierId was null or undefined when calling setFileReviewer.');
|
throw new Error('Required parameter dossierId was null or undefined when calling setFileReviewer.');
|
||||||
}
|
}
|
||||||
@ -292,8 +299,92 @@ export class StatusControllerService {
|
|||||||
throw new Error('Required parameter fileId was null or undefined when calling setFileReviewer.');
|
throw new Error('Required parameter fileId was null or undefined when calling setFileReviewer.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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}/status/set-reviewer/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(String(fileId))}`,
|
||||||
|
{
|
||||||
|
body: body,
|
||||||
|
withCredentials: this.configuration.withCredentials,
|
||||||
|
headers: headers,
|
||||||
|
observe: observe,
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Assigns a reviewer for a file.
|
||||||
|
* None
|
||||||
|
* @param dossierId dossierId
|
||||||
|
* @param fileId fileId
|
||||||
|
* @param reviewerId reviewerId
|
||||||
|
* @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 setFileReviewer1(
|
||||||
|
dossierId: string,
|
||||||
|
fileId: string,
|
||||||
|
reviewerId: string,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean
|
||||||
|
): Observable<any>;
|
||||||
|
|
||||||
|
public setFileReviewer1(
|
||||||
|
dossierId: string,
|
||||||
|
fileId: string,
|
||||||
|
reviewerId: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean
|
||||||
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
|
public setFileReviewer1(
|
||||||
|
dossierId: string,
|
||||||
|
fileId: string,
|
||||||
|
reviewerId: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean
|
||||||
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
|
public setFileReviewer1(
|
||||||
|
dossierId: string,
|
||||||
|
fileId: string,
|
||||||
|
reviewerId: 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 setFileReviewer1.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fileId === null || fileId === undefined) {
|
||||||
|
throw new Error('Required parameter fileId was null or undefined when calling setFileReviewer1.');
|
||||||
|
}
|
||||||
|
|
||||||
if (reviewerId === null || reviewerId === undefined) {
|
if (reviewerId === null || reviewerId === undefined) {
|
||||||
throw new Error('Required parameter reviewerId was null or undefined when calling setFileReviewer.');
|
throw new Error('Required parameter reviewerId was null or undefined when calling setFileReviewer1.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
@ -543,43 +634,47 @@ export class StatusControllerService {
|
|||||||
/**
|
/**
|
||||||
* Sets the status UNDER_APPROVAL for a file.
|
* Sets the status UNDER_APPROVAL for a file.
|
||||||
* None
|
* None
|
||||||
|
* @param body approverId
|
||||||
* @param dossierId dossierId
|
* @param dossierId dossierId
|
||||||
* @param fileId fileId
|
* @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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public setStatusUnderApproval(
|
public setStatusUnderApproval(
|
||||||
|
body: JSONPrimitive<string>,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
approverId?: string,
|
|
||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<any>;
|
): Observable<any>;
|
||||||
|
|
||||||
public setStatusUnderApproval(
|
public setStatusUnderApproval(
|
||||||
|
body: JSONPrimitive<string>,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
approverId?: string,
|
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<any>>;
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
public setStatusUnderApproval(
|
public setStatusUnderApproval(
|
||||||
|
body: JSONPrimitive<string>,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
approverId?: string,
|
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<any>>;
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
public setStatusUnderApproval(
|
public setStatusUnderApproval(
|
||||||
|
body: JSONPrimitive<string>,
|
||||||
dossierId: string,
|
dossierId: string,
|
||||||
fileId: string,
|
fileId: string,
|
||||||
approverId?: string,
|
|
||||||
observe: any = 'body',
|
observe: any = 'body',
|
||||||
reportProgress: boolean = false
|
reportProgress: boolean = false
|
||||||
): Observable<any> {
|
): Observable<any> {
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new Error('Required parameter body was null or undefined when calling setStatusUnderApproval.');
|
||||||
|
}
|
||||||
|
|
||||||
if (dossierId === null || dossierId === undefined) {
|
if (dossierId === null || dossierId === undefined) {
|
||||||
throw new Error('Required parameter dossierId was null or undefined when calling setStatusUnderApproval.');
|
throw new Error('Required parameter dossierId was null or undefined when calling setStatusUnderApproval.');
|
||||||
}
|
}
|
||||||
@ -588,7 +683,91 @@ export class StatusControllerService {
|
|||||||
throw new Error('Required parameter fileId was null or undefined when calling setStatusUnderApproval.');
|
throw new Error('Required parameter fileId was null or undefined when calling setStatusUnderApproval.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
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}/status/under-approval/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(String(fileId))}`,
|
||||||
|
{
|
||||||
|
body: body,
|
||||||
|
withCredentials: this.configuration.withCredentials,
|
||||||
|
headers: headers,
|
||||||
|
observe: observe,
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the status UNDER_APPROVAL for a file.
|
||||||
|
* None
|
||||||
|
* @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 setStatusUnderApproval1(
|
||||||
|
dossierId: string,
|
||||||
|
fileId: string,
|
||||||
|
approverId?: string,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean
|
||||||
|
): Observable<any>;
|
||||||
|
|
||||||
|
public setStatusUnderApproval1(
|
||||||
|
dossierId: string,
|
||||||
|
fileId: string,
|
||||||
|
approverId?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean
|
||||||
|
): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
|
public setStatusUnderApproval1(
|
||||||
|
dossierId: string,
|
||||||
|
fileId: string,
|
||||||
|
approverId?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean
|
||||||
|
): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
|
public setStatusUnderApproval1(
|
||||||
|
dossierId: string,
|
||||||
|
fileId: string,
|
||||||
|
approverId?: 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 setStatusUnderApproval1.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fileId === null || fileId === undefined) {
|
||||||
|
throw new Error('Required parameter fileId was null or undefined when calling setStatusUnderApproval1.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (approverId !== undefined && approverId !== null) {
|
if (approverId !== undefined && approverId !== null) {
|
||||||
queryParameters = queryParameters.set('approverId', <any>approverId);
|
queryParameters = queryParameters.set('approverId', <any>approverId);
|
||||||
}
|
}
|
||||||
@ -674,7 +853,7 @@ export class StatusControllerService {
|
|||||||
throw new Error('Required parameter dossierId was null or undefined when calling setStatusUnderApprovalForList.');
|
throw new Error('Required parameter dossierId was null or undefined when calling setStatusUnderApprovalForList.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
|
||||||
if (approverId !== undefined && approverId !== null) {
|
if (approverId !== undefined && approverId !== null) {
|
||||||
queryParameters = queryParameters.set('approverId', <any>approverId);
|
queryParameters = queryParameters.set('approverId', <any>approverId);
|
||||||
}
|
}
|
||||||
@ -847,4 +1026,18 @@ export class StatusControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,96 @@
|
|||||||
|
/**
|
||||||
|
* 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 { BASE_PATH } from '../variables';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class StatusReportControllerService {
|
||||||
|
public defaultHeaders = new HttpHeaders();
|
||||||
|
public configuration = new Configuration();
|
||||||
|
protected basePath = '';
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate status report for 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 generateStatusReport(dossierId: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
|
||||||
|
|
||||||
|
public generateStatusReport(dossierId: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
|
||||||
|
|
||||||
|
public generateStatusReport(dossierId: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
|
||||||
|
|
||||||
|
public generateStatusReport(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 generateStatusReport.');
|
||||||
|
}
|
||||||
|
|
||||||
|
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>('get', `${this.basePath}/statusReport/${encodeURIComponent(String(dossierId))}`, {
|
||||||
|
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 false;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -212,7 +212,7 @@ export class UserControllerService {
|
|||||||
|
|
||||||
public deleteUsers(userId: Array<string>, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public deleteUsers(userId: Array<string>, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (userId === null || userId === undefined) {
|
if (userId === null || userId === undefined) {
|
||||||
throw new Error('Required parameter userId was null or undefined when calling deleteUser1.');
|
throw new Error('Required parameter userId was null or undefined when calling deleteUsers.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
||||||
@ -462,7 +462,7 @@ export class UserControllerService {
|
|||||||
|
|
||||||
public updateMyProfile(body: UpdateMyProfileRequest, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public updateMyProfile(body: UpdateMyProfileRequest, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (body === null || body === undefined) {
|
||||||
throw new Error('Required parameter body was null or undefined when calling updateProfile.');
|
throw new Error('Required parameter body was null or undefined when calling updateMyProfile.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
@ -528,11 +528,11 @@ export class UserControllerService {
|
|||||||
reportProgress: boolean = false
|
reportProgress: boolean = false
|
||||||
): Observable<any> {
|
): Observable<any> {
|
||||||
if (body === null || body === undefined) {
|
if (body === null || body === undefined) {
|
||||||
throw new Error('Required parameter body was null or undefined when calling updateProfile1.');
|
throw new Error('Required parameter body was null or undefined when calling updateProfile.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userId === null || userId === undefined) {
|
if (userId === null || userId === undefined) {
|
||||||
throw new Error('Required parameter userId was null or undefined when calling updateProfile1.');
|
throw new Error('Required parameter userId was null or undefined when calling updateProfile.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
@ -566,4 +566,18 @@ export class UserControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -171,4 +171,18 @@ export class UserPreferenceControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -173,4 +173,18 @@ export class VersionsControllerService {
|
|||||||
reportProgress: reportProgress
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -265,4 +265,18 @@ 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,8 +15,7 @@ import { HttpClient, HttpEvent, HttpHeaders, HttpResponse } from '@angular/commo
|
|||||||
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
import { WatermarkModelReq } from '../model/watermarkModelReq';
|
import { WatermarkModel } from '../model/watermarkModel';
|
||||||
import { WatermarkModelRes } from '../model/watermarkModelRes';
|
|
||||||
|
|
||||||
import { BASE_PATH } from '../variables';
|
import { BASE_PATH } from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
@ -90,15 +89,15 @@ export class WatermarkControllerService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getWatermark(dossierTemplateId: string, observe?: 'body', reportProgress?: boolean): Observable<WatermarkModelRes>;
|
public getWatermark(dossierTemplateId: string, observe?: 'body', reportProgress?: boolean): Observable<WatermarkModel>;
|
||||||
|
|
||||||
public getWatermark(
|
public getWatermark(
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<WatermarkModelRes>>;
|
): Observable<HttpResponse<WatermarkModel>>;
|
||||||
|
|
||||||
public getWatermark(dossierTemplateId: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<WatermarkModelRes>>;
|
public getWatermark(dossierTemplateId: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<WatermarkModel>>;
|
||||||
|
|
||||||
public getWatermark(dossierTemplateId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
public getWatermark(dossierTemplateId: string, observe: any = 'body', reportProgress: boolean = false): Observable<any> {
|
||||||
if (dossierTemplateId === null || dossierTemplateId === undefined) {
|
if (dossierTemplateId === null || dossierTemplateId === undefined) {
|
||||||
@ -121,7 +120,7 @@ export class WatermarkControllerService {
|
|||||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<WatermarkModelRes>(
|
return this.httpClient.request<WatermarkModel>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
|
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
{
|
{
|
||||||
@ -142,28 +141,28 @@ export class WatermarkControllerService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public saveWatermark(
|
public saveWatermark(
|
||||||
body: WatermarkModelReq,
|
body: WatermarkModel,
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'body',
|
observe?: 'body',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<WatermarkModelRes>;
|
): Observable<WatermarkModel>;
|
||||||
|
|
||||||
public saveWatermark(
|
public saveWatermark(
|
||||||
body: WatermarkModelReq,
|
body: WatermarkModel,
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'response',
|
observe?: 'response',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpResponse<WatermarkModelRes>>;
|
): Observable<HttpResponse<WatermarkModel>>;
|
||||||
|
|
||||||
public saveWatermark(
|
public saveWatermark(
|
||||||
body: WatermarkModelReq,
|
body: WatermarkModel,
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe?: 'events',
|
observe?: 'events',
|
||||||
reportProgress?: boolean
|
reportProgress?: boolean
|
||||||
): Observable<HttpEvent<WatermarkModelRes>>;
|
): Observable<HttpEvent<WatermarkModel>>;
|
||||||
|
|
||||||
public saveWatermark(
|
public saveWatermark(
|
||||||
body: WatermarkModelReq,
|
body: WatermarkModel,
|
||||||
dossierTemplateId: string,
|
dossierTemplateId: string,
|
||||||
observe: any = 'body',
|
observe: any = 'body',
|
||||||
reportProgress: boolean = false
|
reportProgress: boolean = false
|
||||||
@ -199,7 +198,7 @@ export class WatermarkControllerService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<WatermarkModelRes>(
|
return this.httpClient.request<WatermarkModel>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
|
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
{
|
{
|
||||||
@ -211,4 +210,18 @@ export class WatermarkControllerService {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface DossierAttributeRes {
|
export interface JSONPrimitive<T> {
|
||||||
dossierAttributeId?: string;
|
value?: T;
|
||||||
value?: string;
|
|
||||||
}
|
}
|
||||||
@ -16,6 +16,6 @@ export interface IAudit {
|
|||||||
readonly message?: string;
|
readonly message?: string;
|
||||||
readonly objectId?: string;
|
readonly objectId?: string;
|
||||||
readonly recordDate?: string;
|
readonly recordDate?: string;
|
||||||
readonly recordId?: string;
|
readonly recordId?: number;
|
||||||
readonly userId?: string;
|
readonly userId?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,5 +19,4 @@ export interface AuditSearchRequest {
|
|||||||
requestingUserId?: string;
|
requestingUserId?: string;
|
||||||
to?: string;
|
to?: string;
|
||||||
userId?: string;
|
userId?: string;
|
||||||
withTotalHits?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|||||||
25
libs/red-ui-http/src/lib/model/change.ts
Normal file
25
libs/red-ui-http/src/lib/model/change.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/**
|
||||||
|
* 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 Change {
|
||||||
|
dateTime?: string;
|
||||||
|
type?: Change.TypeEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace Change {
|
||||||
|
export type TypeEnum = 'ADDED' | 'CHANGED' | 'REMOVED';
|
||||||
|
export const TypeEnum = {
|
||||||
|
ADDED: 'ADDED' as TypeEnum,
|
||||||
|
CHANGED: 'CHANGED' as TypeEnum,
|
||||||
|
REMOVED: 'REMOVED' as TypeEnum
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -14,6 +14,7 @@ export interface Colors {
|
|||||||
analysisColor?: string;
|
analysisColor?: string;
|
||||||
defaultColor?: string;
|
defaultColor?: string;
|
||||||
dictionaryRequestColor?: string;
|
dictionaryRequestColor?: string;
|
||||||
|
dossierTemplateId?: string;
|
||||||
manualRedactionColor?: string;
|
manualRedactionColor?: string;
|
||||||
notRedacted?: string;
|
notRedacted?: string;
|
||||||
previewColor?: string;
|
previewColor?: string;
|
||||||
|
|||||||
@ -11,8 +11,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface Comment {
|
export interface Comment {
|
||||||
|
annotationId?: string;
|
||||||
date?: string;
|
date?: string;
|
||||||
id?: string;
|
fileId?: string;
|
||||||
|
id?: number;
|
||||||
|
softDeletedTime?: string;
|
||||||
text?: string;
|
text?: string;
|
||||||
user?: string;
|
user?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface DigitalSignatureViewModelReq {
|
export interface DigitalSignatureViewModel {
|
||||||
certificateName?: string;
|
certificateName?: string;
|
||||||
contactInfo?: string;
|
contactInfo?: string;
|
||||||
location?: string;
|
location?: string;
|
||||||
@ -10,9 +10,8 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface DigitalSignatureViewModelRes {
|
export interface DossierAttribute {
|
||||||
certificateName?: string;
|
dossierAttributeConfigId?: string;
|
||||||
contactInfo?: string;
|
dossierId?: string;
|
||||||
location?: string;
|
value?: string;
|
||||||
reason?: string;
|
|
||||||
}
|
}
|
||||||
@ -15,6 +15,7 @@ export interface IDossierAttributeConfig {
|
|||||||
readonly editable?: boolean;
|
readonly editable?: boolean;
|
||||||
readonly label?: string;
|
readonly label?: string;
|
||||||
readonly placeholder?: string;
|
readonly placeholder?: string;
|
||||||
|
readonly dossierTemplateId?: string;
|
||||||
readonly type?: DossierAttributeConfigType;
|
readonly type?: DossierAttributeConfigType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
16
libs/red-ui-http/src/lib/model/dossierAttributes.ts
Normal file
16
libs/red-ui-http/src/lib/model/dossierAttributes.ts
Normal 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 { DossierAttribute } from './dossierAttribute';
|
||||||
|
|
||||||
|
export interface DossierAttributes {
|
||||||
|
dossierAttributeList?: Array<DossierAttribute>;
|
||||||
|
}
|
||||||
@ -1,16 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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>;
|
|
||||||
}
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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>;
|
|
||||||
}
|
|
||||||
@ -56,10 +56,6 @@ export interface DossierRequest {
|
|||||||
* Id(s) of the word report templates used to generate downloads
|
* Id(s) of the word report templates used to generate downloads
|
||||||
*/
|
*/
|
||||||
readonly reportTemplateIds?: List;
|
readonly reportTemplateIds?: List;
|
||||||
/**
|
|
||||||
* Report File Types for this dossiers submission package.
|
|
||||||
*/
|
|
||||||
readonly reportTypes?: List;
|
|
||||||
/**
|
/**
|
||||||
* Whether a watermark will be applied to the redacted files or not.
|
* Whether a watermark will be applied to the redacted files or not.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -10,7 +10,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface DossierAttributeReq {
|
export interface DossierTemplateIdUploadBody {
|
||||||
dossierAttributeId?: string;
|
file?: Blob;
|
||||||
value?: string;
|
|
||||||
}
|
}
|
||||||
@ -1,28 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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 DownloadDetails {
|
|
||||||
downloadFileTypes?: Array<DownloadDetails.DownloadFileTypesEnum>;
|
|
||||||
fileIds?: Array<string>;
|
|
||||||
reportTemplateIds?: Array<string>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace DownloadDetails {
|
|
||||||
export type DownloadFileTypesEnum = 'ANNOTATED' | 'FLATTEN' | 'ORIGINAL' | 'PREVIEW' | 'REDACTED';
|
|
||||||
export const DownloadFileTypesEnum = {
|
|
||||||
ANNOTATED: 'ANNOTATED' as DownloadFileTypesEnum,
|
|
||||||
FLATTEN: 'FLATTEN' as DownloadFileTypesEnum,
|
|
||||||
ORIGINAL: 'ORIGINAL' as DownloadFileTypesEnum,
|
|
||||||
PREVIEW: 'PREVIEW' as DownloadFileTypesEnum,
|
|
||||||
REDACTED: 'REDACTED' as DownloadFileTypesEnum
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -9,12 +9,12 @@
|
|||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { DownloadDetails } from './downloadDetails';
|
|
||||||
|
|
||||||
export interface DownloadStatus {
|
export interface DownloadStatus {
|
||||||
creationDate?: string;
|
creationDate?: string;
|
||||||
dossierId?: string;
|
dossierId?: string;
|
||||||
downloadDetails?: DownloadDetails;
|
downloadFileTypes?: Array<DownloadStatus.DownloadFileTypesEnum>;
|
||||||
|
fileIds?: Array<string>;
|
||||||
fileSize?: number;
|
fileSize?: number;
|
||||||
filename?: string;
|
filename?: string;
|
||||||
lastDownload?: string;
|
lastDownload?: string;
|
||||||
@ -25,6 +25,14 @@ export interface DownloadStatus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export namespace DownloadStatus {
|
export namespace DownloadStatus {
|
||||||
|
export type DownloadFileTypesEnum = 'ANNOTATED' | 'FLATTEN' | 'ORIGINAL' | 'PREVIEW' | 'REDACTED';
|
||||||
|
export const DownloadFileTypesEnum = {
|
||||||
|
ANNOTATED: 'ANNOTATED' as DownloadFileTypesEnum,
|
||||||
|
FLATTEN: 'FLATTEN' as DownloadFileTypesEnum,
|
||||||
|
ORIGINAL: 'ORIGINAL' as DownloadFileTypesEnum,
|
||||||
|
PREVIEW: 'PREVIEW' as DownloadFileTypesEnum,
|
||||||
|
REDACTED: 'REDACTED' as DownloadFileTypesEnum
|
||||||
|
};
|
||||||
export type StatusEnum = 'FAILED' | 'GENERATING' | 'QUEUED' | 'READY';
|
export type StatusEnum = 'FAILED' | 'GENERATING' | 'QUEUED' | 'READY';
|
||||||
export const StatusEnum = {
|
export const StatusEnum = {
|
||||||
FAILED: 'FAILED' as StatusEnum,
|
FAILED: 'FAILED' as StatusEnum,
|
||||||
|
|||||||
@ -11,15 +11,17 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface IFileAttributeConfig {
|
export interface IFileAttributeConfig {
|
||||||
readonly id: string;
|
|
||||||
readonly csvColumnHeader?: string;
|
readonly csvColumnHeader?: string;
|
||||||
readonly editable?: boolean;
|
readonly displayedInFileList?: boolean;
|
||||||
readonly label?: string;
|
readonly dossierTemplateId?: string;
|
||||||
readonly placeholder?: string;
|
readonly editable?: boolean;
|
||||||
readonly primaryAttribute?: boolean;
|
readonly filterable?: boolean;
|
||||||
readonly displayedInFileList?: boolean;
|
readonly id: string;
|
||||||
readonly filterable?: boolean;
|
readonly label?: string;
|
||||||
readonly type?: FileAttributeConfigType;
|
readonly placeholder?: string;
|
||||||
|
readonly primaryAttribute?: boolean;
|
||||||
|
readonly type?: FileAttributeConfigType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const FileAttributeConfigTypes = {
|
export const FileAttributeConfigTypes = {
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface GeneralConfigurationModel {
|
export interface GeneralConfigurationModel {
|
||||||
forgotPasswordFunctionEnabled?: boolean;
|
|
||||||
displayName?: string;
|
|
||||||
auxiliaryName?: string;
|
auxiliaryName?: string;
|
||||||
|
displayName?: string;
|
||||||
|
forgotPasswordFunctionEnabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,10 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface IdRemoval {
|
export interface IdRemoval {
|
||||||
id?: string;
|
annotationId?: string;
|
||||||
|
fileId?: string;
|
||||||
processedDate?: string;
|
processedDate?: string;
|
||||||
removeFromDictionary?: boolean;
|
removeFromDictionary?: boolean;
|
||||||
requestDate?: string;
|
requestDate?: string;
|
||||||
|
softDeletedTime?: string;
|
||||||
status?: IdRemoval.StatusEnum;
|
status?: IdRemoval.StatusEnum;
|
||||||
user?: string;
|
user?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,8 +10,9 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface LegalBasisMapping {
|
export interface LegalBasis {
|
||||||
description?: string;
|
description?: string;
|
||||||
|
id?: number;
|
||||||
name?: string;
|
name?: string;
|
||||||
reason?: string;
|
reason?: string;
|
||||||
}
|
}
|
||||||
@ -12,5 +12,5 @@
|
|||||||
|
|
||||||
export interface ManualAddResponse {
|
export interface ManualAddResponse {
|
||||||
annotationId?: string;
|
annotationId?: string;
|
||||||
commentId?: string;
|
commentId?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,10 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface ManualForceRedaction {
|
export interface ManualForceRedaction {
|
||||||
id?: string;
|
annotationId?: string;
|
||||||
|
fileId?: string;
|
||||||
legalBasis?: string;
|
legalBasis?: string;
|
||||||
processedDate?: string;
|
processedDate?: string;
|
||||||
requestDate?: string;
|
requestDate?: string;
|
||||||
|
softDeletedTime?: string;
|
||||||
status?: ManualForceRedaction.StatusEnum;
|
status?: ManualForceRedaction.StatusEnum;
|
||||||
user?: string;
|
user?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,11 +11,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface ManualImageRecategorization {
|
export interface ManualImageRecategorization {
|
||||||
id?: string;
|
annotationId?: string;
|
||||||
legalBasis?: string;
|
fileId?: string;
|
||||||
processedDate?: string;
|
processedDate?: string;
|
||||||
redacted?: boolean;
|
|
||||||
requestDate?: string;
|
requestDate?: string;
|
||||||
|
softDeletedTime?: string;
|
||||||
status?: ManualImageRecategorization.StatusEnum;
|
status?: ManualImageRecategorization.StatusEnum;
|
||||||
type?: string;
|
type?: string;
|
||||||
user?: string;
|
user?: string;
|
||||||
|
|||||||
@ -11,10 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface ManualLegalBasisChange {
|
export interface ManualLegalBasisChange {
|
||||||
id?: string;
|
annotationId?: string;
|
||||||
|
fileId?: string;
|
||||||
legalBasis?: string;
|
legalBasis?: string;
|
||||||
processedDate?: string;
|
processedDate?: string;
|
||||||
requestDate?: string;
|
requestDate?: string;
|
||||||
|
softDeletedTime?: string;
|
||||||
status?: ManualLegalBasisChange.StatusEnum;
|
status?: ManualLegalBasisChange.StatusEnum;
|
||||||
user?: string;
|
user?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,14 +14,16 @@ import { Rectangle } from './rectangle';
|
|||||||
export interface ManualRedactionEntry {
|
export interface ManualRedactionEntry {
|
||||||
addToDictionary?: boolean;
|
addToDictionary?: boolean;
|
||||||
addToDossierDictionary?: boolean;
|
addToDossierDictionary?: boolean;
|
||||||
id?: string;
|
annotationId?: string;
|
||||||
|
fileId?: string;
|
||||||
legalBasis?: string;
|
legalBasis?: string;
|
||||||
positions?: Array<Rectangle>;
|
positions?: Array<Rectangle>;
|
||||||
processedDate?: string;
|
processedDate?: string;
|
||||||
reason?: string;
|
reason?: string;
|
||||||
requestDate?: string;
|
requestDate?: string;
|
||||||
|
softDeletedTime?: string;
|
||||||
status?: ManualRedactionEntry.StatusEnum;
|
status?: ManualRedactionEntry.StatusEnum;
|
||||||
type?: string;
|
typeId?: string;
|
||||||
user?: string;
|
user?: string;
|
||||||
value?: string;
|
value?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,8 +13,8 @@ import { Comment } from './comment';
|
|||||||
import { IdRemoval } from './idRemoval';
|
import { IdRemoval } from './idRemoval';
|
||||||
import { ManualForceRedaction } from './manualForceRedaction';
|
import { ManualForceRedaction } from './manualForceRedaction';
|
||||||
import { ManualImageRecategorization } from './manualImageRecategorization';
|
import { ManualImageRecategorization } from './manualImageRecategorization';
|
||||||
import { ManualRedactionEntry } from './manualRedactionEntry';
|
|
||||||
import { ManualLegalBasisChange } from './manualLegalBasisChange';
|
import { ManualLegalBasisChange } from './manualLegalBasisChange';
|
||||||
|
import { ManualRedactionEntry } from './manualRedactionEntry';
|
||||||
|
|
||||||
export interface ManualRedactions {
|
export interface ManualRedactions {
|
||||||
comments?: { [key: string]: Array<Comment> };
|
comments?: { [key: string]: Array<Comment> };
|
||||||
|
|||||||
@ -14,6 +14,7 @@ import { MatchedSection } from './matchedSection';
|
|||||||
export interface MatchedDocument {
|
export interface MatchedDocument {
|
||||||
containsAllMatchedSections?: boolean;
|
containsAllMatchedSections?: boolean;
|
||||||
dossierId?: string;
|
dossierId?: string;
|
||||||
|
dossierTemplateId?: string;
|
||||||
fileId?: string;
|
fileId?: string;
|
||||||
highlights?: { [key: string]: Array<string> };
|
highlights?: { [key: string]: Array<string> };
|
||||||
matchedSections?: Array<MatchedSection>;
|
matchedSections?: Array<MatchedSection>;
|
||||||
|
|||||||
@ -7,24 +7,22 @@ export * from './auditSearchRequest';
|
|||||||
export * from './authInfo';
|
export * from './authInfo';
|
||||||
export * from './categoryModel';
|
export * from './categoryModel';
|
||||||
export * from './cellRectangle';
|
export * from './cellRectangle';
|
||||||
|
export * from './change';
|
||||||
export * from './colors';
|
export * from './colors';
|
||||||
export * from './comment';
|
export * from './comment';
|
||||||
export * from './commentResponse';
|
export * from './commentResponse';
|
||||||
export * from './createUserRequest';
|
export * from './createUserRequest';
|
||||||
export * from './dictionary';
|
export * from './dictionary';
|
||||||
export * from './digitalSignature';
|
export * from './digitalSignature';
|
||||||
export * from './digitalSignatureViewModelReq';
|
export * from './digitalSignatureViewModel';
|
||||||
export * from './digitalSignatureViewModelRes';
|
|
||||||
export * from './dossier';
|
export * from './dossier';
|
||||||
export * from './dossierAttributeConfig';
|
export * from './dossierAttributeConfig';
|
||||||
export * from './dossierAttributeReq';
|
export * from './dossierAttribute';
|
||||||
export * from './dossierAttributeRes';
|
|
||||||
export * from './dossierAttributesConfig';
|
export * from './dossierAttributesConfig';
|
||||||
export * from './dossierAttributesReq';
|
export * from './dossierAttributes';
|
||||||
export * from './dossierAttributesRes';
|
|
||||||
export * from './dossierRequest';
|
export * from './dossierRequest';
|
||||||
|
export * from './dossierTemplateIdUploadBody';
|
||||||
export * from './dossierTemplate';
|
export * from './dossierTemplate';
|
||||||
export * from './downloadDetails';
|
|
||||||
export * from './downloadResponse';
|
export * from './downloadResponse';
|
||||||
export * from './downloadStatus';
|
export * from './downloadStatus';
|
||||||
export * from './downloadStatusResponse';
|
export * from './downloadStatusResponse';
|
||||||
@ -37,21 +35,28 @@ export * from './forceRedactionRequest';
|
|||||||
export * from './generalConfigurationModel';
|
export * from './generalConfigurationModel';
|
||||||
export * from './idRemoval';
|
export * from './idRemoval';
|
||||||
export * from './imageRecategorizationRequest';
|
export * from './imageRecategorizationRequest';
|
||||||
export * from './legalBasisMapping';
|
export * from './JSONPrimitive';
|
||||||
|
export * from './legalBasis';
|
||||||
|
export * from './legalBasisChangeRequest';
|
||||||
|
export * from './legalBasis';
|
||||||
export * from './licenseReport';
|
export * from './licenseReport';
|
||||||
export * from './licenseReportRequest';
|
export * from './licenseReportRequest';
|
||||||
export * from './manualAddResponse';
|
export * from './manualAddResponse';
|
||||||
export * from './manualForceRedaction';
|
export * from './manualForceRedaction';
|
||||||
export * from './manualImageRecategorization';
|
export * from './manualImageRecategorization';
|
||||||
|
export * from './manualLegalBasisChange';
|
||||||
export * from './manualRedactionEntry';
|
export * from './manualRedactionEntry';
|
||||||
export * from './manualRedactions';
|
export * from './manualRedactions';
|
||||||
|
export * from './matchedDocument';
|
||||||
|
export * from './matchedSection';
|
||||||
|
export * from './notification';
|
||||||
|
export * from './notificationResponse';
|
||||||
export * from './pageExclusionRequest';
|
export * from './pageExclusionRequest';
|
||||||
export * from './pageRange';
|
export * from './pageRange';
|
||||||
|
export * from './placeholdersResponse';
|
||||||
export * from './point';
|
export * from './point';
|
||||||
export * from './prepareDownloadRequest';
|
export * from './prepareDownloadRequest';
|
||||||
export * from './rectangle';
|
export * from './rectangle';
|
||||||
export * from './redactionChangeLog';
|
|
||||||
export * from './redactionChangeLogEntry';
|
|
||||||
export * from './redactionLog';
|
export * from './redactionLog';
|
||||||
export * from './redactionLogEntry';
|
export * from './redactionLogEntry';
|
||||||
export * from './removeDownloadRequest';
|
export * from './removeDownloadRequest';
|
||||||
@ -60,25 +65,22 @@ export * from './reportData';
|
|||||||
export * from './reportTemplate';
|
export * from './reportTemplate';
|
||||||
export * from './resetPasswordRequest';
|
export * from './resetPasswordRequest';
|
||||||
export * from './rules';
|
export * from './rules';
|
||||||
export * from './sMTPConfigurationModel';
|
export * from './sMTPConfiguration';
|
||||||
|
export * from './searchRequest';
|
||||||
|
export * from './searchResult';
|
||||||
export * from './sectionGrid';
|
export * from './sectionGrid';
|
||||||
export * from './sectionRectangle';
|
export * from './sectionRectangle';
|
||||||
|
export * from './templateUploadDossierTemplateIdBody';
|
||||||
|
export * from './typeDossierTemplateIdBody';
|
||||||
export * from './typeResponse';
|
export * from './typeResponse';
|
||||||
export * from './typeValue';
|
export * from './typeValue';
|
||||||
export * from './updateMyProfileRequest';
|
export * from './updateMyProfileRequest';
|
||||||
export * from './updateProfileRequest';
|
export * from './updateProfileRequest';
|
||||||
export * from './updateTypeValue';
|
export * from './updateTypeValue';
|
||||||
|
export * from './uploadDossierIdBody';
|
||||||
export * from './user';
|
export * from './user';
|
||||||
export * from './versionsResponse';
|
export * from './versionsResponse';
|
||||||
|
export * from './viewedPage';
|
||||||
export * from './viewedPages';
|
export * from './viewedPages';
|
||||||
export * from './viewedPagesRequest';
|
export * from './viewedPagesRequest';
|
||||||
export * from './watermarkModelReq';
|
export * from './watermarkModel';
|
||||||
export * from './watermarkModelRes';
|
|
||||||
export * from './legalBasisChangeRequest';
|
|
||||||
export * from './manualLegalBasisChange';
|
|
||||||
export * from './searchRequest';
|
|
||||||
export * from './searchResult';
|
|
||||||
export * from './matchedDocument';
|
|
||||||
export * from './placeholdersResponse';
|
|
||||||
export * from './notification';
|
|
||||||
export * from './notificationResponse';
|
|
||||||
|
|||||||
@ -12,8 +12,9 @@
|
|||||||
|
|
||||||
export interface Notification {
|
export interface Notification {
|
||||||
creationDate?: string;
|
creationDate?: string;
|
||||||
|
id?: number;
|
||||||
issuerId?: string;
|
issuerId?: string;
|
||||||
notificationId?: string;
|
notificationDetails?: string;
|
||||||
notificationType?: string;
|
notificationType?: string;
|
||||||
readDate?: string;
|
readDate?: string;
|
||||||
seenDate?: string;
|
seenDate?: string;
|
||||||
|
|||||||
@ -1,20 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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 { RedactionChangeLogEntry } from './redactionChangeLogEntry';
|
|
||||||
|
|
||||||
export interface RedactionChangeLog {
|
|
||||||
dictionaryVersion?: number;
|
|
||||||
dossierDictionaryVersion?: number;
|
|
||||||
legalBasisVersion?: number;
|
|
||||||
redactionLogEntry?: Array<RedactionChangeLogEntry>;
|
|
||||||
rulesVersion?: number;
|
|
||||||
}
|
|
||||||
@ -1,60 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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 { Comment } from './comment';
|
|
||||||
import { Rectangle } from './rectangle';
|
|
||||||
|
|
||||||
export interface RedactionChangeLogEntry {
|
|
||||||
changeType?: RedactionChangeLogEntry.ChangeTypeEnum;
|
|
||||||
color?: Array<number>;
|
|
||||||
comments?: Array<Comment>;
|
|
||||||
dictionaryEntry?: boolean;
|
|
||||||
dossierDictionaryEntry?: boolean;
|
|
||||||
excluded?: boolean;
|
|
||||||
hint?: boolean;
|
|
||||||
id?: string;
|
|
||||||
legalBasis?: string;
|
|
||||||
manual?: boolean;
|
|
||||||
manualRedactionType?: RedactionChangeLogEntry.ManualRedactionTypeEnum;
|
|
||||||
matchedRule?: number;
|
|
||||||
positions?: Array<Rectangle>;
|
|
||||||
reason?: string;
|
|
||||||
recommendation?: boolean;
|
|
||||||
redacted?: boolean;
|
|
||||||
section?: string;
|
|
||||||
sectionNumber?: number;
|
|
||||||
status?: RedactionChangeLogEntry.StatusEnum;
|
|
||||||
textAfter?: string;
|
|
||||||
textBefore?: string;
|
|
||||||
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' | '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';
|
|
||||||
export const StatusEnum = {
|
|
||||||
APPROVED: 'APPROVED' as StatusEnum,
|
|
||||||
DECLINED: 'DECLINED' as StatusEnum,
|
|
||||||
REQUESTED: 'REQUESTED' as StatusEnum
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -9,13 +9,14 @@
|
|||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { LegalBasisMapping } from './legalBasisMapping';
|
import { LegalBasis } from './legalBasis';
|
||||||
import { RedactionLogEntry } from './redactionLogEntry';
|
import { RedactionLogEntry } from './redactionLogEntry';
|
||||||
|
|
||||||
export interface RedactionLog {
|
export interface RedactionLog {
|
||||||
|
analysisVersion?: number;
|
||||||
dictionaryVersion?: number;
|
dictionaryVersion?: number;
|
||||||
dossierDictionaryVersion?: number;
|
dossierDictionaryVersion?: number;
|
||||||
legalBasis?: Array<LegalBasisMapping>;
|
legalBasis?: Array<LegalBasis>;
|
||||||
legalBasisVersion?: number;
|
legalBasisVersion?: number;
|
||||||
redactionLogEntry?: Array<RedactionLogEntry>;
|
redactionLogEntry?: Array<RedactionLogEntry>;
|
||||||
rulesVersion?: number;
|
rulesVersion?: number;
|
||||||
|
|||||||
@ -9,45 +9,57 @@
|
|||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
import { Change } from './change';
|
||||||
import { Comment } from './comment';
|
import { Comment } from './comment';
|
||||||
import { Rectangle } from './rectangle';
|
import { Rectangle } from './rectangle';
|
||||||
|
|
||||||
export interface RedactionLogEntry {
|
export interface RedactionLogEntry {
|
||||||
|
changes?: Array<Change>;
|
||||||
color?: Array<number>;
|
color?: Array<number>;
|
||||||
comments?: Array<Comment>;
|
comments?: Array<Comment>;
|
||||||
dictionaryEntry?: boolean;
|
dictionaryEntry?: boolean;
|
||||||
dossierDictionaryEntry?: boolean;
|
dossierDictionaryEntry?: boolean;
|
||||||
endOffset?: number;
|
endOffset?: number;
|
||||||
|
engines?: Array<RedactionLogEntry.EnginesEnum>;
|
||||||
excluded?: boolean;
|
excluded?: boolean;
|
||||||
hint?: boolean;
|
hint?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
image?: boolean;
|
image?: boolean;
|
||||||
|
imageHasTransparency?: boolean;
|
||||||
legalBasis?: string;
|
legalBasis?: string;
|
||||||
|
legalBasisChangeValue?: string;
|
||||||
manual?: boolean;
|
manual?: boolean;
|
||||||
manualRedactionType?: RedactionLogEntry.ManualRedactionTypeEnum;
|
manualRedactionType?: RedactionLogEntry.ManualRedactionTypeEnum;
|
||||||
|
manualRedactionUserId?: string;
|
||||||
matchedRule?: number;
|
matchedRule?: number;
|
||||||
positions?: Array<Rectangle>;
|
positions?: Array<Rectangle>;
|
||||||
reason?: string;
|
reason?: string;
|
||||||
recategorizationType?: string;
|
recategorizationType?: string;
|
||||||
recommendation?: boolean;
|
recommendation?: boolean;
|
||||||
redacted?: boolean;
|
redacted?: boolean;
|
||||||
|
reference?: Array<string>;
|
||||||
section?: string;
|
section?: string;
|
||||||
sectionNumber?: number;
|
sectionNumber?: number;
|
||||||
startOffset?: number;
|
startOffset?: number;
|
||||||
status?: RedactionLogEntry.StatusEnum;
|
status?: RedactionLogEntry.StatusEnum;
|
||||||
textAfter?: string;
|
textAfter?: string;
|
||||||
textBefore?: string;
|
textBefore?: string;
|
||||||
type?: string;
|
typeId?: string;
|
||||||
value?: string;
|
value?: string;
|
||||||
legalBasisChangeValue?: string;
|
|
||||||
engines?: string[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace RedactionLogEntry {
|
export namespace RedactionLogEntry {
|
||||||
export type ManualRedactionTypeEnum = 'ADD' | 'FORCE_REDACT' | 'RECATEGORIZE' | 'REMOVE';
|
export type EnginesEnum = 'DICTIONARY' | 'NER' | 'RULE';
|
||||||
|
export const EnginesEnum = {
|
||||||
|
DICTIONARY: 'DICTIONARY' as EnginesEnum,
|
||||||
|
NER: 'NER' as EnginesEnum,
|
||||||
|
RULE: 'RULE' as EnginesEnum
|
||||||
|
};
|
||||||
|
export type ManualRedactionTypeEnum = 'ADD' | 'FORCE_REDACT' | 'LEGAL_BASIS_CHANGE' | 'RECATEGORIZE' | 'REMOVE';
|
||||||
export const ManualRedactionTypeEnum = {
|
export const ManualRedactionTypeEnum = {
|
||||||
ADD: 'ADD' as ManualRedactionTypeEnum,
|
ADD: 'ADD' as ManualRedactionTypeEnum,
|
||||||
FORCEREDACT: 'FORCE_REDACT' as ManualRedactionTypeEnum,
|
FORCEREDACT: 'FORCE_REDACT' as ManualRedactionTypeEnum,
|
||||||
|
LEGALBASISCHANGE: 'LEGAL_BASIS_CHANGE' as ManualRedactionTypeEnum,
|
||||||
RECATEGORIZE: 'RECATEGORIZE' as ManualRedactionTypeEnum,
|
RECATEGORIZE: 'RECATEGORIZE' as ManualRedactionTypeEnum,
|
||||||
REMOVE: 'REMOVE' as ManualRedactionTypeEnum
|
REMOVE: 'REMOVE' as ManualRedactionTypeEnum
|
||||||
};
|
};
|
||||||
|
|||||||
@ -11,5 +11,5 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface RemoveDownloadRequest {
|
export interface RemoveDownloadRequest {
|
||||||
storageIds?: string[];
|
storageIds?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,6 +18,7 @@ export interface ReportData {
|
|||||||
fileName?: string;
|
fileName?: string;
|
||||||
lastUpdatedDate?: Date;
|
lastUpdatedDate?: Date;
|
||||||
numberOfAnalyzedPages?: number;
|
numberOfAnalyzedPages?: number;
|
||||||
|
numberOfOcrPages?: number;
|
||||||
status?: ReportData.StatusEnum;
|
status?: ReportData.StatusEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,8 +27,8 @@ export namespace ReportData {
|
|||||||
| 'APPROVED'
|
| 'APPROVED'
|
||||||
| 'DELETED'
|
| 'DELETED'
|
||||||
| 'ERROR'
|
| 'ERROR'
|
||||||
| 'EXCLUDED'
|
|
||||||
| 'FULLREPROCESS'
|
| 'FULLREPROCESS'
|
||||||
|
| 'INDEXING'
|
||||||
| 'OCR_PROCESSING'
|
| 'OCR_PROCESSING'
|
||||||
| 'PROCESSING'
|
| 'PROCESSING'
|
||||||
| 'REPROCESS'
|
| 'REPROCESS'
|
||||||
@ -39,7 +40,6 @@ export namespace ReportData {
|
|||||||
APPROVED: 'APPROVED' as StatusEnum,
|
APPROVED: 'APPROVED' as StatusEnum,
|
||||||
DELETED: 'DELETED' as StatusEnum,
|
DELETED: 'DELETED' as StatusEnum,
|
||||||
ERROR: 'ERROR' as StatusEnum,
|
ERROR: 'ERROR' as StatusEnum,
|
||||||
EXCLUDED: 'EXCLUDED' as StatusEnum,
|
|
||||||
FULLREPROCESS: 'FULLREPROCESS' as StatusEnum,
|
FULLREPROCESS: 'FULLREPROCESS' as StatusEnum,
|
||||||
OCR_PROCESSING: 'OCR_PROCESSING' as StatusEnum,
|
OCR_PROCESSING: 'OCR_PROCESSING' as StatusEnum,
|
||||||
PROCESSING: 'PROCESSING' as StatusEnum,
|
PROCESSING: 'PROCESSING' as StatusEnum,
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface ReportTemplate {
|
export interface ReportTemplate {
|
||||||
|
activeByDefault?: boolean;
|
||||||
dossierTemplateId?: string;
|
dossierTemplateId?: string;
|
||||||
fileName?: string;
|
fileName?: string;
|
||||||
multiFileReport?: boolean;
|
multiFileReport?: boolean;
|
||||||
|
|||||||
@ -10,12 +10,13 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface SMTPConfigurationModel {
|
export interface SMTPConfiguration {
|
||||||
auth?: boolean;
|
auth?: boolean;
|
||||||
envelopeFrom?: string;
|
envelopeFrom?: string;
|
||||||
from?: string;
|
from?: string;
|
||||||
fromDisplayName?: string;
|
fromDisplayName?: string;
|
||||||
host?: string;
|
host?: string;
|
||||||
|
id?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
port?: number;
|
port?: number;
|
||||||
replyTo?: string;
|
replyTo?: string;
|
||||||
@ -11,8 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface SearchRequest {
|
export interface SearchRequest {
|
||||||
dossierIds?: string[];
|
dossierIds?: Array<string>;
|
||||||
dossierTemplateIds?: string[];
|
dossierTemplateIds?: Array<string>;
|
||||||
fileId?: string;
|
fileId?: string;
|
||||||
page?: number;
|
page?: number;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
|
|||||||
@ -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 TemplateUploadDossierTemplateIdBody {
|
||||||
|
multiFileReport?: boolean;
|
||||||
|
file?: Blob;
|
||||||
|
}
|
||||||
16
libs/red-ui-http/src/lib/model/typeDossierTemplateIdBody.ts
Normal file
16
libs/red-ui-http/src/lib/model/typeDossierTemplateIdBody.ts
Normal 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 TypeDossierTemplateIdBody {
|
||||||
|
file?: Blob;
|
||||||
|
dossierId?: string;
|
||||||
|
}
|
||||||
@ -34,6 +34,10 @@ export interface UpdateTypeValue {
|
|||||||
* True if the type just for hint, not for redaction, default is false.
|
* True if the type just for hint, not for redaction, default is false.
|
||||||
*/
|
*/
|
||||||
hint?: boolean;
|
hint?: boolean;
|
||||||
|
/**
|
||||||
|
* Label of the type
|
||||||
|
*/
|
||||||
|
label?: string;
|
||||||
/**
|
/**
|
||||||
* The rank of this dictionary, higher rank means higher importance.
|
* The rank of this dictionary, higher rank means higher importance.
|
||||||
*/
|
*/
|
||||||
@ -42,8 +46,4 @@ export interface UpdateTypeValue {
|
|||||||
* True if the type just for recommendations, not for redaction, default is false.
|
* True if the type just for recommendations, not for redaction, default is false.
|
||||||
*/
|
*/
|
||||||
recommendation?: boolean;
|
recommendation?: boolean;
|
||||||
/**
|
|
||||||
* The label of this type
|
|
||||||
*/
|
|
||||||
label?: string;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user