Skip to content

Commit 3fc1524

Browse files
authored
Merge pull request #75 from regulaforensics/feature/fe-918
FE-918 - get ImageQualityCheckList array
2 parents 0ee6102 + 3011e0a commit 3fc1524

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ext/process-response.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ export class Response {
7373
}
7474
}
7575

76+
public imageQualityChecksPerPage(): Array<ImageQualityCheckList> | undefined {
77+
return <Array<ImageQualityCheckList>>this.lowLvlResponse.resultsByType(Result.IMAGE_QUALITY)
78+
}
79+
7680
public decodedLog(): string | undefined {
7781
const log = this.lowLvlResponse.log
7882
if (log) {
@@ -166,7 +170,7 @@ export class LowLvlResponse implements ProcessResponse {
166170
return undefined
167171
}
168172

169-
public resultsByType(type: Result): Array<ResultItem | AuthenticityResult> {
173+
public resultsByType(type: Result): Array<ResultItem | AuthenticityResult | ImageQualityCheckList> {
170174
return this.ContainerList.List.filter(container => container.result_type === type)
171175
}
172176
}

0 commit comments

Comments
 (0)