fix(patents): align generated model formatting with dev to reduce merge conflicts
LocationBasedServices/smartguide/pipeline/pr-dev There was a failure building this commit
LocationBasedServices/smartguide/pipeline/pr-dev There was a failure building this commit
This commit is contained in:
@@ -1,31 +1,39 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { PatentEntry } from './patentEntry';
|
||||
import { KeywordEvidence } from './keywordEvidence';
|
||||
|
||||
|
||||
export interface KeywordPatentMatch {
|
||||
patent: PatentEntry;
|
||||
/**
|
||||
* Combined match quality score.
|
||||
*/
|
||||
match_score: number;
|
||||
/**
|
||||
* IPC/CPC classification match score.
|
||||
*/
|
||||
ipc_score: number;
|
||||
/**
|
||||
* OpenAlex topic overlap score (0 or 1).
|
||||
*/
|
||||
topic_score: number;
|
||||
/**
|
||||
* Title/abstract keyword overlap score.
|
||||
*/
|
||||
text_score: number;
|
||||
matched_keywords?: Array<string>;
|
||||
matched_ipc_symbols?: Array<string>;
|
||||
/**
|
||||
* True when retrieved via title/abstract text search because IPC mapping was uncertain, missing, or yielded no hits.
|
||||
*/
|
||||
text_retrieval?: boolean;
|
||||
keyword_evidence?: KeywordEvidence | null;
|
||||
topic_match_kind?: string | null;
|
||||
patent: PatentEntry;
|
||||
/**
|
||||
* Combined match quality score.
|
||||
*/
|
||||
match_score: number;
|
||||
/**
|
||||
* IPC/CPC classification match score.
|
||||
*/
|
||||
ipc_score: number;
|
||||
/**
|
||||
* OpenAlex topic overlap score (0 or 1).
|
||||
*/
|
||||
topic_score: number;
|
||||
/**
|
||||
* Title/abstract keyword overlap score.
|
||||
*/
|
||||
text_score: number;
|
||||
matched_keywords?: Array<string>;
|
||||
matched_ipc_symbols?: Array<string>;
|
||||
/**
|
||||
* True when retrieved via title/abstract text search because IPC mapping was uncertain, missing, or yielded no hits.
|
||||
*/
|
||||
text_retrieval?: boolean;
|
||||
keyword_evidence?: KeywordEvidence | null;
|
||||
topic_match_kind?: string | null;
|
||||
}
|
||||
|
||||
@@ -9,16 +9,15 @@
|
||||
*/
|
||||
import { KeywordPatentMatch } from './keywordPatentMatch';
|
||||
|
||||
|
||||
export type KeywordPatentMappingStatus =
|
||||
| 'mapped'
|
||||
| 'uncertain'
|
||||
| 'no_mapping'
|
||||
| 'no_patents_found'
|
||||
| 'search_error';
|
||||
| 'mapped'
|
||||
| 'uncertain'
|
||||
| 'no_mapping'
|
||||
| 'no_patents_found'
|
||||
| 'search_error';
|
||||
|
||||
export interface PatentsByKeywordsResponse {
|
||||
patent_count: number;
|
||||
patents: Array<KeywordPatentMatch>;
|
||||
mapping_status: KeywordPatentMappingStatus;
|
||||
export interface PatentsByKeywordsResponse {
|
||||
patent_count: number;
|
||||
patents: Array<KeywordPatentMatch>;
|
||||
mapping_status: KeywordPatentMappingStatus;
|
||||
}
|
||||
|
||||
+7
-2
@@ -101,8 +101,13 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
<button type="button" class="patent-detail-action" (click)="openDetail()">
|
||||
<span class="patent-detail-action__label">Patentdetails anzeigen</span>
|
||||
<button
|
||||
type="button"
|
||||
class="patent-detail-action"
|
||||
(click)="openDetail()">
|
||||
<span class="patent-detail-action__label"
|
||||
>Patentdetails anzeigen</span
|
||||
>
|
||||
<span class="material-icons" aria-hidden="true">chevron_right</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -67,7 +67,9 @@ export function buildPatentSearchItemsFromPayload(
|
||||
return buildPatentSearchItems(fallbackEntries);
|
||||
}
|
||||
|
||||
export function readPatentsCache(keywords: string[]): PatentsCacheResult | null {
|
||||
export function readPatentsCache(
|
||||
keywords: string[],
|
||||
): PatentsCacheResult | null {
|
||||
const raw = sessionStorage.getItem(PATENTS_CACHE_KEY);
|
||||
if (!raw) return null;
|
||||
|
||||
@@ -183,6 +185,8 @@ function hasPatentComponentScores(match: KeywordPatentMatch): boolean {
|
||||
);
|
||||
}
|
||||
|
||||
export function canReweightPatentMatches(matches: KeywordPatentMatch[]): boolean {
|
||||
export function canReweightPatentMatches(
|
||||
matches: KeywordPatentMatch[],
|
||||
): boolean {
|
||||
return matches.length > 0 && matches.every(hasPatentComponentScores);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user