2021-08-11 19:54:16 +03:00

174 lines
4.4 KiB
TypeScript

/**
* 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 { FileAttributes } from './fileAttributes';
/**
* Object containing information on a specific file.
*/
export interface FileStatus {
/**
* Date and time when the file was added to the system.
*/
added?: string;
/**
* Shows if all manual changes have been applied by a reanalysis.
*/
allManualRedactionsApplied?: boolean;
/**
* Shows how long the last analysis took
*/
analysisDuration?: number;
/**
* Shows if the file requires reanalysis.
*/
analysisRequired?: boolean;
/**
* Shows the date of approval, if approved.
*/
approvalDate?: string;
/**
* The current reviewer's (if any) user id.
*/
currentReviewer?: string;
/**
* Shows which dictionary versions was used during the analysis.
*/
dictionaryVersion?: number;
/**
* Shows which dossier dictionary versions was used during the analysis.
*/
dossierDictionaryVersion?: number;
/**
* The ID of the dossier the file belongs to.
*/
dossierId?: string;
/**
* The dossierTemplateId for this file.
*/
dossierTemplateId?: string;
/**
* Shows if the file was excluded from analysis.
*/
excluded?: boolean;
fileAttributes?: FileAttributes;
/**
* The ID of the file.
*/
fileId?: string;
/**
* The file's name.
*/
filename?: string;
/**
* Shows if this file has comments on annotations.
*/
hasAnnotationComments?: boolean;
/**
* Shows if any hints were found during the analysis.
*/
hasHints?: boolean;
/**
* Shows if any images were found during the analysis.
*/
hasImages?: boolean;
/**
* Shows if any redactions were found during the analysis.
*/
hasRedactions?: boolean;
/**
* Shows if any requests were found during the analysis.
*/
hasRequests?: boolean;
/**
* Shows if there is any change between the previous and current analysis.
*/
hasUpdates?: boolean;
/**
* Shows if this file has been OCRed by us. Last Time of OCR.
*/
lastOCRTime?: string;
/**
* Shows the last date of a successful analysis.
*/
lastProcessed?: string;
/**
* The last reviewer's (if any) user id.
*/
lastReviewer?: string;
/**
* Date and time when the file was last updated.
*/
lastUpdated?: string;
/**
* Shows last date the document was uploaded.
*/
lastUploaded?: string;
/**
* Shows which legal basis versions was used during the analysis.
*/
legalBasisVersion?: number;
/**
* The number of times the file has been analyzed.
*/
numberOfAnalyses?: number;
/**
* The number of pages of the file.
*/
numberOfPages?: number;
/**
* Shows which rules versions was used during the analysis.
*/
rulesVersion?: number;
/**
* 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;
/**
* The list of excluded pages.
*/
excludedPages?: number[];
}
export namespace FileStatus {
export type StatusEnum =
| 'APPROVED'
| 'ERROR'
| 'EXCLUDED'
| 'FULLREPROCESS'
| 'OCR_PROCESSING'
| 'PROCESSING'
| 'REPROCESS'
| 'UNASSIGNED'
| 'UNDER_APPROVAL'
| 'UNDER_REVIEW'
| 'UNPROCESSED'
| 'INDEXING';
export const StatusEnum = {
APPROVED: 'APPROVED' as StatusEnum,
ERROR: 'ERROR' as StatusEnum,
EXCLUDED: 'EXCLUDED' as StatusEnum,
FULLREPROCESS: 'FULLREPROCESS' as StatusEnum,
OCRPROCESSING: 'OCR_PROCESSING' as StatusEnum,
PROCESSING: 'PROCESSING' as StatusEnum,
REPROCESS: 'REPROCESS' as StatusEnum,
UNASSIGNED: 'UNASSIGNED' as StatusEnum,
UNDERAPPROVAL: 'UNDER_APPROVAL' as StatusEnum,
UNDERREVIEW: 'UNDER_REVIEW' as StatusEnum,
UNPROCESSED: 'UNPROCESSED' as StatusEnum,
INDEXING: 'INDEXING' as StatusEnum
} as const;
}