diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts index 1b3add43b..f9d378343 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts @@ -291,14 +291,26 @@ export class FilePreviewScreenComponent implements OnInit { } public rejectSuggestion($event: MouseEvent, annotation: AnnotationWrapper) { - this._dialogRef = this._dialogService.openRejectSuggestionModal($event, annotation, () => { - this._cleanupAndRedrawManualAnnotations(); + this.ngZone.run(() => { + this._dialogRef = this._dialogService.openRejectSuggestionModal( + $event, + annotation, + () => { + this._cleanupAndRedrawManualAnnotations(); + } + ); }); } suggestRemoveAnnotation($event: MouseEvent, annotation: AnnotationWrapper) { - this._dialogRef = this._dialogService.openRemoveAnnotationModal($event, annotation, () => { - this._cleanupAndRedrawManualAnnotations(); + this.ngZone.run(() => { + this._dialogRef = this._dialogService.openRemoveAnnotationModal( + $event, + annotation, + () => { + this._cleanupAndRedrawManualAnnotations(); + } + ); }); } diff --git a/libs/red-ui-http/src/lib/model/addRedactionRequest.ts b/libs/red-ui-http/src/lib/model/addRedactionRequest.ts index d86aec693..9111fb449 100644 --- a/libs/red-ui-http/src/lib/model/addRedactionRequest.ts +++ b/libs/red-ui-http/src/lib/model/addRedactionRequest.ts @@ -16,6 +16,7 @@ export interface AddRedactionRequest { type?: string; value?: string; reason?: string; + legalBasis?: string; addToDictionary?: boolean; positions?: Array; comment?: AddCommentRequest; diff --git a/libs/red-ui-http/src/lib/model/fileStatus.ts b/libs/red-ui-http/src/lib/model/fileStatus.ts index 4cc7c5c7c..c3a95d190 100644 --- a/libs/red-ui-http/src/lib/model/fileStatus.ts +++ b/libs/red-ui-http/src/lib/model/fileStatus.ts @@ -74,6 +74,10 @@ export interface FileStatus { * The status of the file with regard to its analysis an review processes. */ status?: FileStatus.StatusEnum; + /** + * The ID of the user who uploaded the file. + */ + uploader?: string; } export namespace FileStatus { export type StatusEnum = diff --git a/libs/red-ui-http/src/lib/model/idRemoval.ts b/libs/red-ui-http/src/lib/model/idRemoval.ts index 2c599eacd..58803a625 100644 --- a/libs/red-ui-http/src/lib/model/idRemoval.ts +++ b/libs/red-ui-http/src/lib/model/idRemoval.ts @@ -9,16 +9,15 @@ * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ -import { Comment } from './comment'; export interface IdRemoval { - comments?: Array; id?: string; + processedDate?: string; removeFromDictionary?: boolean; + requestDate?: string; status?: IdRemoval.StatusEnum; user?: string; } - export namespace IdRemoval { export type StatusEnum = 'REQUESTED' | 'APPROVED' | 'DECLINED'; export const StatusEnum = { diff --git a/libs/red-ui-http/src/lib/model/manualRedactionEntry.ts b/libs/red-ui-http/src/lib/model/manualRedactionEntry.ts index b99671bc7..e3876d517 100644 --- a/libs/red-ui-http/src/lib/model/manualRedactionEntry.ts +++ b/libs/red-ui-http/src/lib/model/manualRedactionEntry.ts @@ -16,13 +16,13 @@ export interface ManualRedactionEntry { id?: string; legalBasis?: string; positions?: Array; + processedDate?: string; reason?: string; + requestDate?: string; status?: ManualRedactionEntry.StatusEnum; type?: string; user?: string; value?: string; - requestDate?: string; - processedDate?: string; } export namespace ManualRedactionEntry { export type StatusEnum = 'REQUESTED' | 'APPROVED' | 'DECLINED'; diff --git a/libs/red-ui-http/src/lib/model/models.ts b/libs/red-ui-http/src/lib/model/models.ts index d0710cd09..2ad30aa10 100644 --- a/libs/red-ui-http/src/lib/model/models.ts +++ b/libs/red-ui-http/src/lib/model/models.ts @@ -32,3 +32,5 @@ export * from './user'; export * from './userRequest'; export * from './userResponse'; export * from './versionsResponse'; +export * from './viewedPages'; +export * from './viewedPagesRequest'; diff --git a/libs/red-ui-http/src/lib/model/project.ts b/libs/red-ui-http/src/lib/model/project.ts index 030c6ebcf..5ea78ad67 100644 --- a/libs/red-ui-http/src/lib/model/project.ts +++ b/libs/red-ui-http/src/lib/model/project.ts @@ -13,14 +13,13 @@ export interface Project { date?: string; description?: string; + dueDate?: string; memberIds?: Array; ownerId?: string; projectId?: string; - dueDate?: string; projectName?: string; status?: Project.StatusEnum; } - export namespace Project { export type StatusEnum = 'ACTIVE' | 'DELETED'; export const StatusEnum = { diff --git a/libs/red-ui-http/src/lib/model/removeRedactionRequest.ts b/libs/red-ui-http/src/lib/model/removeRedactionRequest.ts index 13e685037..9663131ff 100644 --- a/libs/red-ui-http/src/lib/model/removeRedactionRequest.ts +++ b/libs/red-ui-http/src/lib/model/removeRedactionRequest.ts @@ -9,10 +9,9 @@ * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ -import { AddCommentRequest } from './addCommentRequest'; export interface RemoveRedactionRequest { annotationId?: string; removeFromDictionary?: boolean; - comment?: AddCommentRequest; + comment?: string; } diff --git a/libs/red-ui-http/src/lib/model/reportData.ts b/libs/red-ui-http/src/lib/model/reportData.ts index 6521f0cac..73aa61bf0 100644 --- a/libs/red-ui-http/src/lib/model/reportData.ts +++ b/libs/red-ui-http/src/lib/model/reportData.ts @@ -20,7 +20,6 @@ export interface ReportData { project?: string; status?: ReportData.StatusEnum; } - export namespace ReportData { export type StatusEnum = | 'UNPROCESSED' diff --git a/libs/red-ui-http/src/lib/model/typeValue.ts b/libs/red-ui-http/src/lib/model/typeValue.ts index 42356824f..3ecc2fb39 100644 --- a/libs/red-ui-http/src/lib/model/typeValue.ts +++ b/libs/red-ui-http/src/lib/model/typeValue.ts @@ -32,6 +32,4 @@ export interface TypeValue { */ type?: string; isDefaultFilter?: boolean; - virtual?: boolean; - label?: string; } diff --git a/libs/red-ui-http/src/lib/model/viewedPages.ts b/libs/red-ui-http/src/lib/model/viewedPages.ts new file mode 100644 index 000000000..039bb09a4 --- /dev/null +++ b/libs/red-ui-http/src/lib/model/viewedPages.ts @@ -0,0 +1,15 @@ +/** + * API Documentation for Redaction Gateway + * Description for redaction + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +export interface ViewedPages { + pages?: Array; +} diff --git a/libs/red-ui-http/src/lib/model/viewedPagesRequest.ts b/libs/red-ui-http/src/lib/model/viewedPagesRequest.ts new file mode 100644 index 000000000..8004aec93 --- /dev/null +++ b/libs/red-ui-http/src/lib/model/viewedPagesRequest.ts @@ -0,0 +1,15 @@ +/** + * API Documentation for Redaction Gateway + * Description for redaction + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +export interface ViewedPagesRequest { + page?: number; +}