diff --git a/webapp/src/app/api/model/patentEntry.ts b/webapp/src/app/api/model/patentEntry.ts index a6a3619c..94f21db2 100644 --- a/webapp/src/app/api/model/patentEntry.ts +++ b/webapp/src/app/api/model/patentEntry.ts @@ -1,22 +1,30 @@ -/** - * 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. - */ +export interface IpcClassification { + symbol: string; + section: string | null; + class: string | null; + subclass: string | null; + main_group: string | null; + subgroup: string | null; +} export interface PatentEntry { patent_id: string; source: string; - title?: string | null; - abstract?: string | null; - publication_date?: string | null; - publication_year?: string | null; - inventors?: Array; - assignees?: Array; - ipc?: Array; - country?: string | null; + title: string | null; + abstract: string | null; + publication_date: string | null; + publication_year: string | null; + application_number: string | null; + application_date: string | null; + kind: string | null; + application_type: string | null; + number_of_claims: number | null; + status: string | null; + inventors: string[]; + assignees: string[]; + ipc: string[]; + ipc_descriptions: IpcClassification[]; + cpc: string[]; + cpc_descriptions: IpcClassification[]; + country: string | null; } diff --git a/webapp/src/app/modules/patents/patents.component.ts b/webapp/src/app/modules/patents/patents.component.ts index ebb39b9d..d946a0e5 100644 --- a/webapp/src/app/modules/patents/patents.component.ts +++ b/webapp/src/app/modules/patents/patents.component.ts @@ -12,11 +12,8 @@ import { MatChipsModule } from '@angular/material/chips'; import { MatDividerModule } from '@angular/material/divider'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { debounceTime, distinctUntilChanged, Subject } from 'rxjs'; -import { - PatentsService, - PatentEntry, - IpcClassification, -} from '../../api/api/patents.service'; +import { PatentsService } from '../../api/api/patents.service'; +import { PatentEntry, IpcClassification } from '../../api/model/patentEntry'; type SourceFilter = 'all' | 'EPO' | 'USPTO'; type ClassificationSystem = 'IPC' | 'CPC'; diff --git a/webapp/src/app/modules/person-patents/person-patents.component.ts b/webapp/src/app/modules/person-patents/person-patents.component.ts index e4cb9912..a28131fa 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.ts +++ b/webapp/src/app/modules/person-patents/person-patents.component.ts @@ -1,7 +1,8 @@ import { Component, OnInit, inject } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ActivatedRoute, Router } from '@angular/router'; -import { PatentsService, PatentEntry, IpcClassification } from '../../api/api/patents.service'; +import { PatentsService } from '../../api/api/patents.service'; +import { PatentEntry, IpcClassification } from '../../api/model/patentEntry'; type SortMode = 'date' | 'title'; type SourceFilter = 'all' | 'EPO' | 'USPTO';