Compare commits

...
Author SHA1 Message Date
Mats Paul Tončik 5f71a4b56c Merge remote-tracking branch 'origin/dev' into work-purpose
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-07-11 21:16:58 +02:00
Mats Paul Tončik 77c7eeef8b fix(person/publications): changed publications to generic data table
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-07-10 17:02:19 +02:00
Mats Paul Tončik 5b894d8927 fix(person/publications): moved work purposes and publications table to new expansion panel 2026-07-10 15:23:56 +02:00
Mats Paul Tončik b352e5288a feat(frontend/work-purpose): added work purpose bar chart for author publications 2026-07-10 14:58:46 +02:00
Louis 7bbfe1761d reduce publications: reduce .scss below budget
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-07-10 14:08:20 +02:00
Louis 09cb54109a person: remove dummy contact data in profile header 2026-07-10 13:52:29 +02:00
Louis 010e1c7f21 publications: sort author publications by citations or year
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit
2026-07-10 13:43:08 +02:00
Louis d1802fa1f8 publication detail: paginate authors and institutions lists 2026-07-10 13:12:27 +02:00
Louis 4d0a6db3c3 Merge remote-tracking branch 'origin/dev' into publications-and-topics 2026-07-10 12:39:46 +02:00
Louis a8e582cf23 publication-detail: make external links section collapsible 2026-07-07 09:46:53 +02:00
Louis 940c050cd7 publication-detail: make sources and funding sections collapsible 2026-07-07 09:44:17 +02:00
Louis e470b65b5a publication-detail: make authors and institutions collapsible like news sidebar 2026-07-07 09:38:06 +02:00
Louis 383c77134a publication-detail: link topic chips to person search topic filter 2026-07-07 09:19:34 +02:00
Louis bb941361a1 publication-detail: link topic chips to keywords topic mapping 2026-07-07 09:04:43 +02:00
Louis 5d22b201e9 publications/persons: add open-institution shortcut to institution tags and filter chips 2026-07-07 08:50:48 +02:00
246 changed files with 10375 additions and 13839 deletions
@@ -23,6 +23,7 @@ def get_client() -> httpx.AsyncClient:
global _client, _loop global _client, _loop
try: try:
import asyncio import asyncio
current_loop = asyncio.get_running_loop() current_loop = asyncio.get_running_loop()
except RuntimeError: except RuntimeError:
current_loop = None current_loop = None
@@ -45,7 +46,7 @@ def _cluster_credentials(cluster: ESCluster) -> Tuple[str, str]:
Returns: Returns:
Tuple[str, str]: The Elasticsearch URL and API key for the specified cluster. Tuple[str, str]: The Elasticsearch URL and API key for the specified cluster.
""" """
if cluster == ESCluster.NES: if cluster == ESCluster.NES:
if ( if (
not config.settings.elasticsearch_url not config.settings.elasticsearch_url
@@ -54,7 +55,7 @@ def _cluster_credentials(cluster: ESCluster) -> Tuple[str, str]:
raise MissingApiKeyError( raise MissingApiKeyError(
"Elasticsearch URL and API key must be set in the configuration for cluster 'nes'" "Elasticsearch URL and API key must be set in the configuration for cluster 'nes'"
) )
return config.settings.elasticsearch_url, config.settings.elasticsearch_api_key return config.settings.elasticsearch_url, config.settings.elasticsearch_api_key
elif cluster == ESCluster.INSE: elif cluster == ESCluster.INSE:
if ( if (
@@ -108,8 +109,12 @@ def _index_to_cluster(index: ESIndex) -> Optional[ESCluster]:
def _wrap_exception(e: Exception) -> Exception: def _wrap_exception(e: Exception) -> Exception:
if isinstance(e, httpx.HTTPStatusError): if isinstance(e, httpx.HTTPStatusError):
if e.response.status_code == 404: if e.response.status_code == 404:
return ElasticsearchNotFoundException(f"Elasticsearch resource not found: {e}") return ElasticsearchNotFoundException(
return ElasticsearchException(f"Elasticsearch returned status {e.response.status_code}: {e}") f"Elasticsearch resource not found: {e}"
)
return ElasticsearchException(
f"Elasticsearch returned status {e.response.status_code}: {e}"
)
elif isinstance(e, httpx.RequestError): elif isinstance(e, httpx.RequestError):
return ElasticsearchConnectionException(f"Elasticsearch connection error: {e}") return ElasticsearchConnectionException(f"Elasticsearch connection error: {e}")
return ElasticsearchException(f"Unexpected Elasticsearch error: {e}") return ElasticsearchException(f"Unexpected Elasticsearch error: {e}")
@@ -211,7 +216,9 @@ async def search(
raise _wrap_exception(exc) from exc raise _wrap_exception(exc) from exc
async def open_point_in_time(index: str, keep_alive: str = "1m", cluster: str = "nes") -> str: async def open_point_in_time(
index: str, keep_alive: str = "1m", cluster: str = "nes"
) -> str:
"""Opens a point-in-time on the given index and returns its id.""" """Opens a point-in-time on the given index and returns its id."""
elasticsearch_url, api_key = _cluster_credentials(cluster) elasticsearch_url, api_key = _cluster_credentials(cluster)
headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"} headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"}
@@ -256,7 +263,7 @@ async def scan(
cluster: str = "nes", cluster: str = "nes",
) -> AsyncIterator[Dict[str, Any]]: ) -> AsyncIterator[Dict[str, Any]]:
"""Yields every hit matching ``query`` using a point-in-time + ``search_after``. """Yields every hit matching ``query`` using a point-in-time + ``search_after``.
Unlike ``from``/``size`` pagination, this is not bounded by Unlike ``from``/``size`` pagination, this is not bounded by
``index.max_result_window``, so it can stream result sets larger than 10k. ``index.max_result_window``, so it can stream result sets larger than 10k.
""" """
@@ -316,6 +323,9 @@ async def get(
cluster: ESCluster = ESCluster.NES, cluster: ESCluster = ESCluster.NES,
) -> dict[str, Any]: ) -> dict[str, Any]:
if isinstance(index, ESIndex):
cluster = _index_to_cluster(index) or cluster
elasticsearch_url, api_key = _cluster_credentials(cluster) elasticsearch_url, api_key = _cluster_credentials(cluster)
headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"} headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"}
+12 -2
View File
@@ -53,6 +53,8 @@ from inse.patents.service import (
router as patents_service_router, router as patents_service_router,
) )
from inse.works.purpose_router import router as works_purpose_router
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
### startup ### startup
@@ -83,6 +85,7 @@ app.include_router(institution_patents_router)
app.include_router(org_patents_router) app.include_router(org_patents_router)
app.include_router(institutions_router) app.include_router(institutions_router)
app.include_router(topics_service_router) app.include_router(topics_service_router)
app.include_router(works_purpose_router)
app.include_router(works_service_router) app.include_router(works_service_router)
app.include_router(persons_service_router) app.include_router(persons_service_router)
app.include_router(funders_service_router) app.include_router(funders_service_router)
@@ -100,6 +103,7 @@ app.include_router(auth_router)
app.include_router(account_management_router) app.include_router(account_management_router)
app.include_router(organization_management_router) app.include_router(organization_management_router)
app.add_middleware( app.add_middleware(
ETagCacheMiddleware, ETagCacheMiddleware,
ttl=300, # 5 minutes expiration time ttl=300, # 5 minutes expiration time
@@ -116,6 +120,7 @@ app.add_middleware(
# exception handlers # exception handlers
@app.exception_handler(NotFoundException) @app.exception_handler(NotFoundException)
async def handle_not_found(request: Request, exc: NotFoundException): async def handle_not_found(request: Request, exc: NotFoundException):
return JSONResponse(status_code=404, content={"message": str(exc)}) return JSONResponse(status_code=404, content={"message": str(exc)})
@@ -124,13 +129,18 @@ async def handle_not_found(request: Request, exc: NotFoundException):
@app.exception_handler(ElasticsearchException) @app.exception_handler(ElasticsearchException)
async def handle_elasticsearch_error(request: Request, exc: ElasticsearchException): async def handle_elasticsearch_error(request: Request, exc: ElasticsearchException):
logger.error("Elasticsearch integration error: %s", str(exc)) logger.error("Elasticsearch integration error: %s", str(exc))
return JSONResponse(status_code=502, content={"message": "Search service temporarily unavailable"}) return JSONResponse(
status_code=502, content={"message": "Search service temporarily unavailable"}
)
@app.exception_handler(MissingApiKeyError) @app.exception_handler(MissingApiKeyError)
async def handle_missing_api_key(request: Request, exc: MissingApiKeyError): async def handle_missing_api_key(request: Request, exc: MissingApiKeyError):
logger.error("Configuration error: %s", str(exc)) logger.error("Configuration error: %s", str(exc))
return JSONResponse(status_code=503, content={"message": str(exc) or "Search service is not configured"}) return JSONResponse(
status_code=503,
content={"message": str(exc) or "Search service is not configured"},
)
@app.exception_handler(UpstreamAPIException) @app.exception_handler(UpstreamAPIException)
+4
View File
@@ -55,6 +55,7 @@ async def get_author_works(
language: list[str] | None = None, language: list[str] | None = None,
institution_id: list[str] | None = None, institution_id: list[str] | None = None,
topic_id: list[str] | None = None, topic_id: list[str] | None = None,
sort: str = "year",
client: OpenAlexWorksSearchClient | None = None, client: OpenAlexWorksSearchClient | None = None,
) -> WorkPage: ) -> WorkPage:
search_client = client or OpenAlexWorksSearchClient() search_client = client or OpenAlexWorksSearchClient()
@@ -68,6 +69,7 @@ async def get_author_works(
language=language, language=language,
institution_id=institution_id, institution_id=institution_id,
topic_id=topic_id, topic_id=topic_id,
sort=sort,
) )
elements, total = _parse_full_work_search_response(data) elements, total = _parse_full_work_search_response(data)
@@ -929,6 +931,7 @@ async def _search_author_works_data(
language: list[str] | None = None, language: list[str] | None = None,
institution_id: list[str] | None = None, institution_id: list[str] | None = None,
topic_id: list[str] | None = None, topic_id: list[str] | None = None,
sort: str = "year",
) -> dict: ) -> dict:
return await search_client.search_author_works( return await search_client.search_author_works(
author_id, author_id,
@@ -939,6 +942,7 @@ async def _search_author_works_data(
language=language, language=language,
institution_id=institution_id, institution_id=institution_id,
topic_id=topic_id, topic_id=topic_id,
sort=sort,
) )
+33
View File
@@ -4,6 +4,7 @@
Pydantic models for publication works. Pydantic models for publication works.
""" """
from enum import StrEnum
from typing import List from typing import List
from typing import Optional from typing import Optional
@@ -41,3 +42,35 @@ class WorkPage(BaseModel):
class WorkList(BaseModel): class WorkList(BaseModel):
elements: List[Work] = Field(default_factory=list, description="All works.") elements: List[Work] = Field(default_factory=list, description="All works.")
total: int = Field(default=0, description="The total number of works.") total: int = Field(default=0, description="The total number of works.")
class WorkPurpose(StrEnum):
"""Represents the purpose of a work. Either a foundation work or an application work."""
FOUNDATION = "Foundation"
APPLICATION = "Application"
class SpecificWorkPurpose(BaseModel):
"""Represents the purpose of a specific work, including its ID, purpose, and optional reasoning."""
raw_oa_work_id: str = Field(description="The raw OpenAlex work id.")
publication_year: Optional[int] = Field(
default=None, description="The publication year of the work."
)
purpose: WorkPurpose = Field(description="The purpose of the work.")
reasoning: Optional[str] = Field(
default=None, description="The reasoning behind the purpose determination."
)
class AuthorWorkPurposes(BaseModel):
"""Represents the purposes of an author, including their ID and a list of specific work purposes."""
raw_oa_author_id: str = Field(description="The raw OpenAlex author id.")
total: int = Field(
default=0, description="The total number of works for the author."
)
purposes: List[SpecificWorkPurpose] = Field(
default_factory=list, description="The list of specific work purposes."
)
@@ -0,0 +1,34 @@
from typing import Annotated
from fastapi import APIRouter, Path
from inse.tags import Tags
from inse.works.model import AuthorWorkPurposes, SpecificWorkPurpose
from inse.works import purpose_service
WORKS_PREFIX = "/api/purpose"
router = APIRouter(prefix=WORKS_PREFIX, tags=[Tags.WORKS])
@router.get(
"/{raw_oa_work_id}/purpose",
operation_id="getWorkPurpose",
summary="Returns the purpose of a work based on its ID.",
)
async def get_work_purpose(
raw_oa_work_id: Annotated[str, Path(description="The raw OpenAlex work id.")],
) -> SpecificWorkPurpose:
return await purpose_service.get_work_purpose(raw_oa_work_id)
@router.get(
"/{raw_oa_author_id}/purposes",
operation_id="getAuthorWorkPurposes",
summary="Returns the purposes of an author based on their ID.",
)
async def get_author_work_purposes(
raw_oa_author_id: Annotated[str, Path(description="The raw OpenAlex author id.")],
) -> AuthorWorkPurposes:
return await purpose_service.get_author_work_purposes(raw_oa_author_id)
@@ -0,0 +1,101 @@
import logging
import random
from typing import List
from fastapi import HTTPException, status
from inse.exceptions import NotFoundException
from inse.integrations import elasticsearch
from inse.model import ESIndex
from inse.works.model import AuthorWorkPurposes, SpecificWorkPurpose, WorkPurpose
logger = logging.getLogger(__name__)
async def get_work_purpose(raw_oa_work_id: str) -> SpecificWorkPurpose:
raw_oa_work_id = raw_oa_work_id.strip().upper()
response = await elasticsearch.get(
index=ESIndex.OPENALEX_WORKS,
doc_id=raw_oa_work_id,
source=["title", "abstract"],
)
logger.debug(f"Elasticsearch response for work id {raw_oa_work_id}: {response}")
source = response.get("_source", {})
if not source:
raise NotFoundException(f"Work with id {raw_oa_work_id} not found.")
logger.debug(f"Found work source for id {raw_oa_work_id}: {source}")
return SpecificWorkPurpose(
raw_oa_work_id=raw_oa_work_id,
publication_year=source.get("publication_year"),
purpose=WorkPurpose.FOUNDATION, # TODO: Replace with actual purpose determination logic
reasoning="This is a placeholder reasoning for the purpose determination.",
)
async def get_author_work_purposes(raw_oa_author_id: str) -> AuthorWorkPurposes:
raw_oa_author_id = raw_oa_author_id.strip().upper()
response = await elasticsearch.search(
index=ESIndex.OPENALEX_WORKS,
source=["id", "publication_year"],
query={
"nested": {
"path": "authorships",
"query": {
"bool": {
"filter": [
{
"term": {
"authorships.author.id": f"https://openalex.org/{raw_oa_author_id}"
}
},
],
},
},
},
},
size=10000,
)
logger.debug(f"Elasticsearch response for author id {raw_oa_author_id}: {response}")
purposes: List[SpecificWorkPurpose] = []
# TODO: implement actual retrieval of previously determined purposes for the author's works
hits_block = response.get("hits", {})
hits = hits_block.get("hits", [])
total_hits = hits_block.get("total", {}).get("value", 0)
for hit in hits:
source = hit.get("_source", {})
work_id = source.get("id")
publication_year = source.get("publication_year")
if work_id:
# TODO: Remove random based purpose assignment
if random.choice([True, False]):
purpose = SpecificWorkPurpose(
raw_oa_work_id=work_id,
publication_year=publication_year,
purpose=WorkPurpose.FOUNDATION,
reasoning=f"Placeholder reasoning for work {work_id}.",
)
else:
purpose = SpecificWorkPurpose(
raw_oa_work_id=work_id,
publication_year=publication_year,
purpose=WorkPurpose.APPLICATION,
reasoning=f"Placeholder reasoning for work {work_id}.",
)
purposes.append(purpose)
else:
logger.warning(f"Work hit without id for author {raw_oa_author_id}: {hit}")
return AuthorWorkPurposes(
raw_oa_author_id=raw_oa_author_id, total=total_hits, purposes=purposes
)
+14 -4
View File
@@ -35,6 +35,7 @@ class OpenAlexWorksSearchClient:
language: list[str] | None = None, language: list[str] | None = None,
institution_id: list[str] | None = None, institution_id: list[str] | None = None,
topic_id: list[str] | None = None, topic_id: list[str] | None = None,
sort: str = "year",
) -> dict[str, Any]: ) -> dict[str, Any]:
indexed_author_id = f"https://openalex.org/{author_id.strip()}" indexed_author_id = f"https://openalex.org/{author_id.strip()}"
filters = self._work_filters( filters = self._work_filters(
@@ -73,6 +74,16 @@ class OpenAlexWorksSearchClient:
}, },
}, },
}) })
if sort == "citations":
sort_clauses = [
{"cited_by_count": {"order": "desc", "missing": "_last"}},
{"publication_year": {"order": "desc", "missing": "_last"}},
]
else:
sort_clauses = [
{"publication_year": {"order": "desc", "missing": "_last"}},
{"cited_by_count": {"order": "desc", "missing": "_last"}},
]
return { return {
"from": (page - 1) * size, "from": (page - 1) * size,
"size": size, "size": size,
@@ -83,10 +94,7 @@ class OpenAlexWorksSearchClient:
"filter": filters, "filter": filters,
}, },
}, },
"sort": [ "sort": sort_clauses,
{"publication_year": {"order": "desc", "missing": "_last"}},
{"cited_by_count": {"order": "desc", "missing": "_last"}},
],
} }
def _work_filters( def _work_filters(
@@ -130,6 +138,7 @@ class OpenAlexWorksSearchClient:
language: list[str] | None = None, language: list[str] | None = None,
institution_id: list[str] | None = None, institution_id: list[str] | None = None,
topic_id: list[str] | None = None, topic_id: list[str] | None = None,
sort: str = "year",
) -> dict[str, Any]: ) -> dict[str, Any]:
if not self.api_key: if not self.api_key:
raise MissingApiKeyError("OpenAlex works Elasticsearch API key is not configured.") raise MissingApiKeyError("OpenAlex works Elasticsearch API key is not configured.")
@@ -143,6 +152,7 @@ class OpenAlexWorksSearchClient:
language=language, language=language,
institution_id=institution_id, institution_id=institution_id,
topic_id=topic_id, topic_id=topic_id,
sort=sort,
) )
return await elasticsearch.search(index=self.index,body=body,cluster=ESCluster.NES,) return await elasticsearch.search(index=self.index,body=body,cluster=ESCluster.NES,)
+6 -1
View File
@@ -4,7 +4,7 @@
REST API for publication works. REST API for publication works.
""" """
from typing import Annotated, Optional from typing import Annotated, Literal, Optional
from fastapi import APIRouter from fastapi import APIRouter
from fastapi import Path from fastapi import Path
@@ -54,6 +54,10 @@ async def get_author_works(
list[str] | None, list[str] | None,
Query(description="Filter by OpenAlex topic id. Can be repeated."), Query(description="Filter by OpenAlex topic id. Can be repeated."),
] = None, ] = None,
sort: Annotated[
Literal["year", "citations"],
Query(description="Sort order: by publication year or by citation count."),
] = "year",
): ):
return await logic.get_author_works( return await logic.get_author_works(
author_id, author_id,
@@ -64,6 +68,7 @@ async def get_author_works(
language=language, language=language,
institution_id=institution_id, institution_id=institution_id,
topic_id=topic_id, topic_id=topic_id,
sort=sort,
) )
@@ -26,6 +26,28 @@ def test_author_works_query_searches_authorship_author_id():
assert query["query"]["bool"]["filter"] == [] assert query["query"]["bool"]["filter"] == []
def test_author_works_query_sorts_by_year_by_default():
client = OpenAlexWorksSearchClient(api_key="test-key")
query = client.author_works_query("A5023888391", page=1, size=20)
assert query["sort"] == [
{"publication_year": {"order": "desc", "missing": "_last"}},
{"cited_by_count": {"order": "desc", "missing": "_last"}},
]
def test_author_works_query_sorts_by_citations():
client = OpenAlexWorksSearchClient(api_key="test-key")
query = client.author_works_query("A5023888391", page=1, size=20, sort="citations")
assert query["sort"] == [
{"cited_by_count": {"order": "desc", "missing": "_last"}},
{"publication_year": {"order": "desc", "missing": "_last"}},
]
def test_author_works_query_adds_publication_filters(): def test_author_works_query_adds_publication_filters():
client = OpenAlexWorksSearchClient(api_key="test-key") client = OpenAlexWorksSearchClient(api_key="test-key")
+5
View File
@@ -1195,6 +1195,11 @@ Content-Type: application/json
### ###
GET https://project.nes.uni-due.de/elastic/openalex-works/_mapping
Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ==
###
GET https://project.nes.uni-due.de/elastic/openalex-works/_search GET https://project.nes.uni-due.de/elastic/openalex-works/_search
Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ== Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ==
Content-Type: application/json Content-Type: application/json
@@ -36,6 +36,7 @@ model/authorNetworkNode.ts
model/authorParsedLongestName.ts model/authorParsedLongestName.ts
model/authorPositionCount.ts model/authorPositionCount.ts
model/authorSummaryStats.ts model/authorSummaryStats.ts
model/authorWorkPurposes.ts
model/authorsFilterProperties.ts model/authorsFilterProperties.ts
model/authorsListResponse.ts model/authorsListResponse.ts
model/authorship.ts model/authorship.ts
@@ -142,6 +143,7 @@ model/loginResponse.ts
model/longitude.ts model/longitude.ts
model/matchedAuthor.ts model/matchedAuthor.ts
model/matchedOfficer.ts model/matchedOfficer.ts
model/matchedTopic.ts
model/mentionedPerson.ts model/mentionedPerson.ts
model/meta.ts model/meta.ts
model/model2YrMeanCitedness.ts model/model2YrMeanCitedness.ts
@@ -167,6 +169,7 @@ model/publicationsByAuthorResponse.ts
model/rankingResponse.ts model/rankingResponse.ts
model/score.ts model/score.ts
model/sortDirection.ts model/sortDirection.ts
model/specificWorkPurpose.ts
model/tokenType.ts model/tokenType.ts
model/topInstitutionItem.ts model/topInstitutionItem.ts
model/topic.ts model/topic.ts
@@ -201,6 +204,7 @@ model/workKeyword.ts
model/workMeshInner.ts model/workMeshInner.ts
model/workNetworkNode.ts model/workNetworkNode.ts
model/workPage.ts model/workPage.ts
model/workPurpose.ts
model/workSustainableDevelopmentGoalsInner.ts model/workSustainableDevelopmentGoalsInner.ts
model/workTopic.ts model/workTopic.ts
model/workTopicDomain.ts model/workTopicDomain.ts
+45 -46
View File
@@ -46,10 +46,10 @@ npm link
In your project: In your project:
```console ```console
npm link npm link
``` ```
**Note for Windows users:** The Angular CLI has troubles to use linked npm packages. __Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.
Please refer to this issue <https://github.com/angular/angular-cli/issues/8284> for a solution / workaround. Please refer to this issue <https://github.com/angular/angular-cli/issues/8284> for a solution / workaround.
Published packages are not effected by this issue. Published packages are not effected by this issue.
@@ -58,22 +58,22 @@ Published packages are not effected by this issue.
In your Angular project: In your Angular project:
```typescript ```typescript
import { ApplicationConfig } from '@angular/core'; import { ApplicationConfig } from '@angular/core';
import { provideHttpClient } from '@angular/common/http'; import { provideHttpClient } from '@angular/common/http';
import { provideApi } from ''; import { provideApi } from '';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
// ... // ...
provideHttpClient(), provideHttpClient(),
provideApi(), provideApi()
], ],
}; };
``` ```
**NOTE** **NOTE**
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module: If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
```typescript ```typescript
import { ApiModule } from ''; import { ApiModule } from '';
``` ```
@@ -86,11 +86,11 @@ import { provideHttpClient } from '@angular/common/http';
import { provideApi } from ''; import { provideApi } from '';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
// ... // ...
provideHttpClient(), provideHttpClient(),
provideApi('http://localhost:9999'), provideApi('http://localhost:9999')
], ],
}; };
``` ```
@@ -101,15 +101,15 @@ import { provideHttpClient } from '@angular/common/http';
import { provideApi } from ''; import { provideApi } from '';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
// ... // ...
provideHttpClient(), provideHttpClient(),
provideApi({ provideApi({
withCredentials: true, withCredentials: true,
username: 'user', username: 'user',
password: 'password', password: 'password'
}), })
], ],
}; };
``` ```
@@ -120,22 +120,21 @@ import { provideHttpClient } from '@angular/common/http';
import { provideApi, Configuration } from ''; import { provideApi, Configuration } from '';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
// ... // ...
provideHttpClient(), provideHttpClient(),
{ {
provide: Configuration, provide: Configuration,
useFactory: (authService: AuthService) => useFactory: (authService: AuthService) => new Configuration({
new Configuration({ basePath: 'http://localhost:9999',
basePath: 'http://localhost:9999', withCredentials: true,
withCredentials: true, username: authService.getUsername(),
username: authService.getUsername(), password: authService.getPassword(),
password: authService.getPassword(), }),
}), deps: [AuthService],
deps: [AuthService], multi: false
multi: false, }
}, ],
],
}; };
``` ```
@@ -152,12 +151,12 @@ import { HttpClientModule } from '@angular/common/http';
import { environment } from '../environments/environment'; import { environment } from '../environments/environment';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
// ... // ...
provideHttpClient(), provideHttpClient(),
provideUserApi(environment.basePath), provideUserApi(environment.basePath),
provideAdminApi(environment.basePath), provideAdminApi(environment.basePath),
], ],
}; };
``` ```
@@ -177,8 +176,8 @@ Example value for use in your Configuration-Provider:
```typescript ```typescript
new Configuration({ new Configuration({
encodeParam: (param: Param) => myFancyParamEncoder(param), encodeParam: (param: Param) => myFancyParamEncoder(param),
}); })
``` ```
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations [parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
+66 -92
View File
@@ -1,109 +1,83 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import { import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
HttpHeaders,
HttpParams,
HttpParameterCodec,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from './encoder'; import { CustomHttpParameterCodec } from './encoder';
import { Configuration } from './configuration'; import { Configuration } from './configuration';
export class BaseService { export class BaseService {
protected basePath = 'http://localhost:8000'; protected basePath = 'http://localhost:8000';
public defaultHeaders = new HttpHeaders(); public defaultHeaders = new HttpHeaders();
public configuration: Configuration; public configuration: Configuration;
public encoder: HttpParameterCodec; public encoder: HttpParameterCodec;
constructor(basePath?: string | string[], configuration?: Configuration) { constructor(basePath?: string|string[], configuration?: Configuration) {
this.configuration = configuration || new Configuration(); this.configuration = configuration || new Configuration();
if (typeof this.configuration.basePath !== 'string') { if (typeof this.configuration.basePath !== 'string') {
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
if (firstBasePath != undefined) { if (firstBasePath != undefined) {
basePath = firstBasePath; basePath = firstBasePath;
} }
if (typeof basePath !== 'string') { if (typeof basePath !== 'string') {
basePath = this.basePath; basePath = this.basePath;
} }
this.configuration.basePath = basePath; this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}
protected canConsumeForm(consumes: string[]): boolean {
return consumes.indexOf('multipart/form-data') !== -1;
}
protected addToHttpParams(
httpParams: HttpParams,
value: any,
key?: string,
isDeep: boolean = false,
): HttpParams {
// If the value is an object (but not a Date), recursively add its keys.
if (typeof value === 'object' && !(value instanceof Date)) {
return this.addToHttpParamsRecursive(
httpParams,
value,
isDeep ? key : undefined,
isDeep,
);
}
return this.addToHttpParamsRecursive(httpParams, value, key);
}
protected addToHttpParamsRecursive(
httpParams: HttpParams,
value?: any,
key?: string,
isDeep: boolean = false,
): HttpParams {
if (value === null || value === undefined) {
return httpParams;
}
if (typeof value === 'object') {
// If JSON format is preferred, key must be provided.
if (key != null) {
return isDeep
? Object.keys(value as Record<string, any>).reduce(
(hp, k) => hp.append(`${key}[${k}]`, value[k]),
httpParams,
)
: httpParams.append(key, JSON.stringify(value));
}
// Otherwise, if it's an array, add each element.
if (Array.isArray(value)) {
value.forEach(
(elem) =>
(httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)),
);
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, value.toISOString());
} else {
throw Error('key may not be null if value is Date');
} }
} else { this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
Object.keys(value).forEach((k) => { }
const paramKey = key ? `${key}.${k}` : k;
httpParams = this.addToHttpParamsRecursive( protected canConsumeForm(consumes: string[]): boolean {
httpParams, return consumes.indexOf('multipart/form-data') !== -1;
value[k], }
paramKey,
); protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep: boolean = false): HttpParams {
}); // If the value is an object (but not a Date), recursively add its keys.
} if (typeof value === 'object' && !(value instanceof Date)) {
return httpParams; return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep);
} else if (key != null) { }
return httpParams.append(key, value); return this.addToHttpParamsRecursive(httpParams, value, key);
}
protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep: boolean = false): HttpParams {
if (value === null || value === undefined) {
return httpParams;
}
if (typeof value === 'object') {
// If JSON format is preferred, key must be provided.
if (key != null) {
return isDeep
? Object.keys(value as Record<string, any>).reduce(
(hp, k) => hp.append(`${key}[${k}]`, value[k]),
httpParams,
)
: httpParams.append(key, JSON.stringify(value));
}
// Otherwise, if it's an array, add each element.
if (Array.isArray(value)) {
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, value.toISOString());
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach(k => {
const paramKey = key ? `${key}.${k}` : k;
httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey);
});
}
return httpParams;
} else if (key != null) {
return httpParams.append(key, value);
}
throw Error("key may not be null if value is not object or array");
} }
throw Error('key may not be null if value is not object or array');
}
} }
+20 -32
View File
@@ -1,42 +1,30 @@
import { import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
NgModule,
ModuleWithProviders,
SkipSelf,
Optional,
} from '@angular/core';
import { Configuration } from './configuration'; import { Configuration } from './configuration';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
@NgModule({ @NgModule({
imports: [], imports: [],
declarations: [], declarations: [],
exports: [], exports: [],
providers: [], providers: []
}) })
export class ApiModule { export class ApiModule {
public static forRoot( public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
configurationFactory: () => Configuration, return {
): ModuleWithProviders<ApiModule> { ngModule: ApiModule,
return { providers: [ { provide: Configuration, useFactory: configurationFactory } ]
ngModule: ApiModule, };
providers: [{ provide: Configuration, useFactory: configurationFactory }], }
};
}
constructor( constructor( @Optional() @SkipSelf() parentModule: ApiModule,
@Optional() @SkipSelf() parentModule: ApiModule, @Optional() http: HttpClient) {
@Optional() http: HttpClient, if (parentModule) {
) { throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
if (parentModule) { }
throw new Error( if (!http) {
'ApiModule is already loaded. Import in your base AppModule only.', throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
); 'See also https://github.com/angular/angular/issues/20575');
}
} }
if (!http) {
throw new Error(
'You need to import the HttpClientModule in your AppModule! \n' +
'See also https://github.com/angular/angular/issues/20575',
);
}
}
} }
+1 -17
View File
@@ -28,20 +28,4 @@ export * from './universityRankings.service';
import { UniversityRankingsService } from './universityRankings.service'; import { UniversityRankingsService } from './universityRankings.service';
export * from './works.service'; export * from './works.service';
import { WorksService } from './works.service'; import { WorksService } from './works.service';
export const APIS = [ export const APIS = [AuthService, CompanyConnectionsService, FundingService, INSEServiceService, InstitutionsService, KeywordsService, NewsService, OrganizationService, PatentsService, PersonNetworkService, PersonsService, ProjectsService, TopicsService, UniversityRankingsService, WorksService];
AuthService,
CompanyConnectionsService,
FundingService,
INSEServiceService,
InstitutionsService,
KeywordsService,
NewsService,
OrganizationService,
PatentsService,
PersonNetworkService,
PersonsService,
ProjectsService,
TopicsService,
UniversityRankingsService,
WorksService,
];
File diff suppressed because it is too large Load Diff
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,18 +9,12 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpHeaders, } from '@angular/common/http';
HttpParams, import { CustomHttpParameterCodec } from '../encoder';
HttpResponse, import { Observable } from 'rxjs';
HttpEvent,
HttpParameterCodec,
HttpContext,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore // @ts-ignore
import { CompanyConnectionsResponse } from '../model/companyConnectionsResponse'; import { CompanyConnectionsResponse } from '../model/companyConnectionsResponse';
@@ -28,121 +22,74 @@ import { CompanyConnectionsResponse } from '../model/companyConnectionsResponse'
import { HTTPValidationError } from '../model/hTTPValidationError'; import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore // @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class CompanyConnectionsService extends BaseService { export class CompanyConnectionsService extends BaseService {
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string | string[],
@Optional() configuration?: Configuration,
) {
super(basePath, configuration);
}
/** constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
* Get possible company connections by OpenAlex author ID. super(basePath, configuration);
* @endpoint get /api/inse-service/authors/{author_id}/company-connections
* @param authorId
* @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 getCompanyConnectionsByAuthor(
authorId: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<CompanyConnectionsResponse>;
public getCompanyConnectionsByAuthor(
authorId: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<CompanyConnectionsResponse>>;
public getCompanyConnectionsByAuthor(
authorId: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<CompanyConnectionsResponse>>;
public getCompanyConnectionsByAuthor(
authorId: 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 getCompanyConnectionsByAuthor.',
);
} }
let localVarHeaders = this.defaultHeaders; /**
* Get possible company connections by OpenAlex author ID.
* @endpoint get /api/inse-service/authors/{author_id}/company-connections
* @param authorId
* @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 getCompanyConnectionsByAuthor(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CompanyConnectionsResponse>;
public getCompanyConnectionsByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CompanyConnectionsResponse>>;
public getCompanyConnectionsByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CompanyConnectionsResponse>>;
public getCompanyConnectionsByAuthor(authorId: 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 getCompanyConnectionsByAuthor.');
}
const localVarHttpHeaderAcceptSelected: string | undefined = let localVarHeaders = this.defaultHeaders;
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (localVarHttpHeaderAcceptSelected !== undefined) { 'application/json'
localVarHeaders = localVarHeaders.set( ]);
'Accept', if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHttpHeaderAcceptSelected, 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/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/company-connections`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<CompanyConnectionsResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
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/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/company-connections`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<CompanyConnectionsResponse>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
} }
+126 -240
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,18 +9,12 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpHeaders, } from '@angular/common/http';
HttpParams, import { CustomHttpParameterCodec } from '../encoder';
HttpResponse, import { Observable } from 'rxjs';
HttpEvent,
HttpParameterCodec,
HttpContext,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore // @ts-ignore
import { FundersByAuthorResponse } from '../model/fundersByAuthorResponse'; import { FundersByAuthorResponse } from '../model/fundersByAuthorResponse';
@@ -30,246 +24,138 @@ import { HTTPValidationError } from '../model/hTTPValidationError';
import { PublicationsByAuthorResponse } from '../model/publicationsByAuthorResponse'; import { PublicationsByAuthorResponse } from '../model/publicationsByAuthorResponse';
// @ts-ignore // @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class FundingService extends BaseService { export class FundingService extends BaseService {
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string | string[],
@Optional() configuration?: Configuration,
) {
super(basePath, configuration);
}
/** constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
* Get funding organizations by author. super(basePath, configuration);
* @endpoint get /api/inse-service/authors/{author_id}/funders
* @param authorId
* @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 getFundersByAuthor(
authorId: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<FundersByAuthorResponse>;
public getFundersByAuthor(
authorId: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<FundersByAuthorResponse>>;
public getFundersByAuthor(
authorId: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<FundersByAuthorResponse>>;
public getFundersByAuthor(
authorId: 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 getFundersByAuthor.',
);
} }
let localVarHeaders = this.defaultHeaders; /**
* Get funding organizations by author.
* @endpoint get /api/inse-service/authors/{author_id}/funders
* @param authorId
* @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 getFundersByAuthor(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<FundersByAuthorResponse>;
public getFundersByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<FundersByAuthorResponse>>;
public getFundersByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<FundersByAuthorResponse>>;
public getFundersByAuthor(authorId: 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 getFundersByAuthor.');
}
const localVarHttpHeaderAcceptSelected: string | undefined = let localVarHeaders = this.defaultHeaders;
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (localVarHttpHeaderAcceptSelected !== undefined) { 'application/json'
localVarHeaders = localVarHeaders.set( ]);
'Accept', if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHttpHeaderAcceptSelected, 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/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/funders`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<FundersByAuthorResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
const localVarHttpContext: HttpContext = /**
options?.context ?? new HttpContext(); * Get funded publications by author.
* @endpoint get /api/inse-service/authors/{author_id}/publications
* @param authorId
* @param page
* @param pageSize
* @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 getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<PublicationsByAuthorResponse>;
public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PublicationsByAuthorResponse>>;
public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PublicationsByAuthorResponse>>;
public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, 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 getPublicationsByAuthor.');
}
const localVarTransferCache: boolean = options?.transferCache ?? true; let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>pageSize, 'page_size');
let responseType_: 'text' | 'json' | 'blob' = 'json'; let localVarHeaders = this.defaultHeaders;
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) { const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
responseType_ = 'text'; 'application/json'
} else if ( ]);
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) if (localVarHttpHeaderAcceptSelected !== undefined) {
) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
responseType_ = 'json'; }
} else {
responseType_ = 'blob'; 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/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/publications`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<PublicationsByAuthorResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/funders`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<FundersByAuthorResponse>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/**
* Get funded publications by author.
* @endpoint get /api/inse-service/authors/{author_id}/publications
* @param authorId
* @param page
* @param pageSize
* @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 getPublicationsByAuthor(
authorId: string,
page?: number,
pageSize?: number,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<PublicationsByAuthorResponse>;
public getPublicationsByAuthor(
authorId: string,
page?: number,
pageSize?: number,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<PublicationsByAuthorResponse>>;
public getPublicationsByAuthor(
authorId: string,
page?: number,
pageSize?: number,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<PublicationsByAuthorResponse>>;
public getPublicationsByAuthor(
authorId: string,
page?: number,
pageSize?: number,
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 getPublicationsByAuthor.',
);
}
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>page,
'page',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>pageSize,
'page_size',
);
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/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publications`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<PublicationsByAuthorResponse>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
} }
+174 -324
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,355 +9,205 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpHeaders, } from '@angular/common/http';
HttpParams, import { CustomHttpParameterCodec } from '../encoder';
HttpResponse, import { Observable } from 'rxjs';
HttpEvent,
HttpParameterCodec,
HttpContext,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore // @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError'; import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore // @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class INSEServiceService extends BaseService { export class INSEServiceService extends BaseService {
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string | string[],
@Optional() configuration?: Configuration,
) {
super(basePath, configuration);
}
/** constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
* Builds the topic hierarchy cache. super(basePath, configuration);
* @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(); * 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> {
const localVarTransferCache: boolean = options?.transferCache ?? true; let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>pageSize, 'page_size');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>saveJson, 'save_json');
let responseType_: 'text' | 'json' | 'blob' = 'json'; let localVarHeaders = this.defaultHeaders;
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 localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
const { basePath, withCredentials } = this.configuration; 'application/json'
return this.httpClient.request<object>( ]);
'get', if (localVarHttpHeaderAcceptSelected !== undefined) {
`${basePath}${localVarPath}`, localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
{ }
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/** const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
* 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 }); const localVarTransferCache: boolean = options?.transferCache ?? true;
if (topic) {
topic.forEach((element) => {
localVarQueryParameters = this.addToHttpParams( let responseType_: 'text' | 'json' | 'blob' = 'json';
localVarQueryParameters, if (localVarHttpHeaderAcceptSelected) {
<any>element, if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
'topic', 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
}
); );
});
} }
let localVarHeaders = this.defaultHeaders; /**
* 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.');
}
const localVarHttpHeaderAcceptSelected: string | undefined = let localVarQueryParameters = new HttpParams({encoder: this.encoder});
options?.httpHeaderAccept ?? if (topic) {
this.configuration.selectHeaderAccept(['application/json']); topic.forEach((element) => {
if (localVarHttpHeaderAcceptSelected !== undefined) { localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
localVarHeaders = localVarHeaders.set( <any>element, 'topic');
'Accept', })
localVarHttpHeaderAcceptSelected, }
);
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
}
);
} }
const localVarHttpContext: HttpContext = /**
options?.context ?? new HttpContext(); * Returns the nested topic hierarchy (Domains -&gt; Fields -&gt; Subfields -&gt; Topics).
* @endpoint get /api/inse-service/topics/hierarchy
* @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 getTopicHierarchy(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
public getTopicHierarchy(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
const localVarTransferCache: boolean = options?.transferCache ?? true; let localVarHeaders = this.defaultHeaders;
let responseType_: 'text' | 'json' | 'blob' = 'json'; const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (localVarHttpHeaderAcceptSelected) { 'application/json'
if (localVarHttpHeaderAcceptSelected.startsWith('text')) { ]);
responseType_ = 'text'; if (localVarHttpHeaderAcceptSelected !== undefined) {
} else if ( localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) }
) {
responseType_ = 'json'; const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
} else {
responseType_ = 'blob'; 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/hierarchy`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
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,
},
);
}
/**
* Returns the nested topic hierarchy (Domains -&gt; Fields -&gt; Subfields -&gt; Topics).
* @endpoint get /api/inse-service/topics/hierarchy
* @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 getTopicHierarchy(
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<object>;
public getTopicHierarchy(
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<object>>;
public getTopicHierarchy(
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<object>>;
public getTopicHierarchy(
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
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/hierarchy`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<object>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
} }
+276 -578
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,18 +9,12 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpHeaders, } from '@angular/common/http';
HttpParams, import { CustomHttpParameterCodec } from '../encoder';
HttpResponse, import { Observable } from 'rxjs';
HttpEvent,
HttpParameterCodec,
HttpContext,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore // @ts-ignore
import { AutocompleteResponse } from '../model/autocompleteResponse'; import { AutocompleteResponse } from '../model/autocompleteResponse';
@@ -34,591 +28,295 @@ import { InstitutionPage } from '../model/institutionPage';
import { InstitutionsListResponse } from '../model/institutionsListResponse'; import { InstitutionsListResponse } from '../model/institutionsListResponse';
// @ts-ignore // @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class InstitutionsService extends BaseService { export class InstitutionsService extends BaseService {
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string | string[],
@Optional() configuration?: Configuration,
) {
super(basePath, configuration);
}
/** constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
* Returns institution options for autocomplete inputs. super(basePath, configuration);
* @endpoint get /api/inse-service/institutions/autocomplete
* @param query Institution search text, for example \&#39;Duisburg Essen\&#39;.
* @param countryCode Optional ISO country code filter.
* @param type Optional institution type filter.
* @param limit Maximum number of autocomplete options.
* @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 autocompleteInstitutions(
query: string,
countryCode?: string,
type?: string,
limit?: number,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<AutocompleteResponse>;
public autocompleteInstitutions(
query: string,
countryCode?: string,
type?: string,
limit?: number,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<AutocompleteResponse>>;
public autocompleteInstitutions(
query: string,
countryCode?: string,
type?: string,
limit?: number,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<AutocompleteResponse>>;
public autocompleteInstitutions(
query: string,
countryCode?: string,
type?: string,
limit?: number,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
if (query === null || query === undefined) {
throw new Error(
'Required parameter query was null or undefined when calling autocompleteInstitutions.',
);
} }
let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); /**
localVarQueryParameters = this.addToHttpParams( * Returns institution options for autocomplete inputs.
localVarQueryParameters, * @endpoint get /api/inse-service/institutions/autocomplete
<any>query, * @param query Institution search text, for example \&#39;Duisburg Essen\&#39;.
'query', * @param countryCode Optional ISO country code filter.
); * @param type Optional institution type filter.
localVarQueryParameters = this.addToHttpParams( * @param limit Maximum number of autocomplete options.
localVarQueryParameters, * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
<any>countryCode, * @param reportProgress flag to report request and response progress.
'countryCode', */
); public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AutocompleteResponse>;
localVarQueryParameters = this.addToHttpParams( public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AutocompleteResponse>>;
localVarQueryParameters, public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AutocompleteResponse>>;
<any>type, public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
'type', if (query === null || query === undefined) {
); throw new Error('Required parameter query was null or undefined when calling autocompleteInstitutions.');
localVarQueryParameters = this.addToHttpParams( }
localVarQueryParameters,
<any>limit,
'limit',
);
let localVarHeaders = this.defaultHeaders; let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>query, 'query');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>countryCode, 'countryCode');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>type, 'type');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>limit, 'limit');
const localVarHttpHeaderAcceptSelected: string | undefined = let localVarHeaders = this.defaultHeaders;
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (localVarHttpHeaderAcceptSelected !== undefined) { 'application/json'
localVarHeaders = localVarHeaders.set( ]);
'Accept', if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHttpHeaderAcceptSelected, 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/institutions/autocomplete`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AutocompleteResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
const localVarHttpContext: HttpContext = /**
options?.context ?? new HttpContext(); * Returns a single institution by ID.
* Returns a single institution by its OpenAlex ID.
* @endpoint get /api/inse-service/institutions/{id}
* @param 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 getInstitutionById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Institution>;
public getInstitutionById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Institution>>;
public getInstitutionById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Institution>>;
public getInstitutionById(id: 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 getInstitutionById.');
}
const localVarTransferCache: boolean = options?.transferCache ?? true; let localVarHeaders = this.defaultHeaders;
let responseType_: 'text' | 'json' | 'blob' = 'json'; const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (localVarHttpHeaderAcceptSelected) { 'application/json'
if (localVarHttpHeaderAcceptSelected.startsWith('text')) { ]);
responseType_ = 'text'; if (localVarHttpHeaderAcceptSelected !== undefined) {
} else if ( localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) }
) {
responseType_ = 'json'; const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
} else {
responseType_ = 'blob'; 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/institutions/${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<Institution>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
let localVarPath = `/api/inse-service/institutions/autocomplete`; /**
const { basePath, withCredentials } = this.configuration; * Returns a list of OpenAlex institutions.
return this.httpClient.request<AutocompleteResponse>( * @endpoint get /api/inse-service/institutions
'get', * @param search Full-text search, for example \&#39;Duisburg Essen\&#39;.
`${basePath}${localVarPath}`, * @param filter OpenAlex filter, for example \&#39;country_code:DE,type:education\&#39;.
{ * @param sort Sort field, for example \&#39;works_count:desc\&#39;.
context: localVarHttpContext, * @param groupBy OpenAlex group_by field, for example \&#39;country_code\&#39;.
params: localVarQueryParameters, * @param perPage Results per page.
responseType: <any>responseType_, * @param page Page number. Use cursor for deep pagination.
...(withCredentials ? { withCredentials } : {}), * @param cursor Cursor pagination token. Use \&#39;*\&#39; to start.
headers: localVarHeaders, * @param sample Random sample size. Cannot be combined with sort or page.
observe: observe, * @param select Comma-separated fields to return.
...(localVarTransferCache !== undefined * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
? { transferCache: localVarTransferCache } * @param reportProgress flag to report request and response progress.
: {}), */
reportProgress: reportProgress, public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<InstitutionsListResponse>;
}, public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<InstitutionsListResponse>>;
); public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<InstitutionsListResponse>>;
} public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
/** let localVarQueryParameters = new HttpParams({encoder: this.encoder});
* Returns a single institution by ID. localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
* Returns a single institution by its OpenAlex ID. <any>search, 'search');
* @endpoint get /api/inse-service/institutions/{id} localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
* @param id <any>filter, 'filter');
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
* @param reportProgress flag to report request and response progress. <any>sort, 'sort');
*/ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
public getInstitutionById( <any>groupBy, 'group_by');
id: string, localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
observe?: 'body', <any>perPage, 'per_page');
reportProgress?: boolean, localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
options?: { <any>page, 'page');
httpHeaderAccept?: 'application/json'; localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
context?: HttpContext; <any>cursor, 'cursor');
transferCache?: boolean; localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
}, <any>sample, 'sample');
): Observable<Institution>; localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
public getInstitutionById( <any>select, 'select');
id: string,
observe?: 'response', let localVarHeaders = this.defaultHeaders;
reportProgress?: boolean,
options?: { const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
httpHeaderAccept?: 'application/json'; 'application/json'
context?: HttpContext; ]);
transferCache?: boolean; if (localVarHttpHeaderAcceptSelected !== undefined) {
}, localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
): Observable<HttpResponse<Institution>>; }
public getInstitutionById(
id: string, const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
observe?: 'events',
reportProgress?: boolean, const localVarTransferCache: boolean = options?.transferCache ?? true;
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext; let responseType_: 'text' | 'json' | 'blob' = 'json';
transferCache?: boolean; if (localVarHttpHeaderAcceptSelected) {
}, if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
): Observable<HttpEvent<Institution>>; responseType_ = 'text';
public getInstitutionById( } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
id: string, responseType_ = 'json';
observe: any = 'body', } else {
reportProgress: boolean = false, responseType_ = 'blob';
options?: { }
httpHeaderAccept?: 'application/json'; }
context?: HttpContext;
transferCache?: boolean; let localVarPath = `/api/inse-service/institutions`;
}, const { basePath, withCredentials } = this.configuration;
): Observable<any> { return this.httpClient.request<InstitutionsListResponse>('get', `${basePath}${localVarPath}`,
if (id === null || id === undefined) { {
throw new Error( context: localVarHttpContext,
'Required parameter id was null or undefined when calling getInstitutionById.', params: localVarQueryParameters,
); responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
let localVarHeaders = this.defaultHeaders; /**
* Searches for institutions by name.
* Searches for institutions by name with pagination.
* @endpoint get /api/inse-service/institutions/search
* @param name Institution name to search for, for example \&#39;University of Duisburg Essen\&#39;.
* @param page Page number (0-indexed).
* @param size Number of institutions per page.
* @param sortBy Field to sort by, either \&#39;relevance\&#39;, \&#39;name\&#39;, \&#39;works_count\&#39;, or \&#39;citations_count\&#39;.
* @param sortingDirection Sorting direction, either \&#39;asc\&#39; or \&#39;desc\&#39;.
* @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 searchInstitutionsByName(name?: string, page?: number, size?: number, sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', sortingDirection?: 'asc' | 'desc', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<InstitutionPage>;
public searchInstitutionsByName(name?: string, page?: number, size?: number, sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', sortingDirection?: 'asc' | 'desc', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<InstitutionPage>>;
public searchInstitutionsByName(name?: string, page?: number, size?: number, sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', sortingDirection?: 'asc' | 'desc', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<InstitutionPage>>;
public searchInstitutionsByName(name?: string, page?: number, size?: number, sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', sortingDirection?: 'asc' | 'desc', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
const localVarHttpHeaderAcceptSelected: string | undefined = let localVarQueryParameters = new HttpParams({encoder: this.encoder});
options?.httpHeaderAccept ?? localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
this.configuration.selectHeaderAccept(['application/json']); <any>name, 'name');
if (localVarHttpHeaderAcceptSelected !== undefined) { localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
localVarHeaders = localVarHeaders.set( <any>page, 'page');
'Accept', localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
localVarHttpHeaderAcceptSelected, <any>size, 'size');
); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>sortBy, 'sort_by');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>sortingDirection, 'sorting_direction');
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/institutions/search`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<InstitutionPage>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
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/institutions/${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<Institution>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/**
* Returns a list of OpenAlex institutions.
* @endpoint get /api/inse-service/institutions
* @param search Full-text search, for example \&#39;Duisburg Essen\&#39;.
* @param filter OpenAlex filter, for example \&#39;country_code:DE,type:education\&#39;.
* @param sort Sort field, for example \&#39;works_count:desc\&#39;.
* @param groupBy OpenAlex group_by field, for example \&#39;country_code\&#39;.
* @param perPage Results per page.
* @param page Page number. Use cursor for deep pagination.
* @param cursor Cursor pagination token. Use \&#39;*\&#39; to start.
* @param sample Random sample size. Cannot be combined with sort or page.
* @param select Comma-separated fields to return.
* @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 listInstitutions(
search?: string,
filter?: string,
sort?: string,
groupBy?: string,
perPage?: number,
page?: number,
cursor?: string,
sample?: number,
select?: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<InstitutionsListResponse>;
public listInstitutions(
search?: string,
filter?: string,
sort?: string,
groupBy?: string,
perPage?: number,
page?: number,
cursor?: string,
sample?: number,
select?: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<InstitutionsListResponse>>;
public listInstitutions(
search?: string,
filter?: string,
sort?: string,
groupBy?: string,
perPage?: number,
page?: number,
cursor?: string,
sample?: number,
select?: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<InstitutionsListResponse>>;
public listInstitutions(
search?: string,
filter?: string,
sort?: string,
groupBy?: string,
perPage?: number,
page?: number,
cursor?: string,
sample?: number,
select?: 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>search,
'search',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>filter,
'filter',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>sort,
'sort',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>groupBy,
'group_by',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>perPage,
'per_page',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>page,
'page',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>cursor,
'cursor',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>sample,
'sample',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>select,
'select',
);
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/institutions`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<InstitutionsListResponse>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/**
* Searches for institutions by name.
* Searches for institutions by name with pagination.
* @endpoint get /api/inse-service/institutions/search
* @param name Institution name to search for, for example \&#39;University of Duisburg Essen\&#39;.
* @param page Page number (0-indexed).
* @param size Number of institutions per page.
* @param sortBy Field to sort by, either \&#39;relevance\&#39;, \&#39;name\&#39;, \&#39;works_count\&#39;, or \&#39;citations_count\&#39;.
* @param sortingDirection Sorting direction, either \&#39;asc\&#39; or \&#39;desc\&#39;.
* @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 searchInstitutionsByName(
name?: string,
page?: number,
size?: number,
sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count',
sortingDirection?: 'asc' | 'desc',
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<InstitutionPage>;
public searchInstitutionsByName(
name?: string,
page?: number,
size?: number,
sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count',
sortingDirection?: 'asc' | 'desc',
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<InstitutionPage>>;
public searchInstitutionsByName(
name?: string,
page?: number,
size?: number,
sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count',
sortingDirection?: 'asc' | 'desc',
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<InstitutionPage>>;
public searchInstitutionsByName(
name?: string,
page?: number,
size?: number,
sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count',
sortingDirection?: 'asc' | 'desc',
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>name,
'name',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>page,
'page',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>size,
'size',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>sortBy,
'sort_by',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>sortingDirection,
'sorting_direction',
);
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/institutions/search`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<InstitutionPage>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
} }
+76 -131
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,18 +9,12 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpHeaders, } from '@angular/common/http';
HttpParams, import { CustomHttpParameterCodec } from '../encoder';
HttpResponse, import { Observable } from 'rxjs';
HttpEvent,
HttpParameterCodec,
HttpContext,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore // @ts-ignore
import { ExtractedKeywordsResponse } from '../model/extractedKeywordsResponse'; import { ExtractedKeywordsResponse } from '../model/extractedKeywordsResponse';
@@ -30,133 +24,84 @@ import { HTTPValidationError } from '../model/hTTPValidationError';
import { KeywordsRequest } from '../model/keywordsRequest'; import { KeywordsRequest } from '../model/keywordsRequest';
// @ts-ignore // @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class KeywordsService extends BaseService { export class KeywordsService extends BaseService {
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string | string[],
@Optional() configuration?: Configuration,
) {
super(basePath, configuration);
}
/** constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
* Extracts keywords from text. super(basePath, configuration);
* @endpoint post /api/inse-service/keywords/extract
* @param keywordsRequest
* @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 extractKeywords(
keywordsRequest: KeywordsRequest,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<ExtractedKeywordsResponse>;
public extractKeywords(
keywordsRequest: KeywordsRequest,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<ExtractedKeywordsResponse>>;
public extractKeywords(
keywordsRequest: KeywordsRequest,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<ExtractedKeywordsResponse>>;
public extractKeywords(
keywordsRequest: KeywordsRequest,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
if (keywordsRequest === null || keywordsRequest === undefined) {
throw new Error(
'Required parameter keywordsRequest was null or undefined when calling extractKeywords.',
);
} }
let localVarHeaders = this.defaultHeaders; /**
* Extracts keywords from text.
* @endpoint post /api/inse-service/keywords/extract
* @param keywordsRequest
* @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 extractKeywords(keywordsRequest: KeywordsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<ExtractedKeywordsResponse>;
public extractKeywords(keywordsRequest: KeywordsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ExtractedKeywordsResponse>>;
public extractKeywords(keywordsRequest: KeywordsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ExtractedKeywordsResponse>>;
public extractKeywords(keywordsRequest: KeywordsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (keywordsRequest === null || keywordsRequest === undefined) {
throw new Error('Required parameter keywordsRequest was null or undefined when calling extractKeywords.');
}
const localVarHttpHeaderAcceptSelected: string | undefined = let localVarHeaders = this.defaultHeaders;
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (localVarHttpHeaderAcceptSelected !== undefined) { 'application/json'
localVarHeaders = localVarHeaders.set( ]);
'Accept', if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHttpHeaderAcceptSelected, 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/keywords/extract`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<ExtractedKeywordsResponse>('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: keywordsRequest,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
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/keywords/extract`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<ExtractedKeywordsResponse>(
'post',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: keywordsRequest,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
} }
File diff suppressed because it is too large Load Diff
+269 -533
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,18 +9,12 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpHeaders, } from '@angular/common/http';
HttpParams, import { CustomHttpParameterCodec } from '../encoder';
HttpResponse, import { Observable } from 'rxjs';
HttpEvent,
HttpParameterCodec,
HttpContext,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore // @ts-ignore
import { CreateOrganizationRequest } from '../model/createOrganizationRequest'; import { CreateOrganizationRequest } from '../model/createOrganizationRequest';
@@ -34,545 +28,287 @@ import { OrganizationPage } from '../model/organizationPage';
import { UpdateOrganizationRequest } from '../model/updateOrganizationRequest'; import { UpdateOrganizationRequest } from '../model/updateOrganizationRequest';
// @ts-ignore // @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class OrganizationService extends BaseService { export class OrganizationService extends BaseService {
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string | string[],
@Optional() configuration?: Configuration,
) {
super(basePath, configuration);
}
/** constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
* Create Organization super(basePath, configuration);
* @endpoint post /api/organizations
* @param createOrganizationRequest
* @param secureFgpAcc
* @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 createOrganisation(
createOrganizationRequest: CreateOrganizationRequest,
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<InseOrganizationManagementModelOrganizationProfile>;
public createOrganisation(
createOrganizationRequest: CreateOrganizationRequest,
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<
HttpResponse<InseOrganizationManagementModelOrganizationProfile>
>;
public createOrganisation(
createOrganizationRequest: CreateOrganizationRequest,
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<InseOrganizationManagementModelOrganizationProfile>>;
public createOrganisation(
createOrganizationRequest: CreateOrganizationRequest,
secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
if (
createOrganizationRequest === null ||
createOrganizationRequest === undefined
) {
throw new Error(
'Required parameter createOrganizationRequest was null or undefined when calling createOrganisation.',
);
} }
let localVarHeaders = this.defaultHeaders; /**
* Create Organization
* @endpoint post /api/organizations
* @param createOrganizationRequest
* @param secureFgpAcc
* @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 createOrganisation(createOrganizationRequest: CreateOrganizationRequest, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<InseOrganizationManagementModelOrganizationProfile>;
public createOrganisation(createOrganizationRequest: CreateOrganizationRequest, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<InseOrganizationManagementModelOrganizationProfile>>;
public createOrganisation(createOrganizationRequest: CreateOrganizationRequest, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<InseOrganizationManagementModelOrganizationProfile>>;
public createOrganisation(createOrganizationRequest: CreateOrganizationRequest, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (createOrganizationRequest === null || createOrganizationRequest === undefined) {
throw new Error('Required parameter createOrganizationRequest was null or undefined when calling createOrganisation.');
}
// authentication (HTTPBearer) required let localVarHeaders = this.defaultHeaders;
localVarHeaders = this.configuration.addCredentialToHeaders(
'HTTPBearer',
'Authorization',
localVarHeaders,
'Bearer ',
);
const localVarHttpHeaderAcceptSelected: string | undefined = // authentication (HTTPBearer) required
options?.httpHeaderAccept ?? localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
this.configuration.selectHeaderAccept(['application/json']);
if (localVarHttpHeaderAcceptSelected !== undefined) { const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
localVarHeaders = localVarHeaders.set( 'application/json'
'Accept', ]);
localVarHttpHeaderAcceptSelected, 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/organizations`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<InseOrganizationManagementModelOrganizationProfile>('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: createOrganizationRequest,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
const localVarHttpContext: HttpContext = /**
options?.context ?? new HttpContext(); * Delete Organization
* @endpoint delete /api/organizations/{organization_id}
* @param organizationId
* @param secureFgpAcc
* @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 deleteOrganisation(organizationId: string, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
public deleteOrganisation(organizationId: string, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
public deleteOrganisation(organizationId: string, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
public deleteOrganisation(organizationId: string, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (organizationId === null || organizationId === undefined) {
throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganisation.');
}
const localVarTransferCache: boolean = options?.transferCache ?? true; let localVarHeaders = this.defaultHeaders;
// to determine the Content-Type header // authentication (HTTPBearer) required
const consumes: string[] = ['application/json']; localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (httpContentTypeSelected !== undefined) { 'application/json'
localVarHeaders = localVarHeaders.set( ]);
'Content-Type', if (localVarHttpHeaderAcceptSelected !== undefined) {
httpContentTypeSelected, 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/organizations/${this.configuration.encodeParam({name: "organizationId", value: organizationId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
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
}
);
} }
let responseType_: 'text' | 'json' | 'blob' = 'json'; /**
if (localVarHttpHeaderAcceptSelected) { * Get Organizations
if (localVarHttpHeaderAcceptSelected.startsWith('text')) { * @endpoint get /api/organizations
responseType_ = 'text'; * @param page
} else if ( * @param pageSize
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) * @param offset
) { * @param secureFgpAcc
responseType_ = 'json'; * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
} else { * @param reportProgress flag to report request and response progress.
responseType_ = 'blob'; */
} public getOrganisations(page?: number, pageSize?: number, offset?: number, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<OrganizationPage>;
public getOrganisations(page?: number, pageSize?: number, offset?: number, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<OrganizationPage>>;
public getOrganisations(page?: number, pageSize?: number, offset?: number, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<OrganizationPage>>;
public getOrganisations(page?: number, pageSize?: number, offset?: number, secureFgpAcc?: 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>page, 'page');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>pageSize, 'page_size');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>offset, 'offset');
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', '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/organizations`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<OrganizationPage>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
let localVarPath = `/api/organizations`; /**
const { basePath, withCredentials } = this.configuration; * Update Organization
return this.httpClient.request<InseOrganizationManagementModelOrganizationProfile>( * @endpoint put /api/organizations/{organization_id}
'post', * @param organizationId
`${basePath}${localVarPath}`, * @param updateOrganizationRequest
{ * @param secureFgpAcc
context: localVarHttpContext, * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
body: createOrganizationRequest, * @param reportProgress flag to report request and response progress.
responseType: <any>responseType_, */
...(withCredentials ? { withCredentials } : {}), public updateOrganisation(organizationId: string, updateOrganizationRequest: UpdateOrganizationRequest, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<InseOrganizationManagementModelOrganizationProfile>;
headers: localVarHeaders, public updateOrganisation(organizationId: string, updateOrganizationRequest: UpdateOrganizationRequest, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<InseOrganizationManagementModelOrganizationProfile>>;
observe: observe, public updateOrganisation(organizationId: string, updateOrganizationRequest: UpdateOrganizationRequest, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<InseOrganizationManagementModelOrganizationProfile>>;
...(localVarTransferCache !== undefined public updateOrganisation(organizationId: string, updateOrganizationRequest: UpdateOrganizationRequest, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
? { transferCache: localVarTransferCache } if (organizationId === null || organizationId === undefined) {
: {}), throw new Error('Required parameter organizationId was null or undefined when calling updateOrganisation.');
reportProgress: reportProgress, }
}, if (updateOrganizationRequest === null || updateOrganizationRequest === undefined) {
); throw new Error('Required parameter updateOrganizationRequest was null or undefined when calling updateOrganisation.');
} }
/** let localVarHeaders = this.defaultHeaders;
* Delete Organization
* @endpoint delete /api/organizations/{organization_id} // authentication (HTTPBearer) required
* @param organizationId localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
* @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
* @param reportProgress flag to report request and response progress. 'application/json'
*/ ]);
public deleteOrganisation( if (localVarHttpHeaderAcceptSelected !== undefined) {
organizationId: string, localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
secureFgpAcc?: string, }
observe?: 'body',
reportProgress?: boolean, const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
options?: {
httpHeaderAccept?: 'application/json'; const localVarTransferCache: boolean = options?.transferCache ?? true;
context?: HttpContext;
transferCache?: boolean;
}, // to determine the Content-Type header
): Observable<any>; const consumes: string[] = [
public deleteOrganisation( 'application/json'
organizationId: string, ];
secureFgpAcc?: string, const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
observe?: 'response', if (httpContentTypeSelected !== undefined) {
reportProgress?: boolean, localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
options?: { }
httpHeaderAccept?: 'application/json';
context?: HttpContext; let responseType_: 'text' | 'json' | 'blob' = 'json';
transferCache?: boolean; if (localVarHttpHeaderAcceptSelected) {
}, if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
): Observable<HttpResponse<any>>; responseType_ = 'text';
public deleteOrganisation( } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
organizationId: string, responseType_ = 'json';
secureFgpAcc?: string, } else {
observe?: 'events', responseType_ = 'blob';
reportProgress?: boolean, }
options?: { }
httpHeaderAccept?: 'application/json';
context?: HttpContext; let localVarPath = `/api/organizations/${this.configuration.encodeParam({name: "organizationId", value: organizationId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
transferCache?: boolean; const { basePath, withCredentials } = this.configuration;
}, return this.httpClient.request<InseOrganizationManagementModelOrganizationProfile>('put', `${basePath}${localVarPath}`,
): Observable<HttpEvent<any>>; {
public deleteOrganisation( context: localVarHttpContext,
organizationId: string, body: updateOrganizationRequest,
secureFgpAcc?: string, responseType: <any>responseType_,
observe: any = 'body', ...(withCredentials ? { withCredentials } : {}),
reportProgress: boolean = false, headers: localVarHeaders,
options?: { observe: observe,
httpHeaderAccept?: 'application/json'; ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
context?: HttpContext; reportProgress: reportProgress
transferCache?: boolean; }
}, );
): Observable<any> {
if (organizationId === null || organizationId === undefined) {
throw new Error(
'Required parameter organizationId was null or undefined when calling deleteOrganisation.',
);
} }
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
localVarHeaders = this.configuration.addCredentialToHeaders(
'HTTPBearer',
'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/organizations/${this.configuration.encodeParam({ name: 'organizationId', value: organizationId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: 'uuid' })}`;
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,
},
);
}
/**
* Get Organizations
* @endpoint get /api/organizations
* @param page
* @param pageSize
* @param offset
* @param secureFgpAcc
* @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 getOrganisations(
page?: number,
pageSize?: number,
offset?: number,
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<OrganizationPage>;
public getOrganisations(
page?: number,
pageSize?: number,
offset?: number,
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<OrganizationPage>>;
public getOrganisations(
page?: number,
pageSize?: number,
offset?: number,
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<OrganizationPage>>;
public getOrganisations(
page?: number,
pageSize?: number,
offset?: number,
secureFgpAcc?: 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>page,
'page',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>pageSize,
'page_size',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>offset,
'offset',
);
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
localVarHeaders = this.configuration.addCredentialToHeaders(
'HTTPBearer',
'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/organizations`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<OrganizationPage>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/**
* Update Organization
* @endpoint put /api/organizations/{organization_id}
* @param organizationId
* @param updateOrganizationRequest
* @param secureFgpAcc
* @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 updateOrganisation(
organizationId: string,
updateOrganizationRequest: UpdateOrganizationRequest,
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<InseOrganizationManagementModelOrganizationProfile>;
public updateOrganisation(
organizationId: string,
updateOrganizationRequest: UpdateOrganizationRequest,
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<
HttpResponse<InseOrganizationManagementModelOrganizationProfile>
>;
public updateOrganisation(
organizationId: string,
updateOrganizationRequest: UpdateOrganizationRequest,
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<InseOrganizationManagementModelOrganizationProfile>>;
public updateOrganisation(
organizationId: string,
updateOrganizationRequest: UpdateOrganizationRequest,
secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
if (organizationId === null || organizationId === undefined) {
throw new Error(
'Required parameter organizationId was null or undefined when calling updateOrganisation.',
);
}
if (
updateOrganizationRequest === null ||
updateOrganizationRequest === undefined
) {
throw new Error(
'Required parameter updateOrganizationRequest was null or undefined when calling updateOrganisation.',
);
}
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
localVarHeaders = this.configuration.addCredentialToHeaders(
'HTTPBearer',
'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/organizations/${this.configuration.encodeParam({ name: 'organizationId', value: organizationId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: 'uuid' })}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<InseOrganizationManagementModelOrganizationProfile>(
'put',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: updateOrganizationRequest,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
} }
+315 -640
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,18 +9,12 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpHeaders, } from '@angular/common/http';
HttpParams, import { CustomHttpParameterCodec } from '../encoder';
HttpResponse, import { Observable } from 'rxjs';
HttpEvent,
HttpParameterCodec,
HttpContext,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore // @ts-ignore
import { AllPatentsResponse } from '../model/allPatentsResponse'; import { AllPatentsResponse } from '../model/allPatentsResponse';
@@ -36,657 +30,338 @@ import { PatentsByAuthorResponse } from '../model/patentsByAuthorResponse';
import { PatentsByInstitutionResponse } from '../model/patentsByInstitutionResponse'; import { PatentsByInstitutionResponse } from '../model/patentsByInstitutionResponse';
// @ts-ignore // @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class PatentsService extends BaseService { export class PatentsService extends BaseService {
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string | string[],
@Optional() configuration?: Configuration,
) {
super(basePath, configuration);
}
/** constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
* Get all patents with pagination and search. super(basePath, configuration);
* @endpoint get /api/inse-service/patents
* @param page
* @param size
* @param search
* @param source
* @param sortBy
* @param sortDirection
* @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 getAllPatents(
page?: number,
size?: number,
search?: string,
source?: string,
sortBy?: string,
sortDirection?: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<AllPatentsResponse>;
public getAllPatents(
page?: number,
size?: number,
search?: string,
source?: string,
sortBy?: string,
sortDirection?: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<AllPatentsResponse>>;
public getAllPatents(
page?: number,
size?: number,
search?: string,
source?: string,
sortBy?: string,
sortDirection?: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<AllPatentsResponse>>;
public getAllPatents(
page?: number,
size?: number,
search?: string,
source?: string,
sortBy?: string,
sortDirection?: 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>page,
'page',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>size,
'size',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>search,
'search',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>source,
'source',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>sortBy,
'sort_by',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>sortDirection,
'sort_direction',
);
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(); * Get all patents with pagination and search.
* @endpoint get /api/inse-service/patents
* @param page
* @param size
* @param search
* @param source
* @param sortBy
* @param sortDirection
* @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 getAllPatents(page?: number, size?: number, search?: string, source?: string, sortBy?: string, sortDirection?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AllPatentsResponse>;
public getAllPatents(page?: number, size?: number, search?: string, source?: string, sortBy?: string, sortDirection?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AllPatentsResponse>>;
public getAllPatents(page?: number, size?: number, search?: string, source?: string, sortBy?: string, sortDirection?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AllPatentsResponse>>;
public getAllPatents(page?: number, size?: number, search?: string, source?: string, sortBy?: string, sortDirection?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
const localVarTransferCache: boolean = options?.transferCache ?? true; let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>size, 'size');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>search, 'search');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>source, 'source');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>sortBy, 'sort_by');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>sortDirection, 'sort_direction');
let responseType_: 'text' | 'json' | 'blob' = 'json'; let localVarHeaders = this.defaultHeaders;
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) { const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
responseType_ = 'text'; 'application/json'
} else if ( ]);
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) if (localVarHttpHeaderAcceptSelected !== undefined) {
) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
responseType_ = 'json'; }
} else {
responseType_ = 'blob'; 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/patents`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AllPatentsResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
let localVarPath = `/api/inse-service/patents`; /**
const { basePath, withCredentials } = this.configuration; * Get pre-indexed org patents for an institution.
return this.httpClient.request<AllPatentsResponse>( * @endpoint get /api/inse-service/institutions/{id}/org-patents
'get', * @param id
`${basePath}${localVarPath}`, * @param matchType Filter patents by match type.
{ * @param page
context: localVarHttpContext, * @param size
params: localVarQueryParameters, * @param source
responseType: <any>responseType_, * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
...(withCredentials ? { withCredentials } : {}), * @param reportProgress flag to report request and response progress.
headers: localVarHeaders, */
observe: observe, public getOrgPatentsByInstitution(id: string, matchType?: 'institution' | 'name' | 'both' | 'all', page?: number, size?: number, source?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<OrgPatentsResponse>;
...(localVarTransferCache !== undefined public getOrgPatentsByInstitution(id: string, matchType?: 'institution' | 'name' | 'both' | 'all', page?: number, size?: number, source?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<OrgPatentsResponse>>;
? { transferCache: localVarTransferCache } public getOrgPatentsByInstitution(id: string, matchType?: 'institution' | 'name' | 'both' | 'all', page?: number, size?: number, source?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<OrgPatentsResponse>>;
: {}), public getOrgPatentsByInstitution(id: string, matchType?: 'institution' | 'name' | 'both' | 'all', page?: number, size?: number, source?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
reportProgress: reportProgress, if (id === null || id === undefined) {
}, throw new Error('Required parameter id was null or undefined when calling getOrgPatentsByInstitution.');
); }
}
/** let localVarQueryParameters = new HttpParams({encoder: this.encoder});
* Get pre-indexed org patents for an institution. localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
* @endpoint get /api/inse-service/institutions/{id}/org-patents <any>matchType, 'match_type');
* @param id localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
* @param matchType Filter patents by match type. <any>page, 'page');
* @param page localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
* @param size <any>size, 'size');
* @param source localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. <any>source, 'source');
* @param reportProgress flag to report request and response progress.
*/ let localVarHeaders = this.defaultHeaders;
public getOrgPatentsByInstitution(
id: string, const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
matchType?: 'institution' | 'name' | 'both' | 'all', 'application/json'
page?: number, ]);
size?: number, if (localVarHttpHeaderAcceptSelected !== undefined) {
source?: string, localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
observe?: 'body', }
reportProgress?: boolean,
options?: { const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
httpHeaderAccept?: 'application/json';
context?: HttpContext; const localVarTransferCache: boolean = options?.transferCache ?? true;
transferCache?: boolean;
},
): Observable<OrgPatentsResponse>; let responseType_: 'text' | 'json' | 'blob' = 'json';
public getOrgPatentsByInstitution( if (localVarHttpHeaderAcceptSelected) {
id: string, if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
matchType?: 'institution' | 'name' | 'both' | 'all', responseType_ = 'text';
page?: number, } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
size?: number, responseType_ = 'json';
source?: string, } else {
observe?: 'response', responseType_ = 'blob';
reportProgress?: boolean, }
options?: { }
httpHeaderAccept?: 'application/json';
context?: HttpContext; let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/org-patents`;
transferCache?: boolean; const { basePath, withCredentials } = this.configuration;
}, return this.httpClient.request<OrgPatentsResponse>('get', `${basePath}${localVarPath}`,
): Observable<HttpResponse<OrgPatentsResponse>>; {
public getOrgPatentsByInstitution( context: localVarHttpContext,
id: string, params: localVarQueryParameters,
matchType?: 'institution' | 'name' | 'both' | 'all', responseType: <any>responseType_,
page?: number, ...(withCredentials ? { withCredentials } : {}),
size?: number, headers: localVarHeaders,
source?: string, observe: observe,
observe?: 'events', ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress?: boolean, reportProgress: reportProgress
options?: { }
httpHeaderAccept?: 'application/json'; );
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<OrgPatentsResponse>>;
public getOrgPatentsByInstitution(
id: string,
matchType?: 'institution' | 'name' | 'both' | 'all',
page?: number,
size?: number,
source?: 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 getOrgPatentsByInstitution.',
);
} }
let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); /**
localVarQueryParameters = this.addToHttpParams( * Returns one publication by OpenAlex ID or DOI.
localVarQueryParameters, * @endpoint get /api/inse-service/patents/{identifier}
<any>matchType, * @param identifier
'match_type', * @param prefix Application Prefix (EP or US)
); * @param title Do we want to fallback to title search if ID and DOI dont work?
localVarQueryParameters = this.addToHttpParams( * @param fillingDate Filling date in YYYY-MM-DD format
localVarQueryParameters, * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
<any>page, * @param reportProgress flag to report request and response progress.
'page', */
); public getPatentByIdOrTitle(identifier: string, prefix?: string, title?: string, fillingDate?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<PatentEntry>;
localVarQueryParameters = this.addToHttpParams( public getPatentByIdOrTitle(identifier: string, prefix?: string, title?: string, fillingDate?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PatentEntry>>;
localVarQueryParameters, public getPatentByIdOrTitle(identifier: string, prefix?: string, title?: string, fillingDate?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PatentEntry>>;
<any>size, public getPatentByIdOrTitle(identifier: string, prefix?: string, title?: string, fillingDate?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
'size', if (identifier === null || identifier === undefined) {
); throw new Error('Required parameter identifier was null or undefined when calling getPatentByIdOrTitle.');
localVarQueryParameters = this.addToHttpParams( }
localVarQueryParameters,
<any>source,
'source',
);
let localVarHeaders = this.defaultHeaders; let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>prefix, 'prefix');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>title, 'title');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>fillingDate, 'filling_date');
const localVarHttpHeaderAcceptSelected: string | undefined = let localVarHeaders = this.defaultHeaders;
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (localVarHttpHeaderAcceptSelected !== undefined) { 'application/json'
localVarHeaders = localVarHeaders.set( ]);
'Accept', if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHttpHeaderAcceptSelected, 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/patents/${this.configuration.encodeParam({name: "identifier", value: identifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<PatentEntry>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
const localVarHttpContext: HttpContext = /**
options?.context ?? new HttpContext(); * Get patents matched to an author by name.
* @endpoint get /api/inse-service/authors/{author_id}/patents
* @param authorId
* @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 getPatentsByAuthor(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<PatentsByAuthorResponse>;
public getPatentsByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PatentsByAuthorResponse>>;
public getPatentsByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PatentsByAuthorResponse>>;
public getPatentsByAuthor(authorId: 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 getPatentsByAuthor.');
}
const localVarTransferCache: boolean = options?.transferCache ?? true; let localVarHeaders = this.defaultHeaders;
let responseType_: 'text' | 'json' | 'blob' = 'json'; const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (localVarHttpHeaderAcceptSelected) { 'application/json'
if (localVarHttpHeaderAcceptSelected.startsWith('text')) { ]);
responseType_ = 'text'; if (localVarHttpHeaderAcceptSelected !== undefined) {
} else if ( localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) }
) {
responseType_ = 'json'; const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
} else {
responseType_ = 'blob'; 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/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/patents`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<PatentsByAuthorResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
} }
let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/org-patents`; /**
const { basePath, withCredentials } = this.configuration; * Get patents matched to an institution by assignee name.
return this.httpClient.request<OrgPatentsResponse>( * @endpoint get /api/inse-service/institutions/{id}/patents
'get', * @param id
`${basePath}${localVarPath}`, * @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.
context: localVarHttpContext, */
params: localVarQueryParameters, public getPatentsByInstitution(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<PatentsByInstitutionResponse>;
responseType: <any>responseType_, public getPatentsByInstitution(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PatentsByInstitutionResponse>>;
...(withCredentials ? { withCredentials } : {}), public getPatentsByInstitution(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PatentsByInstitutionResponse>>;
headers: localVarHeaders, public getPatentsByInstitution(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
observe: observe, if (id === null || id === undefined) {
...(localVarTransferCache !== undefined throw new Error('Required parameter id was null or undefined when calling getPatentsByInstitution.');
? { transferCache: localVarTransferCache } }
: {}),
reportProgress: reportProgress,
},
);
}
/** let localVarHeaders = this.defaultHeaders;
* Returns one publication by OpenAlex ID or DOI.
* @endpoint get /api/inse-service/patents/{identifier} const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
* @param identifier 'application/json'
* @param prefix Application Prefix (EP or US) ]);
* @param title Do we want to fallback to title search if ID and DOI dont work? if (localVarHttpHeaderAcceptSelected !== undefined) {
* @param fillingDate Filling date in YYYY-MM-DD format localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
* @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.
*/ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
public getPatentByIdOrTitle(
identifier: string, const localVarTransferCache: boolean = options?.transferCache ?? true;
prefix?: string,
title?: string,
fillingDate?: string, let responseType_: 'text' | 'json' | 'blob' = 'json';
observe?: 'body', if (localVarHttpHeaderAcceptSelected) {
reportProgress?: boolean, if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
options?: { responseType_ = 'text';
httpHeaderAccept?: 'application/json'; } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
context?: HttpContext; responseType_ = 'json';
transferCache?: boolean; } else {
}, responseType_ = 'blob';
): Observable<PatentEntry>; }
public getPatentByIdOrTitle( }
identifier: string,
prefix?: string, let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/patents`;
title?: string, const { basePath, withCredentials } = this.configuration;
fillingDate?: string, return this.httpClient.request<PatentsByInstitutionResponse>('get', `${basePath}${localVarPath}`,
observe?: 'response', {
reportProgress?: boolean, context: localVarHttpContext,
options?: { responseType: <any>responseType_,
httpHeaderAccept?: 'application/json'; ...(withCredentials ? { withCredentials } : {}),
context?: HttpContext; headers: localVarHeaders,
transferCache?: boolean; observe: observe,
}, ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
): Observable<HttpResponse<PatentEntry>>; reportProgress: reportProgress
public getPatentByIdOrTitle( }
identifier: string, );
prefix?: string,
title?: string,
fillingDate?: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<PatentEntry>>;
public getPatentByIdOrTitle(
identifier: string,
prefix?: string,
title?: string,
fillingDate?: string,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
if (identifier === null || identifier === undefined) {
throw new Error(
'Required parameter identifier was null or undefined when calling getPatentByIdOrTitle.',
);
} }
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>prefix,
'prefix',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>title,
'title',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>fillingDate,
'filling_date',
);
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/patents/${this.configuration.encodeParam({ name: 'identifier', value: identifier, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<PatentEntry>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/**
* Get patents matched to an author by name.
* @endpoint get /api/inse-service/authors/{author_id}/patents
* @param authorId
* @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 getPatentsByAuthor(
authorId: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<PatentsByAuthorResponse>;
public getPatentsByAuthor(
authorId: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<PatentsByAuthorResponse>>;
public getPatentsByAuthor(
authorId: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<PatentsByAuthorResponse>>;
public getPatentsByAuthor(
authorId: 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 getPatentsByAuthor.',
);
}
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/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/patents`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<PatentsByAuthorResponse>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/**
* Get patents matched to an institution by assignee name.
* @endpoint get /api/inse-service/institutions/{id}/patents
* @param 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 getPatentsByInstitution(
id: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<PatentsByInstitutionResponse>;
public getPatentsByInstitution(
id: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<PatentsByInstitutionResponse>>;
public getPatentsByInstitution(
id: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<PatentsByInstitutionResponse>>;
public getPatentsByInstitution(
id: 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 getPatentsByInstitution.',
);
}
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/institutions/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/patents`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<PatentsByInstitutionResponse>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
} }
+78 -137
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,18 +9,12 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpHeaders, } from '@angular/common/http';
HttpParams, import { CustomHttpParameterCodec } from '../encoder';
HttpResponse, import { Observable } from 'rxjs';
HttpEvent,
HttpParameterCodec,
HttpContext,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore // @ts-ignore
import { CollaborationNetwork } from '../model/collaborationNetwork'; import { CollaborationNetwork } from '../model/collaborationNetwork';
@@ -30,139 +24,86 @@ import { FilterProperties } from '../model/filterProperties';
import { HTTPValidationError } from '../model/hTTPValidationError'; import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore // @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class PersonNetworkService extends BaseService { export class PersonNetworkService extends BaseService {
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string | string[],
@Optional() configuration?: Configuration,
) {
super(basePath, configuration);
}
/** constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
* Get a person\&#39;s collaboration network. super(basePath, configuration);
* 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; /**
* 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.');
}
const localVarHttpHeaderAcceptSelected: string | undefined = let localVarHeaders = this.defaultHeaders;
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
if (localVarHttpHeaderAcceptSelected !== undefined) { 'application/json'
localVarHeaders = localVarHeaders.set( ]);
'Accept', if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHttpHeaderAcceptSelected, 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
}
);
} }
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,
},
);
}
} }
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,18 +9,12 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpHeaders, } from '@angular/common/http';
HttpParams, import { CustomHttpParameterCodec } from '../encoder';
HttpResponse, import { Observable } from 'rxjs';
HttpEvent,
HttpParameterCodec,
HttpContext,
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore // @ts-ignore
import { AutocompleteLocationItem } from '../model/autocompleteLocationItem'; import { AutocompleteLocationItem } from '../model/autocompleteLocationItem';
@@ -34,545 +28,296 @@ import { TopInstitutionItem } from '../model/topInstitutionItem';
import { TrendResponse } from '../model/trendResponse'; import { TrendResponse } from '../model/trendResponse';
// @ts-ignore // @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class UniversityRankingsService extends BaseService { export class UniversityRankingsService extends BaseService {
constructor(
protected httpClient: HttpClient,
@Optional() @Inject(BASE_PATH) basePath: string | string[],
@Optional() configuration?: Configuration,
) {
super(basePath, configuration);
}
/** constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
* Returns country and continent options for autocomplete inputs. super(basePath, configuration);
* @endpoint get /api/inse-service/university-rankings/autocomplete-locations
* @param query Query text to search for countries/continents
* @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 getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
query: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<Array<AutocompleteLocationItem>>;
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
query: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<Array<AutocompleteLocationItem>>>;
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
query: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<Array<AutocompleteLocationItem>>>;
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
query: string,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
if (query === null || query === undefined) {
throw new Error(
'Required parameter query was null or undefined when calling getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet.',
);
} }
let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); /**
localVarQueryParameters = this.addToHttpParams( * Returns country and continent options for autocomplete inputs.
localVarQueryParameters, * @endpoint get /api/inse-service/university-rankings/autocomplete-locations
<any>query, * @param query Query text to search for countries/continents
'query', * @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 getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<AutocompleteLocationItem>>;
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<AutocompleteLocationItem>>>;
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<AutocompleteLocationItem>>>;
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (query === null || query === undefined) {
throw new Error('Required parameter query was null or undefined when calling getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet.');
}
let localVarHeaders = this.defaultHeaders; let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>query, 'query');
const localVarHttpHeaderAcceptSelected: string | undefined = let localVarHeaders = this.defaultHeaders;
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set(
'Accept',
localVarHttpHeaderAcceptSelected,
);
}
const localVarHttpContext: HttpContext = const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
options?.context ?? new HttpContext(); 'application/json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
const localVarTransferCache: boolean = options?.transferCache ?? true; const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
let responseType_: 'text' | 'json' | 'blob' = 'json'; const localVarTransferCache: boolean = options?.transferCache ?? true;
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/api/inse-service/university-rankings/autocomplete-locations`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<AutocompleteLocationItem>>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/** let responseType_: 'text' | 'json' | 'blob' = 'json';
* Returns data for the University Ranking Dashboard. if (localVarHttpHeaderAcceptSelected) {
* @endpoint get /api/inse-service/university-rankings if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
* @param topic Research topic display name or OpenAlex ID (e.g., \&#39;Artificial Intelligence\&#39;) responseType_ = 'text';
* @param metric Metric to rank by } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. responseType_ = 'json';
* @param reportProgress flag to report request and response progress. } else {
*/ responseType_ = 'blob';
public getRankingsApiInseServiceUniversityRankingsGet( }
topic: string, }
metric?: 'publications' | 'citations',
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<RankingResponse>;
public getRankingsApiInseServiceUniversityRankingsGet(
topic: string,
metric?: 'publications' | 'citations',
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<RankingResponse>>;
public getRankingsApiInseServiceUniversityRankingsGet(
topic: string,
metric?: 'publications' | 'citations',
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<RankingResponse>>;
public getRankingsApiInseServiceUniversityRankingsGet(
topic: string,
metric?: 'publications' | 'citations',
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 getRankingsApiInseServiceUniversityRankingsGet.',
);
}
let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); let localVarPath = `/api/inse-service/university-rankings/autocomplete-locations`;
localVarQueryParameters = this.addToHttpParams( const { basePath, withCredentials } = this.configuration;
localVarQueryParameters, return this.httpClient.request<Array<AutocompleteLocationItem>>('get', `${basePath}${localVarPath}`,
<any>topic, {
'topic', context: localVarHttpContext,
); params: localVarQueryParameters,
localVarQueryParameters = this.addToHttpParams( responseType: <any>responseType_,
localVarQueryParameters, ...(withCredentials ? { withCredentials } : {}),
<any>metric, headers: localVarHeaders,
'metric', observe: observe,
); ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
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/university-rankings`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<RankingResponse>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/**
* Returns top institutions filtered by country/region and sorted by topic-level publications count.
* @endpoint get /api/inse-service/university-rankings/top-institutions
* @param topic Research topic
* @param region Region identifier (e.g. EU)
* @param country Country code (e.g. DE)
* @param limit Max suggestions to return
* @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 getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(
topic: string,
region?: string,
country?: string,
limit?: number,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<Array<TopInstitutionItem>>;
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(
topic: string,
region?: string,
country?: string,
limit?: number,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<Array<TopInstitutionItem>>>;
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(
topic: string,
region?: string,
country?: string,
limit?: number,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<Array<TopInstitutionItem>>>;
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(
topic: string,
region?: string,
country?: string,
limit?: number,
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 getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet.',
);
}
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>topic,
'topic',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>region,
'region',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>country,
'country',
);
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>limit,
'limit',
);
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/university-rankings/top-institutions`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<TopInstitutionItem>>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
/**
* Returns timeseries publication data for compared institutions, countries and regions.
* @endpoint get /api/inse-service/university-rankings/trend
* @param topics List of topics to analyze
* @param institutions List of OpenAlex Institution IDs
* @param countries List of country codes
* @param regions List of region identifiers
* @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 getTrendApiInseServiceUniversityRankingsTrendGet(
topics: Array<string>,
institutions?: Array<string>,
countries?: Array<string>,
regions?: Array<string>,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<TrendResponse>;
public getTrendApiInseServiceUniversityRankingsTrendGet(
topics: Array<string>,
institutions?: Array<string>,
countries?: Array<string>,
regions?: Array<string>,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<TrendResponse>>;
public getTrendApiInseServiceUniversityRankingsTrendGet(
topics: Array<string>,
institutions?: Array<string>,
countries?: Array<string>,
regions?: Array<string>,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<TrendResponse>>;
public getTrendApiInseServiceUniversityRankingsTrendGet(
topics: Array<string>,
institutions?: Array<string>,
countries?: Array<string>,
regions?: Array<string>,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
if (topics === null || topics === undefined) {
throw new Error(
'Required parameter topics was null or undefined when calling getTrendApiInseServiceUniversityRankingsTrendGet.',
);
}
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
if (topics) {
topics.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
<any>element,
'topics',
); );
});
} }
if (institutions) {
institutions.forEach((element) => { /**
localVarQueryParameters = this.addToHttpParams( * Returns data for the University Ranking Dashboard.
localVarQueryParameters, * @endpoint get /api/inse-service/university-rankings
<any>element, * @param topic Research topic display name or OpenAlex ID (e.g., \&#39;Artificial Intelligence\&#39;)
'institutions', * @param metric Metric to rank by
* @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 getRankingsApiInseServiceUniversityRankingsGet(topic: string, metric?: 'publications' | 'citations', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<RankingResponse>;
public getRankingsApiInseServiceUniversityRankingsGet(topic: string, metric?: 'publications' | 'citations', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<RankingResponse>>;
public getRankingsApiInseServiceUniversityRankingsGet(topic: string, metric?: 'publications' | 'citations', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<RankingResponse>>;
public getRankingsApiInseServiceUniversityRankingsGet(topic: string, metric?: 'publications' | 'citations', 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 getRankingsApiInseServiceUniversityRankingsGet.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>topic, 'topic');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>metric, 'metric');
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/university-rankings`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<RankingResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
); );
});
} }
if (countries) {
countries.forEach((element) => { /**
localVarQueryParameters = this.addToHttpParams( * Returns top institutions filtered by country/region and sorted by topic-level publications count.
localVarQueryParameters, * @endpoint get /api/inse-service/university-rankings/top-institutions
<any>element, * @param topic Research topic
'countries', * @param region Region identifier (e.g. EU)
* @param country Country code (e.g. DE)
* @param limit Max suggestions to return
* @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 getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<TopInstitutionItem>>;
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<TopInstitutionItem>>>;
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<TopInstitutionItem>>>;
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, 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 getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>topic, 'topic');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>region, 'region');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>country, 'country');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>limit, 'limit');
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/university-rankings/top-institutions`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<TopInstitutionItem>>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
); );
});
} }
if (regions) {
regions.forEach((element) => { /**
localVarQueryParameters = this.addToHttpParams( * Returns timeseries publication data for compared institutions, countries and regions.
localVarQueryParameters, * @endpoint get /api/inse-service/university-rankings/trend
<any>element, * @param topics List of topics to analyze
'regions', * @param institutions List of OpenAlex Institution IDs
* @param countries List of country codes
* @param regions List of region identifiers
* @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 getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<TrendResponse>;
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<TrendResponse>>;
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<TrendResponse>>;
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (topics === null || topics === undefined) {
throw new Error('Required parameter topics was null or undefined when calling getTrendApiInseServiceUniversityRankingsTrendGet.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (topics) {
topics.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'topics');
})
}
if (institutions) {
institutions.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'institutions');
})
}
if (countries) {
countries.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'countries');
})
}
if (regions) {
regions.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'regions');
})
}
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/university-rankings/trend`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<TrendResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
); );
});
} }
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/university-rankings/trend`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<TrendResponse>(
'get',
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
},
);
}
} }
File diff suppressed because it is too large Load Diff
+171 -197
View File
@@ -1,219 +1,193 @@
import { import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
HttpHeaders,
HttpParams,
HttpParameterCodec,
} from '@angular/common/http';
import { Param } from './param'; import { Param } from './param';
export interface ConfigurationParameters { export interface ConfigurationParameters {
/** /**
* @deprecated Since 5.0. Use credentials instead * @deprecated Since 5.0. Use credentials instead
*/ */
apiKeys?: { [key: string]: string }; apiKeys?: {[ key: string ]: string};
username?: string; username?: string;
password?: string; password?: string;
/** /**
* @deprecated Since 5.0. Use credentials instead * @deprecated Since 5.0. Use credentials instead
*/ */
accessToken?: string | (() => string); accessToken?: string | (() => string);
basePath?: string; basePath?: string;
withCredentials?: boolean; withCredentials?: boolean;
/** /**
* Takes care of encoding query- and form-parameters. * Takes care of encoding query- and form-parameters.
*/ */
encoder?: HttpParameterCodec; encoder?: HttpParameterCodec;
/** /**
* Override the default method for encoding path parameters in various * Override the default method for encoding path parameters in various
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>. * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
* <p> * <p>
* See {@link README.md} for more details * See {@link README.md} for more details
* </p> * </p>
*/ */
encodeParam?: (param: Param) => string; encodeParam?: (param: Param) => string;
/** /**
* The keys are the names in the securitySchemes section of the OpenAPI * The keys are the names in the securitySchemes section of the OpenAPI
* document. They should map to the value used for authentication * document. They should map to the value used for authentication
* minus any standard prefixes such as 'Basic' or 'Bearer'. * minus any standard prefixes such as 'Basic' or 'Bearer'.
*/ */
credentials?: { [key: string]: string | (() => string | undefined) }; credentials?: {[ key: string ]: string | (() => string | undefined)};
} }
export class Configuration { export class Configuration {
/** /**
* @deprecated Since 5.0. Use credentials instead * @deprecated Since 5.0. Use credentials instead
*/ */
apiKeys?: { [key: string]: string }; apiKeys?: {[ key: string ]: string};
username?: string; username?: string;
password?: string; password?: string;
/** /**
* @deprecated Since 5.0. Use credentials instead * @deprecated Since 5.0. Use credentials instead
*/ */
accessToken?: string | (() => string); accessToken?: string | (() => string);
basePath?: string; basePath?: string;
withCredentials?: boolean; withCredentials?: boolean;
/** /**
* Takes care of encoding query- and form-parameters. * Takes care of encoding query- and form-parameters.
*/ */
encoder?: HttpParameterCodec; encoder?: HttpParameterCodec;
/** /**
* Encoding of various path parameter * Encoding of various path parameter
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>. * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
* <p> * <p>
* See {@link README.md} for more details * See {@link README.md} for more details
* </p> * </p>
*/ */
encodeParam: (param: Param) => string; encodeParam: (param: Param) => string;
/** /**
* The keys are the names in the securitySchemes section of the OpenAPI * The keys are the names in the securitySchemes section of the OpenAPI
* document. They should map to the value used for authentication * document. They should map to the value used for authentication
* minus any standard prefixes such as 'Basic' or 'Bearer'. * minus any standard prefixes such as 'Basic' or 'Bearer'.
*/ */
credentials: { [key: string]: string | (() => string | undefined) }; credentials: {[ key: string ]: string | (() => string | undefined)};
constructor({ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) {
accessToken, if (apiKeys) {
apiKeys, this.apiKeys = apiKeys;
basePath, }
credentials, if (username !== undefined) {
encodeParam, this.username = username;
encoder, }
password, if (password !== undefined) {
username, this.password = password;
withCredentials, }
}: ConfigurationParameters = {}) { if (accessToken !== undefined) {
if (apiKeys) { this.accessToken = accessToken;
this.apiKeys = apiKeys; }
} if (basePath !== undefined) {
if (username !== undefined) { this.basePath = basePath;
this.username = username; }
} if (withCredentials !== undefined) {
if (password !== undefined) { this.withCredentials = withCredentials;
this.password = password; }
} if (encoder) {
if (accessToken !== undefined) { this.encoder = encoder;
this.accessToken = accessToken; }
} this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param));
if (basePath !== undefined) { this.credentials = credentials ?? {};
this.basePath = basePath;
}
if (withCredentials !== undefined) {
this.withCredentials = withCredentials;
}
if (encoder) {
this.encoder = encoder;
}
this.encodeParam =
encodeParam ?? ((param) => this.defaultEncodeParam(param));
this.credentials = credentials ?? {};
// init default HTTPBearer credential // init default HTTPBearer credential
if (!this.credentials['HTTPBearer']) { if (!this.credentials['HTTPBearer']) {
this.credentials['HTTPBearer'] = () => { this.credentials['HTTPBearer'] = () => {
return typeof this.accessToken === 'function' return typeof this.accessToken === 'function'
? this.accessToken() ? this.accessToken()
: this.accessToken; : this.accessToken;
}; };
} }
}
/**
* Select the correct content-type to use for a request.
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
* If no content type is found return the first found type if the contentTypes is not empty
* @param contentTypes - the array of content types that are available for selection
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
*/
public selectHeaderContentType(contentTypes: string[]): string | undefined {
if (contentTypes.length === 0) {
return undefined;
} }
const type = contentTypes.find((x: string) => this.isJsonMime(x)); /**
if (type === undefined) { * Select the correct content-type to use for a request.
return contentTypes[0]; * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
} * If no content type is found return the first found type if the contentTypes is not empty
return type; * @param contentTypes - the array of content types that are available for selection
} * @returns the selected content-type or <code>undefined</code> if no selection could be made.
*/
public selectHeaderContentType (contentTypes: string[]): string | undefined {
if (contentTypes.length === 0) {
return undefined;
}
/** const type = contentTypes.find((x: string) => this.isJsonMime(x));
* Select the correct accept content-type to use for a request. if (type === undefined) {
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type. return contentTypes[0];
* If no content type is found return the first found type if the contentTypes is not empty }
* @param accepts - the array of content types that are available for selection. return type;
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
*/
public selectHeaderAccept(accepts: string[]): string | undefined {
if (accepts.length === 0) {
return undefined;
} }
const type = accepts.find((x: string) => this.isJsonMime(x)); /**
if (type === undefined) { * Select the correct accept content-type to use for a request.
return accepts[0]; * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
* If no content type is found return the first found type if the contentTypes is not empty
* @param accepts - the array of content types that are available for selection.
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
*/
public selectHeaderAccept(accepts: string[]): string | undefined {
if (accepts.length === 0) {
return undefined;
}
const type = accepts.find((x: string) => this.isJsonMime(x));
if (type === undefined) {
return accepts[0];
}
return type;
} }
return type;
}
/** /**
* Check if the given MIME is a JSON MIME. * Check if the given MIME is a JSON MIME.
* JSON MIME examples: * JSON MIME examples:
* application/json * application/json
* application/json; charset=UTF8 * application/json; charset=UTF8
* APPLICATION/JSON * APPLICATION/JSON
* application/vnd.company+json * application/vnd.company+json
* @param mime - MIME (Multipurpose Internet Mail Extensions) * @param mime - MIME (Multipurpose Internet Mail Extensions)
* @return True if the given MIME is JSON, false otherwise. * @return True if the given MIME is JSON, false otherwise.
*/ */
public isJsonMime(mime: string): boolean { public isJsonMime(mime: string): boolean {
const jsonMime: RegExp = new RegExp( const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
'^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
'i', }
);
return (
mime !== null &&
(jsonMime.test(mime) ||
mime.toLowerCase() === 'application/json-patch+json')
);
}
public lookupCredential(key: string): string | undefined { public lookupCredential(key: string): string | undefined {
const value = this.credentials[key]; const value = this.credentials[key];
return typeof value === 'function' ? value() : value; return typeof value === 'function'
} ? value()
: value;
}
public addCredentialToHeaders( public addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders {
credentialKey: string, const value = this.lookupCredential(credentialKey);
headerName: string, return value
headers: HttpHeaders, ? headers.set(headerName, (prefix ?? '') + value)
prefix?: string, : headers;
): HttpHeaders { }
const value = this.lookupCredential(credentialKey);
return value ? headers.set(headerName, (prefix ?? '') + value) : headers;
}
public addCredentialToQuery( public addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams {
credentialKey: string, const value = this.lookupCredential(credentialKey);
paramName: string, return value
query: HttpParams, ? query.set(paramName, value)
): HttpParams { : query;
const value = this.lookupCredential(credentialKey); }
return value ? query.set(paramName, value) : query;
}
private defaultEncodeParam(param: Param): string { private defaultEncodeParam(param: Param): string {
// This implementation exists as fallback for missing configuration // This implementation exists as fallback for missing configuration
// and for backwards compatibility to older typescript-angular generator versions. // and for backwards compatibility to older typescript-angular generator versions.
// It only works for the 'simple' parameter style. // It only works for the 'simple' parameter style.
// Date-handling only works for the 'date-time' format. // Date-handling only works for the 'date-time' format.
// All other styles and Date-formats are probably handled incorrectly. // All other styles and Date-formats are probably handled incorrectly.
// //
// But: if that's all you need (i.e.: the most common use-case): no need for customization! // But: if that's all you need (i.e.: the most common use-case): no need for customization!
const value = const value = param.dataFormat === 'date-time' && param.value instanceof Date
param.dataFormat === 'date-time' && param.value instanceof Date ? (param.value as Date).toISOString()
? (param.value as Date).toISOString() : param.value;
: param.value;
return encodeURIComponent(String(value)); return encodeURIComponent(String(value));
} }
} }
+12 -12
View File
@@ -5,16 +5,16 @@ import { HttpParameterCodec } from '@angular/common/http';
* Workaround for https://github.com/angular/angular/issues/18261 * Workaround for https://github.com/angular/angular/issues/18261
*/ */
export class CustomHttpParameterCodec implements HttpParameterCodec { export class CustomHttpParameterCodec implements HttpParameterCodec {
encodeKey(k: string): string { encodeKey(k: string): string {
return encodeURIComponent(k); return encodeURIComponent(k);
} }
encodeValue(v: string): string { encodeValue(v: string): string {
return encodeURIComponent(v); return encodeURIComponent(v);
} }
decodeKey(k: string): string { decodeKey(k: string): string {
return decodeURIComponent(k); return decodeURIComponent(k);
} }
decodeValue(v: string): string { decodeValue(v: string): string {
return decodeURIComponent(v); return decodeURIComponent(v);
} }
} }
+8 -6
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,9 +9,11 @@
*/ */
import { AccessToken } from './accessToken'; import { AccessToken } from './accessToken';
export interface AccessResponse {
/** export interface AccessResponse {
* The access token issued upon successful authentication. /**
*/ * The access token issued upon successful authentication.
access_token: AccessToken; */
access_token: AccessToken;
} }
+43 -39
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -10,42 +10,46 @@
import { TokenType } from './tokenType'; import { TokenType } from './tokenType';
import { UserRole } from './userRole'; import { UserRole } from './userRole';
export interface AccessToken {
/** export interface AccessToken {
* The unique identifier of the real account associated with this token. /**
*/ * The unique identifier of the real account associated with this token.
real_account_id: string; */
/** real_account_id: string;
* The timestamp indicating when the token will expire. /**
*/ * The timestamp indicating when the token will expire.
expires_at: string; */
/** expires_at: string;
* The epoch value for the token. Used for versioning of tokens. /**
*/ * The epoch value for the token. Used for versioning of tokens.
epoch?: number; */
/** epoch?: number;
* The type of the token, which is always ACCESS_TOKEN for this class. /**
*/ * The type of the token, which is always ACCESS_TOKEN for this class.
token_type?: TokenType; */
/** token_type?: TokenType;
* A unique fingerprint of the user, used for additional security checks. /**
*/ * A unique fingerprint of the user, used for additional security checks.
user_fingerprint_hash: string; */
/** user_fingerprint_hash: string;
* The unique identifier of the effective account associated with this access token. This may differ from the real account ID due to account impersonation. /**
*/ * The unique identifier of the effective account associated with this access token. This may differ from the real account ID due to account impersonation.
effective_account_id: string; */
/** effective_account_id: string;
* The specific role this access token grants within its organization. /**
*/ * The specific role this access token grants within its organization.
effective_role?: UserRole; */
/** effective_role?: UserRole;
* The unique identifier of the organization associated with this access token. /**
*/ * The unique identifier of the organization associated with this access token.
effective_organization_id: string; */
/** effective_organization_id: string;
* The raw string representation of the access token. This is the actual token that can be used for authentication and authorization purposes. /**
*/ * The raw string representation of the access token. This is the actual token that can be used for authentication and authorization purposes.
raw_token: string; */
raw_token: string;
} }
export namespace AccessToken {} export namespace AccessToken {
}
+8 -6
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,9 +9,11 @@
*/ */
import { AccountProfile } from './accountProfile'; import { AccountProfile } from './accountProfile';
export interface AccountPage {
items: Array<AccountProfile>; export interface AccountPage {
total: number; items: Array<AccountProfile>;
page: number; total: number;
page_size: number; page: number;
page_size: number;
} }
+18 -14
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,17 +9,21 @@
*/ */
import { UserRole } from './userRole'; import { UserRole } from './userRole';
export interface AccountProfile {
id: string; export interface AccountProfile {
email: string; id: string;
name: string; email: string;
role: UserRole; name: string;
organization_id: string; role: UserRole;
organization_name: string; organization_id: string;
deleted: boolean; organization_name: string;
activated: boolean; deleted: boolean;
is_current?: boolean; activated: boolean;
is_real_account?: boolean; is_current?: boolean;
is_impersonating?: boolean; is_real_account?: boolean;
is_impersonating?: boolean;
} }
export namespace AccountProfile {} export namespace AccountProfile {
}
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,9 +9,11 @@
*/ */
import { PatentEntry } from './patentEntry'; import { PatentEntry } from './patentEntry';
export interface AllPatentsResponse {
total: number; export interface AllPatentsResponse {
page: number; total: number;
size: number; page: number;
patents: Array<PatentEntry>; size: number;
patents: Array<PatentEntry>;
} }
+21 -19
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -15,25 +15,27 @@ import { AuthorIds } from './authorIds';
import { AuthorSummaryStats } from './authorSummaryStats'; import { AuthorSummaryStats } from './authorSummaryStats';
import { WorkTopic } from './workTopic'; import { WorkTopic } from './workTopic';
/** /**
* A person who creates scholarly works * A person who creates scholarly works
*/ */
export interface Author { export interface Author {
id?: string | null; id?: string | null;
orcid?: string | null; orcid?: string | null;
display_name?: string | null; display_name?: string | null;
display_name_alternatives?: Array<string> | null; display_name_alternatives?: Array<string> | null;
longest_name?: string | null; longest_name?: string | null;
parsed_longest_name?: AuthorParsedLongestName | null; parsed_longest_name?: AuthorParsedLongestName | null;
works_count?: number | null; works_count?: number | null;
cited_by_count?: number | null; cited_by_count?: number | null;
summary_stats?: AuthorSummaryStats | null; summary_stats?: AuthorSummaryStats | null;
affiliations?: Array<AuthorAffiliationsInner> | null; affiliations?: Array<AuthorAffiliationsInner> | null;
last_known_institutions?: Array<DehydratedInstitution> | null; last_known_institutions?: Array<DehydratedInstitution> | null;
topics?: Array<WorkTopic> | null; topics?: Array<WorkTopic> | null;
counts_by_year?: Array<AuthorCountsByYearInner> | null; counts_by_year?: Array<AuthorCountsByYearInner> | null;
ids?: AuthorIds | null; ids?: AuthorIds | null;
works_api_url?: string | null; works_api_url?: string | null;
created_date?: string | null; created_date?: string | null;
updated_date?: string | null; updated_date?: string | null;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,10 +9,12 @@
*/ */
import { DehydratedInstitution } from './dehydratedInstitution'; import { DehydratedInstitution } from './dehydratedInstitution';
/** /**
* AuthorAffiliationsInner * AuthorAffiliationsInner
*/ */
export interface AuthorAffiliationsInner { export interface AuthorAffiliationsInner {
institution?: DehydratedInstitution | null; institution?: DehydratedInstitution | null;
years?: Array<number> | null; years?: Array<number> | null;
} }
@@ -1,18 +1,20 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* AuthorCountsByYearInner * AuthorCountsByYearInner
*/ */
export interface AuthorCountsByYearInner { export interface AuthorCountsByYearInner {
year?: number | null; year?: number | null;
works_count?: number | null; works_count?: number | null;
cited_by_count?: number | null; cited_by_count?: number | null;
} }
+7 -5
View File
@@ -1,18 +1,20 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* External identifiers: * External identifiers:
*/ */
export interface AuthorIds { export interface AuthorIds {
openalex?: string | null; openalex?: string | null;
orcid?: string | null; orcid?: string | null;
scopus?: string | null; scopus?: string | null;
} }
+19 -15
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,18 +9,22 @@
*/ */
import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType'; import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType';
export interface AuthorNetworkNode {
/** export interface AuthorNetworkNode {
* 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. /**
*/ * 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; */
/** raw_id: string;
* The display name of the node. /**
*/ * The display name of the node.
display_name: string; */
/** display_name: string;
* The category of the node, either \'author\', \'institution\', or \'work\'. /**
*/ * The category of the node, either \'author\', \'institution\', or \'work\'.
category: CollaborationNetworkNodeType; */
category: CollaborationNetworkNodeType;
} }
export namespace AuthorNetworkNode {} export namespace AuthorNetworkNode {
}
@@ -1,20 +1,22 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* The longest name parsed into its component parts. * The longest name parsed into its component parts.
*/ */
export interface AuthorParsedLongestName { export interface AuthorParsedLongestName {
first?: string | null; first?: string | null;
middle?: string | null; middle?: string | null;
last?: string | null; last?: string | null;
suffix?: string | null; suffix?: string | null;
nickname?: string | null; nickname?: string | null;
} }
@@ -1,16 +1,18 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface AuthorPositionCount {
first?: number; export interface AuthorPositionCount {
middle?: number; first?: number;
last?: number; middle?: number;
unknown?: number; last?: number;
unknown?: number;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,11 +9,13 @@
*/ */
import { Model2YrMeanCitedness } from './model2YrMeanCitedness'; import { Model2YrMeanCitedness } from './model2YrMeanCitedness';
/** /**
* Citation metrics: * Citation metrics:
*/ */
export interface AuthorSummaryStats { export interface AuthorSummaryStats {
'2yr_mean_citedness'?: Model2YrMeanCitedness | null; '2yr_mean_citedness'?: Model2YrMeanCitedness | null;
h_index?: number | null; h_index?: number | null;
i10_index?: number | null; i10_index?: number | null;
} }
@@ -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 { SpecificWorkPurpose } from './specificWorkPurpose';
/**
* Represents the purposes of an author, including their ID and a list of specific work purposes.
*/
export interface AuthorWorkPurposes {
/**
* The raw OpenAlex author id.
*/
raw_oa_author_id: string;
/**
* The total number of works for the author.
*/
total?: number;
/**
* The list of specific work purposes.
*/
purposes?: Array<SpecificWorkPurpose>;
}
@@ -1,24 +1,26 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface AuthorsFilterProperties {
/** export interface AuthorsFilterProperties {
* The list of raw institution IDs to include in the collaboration network. If empty, all institutions will be included. /**
*/ * The list of raw institution IDs to include in the collaboration network. If empty, all institutions will be included.
allowed_institutions?: Array<string>; */
/** allowed_institutions?: Array<string>;
* The minimum number of collaborations required for an author to be included in the collaboration network. /**
*/ * The minimum number of collaborations required for an author to be included in the collaboration network.
min_collaborations?: number; */
/** min_collaborations?: number;
* The maximum number of collaborations allowed for an author to be included in the collaboration network. /**
*/ * The maximum number of collaborations allowed for an author to be included in the collaboration network.
max_collaborations?: number; */
max_collaborations?: number;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -11,11 +11,13 @@ import { Meta } from './meta';
import { Author } from './author'; import { Author } from './author';
import { GroupByResult } from './groupByResult'; import { GroupByResult } from './groupByResult';
/** /**
* AuthorsListResponse * AuthorsListResponse
*/ */
export interface AuthorsListResponse { export interface AuthorsListResponse {
meta?: Meta | null; meta?: Meta | null;
results?: Array<Author> | null; results?: Array<Author> | null;
group_by?: Array<GroupByResult> | null; group_by?: Array<GroupByResult> | null;
} }
+11 -9
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -10,15 +10,17 @@
import { DehydratedInstitution } from './dehydratedInstitution'; import { DehydratedInstitution } from './dehydratedInstitution';
import { DehydratedAuthor } from './dehydratedAuthor'; import { DehydratedAuthor } from './dehydratedAuthor';
/** /**
* Author and their affiliation for a work * Author and their affiliation for a work
*/ */
export interface Authorship { export interface Authorship {
author_position?: string | null; author_position?: string | null;
author?: DehydratedAuthor | null; author?: DehydratedAuthor | null;
institutions?: Array<DehydratedInstitution> | null; institutions?: Array<DehydratedInstitution> | null;
countries?: Array<string> | null; countries?: Array<string> | null;
is_corresponding?: boolean | null; is_corresponding?: boolean | null;
raw_author_name?: string | null; raw_author_name?: string | null;
raw_affiliation_strings?: Array<string> | null; raw_affiliation_strings?: Array<string> | null;
} }
@@ -1,23 +1,26 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface AutocompleteLocationItem {
id: string; export interface AutocompleteLocationItem {
display_name: string; id: string;
code: string; display_name: string;
type: AutocompleteLocationItem.TypeEnum; code: string;
type: AutocompleteLocationItem.TypeEnum;
} }
export namespace AutocompleteLocationItem { export namespace AutocompleteLocationItem {
export const TypeEnum = { export const TypeEnum = {
Country: 'country', Country: 'country',
Continent: 'continent', Continent: 'continent'
} as const; } as const;
export type TypeEnum = (typeof TypeEnum)[keyof typeof TypeEnum]; export type TypeEnum = typeof TypeEnum[keyof typeof TypeEnum];
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -10,10 +10,12 @@
import { AutocompleteResponseMeta } from './autocompleteResponseMeta'; import { AutocompleteResponseMeta } from './autocompleteResponseMeta';
import { AutocompleteResponseResultsInner } from './autocompleteResponseResultsInner'; import { AutocompleteResponseResultsInner } from './autocompleteResponseResultsInner';
/** /**
* AutocompleteResponse * AutocompleteResponse
*/ */
export interface AutocompleteResponse { export interface AutocompleteResponse {
meta?: AutocompleteResponseMeta | null; meta?: AutocompleteResponseMeta | null;
results?: Array<AutocompleteResponseResultsInner> | null; results?: Array<AutocompleteResponseResultsInner> | null;
} }
@@ -1,17 +1,19 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* AutocompleteResponseMeta * AutocompleteResponseMeta
*/ */
export interface AutocompleteResponseMeta { export interface AutocompleteResponseMeta {
count?: number | null; count?: number | null;
db_response_time_ms?: number | null; db_response_time_ms?: number | null;
} }
@@ -1,22 +1,24 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* AutocompleteResponseResultsInner * AutocompleteResponseResultsInner
*/ */
export interface AutocompleteResponseResultsInner { export interface AutocompleteResponseResultsInner {
id?: string | null; id?: string | null;
display_name?: string | null; display_name?: string | null;
hint?: string | null; hint?: string | null;
cited_by_count?: number | null; cited_by_count?: number | null;
works_count?: number | null; works_count?: number | null;
entity_type?: string | null; entity_type?: string | null;
external_id?: string | null; external_id?: string | null;
} }
+10 -8
View File
@@ -1,21 +1,23 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Award * Award
*/ */
export interface Award { export interface Award {
id?: string | null; id?: string | null;
display_name?: string | null; display_name?: string | null;
funder_award_id?: string | null; funder_award_id?: string | null;
funder_id?: string | null; funder_id?: string | null;
funder_display_name?: string | null; funder_display_name?: string | null;
doi?: string | null; doi?: string | null;
} }
+12 -10
View File
@@ -1,20 +1,22 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface BodyChangePassword {
/** export interface BodyChangePassword {
* Current password /**
*/ * Current password
current_password: string; */
/** current_password: string;
* New password /**
*/ * New password
new_password: string; */
new_password: string;
} }
+12 -10
View File
@@ -1,20 +1,22 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface BodyGetAccessToken {
/** export interface BodyGetAccessToken {
* User\'s account ID /**
*/ * User\'s account ID
real_account_id: string; */
/** real_account_id: string;
* Effective account ID for the access token /**
*/ * Effective account ID for the access token
effective_account_id: string; */
effective_account_id: string;
} }
+12 -10
View File
@@ -1,20 +1,22 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface BodyLogin {
/** export interface BodyLogin {
* User\'s account ID /**
*/ * User\'s account ID
account_id: string; */
/** account_id: string;
* One-time code sent to user\'s email /**
*/ * One-time code sent to user\'s email
email_code: string; */
email_code: string;
} }
+12 -10
View File
@@ -1,20 +1,22 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface BodyRequestOtk {
/** export interface BodyRequestOtk {
* User\'s email address /**
*/ * User\'s email address
email: string; */
/** email: string;
* User\'s password /**
*/ * User\'s password
password: string; */
password: string;
} }
@@ -1,16 +1,18 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface BodyRequestPasswordReset {
/** export interface BodyRequestPasswordReset {
* User's email address /**
*/ * User\'s email address
email: string; */
email: string;
} }
+12 -10
View File
@@ -1,20 +1,22 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface BodyResetPassword {
/** export interface BodyResetPassword {
* Password reset token from the reset link /**
*/ * Password reset token from the reset link
reset_token: string; */
/** reset_token: string;
* New password /**
*/ * New password
new_password: string; */
new_password: string;
} }
+32 -30
View File
@@ -1,40 +1,42 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface BundProject {
funding_code?: string | null; export interface BundProject {
department?: string | null; funding_code?: string | null;
department_fullname?: string | null; department?: string | null;
referat?: string | null; department_fullname?: string | null;
project_sponsor?: string | null; referat?: string | null;
project_sponsor_fullname?: string | null; project_sponsor?: string | null;
work_unit?: string | null; project_sponsor_fullname?: string | null;
recipient?: string | null; work_unit?: string | null;
municipal_code?: string | null; recipient?: string | null;
municipality?: string | null; municipal_code?: string | null;
place?: string | null; municipality?: string | null;
state?: string | null; place?: string | null;
country?: string | null; state?: string | null;
implementing_agency?: string | null; country?: string | null;
topic?: string | null; implementing_agency?: string | null;
performance_plan_system?: string | null; topic?: string | null;
performance_plan_system_text?: string | null; performance_plan_system?: string | null;
funding_start?: string | null; performance_plan_system_text?: string | null;
funding_end?: string | null; funding_start?: string | null;
grant_amount?: number | null; funding_end?: string | null;
funding_profile?: string | null; grant_amount?: number | null;
joint_project?: string | null; funding_profile?: string | null;
funding_type?: string | null; joint_project?: string | null;
publication_date?: string | null; funding_type?: string | null;
unix_timestamp?: number | null; publication_date?: string | null;
date?: string | null; unix_timestamp?: number | null;
new?: boolean | null; date?: string | null;
duration?: string | null; 'new'?: boolean | null;
duration?: string | null;
} }
+44 -42
View File
@@ -1,55 +1,57 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Clean summary model for a Bund (federal) project, consolidating all fields into semantic English names with proper native types. * Clean summary model for a Bund (federal) project, consolidating all fields into semantic English names with proper native types.
*/ */
export interface BundProjectDetails { export interface BundProjectDetails {
/** /**
* The ID of the Bund project * The ID of the Bund project
*/ */
id: string; id: string;
funding_reference?: string | null; funding_reference?: string | null;
title?: string | null; title?: string | null;
description?: string | null; description?: string | null;
joint_project?: string | null; joint_project?: string | null;
funding_type?: string | null; funding_type?: string | null;
funding_profile?: string | null; funding_profile?: string | null;
funding_amount?: number | null; funding_amount?: number | null;
funding_start_date?: string | null; funding_start_date?: string | null;
funding_end_date?: string | null; funding_end_date?: string | null;
duration?: string | null; duration?: string | null;
performance_plan_code?: string | null; performance_plan_code?: string | null;
performance_plan_fullname?: string | null; performance_plan_fullname?: string | null;
executing_agency?: string | null; executing_agency?: string | null;
funding_recipient?: string | null; funding_recipient?: string | null;
project_agency?: string | null; project_agency?: string | null;
project_agency_fullname?: string | null; project_agency_fullname?: string | null;
department?: string | null; department?: string | null;
department_fullname?: string | null; department_fullname?: string | null;
division?: string | null; division?: string | null;
location?: string | null; location?: string | null;
municipality?: string | null; municipality?: string | null;
state?: string | null; state?: string | null;
country?: string | null; country?: string | null;
municipality_code?: string | null; municipality_code?: string | null;
publication_date?: string | null; publication_date?: string | null;
is_new?: boolean | null; is_new?: boolean | null;
record_date?: string | null; record_date?: string | null;
unix_timestamp?: number | null; unix_timestamp?: number | null;
/** /**
* All persons associated with the Bund project (from nested Arb object) * All persons associated with the Bund project (from nested Arb object)
*/ */
associated_persons?: Array<string>; associated_persons?: Array<string>;
/** /**
* All institutions associated with the Bund project * All institutions associated with the Bund project
*/ */
institutions?: Array<string>; institutions?: Array<string>;
} }
+20 -18
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,21 +9,23 @@
*/ */
import { BundProject } from './bundProject'; import { BundProject } from './bundProject';
export interface BundProjectPage {
/** export interface BundProjectPage {
* The current page number. /**
*/ * The current page number.
page?: number; */
/** page?: number;
* The requested page size. /**
*/ * The requested page size.
size?: number; */
/** size?: number;
* The total number of items. /**
*/ * The total number of items.
total?: number; */
/** total?: number;
* The bund projects on this page. /**
*/ * The bund projects on this page.
elements?: Array<BundProject>; */
elements?: Array<BundProject>;
} }
+24 -22
View File
@@ -1,32 +1,34 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface CareerMetrics {
first_publication_year?: number | null; export interface CareerMetrics {
last_publication_year?: number | null; first_publication_year?: number | null;
career_age?: number | null; last_publication_year?: number | null;
career_span?: number | null; career_age?: number | null;
career_stage?: string | null; career_span?: number | null;
/** career_stage?: string | null;
* Number of distinct years with at least one publication. /**
*/ * Number of distinct years with at least one publication.
active_years?: number; */
/** active_years?: number;
* Number of publications used for career metrics. /**
*/ * Number of publications used for career metrics.
publication_count?: number; */
publications_per_active_year?: number | null; publication_count?: number;
publications_per_career_year?: number | null; publications_per_active_year?: number | null;
years_since_last_publication?: number | null; publications_per_career_year?: number | null;
/** years_since_last_publication?: number | null;
* True if publication years look suspicious. /**
*/ * True if publication years look suspicious.
has_suspicious_publication_years?: boolean; */
has_suspicious_publication_years?: boolean;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -13,29 +13,31 @@ import { CollaborationNetworkEdge } from './collaborationNetworkEdge';
import { InstitutionNetworkNode } from './institutionNetworkNode'; import { InstitutionNetworkNode } from './institutionNetworkNode';
import { AuthorNetworkNode } from './authorNetworkNode'; import { AuthorNetworkNode } from './authorNetworkNode';
export interface CollaborationNetwork {
/** export interface CollaborationNetwork {
* The raw person ID of the person whose collaboration network this is. /**
*/ * The raw person ID of the person whose collaboration network this is.
raw_person_id: string; */
/** raw_person_id: string;
* The work nodes in the collaboration network. /**
*/ * The work nodes in the collaboration network.
work_nodes: Array<WorkNetworkNode>; */
/** work_nodes: Array<WorkNetworkNode>;
* The author nodes in the collaboration network. /**
*/ * The author nodes in the collaboration network.
author_nodes: Array<AuthorNetworkNode>; */
/** author_nodes: Array<AuthorNetworkNode>;
* The institution nodes in the collaboration network. /**
*/ * The institution nodes in the collaboration network.
institution_nodes: Array<InstitutionNetworkNode>; */
/** institution_nodes: Array<InstitutionNetworkNode>;
* The collaboration edges in the collaboration network. A collaboration edge represents a collaboration between two nodes. A -> W and A -> I /**
*/ * The collaboration edges in the collaboration network. A collaboration edge represents a collaboration between two nodes. A -> W and A -> I
collaboration_edges: Array<CollaborationNetworkEdge>; */
/** collaboration_edges: Array<CollaborationNetworkEdge>;
* The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network. /**
*/ * The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network.
filter_information: FilterInformation; */
filter_information: FilterInformation;
} }
@@ -1,20 +1,22 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface CollaborationNetworkEdge {
/** export interface CollaborationNetworkEdge {
* The raw ID of the source node. /**
*/ * The raw ID of the source node.
raw_source_id: string; */
/** raw_source_id: string;
* The raw ID of the target node. /**
*/ * The raw ID of the target node.
raw_target_id: string; */
raw_target_id: string;
} }
@@ -1,17 +1,18 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export const CollaborationNetworkNodeType = { export const CollaborationNetworkNodeType = {
Author: 'author', Author: 'author',
Institution: 'institution', Institution: 'institution',
Work: 'work', Work: 'work'
} as const; } as const;
export type CollaborationNetworkNodeType = export type CollaborationNetworkNodeType = typeof CollaborationNetworkNodeType[keyof typeof CollaborationNetworkNodeType];
(typeof CollaborationNetworkNodeType)[keyof typeof CollaborationNetworkNodeType];
+16 -14
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,17 +9,19 @@
*/ */
import { MatchedOfficer } from './matchedOfficer'; import { MatchedOfficer } from './matchedOfficer';
export interface CompanyConnection {
company_number?: string | null; export interface CompanyConnection {
company_name?: string | null; company_number?: string | null;
company_status?: string | null; company_name?: string | null;
register_art?: string | null; company_status?: string | null;
register_nummer?: string | null; register_art?: string | null;
native_company_number?: string | null; register_nummer?: string | null;
registrar?: string | null; native_company_number?: string | null;
registered_office?: string | null; registrar?: string | null;
registered_address?: string | null; registered_office?: string | null;
retrieved_at?: string | null; registered_address?: string | null;
matched_officers?: Array<MatchedOfficer>; retrieved_at?: string | null;
officers?: Array<MatchedOfficer>; matched_officers?: Array<MatchedOfficer>;
officers?: Array<MatchedOfficer>;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,15 +9,17 @@
*/ */
import { CompanyConnection } from './companyConnection'; import { CompanyConnection } from './companyConnection';
export interface CompanyConnectionsResponse {
author_id: string; export interface CompanyConnectionsResponse {
display_name?: string | null; author_id: string;
is_ude_author: boolean; display_name?: string | null;
institution_scope?: string | null; is_ude_author: boolean;
matching_institutions?: Array<string>; institution_scope?: string | null;
matching_method?: string | null; matching_institutions?: Array<string>;
company_count: number; matching_method?: string | null;
has_more_results: boolean; company_count: number;
common_name_warning: boolean; has_more_results: boolean;
connections?: Array<CompanyConnection>; common_name_warning: boolean;
connections?: Array<CompanyConnection>;
} }
+29 -27
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -10,30 +10,32 @@
import { Keywords } from './keywords'; import { Keywords } from './keywords';
import { Topics } from './topics'; import { Topics } from './topics';
export interface CordisEuProject {
/** export interface CordisEuProject {
* Unique identifier for the project, typically the CORDIS ID /**
*/ * Unique identifier for the project, typically the CORDIS ID
id: string; */
rcn?: string | null; id: string;
acronym?: string | null; rcn?: string | null;
title?: string | null; acronym?: string | null;
objective?: string | null; title?: string | null;
frameworkProgramme?: string | null; objective?: string | null;
fundingScheme?: string | null; frameworkProgramme?: string | null;
legalBasis?: string | null; fundingScheme?: string | null;
masterCall?: string | null; legalBasis?: string | null;
subCall?: string | null; masterCall?: string | null;
topics?: Topics | null; subCall?: string | null;
nature?: string | null; topics?: Topics | null;
status?: string | null; nature?: string | null;
ecMaxContribution?: number | null; status?: string | null;
totalCost?: number | null; ecMaxContribution?: number | null;
startDate?: string | null; totalCost?: number | null;
endDate?: string | null; startDate?: string | null;
ecSignatureDate?: string | null; endDate?: string | null;
contentUpdateDate?: string | null; ecSignatureDate?: string | null;
grantDoi?: string | null; contentUpdateDate?: string | null;
humanValidated?: boolean | null; grantDoi?: string | null;
keywords?: Keywords | null; humanValidated?: boolean | null;
keywords?: Keywords | null;
} }
+20 -18
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,21 +9,23 @@
*/ */
import { CordisEuProject } from './cordisEuProject'; import { CordisEuProject } from './cordisEuProject';
export interface CordisEuProjectPage {
/** export interface CordisEuProjectPage {
* The current page number. /**
*/ * The current page number.
page?: number; */
/** page?: number;
* The requested page size. /**
*/ * The requested page size.
size?: number; */
/** size?: number;
* The total number of items. /**
*/ * The total number of items.
total?: number; */
/** total?: number;
* The CORDIS EU projects on this page. /**
*/ * The CORDIS EU projects on this page.
elements?: Array<CordisEuProject>; */
elements?: Array<CordisEuProject>;
} }
+5 -2
View File
@@ -1,14 +1,17 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Cost of this request in USD * Cost of this request in USD
*/ */
export interface CostUsd {} export interface CostUsd {
}
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,12 +9,16 @@
*/ */
import { UserRole } from './userRole'; import { UserRole } from './userRole';
export interface CreateAccountRequest {
email: string; export interface CreateAccountRequest {
name: string; email: string;
role?: UserRole; name: string;
organization_id: string; role?: UserRole;
password: string; organization_id: string;
openalex_person_id?: string | null; password: string;
openalex_person_id?: string | null;
} }
export namespace CreateAccountRequest {} export namespace CreateAccountRequest {
}
@@ -1,14 +1,16 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface CreateOrganizationRequest {
name: string; export interface CreateOrganizationRequest {
other_inst_id?: string | null; name: string;
other_inst_id?: string | null;
} }
+23 -21
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -16,24 +16,26 @@ import { AuthorIds } from './authorIds';
import { AuthorSummaryStats } from './authorSummaryStats'; import { AuthorSummaryStats } from './authorSummaryStats';
import { WorkTopic } from './workTopic'; import { WorkTopic } from './workTopic';
export interface CustomAuthor {
id?: string | null; export interface CustomAuthor {
orcid?: string | null; id?: string | null;
display_name?: string | null; orcid?: string | null;
display_name_alternatives?: Array<string> | null; display_name?: string | null;
longest_name?: string | null; display_name_alternatives?: Array<string> | null;
parsed_longest_name?: AuthorParsedLongestName | null; longest_name?: string | null;
works_count?: number | null; parsed_longest_name?: AuthorParsedLongestName | null;
cited_by_count?: number | null; works_count?: number | null;
summary_stats?: AuthorSummaryStats | null; cited_by_count?: number | null;
affiliations?: Array<AuthorAffiliationsInner> | null; summary_stats?: AuthorSummaryStats | null;
last_known_institutions?: Array<DehydratedInstitution> | null; affiliations?: Array<AuthorAffiliationsInner> | null;
topics?: Array<WorkTopic> | null; last_known_institutions?: Array<DehydratedInstitution> | null;
counts_by_year?: Array<AuthorCountsByYearInner> | null; topics?: Array<WorkTopic> | null;
ids?: AuthorIds | null; counts_by_year?: Array<AuthorCountsByYearInner> | null;
works_api_url?: string | null; ids?: AuthorIds | null;
created_date?: string | null; works_api_url?: string | null;
updated_date?: string | null; created_date?: string | null;
relevance_rating?: string | null; updated_date?: string | null;
career_metrics?: CareerMetrics | null; relevance_rating?: string | null;
career_metrics?: CareerMetrics | null;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -11,9 +11,11 @@ import { Meta } from './meta';
import { CustomAuthor } from './customAuthor'; import { CustomAuthor } from './customAuthor';
import { GroupByResult } from './groupByResult'; import { GroupByResult } from './groupByResult';
export interface CustomAuthorsListResponse {
meta?: Meta | null; export interface CustomAuthorsListResponse {
results?: Array<CustomAuthor> | null; meta?: Meta | null;
group_by?: Array<GroupByResult> | null; results?: Array<CustomAuthor> | null;
placeholder?: CustomAuthor | null; group_by?: Array<GroupByResult> | null;
placeholder?: CustomAuthor | null;
} }
+7 -5
View File
@@ -1,18 +1,20 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* [Dehydrated Author](/api-reference/authors#the-dehydratedauthor-object) — reduced-field version used in nested contexts * [Dehydrated Author](/api-reference/authors#the-dehydratedauthor-object) — reduced-field version used in nested contexts
*/ */
export interface DehydratedAuthor { export interface DehydratedAuthor {
id?: string | null; id?: string | null;
display_name?: string | null; display_name?: string | null;
orcid?: string | null; orcid?: string | null;
} }
+7 -5
View File
@@ -1,18 +1,20 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* [Dehydrated Funder](/api-reference/funders) — reduced-field version used in nested contexts * [Dehydrated Funder](/api-reference/funders) — reduced-field version used in nested contexts
*/ */
export interface DehydratedFunder { export interface DehydratedFunder {
id?: string | null; id?: string | null;
display_name?: string | null; display_name?: string | null;
ror?: string | null; ror?: string | null;
} }
@@ -1,21 +1,23 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* [Dehydrated Institution](/api-reference/institutions#the-dehydratedinstitution-object) — reduced-field version used in nested contexts * [Dehydrated Institution](/api-reference/institutions#the-dehydratedinstitution-object) — reduced-field version used in nested contexts
*/ */
export interface DehydratedInstitution { export interface DehydratedInstitution {
id?: string | null; id?: string | null;
display_name?: string | null; display_name?: string | null;
ror?: string | null; ror?: string | null;
country_code?: string | null; country_code?: string | null;
type?: string | null; type?: string | null;
lineage?: Array<string> | null; lineage?: Array<string> | null;
} }
+15 -13
View File
@@ -1,26 +1,28 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* [Dehydrated Source](/api-reference/sources#the-dehydratedsource-object) — reduced-field version used in nested contexts * [Dehydrated Source](/api-reference/sources#the-dehydratedsource-object) — reduced-field version used in nested contexts
*/ */
export interface DehydratedSource { export interface DehydratedSource {
id?: string | null; id?: string | null;
display_name?: string | null; display_name?: string | null;
issn_l?: string | null; issn_l?: string | null;
issn?: Array<string> | null; issn?: Array<string> | null;
is_oa?: boolean | null; is_oa?: boolean | null;
is_in_doaj?: boolean | null; is_in_doaj?: boolean | null;
is_core?: boolean | null; is_core?: boolean | null;
host_organization?: string | null; host_organization?: string | null;
host_organization_name?: string | null; host_organization_name?: string | null;
host_organization_lineage?: Array<string> | null; host_organization_lineage?: Array<string> | null;
type?: string | null; type?: string | null;
} }
+28 -26
View File
@@ -1,39 +1,41 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Clean summary model for a DFG project, consolidating all person roles and institution references into unified lists. * Clean summary model for a DFG project, consolidating all person roles and institution references into unified lists.
*/ */
export interface DfgProjectDetails { export interface DfgProjectDetails {
/** /**
* The ID of the DFG project * The ID of the DFG project
*/ */
id: string; id: string;
link?: string | null; link?: string | null;
title?: string | null; title?: string | null;
description?: string | null; description?: string | null;
project_identifier?: string | null; project_identifier?: string | null;
funding_start_date?: string | null; funding_start_date?: string | null;
funding_end_date?: string | null; funding_end_date?: string | null;
dfg_procedure?: string | null; dfg_procedure?: string | null;
subject_area?: string | null; subject_area?: string | null;
funding_type?: string | null; funding_type?: string | null;
international_reference?: string | null; international_reference?: string | null;
website?: string | null; website?: string | null;
/** /**
* All persons associated with the DFG project (any role) * All persons associated with the DFG project (any role)
*/ */
associated_persons?: Array<string>; associated_persons?: Array<string>;
/** /**
* All institutions associated with the DFG project * All institutions associated with the DFG project
*/ */
institutions?: Array<string>; institutions?: Array<string>;
subproject_of?: string | null; subproject_of?: string | null;
} }
+20 -18
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,21 +9,23 @@
*/ */
import { DfgProjectSummary } from './dfgProjectSummary'; import { DfgProjectSummary } from './dfgProjectSummary';
export interface DfgProjectPage {
/** export interface DfgProjectPage {
* The current page number. /**
*/ * The current page number.
page?: number; */
/** page?: number;
* The requested page size. /**
*/ * The requested page size.
size?: number; */
/** size?: number;
* The total number of items. /**
*/ * The total number of items.
total?: number; */
/** total?: number;
* The DFG projects on this page. /**
*/ * The DFG projects on this page.
elements?: Array<DfgProjectSummary>; */
elements?: Array<DfgProjectSummary>;
} }
+17 -15
View File
@@ -1,25 +1,27 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface DfgProjectSummary {
/** export interface DfgProjectSummary {
* The unique identifier of the DFG project. /**
*/ * The unique identifier of the DFG project.
id: string; */
link?: string | null; id: string;
title?: string | null; link?: string | null;
professional_classification?: string | null; title?: string | null;
funding_start?: string | null; professional_classification?: string | null;
funding_end?: string | null; funding_start?: string | null;
/** funding_end?: string | null;
* The names of the researchers involved in the DFG project. /**
*/ * The names of the researchers involved in the DFG project.
names?: Array<string>; */
names?: Array<string>;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,15 +9,17 @@
*/ */
import { EuProjectData } from './euProjectData'; import { EuProjectData } from './euProjectData';
/** /**
* Response model for EU Cordis project endpoints. * Response model for EU Cordis project endpoints.
*/ */
export interface EuCordisProjectResponse { export interface EuCordisProjectResponse {
/** /**
* Indicates if the request was successful * Indicates if the request was successful
*/ */
success: boolean; success: boolean;
project_type?: string | null; project_type?: string | null;
eu_project_data?: EuProjectData | null; eu_project_data?: EuProjectData | null;
error?: string | null; error?: string | null;
} }
@@ -1,25 +1,27 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
export interface EuOrganizationProjectSummary {
/** export interface EuOrganizationProjectSummary {
* The unique identifier of the organization. /**
*/ * The unique identifier of the organization.
organization_id: string; */
/** organization_id: string;
* The unique identifier of the project. /**
*/ * The unique identifier of the project.
project_id: string; */
title?: string | null; project_id: string;
start_date?: string | null; title?: string | null;
end_date?: string | null; start_date?: string | null;
acronym?: string | null; end_date?: string | null;
ec_contribution?: number | null; acronym?: string | null;
ec_contribution?: number | null;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,21 +9,23 @@
*/ */
import { EuOrganizationProjectSummary } from './euOrganizationProjectSummary'; import { EuOrganizationProjectSummary } from './euOrganizationProjectSummary';
export interface EuOrganizationProjectSummaryPage {
/** export interface EuOrganizationProjectSummaryPage {
* The current page number. /**
*/ * The current page number.
page?: number; */
/** page?: number;
* The requested page size. /**
*/ * The requested page size.
size?: number; */
/** size?: number;
* The total number of items. /**
*/ * The total number of items.
total?: number; */
/** total?: number;
* The organization project summaries on this page. /**
*/ * The organization project summaries on this page.
elements?: Array<EuOrganizationProjectSummary>; */
elements?: Array<EuOrganizationProjectSummary>;
} }
+43 -41
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -23,47 +23,49 @@ import { Fp7ReportSummary } from './fp7ReportSummary';
import { HEUReportSummary } from './hEUReportSummary'; import { HEUReportSummary } from './hEUReportSummary';
import { HEUProjectDetails } from './hEUProjectDetails'; import { HEUProjectDetails } from './hEUProjectDetails';
/** /**
* The project data * The project data
*/ */
export interface EuProjectData { export interface EuProjectData {
acronym?: string; acronym?: string;
contentUpdateDate?: string; contentUpdateDate?: string;
ecMaxContribution?: number; ecMaxContribution?: number;
ecSignatureDate?: string; ecSignatureDate?: string;
endDate?: string; endDate?: string;
frameworkProgramme?: string; frameworkProgramme?: string;
fundingScheme?: string; fundingScheme?: string;
grantDoi?: string; grantDoi?: string;
humanValidated?: boolean; humanValidated?: boolean;
id?: string; id?: string;
keywords?: string; keywords?: string;
legalBasis?: string; legalBasis?: string;
masterCall?: string; masterCall?: string;
nature?: string; nature?: string;
objective?: string; objective?: string;
rcn?: string; rcn?: string;
startDate?: string; startDate?: string;
status?: string; status?: string;
subCall?: string; subCall?: string;
title?: string; title?: string;
topics?: string; topics?: string;
totalCost?: number; totalCost?: number;
organizations?: Array<HEUOrganization>; organizations?: Array<HEUOrganization>;
publications?: Array<HEUPublication>; publications?: Array<HEUPublication>;
iprs?: Array<Fp7ProjectIPR>; iprs?: Array<Fp7ProjectIPR>;
report_summaries?: Array<Fp7ReportSummary>; report_summaries?: Array<Fp7ReportSummary>;
topicsList?: Array<HEUTopic>; topicsList?: Array<HEUTopic>;
web_links?: Array<Fp7WebLink>; web_links?: Array<Fp7WebLink>;
eurosciVoc?: Array<HEUEurosciVoc>; eurosciVoc?: Array<HEUEurosciVoc>;
legalBasisList?: Array<HEULegalBasis>; legalBasisList?: Array<HEULegalBasis>;
organizationCount?: number; organizationCount?: number;
publicationCount?: number; publicationCount?: number;
iprCount?: number; iprCount?: number;
deliverables?: Array<HEUDeliverable>; deliverables?: Array<HEUDeliverable>;
reportSummaries?: Array<HEUReportSummary>; reportSummaries?: Array<HEUReportSummary>;
webLinks?: Array<HEUWebLink>; webLinks?: Array<HEUWebLink>;
ercPrincipalInvestigators?: Array<H2020ErcPI>; ercPrincipalInvestigators?: Array<H2020ErcPI>;
deliverableCount?: number; deliverableCount?: number;
ercPiCount?: number; ercPiCount?: number;
} }
+16 -14
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,17 +9,19 @@
*/ */
import { KeywordEntryWithTopic } from './keywordEntryWithTopic'; import { KeywordEntryWithTopic } from './keywordEntryWithTopic';
export interface ExtractedKeywords {
/** export interface ExtractedKeywords {
* The extracted broad keywords from text. /**
*/ * The extracted broad keywords from text.
broad_keywords: Array<KeywordEntryWithTopic>; */
/** broad_keywords: Array<KeywordEntryWithTopic>;
* The extracted coarse-grained keywords from text. /**
*/ * The extracted coarse-grained keywords from text.
coarse_grained: Array<KeywordEntryWithTopic>; */
/** coarse_grained: Array<KeywordEntryWithTopic>;
* The extracted fine-grained keywords from text. /**
*/ * The extracted fine-grained keywords from text.
fine_grained: Array<KeywordEntryWithTopic>; */
fine_grained: Array<KeywordEntryWithTopic>;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -9,17 +9,19 @@
*/ */
import { KeywordEntry } from './keywordEntry'; import { KeywordEntry } from './keywordEntry';
export interface ExtractedKeywordsLLM {
/** export interface ExtractedKeywordsLLM {
* The extracted broad keywords from text. /**
*/ * The extracted broad keywords from text.
broad_keywords: Array<KeywordEntry>; */
/** broad_keywords: Array<KeywordEntry>;
* The extracted coarse-grained keywords from text. /**
*/ * The extracted coarse-grained keywords from text.
coarse_grained: Array<KeywordEntry>; */
/** coarse_grained: Array<KeywordEntry>;
* The extracted fine-grained keywords from text. /**
*/ * The extracted fine-grained keywords from text.
fine_grained: Array<KeywordEntry>; */
fine_grained: Array<KeywordEntry>;
} }
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -10,17 +10,19 @@
import { ExtractedKeywordsLLM } from './extractedKeywordsLLM'; import { ExtractedKeywordsLLM } from './extractedKeywordsLLM';
import { ExtractedKeywords } from './extractedKeywords'; import { ExtractedKeywords } from './extractedKeywords';
export interface ExtractedKeywordsResponse {
results_llm?: ExtractedKeywordsLLM | null; export interface ExtractedKeywordsResponse {
results?: ExtractedKeywords | null; results_llm?: ExtractedKeywordsLLM | null;
/** results?: ExtractedKeywords | null;
* The source of the input text, e.g., \'url\', \'text\', or \'keywords\'. /**
*/ * The source of the input text, e.g., \'url\', \'text\', or \'keywords\'.
source: string; */
source_url?: string | null; source: string;
/** source_url?: string | null;
* The actual content from which keywords were extracted. /**
*/ * The actual content from which keywords were extracted.
source_content: string; */
duration?: number | null; source_content: string;
duration?: number | null;
} }
+20 -18
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -10,21 +10,23 @@
import { InstitutionInformation } from './institutionInformation'; import { InstitutionInformation } from './institutionInformation';
import { WorkTopicInformation } from './workTopicInformation'; import { WorkTopicInformation } from './workTopicInformation';
export interface FilterInformation {
/** export interface FilterInformation {
* The minimum publication year of the works in the collaboration network. /**
*/ * The minimum publication year of the works in the collaboration network.
min_possible_year: number; */
/** min_possible_year: number;
* The maximum publication year of the works in the collaboration network. /**
*/ * The maximum publication year of the works in the collaboration network.
max_possible_year: number; */
/** max_possible_year: number;
* The list of institutions associated with the works in the collaboration network. /**
*/ * The list of institutions associated with the works in the collaboration network.
institutions: Array<InstitutionInformation>; */
/** institutions: Array<InstitutionInformation>;
* The list of topics associated with the works in the collaboration network. /**
*/ * The list of topics associated with the works in the collaboration network.
topics: Array<WorkTopicInformation>; */
topics: Array<WorkTopicInformation>;
} }
+10 -8
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -10,11 +10,13 @@
import { WorksFilterProperties } from './worksFilterProperties'; import { WorksFilterProperties } from './worksFilterProperties';
import { AuthorsFilterProperties } from './authorsFilterProperties'; import { AuthorsFilterProperties } from './authorsFilterProperties';
export interface FilterProperties {
/** export interface FilterProperties {
* The type of filter to apply when generating the collaboration network. Can be either \'works\' or \'authors\'. If \'works\', the filter properties in the \'works_filter_properties\' field will be used. If \'authors\', the filter properties in the \'authors_filter_properties\' field will be used. /**
*/ * The type of filter to apply when generating the collaboration network. Can be either \'works\' or \'authors\'. If \'works\', the filter properties in the \'works_filter_properties\' field will be used. If \'authors\', the filter properties in the \'authors_filter_properties\' field will be used.
filter_by?: string; */
works_filter_properties: WorksFilterProperties | null; filter_by?: string;
authors_filter_properties: AuthorsFilterProperties | null; works_filter_properties: WorksFilterProperties | null;
authors_filter_properties: AuthorsFilterProperties | null;
} }
+10 -8
View File
@@ -1,21 +1,23 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Fp7EurosciVoc * Fp7EurosciVoc
*/ */
export interface Fp7EurosciVoc { export interface Fp7EurosciVoc {
code?: string | null; code?: string | null;
description?: string | null; description?: string | null;
id?: string | null; id?: string | null;
path?: string | null; path?: string | null;
projectID?: string | null; projectID?: string | null;
title?: string | null; title?: string | null;
} }
+9 -7
View File
@@ -1,20 +1,22 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Fp7LegalBasis * Fp7LegalBasis
*/ */
export interface Fp7LegalBasis { export interface Fp7LegalBasis {
id?: string | null; id?: string | null;
legalBasis?: string | null; legalBasis?: string | null;
projectID?: string | null; projectID?: string | null;
title?: string | null; title?: string | null;
uniqueProgrammePart?: string | null; uniqueProgrammePart?: string | null;
} }
+30 -28
View File
@@ -1,41 +1,43 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Fp7Organization * Fp7Organization
*/ */
export interface Fp7Organization { export interface Fp7Organization {
SME?: boolean | null; SME?: boolean | null;
active?: boolean | null; active?: boolean | null;
activityType?: string | null; activityType?: string | null;
city?: string | null; city?: string | null;
contactForm?: string | null; contactForm?: string | null;
contentUpdateDate?: string | null; contentUpdateDate?: string | null;
country?: string | null; country?: string | null;
ecContribution?: number | null; ecContribution?: number | null;
endOfParticipation?: boolean | null; endOfParticipation?: boolean | null;
geolocation?: string | null; geolocation?: string | null;
id?: string | null; id?: string | null;
name?: string | null; name?: string | null;
netEcContribution?: number | null; netEcContribution?: number | null;
nutsCode?: string | null; nutsCode?: string | null;
order?: number | null; order?: number | null;
organisationID?: string | null; organisationID?: string | null;
organizationURL?: string | null; organizationURL?: string | null;
postCode?: string | null; postCode?: string | null;
projectAcronym?: string | null; projectAcronym?: string | null;
projectID?: string | null; projectID?: string | null;
rcn?: string | null; rcn?: string | null;
role?: string | null; role?: string | null;
shortName?: string | null; shortName?: string | null;
street?: string | null; street?: string | null;
totalCost?: number | null; totalCost?: number | null;
vatNumber?: string | null; vatNumber?: string | null;
} }
+37 -35
View File
@@ -1,7 +1,7 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
@@ -16,41 +16,43 @@ import { Fp7ProjectIPR } from './fp7ProjectIPR';
import { Fp7Organization } from './fp7Organization'; import { Fp7Organization } from './fp7Organization';
import { Fp7LegalBasis } from './fp7LegalBasis'; import { Fp7LegalBasis } from './fp7LegalBasis';
/** /**
* Comprehensive FP7 Project model combining all related entities. This model extends the base Fp7Project with all associated data. * Comprehensive FP7 Project model combining all related entities. This model extends the base Fp7Project with all associated data.
*/ */
export interface Fp7ProjectDetails { export interface Fp7ProjectDetails {
acronym?: string | null; acronym?: string | null;
contentUpdateDate?: string | null; contentUpdateDate?: string | null;
ecMaxContribution?: number | null; ecMaxContribution?: number | null;
ecSignatureDate?: string | null; ecSignatureDate?: string | null;
endDate?: string | null; endDate?: string | null;
frameworkProgramme?: string | null; frameworkProgramme?: string | null;
fundingScheme?: string | null; fundingScheme?: string | null;
grantDoi?: string | null; grantDoi?: string | null;
humanValidated?: boolean | null; humanValidated?: boolean | null;
id?: string | null; id?: string | null;
keywords?: string | null; keywords?: string | null;
legalBasis?: string | null; legalBasis?: string | null;
masterCall?: string | null; masterCall?: string | null;
nature?: string | null; nature?: string | null;
objective?: string | null; objective?: string | null;
rcn?: string | null; rcn?: string | null;
startDate?: string | null; startDate?: string | null;
status?: string | null; status?: string | null;
subCall?: string | null; subCall?: string | null;
title?: string | null; title?: string | null;
topics?: string | null; topics?: string | null;
totalCost?: number | null; totalCost?: number | null;
organizations?: Array<Fp7Organization> | null; organizations?: Array<Fp7Organization> | null;
publications?: Array<Fp7Publication> | null; publications?: Array<Fp7Publication> | null;
iprs?: Array<Fp7ProjectIPR> | null; iprs?: Array<Fp7ProjectIPR> | null;
report_summaries?: Array<Fp7ReportSummary> | null; report_summaries?: Array<Fp7ReportSummary> | null;
topicsList?: Array<Fp7Topic> | null; topicsList?: Array<Fp7Topic> | null;
web_links?: Array<Fp7WebLink> | null; web_links?: Array<Fp7WebLink> | null;
eurosciVoc?: Array<Fp7EurosciVoc> | null; eurosciVoc?: Array<Fp7EurosciVoc> | null;
legalBasisList?: Array<Fp7LegalBasis> | null; legalBasisList?: Array<Fp7LegalBasis> | null;
organizationCount?: number | null; organizationCount?: number | null;
publicationCount?: number | null; publicationCount?: number | null;
iprCount?: number | null; iprCount?: number | null;
} }
+23 -21
View File
@@ -1,34 +1,36 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Fp7ProjectIPR * Fp7ProjectIPR
*/ */
export interface Fp7ProjectIPR { export interface Fp7ProjectIPR {
applicantName?: string | null; applicantName?: string | null;
applicationDate?: string | null; applicationDate?: string | null;
applicationIdentifier?: string | null; applicationIdentifier?: string | null;
applicationKind?: string | null; applicationKind?: string | null;
applicationPrefix?: string | null; applicationPrefix?: string | null;
awardDate?: string | null; awardDate?: string | null;
awardIdentifier?: string | null; awardIdentifier?: string | null;
awardKind?: string | null; awardKind?: string | null;
awardPrefix?: string | null; awardPrefix?: string | null;
epoAppUrl?: string | null; epoAppUrl?: string | null;
epoPubUrl?: string | null; epoPubUrl?: string | null;
id?: string | null; id?: string | null;
organisationID?: string | null; organisationID?: string | null;
patentFamilyIdentifier?: string | null; patentFamilyIdentifier?: string | null;
patentType?: string | null; patentType?: string | null;
priorityDate?: string | null; priorityDate?: string | null;
projectID?: string | null; projectID?: string | null;
title?: string | null; title?: string | null;
type?: string | null; type?: string | null;
} }
+22 -20
View File
@@ -1,33 +1,35 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Fp7Publication * Fp7Publication
*/ */
export interface Fp7Publication { export interface Fp7Publication {
authors?: string | null; authors?: string | null;
collection?: string | null; collection?: string | null;
contentUpdateDate?: string | null; contentUpdateDate?: string | null;
doi?: string | null; doi?: string | null;
id?: string | null; id?: string | null;
isPublishedAs?: string | null; isPublishedAs?: string | null;
journalNumber?: string | null; journalNumber?: string | null;
journalTitle?: string | null; journalTitle?: string | null;
projectAcronym?: string | null; projectAcronym?: string | null;
projectID?: string | null; projectID?: string | null;
publishedPages?: string | null; publishedPages?: string | null;
publishedYear?: number | null; publishedYear?: number | null;
publisher?: string | null; publisher?: string | null;
qaProcessedDoi?: string | null; qaProcessedDoi?: string | null;
rcn?: string | null; rcn?: string | null;
repositoryUrl?: string | null; repositoryUrl?: string | null;
title?: string | null; title?: string | null;
volume?: string | null; volume?: string | null;
} }
+11 -9
View File
@@ -1,22 +1,24 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Fp7ReportSummary * Fp7ReportSummary
*/ */
export interface Fp7ReportSummary { export interface Fp7ReportSummary {
attachments?: string | null; attachments?: string | null;
contentUpdateDate?: string | null; contentUpdateDate?: string | null;
id?: string | null; id?: string | null;
projectAcronym?: string | null; projectAcronym?: string | null;
projectID?: string | null; projectID?: string | null;
rcn?: string | null; rcn?: string | null;
title?: string | null; title?: string | null;
} }
+8 -6
View File
@@ -1,19 +1,21 @@
/** /**
* Innovation Search Engine API * Innovation Search Engine API
* *
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
/** /**
* Fp7Topic * Fp7Topic
*/ */
export interface Fp7Topic { export interface Fp7Topic {
id?: string | null; id?: string | null;
projectID?: string | null; projectID?: string | null;
title?: string | null; title?: string | null;
topic?: string | null; topic?: string | null;
} }

Some files were not shown because too many files have changed in this diff Show More