Merge branch 'dev' of https://project.nes.uni-due.de/gitea/lbs/smartguide into ts-82-author-overview-and-description

This commit is contained in:
2026-06-04 12:53:43 +02:00
145 changed files with 5865 additions and 1658 deletions
+51 -39
View File
@@ -1,66 +1,78 @@
.gitignore
.openapi-generator-ignore
README.md
api.base.service.ts
api.module.ts
api/api.ts
api/iNSEAccountService.service.ts
api/iNSEService.service.ts
api/items.service.ts
api/items.serviceInterface.ts
api/personNetwork.service.ts
api/persons.service.ts
api/persons.serviceInterface.ts
api/topics.service.ts
api/topics.serviceInterface.ts
api/works.service.ts
api/works.serviceInterface.ts
configuration.ts
encoder.ts
git_push.sh
index.ts
model/author-affiliations-inner.ts
model/author-counts-by-year-inner.ts
model/author-ids.ts
model/author-parsed-longest-name.ts
model/author-summary-stats.ts
model/accessGrant.ts
model/authAccount.ts
model/authScope.ts
model/author.ts
model/authors-list-response.ts
model/authorAffiliationsInner.ts
model/authorCountsByYearInner.ts
model/authorIds.ts
model/authorParsedLongestName.ts
model/authorSummaryStats.ts
model/authorsListResponse.ts
model/authorship.ts
model/award.ts
model/cost-usd.ts
model/dehydrated-author.ts
model/dehydrated-funder.ts
model/dehydrated-institution.ts
model/dehydrated-source.ts
model/collaborationNetwork.ts
model/collaborationNetworkEdge.ts
model/collaborationNetworkNode.ts
model/collaborationNetworkNodeType.ts
model/costUsd.ts
model/dehydratedAuthor.ts
model/dehydratedFunder.ts
model/dehydratedInstitution.ts
model/dehydratedSource.ts
model/filterInformation.ts
model/filterProperties.ts
model/fwci.ts
model/group-by-result.ts
model/http-validation-error.ts
model/item-create.ts
model/item-page.ts
model/groupByResult.ts
model/hTTPValidationError.ts
model/identityGrant.ts
model/institutionInformation.ts
model/item.ts
model/itemCreate.ts
model/itemPage.ts
model/location.ts
model/meta.ts
model/model2-yr-mean-citedness.ts
model/model2YrMeanCitedness.ts
model/models.ts
model/open-access.ts
model/person-bio.ts
model/openAccess.ts
model/personBio.ts
model/score.ts
model/validation-error-loc-inner.ts
model/validation-error.ts
model/validationError.ts
model/validationErrorLocInner.ts
model/value.ts
model/work-biblio.ts
model/work-citation-normalized-percentile.ts
model/work-cited-by-percentile-year.ts
model/work-counts-by-year-inner.ts
model/work-has-content.ts
model/work-ids.ts
model/work-keyword.ts
model/work-mesh-inner.ts
model/work-page.ts
model/work-sustainable-development-goals-inner.ts
model/work-topic-domain.ts
model/work-topic-field.ts
model/work-topic-subfield.ts
model/work-topic.ts
model/work.ts
model/works-list-response.ts
model/workBiblio.ts
model/workCitationNormalizedPercentile.ts
model/workCitedByPercentileYear.ts
model/workCountsByYearInner.ts
model/workHasContent.ts
model/workIds.ts
model/workKeyword.ts
model/workMeshInner.ts
model/workPage.ts
model/workSustainableDevelopmentGoalsInner.ts
model/workTopic.ts
model/workTopicDomain.ts
model/workTopicField.ts
model/workTopicInformation.ts
model/workTopicSubfield.ts
model/worksListResponse.ts
param.ts
provide-api.ts
variables.ts
+2 -2
View File
@@ -1,8 +1,8 @@
# @
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API for the Innovation Search Engine (INSE) application.
The version of the OpenAPI document: 1.0.0
The version of the OpenAPI document: 0.1.0
## Building
+2 -2
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -12,7 +12,7 @@ import { CustomHttpParameterCodec } from './encoder';
import { Configuration } from './configuration';
export class BaseService {
protected basePath = 'http://localhost';
protected basePath = 'http://localhost:8000';
public defaultHeaders = new HttpHeaders();
public configuration: Configuration;
public encoder: HttpParameterCodec;
+11 -9
View File
@@ -1,13 +1,15 @@
export * from './iNSEAccountService.service';
import { INSEAccountServiceService } from './iNSEAccountService.service';
export * from './iNSEService.service';
import { INSEServiceService } from './iNSEService.service';
export * from './items.service';
import { ItemsOpenApiService } from './items.service';
export * from './items.serviceInterface';
import { ItemsService } from './items.service';
export * from './personNetwork.service';
import { PersonNetworkService } from './personNetwork.service';
export * from './persons.service';
import { PersonsOpenApiService } from './persons.service';
export * from './persons.serviceInterface';
import { PersonsService } from './persons.service';
export * from './topics.service';
import { TopicsOpenApiService } from './topics.service';
export * from './topics.serviceInterface';
import { TopicsService } from './topics.service';
export * from './works.service';
import { WorksOpenApiService } from './works.service';
export * from './works.serviceInterface';
export const APIS = [ItemsOpenApiService, PersonsOpenApiService, TopicsOpenApiService, WorksOpenApiService];
import { WorksService } from './works.service';
export const APIS = [INSEAccountServiceService, INSEServiceService, ItemsService, PersonNetworkService, PersonsService, TopicsService, WorksService];
@@ -0,0 +1,213 @@
/**
* 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.
*/
/* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { AccessGrant } from '../model/accessGrant';
// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { IdentityGrant } from '../model/identityGrant';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
@Injectable({
providedIn: 'root'
})
export class INSEAccountServiceService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
* Get Access Grant
* @endpoint post /inse-account/auth/access
* @param secret
* @param account
* @param organization
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AccessGrant>;
public getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AccessGrant>>;
public getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AccessGrant>>;
public getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (secret === null || secret === undefined) {
throw new Error('Required parameter secret was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.');
}
if (account === null || account === undefined) {
throw new Error('Required parameter account was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.');
}
if (organization === null || organization === undefined) {
throw new Error('Required parameter organization was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.');
}
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
// to determine the Content-Type header
const consumes: string[] = [
'application/x-www-form-urlencoded'
];
const canConsumeForm = this.canConsumeForm(consumes);
let localVarFormParams: { append(param: string, value: any): any; };
let localVarUseForm = false;
let localVarConvertFormParamsToString = false;
if (localVarUseForm) {
localVarFormParams = new FormData();
} else {
localVarFormParams = new HttpParams({encoder: this.encoder});
}
if (secret !== undefined) {
localVarFormParams = localVarFormParams.append('secret', <any>secret) as any || localVarFormParams;
}
if (account !== undefined) {
localVarFormParams = localVarFormParams.append('account', <any>account) as any || localVarFormParams;
}
if (organization !== undefined) {
localVarFormParams = localVarFormParams.append('organization', <any>organization) as any || localVarFormParams;
}
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/inse-account/auth/access`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AccessGrant>('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Get Identity Grant
* @endpoint post /inse-account/auth/id
* @param username
* @param password
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getIdentityGrantInseAccountAuthIdPost(username: string, password: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<IdentityGrant>;
public getIdentityGrantInseAccountAuthIdPost(username: string, password: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<IdentityGrant>>;
public getIdentityGrantInseAccountAuthIdPost(username: string, password: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<IdentityGrant>>;
public getIdentityGrantInseAccountAuthIdPost(username: string, password: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (username === null || username === undefined) {
throw new Error('Required parameter username was null or undefined when calling getIdentityGrantInseAccountAuthIdPost.');
}
if (password === null || password === undefined) {
throw new Error('Required parameter password was null or undefined when calling getIdentityGrantInseAccountAuthIdPost.');
}
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
// to determine the Content-Type header
const consumes: string[] = [
'application/x-www-form-urlencoded'
];
const canConsumeForm = this.canConsumeForm(consumes);
let localVarFormParams: { append(param: string, value: any): any; };
let localVarUseForm = false;
let localVarConvertFormParamsToString = false;
if (localVarUseForm) {
localVarFormParams = new FormData();
} else {
localVarFormParams = new HttpParams({encoder: this.encoder});
}
if (username !== undefined) {
localVarFormParams = localVarFormParams.append('username', <any>username) as any || localVarFormParams;
}
if (password !== undefined) {
localVarFormParams = localVarFormParams.append('password', <any>password) as any || localVarFormParams;
}
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/inse-account/auth/id`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<IdentityGrant>('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
}
@@ -0,0 +1,813 @@
/**
* 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.
*/
/* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { AuthorsListResponse } from '../model/authorsListResponse';
// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { Item } from '../model/item';
// @ts-ignore
import { ItemCreate } from '../model/itemCreate';
// @ts-ignore
import { ItemPage } from '../model/itemPage';
// @ts-ignore
import { PersonBio } from '../model/personBio';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
@Injectable({
providedIn: 'root'
})
export class INSEServiceService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
* Adds a new item.
* @endpoint post /api/inse-service/items
* @param itemCreate
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public addItem(itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Item>;
public addItem(itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Item>>;
public addItem(itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Item>>;
public addItem(itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (itemCreate === null || itemCreate === undefined) {
throw new Error('Required parameter itemCreate was null or undefined when calling addItem.');
}
let localVarHeaders = this.defaultHeaders;
// authentication (bearer) required
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer ');
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
// to determine the Content-Type header
const consumes: string[] = [
'application/json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/items`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Item>('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: itemCreate,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Builds the topic hierarchy cache.
* @endpoint get /api/inse-service/topics/cache
* @param pageSize Page size for each search page.
* @param saveJson Persist cache JSON to data folder.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>pageSize, 'page_size');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>saveJson, 'save_json');
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/topics/cache`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Counts topic hierarchy occurrences from cache.
* @endpoint get /api/inse-service/topics/count
* @param topic Topic names (repeat parameter).
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public countTopicHierarchy(topic: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
public countTopicHierarchy(topic: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
public countTopicHierarchy(topic: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
public countTopicHierarchy(topic: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (topic === null || topic === undefined) {
throw new Error('Required parameter topic was null or undefined when calling countTopicHierarchy.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (topic) {
topic.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'topic');
})
}
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/topics/count`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Deletes the item with the id.
* @endpoint delete /api/inse-service/items/{id}
* @param id The item id.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public deleteItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
public deleteItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
public deleteItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
public deleteItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling deleteItem.');
}
let localVarHeaders = this.defaultHeaders;
// authentication (bearer) required
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer ');
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Generates a bio for a person by author ID.
* @endpoint get /api/inse-service/persons/bio
* @param authorId OpenAlex author ID (e.g., A5093075883)
* @param include Comma-separated list to include tags
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public generatePersonBio(authorId: string, include?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<PersonBio>;
public generatePersonBio(authorId: string, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PersonBio>>;
public generatePersonBio(authorId: string, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PersonBio>>;
public generatePersonBio(authorId: string, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (authorId === null || authorId === undefined) {
throw new Error('Required parameter authorId was null or undefined when calling generatePersonBio.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>authorId, 'author_id');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>include, 'include');
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/persons/bio`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<PersonBio>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Returns the item with the id.
* @endpoint get /api/inse-service/items/{id}
* @param id The item id.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Item>;
public getItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Item>>;
public getItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Item>>;
public getItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getItem.');
}
let localVarHeaders = this.defaultHeaders;
// authentication (bearer) required
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer ');
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Item>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Returns a page of items.
* @endpoint get /api/inse-service/items
* @param pageOffset The page offset.
* @param pageSize The page size.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getItems(pageOffset?: number, pageSize?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<ItemPage>;
public getItems(pageOffset?: number, pageSize?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ItemPage>>;
public getItems(pageOffset?: number, pageSize?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ItemPage>>;
public getItems(pageOffset?: number, pageSize?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>pageOffset, 'pageOffset');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>pageSize, 'pageSize');
let localVarHeaders = this.defaultHeaders;
// authentication (bearer) required
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer ');
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/items`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<ItemPage>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Searches for person by ID.
* @endpoint get /api/inse-service/person/{id}
* @param id OpenAlex author ID
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getPersonByID(id: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorsListResponse>;
public getPersonByID(id: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public getPersonByID(id: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public getPersonByID(id: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getPersonByID.');
}
if (include === null || include === undefined) {
throw new Error('Required parameter include was null or undefined when calling getPersonByID.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>include, 'include');
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/person/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Searches for persons by ID or name.
* @endpoint get /api/inse-service/persons/search
* @param authorId OpenAlex author ID (e.g., A5093075883)
* @param query Search query (e.g., Arman AND Arzani)
* @param include Comma-separated include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, sources, counts_by_year, works_api_url, dates, cited_by_count_boost
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorsListResponse>;
public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public searchPersons(authorId?: string, query?: string, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>authorId, 'author_id');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>query, 'query');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>include, 'include');
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/persons/search`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Searches for persons by institution name.
* @endpoint get /api/inse-service/persons/searchByInstitution
* @param institutionName Institution name (e.g., MIT, Oxford University)
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public searchPersonsByInstitution(institutionName: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorsListResponse>;
public searchPersonsByInstitution(institutionName: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public searchPersonsByInstitution(institutionName: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public searchPersonsByInstitution(institutionName: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (institutionName === null || institutionName === undefined) {
throw new Error('Required parameter institutionName was null or undefined when calling searchPersonsByInstitution.');
}
if (include === null || include === undefined) {
throw new Error('Required parameter include was null or undefined when calling searchPersonsByInstitution.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>institutionName, 'institution_name');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>include, 'include');
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/persons/searchByInstitution`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Searches for person by name.
* @endpoint get /api/inse-service/persons/searchByName
* @param authorName Authors name (e.g., Arman Arzani)
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public searchPersonsByName(authorName: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorsListResponse>;
public searchPersonsByName(authorName: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public searchPersonsByName(authorName: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public searchPersonsByName(authorName: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (authorName === null || authorName === undefined) {
throw new Error('Required parameter authorName was null or undefined when calling searchPersonsByName.');
}
if (include === null || include === undefined) {
throw new Error('Required parameter include was null or undefined when calling searchPersonsByName.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>authorName, 'author_name');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>include, 'include');
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/persons/searchByName`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Updates the item with the id.
* @endpoint put /api/inse-service/items/{id}
* @param id The item id.
* @param itemCreate
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public updateItem(id: number, itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Item>;
public updateItem(id: number, itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Item>>;
public updateItem(id: number, itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Item>>;
public updateItem(id: number, itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling updateItem.');
}
if (itemCreate === null || itemCreate === undefined) {
throw new Error('Required parameter itemCreate was null or undefined when calling updateItem.');
}
let localVarHeaders = this.defaultHeaders;
// authentication (bearer) required
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer ');
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
// to determine the Content-Type header
const consumes: string[] = [
'application/json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Item>('put', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: itemCreate,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
}
+15 -18
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -17,28 +17,25 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { Item } from '../model/item';
// @ts-ignore
import { ItemCreate } from '../model/item-create';
import { ItemCreate } from '../model/itemCreate';
// @ts-ignore
import { ItemPage } from '../model/item-page';
import { ItemPage } from '../model/itemPage';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
ItemsOpenApiServiceInterface
} from './items.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServiceInterface {
export class ItemsService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -46,7 +43,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
/**
* Adds a new item.
* @endpoint post /items
* @endpoint post /api/inse-service/items
* @param itemCreate
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -96,7 +93,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
}
}
let localVarPath = `/items`;
let localVarPath = `/api/inse-service/items`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Item>('post', `${basePath}${localVarPath}`,
{
@@ -114,7 +111,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
/**
* Deletes the item with the id.
* @endpoint delete /items/{id}
* @endpoint delete /api/inse-service/items/{id}
* @param id The item id.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -155,7 +152,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
}
}
let localVarPath = `/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`;
let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
{
@@ -172,7 +169,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
/**
* Returns the item with the id.
* @endpoint get /items/{id}
* @endpoint get /api/inse-service/items/{id}
* @param id The item id.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -213,7 +210,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
}
}
let localVarPath = `/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`;
let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Item>('get', `${basePath}${localVarPath}`,
{
@@ -230,7 +227,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
/**
* Returns a page of items.
* @endpoint get /items
* @endpoint get /api/inse-service/items
* @param pageOffset The page offset.
* @param pageSize The page size.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -275,7 +272,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
}
}
let localVarPath = `/items`;
let localVarPath = `/api/inse-service/items`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<ItemPage>('get', `${basePath}${localVarPath}`,
{
@@ -293,7 +290,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
/**
* Updates the item with the id.
* @endpoint put /items/{id}
* @endpoint put /api/inse-service/items/{id}
* @param id The item id.
* @param itemCreate
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -347,7 +344,7 @@ export class ItemsOpenApiService extends BaseService implements ItemsOpenApiServ
}
}
let localVarPath = `/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`;
let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Item>('put', `${basePath}${localVarPath}`,
{
@@ -1,70 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { HTTPValidationError } from '../model/models';
import { Item } from '../model/models';
import { ItemCreate } from '../model/models';
import { ItemPage } from '../model/models';
import { Configuration } from '../configuration';
export interface ItemsOpenApiServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Adds a new item.
*
* @endpoint post /items
* @param itemCreate
*/
addItem(itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
/**
* Deletes the item with the id.
*
* @endpoint delete /items/{id}
* @param id The item id.
*/
deleteItem(id: number, extraHttpRequestParams?: any): Observable<any>;
/**
* Returns the item with the id.
*
* @endpoint get /items/{id}
* @param id The item id.
*/
getItem(id: number, extraHttpRequestParams?: any): Observable<Item>;
/**
* Returns a page of items.
*
* @endpoint get /items
* @param pageOffset The page offset.
* @param pageSize The page size.
*/
getItems(pageOffset?: number, pageSize?: number, extraHttpRequestParams?: any): Observable<ItemPage>;
/**
* Updates the item with the id.
*
* @endpoint put /items/{id}
* @param id The item id.
* @param itemCreate
*/
updateItem(id: number, itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
}
@@ -0,0 +1,109 @@
/**
* 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.
*/
/* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { CollaborationNetwork } from '../model/collaborationNetwork';
// @ts-ignore
import { FilterProperties } from '../model/filterProperties';
// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
@Injectable({
providedIn: 'root'
})
export class PersonNetworkService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
* Get a person\&#39;s collaboration network.
* Returns a person\&#39;s collaboration network based on their works and co-authors.
* @endpoint post /api/person/network/{raw_user_id}
* @param rawUserId The raw user ID of the person.
* @param filterProperties
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CollaborationNetwork>;
public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CollaborationNetwork>>;
public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CollaborationNetwork>>;
public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (rawUserId === null || rawUserId === undefined) {
throw new Error('Required parameter rawUserId was null or undefined when calling getCollaborationNetwork.');
}
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
// to determine the Content-Type header
const consumes: string[] = [
'application/json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/person/network/${this.configuration.encodeParam({name: "rawUserId", value: rawUserId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<CollaborationNetwork>('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: filterProperties,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
}
+22 -27
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -17,26 +17,23 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { AuthorsListResponse } from '../model/authors-list-response';
import { AuthorsListResponse } from '../model/authorsListResponse';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { PersonBio } from '../model/person-bio';
import { PersonBio } from '../model/personBio';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
PersonsOpenApiServiceInterface
} from './persons.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class PersonsOpenApiService extends BaseService implements PersonsOpenApiServiceInterface {
export class PersonsService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -44,7 +41,7 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
/**
* Generates a bio for a person by author ID.
* @endpoint get /persons/bio
* @endpoint get /api/inse-service/persons/bio
* @param authorId OpenAlex author ID (e.g., A5093075883)
* @param include Comma-separated list to include tags
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -89,7 +86,7 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
}
}
let localVarPath = `/persons/bio`;
let localVarPath = `/api/inse-service/persons/bio`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<PersonBio>('get', `${basePath}${localVarPath}`,
{
@@ -107,26 +104,24 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
/**
* Searches for person by ID.
* @endpoint get /persons/id
* @param authorId OpenAlex author ID (e.g., A5093075883)
* @endpoint get /api/inse-service/person/{id}
* @param id OpenAlex author ID
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getPersonByID(authorId: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorsListResponse>;
public getPersonByID(authorId: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public getPersonByID(authorId: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public getPersonByID(authorId: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (authorId === null || authorId === undefined) {
throw new Error('Required parameter authorId was null or undefined when calling getPersonByID.');
public getPersonByID(id: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorsListResponse>;
public getPersonByID(id: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public getPersonByID(id: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public getPersonByID(id: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getPersonByID.');
}
if (include === null || include === undefined) {
throw new Error('Required parameter include was null or undefined when calling getPersonByID.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>authorId, 'author_id');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>include, 'include');
@@ -155,7 +150,7 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
}
}
let localVarPath = `/persons/id`;
let localVarPath = `/api/inse-service/person/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
@@ -173,7 +168,7 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
/**
* Searches for persons by ID or name.
* @endpoint get /persons/search
* @endpoint get /api/inse-service/persons/search
* @param authorId OpenAlex author ID (e.g., A5093075883)
* @param query Search query (e.g., Arman AND Arzani)
* @param include Comma-separated include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, sources, counts_by_year, works_api_url, dates, cited_by_count_boost
@@ -218,7 +213,7 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
}
}
let localVarPath = `/persons/search`;
let localVarPath = `/api/inse-service/persons/search`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
@@ -302,7 +297,7 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
/**
* Searches for persons by institution name.
* @endpoint get /persons/searchByInstitution
* @endpoint get /api/inse-service/persons/searchByInstitution
* @param institutionName Institution name (e.g., MIT, Oxford University)
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -350,7 +345,7 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
}
}
let localVarPath = `/persons/searchByInstitution`;
let localVarPath = `/api/inse-service/persons/searchByInstitution`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
@@ -368,7 +363,7 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
/**
* Searches for person by name.
* @endpoint get /persons/searchByName
* @endpoint get /api/inse-service/persons/searchByName
* @param authorName Authors name (e.g., Arman Arzani)
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -416,7 +411,7 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
}
}
let localVarPath = `/persons/searchByName`;
let localVarPath = `/api/inse-service/persons/searchByName`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
@@ -1,82 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AuthorsListResponse } from '../model/models';
import { HTTPValidationError } from '../model/models';
import { PersonBio } from '../model/models';
import { Configuration } from '../configuration';
export interface PersonsOpenApiServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Generates a bio for a person by author ID.
*
* @endpoint get /persons/bio
* @param authorId OpenAlex author ID (e.g., A5093075883)
* @param include Comma-separated list to include tags
*/
generatePersonBio(authorId: string, include?: string, extraHttpRequestParams?: any): Observable<PersonBio>;
/**
* Searches for person by ID.
*
* @endpoint get /persons/id
* @param authorId OpenAlex author ID (e.g., A5093075883)
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
*/
getPersonByID(authorId: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* Searches for persons by ID or name.
*
* @endpoint get /persons/search
* @param authorId OpenAlex author ID (e.g., A5093075883)
* @param query Search query (e.g., Arman AND Arzani)
* @param include Comma-separated include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, sources, counts_by_year, works_api_url, dates, cited_by_count_boost
*/
searchPersons(authorId?: string, query?: string, include?: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* Searches for person by name.
*
* @endpoint get /persons/autocomplete
* @param authorName Authors name (e.g., Arman Arzani)
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
*/
searchPersonsAutocomplete(authorName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* Searches for persons by institution name.
*
* @endpoint get /persons/searchByInstitution
* @param institutionName Institution name (e.g., MIT, Oxford University)
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
*/
searchPersonsByInstitution(institutionName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* Searches for person by name.
*
* @endpoint get /persons/searchByName
* @param authorName Authors name (e.g., Arman Arzani)
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
*/
searchPersonsByName(authorName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
}
+7 -10
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -17,22 +17,19 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
TopicsOpenApiServiceInterface
} from './topics.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class TopicsOpenApiService extends BaseService implements TopicsOpenApiServiceInterface {
export class TopicsService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -40,7 +37,7 @@ export class TopicsOpenApiService extends BaseService implements TopicsOpenApiSe
/**
* Builds the topic hierarchy cache.
* @endpoint get /topics/cache
* @endpoint get /api/inse-service/topics/cache
* @param pageSize Page size for each search page.
* @param saveJson Persist cache JSON to data folder.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -82,7 +79,7 @@ export class TopicsOpenApiService extends BaseService implements TopicsOpenApiSe
}
}
let localVarPath = `/topics/cache`;
let localVarPath = `/api/inse-service/topics/cache`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
{
@@ -100,7 +97,7 @@ export class TopicsOpenApiService extends BaseService implements TopicsOpenApiSe
/**
* Counts topic hierarchy occurrences from cache.
* @endpoint get /topics/count
* @endpoint get /api/inse-service/topics/count
* @param topic Topic names (repeat parameter).
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -146,7 +143,7 @@ export class TopicsOpenApiService extends BaseService implements TopicsOpenApiSe
}
}
let localVarPath = `/topics/count`;
let localVarPath = `/api/inse-service/topics/count`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
{
@@ -1,42 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { HTTPValidationError } from '../model/models';
import { Configuration } from '../configuration';
export interface TopicsOpenApiServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Builds the topic hierarchy cache.
*
* @endpoint get /topics/cache
* @param pageSize Page size for each search page.
* @param saveJson Persist cache JSON to data folder.
*/
buildTopicCache(pageSize?: number, saveJson?: boolean, extraHttpRequestParams?: any): Observable<object>;
/**
* Counts topic hierarchy occurrences from cache.
*
* @endpoint get /topics/count
* @param topic Topic names (repeat parameter).
*/
countTopicHierarchy(topic: Array<string>, extraHttpRequestParams?: any): Observable<object>;
}
+9 -12
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -17,26 +17,23 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { WorkPage } from '../model/work-page';
import { WorkPage } from '../model/workPage';
// @ts-ignore
import { WorksListResponse } from '../model/works-list-response';
import { WorksListResponse } from '../model/worksListResponse';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
WorksOpenApiServiceInterface
} from './works.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class WorksOpenApiService extends BaseService implements WorksOpenApiServiceInterface {
export class WorksService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -44,7 +41,7 @@ export class WorksOpenApiService extends BaseService implements WorksOpenApiServ
/**
* Returns all works for an author.
* @endpoint get /authors/{author_id}/works/all
* @endpoint get /api/works/{author_id}/all
* @param authorId The author id, for example A5023888391.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -85,7 +82,7 @@ export class WorksOpenApiService extends BaseService implements WorksOpenApiServ
}
}
let localVarPath = `/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/works/all`;
let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/all`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<WorksListResponse>('get', `${basePath}${localVarPath}`,
{
@@ -102,7 +99,7 @@ export class WorksOpenApiService extends BaseService implements WorksOpenApiServ
/**
* Returns a page of works for an author.
* @endpoint get /authors/{author_id}/works
* @endpoint get /api/works/{author_id}
* @param authorId The author id, for example A5023888391.
* @param page The page number.
* @param size The page size.
@@ -172,7 +169,7 @@ export class WorksOpenApiService extends BaseService implements WorksOpenApiServ
}
}
let localVarPath = `/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/works`;
let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<WorkPage>('get', `${basePath}${localVarPath}`,
{
@@ -1,48 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { HTTPValidationError } from '../model/models';
import { WorkPage } from '../model/models';
import { WorksListResponse } from '../model/models';
import { Configuration } from '../configuration';
export interface WorksOpenApiServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Returns all works for an author.
*
* @endpoint get /authors/{author_id}/works/all
* @param authorId The author id, for example A5023888391.
*/
getAllAuthorWorks(authorId: string, extraHttpRequestParams?: any): Observable<WorksListResponse>;
/**
* Returns a page of works for an author.
*
* @endpoint get /authors/{author_id}/works
* @param authorId The author id, for example A5023888391.
* @param page The page number.
* @param size The page size.
* @param publicationYear Filter by publication year. Can be repeated.
* @param type Filter by publication type. Can be repeated.
* @param language Filter by language code. Can be repeated.
*/
getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, extraHttpRequestParams?: any): Observable<WorkPage>;
}
+20
View File
@@ -0,0 +1,20 @@
/**
* 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.
*/
import { AuthScope } from './authScope';
export interface AccessGrant {
token_type: string;
access_token: string;
expires_in: number;
scope: AuthScope;
refresh_token: string;
}
-19
View File
@@ -1,19 +0,0 @@
/**
* My App Service
*
*
*
* 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 Affiliation {
/**
* Institution name.
*/
institution: string;
country_code?: string | null;
}
+17
View File
@@ -0,0 +1,17 @@
/**
* 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 AuthAccount {
i: number;
l: string;
o: number;
}
+19
View File
@@ -0,0 +1,19 @@
/**
* 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.
*/
import { AuthAccount } from './authAccount';
export interface AuthScope {
t: string;
a: AuthAccount;
d?: number | null;
r?: Array<string>;
}
@@ -1,20 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* AuthorTopicsInner
*/
export interface AuthorTopicsInner {
id?: string | null;
display_name?: string | null;
count?: number | null;
}
+8 -8
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,13 +7,13 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AuthorAffiliationsInner } from './author-affiliations-inner';
import { AuthorParsedLongestName } from './author-parsed-longest-name';
import { DehydratedInstitution } from './dehydrated-institution';
import { AuthorCountsByYearInner } from './author-counts-by-year-inner';
import { AuthorIds } from './author-ids';
import { AuthorSummaryStats } from './author-summary-stats';
import { WorkTopic } from './work-topic';
import { AuthorAffiliationsInner } from './authorAffiliationsInner';
import { AuthorParsedLongestName } from './authorParsedLongestName';
import { DehydratedInstitution } from './dehydratedInstitution';
import { AuthorCountsByYearInner } from './authorCountsByYearInner';
import { AuthorIds } from './authorIds';
import { AuthorSummaryStats } from './authorSummaryStats';
import { WorkTopic } from './workTopic';
/**
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DehydratedInstitution } from './dehydrated-institution';
import { DehydratedInstitution } from './dehydratedInstitution';
/**
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Model2YrMeanCitedness } from './model2-yr-mean-citedness';
import { Model2YrMeanCitedness } from './model2YrMeanCitedness';
/**
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -9,7 +9,7 @@
*/
import { Meta } from './meta';
import { Author } from './author';
import { GroupByResult } from './group-by-result';
import { GroupByResult } from './groupByResult';
/**
+3 -3
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,8 +7,8 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DehydratedInstitution } from './dehydrated-institution';
import { DehydratedAuthor } from './dehydrated-author';
import { DehydratedInstitution } from './dehydratedInstitution';
import { DehydratedAuthor } from './dehydratedAuthor';
/**
+1 -1
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
-21
View File
@@ -1,21 +0,0 @@
/**
* My App Service
*
*
*
* 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 Biblio {
[key: string]: any | any;
volume?: string | null;
issue?: string | null;
first_page?: string | null;
last_page?: string | null;
}
@@ -1,20 +0,0 @@
/**
* My App Service
*
*
*
* 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 CitationNormalizedPercentile {
[key: string]: any | any;
value?: number | null;
is_in_top_1_percent?: boolean | null;
is_in_top_10_percent?: boolean | null;
}
@@ -1,19 +0,0 @@
/**
* My App Service
*
*
*
* 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 CitedByPercentileYear {
[key: string]: any | any;
min?: number | null;
max?: number | null;
}
@@ -0,0 +1,33 @@
/**
* 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.
*/
import { FilterInformation } from './filterInformation';
import { CollaborationNetworkEdge } from './collaborationNetworkEdge';
import { CollaborationNetworkNode } from './collaborationNetworkNode';
export interface CollaborationNetwork {
/**
* The raw person ID of the person whose collaboration network this is.
*/
raw_person_id: string;
/**
* The nodes in the collaboration network.
*/
nodes: Array<CollaborationNetworkNode>;
/**
* The edges in the collaboration network.
*/
edges: Array<CollaborationNetworkEdge>;
/**
* The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network.
*/
filter_information: FilterInformation;
}
@@ -0,0 +1,22 @@
/**
* 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 CollaborationNetworkEdge {
/**
* The raw ID of the source node.
*/
raw_source_id: string;
/**
* The raw ID of the target node.
*/
raw_target_id: string;
}
@@ -0,0 +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.
*/
import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType';
export interface CollaborationNetworkNode {
/**
* The raw ID of the node. For an author node, this is the raw person ID. For an institution node, this is the raw institution ID. For a work node, this is the raw work ID.
*/
raw_id: string;
/**
* The display name of the node.
*/
display_name: string;
/**
* The category of the node, either \'author\', \'institution\', or \'work\'.
*/
category: CollaborationNetworkNodeType;
}
export namespace CollaborationNetworkNode {
}
@@ -0,0 +1,18 @@
/**
* 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 const CollaborationNetworkNodeType = {
Author: 'author',
Institution: 'institution',
Work: 'work'
} as const;
export type CollaborationNetworkNodeType = typeof CollaborationNetworkNodeType[keyof typeof CollaborationNetworkNodeType];
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
-22
View File
@@ -1,22 +0,0 @@
/**
* My App Service
*
*
*
* 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 CountByYear {
[key: string]: any | any;
year?: number | null;
/**
* The citation count for the year.
*/
cited_by_count?: number;
}
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -0,0 +1,32 @@
/**
* 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.
*/
import { InstitutionInformation } from './institutionInformation';
import { WorkTopicInformation } from './workTopicInformation';
export interface FilterInformation {
/**
* The minimum publication year of the works in the collaboration network.
*/
min_possible_year: number;
/**
* The maximum publication year of the works in the collaboration network.
*/
max_possible_year: number;
/**
* The list of institutions associated with the works in the collaboration network.
*/
institutions: Array<InstitutionInformation>;
/**
* The list of topics associated with the works in the collaboration network.
*/
topics: Array<WorkTopicInformation>;
}
@@ -0,0 +1,22 @@
/**
* 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 FilterProperties {
start_year: number | null;
end_year: number | null;
allowed_institutions: Array<string> | null;
allowed_topics: Array<string> | null;
min_collaborators: number | null;
max_collaborators: number | null;
min_collaborations: number | null;
max_collaborations: number | null;
}
-20
View File
@@ -1,20 +0,0 @@
/**
* My App Service
*
*
*
* 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 Funder {
[key: string]: any | any;
id?: string | null;
display_name?: string | null;
ror?: string | null;
}
+1 -1
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ValidationError } from './validation-error';
import { ValidationError } from './validationError';
export interface HTTPValidationError {
-19
View File
@@ -1,19 +0,0 @@
/**
* My App Service
*
*
*
* 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 HasContent {
[key: string]: any | any;
pdf?: boolean | null;
grobid_xml?: boolean | null;
}
+19
View File
@@ -0,0 +1,19 @@
/**
* 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.
*/
import { AuthScope } from './authScope';
export interface IdentityGrant {
token_type: string;
access_token: string;
expires_in: number;
scope: AuthScope;
}
-23
View File
@@ -1,23 +0,0 @@
/**
* My App Service
*
*
*
* 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 Institution {
[key: string]: any | any;
id?: string | null;
display_name?: string | null;
ror?: string | null;
country_code?: string | null;
type?: string | null;
lineage?: Array<string> | null;
}
@@ -0,0 +1,22 @@
/**
* 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 InstitutionInformation {
/**
* The raw institution ID of the institution.
*/
raw_id: string;
/**
* The display name of the institution.
*/
display_name: string;
}
+1 -1
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
-20
View File
@@ -1,20 +0,0 @@
/**
* My App Service
*
*
*
* 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 Keyword {
[key: string]: any | any;
id?: string | null;
display_name?: string | null;
score?: number | null;
}
+2 -2
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DehydratedSource } from './dehydrated-source';
import { DehydratedSource } from './dehydratedSource';
/**
-22
View File
@@ -1,22 +0,0 @@
/**
* My App Service
*
*
*
* 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 Mesh {
[key: string]: any | any;
descriptor_ui?: string | null;
descriptor_name?: string | null;
qualifier_ui?: string | null;
qualifier_name?: string | null;
is_major_topic?: boolean | null;
}
+2 -2
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CostUsd } from './cost-usd';
import { CostUsd } from './costUsd';
/**
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
+47 -35
View File
@@ -1,45 +1,57 @@
export * from './accessGrant';
export * from './authAccount';
export * from './authScope';
export * from './author';
export * from './author-affiliations-inner';
export * from './author-counts-by-year-inner';
export * from './author-ids';
export * from './author-parsed-longest-name';
export * from './author-summary-stats';
export * from './authors-list-response';
export * from './authorAffiliationsInner';
export * from './authorCountsByYearInner';
export * from './authorIds';
export * from './authorParsedLongestName';
export * from './authorSummaryStats';
export * from './authorsListResponse';
export * from './authorship';
export * from './award';
export * from './cost-usd';
export * from './dehydrated-author';
export * from './dehydrated-funder';
export * from './dehydrated-institution';
export * from './dehydrated-source';
export * from './collaborationNetwork';
export * from './collaborationNetworkEdge';
export * from './collaborationNetworkNode';
export * from './collaborationNetworkNodeType';
export * from './costUsd';
export * from './dehydratedAuthor';
export * from './dehydratedFunder';
export * from './dehydratedInstitution';
export * from './dehydratedSource';
export * from './filterInformation';
export * from './filterProperties';
export * from './fwci';
export * from './group-by-result';
export * from './http-validation-error';
export * from './groupByResult';
export * from './hTTPValidationError';
export * from './identityGrant';
export * from './institutionInformation';
export * from './item';
export * from './item-create';
export * from './item-page';
export * from './itemCreate';
export * from './itemPage';
export * from './location';
export * from './meta';
export * from './model2-yr-mean-citedness';
export * from './open-access';
export * from './person-bio';
export * from './model2YrMeanCitedness';
export * from './openAccess';
export * from './personBio';
export * from './score';
export * from './validation-error';
export * from './validation-error-loc-inner';
export * from './validationError';
export * from './validationErrorLocInner';
export * from './value';
export * from './work';
export * from './work-biblio';
export * from './work-citation-normalized-percentile';
export * from './work-cited-by-percentile-year';
export * from './work-counts-by-year-inner';
export * from './work-has-content';
export * from './work-ids';
export * from './work-keyword';
export * from './work-mesh-inner';
export * from './work-page';
export * from './work-sustainable-development-goals-inner';
export * from './work-topic';
export * from './work-topic-domain';
export * from './work-topic-field';
export * from './work-topic-subfield';
export * from './works-list-response';
export * from './workBiblio';
export * from './workCitationNormalizedPercentile';
export * from './workCitedByPercentileYear';
export * from './workCountsByYearInner';
export * from './workHasContent';
export * from './workIds';
export * from './workKeyword';
export * from './workMeshInner';
export * from './workPage';
export * from './workSustainableDevelopmentGoalsInner';
export * from './workTopic';
export * from './workTopicDomain';
export * from './workTopicField';
export * from './workTopicInformation';
export * from './workTopicSubfield';
export * from './worksListResponse';
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,19 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Person } from './person';
export interface PersonSearchResult {
/**
* List of found persons.
*/
persons?: Array<Person>;
}
-49
View File
@@ -1,49 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Affiliation } from './affiliation';
export interface Person {
/**
* The person id.
*/
id: string;
/**
* The person name.
*/
name: string;
/**
* Number of works.
*/
works_count: number;
/**
* Number of citations.
*/
cited_by_count: number;
/**
* Affiliations.
*/
affiliations?: Array<Affiliation>;
/**
* Research topics.
*/
topics?: Array<string>;
topics_full?: Array<object> | null;
topic_share?: Array<object> | null;
summary_stats?: object | null;
ids?: object | null;
last_known_institutions?: Array<object> | null;
sources?: Array<object> | null;
counts_by_year?: Array<object> | null;
works_api_url?: string | null;
dates?: object | null;
cited_by_count_boost?: number | null;
}
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
+1 -1
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
-28
View File
@@ -1,28 +0,0 @@
/**
* My App Service
*
*
*
* 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 Source {
[key: string]: any | any;
id?: string | null;
display_name?: string | null;
issn_l?: string | null;
issn?: Array<string> | null;
is_oa?: boolean | null;
is_in_doaj?: boolean | null;
is_core?: boolean | null;
host_organization?: string | null;
host_organization_name?: string | null;
host_organization_lineage?: Array<string> | null;
type?: string | null;
}
@@ -1,20 +0,0 @@
/**
* My App Service
*
*
*
* 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 SustainableDevelopmentGoal {
[key: string]: any | any;
id?: string | null;
display_name?: string | null;
score?: number | null;
}
-19
View File
@@ -1,19 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The domain (highest level) containing this topic:
*/
export interface TopicDomain {
id?: string | null;
display_name?: string | null;
}
-19
View File
@@ -1,19 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The field (second level) containing this topic:
*/
export interface TopicField {
id?: string | null;
display_name?: string | null;
}
-19
View File
@@ -1,19 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* External identifiers:
*/
export interface TopicIds {
openalex?: string | null;
wikipedia?: string | null;
}
-19
View File
@@ -1,19 +0,0 @@
/**
* My App Service
*
*
*
* 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 TopicLevel {
[key: string]: any | any;
id?: string | null;
display_name?: string | null;
}
@@ -1,19 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The subfield (third level) containing this topic:
*/
export interface TopicSubfield {
id?: string | null;
display_name?: string | null;
}
-34
View File
@@ -1,34 +0,0 @@
/**
* My App Service
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { TopicDomain } from './topic-domain';
import { TopicIds } from './topic-ids';
import { TopicSubfield } from './topic-subfield';
import { TopicField } from './topic-field';
/**
* A research topic automatically assigned to works
*/
export interface Topic {
id?: string | null;
display_name?: string | null;
description?: string | null;
keywords?: Array<string> | null;
subfield?: TopicSubfield | null;
field?: TopicField | null;
domain?: TopicDomain | null;
works_count?: number | null;
cited_by_count?: number | null;
ids?: TopicIds | null;
works_api_url?: string | null;
created_date?: string | null;
updated_date?: string | null;
}
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ValidationErrorLocInner } from './validation-error-loc-inner';
import { ValidationErrorLocInner } from './validationErrorLocInner';
export interface ValidationError {
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
+1 -1
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
-27
View File
@@ -1,27 +0,0 @@
/**
* My App Service
*
*
*
* 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 WorkSummary {
doi?: string | null;
title?: string | null;
type?: string | null;
language?: string | null;
publication_year?: number | null;
/**
* The number of citations.
*/
cited_by_count?: number;
/**
* The display names of the work topics.
*/
topics?: Array<string>;
}
+13 -13
View File
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,22 +7,22 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DehydratedFunder } from './dehydrated-funder';
import { DehydratedFunder } from './dehydratedFunder';
import { Authorship } from './authorship';
import { OpenAccess } from './open-access';
import { WorkIds } from './work-ids';
import { WorkSustainableDevelopmentGoalsInner } from './work-sustainable-development-goals-inner';
import { WorkTopic } from './work-topic';
import { WorkCountsByYearInner } from './work-counts-by-year-inner';
import { WorkKeyword } from './work-keyword';
import { WorkCitationNormalizedPercentile } from './work-citation-normalized-percentile';
import { OpenAccess } from './openAccess';
import { WorkIds } from './workIds';
import { WorkSustainableDevelopmentGoalsInner } from './workSustainableDevelopmentGoalsInner';
import { WorkTopic } from './workTopic';
import { WorkCountsByYearInner } from './workCountsByYearInner';
import { WorkKeyword } from './workKeyword';
import { WorkCitationNormalizedPercentile } from './workCitationNormalizedPercentile';
import { Award } from './award';
import { Fwci } from './fwci';
import { WorkMeshInner } from './work-mesh-inner';
import { WorkCitedByPercentileYear } from './work-cited-by-percentile-year';
import { WorkHasContent } from './work-has-content';
import { WorkMeshInner } from './workMeshInner';
import { WorkCitedByPercentileYear } from './workCitedByPercentileYear';
import { WorkHasContent } from './workHasContent';
import { Location } from './location';
import { WorkBiblio } from './work-biblio';
import { WorkBiblio } from './workBiblio';
/**
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -8,9 +8,9 @@
* Do not edit the class manually.
*/
import { Score } from './score';
import { WorkTopicDomain } from './work-topic-domain';
import { WorkTopicSubfield } from './work-topic-subfield';
import { WorkTopicField } from './work-topic-field';
import { WorkTopicDomain } from './workTopicDomain';
import { WorkTopicSubfield } from './workTopicSubfield';
import { WorkTopicField } from './workTopicField';
/**
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -7,17 +7,16 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Work } from './work';
export interface WorkList {
export interface WorkTopicInformation {
/**
* All works.
* The ID of the topic.
*/
elements?: Array<Work>;
raw_topic_id: string;
/**
* The total number of works.
* The name of the topic.
*/
total?: number;
display_name: string;
}
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -1,5 +1,5 @@
/**
* My App Service
* Innovation Search Engine API
*
*
*
@@ -9,7 +9,7 @@
*/
import { Meta } from './meta';
import { Work } from './work';
import { GroupByResult } from './group-by-result';
import { GroupByResult } from './groupByResult';
/**