SqliteIssueReporter Class

SQLite issue reporter. Can be provided to ConnectorRunner in setIssueReporter

Implements

Methods

Name Description
constructor(contextId: string, iModelId: string, activityId: string, fileId: string, outputDir?: any, operationType?: "NormalUpdate" | "AllDocsProcessed", filePath?: any, jobId?: string, deleteReportDB?: boolean): SqliteIssueReporter    
close(): Promise<void> Close the issue reporter and any database connections  
createJsonReport(): { context: { activityid: string, briefcaseid: undefined | number, contextid: string, imodelid: string, jobid: undefined | string, operationType: "NormalUpdate" | "AllDocsProcessed", reportType: string, timestamp: string }, filerecords: any[], sourceFilesInfo: any }    
getReportPath(): string Returns the path to the report file  
publishReport(): Promise<void> Creates a JSON report file to be uploaded by the orchestrator  
recordIgnoredElements(repositoryLinkId: string, ignoredElementIdList: string): void Records element that have not been visited during the running of the connector  
recordReferenceFileInfo(sourceId: string, name: string, uniqueName: string, itemType: string, dataSource: string, downloadUrl: string, state: string, failureReason: string, exists: boolean, fileSize: number, foundByConnector: boolean): void Records additional files for a connector job  
recordSourceFileInfo(sourceId: string, name: string, uniqueName: string, itemType: string, dataSource: string, state: string, failureReason: string, exists: boolean, fileSize: number, foundByConnector: boolean, downloadUrl?: string): void Records file information for a connector job.  
reportIssue(ecInstanceId: string, sourceId: string, level: "Error" | "Warning", category: string, message: string, type: string): void Reports a generic issue encountered by the connector.  
setBriefcaseId(briefcaseId: number): void    
setPostPublishingProcessor(processor: PostPublishingProcessor): void    

Defined in

Last Updated: 03 May, 2024