fix(patents): restore model types and fix component imports
LocationBasedServices/smartguide/pipeline/pr-dev This commit looks good
LocationBasedServices/smartguide/pipeline/pr-dev This commit looks good
This commit is contained in:
@@ -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<string>;
|
||||
assignees?: Array<string>;
|
||||
ipc?: Array<string>;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user