fix(patents): move interfaces to model file
LocationBasedServices/smartguide/pipeline/pr-dev There was a failure building this commit

This commit is contained in:
2026-06-25 20:31:07 +02:00
parent c835f87836
commit 2babbef08a
2 changed files with 27 additions and 50 deletions
+2 -33
View File
@@ -1,7 +1,6 @@
import { Inject, Injectable, Optional } from '@angular/core';
import {
HttpClient,
HttpHeaders,
HttpParams,
HttpResponse,
HttpEvent,
@@ -12,39 +11,9 @@ import { Observable } from 'rxjs';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import { IpcClassification, PatentEntry } from '../model/patentEntry';
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;
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;
}
interface PatentsByAuthorResponse {
export interface PatentsByAuthorResponse {
author_id: string;
author_name: string | null;
patent_count: number;
+25 -17
View File
@@ -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;
}