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) }} - } -

- }