From c298a388d0ab64c44f00a13734b047ae3e8cf20e Mon Sep 17 00:00:00 2001
From: taguesokoudjou
Date: Mon, 15 Jun 2026 20:41:32 +0200
Subject: [PATCH] fix: resolve patents build error
---
webapp/src/app/api/api/patents.service.ts | 32 +++++++------------
.../person-patents.component.html | 8 -----
.../person-patents.component.scss | 5 ---
.../person-patents.component.ts | 6 ----
4 files changed, 11 insertions(+), 40 deletions(-)
diff --git a/webapp/src/app/api/api/patents.service.ts b/webapp/src/app/api/api/patents.service.ts
index ef47c2cd..fcf20411 100644
--- a/webapp/src/app/api/api/patents.service.ts
+++ b/webapp/src/app/api/api/patents.service.ts
@@ -60,6 +60,13 @@ export interface PatentsByAuthorResponse {
search_meta?: PatentSearchMeta | null;
}
+type GetPatentsByAuthorOptions = {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ refresh?: boolean;
+};
+
@Injectable({
providedIn: 'root',
})
@@ -83,42 +90,25 @@ export class PatentsService extends BaseService {
authorId: string,
observe?: 'body',
reportProgress?: boolean,
- options?: {
- httpHeaderAccept?: 'application/json';
- context?: HttpContext;
- transferCache?: boolean;
- },
+ options?: GetPatentsByAuthorOptions,
): Observable;
public getPatentsByAuthor(
authorId: string,
observe?: 'response',
reportProgress?: boolean,
- options?: {
- httpHeaderAccept?: 'application/json';
- context?: HttpContext;
- transferCache?: boolean;
- },
+ options?: GetPatentsByAuthorOptions,
): Observable>;
public getPatentsByAuthor(
authorId: string,
observe?: 'events',
reportProgress?: boolean,
- options?: {
- httpHeaderAccept?: 'application/json';
- context?: HttpContext;
- transferCache?: boolean;
- },
+ options?: GetPatentsByAuthorOptions,
): Observable>;
public getPatentsByAuthor(
authorId: string,
observe: any = 'body',
reportProgress: boolean = false,
- options?: {
- httpHeaderAccept?: 'application/json';
- context?: HttpContext;
- transferCache?: boolean;
- refresh?: boolean;
- },
+ options?: GetPatentsByAuthorOptions,
): Observable {
if (authorId === null || authorId === undefined) {
throw new Error(
diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html
index 2ca11d99..841c1ba1 100644
--- a/webapp/src/app/modules/person-patents/person-patents.component.html
+++ b/webapp/src/app/modules/person-patents/person-patents.component.html
@@ -20,14 +20,6 @@
{{ getUsptoCount() }}
USPTO
- @if (fromCache) {
-
- Aus Cache
- @if (lastBuiltAt) {
- ยท {{ formatDate(lastBuiltAt) }}
- }
-
- }