diff --git a/libs/red-ui-http/src/lib/api/searchController.service.ts b/libs/red-ui-http/src/lib/api/searchController.service.ts index e2fc6480d..be3e16fdb 100644 --- a/libs/red-ui-http/src/lib/api/searchController.service.ts +++ b/libs/red-ui-http/src/lib/api/searchController.service.ts @@ -66,7 +66,7 @@ export class SearchControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = ['application/json']; + const httpHeaderAccepts: string[] = ['application/json']; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected !== undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); diff --git a/libs/red-ui-http/src/lib/model/matchedDocument.ts b/libs/red-ui-http/src/lib/model/matchedDocument.ts new file mode 100644 index 000000000..097231ac7 --- /dev/null +++ b/libs/red-ui-http/src/lib/model/matchedDocument.ts @@ -0,0 +1,23 @@ +/** + * 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 { MatchedSection } from './matchedSection'; + +export interface MatchedDocument { + containsAllMatchedSections?: boolean; + dossierId?: string; + fileId?: string; + highlights?: { [key: string]: Array }; + matchedSections?: Array; + matchedTerms?: Array; + score?: number; + unmatchedTerms?: Array; +} diff --git a/libs/red-ui-http/src/lib/model/matchedSection.ts b/libs/red-ui-http/src/lib/model/matchedSection.ts new file mode 100644 index 000000000..0a6caaca3 --- /dev/null +++ b/libs/red-ui-http/src/lib/model/matchedSection.ts @@ -0,0 +1,18 @@ +/** + * 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 MatchedSection { + headline?: string; + matchedTerms?: Array; + pages?: Array; + sectionNumber?: number; +}