Compare commits
42
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c37356a45a | ||
|
|
a939755b8d | ||
|
|
625cbdc6d7 | ||
|
|
372199573c | ||
|
|
943b989ccb | ||
|
|
4fa84d1342 | ||
|
|
c8ad000f7e | ||
|
|
1e000319d5 | ||
|
|
fc834eab6a | ||
|
|
4d9a3f24fa | ||
|
|
5ef7204a07 | ||
|
|
b7082640bb | ||
|
|
ce265ebbf9 | ||
|
|
14b9ee0e50 | ||
|
|
08b3a0a585 | ||
|
|
87fa0e4a2d | ||
|
|
c30925e2ac | ||
|
|
8201913738 | ||
|
|
97db19f042 | ||
|
|
d37140866b | ||
|
|
9dd47f4373 | ||
|
|
e7c17d1fa7 | ||
|
|
e0015c3ea9 | ||
|
|
547a82336e | ||
|
|
c409c1860d | ||
|
|
acee290e7f | ||
|
|
645ecebaad | ||
|
|
3b08118abe | ||
|
|
b27e960e0a | ||
|
|
24ee9df743 | ||
|
|
9a06211a0a | ||
|
|
0a32a2c191 | ||
|
|
0a86a3f5bc | ||
|
|
de571d47bd | ||
|
|
644b111280 | ||
|
|
aaead76390 | ||
|
|
96b3355f46 | ||
|
|
404386e153 | ||
|
|
355361558e | ||
|
|
32cb67df72 | ||
|
|
f2bca2f646 | ||
|
|
3caa759e4f |
+2
-1
@@ -15,7 +15,8 @@ RUN mkdir /test && \
|
||||
"pytest~=8.1.0" \
|
||||
"httpx~=0.27.0" \
|
||||
"python-multipart~=0.0.19"\
|
||||
"elasticsearch~=9.4.0"
|
||||
"elasticsearch~=9.4.0" \
|
||||
"openai~=2.41.0"
|
||||
|
||||
COPY [ "src/main", "/home" ]
|
||||
COPY [ "src/data", "/data" ]
|
||||
|
||||
@@ -10,6 +10,7 @@ dependencies = [
|
||||
"elasticsearch~=9.4.0",
|
||||
"fastapi~=0.115.0",
|
||||
"httpx~=0.27.0",
|
||||
"openai~=2.41.0",
|
||||
"pydantic~=2.7.1",
|
||||
"pydantic-settings~=2.2.1",
|
||||
"pyjwt~=2.8.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
ELASTICSEARCH_URL=https://project.nes.uni-due.de/elastic/
|
||||
ELASTICSEARCH_API_KEY=am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ
|
||||
|
||||
LLM_API_URL=https://project.nes.uni-due.de/llm2/api/generate
|
||||
LLM_API_URL=https://project.nes.uni-due.de/llm2/v1/
|
||||
LLM_API_KEY=c2d5e7ccf7a4760dd3d19bed2caed9d85ff7437400e0ea82a6d6f912ebc2f212
|
||||
LLM_MODEL=gemma4:e4b
|
||||
LLM_MODEL=gemma4-e4b
|
||||
@@ -5,9 +5,13 @@ from .. import config
|
||||
|
||||
def search(
|
||||
index: str,
|
||||
query_field: Optional[str] = None,
|
||||
query_value: Optional[str] = None,
|
||||
payload: Optional[dict[str, Any]] = None,
|
||||
query_field: str = None,
|
||||
query_value: str = None,
|
||||
query: dict = None,
|
||||
source = None,
|
||||
size: int = None,
|
||||
sort: list = None,
|
||||
body: dict = None,
|
||||
) -> dict[str, Any]:
|
||||
|
||||
headers = {
|
||||
@@ -15,7 +19,17 @@ def search(
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
|
||||
if payload is None:
|
||||
if body is not None:
|
||||
payload = body
|
||||
elif query is not None:
|
||||
payload = {"query": query}
|
||||
if source is not None:
|
||||
payload["_source"] = source
|
||||
if size is not None:
|
||||
payload["size"] = size
|
||||
if sort is not None:
|
||||
payload["sort"] = sort
|
||||
else:
|
||||
payload = {
|
||||
"query": {
|
||||
"query_string": {
|
||||
@@ -27,9 +41,33 @@ def search(
|
||||
|
||||
with httpx.Client() as client:
|
||||
response = client.post(
|
||||
f"{config.settings.elasticsearch_url.rstrip('/')}/{index}/_search",
|
||||
f"{config.settings.elasticsearch_url}/{index}/_search",
|
||||
json=payload,
|
||||
headers=headers
|
||||
)
|
||||
response.raise_for_status()
|
||||
return response.json()
|
||||
def get(
|
||||
index: str,
|
||||
doc_id:str,
|
||||
body: dict = None,
|
||||
|
||||
) -> dict[str, Any]:
|
||||
|
||||
headers = {
|
||||
"Authorization": f"ApiKey {config.settings.elasticsearch_api_key}",
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
payload = body
|
||||
|
||||
# get document directly
|
||||
with httpx.Client() as client:
|
||||
response = client.get(
|
||||
f"{config.settings.elasticsearch_url}/{index}/_doc/{doc_id}",
|
||||
json=payload,
|
||||
headers=headers
|
||||
)
|
||||
response.raise_for_status()
|
||||
return response.json()
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from typing import Any
|
||||
import httpx
|
||||
from openai import OpenAI, APIConnectionError
|
||||
from .. import config
|
||||
|
||||
|
||||
@@ -7,26 +6,35 @@ def call(
|
||||
system_prompt: str,
|
||||
user_prompt: str,
|
||||
model: str = None,
|
||||
stream: bool = False,
|
||||
timeout: int = 30
|
||||
timeout: int = 30,
|
||||
temperature: float = 1.0,
|
||||
top_p: float = 0.95,
|
||||
) -> str:
|
||||
|
||||
headers = {
|
||||
"Authorization": f"Bearer {config.settings.llm_api_token}",
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
|
||||
if model is None:
|
||||
model = config.settings.llm_model
|
||||
|
||||
payload = {
|
||||
"model": model,
|
||||
"prompt": f"{system_prompt}\n{user_prompt}",
|
||||
"stream": stream
|
||||
}
|
||||
client = OpenAI(
|
||||
base_url=config.settings.llm_api_url,
|
||||
api_key=config.settings.llm_api_key,
|
||||
timeout=timeout,
|
||||
)
|
||||
|
||||
with httpx.Client(timeout=timeout) as client:
|
||||
response = client.post(config.settings.llm_api_url, json=payload, headers=headers)
|
||||
response.raise_for_status()
|
||||
data = response.json()
|
||||
return data.get("response", "")
|
||||
try:
|
||||
response = client.chat.completions.create(
|
||||
model=model,
|
||||
messages=[
|
||||
{"role": "system", "content": system_prompt},
|
||||
{"role": "user", "content": user_prompt},
|
||||
],
|
||||
|
||||
temperature=temperature,
|
||||
top_p=top_p,
|
||||
extra_body={"top_k": 64},
|
||||
)
|
||||
except APIConnectionError:
|
||||
return "Etwas ist schiefgelaufen. Bitte versuche es später erneut."
|
||||
|
||||
return response.choices[0].message.content or (
|
||||
"Etwas ist schiefgelaufen. Bitte versuche es erneut."
|
||||
)
|
||||
|
||||
@@ -55,9 +55,8 @@ es_client = _init_es_client()
|
||||
|
||||
topic_cache_filename: str = "topic_hierarchy_cache.json"
|
||||
|
||||
S = TypeVar("S", bound=schema.Base)
|
||||
M = TypeVar("M", bound=model.BaseModel)
|
||||
|
||||
S = TypeVar('S', bound=schema.Base)
|
||||
M = TypeVar('M', bound=model.BaseModel)
|
||||
|
||||
def filter_none():
|
||||
return True
|
||||
@@ -255,62 +254,6 @@ def count_topic_hierarchy(topic_names: List[str]) -> dict:
|
||||
### persons
|
||||
|
||||
|
||||
def list_persons(
|
||||
page_offset: int = 0,
|
||||
page_size: int = 20,
|
||||
query: Optional[str] = None,
|
||||
include: Optional[set[str]] = None,
|
||||
) -> AuthorsListResponse:
|
||||
payload = _author_list_query(page_offset, page_size, query)
|
||||
data = elasticsearch.search(index="openalex-authors", payload=payload)
|
||||
hits = data.get("hits", {}).get("hits", [])
|
||||
persons = [util.get_persons_data(hit) for hit in hits]
|
||||
total = _extract_total_hits(data)
|
||||
return AuthorsListResponse(
|
||||
results=persons,
|
||||
meta=Meta(
|
||||
count=total,
|
||||
page=page_offset // page_size + 1 if page_size > 0 else 1,
|
||||
per_page=page_size,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
def _author_list_query(
|
||||
page_offset: int, page_size: int, query: Optional[str] = None
|
||||
) -> dict:
|
||||
search_query = {"match_all": {}}
|
||||
if query:
|
||||
search_query = {
|
||||
"query_string": {
|
||||
"fields": [
|
||||
"display_name^3",
|
||||
"display_name_alternatives",
|
||||
"_id",
|
||||
"ids.orcid",
|
||||
],
|
||||
"query": query,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
"from": page_offset,
|
||||
"size": page_size,
|
||||
"query": search_query,
|
||||
"sort": [
|
||||
{"works_count": {"order": "desc", "missing": "_last"}},
|
||||
{"cited_by_count": {"order": "desc", "missing": "_last"}},
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
def _extract_total_hits(data: dict) -> int:
|
||||
total = data.get("hits", {}).get("total", 0)
|
||||
if isinstance(total, dict):
|
||||
return total.get("value", 0)
|
||||
return total
|
||||
|
||||
|
||||
def search_persons(
|
||||
author_id: Optional[str] = None,
|
||||
query: Optional[str] = None,
|
||||
@@ -377,23 +320,7 @@ def generate_person_bio(author_id: str, include: Optional[set[str]] = None) -> s
|
||||
|
||||
user_prompt = f"Daten zur Person:\n{person_json}"
|
||||
|
||||
headers = {
|
||||
"Authorization": f"Bearer {config.settings.llm_api_key}",
|
||||
"Content-Type": "application/json",
|
||||
}
|
||||
payload = {
|
||||
"model": config.settings.llm_model,
|
||||
"prompt": f"{system_prompt}\n{user_prompt}",
|
||||
"stream": False,
|
||||
}
|
||||
|
||||
with httpx.Client(timeout=30.0) as client:
|
||||
response = client.post(
|
||||
config.settings.llm_api_url, json=payload, headers=headers
|
||||
)
|
||||
response.raise_for_status()
|
||||
data = response.json()
|
||||
bio = data.get("response", "")
|
||||
bio = llm.call(system_prompt, user_prompt)
|
||||
|
||||
elapsed_time = time.time() - start_time
|
||||
logger.info(
|
||||
@@ -402,17 +329,17 @@ def generate_person_bio(author_id: str, include: Optional[set[str]] = None) -> s
|
||||
|
||||
return bio
|
||||
|
||||
def get_person_by_id(author_id: str, include: Optional[str] = None) -> AuthorsListResponse:
|
||||
body = {
|
||||
"_source":include.split(",") if include else True,
|
||||
}
|
||||
|
||||
def get_person_by_id(
|
||||
author_id: str, include: Optional[str] = None
|
||||
) -> AuthorsListResponse:
|
||||
try:
|
||||
hit = es_client.get(
|
||||
hit = elasticsearch.get(
|
||||
index="openalex-authors",
|
||||
id=author_id,
|
||||
source=include.split(",") if include else True,
|
||||
body=body,
|
||||
doc_id=author_id
|
||||
)
|
||||
|
||||
except NotFoundError:
|
||||
raise HTTPException(
|
||||
status_code=404, detail=f"Person with id {author_id} not found"
|
||||
@@ -440,13 +367,20 @@ def search_persons_by_name(
|
||||
"display_name": {"query": author_name, "boost": 3}
|
||||
}
|
||||
},
|
||||
{"match": {"display_name": {"query": author_name, "fuzziness": 1}}},
|
||||
# {
|
||||
# "match": {
|
||||
# "display_name": {
|
||||
# "query": author_name,
|
||||
# "fuzziness": 1
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
],
|
||||
"minimum_should_match": 1,
|
||||
}
|
||||
}
|
||||
try:
|
||||
response = es_client.search(
|
||||
response = elasticsearch.search(
|
||||
index="openalex-authors",
|
||||
query=search_query,
|
||||
source=include.split(",") if include else True,
|
||||
@@ -482,12 +416,11 @@ def search_persons_by_institution(
|
||||
},
|
||||
}
|
||||
}
|
||||
print(include, institution_name)
|
||||
try:
|
||||
response = es_client.search(
|
||||
response = elasticsearch.search(
|
||||
index="openalex-authors",
|
||||
source=include.split(",") if include else True,
|
||||
query=search_query,
|
||||
source=include.split(",") if include else True,
|
||||
size=limit,
|
||||
sort=[{"works_count": {"order": "desc"}}],
|
||||
)
|
||||
|
||||
@@ -12,6 +12,7 @@ from fastapi.responses import RedirectResponse
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from inse.collaboration_network.router import router as collaboration_network_router
|
||||
from inse.works.service import router as works_service_router
|
||||
from inse.search.service import router as search_router
|
||||
|
||||
from . import config
|
||||
from .service import router as service_router
|
||||
@@ -32,6 +33,7 @@ app = FastAPI(
|
||||
)
|
||||
app.include_router(collaboration_network_router)
|
||||
app.include_router(works_service_router)
|
||||
app.include_router(search_router)
|
||||
app.include_router(service_router)
|
||||
app.include_router(account_router)
|
||||
|
||||
|
||||
@@ -38,3 +38,6 @@ class ItemPage(Page[Item]):
|
||||
|
||||
class PersonBio(BaseModel):
|
||||
bio: str = Field(description="The generated biography.")
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class TopicCount(BaseModel):
|
||||
name: str = Field(description="The topic display name.")
|
||||
count: int = Field(default=0, description="The number of occurrences.")
|
||||
@@ -0,0 +1,10 @@
|
||||
from typing import List
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from inse.models.topics_by_year import TopicsByYear
|
||||
|
||||
|
||||
class TopicsByTime(BaseModel):
|
||||
elements: List[TopicsByYear] = Field(default_factory=list, description="Topics grouped by year.")
|
||||
total: int = Field(default=0, description="The number of years.")
|
||||
@@ -0,0 +1,12 @@
|
||||
from typing import List
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from inse.models.topic_count import TopicCount
|
||||
|
||||
|
||||
class TopicsByYear(BaseModel):
|
||||
year: int = Field(description="The publication year.")
|
||||
publication_count: int = Field(default=0, description="The number of works in this year.")
|
||||
topics: List[TopicCount] = Field(default_factory=list, description="The topics in this year.")
|
||||
primary_topics: List[TopicCount] = Field(default_factory=list, description="The primary topics in this year.")
|
||||
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
@@ -0,0 +1,153 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import logging
|
||||
import hashlib
|
||||
from typing import List, Optional
|
||||
from fastapi import HTTPException
|
||||
|
||||
from inse import util
|
||||
from inse.logic import es_client
|
||||
from inse.models.author import Author
|
||||
from inse.models.meta import Meta
|
||||
from inse.search.model import CustomAuthor, CustomAuthorsListResponse
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def _enrich_author_data(author_data) -> Optional[CustomAuthor]:
|
||||
if not author_data:
|
||||
return None
|
||||
if not isinstance(author_data, dict):
|
||||
if hasattr(author_data, 'model_dump'):
|
||||
author_data = author_data.model_dump()
|
||||
elif hasattr(author_data, 'to_dict'):
|
||||
author_data = author_data.to_dict()
|
||||
else:
|
||||
return None
|
||||
author_id = author_data.get("id", "") or ""
|
||||
|
||||
h = int(hashlib.md5(author_id.encode('utf-8')).hexdigest(), 16)
|
||||
|
||||
|
||||
# Experimental suitability rating
|
||||
suitability_score = h % 100
|
||||
if suitability_score < 15:
|
||||
relevance_rating = "Sehr geeignet"
|
||||
elif suitability_score < 50:
|
||||
relevance_rating = "Geeignet"
|
||||
else:
|
||||
relevance_rating = "Möglich"
|
||||
|
||||
# Resilient sanitization of IDs to protect against model type conflicts (Generated)
|
||||
ids = author_data.get("ids")
|
||||
if isinstance(ids, dict):
|
||||
ids_copy = dict(ids)
|
||||
for str_field in ["openalex", "orcid", "scopus"]:
|
||||
val = ids_copy.get(str_field)
|
||||
if val is not None and not isinstance(val, str):
|
||||
ids_copy[str_field] = str(val)
|
||||
author_data["ids"] = ids_copy
|
||||
|
||||
base_author = Author.from_dict(author_data)
|
||||
if not base_author:
|
||||
return None
|
||||
|
||||
author = CustomAuthor(
|
||||
**base_author.model_dump(),
|
||||
relevance_rating=relevance_rating,
|
||||
)
|
||||
return author
|
||||
|
||||
def advanced_search_persons(
|
||||
query: Optional[str] = None,
|
||||
institution_name: Optional[str] = None,
|
||||
topics: Optional[List[str]] = None,
|
||||
page: int = 1,
|
||||
page_size: int = 10,
|
||||
include: Optional[set[str]] = None,
|
||||
) -> CustomAuthorsListResponse:
|
||||
must_clauses = []
|
||||
filter_clauses = []
|
||||
|
||||
if query:
|
||||
must_clauses.append({
|
||||
"bool": {
|
||||
"should": [
|
||||
{"match_phrase": {"display_name": {"query": query, "boost": 5}}},
|
||||
{"match_phrase_prefix": {"display_name": {"query": query, "boost": 3}}},
|
||||
{"match": {"display_name": {"query": query, "fuzziness": 1}}},
|
||||
],
|
||||
"minimum_should_match": 1
|
||||
}
|
||||
})
|
||||
|
||||
if institution_name:
|
||||
filter_clauses.append({
|
||||
"nested": {
|
||||
"path": "affiliations",
|
||||
"query": {
|
||||
"match_phrase": {
|
||||
"affiliations.institution.display_name": institution_name
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
if topics:
|
||||
for t in topics:
|
||||
if t:
|
||||
filter_clauses.append({
|
||||
"nested": {
|
||||
"path": "topics",
|
||||
"query": {
|
||||
"match_phrase": {
|
||||
"topics.display_name": t
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
query_body = {"bool": {}}
|
||||
if must_clauses:
|
||||
query_body["bool"]["must"] = must_clauses
|
||||
if filter_clauses:
|
||||
query_body["bool"]["filter"] = filter_clauses
|
||||
if not must_clauses and not filter_clauses:
|
||||
query_body["bool"]["must"] = [{"match_all": {}}]
|
||||
|
||||
es_size = page_size
|
||||
es_from = (page - 1) * page_size
|
||||
|
||||
sort_option = [{"cited_by_count": {"order": "desc"}}, {"works_count": {"order": "desc"}}]
|
||||
|
||||
try:
|
||||
response = es_client.search(
|
||||
index="openalex-authors",
|
||||
query=query_body,
|
||||
source=list(include) if include else True,
|
||||
from_=es_from,
|
||||
size=es_size,
|
||||
sort=sort_option if not query else None,
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error(f"Elasticsearch search failed: {str(e)}")
|
||||
raise HTTPException(
|
||||
status_code=500, detail=f"Elasticsearch search failed: {str(e)}"
|
||||
)
|
||||
|
||||
hits = response.get("hits", {}).get("hits", [])
|
||||
total_count = response.get("hits", {}).get("total", {}).get("value", 0)
|
||||
|
||||
results = []
|
||||
for hit in hits:
|
||||
raw_data = util.get_persons_data(hit)
|
||||
custom_author = _enrich_author_data(raw_data)
|
||||
if custom_author:
|
||||
results.append(custom_author)
|
||||
|
||||
return CustomAuthorsListResponse(
|
||||
results=results,
|
||||
meta=Meta(
|
||||
count=total_count,
|
||||
page=page,
|
||||
per_page=page_size
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from pydantic import BaseModel, Field
|
||||
from typing import List, Optional
|
||||
from inse.models.author import Author
|
||||
from inse.models.meta import Meta
|
||||
from inse.models.group_by_result import GroupByResult
|
||||
|
||||
class CustomAuthor(Author):
|
||||
relevance_rating: Optional[str] = Field(default=None, description="The relevance suitability rating.")
|
||||
|
||||
class CustomAuthorsListResponse(BaseModel):
|
||||
meta: Optional[Meta] = None
|
||||
results: Optional[List[CustomAuthor]] = None
|
||||
group_by: Optional[List[GroupByResult]] = None
|
||||
@@ -0,0 +1,62 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import logging
|
||||
from typing import Annotated, List, Optional
|
||||
from fastapi import APIRouter, Query, Depends
|
||||
|
||||
from inse import database
|
||||
from inse.search import model as search_model
|
||||
from inse.search import logic
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
router = APIRouter(
|
||||
prefix="/api/inse-service",
|
||||
tags=["Persons Search"],
|
||||
responses={404: {"description": "Not found"}},
|
||||
)
|
||||
|
||||
@router.get(
|
||||
"/persons/search-list",
|
||||
operation_id="searchPersonsList",
|
||||
response_model=search_model.CustomAuthorsListResponse,
|
||||
summary="Searches for persons with advanced filters (Topic & Institution) and pagination.",
|
||||
response_model_exclude_none=True,
|
||||
tags=["Persons"],
|
||||
)
|
||||
def search_persons_list(
|
||||
query: Annotated[
|
||||
Optional[str], Query(description="Search query (e.g., Arman AND Arzani)")
|
||||
] = None,
|
||||
institution_name: Annotated[
|
||||
Optional[str], Query(alias="institutionName", description="Filter by institution name")
|
||||
] = None,
|
||||
topic: Annotated[
|
||||
Optional[List[str]], Query(description="Filter by topic display names")
|
||||
] = None,
|
||||
page: Annotated[
|
||||
int, Query(description="Page number (1-indexed)", ge=1)
|
||||
] = 1,
|
||||
page_size: Annotated[
|
||||
int, Query(alias="pageSize", description="Results per page", ge=1, le=100)
|
||||
] = 10,
|
||||
include: Annotated[
|
||||
Optional[str],
|
||||
Query(
|
||||
description="Comma-separated include tags",
|
||||
example="topics_full,topic_share",
|
||||
),
|
||||
] = None,
|
||||
):
|
||||
include_set = (
|
||||
{tag.strip().lower() for tag in include.split(",") if tag.strip()}
|
||||
if include
|
||||
else None
|
||||
)
|
||||
return logic.advanced_search_persons(
|
||||
query=query,
|
||||
institution_name=institution_name,
|
||||
topics=topic,
|
||||
page=page,
|
||||
page_size=page_size,
|
||||
include=include_set,
|
||||
)
|
||||
@@ -215,23 +215,21 @@ def count_topic_hierarchy(
|
||||
|
||||
### persons
|
||||
|
||||
|
||||
@router.get(
|
||||
"/persons",
|
||||
operation_id="getPersons",
|
||||
"/persons/search",
|
||||
operation_id="searchPersons",
|
||||
response_model=AuthorsListResponse,
|
||||
summary="Returns a page of OpenAlex authors.",
|
||||
summary="Searches for persons by ID or name.",
|
||||
response_model_exclude_none=True,
|
||||
tags=["Persons"],
|
||||
)
|
||||
def get_persons(
|
||||
page_offset: Annotated[
|
||||
int, Query(alias="pageOffset", description="The page offset.", ge=0)
|
||||
] = 0,
|
||||
page_size: Annotated[
|
||||
int, Query(alias="pageSize", description="The page size.", ge=1, le=100)
|
||||
] = 20,
|
||||
def search_persons(
|
||||
author_id: Annotated[
|
||||
Optional[str], Query(description="OpenAlex author ID (e.g., A5093075883)")
|
||||
] = None,
|
||||
query: Annotated[
|
||||
Optional[str], Query(description="Optional author search query.")
|
||||
Optional[str], Query(description="Search query (e.g., Arman AND Arzani)")
|
||||
] = None,
|
||||
include: Annotated[
|
||||
Optional[str],
|
||||
@@ -250,9 +248,7 @@ def get_persons(
|
||||
if include
|
||||
else None
|
||||
)
|
||||
return logic.list_persons(
|
||||
page_offset=page_offset, page_size=page_size, query=query, include=include_set
|
||||
)
|
||||
return logic.search_persons(author_id, query, include_set)
|
||||
|
||||
|
||||
@router.get(
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
from fastapi.testclient import TestClient
|
||||
from inse import logic
|
||||
from inse import model
|
||||
from inse.main import app
|
||||
from inse.models.authors_list_response import AuthorsListResponse
|
||||
from inse.models.meta import Meta
|
||||
from inse.models.author import Author
|
||||
from inse.models.author_ids import AuthorIds
|
||||
|
||||
client = TestClient(app)
|
||||
|
||||
|
||||
def test_list_persons_searches_openalex_authors(monkeypatch):
|
||||
captured = {}
|
||||
|
||||
def fake_search(index, payload=None, **_):
|
||||
captured["index"] = index
|
||||
captured["payload"] = payload
|
||||
return {
|
||||
"hits": {
|
||||
"total": {"value": 1},
|
||||
"hits": [
|
||||
{
|
||||
"_id": "A5023888391",
|
||||
"_source": {
|
||||
"display_name": "Ada Lovelace",
|
||||
"works_count": 42,
|
||||
"cited_by_count": 1234,
|
||||
"topics": [{"display_name": "Computer Science"}],
|
||||
"affiliations": [
|
||||
{
|
||||
"institution": {
|
||||
"display_name": "University of Example",
|
||||
"country_code": "DE",
|
||||
}
|
||||
}
|
||||
],
|
||||
},
|
||||
}
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
monkeypatch.setattr(logic.elasticsearch, "search", fake_search)
|
||||
|
||||
page = logic.list_persons(page_offset=20, page_size=10, query="Ada")
|
||||
|
||||
assert captured["index"] == "openalex-authors"
|
||||
assert captured["payload"]["from"] == 20
|
||||
assert captured["payload"]["size"] == 10
|
||||
assert captured["payload"]["query"]["query_string"]["query"] == "Ada"
|
||||
assert page.meta.count == 1
|
||||
assert page.results[0].id == "A5023888391"
|
||||
assert page.results[0].display_name == "Ada Lovelace"
|
||||
assert page.results[0].topics[0].display_name == "Computer Science"
|
||||
assert page.results[0].affiliations[0].institution.display_name == "University of Example"
|
||||
|
||||
|
||||
def test_list_persons_uses_match_all_without_query(monkeypatch):
|
||||
captured = {}
|
||||
|
||||
def fake_search(index, payload=None, **_):
|
||||
captured["payload"] = payload
|
||||
return {"hits": {"total": 0, "hits": []}}
|
||||
|
||||
monkeypatch.setattr(logic.elasticsearch, "search", fake_search)
|
||||
|
||||
page = logic.list_persons(page_offset=0, page_size=20)
|
||||
|
||||
assert captured["payload"]["query"] == {"match_all": {}}
|
||||
assert page.results == []
|
||||
assert page.meta.count == 0
|
||||
|
||||
|
||||
def test_get_persons_endpoint_returns_page(monkeypatch):
|
||||
def fake_list_persons(page_offset=0, page_size=20, query=None, include=None):
|
||||
assert page_offset == 5
|
||||
assert page_size == 10
|
||||
assert query == "Ada"
|
||||
assert include == {"ids"}
|
||||
return AuthorsListResponse(
|
||||
meta=Meta(
|
||||
count=1,
|
||||
page=1,
|
||||
per_page=10
|
||||
),
|
||||
results=[
|
||||
Author(
|
||||
id="A5023888391",
|
||||
display_name="Ada Lovelace",
|
||||
works_count=42,
|
||||
cited_by_count=1234,
|
||||
affiliations=[],
|
||||
topics=[],
|
||||
ids=AuthorIds(openalex="https://openalex.org/A5023888391"),
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
monkeypatch.setattr(logic, "list_persons", fake_list_persons)
|
||||
|
||||
response = client.get("/api/inse-service/persons?pageOffset=5&pageSize=10&query=Ada&include=ids")
|
||||
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert data["meta"]["count"] == 1
|
||||
assert data["results"][0]["display_name"] == "Ada Lovelace"
|
||||
assert data["results"][0]["ids"]["openalex"] == "https://openalex.org/A5023888391"
|
||||
@@ -17,6 +17,9 @@ from inse.models.work import Work
|
||||
from inse.models.work_page import WorkPage
|
||||
from inse.models.works_list_response import WorksListResponse
|
||||
from inse.models.meta import Meta
|
||||
from inse.models.topic_count import TopicCount
|
||||
from inse.models.topics_by_year import TopicsByYear
|
||||
from inse.models.topics_by_time import TopicsByTime
|
||||
from .search_client import MissingApiKeyError
|
||||
from .search_client import OpenAlexWorksSearchClient
|
||||
|
||||
@@ -87,6 +90,87 @@ async def get_all_author_works(
|
||||
)
|
||||
|
||||
|
||||
async def get_topics_by_time_by_author(
|
||||
author_id: str,
|
||||
max_topics_per_year: int = 3,
|
||||
client: OpenAlexWorksSearchClient | None = None,
|
||||
) -> TopicsByTime:
|
||||
works = await get_all_author_works(author_id, client=client)
|
||||
|
||||
years = {}
|
||||
|
||||
for work in works.results or []:
|
||||
if work.publication_year is None:
|
||||
continue
|
||||
|
||||
year = work.publication_year
|
||||
|
||||
if year not in years:
|
||||
years[year] = {
|
||||
"publication_count": 0,
|
||||
"topics": {},
|
||||
"primary_topics": {},
|
||||
}
|
||||
|
||||
years[year]["publication_count"] += 1
|
||||
|
||||
for topic in work.topics or []:
|
||||
if topic.display_name:
|
||||
topic_name = topic.display_name
|
||||
|
||||
if topic_name not in years[year]["topics"]:
|
||||
years[year]["topics"][topic_name] = 0
|
||||
|
||||
years[year]["topics"][topic_name] += 1
|
||||
|
||||
primary_topic = work.primary_topic
|
||||
|
||||
if primary_topic and primary_topic.display_name:
|
||||
primary_topic_name = primary_topic.display_name
|
||||
|
||||
if primary_topic_name not in years[year]["primary_topics"]:
|
||||
years[year]["primary_topics"][primary_topic_name] = 0
|
||||
|
||||
years[year]["primary_topics"][primary_topic_name] += 1
|
||||
|
||||
elements = []
|
||||
|
||||
for year in sorted(years.keys()):
|
||||
topic_items = list(years[year]["topics"].items())
|
||||
topic_items.sort(key=lambda item: item[1], reverse=True)
|
||||
|
||||
topics = []
|
||||
|
||||
for topic_name, count in topic_items[:max_topics_per_year]:
|
||||
topics.append(TopicCount(
|
||||
name=topic_name,
|
||||
count=count,
|
||||
))
|
||||
|
||||
primary_topic_items = list(years[year]["primary_topics"].items())
|
||||
primary_topic_items.sort(key=lambda item: item[1], reverse=True)
|
||||
|
||||
primary_topics = []
|
||||
|
||||
for topic_name, count in primary_topic_items[:max_topics_per_year]:
|
||||
primary_topics.append(TopicCount(
|
||||
name=topic_name,
|
||||
count=count,
|
||||
))
|
||||
|
||||
elements.append(TopicsByYear(
|
||||
year=year,
|
||||
publication_count=years[year]["publication_count"],
|
||||
topics=topics,
|
||||
primary_topics=primary_topics,
|
||||
))
|
||||
|
||||
return TopicsByTime(
|
||||
elements=elements,
|
||||
total=len(elements),
|
||||
)
|
||||
|
||||
|
||||
async def _search_author_works_data(
|
||||
search_client: OpenAlexWorksSearchClient,
|
||||
author_id: str,
|
||||
|
||||
@@ -17,6 +17,7 @@ from .. import security
|
||||
from . import logic
|
||||
from inse.models.work_page import WorkPage
|
||||
from inse.models.works_list_response import WorksListResponse
|
||||
from inse.models.topics_by_time import TopicsByTime
|
||||
|
||||
|
||||
router = APIRouter(prefix="/api/works", tags=[Tags.WORKS])
|
||||
@@ -68,3 +69,18 @@ async def get_all_author_works(
|
||||
principal: security.Principal = Depends(security.roles_allowed(["SUPER_ADMIN", "UNI_ADMIN"])),
|
||||
):
|
||||
return await logic.get_all_author_works(author_id)
|
||||
|
||||
|
||||
@router.get("/{author_id}/topics-by-time",
|
||||
operation_id="getTopicsByTimeByAuthor",
|
||||
response_model=TopicsByTime,
|
||||
summary="Returns topics grouped by publication year for an author.")
|
||||
async def get_topics_by_time_by_author(
|
||||
author_id: Annotated[str, Path(description="The author id, for example A5023888391.")],
|
||||
max_topics_per_year: Annotated[int, Query(description="The maximum number of topics per year.", ge=1, le=20)] = 3,
|
||||
principal: security.Principal = Depends(security.roles_allowed(["SUPER_ADMIN", "UNI_ADMIN"])),
|
||||
):
|
||||
return await logic.get_topics_by_time_by_author(
|
||||
author_id,
|
||||
max_topics_per_year=max_topics_per_year,
|
||||
)
|
||||
|
||||
Generated
+114
@@ -145,6 +145,15 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/7b/b0d330852dd5953daee6b15f742f15d9f18e9c0154eb4cfcc8718f0436da/cryptography-42.0.8-cp39-abi3-win_amd64.whl", hash = "sha256:fa76fbb7596cc5839320000cdd5d0955313696d9511debab7ee7278fc8b5c84a", size = 2886038, upload-time = "2024-06-04T19:54:18.707Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "distro"
|
||||
version = "1.9.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/fc/f8/98eea607f65de6527f8a2e8885fc8015d3e6f5775df186e443e0964a11c3/distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed", size = 60722, upload-time = "2023-12-24T09:54:32.31Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2", size = 20277, upload-time = "2023-12-24T09:54:30.421Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dotenv"
|
||||
version = "0.9.9"
|
||||
@@ -311,6 +320,97 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "jiter"
|
||||
version = "0.15.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/66/b5/55f06bb281d92fb3cc86d14e1def2bd908bb77693183e7cb1f5a3c388b0c/jiter-0.15.0.tar.gz", hash = "sha256:4251acc80e2b7c9b7b8823456ea0fceeb0734dac2df7636d3c711b38476b5a76", size = 166640, upload-time = "2026-05-19T10:09:48.361Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/44/53/4f6bddbcde3c71e56d0aa1337ec95950f3d27dd4153e25aadf0feac71751/jiter-0.15.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:0e90a1c315a0226ec822d973817967f9223b7701546c8c2a7913e7ab0926294d", size = 308793, upload-time = "2026-05-19T10:07:35.25Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/01/84/c01099b59a285a1ebba64ae93f62bfa036675340fd1b0045ae65890a0442/jiter-0.15.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8c9004af7c8d67cce7f1aae1026fb55607f4aa600710d08ede3a3ce4aeefe7e0", size = 309570, upload-time = "2026-05-19T10:07:36.919Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/64/8fb7f9d45bb98190355454cd04dad8d8f27223d6bd52f83af07f637168a6/jiter-0.15.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c210f8b35dc6f30aafd4b4365ca89b9d1189f21ab49b8e68fa6322a847aef138", size = 336783, upload-time = "2026-05-19T10:07:38.694Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c3/b6/f5739011d009b3a30f6a53c5240979030ba29ae46a8c67e3a15759f7c37d/jiter-0.15.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f30bae8bc1c2d613e28e5af3e8cceb09b742f1c8a8a5f839fb67afaffc03b61", size = 363555, upload-time = "2026-05-19T10:07:40.832Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e5/12/98a9d9f766665e8a3b6252454e17cb0c464606a28cf2fa09399b003345fa/jiter-0.15.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c60e71b6d10cfc284c9bf36bd885e8d44c46f688ce50aa91b5edd90181dea687", size = 452255, upload-time = "2026-05-19T10:07:42.62Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e8/d5/60f972840f79c5e7544fce567c56f1e4e50468f996baba3e78d823dd62a6/jiter-0.15.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ab068bce62a45aa3e7367eceaffb5dde60b7eb853be8dece45132e3d0ff4879", size = 373559, upload-time = "2026-05-19T10:07:44.201Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ee/cf/d46ef1234ba335aabc2f013210db8e0821a22f5e644a2e9449df199ecc23/jiter-0.15.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fa248c9eb220197d363f688818dac2fd4b2f0cd7d843ca7105d652034823427d", size = 346055, upload-time = "2026-05-19T10:07:46.005Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/63/4d2749d8d54d230bad9b3a6b0d00cc28c6ff6b2fdffc26a8ccf76cc5a974/jiter-0.15.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:2a77aadd57cac1682e4401a72724d2796d89a4ba129b1a5812aa94ee480826eb", size = 351406, upload-time = "2026-05-19T10:07:47.855Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/b9/9965b990035d8773328e0a8c8b457a87bf2b19f6c4126d9d99296be5d16a/jiter-0.15.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2ae901f3a55bfafdde31d289590fa25e3245735a2b1e8c7cc15871710a002871", size = 389357, upload-time = "2026-05-19T10:07:49.665Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2d/55/9ddf903deda1413e87fed792f416b7123daee5b8efbad6a202a7421c36a5/jiter-0.15.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:f0b271b462769543716f92d3a4f90527df6ef5ed05ee95ec4137f513e21e1b77", size = 517263, upload-time = "2026-05-19T10:07:51.537Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e8/76/a0c40ad064d3a20a4fde231e35d56e9a01ce82164278180e82d5daf85469/jiter-0.15.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2fb6a5d26af81fc0f00f9360a891e05cf755e149bba391c4d563adc54812973d", size = 548646, upload-time = "2026-05-19T10:07:53.196Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/4f/eca9b954942916ba2f453891b8593ab444cd872396fe66a3936616f236f3/jiter-0.15.0-cp312-cp312-win32.whl", hash = "sha256:c2f6bb8b5216ab9e7873bc08b5d7bef2b8abbb578a3069bf1cd14a45d71d771d", size = 206427, upload-time = "2026-05-19T10:07:55.307Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/bf/8ead82a87495149542748e828d153fd232a512a22c83b02c4815c1a9c7d8/jiter-0.15.0-cp312-cp312-win_amd64.whl", hash = "sha256:40b2c7e92c44a84d748d21706c68dc6ff8161d80b59c99d774721a0d2317d7c7", size = 197300, upload-time = "2026-05-19T10:07:56.651Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/e4/9b8a78fb2d894471bc344e37f1949bdd784bd914d031dba0ba3a40c71dd7/jiter-0.15.0-cp312-cp312-win_arm64.whl", hash = "sha256:cc0bc345cf2df9d1c00ac443f50d543c1ccfa8b0422cb85b1ab70d681c0b255b", size = 192702, upload-time = "2026-05-19T10:07:58.307Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e5/f4/f708c900ecee41b2025ef8413d5351e5649eb2125c506f6720cc69b06f5c/jiter-0.15.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:1c11465f97e2abf45a014b83b730222f8f1c5335e802c7055a67d50de6f1f4e3", size = 307829, upload-time = "2026-05-19T10:07:59.704Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/59/db537c0949e83668c38481d426b9f2fd5ab758c4ee53a811dd0a510626a0/jiter-0.15.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d1e7b1776f0797956c509e123d0952d10d293a9492dea9f288ab9570ec01d1a5", size = 308445, upload-time = "2026-05-19T10:08:01.184Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/37/38/ea0e13b18c30ef951da0d47d39e7fa9edb82a93a62990ffbd7cea9b622d4/jiter-0.15.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:351a341c2105aa430b7047e30f1bf7975f6313b00165d3fc07be2edaf741f279", size = 336181, upload-time = "2026-05-19T10:08:02.688Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/fc/2303901b16c4ba05865588990a420c0b4156270b44379c20931544a1d962/jiter-0.15.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4ab395feec8d249ec4044e228e98a7033f043426a265df439dc3698823f0a4e4", size = 362985, upload-time = "2026-05-19T10:08:04.394Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5b/6f/11bace093c52e7d4d26c8e606ccd7ae8c972189622469ec0d9e28161e28b/jiter-0.15.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a2a438005b6f22d0273413484d6094d7c2c5d10ec1b3a3bf128e0d1d3ba53258", size = 453292, upload-time = "2026-05-19T10:08:05.967Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/22/db/987f2f086ca4d7a6582eb4ccd513f9b26b42d9e4243a087609a3137a8fc7/jiter-0.15.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f18f85e4218d1b40f000f42a92239a7a61a902cd42c65e6c360dbd17dcb20894", size = 373501, upload-time = "2026-05-19T10:08:07.857Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8f/7c/89fbcabb2739b7a5b8dc959a1b6c5761f6484f5fed3486854b3c789bb1de/jiter-0.15.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d1aa62e277fc1cbd80e6deacae6f4d983b41b3d7728e0645c5d741a6149bba45", size = 344683, upload-time = "2026-05-19T10:08:09.431Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/6f/6cca7692e7dddfec6d8d76c54dc97f2af2a41df4ac0674b999df1f09a5f3/jiter-0.15.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:6550fa135c7deb8ead6af49ed7ff648532ea8334a1447fe34a36315ef79c5c29", size = 350892, upload-time = "2026-05-19T10:08:11.352Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/39/14/0338d6190cb8e6d22e677ab1d4eabd4117f67cca70c54cd04b82ff64e068/jiter-0.15.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:066f8f33f18b2419cd8213b2436fa7fbc9c499f315971cfa3ce1f9820c001b1b", size = 388723, upload-time = "2026-05-19T10:08:12.912Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/90/31/cc19f4a1bdb6afb09ce6a2f2615aa8d44d994eba0d8e6105ed1af920e736/jiter-0.15.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:75e8a04e91432dde9f1838373cf93d23726c79d3e908d319acf0e796f85592e7", size = 516648, upload-time = "2026-05-19T10:08:14.808Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/49/9f/833c541512cd091b63c10c0381973dfe11bc7a503a818c16384417e0c81e/jiter-0.15.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:a97261f1fccb8e50ecd2890a96e46efdc3f57c80a197324c6777827231eca712", size = 547382, upload-time = "2026-05-19T10:08:16.927Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d2/11/e7b70e91f90bc4477e8eee9e8a5f7cf3cb41b4525d6394dc98a714eb8f7f/jiter-0.15.0-cp313-cp313-win32.whl", hash = "sha256:c77496cb10bd7549690fbbab3e5ec05857b83e49276f4a9423a766ddd2afcd4c", size = 205845, upload-time = "2026-05-19T10:08:18.401Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4b/23/5c20d9ad6f02c493e4023e5d2d09e1c1f15fe2753c9102c544aff068a88e/jiter-0.15.0-cp313-cp313-win_amd64.whl", hash = "sha256:b15741f501469009ae0ae90b7147958a664a7dede40aa7ff174a8a4645f546d0", size = 196842, upload-time = "2026-05-19T10:08:20.131Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/11/1eb400ef248e8c925fd883fbe325daf5e42cd1b0d308539dd332bd4f7ffc/jiter-0.15.0-cp313-cp313-win_arm64.whl", hash = "sha256:5d6a60072b44c3c2b797a7ddcbcbbf2b34ea3cfd4721580fbfd2a09d9d9b84ba", size = 192212, upload-time = "2026-05-19T10:08:21.807Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/60/2fd8d7c79da8acf9b7b277c7616847773779356b92acfc9bb158452174da/jiter-0.15.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:ef1fd24d9413f6209e00d3d5a453e67acfe004a25cc6c8e8484faed4311ab9e8", size = 315065, upload-time = "2026-05-19T10:08:23.218Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/46/f4/008fb7d65e8ac2abf00811651a661e025c4ba80bbc6f378450384ddd3aed/jiter-0.15.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:144f8e72cb53dab146347b91cceac01f5481237f2b93b4a339a1ee8f8878b67c", size = 339444, upload-time = "2026-05-19T10:08:24.701Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/55/90b0c7b9c6896c0f2a591dd36d36b71d22e09674bfef178fa03ba3f81499/jiter-0.15.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:553fcac2ef2cb990877f9fc0833b8b629a3e6a5670b6b5fd58219b41a653ddc4", size = 347779, upload-time = "2026-05-19T10:08:26.408Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/51/6b/69666cec5000fd57734c118437394516c749ae8dbeea9fb66d6fef9c4775/jiter-0.15.0-cp313-cp313t-win_amd64.whl", hash = "sha256:774f93f65031856bf14ad9f59bdcab8b8cad501e5ceabd51ba3525f76937a25b", size = 200395, upload-time = "2026-05-19T10:08:28.055Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/39/04/a6aa62cd27e8149b0d28df5561f10f6cceaf7935a9ccf3f1c5a05f9a0cd8/jiter-0.15.0-cp313-cp313t-win_arm64.whl", hash = "sha256:f1e1754960f38ec40613a07e5e372df67acb3b890fb383b6fb3de3e49ddbf3c7", size = 190516, upload-time = "2026-05-19T10:08:29.35Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/eb/d2/079f350ebf7859d081de30aa890f9e3be68516f754f3ba32366ffff4dcee/jiter-0.15.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:ac0d9ddea4350974be7a221fc25895f251a8fee748c889bdced2141c0fec1a49", size = 308884, upload-time = "2026-05-19T10:08:31.667Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/04/4e/a2c30a7f69b48c03b20935d647479106fe932f6e63f75faf53937197e05d/jiter-0.15.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:01a8222cf05ab1128e239421156c207949808acaaea2bdfd33130ae666786e86", size = 310028, upload-time = "2026-05-19T10:08:33.304Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/40/90/2e7cdfd3cf8ca967be38c48f5cf474d79f089efaf559a40f15984a77ae69/jiter-0.15.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:182226cbc930c9fab81bc2e41a4da672f89539906dadb05e75670ac07b94f71f", size = 337485, upload-time = "2026-05-19T10:08:35.259Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/11/15a1aa28b120b8ee5b4f1fb894c125046225f09847738bd64233d3b84883/jiter-0.15.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:71683c38c825452999b5717fcae07ea708e8c93003e808be4319c1b02e3d176e", size = 364223, upload-time = "2026-05-19T10:08:36.694Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b7/25/f442e8af5f3d0dcf47b39e83a0efd9ee45ea946aa6d04625dc3181eae3b6/jiter-0.15.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:30f2218e6a9e5c18bc10fe6d41ac189c442c88eacf11bad9f28ef95a9bef00e6", size = 456387, upload-time = "2026-05-19T10:08:38.143Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/da/f4/37f2d2c9f64f49af7da652ed7532bb5a2372e588e6927c3fdd76f911db65/jiter-0.15.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5157de9f76eb4bc5ea74a1219366a25f945ad305641d74e04f59c54087091aa9", size = 374461, upload-time = "2026-05-19T10:08:39.869Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/60/28/edcfbbbf0cb15436f36664a8908a0df47ab9006298d4cd937dc08ea932d6/jiter-0.15.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90c5db5527c221249a876160663ab891ace358c17f7b9c93ec1478b7f0550e5c", size = 345924, upload-time = "2026-05-19T10:08:41.668Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/13/89fba6398dab7f202b7278c4b4aac122399d2c0183971c4a57a3b7088df5/jiter-0.15.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:3e4540b8e74e4268811ac05db226a6a128ff572e7e0ce3f1163b693cadb184cd", size = 352283, upload-time = "2026-05-19T10:08:43.091Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/da/0f6af8cef2c565a1ab44d970f268c43ccaa72707386ea6388e6fe2b6cd26/jiter-0.15.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:62ebd14e47e9aed9df4472afcb2663668ce4d74891cd54f86bf6e44029d6dc89", size = 389985, upload-time = "2026-05-19T10:08:44.915Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a1/ec/b9cb7d6d29e24ee14910266157d2a279d7a8f60ee0df7fa840882976ba64/jiter-0.15.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:0be6f5ad41a809f303f416d17cec92a7a725902fb9b4f3de3d19362ac0ef8554", size = 517695, upload-time = "2026-05-19T10:08:46.486Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/5e/6d1bda880723aae0ad86b4b763f044362448efe31e3e819635d41cb03451/jiter-0.15.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:813dfbb17d65328bf86e5f0905dd277ba2265d3ca20556e86c0c7035b7182e5a", size = 548868, upload-time = "2026-05-19T10:08:48.026Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/72/7de501cf38dcacaf35098796f3a50e0f2e338baba18a58946c618544b809/jiter-0.15.0-cp314-cp314-win32.whl", hash = "sha256:50e51156192722a9c58db112837d3f8ef96fb3c5ecc14e95f409134b08b158ec", size = 206380, upload-time = "2026-05-19T10:08:49.738Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/a9/e19addf4b0c1bdce52c6da12351e6bc42c340c45e7c09e2158e46d293ccc/jiter-0.15.0-cp314-cp314-win_amd64.whl", hash = "sha256:30ce1a5d16b5641dc935d50ef775af6a0871e3d14ab05d6fc54dff371b78e558", size = 197687, upload-time = "2026-05-19T10:08:51.088Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/c9/776b1db01db25fc6c1d58d1979a37b0a9fe787e5f5b1d062d2eaacb77923/jiter-0.15.0-cp314-cp314-win_arm64.whl", hash = "sha256:510c8b3c17a0ed9ac69850c0438dada3c9b82d9c4d589fcb62002a5a9cf3a866", size = 192571, upload-time = "2026-05-19T10:08:52.451Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/f6/45bb4670bacf300fd2c7abadbfb3af376e5f1b6ae75fd9bc069891d15870/jiter-0.15.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7553333dd0930c104a5a0db8df72bf7219fe663d731383b576bb6ed6351c984d", size = 317151, upload-time = "2026-05-19T10:08:53.867Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d7/68/ed635ad5acd7b73e454283083bbb7c8205ad10e88b0d9d7d793b09fe8226/jiter-0.15.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f2143ab06181d2b029eedcb6af3cebe95f11bbac62441781860f98ee9330a6a6", size = 341243, upload-time = "2026-05-19T10:08:55.383Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5d/db/3ff4176b817b8ea33879e71e13d8bc2b0d481a7ed3fe9e080f333d415c16/jiter-0.15.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6eac374c5c975709b69c10f09afd199df74150172156ad10c8d4fd785b7da995", size = 363629, upload-time = "2026-05-19T10:08:56.928Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/24/5f8270e0ba9c883582f96f722f8a0b58015c7ce1f8c6d4571cf394e99b6b/jiter-0.15.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b3b3b775e33d3bfaec9899edc526ae97b0da0bf9d071a46124ba419149a414f8", size = 456198, upload-time = "2026-05-19T10:08:58.618Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/45/5b/76fc02b0b5c54c3d18c60653156e2f76fde1816f9b4722db68d6ee2c897e/jiter-0.15.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:eda3071db3346334beae1360b46da4606da57bf3528c167b3c38533afaf9f2c5", size = 373710, upload-time = "2026-05-19T10:09:00.151Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c4/52/4310821b0ea9277994d3e1f49fc6a4b34e4800caebacb2c0af81da59a454/jiter-0.15.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c6694a173ecabc12eb60efbc0b474464ead1951ff65cd8b1e72100715c64512b", size = 349901, upload-time = "2026-05-19T10:09:01.621Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/fe/67648c35b3594fba8854ac64cc8a826d8bcd18324bbdb53d77697c60b6ef/jiter-0.15.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:a254e10b593624d230c365b6d616b22ca0ad65e63a16e6631c2b3466022e6ba8", size = 352438, upload-time = "2026-05-19T10:09:03.216Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/28/0a1879d07ad6b3e025a2750027363452ced93c2d16d1c9d4b153ffd51c91/jiter-0.15.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d8d2955167274e15d79a7a020afdd9b39c990eb80b2d89fca695d92dcfdd38ec", size = 388152, upload-time = "2026-05-19T10:09:04.741Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/78/46c6f6b56ba85c90021f4afd72ed42f691f8f84daacb5fe27277070e3858/jiter-0.15.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:acf4ee4d1fc55917239fe72972fb292dd773055d05eb040d36f4326e02cc2c0e", size = 517707, upload-time = "2026-05-19T10:09:06.231Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/cb/720662d4c88fcad606e826fef5424365527ba43ce4868a479aed8f8c507e/jiter-0.15.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:e7196e56f1cd69af1dbb07dff02dcfb260a50b45a82d409d92a06fedb32473b5", size = 548241, upload-time = "2026-05-19T10:09:08.093Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/60/e3/935b8034fd143f21125c87d51404a9e0e1449186a494405721ff5d1d695e/jiter-0.15.0-cp314-cp314t-win32.whl", hash = "sha256:7f6163c0f10b055245f814dcc59f4818da60dfe72f3e72ab89fc24b6bd5e9c52", size = 207950, upload-time = "2026-05-19T10:09:09.616Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/59/984fd9ece895953dad3e0880a650e766f5a2da2c5514f0eafdaaabbeb5f9/jiter-0.15.0-cp314-cp314t-win_amd64.whl", hash = "sha256:980c256edb05b78a111b99c4de3b1d32e31634b867fd1fc2cf726e7b7bba9854", size = 200055, upload-time = "2026-05-19T10:09:11.367Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0e/a4/cf8d779feb133a27a2e3bc833bccb9e13aa332cdf820497ebf72c10ce8c3/jiter-0.15.0-cp314-cp314t-win_arm64.whl", hash = "sha256:66b1880df2d01e206e8339769d1c7c1753bcb653efd6289e203f6f24ebada0c0", size = 191244, upload-time = "2026-05-19T10:09:12.74Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/73/38/505941b2b092fd5bbbd60a52a880db1173f1690ae6751bed3af1c9ddcb4e/jiter-0.15.0-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:631f13a3d04e97d4e083993b10f4b99530e3a10d953e2eb5e196b7dc7f812ce0", size = 303769, upload-time = "2026-05-19T10:09:42.203Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e7/95/a06692b29e77473f286e1ec1f426d3ca44d7b5843be8ad21d7a5f3fcdcc0/jiter-0.15.0-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:b6c0ffae686c39bf3737be60793783267628783ea42545632c10b291105aee45", size = 305128, upload-time = "2026-05-19T10:09:43.657Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/85/7270d7ad41d6061a25b950c6bf91d638bd9aacb113200a8c8d57a055fd67/jiter-0.15.0-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1d54fb5b31dea401a41af3f8a7d2512e9b6a6a005491e6166c7e4ffab9639a9c", size = 340459, upload-time = "2026-05-19T10:09:45.452Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c8/8d/302cb2057b7513327b4d575cff6b1d066ee6431a5357fc3f8867cd684406/jiter-0.15.0-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:54d5d6090cdc1b7c9e780dfb04949a990adb1e301a2fc0bbcee7de4638d33f9a", size = 344469, upload-time = "2026-05-19T10:09:46.864Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "openai"
|
||||
version = "2.41.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "anyio" },
|
||||
{ name = "distro" },
|
||||
{ name = "httpx" },
|
||||
{ name = "jiter" },
|
||||
{ name = "pydantic" },
|
||||
{ name = "sniffio" },
|
||||
{ name = "tqdm" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/3c/a6/5815fe2e2aca74b36c650d1bd43b69827cee568073d0d2d9b6fc5aaac80c/openai-2.41.0.tar.gz", hash = "sha256:db5c362acd6604b84f076abbefa66826ea4b46ecba2954ed866e6a149a1352c0", size = 783525, upload-time = "2026-06-03T22:39:40.719Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/be/51/d82bb424e8aa372190c5233253a2ceb399a778747d18b42cff487411e663/openai-2.41.0-py3-none-any.whl", hash = "sha256:20cc7952e8501c7e5773dd2ef7be437bae9cb549044902e1041a83a54516e375", size = 1353378, upload-time = "2026-06-03T22:39:38.964Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "packaging"
|
||||
version = "26.2"
|
||||
@@ -499,6 +599,7 @@ dependencies = [
|
||||
{ name = "elasticsearch" },
|
||||
{ name = "fastapi" },
|
||||
{ name = "httpx" },
|
||||
{ name = "openai" },
|
||||
{ name = "pydantic" },
|
||||
{ name = "pydantic-settings" },
|
||||
{ name = "pyjwt" },
|
||||
@@ -516,6 +617,7 @@ requires-dist = [
|
||||
{ name = "elasticsearch", specifier = "~=9.4.0" },
|
||||
{ name = "fastapi", specifier = "~=0.115.0" },
|
||||
{ name = "httpx", specifier = "~=0.27.0" },
|
||||
{ name = "openai", specifier = ">=2.41.0" },
|
||||
{ name = "pydantic", specifier = "~=2.7.1" },
|
||||
{ name = "pydantic-settings", specifier = "~=2.2.1" },
|
||||
{ name = "pyjwt", specifier = "~=2.8.0" },
|
||||
@@ -597,6 +699,18 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/8b/0c/9d30a4ebeb6db2b25a841afbb80f6ef9a854fc3b41be131d249a977b4959/starlette-0.46.2-py3-none-any.whl", hash = "sha256:595633ce89f8ffa71a015caed34a5b2dc1c0cdb3f0f1fbd1e69339cf2abeec35", size = 72037, upload-time = "2025-04-13T13:56:16.21Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tqdm"
|
||||
version = "4.67.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/09/a9/6ba95a270c6f1fbcd8dac228323f2777d886cb206987444e4bce66338dd4/tqdm-4.67.3.tar.gz", hash = "sha256:7d825f03f89244ef73f1d4ce193cb1774a8179fd96f31d7e1dcde62092b960bb", size = 169598, upload-time = "2026-02-03T17:35:53.048Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/16/e1/3079a9ff9b8e11b846c6ac5c8b5bfb7ff225eee721825310c91b3b50304f/tqdm-4.67.3-py3-none-any.whl", hash = "sha256:ee1e4c0e59148062281c49d80b25b67771a127c85fc9676d3be5f243206826bf", size = 78374, upload-time = "2026-02-03T17:35:50.982Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "typing-extensions"
|
||||
version = "4.15.0"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"additionalProperties": {
|
||||
"ngVersion": "21.2.14",
|
||||
"providedInRoot": true,
|
||||
"serviceSuffix": "OpenApiService",
|
||||
"serviceSuffix": "Service",
|
||||
"withInterfaces": true,
|
||||
"enumPropertyNaming": "original",
|
||||
"fileNaming": "kebab-case"
|
||||
|
||||
@@ -4,75 +4,91 @@ README.md
|
||||
api.base.service.ts
|
||||
api.module.ts
|
||||
api/api.ts
|
||||
api/iNSEAccountService.service.ts
|
||||
api/iNSEService.service.ts
|
||||
api/inse-account-service.service.ts
|
||||
api/inse-account-service.serviceInterface.ts
|
||||
api/inse-service.service.ts
|
||||
api/inse-service.serviceInterface.ts
|
||||
api/items.service.ts
|
||||
api/personNetwork.service.ts
|
||||
api/items.serviceInterface.ts
|
||||
api/person-network.service.ts
|
||||
api/person-network.serviceInterface.ts
|
||||
api/persons-search.service.ts
|
||||
api/persons-search.serviceInterface.ts
|
||||
api/persons.service.ts
|
||||
api/persons.serviceInterface.ts
|
||||
api/topics.service.ts
|
||||
api/topics.serviceInterface.ts
|
||||
api/works.service.ts
|
||||
api/works.serviceInterface.ts
|
||||
configuration.ts
|
||||
encoder.ts
|
||||
git_push.sh
|
||||
index.ts
|
||||
model/accessGrant.ts
|
||||
model/authAccount.ts
|
||||
model/authScope.ts
|
||||
model/access-grant.ts
|
||||
model/auth-account.ts
|
||||
model/auth-scope.ts
|
||||
model/author-affiliations-inner.ts
|
||||
model/author-counts-by-year-inner.ts
|
||||
model/author-ids.ts
|
||||
model/author-parsed-longest-name.ts
|
||||
model/author-summary-stats.ts
|
||||
model/author.ts
|
||||
model/authorAffiliationsInner.ts
|
||||
model/authorCountsByYearInner.ts
|
||||
model/authorIds.ts
|
||||
model/authorParsedLongestName.ts
|
||||
model/authorSummaryStats.ts
|
||||
model/authorsListResponse.ts
|
||||
model/authors-list-response.ts
|
||||
model/authorship.ts
|
||||
model/award.ts
|
||||
model/collaborationNetwork.ts
|
||||
model/collaborationNetworkEdge.ts
|
||||
model/collaborationNetworkNode.ts
|
||||
model/collaborationNetworkNodeType.ts
|
||||
model/costUsd.ts
|
||||
model/dehydratedAuthor.ts
|
||||
model/dehydratedFunder.ts
|
||||
model/dehydratedInstitution.ts
|
||||
model/dehydratedSource.ts
|
||||
model/filterInformation.ts
|
||||
model/filterProperties.ts
|
||||
model/collaboration-network-edge.ts
|
||||
model/collaboration-network-node-type.ts
|
||||
model/collaboration-network-node.ts
|
||||
model/collaboration-network.ts
|
||||
model/cost-usd.ts
|
||||
model/custom-author.ts
|
||||
model/custom-authors-list-response.ts
|
||||
model/dehydrated-author.ts
|
||||
model/dehydrated-funder.ts
|
||||
model/dehydrated-institution.ts
|
||||
model/dehydrated-source.ts
|
||||
model/filter-information.ts
|
||||
model/filter-properties.ts
|
||||
model/fwci.ts
|
||||
model/groupByResult.ts
|
||||
model/hTTPValidationError.ts
|
||||
model/identityGrant.ts
|
||||
model/institutionInformation.ts
|
||||
model/group-by-result.ts
|
||||
model/http-validation-error.ts
|
||||
model/identity-grant.ts
|
||||
model/institution-information.ts
|
||||
model/item-create.ts
|
||||
model/item-page.ts
|
||||
model/item.ts
|
||||
model/itemCreate.ts
|
||||
model/itemPage.ts
|
||||
model/location.ts
|
||||
model/meta.ts
|
||||
model/model2YrMeanCitedness.ts
|
||||
model/model2-yr-mean-citedness.ts
|
||||
model/models.ts
|
||||
model/openAccess.ts
|
||||
model/personBio.ts
|
||||
model/open-access.ts
|
||||
model/person-bio.ts
|
||||
model/score.ts
|
||||
model/validation-error-loc-inner.ts
|
||||
model/validation-error.ts
|
||||
model/topicCount.ts
|
||||
model/topicsByTime.ts
|
||||
model/topicsByYear.ts
|
||||
model/validationError.ts
|
||||
model/validationErrorLocInner.ts
|
||||
model/value.ts
|
||||
model/work-biblio.ts
|
||||
model/work-citation-normalized-percentile.ts
|
||||
model/work-cited-by-percentile-year.ts
|
||||
model/work-counts-by-year-inner.ts
|
||||
model/work-has-content.ts
|
||||
model/work-ids.ts
|
||||
model/work-keyword.ts
|
||||
model/work-mesh-inner.ts
|
||||
model/work-page.ts
|
||||
model/work-sustainable-development-goals-inner.ts
|
||||
model/work-topic-domain.ts
|
||||
model/work-topic-field.ts
|
||||
model/work-topic-information.ts
|
||||
model/work-topic-subfield.ts
|
||||
model/work-topic.ts
|
||||
model/work.ts
|
||||
model/workBiblio.ts
|
||||
model/workCitationNormalizedPercentile.ts
|
||||
model/workCitedByPercentileYear.ts
|
||||
model/workCountsByYearInner.ts
|
||||
model/workHasContent.ts
|
||||
model/workIds.ts
|
||||
model/workKeyword.ts
|
||||
model/workMeshInner.ts
|
||||
model/workPage.ts
|
||||
model/workSustainableDevelopmentGoalsInner.ts
|
||||
model/workTopic.ts
|
||||
model/workTopicDomain.ts
|
||||
model/workTopicField.ts
|
||||
model/workTopicInformation.ts
|
||||
model/workTopicSubfield.ts
|
||||
model/worksListResponse.ts
|
||||
model/works-list-response.ts
|
||||
param.ts
|
||||
provide-api.ts
|
||||
variables.ts
|
||||
|
||||
@@ -1,15 +1,25 @@
|
||||
export * from './iNSEAccountService.service';
|
||||
import { INSEAccountServiceService } from './iNSEAccountService.service';
|
||||
export * from './iNSEService.service';
|
||||
import { INSEServiceService } from './iNSEService.service';
|
||||
export * from './inse-account-service.service';
|
||||
import { INSEAccountServiceService } from './inse-account-service.service';
|
||||
export * from './inse-account-service.serviceInterface';
|
||||
export * from './inse-service.service';
|
||||
import { INSEServiceService } from './inse-service.service';
|
||||
export * from './inse-service.serviceInterface';
|
||||
export * from './items.service';
|
||||
import { ItemsService } from './items.service';
|
||||
export * from './personNetwork.service';
|
||||
import { PersonNetworkService } from './personNetwork.service';
|
||||
export * from './items.serviceInterface';
|
||||
export * from './person-network.service';
|
||||
import { PersonNetworkService } from './person-network.service';
|
||||
export * from './person-network.serviceInterface';
|
||||
export * from './persons.service';
|
||||
import { PersonsService } from './persons.service';
|
||||
export * from './persons.serviceInterface';
|
||||
export * from './persons-search.service';
|
||||
import { PersonsSearchService } from './persons-search.service';
|
||||
export * from './persons-search.serviceInterface';
|
||||
export * from './topics.service';
|
||||
import { TopicsService } from './topics.service';
|
||||
export * from './topics.serviceInterface';
|
||||
export * from './works.service';
|
||||
import { WorksService } from './works.service';
|
||||
export const APIS = [INSEAccountServiceService, INSEServiceService, ItemsService, PersonNetworkService, PersonsService, TopicsService, WorksService];
|
||||
export * from './works.serviceInterface';
|
||||
export const APIS = [INSEAccountServiceService, INSEServiceService, ItemsService, PersonNetworkService, PersonsService, PersonsSearchService, TopicsService, WorksService];
|
||||
|
||||
+7
-4
@@ -17,23 +17,26 @@ import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { AccessGrant } from '../model/accessGrant';
|
||||
import { AccessGrant } from '../model/access-grant';
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { HTTPValidationError } from '../model/http-validation-error';
|
||||
// @ts-ignore
|
||||
import { IdentityGrant } from '../model/identityGrant';
|
||||
import { IdentityGrant } from '../model/identity-grant';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
import {
|
||||
INSEAccountServiceServiceInterface
|
||||
} from './inse-account-service.serviceInterface';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class INSEAccountServiceService extends BaseService {
|
||||
export class INSEAccountServiceService extends BaseService implements INSEAccountServiceServiceInterface {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* 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 { HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { AccessGrant } from '../model/models';
|
||||
import { HTTPValidationError } from '../model/models';
|
||||
import { IdentityGrant } from '../model/models';
|
||||
|
||||
|
||||
import { Configuration } from '../configuration';
|
||||
|
||||
|
||||
|
||||
export interface INSEAccountServiceServiceInterface {
|
||||
defaultHeaders: HttpHeaders;
|
||||
configuration: Configuration;
|
||||
|
||||
/**
|
||||
* Get Access Grant
|
||||
*
|
||||
* @endpoint post /inse-account/auth/access
|
||||
* @param secret
|
||||
* @param account
|
||||
* @param organization
|
||||
*/
|
||||
getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, extraHttpRequestParams?: any): Observable<AccessGrant>;
|
||||
|
||||
/**
|
||||
* Get Identity Grant
|
||||
*
|
||||
* @endpoint post /inse-account/auth/id
|
||||
* @param username
|
||||
* @param password
|
||||
*/
|
||||
getIdentityGrantInseAccountAuthIdPost(username: string, password: string, extraHttpRequestParams?: any): Observable<IdentityGrant>;
|
||||
|
||||
}
|
||||
+9
-6
@@ -17,29 +17,32 @@ import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { AuthorsListResponse } from '../model/authorsListResponse';
|
||||
import { AuthorsListResponse } from '../model/authors-list-response';
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { HTTPValidationError } from '../model/http-validation-error';
|
||||
// @ts-ignore
|
||||
import { Item } from '../model/item';
|
||||
// @ts-ignore
|
||||
import { ItemCreate } from '../model/itemCreate';
|
||||
import { ItemCreate } from '../model/item-create';
|
||||
// @ts-ignore
|
||||
import { ItemPage } from '../model/itemPage';
|
||||
import { ItemPage } from '../model/item-page';
|
||||
// @ts-ignore
|
||||
import { PersonBio } from '../model/personBio';
|
||||
import { PersonBio } from '../model/person-bio';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
import {
|
||||
INSEServiceServiceInterface
|
||||
} from './inse-service.serviceInterface';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class INSEServiceService extends BaseService {
|
||||
export class INSEServiceService extends BaseService implements INSEServiceServiceInterface {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
@@ -0,0 +1,135 @@
|
||||
/**
|
||||
* 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 { HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { AuthorsListResponse } from '../model/models';
|
||||
import { HTTPValidationError } from '../model/models';
|
||||
import { Item } from '../model/models';
|
||||
import { ItemCreate } from '../model/models';
|
||||
import { ItemPage } from '../model/models';
|
||||
import { PersonBio } from '../model/models';
|
||||
|
||||
|
||||
import { Configuration } from '../configuration';
|
||||
|
||||
|
||||
|
||||
export interface INSEServiceServiceInterface {
|
||||
defaultHeaders: HttpHeaders;
|
||||
configuration: Configuration;
|
||||
|
||||
/**
|
||||
* Adds a new item.
|
||||
*
|
||||
* @endpoint post /api/inse-service/items
|
||||
* @param itemCreate
|
||||
*/
|
||||
addItem(itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
buildTopicCache(pageSize?: number, saveJson?: boolean, extraHttpRequestParams?: any): Observable<object>;
|
||||
|
||||
/**
|
||||
* Counts topic hierarchy occurrences from cache.
|
||||
*
|
||||
* @endpoint get /api/inse-service/topics/count
|
||||
* @param topic Topic names (repeat parameter).
|
||||
*/
|
||||
countTopicHierarchy(topic: Array<string>, extraHttpRequestParams?: any): Observable<object>;
|
||||
|
||||
/**
|
||||
* Deletes the item with the id.
|
||||
*
|
||||
* @endpoint delete /api/inse-service/items/{id}
|
||||
* @param id The item id.
|
||||
*/
|
||||
deleteItem(id: number, extraHttpRequestParams?: any): Observable<any>;
|
||||
|
||||
/**
|
||||
* Generates a bio for a person by author ID.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/bio
|
||||
* @param authorId OpenAlex author ID (e.g., A5093075883)
|
||||
* @param include Comma-separated list to include tags
|
||||
*/
|
||||
generatePersonBio(authorId: string, include?: string, extraHttpRequestParams?: any): Observable<PersonBio>;
|
||||
|
||||
/**
|
||||
* Returns the item with the id.
|
||||
*
|
||||
* @endpoint get /api/inse-service/items/{id}
|
||||
* @param id The item id.
|
||||
*/
|
||||
getItem(id: number, extraHttpRequestParams?: any): Observable<Item>;
|
||||
|
||||
/**
|
||||
* Returns a page of items.
|
||||
*
|
||||
* @endpoint get /api/inse-service/items
|
||||
* @param pageOffset The page offset.
|
||||
* @param pageSize The page size.
|
||||
*/
|
||||
getItems(pageOffset?: number, pageSize?: number, extraHttpRequestParams?: any): Observable<ItemPage>;
|
||||
|
||||
/**
|
||||
* Searches for person by ID.
|
||||
*
|
||||
* @endpoint get /api/inse-service/person/{id}
|
||||
* @param id OpenAlex author ID
|
||||
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
|
||||
*/
|
||||
getPersonByID(id: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
|
||||
|
||||
/**
|
||||
* Searches for persons by ID or name.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/search
|
||||
* @param authorId OpenAlex author ID (e.g., A5093075883)
|
||||
* @param query Search query (e.g., Arman AND Arzani)
|
||||
* @param include Comma-separated include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, sources, counts_by_year, works_api_url, dates, cited_by_count_boost
|
||||
*/
|
||||
searchPersons(authorId?: string, query?: string, include?: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
|
||||
|
||||
/**
|
||||
* Searches for persons by institution name.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/searchByInstitution
|
||||
* @param institutionName Institution name (e.g., MIT, Oxford University)
|
||||
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
|
||||
*/
|
||||
searchPersonsByInstitution(institutionName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
|
||||
|
||||
/**
|
||||
* Searches for person by name.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/searchByName
|
||||
* @param authorName Authors name (e.g., Arman Arzani)
|
||||
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
|
||||
*/
|
||||
searchPersonsByName(authorName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
|
||||
|
||||
/**
|
||||
* Updates the item with the id.
|
||||
*
|
||||
* @endpoint put /api/inse-service/items/{id}
|
||||
* @param id The item id.
|
||||
* @param itemCreate
|
||||
*/
|
||||
updateItem(id: number, itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
|
||||
|
||||
}
|
||||
@@ -17,25 +17,28 @@ import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { HTTPValidationError } from '../model/http-validation-error';
|
||||
// @ts-ignore
|
||||
import { Item } from '../model/item';
|
||||
// @ts-ignore
|
||||
import { ItemCreate } from '../model/itemCreate';
|
||||
import { ItemCreate } from '../model/item-create';
|
||||
// @ts-ignore
|
||||
import { ItemPage } from '../model/itemPage';
|
||||
import { ItemPage } from '../model/item-page';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
import {
|
||||
ItemsServiceInterface
|
||||
} from './items.serviceInterface';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ItemsService extends BaseService {
|
||||
export class ItemsService extends BaseService implements ItemsServiceInterface {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* 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 { HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { HTTPValidationError } from '../model/models';
|
||||
import { Item } from '../model/models';
|
||||
import { ItemCreate } from '../model/models';
|
||||
import { ItemPage } from '../model/models';
|
||||
|
||||
|
||||
import { Configuration } from '../configuration';
|
||||
|
||||
|
||||
|
||||
export interface ItemsServiceInterface {
|
||||
defaultHeaders: HttpHeaders;
|
||||
configuration: Configuration;
|
||||
|
||||
/**
|
||||
* Adds a new item.
|
||||
*
|
||||
* @endpoint post /api/inse-service/items
|
||||
* @param itemCreate
|
||||
*/
|
||||
addItem(itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
|
||||
|
||||
/**
|
||||
* Deletes the item with the id.
|
||||
*
|
||||
* @endpoint delete /api/inse-service/items/{id}
|
||||
* @param id The item id.
|
||||
*/
|
||||
deleteItem(id: number, extraHttpRequestParams?: any): Observable<any>;
|
||||
|
||||
/**
|
||||
* Returns the item with the id.
|
||||
*
|
||||
* @endpoint get /api/inse-service/items/{id}
|
||||
* @param id The item id.
|
||||
*/
|
||||
getItem(id: number, extraHttpRequestParams?: any): Observable<Item>;
|
||||
|
||||
/**
|
||||
* Returns a page of items.
|
||||
*
|
||||
* @endpoint get /api/inse-service/items
|
||||
* @param pageOffset The page offset.
|
||||
* @param pageSize The page size.
|
||||
*/
|
||||
getItems(pageOffset?: number, pageSize?: number, extraHttpRequestParams?: any): Observable<ItemPage>;
|
||||
|
||||
/**
|
||||
* Updates the item with the id.
|
||||
*
|
||||
* @endpoint put /api/inse-service/items/{id}
|
||||
* @param id The item id.
|
||||
* @param itemCreate
|
||||
*/
|
||||
updateItem(id: number, itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
|
||||
|
||||
}
|
||||
+7
-4
@@ -17,23 +17,26 @@ import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CollaborationNetwork } from '../model/collaborationNetwork';
|
||||
import { CollaborationNetwork } from '../model/collaboration-network';
|
||||
// @ts-ignore
|
||||
import { FilterProperties } from '../model/filterProperties';
|
||||
import { FilterProperties } from '../model/filter-properties';
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { HTTPValidationError } from '../model/http-validation-error';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
import {
|
||||
PersonNetworkServiceInterface
|
||||
} from './person-network.serviceInterface';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class PersonNetworkService extends BaseService {
|
||||
export class PersonNetworkService extends BaseService implements PersonNetworkServiceInterface {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* 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 { HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { CollaborationNetwork } from '../model/models';
|
||||
import { FilterProperties } from '../model/models';
|
||||
import { HTTPValidationError } from '../model/models';
|
||||
|
||||
|
||||
import { Configuration } from '../configuration';
|
||||
|
||||
|
||||
|
||||
export interface PersonNetworkServiceInterface {
|
||||
defaultHeaders: HttpHeaders;
|
||||
configuration: Configuration;
|
||||
|
||||
/**
|
||||
* Get a person\'s collaboration network.
|
||||
* Returns a person\'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
|
||||
*/
|
||||
getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, extraHttpRequestParams?: any): Observable<CollaborationNetwork>;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CustomAuthorsListResponse } from '../model/custom-authors-list-response';
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/http-validation-error';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
import {
|
||||
PersonsSearchServiceInterface
|
||||
} from './persons-search.serviceInterface';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class PersonsSearchService extends BaseService implements PersonsSearchServiceInterface {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Searches for persons with advanced filters (Topic & Institution) and pagination.
|
||||
* @endpoint get /api/inse-service/persons/search-list
|
||||
* @param query Search query (e.g., Arman AND Arzani)
|
||||
* @param institutionName Filter by institution name
|
||||
* @param topic Filter by topic display names
|
||||
* @param page Page number (1-indexed)
|
||||
* @param pageSize Results per page
|
||||
* @param include Comma-separated include tags
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CustomAuthorsListResponse>;
|
||||
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CustomAuthorsListResponse>>;
|
||||
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CustomAuthorsListResponse>>;
|
||||
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>query, 'query');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>institutionName, 'institutionName');
|
||||
if (topic) {
|
||||
topic.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'topic');
|
||||
})
|
||||
}
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>page, 'page');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>pageSize, 'pageSize');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>include, 'include');
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/inse-service/persons/search-list`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<CustomAuthorsListResponse>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* 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 { HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { CustomAuthorsListResponse } from '../model/models';
|
||||
import { HTTPValidationError } from '../model/models';
|
||||
|
||||
|
||||
import { Configuration } from '../configuration';
|
||||
|
||||
|
||||
|
||||
export interface PersonsSearchServiceInterface {
|
||||
defaultHeaders: HttpHeaders;
|
||||
configuration: Configuration;
|
||||
|
||||
/**
|
||||
* Searches for persons with advanced filters (Topic & Institution) and pagination.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/search-list
|
||||
* @param query Search query (e.g., Arman AND Arzani)
|
||||
* @param institutionName Filter by institution name
|
||||
* @param topic Filter by topic display names
|
||||
* @param page Page number (1-indexed)
|
||||
* @param pageSize Results per page
|
||||
* @param include Comma-separated include tags
|
||||
*/
|
||||
searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, extraHttpRequestParams?: any): Observable<CustomAuthorsListResponse>;
|
||||
|
||||
}
|
||||
@@ -17,23 +17,28 @@ import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { AuthorsListResponse } from '../model/authorsListResponse';
|
||||
import { AuthorsListResponse } from '../model/authors-list-response';
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { CustomAuthorsListResponse } from '../model/custom-authors-list-response';
|
||||
// @ts-ignore
|
||||
import { PersonBio } from '../model/personBio';
|
||||
import { HTTPValidationError } from '../model/http-validation-error';
|
||||
// @ts-ignore
|
||||
import { PersonBio } from '../model/person-bio';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
import {
|
||||
PersonsServiceInterface
|
||||
} from './persons.serviceInterface';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class PersonsService extends BaseService {
|
||||
export class PersonsService extends BaseService implements PersonsServiceInterface {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
@@ -361,4 +366,80 @@ export class PersonsService extends BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Searches for persons with advanced filters (Topic & Institution) and pagination.
|
||||
* @endpoint get /api/inse-service/persons/search-list
|
||||
* @param query Search query (e.g., Arman AND Arzani)
|
||||
* @param institutionName Filter by institution name
|
||||
* @param topic Filter by topic display names
|
||||
* @param page Page number (1-indexed)
|
||||
* @param pageSize Results per page
|
||||
* @param include Comma-separated include tags
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CustomAuthorsListResponse>;
|
||||
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CustomAuthorsListResponse>>;
|
||||
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CustomAuthorsListResponse>>;
|
||||
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>query, 'query');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>institutionName, 'institutionName');
|
||||
if (topic) {
|
||||
topic.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'topic');
|
||||
})
|
||||
}
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>page, 'page');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>pageSize, 'pageSize');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>include, 'include');
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/inse-service/persons/search-list`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<CustomAuthorsListResponse>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/**
|
||||
* 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 { HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { AuthorsListResponse } from '../model/models';
|
||||
import { CustomAuthorsListResponse } from '../model/models';
|
||||
import { HTTPValidationError } from '../model/models';
|
||||
import { PersonBio } from '../model/models';
|
||||
|
||||
|
||||
import { Configuration } from '../configuration';
|
||||
|
||||
|
||||
|
||||
export interface PersonsServiceInterface {
|
||||
defaultHeaders: HttpHeaders;
|
||||
configuration: Configuration;
|
||||
|
||||
/**
|
||||
* Generates a bio for a person by author ID.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/bio
|
||||
* @param authorId OpenAlex author ID (e.g., A5093075883)
|
||||
* @param include Comma-separated list to include tags
|
||||
*/
|
||||
generatePersonBio(authorId: string, include?: string, extraHttpRequestParams?: any): Observable<PersonBio>;
|
||||
|
||||
/**
|
||||
* Searches for person by ID.
|
||||
*
|
||||
* @endpoint get /api/inse-service/person/{id}
|
||||
* @param id OpenAlex author ID
|
||||
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
|
||||
*/
|
||||
getPersonByID(id: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
|
||||
|
||||
/**
|
||||
* Searches for persons by ID or name.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/search
|
||||
* @param authorId OpenAlex author ID (e.g., A5093075883)
|
||||
* @param query Search query (e.g., Arman AND Arzani)
|
||||
* @param include Comma-separated include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, sources, counts_by_year, works_api_url, dates, cited_by_count_boost
|
||||
*/
|
||||
searchPersons(authorId?: string, query?: string, include?: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
|
||||
|
||||
/**
|
||||
* Searches for persons by institution name.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/searchByInstitution
|
||||
* @param institutionName Institution name (e.g., MIT, Oxford University)
|
||||
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
|
||||
*/
|
||||
searchPersonsByInstitution(institutionName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
|
||||
|
||||
/**
|
||||
* Searches for person by name.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/searchByName
|
||||
* @param authorName Authors name (e.g., Arman Arzani)
|
||||
* @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ...
|
||||
*/
|
||||
searchPersonsByName(authorName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
|
||||
|
||||
/**
|
||||
* Searches for persons with advanced filters (Topic & Institution) and pagination.
|
||||
*
|
||||
* @endpoint get /api/inse-service/persons/search-list
|
||||
* @param query Search query (e.g., Arman AND Arzani)
|
||||
* @param institutionName Filter by institution name
|
||||
* @param topic Filter by topic display names
|
||||
* @param page Page number (1-indexed)
|
||||
* @param pageSize Results per page
|
||||
* @param include Comma-separated include tags
|
||||
*/
|
||||
searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, extraHttpRequestParams?: any): Observable<CustomAuthorsListResponse>;
|
||||
|
||||
}
|
||||
@@ -17,19 +17,22 @@ import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { HTTPValidationError } from '../model/http-validation-error';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
import {
|
||||
TopicsServiceInterface
|
||||
} from './topics.serviceInterface';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class TopicsService extends BaseService {
|
||||
export class TopicsService extends BaseService implements TopicsServiceInterface {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* 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 { HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { HTTPValidationError } from '../model/models';
|
||||
|
||||
|
||||
import { Configuration } from '../configuration';
|
||||
|
||||
|
||||
|
||||
export interface TopicsServiceInterface {
|
||||
defaultHeaders: HttpHeaders;
|
||||
configuration: Configuration;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
buildTopicCache(pageSize?: number, saveJson?: boolean, extraHttpRequestParams?: any): Observable<object>;
|
||||
|
||||
/**
|
||||
* Counts topic hierarchy occurrences from cache.
|
||||
*
|
||||
* @endpoint get /api/inse-service/topics/count
|
||||
* @param topic Topic names (repeat parameter).
|
||||
*/
|
||||
countTopicHierarchy(topic: Array<string>, extraHttpRequestParams?: any): Observable<object>;
|
||||
|
||||
}
|
||||
@@ -9,33 +9,39 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import {
|
||||
HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { HTTPValidationError } from '../model/http-validation-error';
|
||||
// @ts-ignore
|
||||
import { TopicsByTime } from '../model/topicsByTime';
|
||||
// @ts-ignore
|
||||
import { WorkPage } from '../model/workPage';
|
||||
// @ts-ignore
|
||||
import { WorksListResponse } from '../model/worksListResponse';
|
||||
import { WorksListResponse } from '../model/works-list-response';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
import {
|
||||
WorksServiceInterface
|
||||
} from './works.serviceInterface';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class WorksService extends BaseService {
|
||||
export class WorksService extends BaseService implements WorksServiceInterface {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
@@ -46,10 +52,10 @@ export class WorksService extends BaseService {
|
||||
* @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 getAllAuthorWorks(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<WorksListResponse>;
|
||||
public getAllAuthorWorks(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<WorksListResponse>>;
|
||||
public getAllAuthorWorks(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<WorksListResponse>>;
|
||||
public getAllAuthorWorks(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public getAllAuthorWorks(authorId: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<WorksListResponse>;
|
||||
public getAllAuthorWorks(authorId: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpResponse<WorksListResponse>>;
|
||||
public getAllAuthorWorks(authorId: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpEvent<WorksListResponse>>;
|
||||
public getAllAuthorWorks(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 getAllAuthorWorks.');
|
||||
}
|
||||
@@ -82,7 +88,7 @@ export class WorksService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/all`;
|
||||
let localVarPath = `/api/works/${this.configuration.encodeParam({ name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/all`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<WorksListResponse>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
@@ -109,35 +115,35 @@ export class WorksService extends BaseService {
|
||||
* @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 getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<WorkPage>;
|
||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<WorkPage>>;
|
||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<WorkPage>>;
|
||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<WorkPage>;
|
||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpResponse<WorkPage>>;
|
||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpEvent<WorkPage>>;
|
||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<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 getAuthorWorks.');
|
||||
}
|
||||
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>page, 'page');
|
||||
<any>page, 'page');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>size, 'size');
|
||||
<any>size, 'size');
|
||||
if (publicationYear) {
|
||||
publicationYear.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'publication_year');
|
||||
<any>element, 'publication_year');
|
||||
})
|
||||
}
|
||||
if (type) {
|
||||
type.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'type');
|
||||
<any>element, 'type');
|
||||
})
|
||||
}
|
||||
if (language) {
|
||||
language.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'language');
|
||||
<any>element, 'language');
|
||||
})
|
||||
}
|
||||
|
||||
@@ -169,7 +175,7 @@ export class WorksService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
||||
let localVarPath = `/api/works/${this.configuration.encodeParam({ name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<WorkPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
@@ -185,4 +191,68 @@ export class WorksService extends BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns topics grouped by publication year for an author.
|
||||
* @endpoint get /api/works/{author_id}/topics-by-time
|
||||
* @param authorId The author id, for example A5023888391.
|
||||
* @param maxTopicsPerYear The maximum number of topics per year.
|
||||
* @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 getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<TopicsByTime>;
|
||||
public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpResponse<TopicsByTime>>;
|
||||
public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpEvent<TopicsByTime>>;
|
||||
public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: 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 getTopicsByTimeByAuthor.');
|
||||
}
|
||||
|
||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>maxTopicsPerYear, 'max_topics_per_year');
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (bearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/works/${this.configuration.encodeParam({ name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/topics-by-time`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<TopicsByTime>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* 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 { HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { HTTPValidationError } from '../model/models';
|
||||
import { WorkPage } from '../model/models';
|
||||
import { WorksListResponse } from '../model/models';
|
||||
|
||||
|
||||
import { Configuration } from '../configuration';
|
||||
|
||||
|
||||
|
||||
export interface WorksServiceInterface {
|
||||
defaultHeaders: HttpHeaders;
|
||||
configuration: Configuration;
|
||||
|
||||
/**
|
||||
* Returns all works for an author.
|
||||
*
|
||||
* @endpoint get /api/works/{author_id}/all
|
||||
* @param authorId The author id, for example A5023888391.
|
||||
*/
|
||||
getAllAuthorWorks(authorId: string, extraHttpRequestParams?: any): Observable<WorksListResponse>;
|
||||
|
||||
/**
|
||||
* Returns a page of works for an author.
|
||||
*
|
||||
* @endpoint get /api/works/{author_id}
|
||||
* @param authorId The author id, for example A5023888391.
|
||||
* @param page The page number.
|
||||
* @param size The page size.
|
||||
* @param publicationYear Filter by publication year. Can be repeated.
|
||||
* @param type Filter by publication type. Can be repeated.
|
||||
* @param language Filter by language code. Can be repeated.
|
||||
*/
|
||||
getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, extraHttpRequestParams?: any): Observable<WorkPage>;
|
||||
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { AuthScope } from './authScope';
|
||||
import { AuthScope } from './auth-scope';
|
||||
|
||||
|
||||
export interface AccessGrant {
|
||||
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { AuthAccount } from './authAccount';
|
||||
import { AuthAccount } from './auth-account';
|
||||
|
||||
|
||||
export interface AuthScope {
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { DehydratedInstitution } from './dehydratedInstitution';
|
||||
import { DehydratedInstitution } from './dehydrated-institution';
|
||||
|
||||
|
||||
/**
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { Model2YrMeanCitedness } from './model2YrMeanCitedness';
|
||||
import { Model2YrMeanCitedness } from './model2-yr-mean-citedness';
|
||||
|
||||
|
||||
/**
|
||||
@@ -7,13 +7,13 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { AuthorAffiliationsInner } from './authorAffiliationsInner';
|
||||
import { AuthorParsedLongestName } from './authorParsedLongestName';
|
||||
import { DehydratedInstitution } from './dehydratedInstitution';
|
||||
import { AuthorCountsByYearInner } from './authorCountsByYearInner';
|
||||
import { AuthorIds } from './authorIds';
|
||||
import { AuthorSummaryStats } from './authorSummaryStats';
|
||||
import { WorkTopic } from './workTopic';
|
||||
import { AuthorAffiliationsInner } from './author-affiliations-inner';
|
||||
import { AuthorParsedLongestName } from './author-parsed-longest-name';
|
||||
import { DehydratedInstitution } from './dehydrated-institution';
|
||||
import { AuthorCountsByYearInner } from './author-counts-by-year-inner';
|
||||
import { AuthorIds } from './author-ids';
|
||||
import { AuthorSummaryStats } from './author-summary-stats';
|
||||
import { WorkTopic } from './work-topic';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
import { Meta } from './meta';
|
||||
import { Author } from './author';
|
||||
import { GroupByResult } from './groupByResult';
|
||||
import { GroupByResult } from './group-by-result';
|
||||
|
||||
|
||||
/**
|
||||
@@ -7,8 +7,8 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { DehydratedInstitution } from './dehydratedInstitution';
|
||||
import { DehydratedAuthor } from './dehydratedAuthor';
|
||||
import { DehydratedInstitution } from './dehydrated-institution';
|
||||
import { DehydratedAuthor } from './dehydrated-author';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
+3
-3
@@ -10,9 +10,9 @@
|
||||
|
||||
|
||||
export const CollaborationNetworkNodeType = {
|
||||
Author: 'author',
|
||||
Institution: 'institution',
|
||||
Work: 'work'
|
||||
author: 'author',
|
||||
institution: 'institution',
|
||||
work: 'work'
|
||||
} as const;
|
||||
export type CollaborationNetworkNodeType = typeof CollaborationNetworkNodeType[keyof typeof CollaborationNetworkNodeType];
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType';
|
||||
import { CollaborationNetworkNodeType } from './collaboration-network-node-type';
|
||||
|
||||
|
||||
export interface CollaborationNetworkNode {
|
||||
+3
-3
@@ -7,9 +7,9 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { FilterInformation } from './filterInformation';
|
||||
import { CollaborationNetworkEdge } from './collaborationNetworkEdge';
|
||||
import { CollaborationNetworkNode } from './collaborationNetworkNode';
|
||||
import { FilterInformation } from './filter-information';
|
||||
import { CollaborationNetworkEdge } from './collaboration-network-edge';
|
||||
import { CollaborationNetworkNode } from './collaboration-network-node';
|
||||
|
||||
|
||||
export interface CollaborationNetwork {
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* 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 { AuthorAffiliationsInner } from './author-affiliations-inner';
|
||||
import { AuthorParsedLongestName } from './author-parsed-longest-name';
|
||||
import { DehydratedInstitution } from './dehydrated-institution';
|
||||
import { AuthorCountsByYearInner } from './author-counts-by-year-inner';
|
||||
import { AuthorIds } from './author-ids';
|
||||
import { AuthorSummaryStats } from './author-summary-stats';
|
||||
import { WorkTopic } from './work-topic';
|
||||
|
||||
|
||||
export interface CustomAuthor {
|
||||
id?: string | null;
|
||||
orcid?: string | null;
|
||||
display_name?: string | null;
|
||||
display_name_alternatives?: Array<string> | null;
|
||||
longest_name?: string | null;
|
||||
parsed_longest_name?: AuthorParsedLongestName | null;
|
||||
works_count?: number | null;
|
||||
cited_by_count?: number | null;
|
||||
summary_stats?: AuthorSummaryStats | null;
|
||||
affiliations?: Array<AuthorAffiliationsInner> | null;
|
||||
last_known_institutions?: Array<DehydratedInstitution> | null;
|
||||
topics?: Array<WorkTopic> | null;
|
||||
counts_by_year?: Array<AuthorCountsByYearInner> | null;
|
||||
ids?: AuthorIds | null;
|
||||
works_api_url?: string | null;
|
||||
created_date?: string | null;
|
||||
updated_date?: string | null;
|
||||
relevance_rating?: string | null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { Meta } from './meta';
|
||||
import { CustomAuthor } from './custom-author';
|
||||
import { GroupByResult } from './group-by-result';
|
||||
|
||||
|
||||
export interface CustomAuthorsListResponse {
|
||||
meta?: Meta | null;
|
||||
results?: Array<CustomAuthor> | null;
|
||||
group_by?: Array<GroupByResult> | null;
|
||||
}
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { InstitutionInformation } from './institutionInformation';
|
||||
import { WorkTopicInformation } from './workTopicInformation';
|
||||
import { InstitutionInformation } from './institution-information';
|
||||
import { WorkTopicInformation } from './work-topic-information';
|
||||
|
||||
|
||||
export interface FilterInformation {
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { ValidationError } from './validationError';
|
||||
import { ValidationError } from './validation-error';
|
||||
|
||||
|
||||
export interface HTTPValidationError {
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { AuthScope } from './authScope';
|
||||
import { AuthScope } from './auth-scope';
|
||||
|
||||
|
||||
export interface IdentityGrant {
|
||||
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { DehydratedSource } from './dehydratedSource';
|
||||
import { DehydratedSource } from './dehydrated-source';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { CostUsd } from './costUsd';
|
||||
import { CostUsd } from './cost-usd';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,57 +1,62 @@
|
||||
export * from './accessGrant';
|
||||
export * from './authAccount';
|
||||
export * from './authScope';
|
||||
export * from './access-grant';
|
||||
export * from './auth-account';
|
||||
export * from './auth-scope';
|
||||
export * from './author';
|
||||
export * from './authorAffiliationsInner';
|
||||
export * from './authorCountsByYearInner';
|
||||
export * from './authorIds';
|
||||
export * from './authorParsedLongestName';
|
||||
export * from './authorSummaryStats';
|
||||
export * from './authorsListResponse';
|
||||
export * from './author-affiliations-inner';
|
||||
export * from './author-counts-by-year-inner';
|
||||
export * from './author-ids';
|
||||
export * from './author-parsed-longest-name';
|
||||
export * from './author-summary-stats';
|
||||
export * from './authors-list-response';
|
||||
export * from './authorship';
|
||||
export * from './award';
|
||||
export * from './collaborationNetwork';
|
||||
export * from './collaborationNetworkEdge';
|
||||
export * from './collaborationNetworkNode';
|
||||
export * from './collaborationNetworkNodeType';
|
||||
export * from './costUsd';
|
||||
export * from './dehydratedAuthor';
|
||||
export * from './dehydratedFunder';
|
||||
export * from './dehydratedInstitution';
|
||||
export * from './dehydratedSource';
|
||||
export * from './filterInformation';
|
||||
export * from './filterProperties';
|
||||
export * from './collaboration-network';
|
||||
export * from './collaboration-network-edge';
|
||||
export * from './collaboration-network-node';
|
||||
export * from './collaboration-network-node-type';
|
||||
export * from './cost-usd';
|
||||
export * from './custom-author';
|
||||
export * from './custom-authors-list-response';
|
||||
export * from './dehydrated-author';
|
||||
export * from './dehydrated-funder';
|
||||
export * from './dehydrated-institution';
|
||||
export * from './dehydrated-source';
|
||||
export * from './filter-information';
|
||||
export * from './filter-properties';
|
||||
export * from './fwci';
|
||||
export * from './groupByResult';
|
||||
export * from './hTTPValidationError';
|
||||
export * from './identityGrant';
|
||||
export * from './institutionInformation';
|
||||
export * from './group-by-result';
|
||||
export * from './http-validation-error';
|
||||
export * from './identity-grant';
|
||||
export * from './institution-information';
|
||||
export * from './item';
|
||||
export * from './itemCreate';
|
||||
export * from './itemPage';
|
||||
export * from './item-create';
|
||||
export * from './item-page';
|
||||
export * from './location';
|
||||
export * from './meta';
|
||||
export * from './model2YrMeanCitedness';
|
||||
export * from './openAccess';
|
||||
export * from './personBio';
|
||||
export * from './model2-yr-mean-citedness';
|
||||
export * from './open-access';
|
||||
export * from './person-bio';
|
||||
export * from './score';
|
||||
export * from './validationError';
|
||||
export * from './validationErrorLocInner';
|
||||
export * from './validation-error';
|
||||
export * from './validation-error-loc-inner';
|
||||
export * from './topicCount';
|
||||
export * from './topicsByTime';
|
||||
export * from './topicsByYear';
|
||||
export * from './value';
|
||||
export * from './work';
|
||||
export * from './workBiblio';
|
||||
export * from './workCitationNormalizedPercentile';
|
||||
export * from './workCitedByPercentileYear';
|
||||
export * from './workCountsByYearInner';
|
||||
export * from './workHasContent';
|
||||
export * from './workIds';
|
||||
export * from './workKeyword';
|
||||
export * from './workMeshInner';
|
||||
export * from './workPage';
|
||||
export * from './workSustainableDevelopmentGoalsInner';
|
||||
export * from './workTopic';
|
||||
export * from './workTopicDomain';
|
||||
export * from './workTopicField';
|
||||
export * from './workTopicInformation';
|
||||
export * from './workTopicSubfield';
|
||||
export * from './worksListResponse';
|
||||
export * from './work-biblio';
|
||||
export * from './work-citation-normalized-percentile';
|
||||
export * from './work-cited-by-percentile-year';
|
||||
export * from './work-counts-by-year-inner';
|
||||
export * from './work-has-content';
|
||||
export * from './work-ids';
|
||||
export * from './work-keyword';
|
||||
export * from './work-mesh-inner';
|
||||
export * from './work-page';
|
||||
export * from './work-sustainable-development-goals-inner';
|
||||
export * from './work-topic';
|
||||
export * from './work-topic-domain';
|
||||
export * from './work-topic-field';
|
||||
export * from './work-topic-information';
|
||||
export * from './work-topic-subfield';
|
||||
export * from './works-list-response';
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
export interface TopicCount {
|
||||
/**
|
||||
* The topic display name.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The number of occurrences.
|
||||
*/
|
||||
count?: number;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 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 { TopicsByYear } from './topicsByYear';
|
||||
|
||||
|
||||
export interface TopicsByTime {
|
||||
/**
|
||||
* Topics grouped by year.
|
||||
*/
|
||||
elements?: Array<TopicsByYear>;
|
||||
/**
|
||||
* The number of years.
|
||||
*/
|
||||
total?: number;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 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 { TopicCount } from './topicCount';
|
||||
|
||||
|
||||
export interface TopicsByYear {
|
||||
/**
|
||||
* The publication year.
|
||||
*/
|
||||
year: number;
|
||||
/**
|
||||
* The number of works in this year.
|
||||
*/
|
||||
publication_count?: number;
|
||||
/**
|
||||
* The topics in this year.
|
||||
*/
|
||||
topics?: Array<TopicCount>;
|
||||
/**
|
||||
* The primary topics in this year.
|
||||
*/
|
||||
primary_topics?: Array<TopicCount>;
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { ValidationErrorLocInner } from './validationErrorLocInner';
|
||||
import { ValidationErrorLocInner } from './validation-error-loc-inner';
|
||||
|
||||
|
||||
export interface ValidationError {
|
||||
@@ -8,9 +8,9 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { Score } from './score';
|
||||
import { WorkTopicDomain } from './workTopicDomain';
|
||||
import { WorkTopicSubfield } from './workTopicSubfield';
|
||||
import { WorkTopicField } from './workTopicField';
|
||||
import { WorkTopicDomain } from './work-topic-domain';
|
||||
import { WorkTopicSubfield } from './work-topic-subfield';
|
||||
import { WorkTopicField } from './work-topic-field';
|
||||
|
||||
|
||||
/**
|
||||
@@ -7,22 +7,22 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { DehydratedFunder } from './dehydratedFunder';
|
||||
import { DehydratedFunder } from './dehydrated-funder';
|
||||
import { Authorship } from './authorship';
|
||||
import { OpenAccess } from './openAccess';
|
||||
import { WorkIds } from './workIds';
|
||||
import { WorkSustainableDevelopmentGoalsInner } from './workSustainableDevelopmentGoalsInner';
|
||||
import { WorkTopic } from './workTopic';
|
||||
import { WorkCountsByYearInner } from './workCountsByYearInner';
|
||||
import { WorkKeyword } from './workKeyword';
|
||||
import { WorkCitationNormalizedPercentile } from './workCitationNormalizedPercentile';
|
||||
import { OpenAccess } from './open-access';
|
||||
import { WorkIds } from './work-ids';
|
||||
import { WorkSustainableDevelopmentGoalsInner } from './work-sustainable-development-goals-inner';
|
||||
import { WorkTopic } from './work-topic';
|
||||
import { WorkCountsByYearInner } from './work-counts-by-year-inner';
|
||||
import { WorkKeyword } from './work-keyword';
|
||||
import { WorkCitationNormalizedPercentile } from './work-citation-normalized-percentile';
|
||||
import { Award } from './award';
|
||||
import { Fwci } from './fwci';
|
||||
import { WorkMeshInner } from './workMeshInner';
|
||||
import { WorkCitedByPercentileYear } from './workCitedByPercentileYear';
|
||||
import { WorkHasContent } from './workHasContent';
|
||||
import { WorkMeshInner } from './work-mesh-inner';
|
||||
import { WorkCitedByPercentileYear } from './work-cited-by-percentile-year';
|
||||
import { WorkHasContent } from './work-has-content';
|
||||
import { Location } from './location';
|
||||
import { WorkBiblio } from './workBiblio';
|
||||
import { WorkBiblio } from './work-biblio';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
import { Meta } from './meta';
|
||||
import { Work } from './work';
|
||||
import { GroupByResult } from './groupByResult';
|
||||
import { GroupByResult } from './group-by-result';
|
||||
|
||||
|
||||
/**
|
||||
@@ -5,10 +5,7 @@
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background:
|
||||
radial-gradient(circle at 18% 18%, var(--sg-cyan-soft), transparent 34%),
|
||||
radial-gradient(circle at 82% 76%, var(--sg-coral-soft), transparent 32%),
|
||||
linear-gradient(160deg, #f8faff 0%, #eef4ff 100%);
|
||||
background: linear-gradient(160deg, #f4f6fb 0%, #e8ecf7 100%);
|
||||
}
|
||||
|
||||
.form {
|
||||
@@ -18,7 +15,7 @@
|
||||
background: white;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 12px rgba(23, 32, 51, 0.10), 0 1px 4px rgba(0,0,0,0.06);
|
||||
box-shadow: 0 2px 12px rgba(26, 58, 110, 0.10), 0 1px 4px rgba(0,0,0,0.06);
|
||||
gap: 20px;
|
||||
padding: 36px 32px 28px;
|
||||
}
|
||||
@@ -26,7 +23,7 @@
|
||||
.form h3 {
|
||||
margin: 0 0 4px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-primary-strong);
|
||||
color: #1a3a6e;
|
||||
}
|
||||
|
||||
.button {
|
||||
@@ -47,9 +44,9 @@
|
||||
height: 2em;
|
||||
text-align: center;
|
||||
font-size: small;
|
||||
color: var(--sg-text-muted);
|
||||
color: #585f71;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: var(--sg-danger);
|
||||
color: #ba1a1a;
|
||||
}
|
||||
|
||||
@@ -1,78 +1,226 @@
|
||||
<section class="person-list-page">
|
||||
<header class="page-header">
|
||||
<div>
|
||||
<h1>Passende Personen finden</h1>
|
||||
<p>
|
||||
Durchsuchen Sie OpenAlex-Autorinnen und -Autoren nach Namen, Themen oder
|
||||
Kennungen.
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="layout-container">
|
||||
|
||||
<div class="toolbar">
|
||||
<span class="result-count">{{ resultRange() }}</span>
|
||||
</div>
|
||||
|
||||
<section class="results-panel">
|
||||
<div class="results-head">
|
||||
<strong>{{ total | number: "1.0-0" }} Personen gefunden</strong>
|
||||
<span>Sortiert nach Publikationen und Zitierungen</span>
|
||||
</div>
|
||||
|
||||
@if (loading) {
|
||||
<div class="loading-state">
|
||||
<mat-spinner diameter="40"></mat-spinner>
|
||||
</div>
|
||||
} @else if (persons.length) {
|
||||
<div class="person-grid">
|
||||
@for (person of persons; track person.id) {
|
||||
<article class="person-card">
|
||||
<a
|
||||
class="card-link"
|
||||
[routerLink]="['/person', person.id, 'overview']"
|
||||
>
|
||||
<div class="person-main">
|
||||
<div>
|
||||
<h2>{{ person.display_name }}</h2>
|
||||
<p>{{ institution(person) }}</p>
|
||||
</div>
|
||||
|
||||
<div class="topic-row">
|
||||
@for (topic of topics(person); track topic) {
|
||||
<span>{{ topic }}</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="stats">
|
||||
<span>
|
||||
<mat-icon>article</mat-icon>
|
||||
{{ person.works_count | number: "1.0-0" }} Publikationen
|
||||
</span>
|
||||
<span>
|
||||
<mat-icon>format_quote</mat-icon>
|
||||
{{ person.cited_by_count | number: "1.0-0" }} Zitierungen
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</article>
|
||||
<!-- Left Column: Results Panel -->
|
||||
<main class="results-column">
|
||||
<header class="page-header">
|
||||
<div>
|
||||
<h1>Passende Personen finden</h1>
|
||||
<p>
|
||||
Durchsuchen Sie OpenAlex-Autorinnen und -Autoren nach Namen, Themen oder Kennungen.
|
||||
</p>
|
||||
</div>
|
||||
@if (state.searchValue()) {
|
||||
<div class="selection-summary">
|
||||
<div>
|
||||
<strong>Aktive Suche</strong>
|
||||
<span>„{{ state.searchValue() }}“</span>
|
||||
</div>
|
||||
<button mat-icon-button (click)="clearSearch()" matTooltip="Suche zurücksetzen">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
<div class="empty-state">
|
||||
<mat-icon>person_search</mat-icon>
|
||||
<h2>Keine Personen gefunden</h2>
|
||||
<p>Versuchen Sie einen anderen Suchbegriff.</p>
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
|
||||
<mat-paginator
|
||||
[length]="total"
|
||||
[pageIndex]="pageIndex"
|
||||
[pageSize]="paginationService.selection"
|
||||
[pageSizeOptions]="paginationService.options"
|
||||
(page)="onPage($event)"
|
||||
aria-label="Personen Seitensteuerung"
|
||||
></mat-paginator>
|
||||
</section>
|
||||
</section>
|
||||
<!-- Active Filter Chips Row -->
|
||||
@if (activeFilters.length) {
|
||||
<div class="active-filters-row">
|
||||
<span class="active-filters-label">Aktive Filter:</span>
|
||||
<div class="chips-container">
|
||||
@for (filter of activeFilters; track filter.value) {
|
||||
<span class="filter-chip">
|
||||
{{ filter.label }}
|
||||
<button class="remove-chip-btn" (click)="removeFilter(filter)" aria-label="Filter entfernen">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</span>
|
||||
}
|
||||
<button class="clear-all-btn" (click)="clearAllFilters()">
|
||||
Filter zurücksetzen
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="toolbar">
|
||||
<span class="result-count">{{ resultRange() }}</span>
|
||||
|
||||
<div class="toolbar-actions">
|
||||
<div class="sort-selector">
|
||||
<span class="sort-label">Sortierung:</span>
|
||||
<div class="select-wrapper">
|
||||
<select [formControl]="sortControl">
|
||||
<option value="relevance">Beste Treffer (Relevanz)</option>
|
||||
<option value="works">Publikationen (absteigend)</option>
|
||||
<option value="citations">Zitierungen (absteigend)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="results-panel">
|
||||
<div class="results-head">
|
||||
<strong>{{ total | number: "1.0-0" }} Personen gefunden</strong>
|
||||
<span>Sortiert nach Publikationen und Zitierungen</span>
|
||||
</div>
|
||||
|
||||
@if (loading) {
|
||||
<div class="loading-state">
|
||||
<mat-spinner diameter="40"></mat-spinner>
|
||||
</div>
|
||||
} @else if (sortedPersons.length) {
|
||||
<div class="person-grid">
|
||||
@for (person of sortedPersons; track person.id) {
|
||||
<article class="person-card">
|
||||
<div class="card-header">
|
||||
<!-- Initials Avatar or Profile Image fallback -->
|
||||
<div class="avatar">
|
||||
{{ getInitials(person.display_name) }}
|
||||
</div>
|
||||
<div class="header-main">
|
||||
<div class="rating-and-bookmark">
|
||||
@if (person.relevance_rating) {
|
||||
<span class="suitability-badge" [ngClass]="getRatingClass(person.relevance_rating)">
|
||||
{{ person.relevance_rating }}
|
||||
</span>
|
||||
}
|
||||
<button class="bookmark-btn" (click)="toggleBookmark(person)"
|
||||
[class.bookmarked]="isBookmarked(person)" aria-label="Bookmark person">
|
||||
<mat-icon>{{ isBookmarked(person) ? 'bookmark' : 'bookmark_border' }}</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
<h2 class="person-name">{{ person.display_name }}</h2>
|
||||
<p class="institution">{{ institution(person) }}</p>
|
||||
<p class="person-id">{{ getDistinguishingId(person) }}</p>
|
||||
<p class="stats">
|
||||
Works: {{ person.works_count }} ·
|
||||
Citations: {{ person.cited_by_count }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="topic-row">
|
||||
@for (topic of topics(person); track topic) {
|
||||
<span class="topic-tag">{{ topic }}</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<div class="action-buttons">
|
||||
<a [routerLink]="['/person', person.id, 'overview']" class="action-btn">
|
||||
<mat-icon>visibility</mat-icon>
|
||||
<span>Übersicht</span>
|
||||
</a>
|
||||
<a [routerLink]="['/person', person.id, 'publications']" class="action-btn">
|
||||
<mat-icon>menu_book</mat-icon>
|
||||
<span>Publikationen</span>
|
||||
</a>
|
||||
<a [routerLink]="['/person', person.id, 'network']" class="action-btn">
|
||||
<mat-icon>share</mat-icon>
|
||||
<span>Netzwerk</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
<div class="empty-state">
|
||||
<mat-icon>person_search</mat-icon>
|
||||
<h2>Keine Personen gefunden</h2>
|
||||
<p>Versuchen Sie einen anderen Suchbegriff oder passen Sie die Filter an.</p>
|
||||
</div>
|
||||
}
|
||||
|
||||
<!-- Custom Pagination Controls -->
|
||||
@if (totalPages > 1) {
|
||||
<div class="custom-pagination">
|
||||
<button class="paginator-btn" [disabled]="isFirstPage()" (click)="prevPage()" aria-label="Vorherige Seite">
|
||||
<mat-icon>chevron_left</mat-icon>
|
||||
<span>Vorherige</span>
|
||||
</button>
|
||||
|
||||
<div class="page-numbers">
|
||||
@for (p of pageList; track p) {
|
||||
<button class="page-number-btn" [class.active]="p === currentPage" (click)="goToPage(p)">
|
||||
{{ p }}
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
|
||||
<button class="paginator-btn" [disabled]="isLastPage()" (click)="nextPage()" aria-label="Nächste Seite">
|
||||
<span>Nächste</span>
|
||||
<mat-icon>chevron_right</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<!-- Right Column: Sidebar Filters -->
|
||||
<aside class="filters-sidebar">
|
||||
<div class="sidebar-header">
|
||||
<mat-icon>filter_alt</mat-icon>
|
||||
<h2>Filter & Suche</h2>
|
||||
</div>
|
||||
|
||||
<!-- Section 1: Topics Search and Selection -->
|
||||
<div class="filter-section">
|
||||
<h3 class="filter-section-title">Themen & Expertise</h3>
|
||||
|
||||
<div class="topic-search-wrapper">
|
||||
<mat-icon>search</mat-icon>
|
||||
<input type="text" [formControl]="topicSearchControl" placeholder="Thema suchen..." />
|
||||
@if (topicSearchControl.value) {
|
||||
<button class="clear-topic-search" (click)="topicSearchControl.setValue('')">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="checkbox-list">
|
||||
@for (topic of filteredTopicsList; track topic) {
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" [checked]="isTopicSelected(topic)" (change)="toggleTopic(topic)" />
|
||||
<span class="checkbox-text">{{ topic }}</span>
|
||||
</label>
|
||||
}
|
||||
|
||||
@if (topicsList.length > 5 && !topicSearchControl.value) {
|
||||
<button class="show-more-btn" (click)="toggleShowAllTopics()">
|
||||
<span>{{ showAllTopics ? 'Weniger anzeigen' : 'Mehr anzeigen' }}</span>
|
||||
<mat-icon>{{ showAllTopics ? 'expand_less' : 'expand_more' }}</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Section 2: Institution Filter -->
|
||||
<div class="filter-section">
|
||||
<h3 class="filter-section-title">Institution</h3>
|
||||
<div class="topic-search-wrapper">
|
||||
<mat-icon>business</mat-icon>
|
||||
<input type="text" [formControl]="institutionControl" placeholder="Institution suchen..."
|
||||
(keyup.enter)="applySidebarFilters()" />
|
||||
@if (institutionControl.value) {
|
||||
<button class="clear-topic-search" (click)="institutionControl.setValue(''); applySidebarFilters()">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar Footer Action showing matches count -->
|
||||
<div class="sidebar-footer">
|
||||
<button class="submit-btn" (click)="applySidebarFilters()" [disabled]="loading">
|
||||
<span>{{ total | number: "1.0-0" }} Personen anzeigen</span>
|
||||
</button>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
@@ -1,285 +1,657 @@
|
||||
.person-list-page {
|
||||
display: grid;
|
||||
gap: 24px;
|
||||
padding: 32px;
|
||||
padding: 24px;
|
||||
background: var(--sg-background);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.layout-container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 280px;
|
||||
gap: 24px;
|
||||
align-items: start;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.results-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
|
||||
gap: 32px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
gap: 16px;
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 8px;
|
||||
color: var(--sg-primary);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: 26px;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
margin: 0;
|
||||
font-size: 28px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.page-header p:not(.eyebrow) {
|
||||
max-width: 720px;
|
||||
margin: 10px 0 0;
|
||||
color: var(--sg-text-muted);
|
||||
p {
|
||||
margin: 4px 0 0;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.selection-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 80px;
|
||||
padding: 18px 20px;
|
||||
gap: 12px;
|
||||
padding: 8px 12px;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
|
||||
strong {
|
||||
display: block;
|
||||
font-size: 11px;
|
||||
color: var(--sg-text-muted);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.active-filters-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
background: var(--sg-surface);
|
||||
padding: 8px 16px;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
flex-wrap: wrap;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.selection-summary div {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
.active-filters-label {
|
||||
font-weight: 600;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.selection-summary strong {
|
||||
.chips-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.filter-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 2px 8px;
|
||||
background: var(--sg-surface-soft);
|
||||
border: 1px solid var(--sg-border-strong);
|
||||
border-radius: 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-text);
|
||||
|
||||
button {
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
color: var(--sg-text-soft);
|
||||
|
||||
&:hover {
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
font-size: 12px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.selection-summary span {
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.selection-summary mat-icon {
|
||||
color: var(--sg-text-muted);
|
||||
.clear-all-btn {
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-warning);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.toolbar mat-form-field {
|
||||
width: min(100%, 520px);
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
.result-count {
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.results-panel {
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: var(--sg-surface);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.results-head {
|
||||
.sort-selector {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
min-height: 64px;
|
||||
padding: 0 22px;
|
||||
}
|
||||
|
||||
.results-head strong {
|
||||
color: var(--sg-text);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.results-head span {
|
||||
color: var(--sg-text-muted);
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
select {
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border-strong);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
padding: 6px 12px;
|
||||
font-size: 13px;
|
||||
color: var(--sg-text);
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.person-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
padding: 16px;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.person-card {
|
||||
min-width: 0;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
background: var(--sg-surface);
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
box-shadow 160ms ease,
|
||||
transform 160ms ease;
|
||||
}
|
||||
|
||||
.person-card:hover {
|
||||
border-color: var(--sg-border-strong);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.card-link {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr auto;
|
||||
gap: 18px;
|
||||
min-height: 236px;
|
||||
padding: 20px;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.person-main {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
gap: 18px;
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--sg-shadow-md);
|
||||
}
|
||||
}
|
||||
|
||||
.person-main h2 {
|
||||
margin: 0 0 6px;
|
||||
font-size: 17px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.person-main p {
|
||||
display: -webkit-box;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.topic-row {
|
||||
.card-header {
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
gap: 12px;
|
||||
border-bottom: 1px solid var(--sg-surface-soft);
|
||||
|
||||
.avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.header-main {
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.topic-row span {
|
||||
max-width: 100%;
|
||||
padding: 5px 10px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #bcd3ff;
|
||||
border-radius: 6px;
|
||||
background: #eff6ff;
|
||||
color: #064fc4;
|
||||
font-size: 12px;
|
||||
.rating-and-bookmark {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.suitability-badge {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
padding: 2px 6px;
|
||||
border-radius: 8px;
|
||||
text-transform: uppercase;
|
||||
|
||||
&.very-suitable {
|
||||
background: var(--sg-success-soft);
|
||||
color: var(--sg-success);
|
||||
}
|
||||
|
||||
&.suitable {
|
||||
background: var(--sg-warning-soft);
|
||||
color: var(--sg-warning);
|
||||
}
|
||||
|
||||
&.possible {
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
.bookmark-btn {
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
padding: 2px;
|
||||
color: var(--sg-text-soft);
|
||||
|
||||
&:hover {
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
|
||||
&.bookmarked {
|
||||
color: #e53935;
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.person-name {
|
||||
margin: 6px 0 2px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.institution {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.person-id {
|
||||
margin: 2px 0 0;
|
||||
font-size: 10px;
|
||||
color: var(--sg-text-soft);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.stats {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
color: var(--sg-text-muted);
|
||||
margin: 4px 0 0;
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.stats span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
.card-body {
|
||||
padding: 16px;
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.experience-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-muted);
|
||||
position: relative;
|
||||
padding-left: 12px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
&::before {
|
||||
content: "•";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.topic-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.topic-tag {
|
||||
background: var(--sg-surface-soft);
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
padding: 10px 12px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
background: var(--sg-surface-muted);
|
||||
}
|
||||
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.stats mat-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.loading-state,
|
||||
.empty-state {
|
||||
display: grid;
|
||||
min-height: 320px;
|
||||
place-items: center;
|
||||
padding: 32px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
align-content: center;
|
||||
gap: 8px;
|
||||
.action-btn {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
padding: 6px;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border-strong);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
|
||||
mat-icon {
|
||||
font-size: 12px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--sg-primary-soft);
|
||||
color: var(--sg-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.empty-state mat-icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 42px;
|
||||
.empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 48px 16px;
|
||||
background: var(--sg-surface);
|
||||
border: 1px dashed var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
mat-icon {
|
||||
font-size: 36px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0 0 4px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-state h2 {
|
||||
.custom-pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
.paginator-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 6px 12px;
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
color: var(--sg-text);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
|
||||
mat-icon {
|
||||
font-size: 16px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
.page-numbers {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.page-number-btn {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&:hover {
|
||||
background: var(--sg-surface-soft);
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.filters-sidebar {
|
||||
background: var(--sg-surface);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
padding: 16px;
|
||||
box-shadow: var(--sg-shadow-sm);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
position: sticky;
|
||||
top: 16px;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
|
||||
mat-icon {
|
||||
color: var(--sg-primary);
|
||||
font-size: 20px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.filter-section-title {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: var(--sg-text-muted);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.empty-state p {
|
||||
margin: 0;
|
||||
.topic-search-wrapper {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--sg-surface-soft);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
padding: 4px 8px;
|
||||
|
||||
mat-icon {
|
||||
font-size: 16px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
input {
|
||||
border: none;
|
||||
background: transparent;
|
||||
outline: none;
|
||||
font-size: 12px;
|
||||
color: var(--sg-text);
|
||||
flex-grow: 1;
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
.clear-topic-search {
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
color: var(--sg-text-soft);
|
||||
|
||||
mat-icon {
|
||||
font-size: 14px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mat-paginator {
|
||||
.checkbox-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
|
||||
input[type="checkbox"] {
|
||||
accent-color: var(--sg-primary);
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.checkbox-text {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
}
|
||||
|
||||
.show-more-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
padding: 2px 0;
|
||||
|
||||
mat-icon {
|
||||
font-size: 14px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-footer {
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
.person-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
.submit-btn {
|
||||
width: 100%;
|
||||
background: var(--sg-primary);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: var(--sg-radius-sm);
|
||||
padding: 10px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: var(--sg-primary-strong);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
@media (max-width: 1024px) {
|
||||
.layout-container {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.filters-sidebar {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.person-list-page {
|
||||
padding: 24px 16px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.toolbar,
|
||||
.results-head {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.results-head {
|
||||
justify-content: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.result-count {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.person-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.stats {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user