Compare commits
106
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7b6255e54 | ||
|
|
0f9991b618 | ||
|
|
ac97c9f496 | ||
|
|
8261de4a02 | ||
|
|
f69b3cf871 | ||
|
|
4338b1cc0e | ||
|
|
d5164f9863 | ||
|
|
86fc87f507 | ||
|
|
156e31643c | ||
|
|
a21030309e | ||
|
|
a8db8194cf | ||
|
|
ce218cbfa1 | ||
|
|
ae80f0f812 | ||
|
|
fed1e56c81 | ||
|
|
e0d1f0df5c | ||
|
|
27301bf6a5 | ||
|
|
bbd4ff8685 | ||
|
|
dbc53a9a49 | ||
|
|
0f0f30f08c | ||
|
|
6c3c43ef4f | ||
|
|
a5f6ccc75b | ||
|
|
cfa2c768eb | ||
|
|
54e0701698 | ||
|
|
4a61c00642 | ||
|
|
49c45cb924 | ||
|
|
ad14f60a2c | ||
|
|
2bcd1d4586 | ||
|
|
5d2d694a20 | ||
|
|
dc31b21dac | ||
|
|
d28a662da3 | ||
|
|
8a418a99b4 | ||
|
|
17100024e5 | ||
|
|
9b95728c7b | ||
|
|
4937889968 | ||
|
|
36773c4ae2 | ||
|
|
353d938d3e | ||
|
|
f02e510847 | ||
|
|
6e0acb9cde | ||
|
|
a0fdc8799b | ||
|
|
f4656fcf39 | ||
|
|
d73ee592ea | ||
|
|
c6e1051059 | ||
|
|
014364ec03 | ||
|
|
024724b51d | ||
|
|
7798cdaea5 | ||
|
|
a1b9f5a084 | ||
|
|
6f79733b3e | ||
|
|
9cb01cab45 | ||
|
|
fc30865f34 | ||
|
|
b2a8af532d | ||
|
|
bee9b6e8fd | ||
|
|
cbd2e902a7 | ||
|
|
2cb6d1f660 | ||
|
|
ae2230ff0e | ||
|
|
12914208cd | ||
|
|
abb11077de | ||
|
|
ef1a5ad7a1 | ||
|
|
ed919832d8 | ||
|
|
ef2ea46882 | ||
|
|
da9516331e | ||
|
|
bd581e6004 | ||
|
|
e37f636236 | ||
|
|
0ec47e42e4 | ||
|
|
1369a2bf29 | ||
|
|
e0704bc8a5 | ||
|
|
d8041751c5 | ||
|
|
87b283ccfb | ||
|
|
16d44a0b88 | ||
|
|
07f8e8bcca | ||
|
|
cbfa60ae46 | ||
|
|
89ce894066 | ||
|
|
66487c20e7 | ||
|
|
08bc87e764 | ||
|
|
22afd0fbb5 | ||
|
|
5633b412d4 | ||
|
|
bd030ccb9f | ||
|
|
41037efd6f | ||
|
|
81c4094708 | ||
|
|
6382987990 | ||
|
|
3276bf46a7 | ||
|
|
da1a5b732d | ||
|
|
5702223716 | ||
|
|
21da33be11 | ||
|
|
92e421a61c | ||
|
|
8b150a81a0 | ||
|
|
91efbdffeb | ||
|
|
0dd2a5743d | ||
|
|
f8678af87e | ||
|
|
5e7f968808 | ||
|
|
0b6a74a8e3 | ||
|
|
da59e8137f | ||
|
|
103b6180d0 | ||
|
|
6edca93c1c | ||
|
|
a7548d59c0 | ||
|
|
8b1f7d6eb3 | ||
|
|
ff3ac03520 | ||
|
|
e51d3095bc | ||
|
|
d19003d531 | ||
|
|
6d5dd88e50 | ||
|
|
de70973296 | ||
|
|
2a5f104739 | ||
|
|
71bd10b303 | ||
|
|
97b7fe6a6f | ||
|
|
eb84d3014f | ||
|
|
2bdee21169 | ||
|
|
a278ad300f |
@@ -20,3 +20,5 @@ angular-app/.angular
|
|||||||
service/sentence_transformer/models/
|
service/sentence_transformer/models/
|
||||||
|
|
||||||
llm_evaluations/bio_generation/.venv
|
llm_evaluations/bio_generation/.venv
|
||||||
|
|
||||||
|
.devcontainer
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,193 +0,0 @@
|
|||||||
|
|
||||||
"""
|
|
||||||
This module defines the business logic for our
|
|
||||||
web service.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import json
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from inse.integrations import elasticsearch
|
|
||||||
from inse.models.openalex.topic import Topic
|
|
||||||
from inse.models.openalex.topic_domain import TopicDomain
|
|
||||||
from inse.models.openalex.topic_field import TopicField
|
|
||||||
from inse.models.openalex.topic_subfield import TopicSubfield
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
topic_cache_filename: str = "topic_hierarchy_cache.json"
|
|
||||||
|
|
||||||
|
|
||||||
def _load_topic_cache() -> dict:
|
|
||||||
"""Loads the topic hierarchy cache from a JSON file."""
|
|
||||||
import os
|
|
||||||
|
|
||||||
try:
|
|
||||||
cache_path = "/data/" + topic_cache_filename
|
|
||||||
if not os.path.exists(cache_path):
|
|
||||||
current_dir = os.path.dirname(__file__)
|
|
||||||
cache_path = os.path.join(current_dir, "..", "data", topic_cache_filename)
|
|
||||||
with open(cache_path, "r", encoding="utf-8") as f:
|
|
||||||
return json.load(f)
|
|
||||||
except Exception as exc:
|
|
||||||
logger.warning("Failed to load topic hierarchy cache: %s", exc)
|
|
||||||
return {}
|
|
||||||
|
|
||||||
|
|
||||||
async def build_topic_cache(save_json: bool = True) -> dict:
|
|
||||||
"""
|
|
||||||
Fetch topics from the hosted OpenAlex topics index and build a lookup cache (scheduled task).
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
save_json (bool): Whether to save the cache as a JSON file (default: True)
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
taxonomy_cache (dict): The topic hierarchy dictionary.
|
|
||||||
"""
|
|
||||||
output_filename: str = "topic_hierarchy_cache.json"
|
|
||||||
|
|
||||||
taxonomy_cache = {}
|
|
||||||
|
|
||||||
try:
|
|
||||||
async for hit in elasticsearch.scan(
|
|
||||||
index="openalex-topics",
|
|
||||||
query={"match_all": {}},
|
|
||||||
source=["display_name", "name", "id", "subfield", "field", "domain"],
|
|
||||||
cluster="nes",
|
|
||||||
):
|
|
||||||
source = hit.get("_source", {})
|
|
||||||
topic_name = source.get("display_name") or source.get("name")
|
|
||||||
if not topic_name:
|
|
||||||
continue
|
|
||||||
|
|
||||||
taxonomy_cache[topic_name] = {
|
|
||||||
"topic_id": source.get("id") or hit.get("_id", ""),
|
|
||||||
"subfield": source.get("subfield", {}).get("display_name", ""),
|
|
||||||
"field": source.get("field", {}).get("display_name", ""),
|
|
||||||
"domain": source.get("domain", {}).get("display_name", ""),
|
|
||||||
}
|
|
||||||
except Exception as exc:
|
|
||||||
logger.error("Failed to scan topics from Elasticsearch: %s", exc)
|
|
||||||
|
|
||||||
logger.info("Processed %s topics total", len(taxonomy_cache))
|
|
||||||
|
|
||||||
if save_json:
|
|
||||||
data_json = json.dumps(taxonomy_cache, indent=2, ensure_ascii=True)
|
|
||||||
try:
|
|
||||||
output_path = "/data/" + output_filename
|
|
||||||
with open(output_path, "w", encoding="utf-8") as f:
|
|
||||||
f.write(data_json)
|
|
||||||
logger.info("Topic hierarchy cache written to %s", output_path)
|
|
||||||
except Exception as exc:
|
|
||||||
logger.warning("Failed to write topic hierarchy cache: %s", exc)
|
|
||||||
|
|
||||||
return taxonomy_cache
|
|
||||||
|
|
||||||
|
|
||||||
def get_topics_from_cache(topic_names: list[str]) -> list[Topic]:
|
|
||||||
"""
|
|
||||||
Given a list of topic names, retrieves their hierarchy information from the cache and returns a list of Topic models.
|
|
||||||
Arguments:
|
|
||||||
topic_names (List[str]): A list of topic names to retrieve.
|
|
||||||
Returns:
|
|
||||||
List[Topic]: A list of Topic models.
|
|
||||||
"""
|
|
||||||
cache = _load_topic_cache()
|
|
||||||
topics = []
|
|
||||||
for name in topic_names:
|
|
||||||
data = cache.get(name)
|
|
||||||
if not data:
|
|
||||||
continue
|
|
||||||
subfield_name = data.get("subfield", "")
|
|
||||||
field_name = data.get("field", "")
|
|
||||||
domain_name = data.get("domain", "")
|
|
||||||
topics.append(
|
|
||||||
Topic(
|
|
||||||
id=data.get("topic_id", ""),
|
|
||||||
display_name=name,
|
|
||||||
works_count=data.get("count", 1),
|
|
||||||
subfield=TopicSubfield(display_name=subfield_name)
|
|
||||||
if subfield_name
|
|
||||||
else None,
|
|
||||||
field=TopicField(display_name=field_name) if field_name else None,
|
|
||||||
domain=TopicDomain(display_name=domain_name) if domain_name else None,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
return topics
|
|
||||||
|
|
||||||
|
|
||||||
def count_topic_hierarchy(topic_names: list[str]) -> dict:
|
|
||||||
"""
|
|
||||||
Given a list of topic names, counts the occurrences of each topic and their hierarchy levels (subfield, field, domain) using the cache.
|
|
||||||
Arguments:
|
|
||||||
topic_names (List[str]): A list of topic names to count.
|
|
||||||
Returns:
|
|
||||||
dict: A dictionary containing the counts of each hierarchy level.
|
|
||||||
"""
|
|
||||||
cache = _load_topic_cache()
|
|
||||||
counts = {"topics": {}, "subfields": {}, "fields": {}, "domains": {}}
|
|
||||||
|
|
||||||
for name in topic_names:
|
|
||||||
data = cache.get(name)
|
|
||||||
if not data:
|
|
||||||
continue
|
|
||||||
|
|
||||||
counts["topics"][name] = counts["topics"].get(name, 0) + 1
|
|
||||||
|
|
||||||
subfield = data.get("subfield", "")
|
|
||||||
if subfield:
|
|
||||||
counts["subfields"][subfield] = counts["subfields"].get(subfield, 0) + 1
|
|
||||||
|
|
||||||
field = data.get("field", "")
|
|
||||||
if field:
|
|
||||||
counts["fields"][field] = counts["fields"].get(field, 0) + 1
|
|
||||||
|
|
||||||
domain = data.get("domain", "")
|
|
||||||
if domain:
|
|
||||||
counts["domains"][domain] = counts["domains"].get(domain, 0) + 1
|
|
||||||
|
|
||||||
return counts
|
|
||||||
|
|
||||||
|
|
||||||
def get_topic_hierarchy() -> dict:
|
|
||||||
"""
|
|
||||||
Builds and returns a hierarchical tree structure of topics:
|
|
||||||
Domains -> Fields -> Subfields -> Topics
|
|
||||||
"""
|
|
||||||
flat_cache = _load_topic_cache()
|
|
||||||
tree = {}
|
|
||||||
|
|
||||||
for topic_name, info in flat_cache.items():
|
|
||||||
domain = info.get("domain") or "Unbekannter Bereich"
|
|
||||||
field = info.get("field") or "Unbekanntes Feld"
|
|
||||||
subfield = info.get("subfield") or "Unbekanntes Teilfeld"
|
|
||||||
topic_id = info.get("topic_id", "")
|
|
||||||
|
|
||||||
# Clean topic ID to just be the trailing ID or keep full URL
|
|
||||||
# For querying, display name is used in persons search, but ID is useful
|
|
||||||
|
|
||||||
if domain not in tree:
|
|
||||||
tree[domain] = {}
|
|
||||||
if field not in tree[domain]:
|
|
||||||
tree[domain][field] = {}
|
|
||||||
if subfield not in tree[domain][field]:
|
|
||||||
tree[domain][field][subfield] = []
|
|
||||||
|
|
||||||
tree[domain][field][subfield].append({"id": topic_id, "name": topic_name})
|
|
||||||
|
|
||||||
formatted_domains = []
|
|
||||||
for d_name, d_fields in tree.items():
|
|
||||||
formatted_fields = []
|
|
||||||
for f_name, f_subfields in d_fields.items():
|
|
||||||
formatted_subfields = []
|
|
||||||
for sf_name, sf_topics in f_subfields.items():
|
|
||||||
sf_topics.sort(key=lambda x: x["name"])
|
|
||||||
formatted_subfields.append({"name": sf_name, "topics": sf_topics})
|
|
||||||
formatted_subfields.sort(key=lambda x: x["name"])
|
|
||||||
formatted_fields.append({"name": f_name, "subfields": formatted_subfields})
|
|
||||||
formatted_fields.sort(key=lambda x: x["name"])
|
|
||||||
formatted_domains.append({"name": d_name, "fields": formatted_fields})
|
|
||||||
formatted_domains.sort(key=lambda x: x["name"])
|
|
||||||
|
|
||||||
return {"domains": formatted_domains}
|
|
||||||
@@ -64,7 +64,6 @@ from inse.works.service import router as works_service_router
|
|||||||
from inse.works.v2.router import router as works_v2_router
|
from inse.works.v2.router import router as works_v2_router
|
||||||
|
|
||||||
from . import config
|
from . import config
|
||||||
from .service import router as service_router
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -119,8 +118,6 @@ app.include_router(patents_all_router)
|
|||||||
app.include_router(keywords_service_router)
|
app.include_router(keywords_service_router)
|
||||||
app.include_router(keywords_patents_router)
|
app.include_router(keywords_patents_router)
|
||||||
|
|
||||||
app.include_router(service_router)
|
|
||||||
|
|
||||||
app.include_router(auth_router)
|
app.include_router(auth_router)
|
||||||
app.include_router(account_management_router)
|
app.include_router(account_management_router)
|
||||||
app.include_router(organization_management_router)
|
app.include_router(organization_management_router)
|
||||||
|
|||||||
@@ -108,10 +108,10 @@ class BundProject(BaseModel):
|
|||||||
examples=["Deutschland"],
|
examples=["Deutschland"],
|
||||||
)
|
)
|
||||||
|
|
||||||
implementing_agency: str | None = Field(
|
executing_agency: str | None = Field(
|
||||||
default=None,
|
default=None,
|
||||||
validation_alias="Ausführende Stelle",
|
validation_alias="Ausführende Stelle",
|
||||||
description="The implementing agency of the project",
|
description="The executing agency of the project",
|
||||||
examples=[
|
examples=[
|
||||||
"Universität Duisburg-Essen - Fachbereich Allgemeine Informatik - Lehrstuhl Networked Embedded Systems (NES)"
|
"Universität Duisburg-Essen - Fachbereich Allgemeine Informatik - Lehrstuhl Networked Embedded Systems (NES)"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -12,19 +12,89 @@ from inse.patents.common import model
|
|||||||
from inse.patents.ipc_lookup import extract_ipc_symbol, parse_ipc_symbol
|
from inse.patents.ipc_lookup import extract_ipc_symbol, parse_ipc_symbol
|
||||||
|
|
||||||
MAPPING_FILENAME = "ipc_openalex_topic_mapping.json"
|
MAPPING_FILENAME = "ipc_openalex_topic_mapping.json"
|
||||||
TOPIC_CACHE_FILENAME = "topic_hierarchy_cache.json"
|
|
||||||
LEVELS = ("section", "class", "subclass", "group", "subgroup")
|
LEVELS = ("section", "class", "subclass", "group", "subgroup")
|
||||||
MATCH_LEVELS = ("subgroup", "group", "subclass")
|
MATCH_LEVELS = ("subgroup", "group", "subclass")
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass(frozen=True)
|
||||||
|
class MappedOpenAlexTopic:
|
||||||
|
topic_id: str
|
||||||
|
topic_display_name: str | None = None
|
||||||
|
subfield_id: str | None = None
|
||||||
|
field_id: str | None = None
|
||||||
|
domain_id: str | None = None
|
||||||
|
subfield_name: str | None = None
|
||||||
|
field_name: str | None = None
|
||||||
|
domain_name: str | None = None
|
||||||
|
ipc_level: str | None = None
|
||||||
|
ipc_symbol: str | None = None
|
||||||
|
|
||||||
|
|
||||||
# High-frequency IPC subclasses missing from the ES-built mapping file.
|
# High-frequency IPC subclasses missing from the ES-built mapping file.
|
||||||
SUBCLASS_TOPIC_OVERRIDES: dict[str, str] = {
|
SUBCLASS_TOPIC_OVERRIDES: dict[str, MappedOpenAlexTopic] = {
|
||||||
"A61B": "Cardiac electrophysiology and arrhythmias",
|
"A61B": MappedOpenAlexTopic(
|
||||||
"A61K": "Pharmaceutical studies and practices",
|
topic_id="https://openalex.org/T10217",
|
||||||
"A61P": "Cancer Immunotherapy and Biomarkers",
|
topic_display_name="Cardiac electrophysiology and arrhythmias",
|
||||||
"C07K": "Cancer Immunotherapy and Biomarkers",
|
subfield_name="Cardiology and Cardiovascular Medicine",
|
||||||
"C12N": "Biotechnology and Related Fields",
|
field_name="Medicine",
|
||||||
"C12Q": "Cancer Immunotherapy and Biomarkers",
|
domain_name="Health Sciences",
|
||||||
"G01N": "Analytical Methods in Pharmaceuticals",
|
ipc_level="subclass",
|
||||||
|
ipc_symbol="A61B",
|
||||||
|
),
|
||||||
|
"A61K": MappedOpenAlexTopic(
|
||||||
|
topic_id="https://openalex.org/T12015",
|
||||||
|
topic_display_name="Pharmaceutical studies and practices",
|
||||||
|
subfield_name="Pharmacology",
|
||||||
|
field_name="Pharmacology, Toxicology and Pharmaceutics",
|
||||||
|
domain_name="Health Sciences",
|
||||||
|
ipc_level="subclass",
|
||||||
|
ipc_symbol="A61K",
|
||||||
|
),
|
||||||
|
"A61P": MappedOpenAlexTopic(
|
||||||
|
topic_id="https://openalex.org/T11537",
|
||||||
|
topic_display_name="Cancer Immunotherapy and Biomarkers",
|
||||||
|
subfield_name="Oncology",
|
||||||
|
field_name="Medicine",
|
||||||
|
domain_name="Health Sciences",
|
||||||
|
ipc_level="subclass",
|
||||||
|
ipc_symbol="A61P",
|
||||||
|
),
|
||||||
|
"C07K": MappedOpenAlexTopic(
|
||||||
|
topic_id="https://openalex.org/T11537",
|
||||||
|
topic_display_name="Cancer Immunotherapy and Biomarkers",
|
||||||
|
subfield_name="Oncology",
|
||||||
|
field_name="Medicine",
|
||||||
|
domain_name="Health Sciences",
|
||||||
|
ipc_level="subclass",
|
||||||
|
ipc_symbol="C07K",
|
||||||
|
),
|
||||||
|
"C12N": MappedOpenAlexTopic(
|
||||||
|
topic_id="https://openalex.org/T10041",
|
||||||
|
topic_display_name="Biotechnology and Related Fields",
|
||||||
|
subfield_name="Biotechnology",
|
||||||
|
field_name="Immunology and Microbiology",
|
||||||
|
domain_name="Life Sciences",
|
||||||
|
ipc_level="subclass",
|
||||||
|
ipc_symbol="C12N",
|
||||||
|
),
|
||||||
|
"C12Q": MappedOpenAlexTopic(
|
||||||
|
topic_id="https://openalex.org/T11537",
|
||||||
|
topic_display_name="Cancer Immunotherapy and Biomarkers",
|
||||||
|
subfield_name="Oncology",
|
||||||
|
field_name="Medicine",
|
||||||
|
domain_name="Health Sciences",
|
||||||
|
ipc_level="subclass",
|
||||||
|
ipc_symbol="C12Q",
|
||||||
|
),
|
||||||
|
"G01N": MappedOpenAlexTopic(
|
||||||
|
topic_id="https://openalex.org/T10487",
|
||||||
|
topic_display_name="Analytical Methods in Pharmaceuticals",
|
||||||
|
subfield_name="Analytical Chemistry",
|
||||||
|
field_name="Chemistry",
|
||||||
|
domain_name="Physical Sciences",
|
||||||
|
ipc_level="subclass",
|
||||||
|
ipc_symbol="G01N",
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
_TOPIC_LABEL_STOPWORDS = frozenset({
|
_TOPIC_LABEL_STOPWORDS = frozenset({
|
||||||
@@ -92,20 +162,6 @@ def _meaningful_topic_tokens(label: str) -> set[str]:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class MappedOpenAlexTopic:
|
|
||||||
topic_id: str
|
|
||||||
topic_display_name: str | None = None
|
|
||||||
subfield_id: str | None = None
|
|
||||||
field_id: str | None = None
|
|
||||||
domain_id: str | None = None
|
|
||||||
subfield_name: str | None = None
|
|
||||||
field_name: str | None = None
|
|
||||||
domain_name: str | None = None
|
|
||||||
ipc_level: str | None = None
|
|
||||||
ipc_symbol: str | None = None
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
class OpenAlexTopicRefs:
|
class OpenAlexTopicRefs:
|
||||||
topic_ids: frozenset[str]
|
topic_ids: frozenset[str]
|
||||||
@@ -141,83 +197,10 @@ def _mapping_path() -> str:
|
|||||||
return os.path.join(_data_dir(), MAPPING_FILENAME)
|
return os.path.join(_data_dir(), MAPPING_FILENAME)
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=1)
|
|
||||||
def _load_topic_cache() -> dict[str, dict[str, str]]:
|
|
||||||
path = os.path.join(_data_dir(), TOPIC_CACHE_FILENAME)
|
|
||||||
try:
|
|
||||||
with open(path, encoding="utf-8") as handle:
|
|
||||||
raw = json.load(handle)
|
|
||||||
except (OSError, json.JSONDecodeError):
|
|
||||||
return {}
|
|
||||||
if not isinstance(raw, dict):
|
|
||||||
return {}
|
|
||||||
return {
|
|
||||||
display_name: {
|
|
||||||
"topic_id": str(info.get("topic_id", "")),
|
|
||||||
"subfield": info.get("subfield"),
|
|
||||||
"field": info.get("field"),
|
|
||||||
"domain": info.get("domain"),
|
|
||||||
}
|
|
||||||
for display_name, info in raw.items()
|
|
||||||
if isinstance(info, dict) and info.get("topic_id")
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def _enrich_mapped_topic(mapped: MappedOpenAlexTopic) -> MappedOpenAlexTopic:
|
|
||||||
cache = _load_topic_cache()
|
|
||||||
topic_name = mapped.topic_display_name or ""
|
|
||||||
info = cache.get(topic_name)
|
|
||||||
if info is None:
|
|
||||||
for candidate in cache.values():
|
|
||||||
if candidate.get("topic_id") == mapped.topic_id:
|
|
||||||
info = candidate
|
|
||||||
break
|
|
||||||
if info is None:
|
|
||||||
return mapped
|
|
||||||
return MappedOpenAlexTopic(
|
|
||||||
topic_id=mapped.topic_id,
|
|
||||||
topic_display_name=mapped.topic_display_name or topic_name,
|
|
||||||
subfield_id=mapped.subfield_id,
|
|
||||||
field_id=mapped.field_id,
|
|
||||||
domain_id=mapped.domain_id,
|
|
||||||
subfield_name=info.get("subfield"),
|
|
||||||
field_name=info.get("field"),
|
|
||||||
domain_name=info.get("domain"),
|
|
||||||
ipc_level=mapped.ipc_level,
|
|
||||||
ipc_symbol=mapped.ipc_symbol,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def _mapped_from_topic_name(
|
|
||||||
topic_display_name: str,
|
|
||||||
*,
|
|
||||||
ipc_level: str,
|
|
||||||
ipc_symbol: str,
|
|
||||||
) -> MappedOpenAlexTopic | None:
|
|
||||||
cache = _load_topic_cache()
|
|
||||||
info = cache.get(topic_display_name)
|
|
||||||
if info is None:
|
|
||||||
return None
|
|
||||||
return _enrich_mapped_topic(
|
|
||||||
MappedOpenAlexTopic(
|
|
||||||
topic_id=info["topic_id"],
|
|
||||||
topic_display_name=topic_display_name,
|
|
||||||
ipc_level=ipc_level,
|
|
||||||
ipc_symbol=ipc_symbol,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def _apply_subclass_overrides(
|
def _apply_subclass_overrides(
|
||||||
parsed: dict[str, dict[str, MappedOpenAlexTopic]],
|
parsed: dict[str, dict[str, MappedOpenAlexTopic]],
|
||||||
) -> None:
|
) -> None:
|
||||||
for symbol, topic_name in SUBCLASS_TOPIC_OVERRIDES.items():
|
for symbol, mapped in SUBCLASS_TOPIC_OVERRIDES.items():
|
||||||
mapped = _mapped_from_topic_name(
|
|
||||||
topic_name,
|
|
||||||
ipc_level="subclass",
|
|
||||||
ipc_symbol=_normalize_symbol(symbol),
|
|
||||||
)
|
|
||||||
if mapped is not None:
|
|
||||||
parsed["subclass"][_normalize_symbol(symbol)] = mapped
|
parsed["subclass"][_normalize_symbol(symbol)] = mapped
|
||||||
|
|
||||||
|
|
||||||
@@ -239,8 +222,7 @@ def load_ipc_openalex_mapping() -> dict[str, dict[str, MappedOpenAlexTopic]]:
|
|||||||
if not topic_id:
|
if not topic_id:
|
||||||
continue
|
continue
|
||||||
normalized_symbol = _normalize_symbol(symbol)
|
normalized_symbol = _normalize_symbol(symbol)
|
||||||
mapped = _enrich_mapped_topic(
|
mapped = MappedOpenAlexTopic(
|
||||||
MappedOpenAlexTopic(
|
|
||||||
topic_id=str(topic_id),
|
topic_id=str(topic_id),
|
||||||
topic_display_name=entry.get("topic_display_name"),
|
topic_display_name=entry.get("topic_display_name"),
|
||||||
subfield_id=entry.get("subfield_id"),
|
subfield_id=entry.get("subfield_id"),
|
||||||
@@ -252,7 +234,6 @@ def load_ipc_openalex_mapping() -> dict[str, dict[str, MappedOpenAlexTopic]]:
|
|||||||
ipc_level=level,
|
ipc_level=level,
|
||||||
ipc_symbol=normalized_symbol,
|
ipc_symbol=normalized_symbol,
|
||||||
)
|
)
|
||||||
)
|
|
||||||
parsed[level][normalized_symbol] = mapped
|
parsed[level][normalized_symbol] = mapped
|
||||||
_apply_subclass_overrides(parsed)
|
_apply_subclass_overrides(parsed)
|
||||||
return parsed
|
return parsed
|
||||||
@@ -260,7 +241,6 @@ def load_ipc_openalex_mapping() -> dict[str, dict[str, MappedOpenAlexTopic]]:
|
|||||||
|
|
||||||
def clear_mapping_cache() -> None:
|
def clear_mapping_cache() -> None:
|
||||||
load_ipc_openalex_mapping.cache_clear()
|
load_ipc_openalex_mapping.cache_clear()
|
||||||
_load_topic_cache.cache_clear()
|
|
||||||
from inse.patents.patents_openalex_keywords.resolver import clear_resolver_caches
|
from inse.patents.patents_openalex_keywords.resolver import clear_resolver_caches
|
||||||
|
|
||||||
clear_resolver_caches()
|
clear_resolver_caches()
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ from typing import Any
|
|||||||
import httpx
|
import httpx
|
||||||
|
|
||||||
from inse.patents.authors.ipc_openalex_mapping import (
|
from inse.patents.authors.ipc_openalex_mapping import (
|
||||||
_load_topic_cache,
|
|
||||||
normalize_openalex_id,
|
normalize_openalex_id,
|
||||||
)
|
)
|
||||||
from inse.patents.common.elastic_search_client import MissingApiKeyError
|
from inse.patents.common.elastic_search_client import MissingApiKeyError
|
||||||
@@ -65,17 +64,7 @@ def _topic_id_variants(topic_id: str | None) -> list[str]:
|
|||||||
|
|
||||||
|
|
||||||
def _topic_id_variants_for_item(item: KeywordPatentSearchItem) -> list[str]:
|
def _topic_id_variants_for_item(item: KeywordPatentSearchItem) -> list[str]:
|
||||||
variants = _topic_id_variants(item.topic_id)
|
return _topic_id_variants(item.topic_id)
|
||||||
if variants:
|
|
||||||
return variants
|
|
||||||
|
|
||||||
display_name = (item.topic_display_name or "").strip()
|
|
||||||
if display_name:
|
|
||||||
info = _load_topic_cache().get(display_name)
|
|
||||||
if info and info.get("topic_id"):
|
|
||||||
return _topic_id_variants(str(info["topic_id"]))
|
|
||||||
|
|
||||||
return []
|
|
||||||
|
|
||||||
|
|
||||||
def _weighted_score(
|
def _weighted_score(
|
||||||
|
|||||||
@@ -1086,19 +1086,12 @@ def test_json_lookup_resolves_topic_id_from_display_name(monkeypatch) -> None:
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
monkeypatch.setattr(
|
|
||||||
"inse.patents.keywords.reverse_lookup._load_topic_cache",
|
|
||||||
lambda: {
|
|
||||||
"Science and Climate Studies": {
|
|
||||||
"topic_id": "https://openalex.org/T14329",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
)
|
|
||||||
clear_reverse_lookup_caches()
|
clear_reverse_lookup_caches()
|
||||||
|
|
||||||
items = [
|
items = [
|
||||||
KeywordPatentSearchItem(
|
KeywordPatentSearchItem(
|
||||||
keyword="Science and Climate Studies",
|
keyword="Science and Climate Studies",
|
||||||
|
topic_id="https://openalex.org/T14329",
|
||||||
topic_display_name="Science and Climate Studies",
|
topic_display_name="Science and Climate Studies",
|
||||||
relevance_score=1.0,
|
relevance_score=1.0,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ from inse.util import get_model
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
TOPIC_CACHE_FILENAME = "topic_hierarchy_cache.json"
|
|
||||||
MATCH_METHOD = "sentence_transformer"
|
MATCH_METHOD = "sentence_transformer"
|
||||||
TOPIC_VECTORS_INDEX = "topicvectors"
|
TOPIC_VECTORS_INDEX = "topicvectors"
|
||||||
|
|
||||||
@@ -39,31 +38,6 @@ class KeywordCandidate:
|
|||||||
topic_display_name: str | None = None
|
topic_display_name: str | None = None
|
||||||
|
|
||||||
|
|
||||||
def _data_dir() -> Path:
|
|
||||||
return Path(__file__).resolve().parents[4] / "data"
|
|
||||||
|
|
||||||
|
|
||||||
def load_topic_cache(cache_path: Path | None = None) -> list[TopicCandidate]:
|
|
||||||
path = cache_path or (_data_dir() / TOPIC_CACHE_FILENAME)
|
|
||||||
with path.open(encoding="utf-8") as handle:
|
|
||||||
raw = json.load(handle)
|
|
||||||
topics: list[TopicCandidate] = []
|
|
||||||
for display_name, info in raw.items():
|
|
||||||
topic_id = info.get("topic_id")
|
|
||||||
if not topic_id:
|
|
||||||
continue
|
|
||||||
topics.append(
|
|
||||||
TopicCandidate(
|
|
||||||
topic_id=str(topic_id),
|
|
||||||
display_name=display_name,
|
|
||||||
subfield=info.get("subfield"),
|
|
||||||
field=info.get("field"),
|
|
||||||
domain=info.get("domain"),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
return topics
|
|
||||||
|
|
||||||
|
|
||||||
def topic_embedding_text(topic: TopicCandidate) -> str:
|
def topic_embedding_text(topic: TopicCandidate) -> str:
|
||||||
parts = [topic.display_name]
|
parts = [topic.display_name]
|
||||||
for label in (topic.subfield, topic.field, topic.domain):
|
for label in (topic.subfield, topic.field, topic.domain):
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ from functools import lru_cache
|
|||||||
|
|
||||||
from inse.patents.authors.ipc_openalex_mapping import (
|
from inse.patents.authors.ipc_openalex_mapping import (
|
||||||
MappedOpenAlexTopic,
|
MappedOpenAlexTopic,
|
||||||
_enrich_mapped_topic,
|
|
||||||
load_ipc_openalex_mapping,
|
load_ipc_openalex_mapping,
|
||||||
normalize_openalex_id,
|
normalize_openalex_id,
|
||||||
resolve_mapped_topics_for_code,
|
resolve_mapped_topics_for_code,
|
||||||
@@ -91,7 +90,6 @@ def mapped_topics_from_index_doc(doc: dict) -> list[MappedOpenAlexTopic]:
|
|||||||
continue
|
continue
|
||||||
seen.add(key)
|
seen.add(key)
|
||||||
mapped.append(
|
mapped.append(
|
||||||
_enrich_mapped_topic(
|
|
||||||
MappedOpenAlexTopic(
|
MappedOpenAlexTopic(
|
||||||
topic_id=str(topic_id),
|
topic_id=str(topic_id),
|
||||||
topic_display_name=match.get("topic_display_name"),
|
topic_display_name=match.get("topic_display_name"),
|
||||||
@@ -102,7 +100,6 @@ def mapped_topics_from_index_doc(doc: dict) -> list[MappedOpenAlexTopic]:
|
|||||||
ipc_symbol=ipc_symbol,
|
ipc_symbol=ipc_symbol,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
for match in doc.get("keyword_matches") or []:
|
for match in doc.get("keyword_matches") or []:
|
||||||
topic_id = match.get("topic_id")
|
topic_id = match.get("topic_id")
|
||||||
@@ -113,7 +110,6 @@ def mapped_topics_from_index_doc(doc: dict) -> list[MappedOpenAlexTopic]:
|
|||||||
continue
|
continue
|
||||||
seen.add(key)
|
seen.add(key)
|
||||||
mapped.append(
|
mapped.append(
|
||||||
_enrich_mapped_topic(
|
|
||||||
MappedOpenAlexTopic(
|
MappedOpenAlexTopic(
|
||||||
topic_id=str(topic_id),
|
topic_id=str(topic_id),
|
||||||
topic_display_name=match.get("topic_display_name"),
|
topic_display_name=match.get("topic_display_name"),
|
||||||
@@ -121,7 +117,6 @@ def mapped_topics_from_index_doc(doc: dict) -> list[MappedOpenAlexTopic]:
|
|||||||
ipc_symbol=ipc_symbol,
|
ipc_symbol=ipc_symbol,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
return mapped
|
return mapped
|
||||||
|
|
||||||
|
|||||||
@@ -781,6 +781,7 @@ async def _build_eu_cordis_search_query(
|
|||||||
topic_project_ids_by_type = await get_eu_project_ids_by_openalex_topic_ids(
|
topic_project_ids_by_type = await get_eu_project_ids_by_openalex_topic_ids(
|
||||||
project_types=project_types,
|
project_types=project_types,
|
||||||
topic_ids=topic_ids,
|
topic_ids=topic_ids,
|
||||||
|
match_all=False
|
||||||
)
|
)
|
||||||
|
|
||||||
topic_filter = _eu_project_type_index_filter(topic_project_ids_by_type)
|
topic_filter = _eu_project_type_index_filter(topic_project_ids_by_type)
|
||||||
@@ -829,13 +830,14 @@ async def _build_eu_cordis_search_query(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if keyword_clauses:
|
if keyword_clauses:
|
||||||
must_clauses.append({"bool": {"must": keyword_clauses}})
|
must_clauses.append({"bool": {"should": keyword_clauses, "minimum_should_match": 1}})
|
||||||
|
|
||||||
# === Independent OpenAlex topic filters ===
|
# === Independent OpenAlex topic filters ===
|
||||||
if filter_topic_ids:
|
if filter_topic_ids:
|
||||||
filter_topic_project_ids_by_type = await get_eu_project_ids_by_openalex_topic_ids(
|
filter_topic_project_ids_by_type = await get_eu_project_ids_by_openalex_topic_ids(
|
||||||
project_types=project_types,
|
project_types=project_types,
|
||||||
topic_ids=filter_topic_ids,
|
topic_ids=filter_topic_ids,
|
||||||
|
match_all=True
|
||||||
)
|
)
|
||||||
|
|
||||||
topic_filter = _eu_project_type_index_filter(filter_topic_project_ids_by_type)
|
topic_filter = _eu_project_type_index_filter(filter_topic_project_ids_by_type)
|
||||||
@@ -1003,13 +1005,13 @@ async def search_eu_cordis_projects(
|
|||||||
body={
|
body={
|
||||||
"size": size,
|
"size": size,
|
||||||
"from": page * size,
|
"from": page * size,
|
||||||
"track_total_hits": True,
|
|
||||||
"_source": [
|
"_source": [
|
||||||
"id",
|
"id",
|
||||||
"title",
|
"title",
|
||||||
"acronym",
|
"acronym",
|
||||||
"objective",
|
"objective",
|
||||||
"keywords",
|
"keywords",
|
||||||
|
"topics",
|
||||||
"frameworkProgramme",
|
"frameworkProgramme",
|
||||||
"fundingScheme",
|
"fundingScheme",
|
||||||
"status",
|
"status",
|
||||||
@@ -1019,12 +1021,28 @@ async def search_eu_cordis_projects(
|
|||||||
"totalCost",
|
"totalCost",
|
||||||
],
|
],
|
||||||
"query": query,
|
"query": query,
|
||||||
|
"highlight": {
|
||||||
|
"fields": {
|
||||||
|
"title": {},
|
||||||
|
"acronym": {},
|
||||||
|
"objective": {},
|
||||||
|
"keywords": {},
|
||||||
|
"topics": {},
|
||||||
|
},
|
||||||
|
"pre_tags": ["<em>"],
|
||||||
|
"post_tags": ["</em>"],
|
||||||
|
"require_field_match": True,
|
||||||
|
},
|
||||||
"sort": [
|
"sort": [
|
||||||
{
|
{
|
||||||
sort_field: {
|
sort_field: {
|
||||||
"order": sort_direction,
|
"order": sort_direction,
|
||||||
"missing": "_last",
|
"missing": "_last",
|
||||||
"unmapped_type": "keyword" if sort_field.endswith(".keyword") else "date",
|
"unmapped_type": (
|
||||||
|
"keyword"
|
||||||
|
if sort_field.endswith(".keyword")
|
||||||
|
else "date"
|
||||||
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -1148,7 +1166,6 @@ async def get_eu_cordis_projects_funding_data(
|
|||||||
while True:
|
while True:
|
||||||
body: dict[str, Any] = {
|
body: dict[str, Any] = {
|
||||||
"size": page_size,
|
"size": page_size,
|
||||||
"track_total_hits": False,
|
|
||||||
"_source": ["id", "startDate", "endDate", "ecMaxContribution"],
|
"_source": ["id", "startDate", "endDate", "ecMaxContribution"],
|
||||||
"query": query,
|
"query": query,
|
||||||
"sort": [{"id": {"order": "asc", "unmapped_type": "keyword"}}],
|
"sort": [{"id": {"order": "asc", "unmapped_type": "keyword"}}],
|
||||||
|
|||||||
@@ -115,26 +115,27 @@ async def get_person_ids_by_institution_ids(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
async def get_bund_project_ids_by_topic_ids(
|
||||||
async def get_bund_project_ids_by_topic_ids(topic_ids: list[str]) -> list[str]:
|
topic_ids: list[str],
|
||||||
|
match_all: bool = True,
|
||||||
|
) -> list[str]:
|
||||||
"""
|
"""
|
||||||
Query the `projects_bund_openalex_topics` index to find BUND project IDs
|
Query the `projects_bund_openalex_topics` index to find BUND project IDs
|
||||||
that match any of the given OpenAlex topic IDs.
|
that match:
|
||||||
|
|
||||||
|
- ALL of the given OpenAlex topic IDs if match_all=True
|
||||||
|
- ANY of the given OpenAlex topic IDs if match_all=False
|
||||||
|
|
||||||
|
Topics may be distributed across multiple documents for the same project.
|
||||||
"""
|
"""
|
||||||
if not topic_ids:
|
if not topic_ids:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
required_topics = set(topic_ids)
|
required_topics = set(topic_ids)
|
||||||
|
|
||||||
project_topics: dict[str, set[str]] = defaultdict(set)
|
project_topics: dict[str, set[str]] = defaultdict(set)
|
||||||
|
|
||||||
page_size = 1000
|
|
||||||
from_ = 0
|
|
||||||
|
|
||||||
while True:
|
|
||||||
body = {
|
body = {
|
||||||
"size": page_size,
|
"size": 10000,
|
||||||
"from": from_,
|
|
||||||
"_source": ["project_id", "topic_matches"],
|
"_source": ["project_id", "topic_matches"],
|
||||||
"query": {
|
"query": {
|
||||||
"terms": {
|
"terms": {
|
||||||
@@ -148,9 +149,8 @@ async def get_bund_project_ids_by_topic_ids(topic_ids: list[str]) -> list[str]:
|
|||||||
cluster=ESCluster.INSE,
|
cluster=ESCluster.INSE,
|
||||||
body=body,
|
body=body,
|
||||||
)
|
)
|
||||||
|
|
||||||
hits = response.get("hits", {}).get("hits", [])
|
hits = response.get("hits", {}).get("hits", [])
|
||||||
if not hits:
|
|
||||||
break
|
|
||||||
|
|
||||||
for hit in hits:
|
for hit in hits:
|
||||||
source = hit["_source"]
|
source = hit["_source"]
|
||||||
@@ -169,35 +169,37 @@ async def get_bund_project_ids_by_topic_ids(topic_ids: list[str]) -> list[str]:
|
|||||||
if topic_id in required_topics:
|
if topic_id in required_topics:
|
||||||
project_topics[project_id].add(topic_id)
|
project_topics[project_id].add(topic_id)
|
||||||
|
|
||||||
if len(hits) < page_size:
|
if match_all:
|
||||||
break
|
|
||||||
|
|
||||||
from_ += page_size
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
project_id
|
project_id
|
||||||
for project_id, found_topics in project_topics.items()
|
for project_id, found_topics in project_topics.items()
|
||||||
if required_topics.issubset(found_topics)
|
if required_topics.issubset(found_topics)
|
||||||
]
|
]
|
||||||
|
|
||||||
async def get_dfg_project_ids_by_topic_ids(topic_ids: list[str]) -> list[str]:
|
# OR match: project has at least one requested topic
|
||||||
"""Fetches project IDs whose topic_matches contain EVERY given topic ID,
|
return list(project_topics.keys())
|
||||||
even if the topics are distributed across multiple documents for the same project.
|
|
||||||
|
|
||||||
|
async def get_dfg_project_ids_by_topic_ids(
|
||||||
|
topic_ids: list[str],
|
||||||
|
match_all: bool = True,
|
||||||
|
) -> list[str]:
|
||||||
|
"""
|
||||||
|
Fetches project IDs whose topic_matches contain:
|
||||||
|
|
||||||
|
- ALL given topic IDs if match_all=True
|
||||||
|
- ANY given topic ID if match_all=False
|
||||||
|
|
||||||
|
Topics may be distributed across multiple documents for the same project.
|
||||||
"""
|
"""
|
||||||
if not topic_ids:
|
if not topic_ids:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
required_topics = set(topic_ids)
|
required_topics = set(topic_ids)
|
||||||
|
|
||||||
project_topics: dict[str, set[str]] = defaultdict(set)
|
project_topics: dict[str, set[str]] = defaultdict(set)
|
||||||
|
|
||||||
page_size = 1000
|
|
||||||
from_ = 0
|
|
||||||
|
|
||||||
while True:
|
|
||||||
body = {
|
body = {
|
||||||
"size": page_size,
|
"size": 10000,
|
||||||
"from": from_,
|
|
||||||
"_source": ["project_id", "topic_matches"],
|
"_source": ["project_id", "topic_matches"],
|
||||||
"query": {
|
"query": {
|
||||||
"terms": {
|
"terms": {
|
||||||
@@ -213,8 +215,6 @@ async def get_dfg_project_ids_by_topic_ids(topic_ids: list[str]) -> list[str]:
|
|||||||
)
|
)
|
||||||
|
|
||||||
hits = response.get("hits", {}).get("hits", [])
|
hits = response.get("hits", {}).get("hits", [])
|
||||||
if not hits:
|
|
||||||
break
|
|
||||||
|
|
||||||
for hit in hits:
|
for hit in hits:
|
||||||
source = hit["_source"]
|
source = hit["_source"]
|
||||||
@@ -233,17 +233,16 @@ async def get_dfg_project_ids_by_topic_ids(topic_ids: list[str]) -> list[str]:
|
|||||||
if topic_id in required_topics:
|
if topic_id in required_topics:
|
||||||
project_topics[project_id].add(topic_id)
|
project_topics[project_id].add(topic_id)
|
||||||
|
|
||||||
if len(hits) < page_size:
|
if match_all:
|
||||||
break
|
|
||||||
|
|
||||||
from_ += page_size
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
project_id
|
project_id
|
||||||
for project_id, found_topics in project_topics.items()
|
for project_id, found_topics in project_topics.items()
|
||||||
if required_topics.issubset(found_topics)
|
if required_topics.issubset(found_topics)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# OR match: project has at least one requested topic
|
||||||
|
return list(project_topics.keys())
|
||||||
|
|
||||||
|
|
||||||
async def get_openalex_topics_for_bund_projects(project_ids: list[str]) -> dict[str, list[dict]]:
|
async def get_openalex_topics_for_bund_projects(project_ids: list[str]) -> dict[str, list[dict]]:
|
||||||
"""
|
"""
|
||||||
@@ -273,15 +272,32 @@ async def get_openalex_topics_for_bund_projects(project_ids: list[str]) -> dict[
|
|||||||
for hit in response.get("hits", {}).get("hits", []):
|
for hit in response.get("hits", {}).get("hits", []):
|
||||||
src = hit["_source"]
|
src = hit["_source"]
|
||||||
pid = src.get("project_id")
|
pid = src.get("project_id")
|
||||||
if pid:
|
|
||||||
lookup[pid] = src.get("topic_matches", [])
|
if not pid:
|
||||||
return lookup
|
continue
|
||||||
|
|
||||||
|
pid = str(pid)
|
||||||
|
|
||||||
|
if pid not in lookup:
|
||||||
|
lookup[pid] = {}
|
||||||
|
|
||||||
|
for topic in src.get("topic_matches", []):
|
||||||
|
topic_id = topic.get("topic_id")
|
||||||
|
|
||||||
|
if topic_id:
|
||||||
|
lookup[pid][str(topic_id)] = topic
|
||||||
|
|
||||||
|
result = {
|
||||||
|
pid: list(topics.values())
|
||||||
|
for pid, topics in lookup.items()
|
||||||
|
}
|
||||||
|
return result
|
||||||
async def get_openalex_topics_for_dfg_projects(
|
async def get_openalex_topics_for_dfg_projects(
|
||||||
project_ids: list[str],
|
project_ids: list[str],
|
||||||
) -> dict[str, list[dict]]:
|
) -> dict[str, list[dict]]:
|
||||||
"""
|
"""
|
||||||
Retrieve OpenAlex topic details for a list of DFG project IDs.
|
Retrieve unique OpenAlex topic details for a list of DFG project IDs.
|
||||||
Returns a dict mapping `project_id` -> list of topic_match objects.
|
Returns a dict mapping `project_id` -> unique list of topic_match objects.
|
||||||
"""
|
"""
|
||||||
if not project_ids:
|
if not project_ids:
|
||||||
return {}
|
return {}
|
||||||
@@ -293,23 +309,41 @@ async def get_openalex_topics_for_dfg_projects(
|
|||||||
"project_id.keyword": project_ids
|
"project_id.keyword": project_ids
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"_source": ["project_id", "topic_matches"]
|
"_source": ["project_id", "topic_matches"],
|
||||||
}
|
}
|
||||||
|
|
||||||
response = await elasticsearch.search(
|
response = await elasticsearch.search(
|
||||||
index=ESIndex.PROJECTS_DFG_TOPICS,
|
index=ESIndex.PROJECTS_DFG_TOPICS,
|
||||||
body=body,
|
body=body,
|
||||||
cluster=ESCluster.INSE
|
cluster=ESCluster.INSE,
|
||||||
)
|
)
|
||||||
|
|
||||||
lookup: dict[str, list[dict]] = {}
|
lookup: dict[str, dict[str, dict]] = {}
|
||||||
|
|
||||||
for hit in response.get("hits", {}).get("hits", []):
|
for hit in response.get("hits", {}).get("hits", []):
|
||||||
src = hit["_source"]
|
src = hit["_source"]
|
||||||
pid = src.get("project_id")
|
pid = src.get("project_id")
|
||||||
if pid:
|
|
||||||
lookup[str(pid)] = src.get("topic_matches", [])
|
|
||||||
|
|
||||||
return lookup
|
if not pid:
|
||||||
|
continue
|
||||||
|
|
||||||
|
pid = str(pid)
|
||||||
|
|
||||||
|
if pid not in lookup:
|
||||||
|
lookup[pid] = {}
|
||||||
|
|
||||||
|
for topic in src.get("topic_matches", []):
|
||||||
|
topic_id = topic.get("topic_id")
|
||||||
|
|
||||||
|
if topic_id:
|
||||||
|
lookup[pid][str(topic_id)] = topic
|
||||||
|
|
||||||
|
result = {
|
||||||
|
pid: list(topics.values())
|
||||||
|
for pid, topics in lookup.items()
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
|
||||||
async def get_person_institutes(
|
async def get_person_institutes(
|
||||||
person_ids: list[int],
|
person_ids: list[int],
|
||||||
@@ -411,14 +445,18 @@ async def get_dfg_institutes_by_ids(
|
|||||||
#EU Cordis Projects
|
#EU Cordis Projects
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async def get_eu_project_ids_by_openalex_topic_ids(
|
async def get_eu_project_ids_by_openalex_topic_ids(
|
||||||
project_types: list[EuCordisProjectType],
|
project_types: list[EuCordisProjectType],
|
||||||
topic_ids: list[str],
|
topic_ids: list[str],
|
||||||
|
match_all: bool = True,
|
||||||
) -> dict[EuCordisProjectType, list[str]]:
|
) -> dict[EuCordisProjectType, list[str]]:
|
||||||
"""
|
"""
|
||||||
Returns EU CORDIS project IDs whose mapped OpenAlex topic_matches contain
|
Returns EU CORDIS project IDs whose mapped OpenAlex topic_matches contain:
|
||||||
EVERY given topic ID. Same semantics as DFG topic filtering.
|
|
||||||
|
- ALL given topic IDs if match_all=True
|
||||||
|
- ANY given topic ID if match_all=False
|
||||||
|
|
||||||
|
Topics may be distributed across multiple documents for the same project.
|
||||||
"""
|
"""
|
||||||
if not topic_ids:
|
if not topic_ids:
|
||||||
return {project_type: [] for project_type in project_types}
|
return {project_type: [] for project_type in project_types}
|
||||||
@@ -457,15 +495,18 @@ async def get_eu_project_ids_by_openalex_topic_ids(
|
|||||||
for hit in hits:
|
for hit in hits:
|
||||||
source = hit.get("_source", {})
|
source = hit.get("_source", {})
|
||||||
project_id = source.get("project_id")
|
project_id = source.get("project_id")
|
||||||
|
|
||||||
if not project_id:
|
if not project_id:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
topic_matches = source.get("topic_matches") or []
|
topic_matches = source.get("topic_matches") or []
|
||||||
|
|
||||||
if isinstance(topic_matches, dict):
|
if isinstance(topic_matches, dict):
|
||||||
topic_matches = [topic_matches]
|
topic_matches = [topic_matches]
|
||||||
|
|
||||||
for match in topic_matches:
|
for match in topic_matches:
|
||||||
topic_id = match.get("topic_id")
|
topic_id = match.get("topic_id")
|
||||||
|
|
||||||
if topic_id in required_topics:
|
if topic_id in required_topics:
|
||||||
project_topics[project_id].add(topic_id)
|
project_topics[project_id].add(topic_id)
|
||||||
|
|
||||||
@@ -474,11 +515,15 @@ async def get_eu_project_ids_by_openalex_topic_ids(
|
|||||||
|
|
||||||
from_ += page_size
|
from_ += page_size
|
||||||
|
|
||||||
|
if match_all:
|
||||||
result[project_type] = [
|
result[project_type] = [
|
||||||
project_id
|
project_id
|
||||||
for project_id, found_topics in project_topics.items()
|
for project_id, found_topics in project_topics.items()
|
||||||
if required_topics.issubset(found_topics)
|
if required_topics.issubset(found_topics)
|
||||||
]
|
]
|
||||||
|
else:
|
||||||
|
# OR match: project has at least one requested topic
|
||||||
|
result[project_type] = list(project_topics.keys())
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,25 @@ class Page(BaseModel):
|
|||||||
page: int = Field(default=0, description="The current page number.")
|
page: int = Field(default=0, description="The current page number.")
|
||||||
size: int = Field(default=20, description="The requested page size.")
|
size: int = Field(default=20, description="The requested page size.")
|
||||||
total: int = Field(default=0, description="The total number of items.")
|
total: int = Field(default=0, description="The total number of items.")
|
||||||
|
class BundProjectHighlight(BaseModel):
|
||||||
|
"""Highlighted matching fragments from a BUND project search."""
|
||||||
|
|
||||||
|
joint_project: list[str] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
description='Highlights from the Elasticsearch field "Verbundprojekt".',
|
||||||
|
)
|
||||||
|
topic: list[str] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
description='Highlights from the Elasticsearch field "Thema".',
|
||||||
|
)
|
||||||
|
recipient: list[str] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
description='Highlights from the Elasticsearch field "Zuwendungsempfänger".',
|
||||||
|
)
|
||||||
|
executing_agency: list[str] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
description='Highlights from the Elasticsearch field "Ausführende Stelle".',
|
||||||
|
)
|
||||||
class BundProjectSummary(BundProject):
|
class BundProjectSummary(BundProject):
|
||||||
oa_topics: list[Topic] | None = Field(
|
oa_topics: list[Topic] | None = Field(
|
||||||
default=None,
|
default=None,
|
||||||
@@ -86,22 +104,34 @@ class BundProjectSummary(BundProject):
|
|||||||
description="The executing agency / recipient institution for this project, "
|
description="The executing agency / recipient institution for this project, "
|
||||||
"derived from the project's own agency fields.",
|
"derived from the project's own agency fields.",
|
||||||
)
|
)
|
||||||
|
highlight: BundProjectHighlight | None = Field(
|
||||||
|
default=None,
|
||||||
|
description="Highlighted matching fragments from the project search.",
|
||||||
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_hit(cls, hit: dict) -> "BundProjectSummary":
|
def from_hit(cls, hit: dict[str, Any]) -> "BundProjectSummary":
|
||||||
"""Create a BundProjectSummary from an Elasticsearch hit."""
|
"""Create a BundProjectSummary from an Elasticsearch hit."""
|
||||||
source = hit.get("_source", {})
|
|
||||||
|
|
||||||
|
source = hit.get("_source", {})
|
||||||
|
|
||||||
topics_raw = source.get("oa_topics") or []
|
topics_raw = source.get("oa_topics") or []
|
||||||
oa_topics = None
|
oa_topics = None
|
||||||
if isinstance(topics_raw, list) and topics_raw:
|
|
||||||
|
|
||||||
|
if isinstance(topics_raw, list) and topics_raw:
|
||||||
sorted_topics_raw = sorted(
|
sorted_topics_raw = sorted(
|
||||||
(t for t in topics_raw if isinstance(t, dict)),
|
(topic for topic in topics_raw if isinstance(topic, dict)),
|
||||||
key=lambda t: t.get("rank") if t.get("rank") is not None else float("inf"),
|
key=lambda topic: (
|
||||||
|
topic.get("rank")
|
||||||
|
if topic.get("rank") is not None
|
||||||
|
else float("inf")
|
||||||
|
),
|
||||||
)
|
)
|
||||||
oa_topics = [cls._topic_from_match(t) for t in sorted_topics_raw]
|
oa_topics = [
|
||||||
|
cls._topic_from_match(topic)
|
||||||
|
for topic in sorted_topics_raw
|
||||||
|
]
|
||||||
|
|
||||||
return cls(
|
return cls(
|
||||||
funding_code=source.get("Förderkennzeichen"),
|
funding_code=source.get("Förderkennzeichen"),
|
||||||
department=source.get("Ressort"),
|
department=source.get("Ressort"),
|
||||||
@@ -116,10 +146,12 @@ class BundProjectSummary(BundProject):
|
|||||||
place=source.get("Ort"),
|
place=source.get("Ort"),
|
||||||
state=source.get("Bundesland"),
|
state=source.get("Bundesland"),
|
||||||
country=source.get("Staat"),
|
country=source.get("Staat"),
|
||||||
implementing_agency=source.get("Ausführende Stelle"),
|
executing_agency=source.get("Ausführende Stelle"),
|
||||||
topic=source.get("Thema"),
|
topic=source.get("Thema"),
|
||||||
performance_plan_system=source.get("Leistungsplansystematik"),
|
performance_plan_system=source.get("Leistungsplansystematik"),
|
||||||
performance_plan_system_text=source.get("Klartext Leistungsplansystematik"),
|
performance_plan_system_text=source.get(
|
||||||
|
"Klartext Leistungsplansystematik"
|
||||||
|
),
|
||||||
funding_start=source.get("funding_start"),
|
funding_start=source.get("funding_start"),
|
||||||
funding_end=source.get("funding_end"),
|
funding_end=source.get("funding_end"),
|
||||||
grant_amount=source.get("Fördersumme"),
|
grant_amount=source.get("Fördersumme"),
|
||||||
@@ -133,8 +165,61 @@ class BundProjectSummary(BundProject):
|
|||||||
duration=source.get("Laufzeit"),
|
duration=source.get("Laufzeit"),
|
||||||
oa_topics=oa_topics,
|
oa_topics=oa_topics,
|
||||||
institution=BundInstitutionSummary.from_source(source),
|
institution=BundInstitutionSummary.from_source(source),
|
||||||
|
highlight=cls._highlight_from_hit(hit),
|
||||||
|
)
|
||||||
|
@staticmethod
|
||||||
|
def _highlight_fragments(value: Any) -> list[str]:
|
||||||
|
"""Normalize an Elasticsearch highlight value to a list of strings."""
|
||||||
|
|
||||||
|
if isinstance(value, str):
|
||||||
|
return [value]
|
||||||
|
|
||||||
|
if isinstance(value, list):
|
||||||
|
return [
|
||||||
|
fragment
|
||||||
|
for fragment in value
|
||||||
|
if isinstance(fragment, str)
|
||||||
|
]
|
||||||
|
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _highlight_from_hit(
|
||||||
|
cls,
|
||||||
|
hit: dict[str, Any],
|
||||||
|
) -> BundProjectHighlight | None:
|
||||||
|
"""Extract BUND project highlights from an Elasticsearch hit."""
|
||||||
|
|
||||||
|
raw_highlight = hit.get("highlight")
|
||||||
|
if not isinstance(raw_highlight, dict):
|
||||||
|
return None
|
||||||
|
|
||||||
|
highlight = BundProjectHighlight(
|
||||||
|
joint_project=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("Verbundprojekt")
|
||||||
|
),
|
||||||
|
topic=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("Thema")
|
||||||
|
),
|
||||||
|
recipient=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("Zuwendungsempfänger")
|
||||||
|
),
|
||||||
|
executing_agency=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("Ausführende Stelle")
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
has_highlights = any(
|
||||||
|
(
|
||||||
|
highlight.joint_project,
|
||||||
|
highlight.topic,
|
||||||
|
highlight.recipient,
|
||||||
|
highlight.executing_agency,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
return highlight if has_highlights else None
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _topic_from_match(match: dict[str, Any]) -> Topic:
|
def _topic_from_match(match: dict[str, Any]) -> Topic:
|
||||||
"""Builds a Topic model from a flattened topic_match dict.
|
"""Builds a Topic model from a flattened topic_match dict.
|
||||||
@@ -163,16 +248,42 @@ class BundProjectPage(Page):
|
|||||||
default_factory=list, description="The bund projects on this page."
|
default_factory=list, description="The bund projects on this page."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class BundProjectList(BaseModel):
|
class BundProjectList(BaseModel):
|
||||||
elements: list[BundProjectSummary] = Field(
|
elements: list[BundProjectSummary] = Field(
|
||||||
default_factory=list, description="All bund projects."
|
default_factory=list, description="All bund projects."
|
||||||
)
|
)
|
||||||
total: int = Field(default=0, description="The total number of bund projects.")
|
total: int = Field(default=0, description="The total number of bund projects.")
|
||||||
|
class DfgSubjectClassificationHighlight(BaseModel):
|
||||||
|
"""A highlighted nested subject classification."""
|
||||||
|
|
||||||
|
query: str = Field(
|
||||||
|
description="The keyword/inner_hits group which produced this match.",
|
||||||
|
)
|
||||||
|
|
||||||
|
offset: int | None = Field(
|
||||||
|
default=None,
|
||||||
|
description="Index of the matched item in subject_classifications.",
|
||||||
|
)
|
||||||
|
|
||||||
|
fach: list[str] = Field(default_factory=list)
|
||||||
|
fachkollegium: list[str] = Field(default_factory=list)
|
||||||
|
fachgebiet: list[str] = Field(default_factory=list)
|
||||||
|
fachgebiet_de: list[str] = Field(default_factory=list)
|
||||||
|
wissenschaftsbereich: list[str] = Field(default_factory=list)
|
||||||
|
|
||||||
|
|
||||||
|
class DfgProjectHighlight(BaseModel):
|
||||||
|
"""Highlighted fragments returned for a DFG project."""
|
||||||
|
|
||||||
|
title_de: list[str] = Field(default_factory=list)
|
||||||
|
title_en: list[str] = Field(default_factory=list)
|
||||||
|
|
||||||
|
abstract_de: list[str] = Field(default_factory=list)
|
||||||
|
abstract_en: list[str] = Field(default_factory=list)
|
||||||
|
|
||||||
|
subject_classifications: list[DfgSubjectClassificationHighlight] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
)
|
||||||
class DfgInstitutionSummary(BaseModel):
|
class DfgInstitutionSummary(BaseModel):
|
||||||
"""A summary of a DFG institution."""
|
"""A summary of a DFG institution."""
|
||||||
id: int
|
id: int
|
||||||
@@ -205,16 +316,22 @@ class DfgProjectSummary(BaseModel):
|
|||||||
description="The link to the DFG project details."
|
description="The link to the DFG project details."
|
||||||
)
|
)
|
||||||
|
|
||||||
title: str | None = Field(
|
title_de: str | None = Field(
|
||||||
default=None,
|
default=None,
|
||||||
description="The title of the DFG project."
|
description="The title of the DFG project in German."
|
||||||
)
|
)
|
||||||
|
|
||||||
professional_classification: str | None = Field(
|
title_en: str | None = Field(
|
||||||
default=None,
|
default=None,
|
||||||
description="The professional classification of the DFG project."
|
description="The title of the DFG project in English."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
subject_classifications_raw: str | None = Field(
|
||||||
|
default=None,
|
||||||
|
description="The subject classifications of the DFG project."
|
||||||
|
)
|
||||||
|
abstract_de: str | None = Field( default=None, description="The abstract of the DFG project in German.")
|
||||||
|
abstract_en: str | None = Field( default=None, description="The abstract of the DFG project in English.")
|
||||||
|
|
||||||
funding_start: str | None = Field(
|
funding_start: str | None = Field(
|
||||||
default=None,
|
default=None,
|
||||||
@@ -246,10 +363,16 @@ class DfgProjectSummary(BaseModel):
|
|||||||
default=None,
|
default=None,
|
||||||
description="The topics associated with the DFG project.",
|
description="The topics associated with the DFG project.",
|
||||||
)
|
)
|
||||||
|
highlight: DfgProjectHighlight | None = Field(
|
||||||
|
default=None,
|
||||||
|
description="Highlighted matching fragments.",
|
||||||
|
)
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_hit(cls, hit: dict) -> "DfgProjectSummary":
|
def from_hit(cls, hit: dict) -> "DfgProjectSummary":
|
||||||
source = hit.get("_source", {})
|
source = hit.get("_source", {})
|
||||||
fields = hit.get("fields", {})
|
|
||||||
|
source_id = source.get("id")
|
||||||
|
project_id = source_id if source_id is not None else hit.get("_id", "")
|
||||||
|
|
||||||
names = []
|
names = []
|
||||||
institutions = {}
|
institutions = {}
|
||||||
@@ -338,7 +461,6 @@ class DfgProjectSummary(BaseModel):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
topics_raw = source.get("topics") or []
|
topics_raw = source.get("topics") or []
|
||||||
print(f"Raw topics for DFG project {hit.get('_id', '')}: {topics_raw}")
|
|
||||||
topics = None
|
topics = None
|
||||||
if isinstance(topics_raw, list) and topics_raw:
|
if isinstance(topics_raw, list) and topics_raw:
|
||||||
# Sort by rank if present, so the most relevant topic comes first
|
# Sort by rank if present, so the most relevant topic comes first
|
||||||
@@ -348,34 +470,51 @@ class DfgProjectSummary(BaseModel):
|
|||||||
)
|
)
|
||||||
topics = [cls._topic_from_match(t) for t in sorted_topics_raw]
|
topics = [cls._topic_from_match(t) for t in sorted_topics_raw]
|
||||||
|
|
||||||
|
|
||||||
|
subject_classifications = source.get("subject_classifications")
|
||||||
|
if not isinstance(subject_classifications, list):
|
||||||
|
subject_classifications = []
|
||||||
|
|
||||||
return cls(
|
return cls(
|
||||||
id=hit.get("_id", ""),
|
id=str(project_id),
|
||||||
|
|
||||||
link=source.get("link") or source.get("page_url"),
|
link=source.get("link") or source.get("page_url"),
|
||||||
title=(
|
page_url=source.get("page_url"),
|
||||||
source.get("title")
|
|
||||||
or source.get("title_de")
|
title_de=source.get("title_de"),
|
||||||
or source.get("title_en")
|
title_en=source.get("title_en"),
|
||||||
),
|
|
||||||
professional_classification=(
|
abstract_de=source.get("abstract_de"),
|
||||||
source.get("Fachliche Zuordnung")
|
abstract_en=source.get("abstract_en"),
|
||||||
or source.get("subject_area_de")
|
|
||||||
|
subject_classifications_raw=(
|
||||||
|
source.get("subject_area_de")
|
||||||
or source.get("subject_area_en")
|
or source.get("subject_area_en")
|
||||||
),
|
),
|
||||||
|
|
||||||
funding_start=(
|
funding_start=(
|
||||||
str(source.get("funding_start"))
|
str(source["funding_start"])
|
||||||
if source.get("funding_start") is not None
|
if source.get("funding_start") is not None
|
||||||
else None
|
else None
|
||||||
),
|
),
|
||||||
funding_end=(
|
funding_end=(
|
||||||
str(source.get("funding_end"))
|
str(source["funding_end"])
|
||||||
if source.get("funding_end") is not None
|
if source.get("funding_end") is not None
|
||||||
else None
|
else None
|
||||||
),
|
),
|
||||||
|
|
||||||
institutions=list(institutions.values()),
|
institutions=list(institutions.values()),
|
||||||
names=names,
|
names=names,
|
||||||
persons=project_persons,
|
persons=project_persons,
|
||||||
subject_classifications=[DFGProjectFachgebieteInner.from_dict(cls) for cls in source.get('subject_classifications', [])],
|
|
||||||
topics=topics
|
subject_classifications=[
|
||||||
|
DFGProjectFachgebieteInner.from_dict(classification)
|
||||||
|
for classification in subject_classifications
|
||||||
|
if isinstance(classification, dict)
|
||||||
|
],
|
||||||
|
|
||||||
|
topics=topics or [],
|
||||||
|
highlight=cls._highlight_from_hit(hit),
|
||||||
)
|
)
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _topic_from_match(match: dict[str, Any]) -> Topic:
|
def _topic_from_match(match: dict[str, Any]) -> Topic:
|
||||||
@@ -412,13 +551,146 @@ class DfgProjectSummary(BaseModel):
|
|||||||
field=field,
|
field=field,
|
||||||
subfield=subfield,
|
subfield=subfield,
|
||||||
)
|
)
|
||||||
|
@staticmethod
|
||||||
|
def _highlight_fragments(value: Any) -> list[str]:
|
||||||
|
"""Normalize an Elasticsearch highlight value."""
|
||||||
|
|
||||||
|
if isinstance(value, str):
|
||||||
|
return [value]
|
||||||
|
|
||||||
|
if isinstance(value, list):
|
||||||
|
return [
|
||||||
|
fragment
|
||||||
|
for fragment in value
|
||||||
|
if isinstance(fragment, str)
|
||||||
|
]
|
||||||
|
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _highlight_from_hit(
|
||||||
|
cls,
|
||||||
|
hit: dict[str, Any],
|
||||||
|
) -> DfgProjectHighlight | None:
|
||||||
|
"""Parse top-level and nested highlights from an Elasticsearch hit."""
|
||||||
|
|
||||||
|
raw_highlight = hit.get("highlight")
|
||||||
|
if not isinstance(raw_highlight, dict):
|
||||||
|
raw_highlight = {}
|
||||||
|
|
||||||
|
result = DfgProjectHighlight(
|
||||||
|
title_de=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("title_de")
|
||||||
|
),
|
||||||
|
title_en=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("title_en")
|
||||||
|
),
|
||||||
|
abstract_de=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("abstract_de")
|
||||||
|
),
|
||||||
|
abstract_en=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("abstract_en")
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
raw_inner_hits = hit.get("inner_hits")
|
||||||
|
|
||||||
|
if isinstance(raw_inner_hits, dict):
|
||||||
|
for query_name, inner_hit_group in raw_inner_hits.items():
|
||||||
|
if not isinstance(inner_hit_group, dict):
|
||||||
|
continue
|
||||||
|
|
||||||
|
inner_hits_block = inner_hit_group.get("hits")
|
||||||
|
if not isinstance(inner_hits_block, dict):
|
||||||
|
continue
|
||||||
|
|
||||||
|
nested_hits = inner_hits_block.get("hits", [])
|
||||||
|
if not isinstance(nested_hits, list):
|
||||||
|
continue
|
||||||
|
|
||||||
|
for nested_hit in nested_hits:
|
||||||
|
if not isinstance(nested_hit, dict):
|
||||||
|
continue
|
||||||
|
|
||||||
|
nested_highlight = nested_hit.get("highlight")
|
||||||
|
if not isinstance(nested_highlight, dict):
|
||||||
|
continue
|
||||||
|
|
||||||
|
nested_metadata = nested_hit.get("_nested")
|
||||||
|
offset = None
|
||||||
|
|
||||||
|
if isinstance(nested_metadata, dict):
|
||||||
|
raw_offset = nested_metadata.get("offset")
|
||||||
|
if isinstance(raw_offset, int):
|
||||||
|
offset = raw_offset
|
||||||
|
|
||||||
|
parsed_nested_highlight = (
|
||||||
|
DfgSubjectClassificationHighlight(
|
||||||
|
query=str(query_name),
|
||||||
|
offset=offset,
|
||||||
|
fach=cls._highlight_fragments(
|
||||||
|
nested_highlight.get(
|
||||||
|
"subject_classifications.fach"
|
||||||
|
)
|
||||||
|
),
|
||||||
|
fachkollegium=cls._highlight_fragments(
|
||||||
|
nested_highlight.get(
|
||||||
|
"subject_classifications.fachkollegium"
|
||||||
|
)
|
||||||
|
),
|
||||||
|
fachgebiet=cls._highlight_fragments(
|
||||||
|
nested_highlight.get(
|
||||||
|
"subject_classifications.fachgebiet"
|
||||||
|
)
|
||||||
|
),
|
||||||
|
fachgebiet_de=cls._highlight_fragments(
|
||||||
|
nested_highlight.get(
|
||||||
|
"subject_classifications.fachgebiet_de"
|
||||||
|
)
|
||||||
|
),
|
||||||
|
wissenschaftsbereich=cls._highlight_fragments(
|
||||||
|
nested_highlight.get(
|
||||||
|
"subject_classifications."
|
||||||
|
"wissenschaftsbereich"
|
||||||
|
)
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
# Do not expose empty nested highlight objects.
|
||||||
|
has_nested_fragments = any(
|
||||||
|
(
|
||||||
|
parsed_nested_highlight.fach,
|
||||||
|
parsed_nested_highlight.fachkollegium,
|
||||||
|
parsed_nested_highlight.fachgebiet,
|
||||||
|
parsed_nested_highlight.fachgebiet_de,
|
||||||
|
parsed_nested_highlight.wissenschaftsbereich,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if has_nested_fragments:
|
||||||
|
result.subject_classifications.append(
|
||||||
|
parsed_nested_highlight
|
||||||
|
)
|
||||||
|
|
||||||
|
has_highlights = any(
|
||||||
|
(
|
||||||
|
result.title_de,
|
||||||
|
result.title_en,
|
||||||
|
result.abstract_de,
|
||||||
|
result.abstract_en,
|
||||||
|
result.subject_classifications,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
return result if has_highlights else None
|
||||||
|
|
||||||
class DfgProjectPage(Page):
|
class DfgProjectPage(Page):
|
||||||
elements: list[DfgProjectSummary] = Field(
|
elements: list[DfgProjectSummary] = Field(
|
||||||
default_factory=list, description="The DFG projects on this page."
|
default_factory=list, description="The DFG projects on this page."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class InstitutionFunderSummary(BaseModel):
|
class InstitutionFunderSummary(BaseModel):
|
||||||
type: ProjectType = Field(
|
type: ProjectType = Field(
|
||||||
description="The type of funding data (e.g., 'bund', 'eu', 'dfg')."
|
description="The type of funding data (e.g., 'bund', 'eu', 'dfg')."
|
||||||
@@ -706,7 +978,20 @@ class EuCordisEurosciVocSummary(BaseModel):
|
|||||||
description=source.get("description"),
|
description=source.get("description"),
|
||||||
path=source.get("path"),
|
path=source.get("path"),
|
||||||
)
|
)
|
||||||
|
class EuCordisProjectHighlight(BaseModel):
|
||||||
|
"""Highlighted fragments returned by Elasticsearch."""
|
||||||
|
|
||||||
|
title: list[str] = Field(default_factory=list)
|
||||||
|
acronym: list[str] = Field(default_factory=list)
|
||||||
|
objective: list[str] = Field(default_factory=list)
|
||||||
|
keywords: list[str] = Field(default_factory=list)
|
||||||
|
|
||||||
|
# Elasticsearch source/highlight field is "topics", but "topics" is already
|
||||||
|
# used by the API model for mapped OpenAlex Topic objects.
|
||||||
|
cordis_topic_text: list[str] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
description="Highlighted fragments from the CORDIS topics text field.",
|
||||||
|
)
|
||||||
|
|
||||||
class EuCordisProjectSummary(BaseModel):
|
class EuCordisProjectSummary(BaseModel):
|
||||||
id: str
|
id: str
|
||||||
@@ -731,7 +1016,18 @@ class EuCordisProjectSummary(BaseModel):
|
|||||||
cordis_topics: list[EuCordisTopicSummary] = Field(default_factory=list)
|
cordis_topics: list[EuCordisTopicSummary] = Field(default_factory=list)
|
||||||
eurosci_voc: list[EuCordisEurosciVocSummary] = Field(default_factory=list)
|
eurosci_voc: list[EuCordisEurosciVocSummary] = Field(default_factory=list)
|
||||||
topics: list[Topic] = Field(default_factory=list, description="Mapped OpenAlex topics.")
|
topics: list[Topic] = Field(default_factory=list, description="Mapped OpenAlex topics.")
|
||||||
|
cordis_topic_text: str | None = Field(
|
||||||
|
default=None,
|
||||||
|
description=(
|
||||||
|
"Original CORDIS topics text from the Elasticsearch project "
|
||||||
|
"document, for example 'MSCA-IF-2018'."
|
||||||
|
),
|
||||||
|
)
|
||||||
|
highlight: EuCordisProjectHighlight | None = Field(
|
||||||
|
default=None,
|
||||||
|
description="Highlighted matching fragments from the project search.",
|
||||||
|
)
|
||||||
|
@classmethod
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_hit(
|
def from_hit(
|
||||||
cls,
|
cls,
|
||||||
@@ -743,16 +1039,23 @@ class EuCordisProjectSummary(BaseModel):
|
|||||||
topics: list[Topic] | None = None,
|
topics: list[Topic] | None = None,
|
||||||
) -> "EuCordisProjectSummary":
|
) -> "EuCordisProjectSummary":
|
||||||
source = hit.get("_source", {})
|
source = hit.get("_source", {})
|
||||||
project_type = EuCordisProjectType.from_index_name(hit.get("_index", ""))
|
project_type = EuCordisProjectType.from_index_name(
|
||||||
|
hit.get("_index", "")
|
||||||
|
)
|
||||||
|
|
||||||
|
project_id = source.get("id")
|
||||||
|
if project_id is None:
|
||||||
|
project_id = hit.get("_id", "")
|
||||||
|
|
||||||
return cls(
|
return cls(
|
||||||
id=source.get("id") or hit.get("_id", ""),
|
id=str(project_id),
|
||||||
project_type=project_type,
|
project_type=project_type,
|
||||||
|
|
||||||
title=source.get("title"),
|
title=source.get("title"),
|
||||||
acronym=source.get("acronym"),
|
acronym=source.get("acronym"),
|
||||||
objective=source.get("objective"),
|
objective=source.get("objective"),
|
||||||
keywords=source.get("keywords"),
|
keywords=source.get("keywords"),
|
||||||
|
cordis_topic_text=source.get("topics"),
|
||||||
|
|
||||||
framework_programme=source.get("frameworkProgramme"),
|
framework_programme=source.get("frameworkProgramme"),
|
||||||
funding_scheme=source.get("fundingScheme"),
|
funding_scheme=source.get("fundingScheme"),
|
||||||
@@ -764,13 +1067,71 @@ class EuCordisProjectSummary(BaseModel):
|
|||||||
ec_max_contribution=source.get("ecMaxContribution"),
|
ec_max_contribution=source.get("ecMaxContribution"),
|
||||||
total_cost=source.get("totalCost"),
|
total_cost=source.get("totalCost"),
|
||||||
|
|
||||||
authors=authors or None,
|
authors=authors,
|
||||||
organizations=organizations or [],
|
organizations=organizations or [],
|
||||||
cordis_topics=cordis_topics or [],
|
cordis_topics=cordis_topics or [],
|
||||||
eurosci_voc=eurosci_voc or [],
|
eurosci_voc=eurosci_voc or [],
|
||||||
topics=topics or [],
|
topics=topics or [],
|
||||||
|
|
||||||
|
highlight=cls._highlight_from_hit(hit),
|
||||||
|
)
|
||||||
|
@staticmethod
|
||||||
|
def _highlight_fragments(value: Any) -> list[str]:
|
||||||
|
"""Normalize an Elasticsearch highlight value to a list of strings."""
|
||||||
|
|
||||||
|
if isinstance(value, str):
|
||||||
|
return [value]
|
||||||
|
|
||||||
|
if isinstance(value, list):
|
||||||
|
return [
|
||||||
|
fragment
|
||||||
|
for fragment in value
|
||||||
|
if isinstance(fragment, str)
|
||||||
|
]
|
||||||
|
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _highlight_from_hit(
|
||||||
|
cls,
|
||||||
|
hit: dict[str, Any],
|
||||||
|
) -> EuCordisProjectHighlight | None:
|
||||||
|
"""Extract project highlights from an Elasticsearch hit."""
|
||||||
|
|
||||||
|
raw_highlight = hit.get("highlight")
|
||||||
|
if not isinstance(raw_highlight, dict):
|
||||||
|
return None
|
||||||
|
|
||||||
|
highlight = EuCordisProjectHighlight(
|
||||||
|
title=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("title")
|
||||||
|
),
|
||||||
|
acronym=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("acronym")
|
||||||
|
),
|
||||||
|
objective=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("objective")
|
||||||
|
),
|
||||||
|
keywords=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("keywords")
|
||||||
|
),
|
||||||
|
cordis_topic_text=cls._highlight_fragments(
|
||||||
|
raw_highlight.get("topics")
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
has_highlights = any(
|
||||||
|
(
|
||||||
|
highlight.title,
|
||||||
|
highlight.acronym,
|
||||||
|
highlight.objective,
|
||||||
|
highlight.keywords,
|
||||||
|
highlight.cordis_topic_text,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
return highlight if has_highlights else None
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def topic_from_match(match: dict[str, Any]) -> Topic:
|
def topic_from_match(match: dict[str, Any]) -> Topic:
|
||||||
domain_name = match.get("domain")
|
domain_name = match.get("domain")
|
||||||
|
|||||||
@@ -100,7 +100,6 @@ async def search_bund_projects(
|
|||||||
|
|
||||||
response = await elasticsearch.search(
|
response = await elasticsearch.search(
|
||||||
index=ESIndex.PROJECTS_BUND_V1,
|
index=ESIndex.PROJECTS_BUND_V1,
|
||||||
track_total_hits=True,
|
|
||||||
query=query,
|
query=query,
|
||||||
sort=sort,
|
sort=sort,
|
||||||
size=filter_properties.size,
|
size=filter_properties.size,
|
||||||
@@ -401,7 +400,6 @@ async def search_dfg_projects(
|
|||||||
body: dict[str, Any] = {
|
body: dict[str, Any] = {
|
||||||
"size": size,
|
"size": size,
|
||||||
"from": from_,
|
"from": from_,
|
||||||
"track_total_hits": True,
|
|
||||||
"_source": [
|
"_source": [
|
||||||
"id",
|
"id",
|
||||||
"link",
|
"link",
|
||||||
@@ -409,9 +407,10 @@ async def search_dfg_projects(
|
|||||||
"title",
|
"title",
|
||||||
"title_de",
|
"title_de",
|
||||||
"title_en",
|
"title_en",
|
||||||
|
"abstract_de",
|
||||||
|
"abstract_en",
|
||||||
"funding_start",
|
"funding_start",
|
||||||
"funding_end",
|
"funding_end",
|
||||||
"Fachliche Zuordnung",
|
|
||||||
"subject_area_de",
|
"subject_area_de",
|
||||||
"subject_area_en",
|
"subject_area_en",
|
||||||
"persons",
|
"persons",
|
||||||
@@ -427,9 +426,8 @@ async def search_dfg_projects(
|
|||||||
# === Primary search clause: mutually exclusive fuzzy(topic_ids) vs keyword phrase search ===
|
# === Primary search clause: mutually exclusive fuzzy(topic_ids) vs keyword phrase search ===
|
||||||
if fuzzy and topic_ids:
|
if fuzzy and topic_ids:
|
||||||
matching_project_ids = await get_dfg_project_ids_by_topic_ids(
|
matching_project_ids = await get_dfg_project_ids_by_topic_ids(
|
||||||
topic_ids=topic_ids
|
topic_ids=topic_ids, match_all = False
|
||||||
)
|
)
|
||||||
|
|
||||||
if not matching_project_ids:
|
if not matching_project_ids:
|
||||||
return DfgProjectPage(elements=[], total=0, page=page, size=size)
|
return DfgProjectPage(elements=[], total=0, page=page, size=size)
|
||||||
|
|
||||||
@@ -441,13 +439,29 @@ async def search_dfg_projects(
|
|||||||
if keyword.strip() == "":
|
if keyword.strip() == "":
|
||||||
continue
|
continue
|
||||||
keyword_clauses.append(
|
keyword_clauses.append(
|
||||||
|
{
|
||||||
|
"bool": {
|
||||||
|
"should": [
|
||||||
{
|
{
|
||||||
"multi_match": {
|
"multi_match": {
|
||||||
"query": keyword,
|
"query": keyword,
|
||||||
"fields": [
|
"fields": [
|
||||||
"title", "title_de", "title_en",
|
"title_de",
|
||||||
"abstract_de", "abstract_en",
|
"title_en",
|
||||||
"subject_area_de", "subject_area_en",
|
"abstract_de",
|
||||||
|
"abstract_en",
|
||||||
|
],
|
||||||
|
"type": "phrase_prefix",
|
||||||
|
"max_expansions": 100,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"nested": {
|
||||||
|
"path": "subject_classifications",
|
||||||
|
"query": {
|
||||||
|
"multi_match": {
|
||||||
|
"query": keyword,
|
||||||
|
"fields": [
|
||||||
"subject_classifications.fach",
|
"subject_classifications.fach",
|
||||||
"subject_classifications.fachkollegium",
|
"subject_classifications.fachkollegium",
|
||||||
"subject_classifications.fachgebiet",
|
"subject_classifications.fachgebiet",
|
||||||
@@ -457,15 +471,33 @@ async def search_dfg_projects(
|
|||||||
"type": "phrase_prefix",
|
"type": "phrase_prefix",
|
||||||
"max_expansions": 100,
|
"max_expansions": 100,
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"inner_hits": {
|
||||||
|
"name": keyword,
|
||||||
|
"highlight": {
|
||||||
|
"fields": {
|
||||||
|
"subject_classifications.fach": {},
|
||||||
|
"subject_classifications.fachkollegium": {},
|
||||||
|
"subject_classifications.fachgebiet": {},
|
||||||
|
"subject_classifications.fachgebiet_de": {},
|
||||||
|
"subject_classifications.wissenschaftsbereich": {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"minimum_should_match": 1,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if keyword_clauses:
|
if keyword_clauses:
|
||||||
must_clauses.append({"bool": {"must": keyword_clauses}})
|
must_clauses.append({"bool": {"should": keyword_clauses, "minimum_should_match": 1}})
|
||||||
|
|
||||||
# === Additional independent filters (applied regardless of fuzzy/keyword mode) ===
|
# === Additional independent filters (applied regardless of fuzzy/keyword mode) ===
|
||||||
if filter_topic_ids:
|
if filter_topic_ids:
|
||||||
matching_filter_project_ids = await get_dfg_project_ids_by_topic_ids(
|
matching_filter_project_ids = await get_dfg_project_ids_by_topic_ids(
|
||||||
topic_ids=filter_topic_ids
|
topic_ids=filter_topic_ids, match_all=True
|
||||||
)
|
)
|
||||||
|
|
||||||
if not matching_filter_project_ids:
|
if not matching_filter_project_ids:
|
||||||
@@ -525,7 +557,7 @@ async def search_dfg_projects(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if name_must_clauses:
|
if name_must_clauses:
|
||||||
must_clauses.append({"bool": {"must": name_must_clauses}})
|
must_clauses.append({"bool": {"should": name_must_clauses, "minimum_should_match": 1}})
|
||||||
|
|
||||||
if institution_aliases:
|
if institution_aliases:
|
||||||
matching_institution_ids = await get_institution_ids_by_institution_aliases(
|
matching_institution_ids = await get_institution_ids_by_institution_aliases(
|
||||||
@@ -553,7 +585,7 @@ async def search_dfg_projects(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
print("MATCHING_INSTITUTION_IDS", matching_institution_ids)
|
#print("MATCHING_INSTITUTION_IDS", matching_institution_ids)
|
||||||
|
|
||||||
if institution_ids:
|
if institution_ids:
|
||||||
#prevously we were filtering by person_ids, but now we are filtering by institution_ids directly
|
#prevously we were filtering by person_ids, but now we are filtering by institution_ids directly
|
||||||
@@ -605,14 +637,28 @@ async def search_dfg_projects(
|
|||||||
sort_config = {"id": {"order": sort_direction}}
|
sort_config = {"id": {"order": sort_direction}}
|
||||||
|
|
||||||
body["sort"] = [sort_config]
|
body["sort"] = [sort_config]
|
||||||
|
|
||||||
|
#Add highlighting for the title and abstract fields
|
||||||
|
body["highlight"] = {
|
||||||
|
"fields": {
|
||||||
|
"title_de": {},
|
||||||
|
"title_en": {},
|
||||||
|
"abstract_de": {},
|
||||||
|
"abstract_en": {},
|
||||||
|
},
|
||||||
|
"pre_tags": ["<em>"],
|
||||||
|
"post_tags": ["</em>"],
|
||||||
|
"require_field_match": True,
|
||||||
|
}
|
||||||
# print(f"Executing DFG project search with body: {json.dumps(body, indent=2)}")
|
# print(f"Executing DFG project search with body: {json.dumps(body, indent=2)}")
|
||||||
# === Execute Search ===
|
# === Execute Search ===
|
||||||
|
# print(f"Executing DFG project search with body: {body}")
|
||||||
response = await elasticsearch.search(
|
response = await elasticsearch.search(
|
||||||
index=ESIndex.DFG_PROJECTS,
|
index=ESIndex.DFG_PROJECTS,
|
||||||
body=body,
|
body=body,
|
||||||
cluster=ESCluster.INSE,
|
cluster=ESCluster.INSE,
|
||||||
)
|
)
|
||||||
|
# print(f"Received DFG project search response: {response}")
|
||||||
hits = response.get("hits", {}).get("hits", [])
|
hits = response.get("hits", {}).get("hits", [])
|
||||||
|
|
||||||
if skip_enrichment:
|
if skip_enrichment:
|
||||||
@@ -940,7 +986,7 @@ async def search_bund_projects_with_filters(
|
|||||||
)
|
)
|
||||||
# === Primary search clause: fuzzy(topic_ids) vs keyword phrase search ===
|
# === Primary search clause: fuzzy(topic_ids) vs keyword phrase search ===
|
||||||
if fuzzy and topic_ids:
|
if fuzzy and topic_ids:
|
||||||
matching_project_ids = await get_bund_project_ids_by_topic_ids(topic_ids=topic_ids)
|
matching_project_ids = await get_bund_project_ids_by_topic_ids(topic_ids=topic_ids, match_all=False)
|
||||||
if not matching_project_ids:
|
if not matching_project_ids:
|
||||||
return BundProjectPage(elements=[], total=0, page=page, size=size)
|
return BundProjectPage(elements=[], total=0, page=page, size=size)
|
||||||
must_clauses.append({"terms": {"_id": matching_project_ids}})
|
must_clauses.append({"terms": {"_id": matching_project_ids}})
|
||||||
@@ -963,7 +1009,7 @@ async def search_bund_projects_with_filters(
|
|||||||
|
|
||||||
# === Additional independent filters (applied regardless of fuzzy/keyword mode) ===
|
# === Additional independent filters (applied regardless of fuzzy/keyword mode) ===
|
||||||
if filter_topic_ids:
|
if filter_topic_ids:
|
||||||
matching_filter_ids = await get_bund_project_ids_by_topic_ids(topic_ids=filter_topic_ids)
|
matching_filter_ids = await get_bund_project_ids_by_topic_ids(topic_ids=filter_topic_ids, match_all=True)
|
||||||
if not matching_filter_ids:
|
if not matching_filter_ids:
|
||||||
return BundProjectPage(elements=[], total=0, page=page, size=size)
|
return BundProjectPage(elements=[], total=0, page=page, size=size)
|
||||||
must_clauses.append({"terms": {"_id": matching_filter_ids}})
|
must_clauses.append({"terms": {"_id": matching_filter_ids}})
|
||||||
@@ -1037,13 +1083,24 @@ async def search_bund_projects_with_filters(
|
|||||||
sort_config = {"Förderkennzeichen.keyword": {"order": sort_direction}}
|
sort_config = {"Förderkennzeichen.keyword": {"order": sort_direction}}
|
||||||
|
|
||||||
body["sort"] = [sort_config]
|
body["sort"] = [sort_config]
|
||||||
|
#Add highlighting for the title and abstract fields
|
||||||
|
body["highlight"] = {
|
||||||
|
"fields": {
|
||||||
|
"Verbundprojekt": {},
|
||||||
|
"Thema": {},
|
||||||
|
"Zuwendungsempfänger": {},
|
||||||
|
"Ausführende Stelle": {},
|
||||||
|
},
|
||||||
|
"pre_tags": ["<em>"],
|
||||||
|
"post_tags": ["</em>"],
|
||||||
|
"require_field_match": True,
|
||||||
|
}
|
||||||
# print(f"Executing BUND project search with body: {json.dumps(body, indent=2)}")
|
# print(f"Executing BUND project search with body: {json.dumps(body, indent=2)}")
|
||||||
# === Execute Search ===
|
# === Execute Search ===
|
||||||
response = await elasticsearch.search(
|
response = await elasticsearch.search(
|
||||||
index=ESIndex.PROJECTS_BUND_V1,
|
index=ESIndex.PROJECTS_BUND_V1,
|
||||||
body=body,
|
body=body,
|
||||||
cluster=ESCluster.INSE,
|
cluster=ESCluster.INSE,
|
||||||
track_total_hits=True,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
hits = response.get("hits", {}).get("hits", [])
|
hits = response.get("hits", {}).get("hits", [])
|
||||||
@@ -1177,7 +1234,6 @@ async def search_all_projects(
|
|||||||
offset=offset,
|
offset=offset,
|
||||||
query=query,
|
query=query,
|
||||||
sort=sort,
|
sort=sort,
|
||||||
track_total_hits=True,
|
|
||||||
)
|
)
|
||||||
return _response_to_funding_project_page(response=response, page=page, size=size)
|
return _response_to_funding_project_page(response=response, page=page, size=size)
|
||||||
|
|
||||||
|
|||||||
@@ -24,10 +24,14 @@ from .model import (
|
|||||||
FilterType,
|
FilterType,
|
||||||
KeywordOperator,
|
KeywordOperator,
|
||||||
PublicationType,
|
PublicationType,
|
||||||
|
PublicationTypeCount,
|
||||||
RankedAuthor,
|
RankedAuthor,
|
||||||
RankingWeights,
|
RankingWeights,
|
||||||
SubfieldShare,
|
SubfieldShare,
|
||||||
Timespan,
|
Timespan,
|
||||||
|
FieldNode,
|
||||||
|
SubfieldNode,
|
||||||
|
TopicNode,
|
||||||
)
|
)
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
@@ -487,6 +491,49 @@ def _topic_profile_query(
|
|||||||
"size": 10,
|
"size": 10,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
# topic treemap
|
||||||
|
"by_field": {
|
||||||
|
"terms": {
|
||||||
|
"field": "primary_topic.field.id",
|
||||||
|
"size": 30,
|
||||||
|
},
|
||||||
|
"aggs": {
|
||||||
|
"field_name": {
|
||||||
|
"terms": {
|
||||||
|
"field": "primary_topic.field.display_name.keyword",
|
||||||
|
"size": 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"by_subfield": {
|
||||||
|
"terms": {
|
||||||
|
"field": "primary_topic.subfield.id",
|
||||||
|
"size": 30,
|
||||||
|
},
|
||||||
|
"aggs": {
|
||||||
|
"subfield_name": {
|
||||||
|
"terms": {
|
||||||
|
"field": "primary_topic.subfield.display_name.keyword",
|
||||||
|
"size": 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"by_topic": {
|
||||||
|
"terms": {
|
||||||
|
"field": "primary_topic.id",
|
||||||
|
"size": 30,
|
||||||
|
},
|
||||||
|
"aggs": {
|
||||||
|
"topic_name": {
|
||||||
|
"terms": {
|
||||||
|
"field": "primary_topic.display_name.keyword",
|
||||||
|
"size": 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
"distinct_topics": {
|
"distinct_topics": {
|
||||||
"cardinality": {"field": "primary_topic.id"},
|
"cardinality": {"field": "primary_topic.id"},
|
||||||
},
|
},
|
||||||
@@ -549,6 +596,30 @@ async def topic_profile_for_authors(
|
|||||||
)
|
)
|
||||||
for bucket in to_work.get("by_subfield", {}).get("buckets", [])
|
for bucket in to_work.get("by_subfield", {}).get("buckets", [])
|
||||||
]
|
]
|
||||||
|
field_tree = [
|
||||||
|
FieldNode(
|
||||||
|
id=field_bucket.get("key", ""),
|
||||||
|
name=_bucket_name(field_bucket, "field_name", field_bucket.get("key", "")),
|
||||||
|
count=field_bucket.get("doc_count", 0),
|
||||||
|
subfields=[
|
||||||
|
SubfieldNode(
|
||||||
|
id=subfield_bucket.get("key", ""),
|
||||||
|
name=_bucket_name(subfield_bucket, "subfield_name", subfield_bucket.get("key", "")),
|
||||||
|
count=subfield_bucket.get("doc_count", 0),
|
||||||
|
topics=[
|
||||||
|
TopicNode(
|
||||||
|
id=topic_bucket.get("key", ""),
|
||||||
|
name=_bucket_name(topic_bucket, "topic_name", topic_bucket.get("key", "")),
|
||||||
|
count=topic_bucket.get("doc_count", 0),
|
||||||
|
)
|
||||||
|
for topic_bucket in subfield_bucket.get("by_topic", {}).get("buckets", [])
|
||||||
|
],
|
||||||
|
)
|
||||||
|
for subfield_bucket in field_bucket.get("by_subfield", {}).get("buckets", [])
|
||||||
|
],
|
||||||
|
)
|
||||||
|
for field_bucket in to_work.get("by_field", {}).get("buckets", [])
|
||||||
|
]
|
||||||
results.append(
|
results.append(
|
||||||
AuthorTopicProfile(
|
AuthorTopicProfile(
|
||||||
author_id=author_bucket.get("key", ""),
|
author_id=author_bucket.get("key", ""),
|
||||||
@@ -560,6 +631,7 @@ async def topic_profile_for_authors(
|
|||||||
distinct_subfields=to_work.get("distinct_subfields", {}).get("value", 0),
|
distinct_subfields=to_work.get("distinct_subfields", {}).get("value", 0),
|
||||||
distinct_fields=to_work.get("distinct_fields", {}).get("value", 0),
|
distinct_fields=to_work.get("distinct_fields", {}).get("value", 0),
|
||||||
subfields=subfields,
|
subfields=subfields,
|
||||||
|
field_tree=field_tree,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -717,6 +789,84 @@ def _build_query(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def _build_publication_type_counts_query(
|
||||||
|
keywords: list[str],
|
||||||
|
operator: KeywordOperator,
|
||||||
|
author_ids: list[str],
|
||||||
|
timespan: Timespan | None,
|
||||||
|
config: MatchConfig = _KEYWORD_MATCH,
|
||||||
|
) -> dict:
|
||||||
|
"""Builds the query that counts matching works per publication type.
|
||||||
|
|
||||||
|
Mirrors _build_query's work filters but leaves out the publication_types
|
||||||
|
filter itself, since it aggregates over all types instead of one score.
|
||||||
|
"""
|
||||||
|
work_filters = [
|
||||||
|
_build_keyword_query(keywords, operator, config),
|
||||||
|
_author_filter(author_ids),
|
||||||
|
]
|
||||||
|
if timespan is not None:
|
||||||
|
work_filters.append(_timespan_filter(timespan))
|
||||||
|
|
||||||
|
return {
|
||||||
|
"size": 0,
|
||||||
|
"query": {
|
||||||
|
"bool": {
|
||||||
|
"filter": work_filters,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"aggs": {
|
||||||
|
"by_type": {
|
||||||
|
"terms": {
|
||||||
|
"field": "type",
|
||||||
|
"size": len(PublicationType),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async def publication_type_counts_for_keywords(
|
||||||
|
keywords: list[str],
|
||||||
|
operator: KeywordOperator,
|
||||||
|
institution_id: str,
|
||||||
|
career_stages: list[CareerStage],
|
||||||
|
timespan: Timespan | None,
|
||||||
|
filter_type: FilterType = FilterType.KEYWORD,
|
||||||
|
) -> list[PublicationTypeCount]:
|
||||||
|
"""Counts the university's matching works per publication type, largest first."""
|
||||||
|
author_ids = await _get_author_ids_from_institution(institution_id)
|
||||||
|
|
||||||
|
if not author_ids:
|
||||||
|
return []
|
||||||
|
|
||||||
|
if career_stages:
|
||||||
|
author_ids = await _filter_author_ids_by_career_stage(author_ids, career_stages)
|
||||||
|
|
||||||
|
query_body = _build_publication_type_counts_query(
|
||||||
|
keywords, operator, author_ids, timespan, _match_config(filter_type),
|
||||||
|
)
|
||||||
|
|
||||||
|
response: dict[str, Any] = await elasticsearch.search(
|
||||||
|
index=config.settings.openalex_works_search_index,
|
||||||
|
body=query_body,
|
||||||
|
cluster=ESCluster.NES,
|
||||||
|
)
|
||||||
|
|
||||||
|
type_buckets = response.get("aggregations", {}).get("by_type", {}).get("buckets", [])
|
||||||
|
|
||||||
|
counts = []
|
||||||
|
for bucket in type_buckets:
|
||||||
|
try:
|
||||||
|
publication_type = PublicationType(bucket["key"])
|
||||||
|
except ValueError:
|
||||||
|
continue
|
||||||
|
counts.append(PublicationTypeCount(type=publication_type, count=bucket["doc_count"]))
|
||||||
|
|
||||||
|
counts.sort(key=lambda c: c.count, reverse=True)
|
||||||
|
return counts
|
||||||
|
|
||||||
|
|
||||||
def _display_name_from_bucket(author_bucket: dict) -> str:
|
def _display_name_from_bucket(author_bucket: dict) -> str:
|
||||||
"""Reads the authors display name out of the name sub-aggregation."""
|
"""Reads the authors display name out of the name sub-aggregation."""
|
||||||
name_buckets = author_bucket.get("author_name", {}).get("buckets", [])
|
name_buckets = author_bucket.get("author_name", {}).get("buckets", [])
|
||||||
@@ -725,6 +875,14 @@ def _display_name_from_bucket(author_bucket: dict) -> str:
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
def _bucket_name(bucket: dict, name_agg_key: str, fallback: str) -> str:
|
||||||
|
"""Reads a display name out of a bucket's name sub-aggregation, falling back to its id."""
|
||||||
|
name_buckets = bucket.get(name_agg_key, {}).get("buckets", [])
|
||||||
|
if name_buckets and name_buckets[0].get("key"):
|
||||||
|
return str(name_buckets[0]["key"])
|
||||||
|
return fallback
|
||||||
|
|
||||||
|
|
||||||
def _citations_from_bucket(author_bucket: dict) -> int:
|
def _citations_from_bucket(author_bucket: dict) -> int:
|
||||||
"""Reads the summed citations out of the reverse_nested sub-aggregation."""
|
"""Reads the summed citations out of the reverse_nested sub-aggregation."""
|
||||||
citations_value = (
|
citations_value = (
|
||||||
|
|||||||
@@ -195,6 +195,42 @@ class AuthorMetricsRequest(BaseModel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class PublicationTypeCountsRequest(BaseModel):
|
||||||
|
keywords: list[str] = Field(
|
||||||
|
min_length=1,
|
||||||
|
description="One or more keywords to match works against.",
|
||||||
|
)
|
||||||
|
operator: KeywordOperator = Field(
|
||||||
|
default=KeywordOperator.AND,
|
||||||
|
description="How to combine the keywords: 'and' or 'or'. Defaults to 'and'.",
|
||||||
|
)
|
||||||
|
filter_type: FilterType = Field(
|
||||||
|
default=FilterType.KEYWORD,
|
||||||
|
description="What the 'keywords' values match against: 'keyword' (OpenAlex "
|
||||||
|
"keyword display names) or 'topic' (OpenAlex topic display names). Defaults to 'keyword'.",
|
||||||
|
)
|
||||||
|
career_stages: list[CareerStage] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
description="Optional filter: only count works of authors in one of these career stages. Empty = no filter.",
|
||||||
|
)
|
||||||
|
timespan: Timespan | None = Field(
|
||||||
|
default=None,
|
||||||
|
description="Optional filter: only count works whose publication_year is within [from, to].",
|
||||||
|
)
|
||||||
|
|
||||||
|
@field_validator("operator", "filter_type", mode="before")
|
||||||
|
@classmethod
|
||||||
|
def operator_case_insensitive(cls, value):
|
||||||
|
if isinstance(value, str):
|
||||||
|
return value.lower()
|
||||||
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
class PublicationTypeCount(BaseModel):
|
||||||
|
type: PublicationType = Field(description="The OpenAlex work type.")
|
||||||
|
count: int = Field(description="Number of matching works of this type.")
|
||||||
|
|
||||||
|
|
||||||
class AuthorTopicStats(BaseModel):
|
class AuthorTopicStats(BaseModel):
|
||||||
"""Section 1: combined stats over an author's works that match the topic filter."""
|
"""Section 1: combined stats over an author's works that match the topic filter."""
|
||||||
|
|
||||||
@@ -282,6 +318,32 @@ class SubfieldShare(BaseModel):
|
|||||||
count: int = Field(description="Number of works whose primary topic belongs to this subfield.")
|
count: int = Field(description="Number of works whose primary topic belongs to this subfield.")
|
||||||
|
|
||||||
|
|
||||||
|
class TopicNode(BaseModel):
|
||||||
|
id: str = Field(description="The OpenAlex ID of the primary topic.")
|
||||||
|
name: str = Field(description="The primary-topic display name.")
|
||||||
|
count: int = Field(description="Number of works whose primary topic is this topic.")
|
||||||
|
|
||||||
|
|
||||||
|
class SubfieldNode(BaseModel):
|
||||||
|
id: str = Field(description="The OpenAlex ID of the subfield.")
|
||||||
|
name: str = Field(description="The subfield display name.")
|
||||||
|
count: int = Field(description="Number of works whose primary topic belongs to this subfield.")
|
||||||
|
topics: list[TopicNode] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
description="Primary topics within this subfield, largest first.",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class FieldNode(BaseModel):
|
||||||
|
id: str = Field(description="The OpenAlex ID of the field.")
|
||||||
|
name: str = Field(description="The field display name.")
|
||||||
|
count: int = Field(description="Number of works whose primary topic belongs to this field.")
|
||||||
|
subfields: list[SubfieldNode] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
description="Subfields within this field, largest first.",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class AuthorTopicProfile(BaseModel):
|
class AuthorTopicProfile(BaseModel):
|
||||||
author_id: str = Field(description="The OpenAlex ID of the author.")
|
author_id: str = Field(description="The OpenAlex ID of the author.")
|
||||||
display_name: str = Field(description="The name of the author.")
|
display_name: str = Field(description="The name of the author.")
|
||||||
@@ -308,6 +370,11 @@ class AuthorTopicProfile(BaseModel):
|
|||||||
default_factory=list,
|
default_factory=list,
|
||||||
description="Top subfields over all works, by primary topic, largest first.",
|
description="Top subfields over all works, by primary topic, largest first.",
|
||||||
)
|
)
|
||||||
|
field_tree: list[FieldNode] = Field(
|
||||||
|
default_factory=list,
|
||||||
|
description="Field -> subfield -> topic hierarchy over all works, by primary "
|
||||||
|
"topic, each level largest first. Drives the interactive topic treemap.",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class AuthorStaticStats(BaseModel):
|
class AuthorStaticStats(BaseModel):
|
||||||
|
|||||||
@@ -116,6 +116,16 @@ Content-Type: application/json
|
|||||||
"timespan": { "from": 2018, "to": 2025 }
|
"timespan": { "from": 2018, "to": 2025 }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
###
|
||||||
|
POST http://localhost:8000/api/rank/topic-profile
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"author_ids": ["https://openalex.org/A504035360", "https://openalex.org/A5019137844"],
|
||||||
|
"keywords": ["Augmented Reality Applications"],
|
||||||
|
"operator": "or"
|
||||||
|
}
|
||||||
|
|
||||||
###
|
###
|
||||||
GET https://project.nes.uni-due.de/elastic/_aliases
|
GET https://project.nes.uni-due.de/elastic/_aliases
|
||||||
Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ==
|
Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ==
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ from .model import (
|
|||||||
AuthorTopicProfile,
|
AuthorTopicProfile,
|
||||||
AuthorTopicStats,
|
AuthorTopicStats,
|
||||||
KeywordToAuthorRequest,
|
KeywordToAuthorRequest,
|
||||||
|
PublicationTypeCount,
|
||||||
|
PublicationTypeCountsRequest,
|
||||||
RankedAuthor,
|
RankedAuthor,
|
||||||
SelectedAuthorsRequest,
|
SelectedAuthorsRequest,
|
||||||
)
|
)
|
||||||
@@ -68,6 +70,40 @@ async def rank_author(
|
|||||||
filter_type=request.filter_type,
|
filter_type=request.filter_type,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Publication-type facet counts for the "Art der Work" filter
|
||||||
|
@router.post("/publication-type-counts", response_model=list[PublicationTypeCount])
|
||||||
|
async def publication_type_counts(
|
||||||
|
request: PublicationTypeCountsRequest,
|
||||||
|
access_token_metadata: Annotated[
|
||||||
|
AccessTokenMetadata, CurrentUserAccessTokenPayloadDep
|
||||||
|
],
|
||||||
|
):
|
||||||
|
institution_id = access_token_metadata.effective_institution_id
|
||||||
|
if not institution_id:
|
||||||
|
raise HTTPException(
|
||||||
|
status_code=status.HTTP_403_FORBIDDEN,
|
||||||
|
detail="No OpenAlex institution is assigned to the current organization.",
|
||||||
|
)
|
||||||
|
|
||||||
|
logger.info(
|
||||||
|
"publication-type-counts keywords=%s operator=%s filter_type=%s institution_id=%s "
|
||||||
|
"career_stages=%s timespan=%s",
|
||||||
|
request.keywords,
|
||||||
|
request.operator,
|
||||||
|
request.filter_type,
|
||||||
|
institution_id,
|
||||||
|
request.career_stages,
|
||||||
|
request.timespan,
|
||||||
|
)
|
||||||
|
return await logic.publication_type_counts_for_keywords(
|
||||||
|
keywords=request.keywords,
|
||||||
|
operator=request.operator,
|
||||||
|
institution_id=institution_id,
|
||||||
|
career_stages=request.career_stages,
|
||||||
|
timespan=request.timespan,
|
||||||
|
filter_type=request.filter_type,
|
||||||
|
)
|
||||||
|
|
||||||
# Compare authors table 1 (topic stats)
|
# Compare authors table 1 (topic stats)
|
||||||
@router.post("/topic-stats", response_model=list[AuthorTopicStats])
|
@router.post("/topic-stats", response_model=list[AuthorTopicStats])
|
||||||
async def topic_stats(request: SelectedAuthorsRequest):
|
async def topic_stats(request: SelectedAuthorsRequest):
|
||||||
|
|||||||
@@ -1,84 +0,0 @@
|
|||||||
|
|
||||||
"""
|
|
||||||
This module contains the rest api of the
|
|
||||||
service.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import logging
|
|
||||||
from typing import Annotated
|
|
||||||
|
|
||||||
from fastapi import APIRouter, Query
|
|
||||||
|
|
||||||
from inse.config import get_settings
|
|
||||||
|
|
||||||
from . import logic
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
### startup
|
|
||||||
|
|
||||||
settings = get_settings()
|
|
||||||
|
|
||||||
router = APIRouter(
|
|
||||||
prefix="/api/inse-service",
|
|
||||||
tags=["INSE Service"],
|
|
||||||
responses={404: {"description": "Not found"}},
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
### topics
|
|
||||||
# hierarchy cache (temporaray => should be called by a scheduled job, with new openalex data indexing)
|
|
||||||
@router.get(
|
|
||||||
"/topics/cache",
|
|
||||||
operation_id="buildTopicCache",
|
|
||||||
response_model=dict,
|
|
||||||
summary="Builds the topic hierarchy cache.",
|
|
||||||
tags=["Topics"],
|
|
||||||
)
|
|
||||||
def build_topic_cache(
|
|
||||||
page_size: Annotated[
|
|
||||||
int, Query(description="Page size for each search page.", ge=1, le=1000)
|
|
||||||
] = 200,
|
|
||||||
save_json: Annotated[
|
|
||||||
bool, Query(description="Persist cache JSON to data folder.")
|
|
||||||
] = True,
|
|
||||||
):
|
|
||||||
return logic.build_topic_cache(page_size=page_size, save_json=save_json)
|
|
||||||
|
|
||||||
|
|
||||||
@router.get(
|
|
||||||
"/topics/count",
|
|
||||||
operation_id="countTopicHierarchy",
|
|
||||||
response_model=dict,
|
|
||||||
summary="Counts topic hierarchy occurrences from cache.",
|
|
||||||
tags=["Topics"],
|
|
||||||
)
|
|
||||||
def count_topic_hierarchy(
|
|
||||||
topic_names: Annotated[
|
|
||||||
list[str],
|
|
||||||
Query(
|
|
||||||
alias="topic",
|
|
||||||
description="Topic names (repeat parameter).",
|
|
||||||
example=[
|
|
||||||
"Big Data and Business Intelligence",
|
|
||||||
"Big Data and Business Intelligence",
|
|
||||||
"Topic Modeling",
|
|
||||||
"Entrepreneurship Studies and Influences",
|
|
||||||
"Complex Network Analysis Techniques",
|
|
||||||
"Semantic Web and Ontologies",
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
|
||||||
):
|
|
||||||
return logic.count_topic_hierarchy(topic_names)
|
|
||||||
|
|
||||||
|
|
||||||
@router.get(
|
|
||||||
"/topics/hierarchy",
|
|
||||||
operation_id="getTopicHierarchy",
|
|
||||||
response_model=dict,
|
|
||||||
summary="Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics).",
|
|
||||||
tags=["Topics"],
|
|
||||||
)
|
|
||||||
def get_topic_hierarchy():
|
|
||||||
return logic.get_topic_hierarchy()
|
|
||||||
@@ -1,111 +1,10 @@
|
|||||||
|
|
||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
|
|
||||||
from inse.main import app
|
from inse.main import app
|
||||||
|
|
||||||
client = TestClient(app)
|
client = TestClient(app)
|
||||||
URL_SERVICE_PREFIX="/inse-service"
|
|
||||||
|
|
||||||
def test_redirect_root():
|
def test_redirect_root():
|
||||||
response = client.get("/", follow_redirects=False)
|
response = client.get("/", follow_redirects=False)
|
||||||
assert response.status_code == 307
|
assert response.status_code == 307
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# def test_get_person_by_id_success():
|
|
||||||
|
|
||||||
# mock_person = model.Person(
|
|
||||||
# id="A5093075883",
|
|
||||||
# name="Arman Arzani",
|
|
||||||
# works_count=6,
|
|
||||||
# cited_by_count=4,
|
|
||||||
# affiliations=[],
|
|
||||||
# topics=[]
|
|
||||||
# )
|
|
||||||
|
|
||||||
# with patch("inse.logic.get_person_by_id", return_value=mock_person):
|
|
||||||
|
|
||||||
# response = client.get(
|
|
||||||
# URL_SERVICE_PREFIX + "/persons/id",
|
|
||||||
# params={"author_id": "A5093075883"}
|
|
||||||
# )
|
|
||||||
|
|
||||||
# assert response.status_code == 200
|
|
||||||
|
|
||||||
# data = response.json()
|
|
||||||
|
|
||||||
# assert data["id"] == "A5093075883"
|
|
||||||
# assert data["name"] == "Arman Arzani"
|
|
||||||
# assert data["works_count"] == 6
|
|
||||||
# assert data["cited_by_count"] == 4
|
|
||||||
|
|
||||||
# def test_get_person_by_id_not_found():
|
|
||||||
# invalid_id = "INVALID"
|
|
||||||
# with patch(
|
|
||||||
# "inse.logic.get_person_by_id",
|
|
||||||
# side_effect=HTTPException(
|
|
||||||
# status_code=404,
|
|
||||||
# detail="Person with id INVALID not found"
|
|
||||||
# )
|
|
||||||
# ):
|
|
||||||
|
|
||||||
# response = client.get(
|
|
||||||
# URL_SERVICE_PREFIX + "/persons/id",
|
|
||||||
# params={"author_id": invalid_id}
|
|
||||||
# )
|
|
||||||
# assert response.status_code == 404
|
|
||||||
|
|
||||||
# def test_get_person_by_id_missing_query_param():
|
|
||||||
|
|
||||||
# response = client.get(URL_SERVICE_PREFIX + "/persons/id")
|
|
||||||
|
|
||||||
# assert response.status_code == 422
|
|
||||||
|
|
||||||
# def test_search_persons_by_name_success():
|
|
||||||
|
|
||||||
# mock_result = model.PersonSearchResult(
|
|
||||||
# persons=[
|
|
||||||
# model.Person(
|
|
||||||
# id="A5047117780",
|
|
||||||
# name="Pedro José Marrón",
|
|
||||||
# works_count=285,
|
|
||||||
# cited_by_count=2638,
|
|
||||||
# )
|
|
||||||
# ]
|
|
||||||
# )
|
|
||||||
|
|
||||||
# with patch(
|
|
||||||
# "inse.logic.search_persons_by_name",
|
|
||||||
# return_value=mock_result
|
|
||||||
# ):
|
|
||||||
|
|
||||||
# response = client.get(
|
|
||||||
# URL_SERVICE_PREFIX + "/persons/searchByName",
|
|
||||||
# params={"author_name": "Pedro José Marrón"}
|
|
||||||
# )
|
|
||||||
|
|
||||||
# assert response.status_code == 200
|
|
||||||
|
|
||||||
# data = response.json()
|
|
||||||
|
|
||||||
# assert "persons" in data
|
|
||||||
# assert data["persons"][0]["name"] == "Pedro José Marrón"
|
|
||||||
|
|
||||||
# def test_search_persons_by_name_empty_result():
|
|
||||||
|
|
||||||
# response = client.get(
|
|
||||||
# URL_SERVICE_PREFIX + "/persons/searchByName",
|
|
||||||
# params={"author_name": "zzzz_nonexistent_name_123"}
|
|
||||||
# )
|
|
||||||
|
|
||||||
# assert response.status_code == 200
|
|
||||||
|
|
||||||
# data = response.json()
|
|
||||||
|
|
||||||
# assert data["persons"] == []
|
|
||||||
|
|
||||||
# def test_search_persons_by_name_missing_query_param():
|
|
||||||
|
|
||||||
# response = client.get(URL_SERVICE_PREFIX + "/persons/searchByName")
|
|
||||||
|
|
||||||
# assert response.status_code == 422
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
from enum import StrEnum
|
from enum import StrEnum
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
from inse.model import Page
|
from inse.model import Page
|
||||||
from inse.models.openalex.topic import Topic
|
from inse.models.openalex.topic import Topic
|
||||||
@@ -12,3 +13,25 @@ class TopicSortBy(StrEnum):
|
|||||||
|
|
||||||
class TopicPageV2(Page[Topic]):
|
class TopicPageV2(Page[Topic]):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class TopicHierarchySubfield(BaseModel):
|
||||||
|
id: str | None = None
|
||||||
|
name: str
|
||||||
|
topics: list[Topic] = []
|
||||||
|
|
||||||
|
|
||||||
|
class TopicHierarchyField(BaseModel):
|
||||||
|
id: str | None = None
|
||||||
|
name: str
|
||||||
|
subfields: list[TopicHierarchySubfield] = []
|
||||||
|
|
||||||
|
|
||||||
|
class TopicHierarchyDomain(BaseModel):
|
||||||
|
id: str | None = None
|
||||||
|
name: str
|
||||||
|
fields: list[TopicHierarchyField] = []
|
||||||
|
|
||||||
|
|
||||||
|
class TopicHierarchyResponse(BaseModel):
|
||||||
|
domains: list[TopicHierarchyDomain] = []
|
||||||
|
|||||||
@@ -10,7 +10,11 @@ from inse.models.openalex.subfield import Subfield
|
|||||||
from inse.models.openalex.topic import Topic
|
from inse.models.openalex.topic import Topic
|
||||||
from inse.router_prefixes import RouterPrefixes
|
from inse.router_prefixes import RouterPrefixes
|
||||||
from inse.tags import Tags
|
from inse.tags import Tags
|
||||||
from inse.topics.v2.model import TopicPageV2, TopicSortBy
|
from inse.topics.v2.model import (
|
||||||
|
TopicHierarchyResponse,
|
||||||
|
TopicPageV2,
|
||||||
|
TopicSortBy,
|
||||||
|
)
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -18,6 +22,15 @@ logger = logging.getLogger(__name__)
|
|||||||
router = APIRouter(prefix=RouterPrefixes.TOPICS_V2, tags=[Tags.TOPICS_V2])
|
router = APIRouter(prefix=RouterPrefixes.TOPICS_V2, tags=[Tags.TOPICS_V2])
|
||||||
|
|
||||||
|
|
||||||
|
@router.get(
|
||||||
|
"/hierarchy",
|
||||||
|
operation_id="getTopicHierarchy",
|
||||||
|
summary="Returns the full topic hierarchy tree (Domain -> Field -> Subfield -> Topics).",
|
||||||
|
)
|
||||||
|
async def get_topic_hierarchy() -> TopicHierarchyResponse:
|
||||||
|
return await topics_service.get_topic_hierarchy()
|
||||||
|
|
||||||
|
|
||||||
@router.get(
|
@router.get(
|
||||||
"/search",
|
"/search",
|
||||||
operation_id="searchTopics",
|
operation_id="searchTopics",
|
||||||
|
|||||||
@@ -5,7 +5,14 @@ from inse.models.openalex.domain import Domain
|
|||||||
from inse.models.openalex.model_field import ModelField
|
from inse.models.openalex.model_field import ModelField
|
||||||
from inse.models.openalex.subfield import Subfield
|
from inse.models.openalex.subfield import Subfield
|
||||||
from inse.models.openalex.topic import Topic
|
from inse.models.openalex.topic import Topic
|
||||||
from inse.topics.v2.model import TopicPageV2, TopicSortBy
|
from inse.topics.v2.model import (
|
||||||
|
TopicHierarchyDomain,
|
||||||
|
TopicHierarchyField,
|
||||||
|
TopicHierarchyResponse,
|
||||||
|
TopicHierarchySubfield,
|
||||||
|
TopicPageV2,
|
||||||
|
TopicSortBy,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def _search_topics(
|
async def _search_topics(
|
||||||
@@ -322,3 +329,118 @@ async def get_topics_by_ids(topic_ids: list[str]) -> TopicPageV2:
|
|||||||
"domain",
|
"domain",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
_cached_hierarchy: TopicHierarchyResponse | None = None #cache is small, data is static => reduces database calls
|
||||||
|
|
||||||
|
|
||||||
|
def clear_topic_hierarchy_cache() -> None:
|
||||||
|
global _cached_hierarchy
|
||||||
|
_cached_hierarchy = None
|
||||||
|
|
||||||
|
|
||||||
|
async def get_topic_hierarchy() -> TopicHierarchyResponse:
|
||||||
|
"""Builds and returns a hierarchical tree structure of topics:
|
||||||
|
Domains -> Fields -> Subfields -> Topics
|
||||||
|
Data is dynamically streamed from Elasticsearch openalex-topics using PIT+search_after scan and cached in-memory.
|
||||||
|
"""
|
||||||
|
global _cached_hierarchy
|
||||||
|
if _cached_hierarchy is not None:
|
||||||
|
return _cached_hierarchy
|
||||||
|
|
||||||
|
domains_map: dict[str, dict] = {}
|
||||||
|
|
||||||
|
async for hit in elasticsearch.scan(
|
||||||
|
index=ESIndex.OPENALEX_TOPICS,
|
||||||
|
query={"match_all": {}},
|
||||||
|
source=[
|
||||||
|
"id",
|
||||||
|
"display_name",
|
||||||
|
"description",
|
||||||
|
"subfield",
|
||||||
|
"field",
|
||||||
|
"domain",
|
||||||
|
"works_count",
|
||||||
|
"cited_by_count",
|
||||||
|
],
|
||||||
|
page_size=2000,
|
||||||
|
):
|
||||||
|
source = hit.get("_source", {})
|
||||||
|
topic_name = source.get("display_name")
|
||||||
|
topic_id = source.get("id") or hit.get("_id")
|
||||||
|
if not topic_name or not topic_id:
|
||||||
|
continue
|
||||||
|
|
||||||
|
domain_info = source.get("domain") or {}
|
||||||
|
field_info = source.get("field") or {}
|
||||||
|
subfield_info = source.get("subfield") or {}
|
||||||
|
|
||||||
|
domain_name = domain_info.get("display_name") or "Unbekannter Bereich"
|
||||||
|
domain_id = domain_info.get("id")
|
||||||
|
field_name = field_info.get("display_name") or "Unbekanntes Feld"
|
||||||
|
field_id = field_info.get("id")
|
||||||
|
subfield_name = subfield_info.get("display_name") or "Unbekanntes Teilfeld"
|
||||||
|
subfield_id = subfield_info.get("id")
|
||||||
|
|
||||||
|
if domain_name not in domains_map:
|
||||||
|
domains_map[domain_name] = {
|
||||||
|
"id": domain_id,
|
||||||
|
"name": domain_name,
|
||||||
|
"fields": {},
|
||||||
|
}
|
||||||
|
fields_map = domains_map[domain_name]["fields"]
|
||||||
|
|
||||||
|
if field_name not in fields_map:
|
||||||
|
fields_map[field_name] = {
|
||||||
|
"id": field_id,
|
||||||
|
"name": field_name,
|
||||||
|
"subfields": {},
|
||||||
|
}
|
||||||
|
subfields_map = fields_map[field_name]["subfields"]
|
||||||
|
|
||||||
|
if subfield_name not in subfields_map:
|
||||||
|
subfields_map[subfield_name] = {
|
||||||
|
"id": subfield_id,
|
||||||
|
"name": subfield_name,
|
||||||
|
"topics": [],
|
||||||
|
}
|
||||||
|
|
||||||
|
topic_obj = Topic.from_dict(source) if hasattr(Topic, "from_dict") else Topic(**source)
|
||||||
|
subfields_map[subfield_name]["topics"].append(topic_obj)
|
||||||
|
|
||||||
|
formatted_domains: list[TopicHierarchyDomain] = []
|
||||||
|
for d_name, d_val in sorted(domains_map.items(), key=lambda x: x[0]):
|
||||||
|
formatted_fields: list[TopicHierarchyField] = []
|
||||||
|
for f_name, f_val in sorted(d_val["fields"].items(), key=lambda x: x[0]):
|
||||||
|
formatted_subfields: list[TopicHierarchySubfield] = []
|
||||||
|
for sf_name, sf_val in sorted(
|
||||||
|
f_val["subfields"].items(), key=lambda x: x[0]
|
||||||
|
):
|
||||||
|
sf_val["topics"].sort(
|
||||||
|
key=lambda t: t.display_name or ""
|
||||||
|
)
|
||||||
|
formatted_subfields.append(
|
||||||
|
TopicHierarchySubfield(
|
||||||
|
id=sf_val["id"],
|
||||||
|
name=sf_name,
|
||||||
|
topics=sf_val["topics"],
|
||||||
|
)
|
||||||
|
)
|
||||||
|
formatted_fields.append(
|
||||||
|
TopicHierarchyField(
|
||||||
|
id=f_val["id"],
|
||||||
|
name=f_name,
|
||||||
|
subfields=formatted_subfields,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
formatted_domains.append(
|
||||||
|
TopicHierarchyDomain(
|
||||||
|
id=d_val["id"],
|
||||||
|
name=d_name,
|
||||||
|
fields=formatted_fields,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
result = TopicHierarchyResponse(domains=formatted_domains)
|
||||||
|
_cached_hierarchy = result
|
||||||
|
return result
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ api/dFGInstitutions.service.ts
|
|||||||
api/dFGPersons.service.ts
|
api/dFGPersons.service.ts
|
||||||
api/dashboard.service.ts
|
api/dashboard.service.ts
|
||||||
api/funding.service.ts
|
api/funding.service.ts
|
||||||
api/iNSEService.service.ts
|
|
||||||
api/institutions.service.ts
|
api/institutions.service.ts
|
||||||
api/institutionsV2.service.ts
|
api/institutionsV2.service.ts
|
||||||
api/keywords.service.ts
|
api/keywords.service.ts
|
||||||
@@ -73,8 +72,10 @@ model/bodyResetPassword.ts
|
|||||||
model/bundInstitutionSummary.ts
|
model/bundInstitutionSummary.ts
|
||||||
model/bundInstitutionSummaryPage.ts
|
model/bundInstitutionSummaryPage.ts
|
||||||
model/bundProjectDetails.ts
|
model/bundProjectDetails.ts
|
||||||
|
model/bundProjectHighlight.ts
|
||||||
model/bundProjectPage.ts
|
model/bundProjectPage.ts
|
||||||
model/bundProjectSummary.ts
|
model/bundProjectSummary.ts
|
||||||
|
model/bundProjectTopics.ts
|
||||||
model/careerMetrics.ts
|
model/careerMetrics.ts
|
||||||
model/careerStage.ts
|
model/careerStage.ts
|
||||||
model/collaborationGraph.ts
|
model/collaborationGraph.ts
|
||||||
@@ -102,6 +103,7 @@ model/dfgInstitutionSummaryPage.ts
|
|||||||
model/dfgPersonSummary.ts
|
model/dfgPersonSummary.ts
|
||||||
model/dfgPersonSummaryPage.ts
|
model/dfgPersonSummaryPage.ts
|
||||||
model/dfgProjectDetails.ts
|
model/dfgProjectDetails.ts
|
||||||
|
model/dfgProjectHighlight.ts
|
||||||
model/dfgProjectInstitutionRole.ts
|
model/dfgProjectInstitutionRole.ts
|
||||||
model/dfgProjectKeyword.ts
|
model/dfgProjectKeyword.ts
|
||||||
model/dfgProjectPage.ts
|
model/dfgProjectPage.ts
|
||||||
@@ -112,12 +114,17 @@ model/dfgProjectSubprojectSummary.ts
|
|||||||
model/dfgProjectSummary.ts
|
model/dfgProjectSummary.ts
|
||||||
model/dfgProjectTopic.ts
|
model/dfgProjectTopic.ts
|
||||||
model/dfgProjectTopics.ts
|
model/dfgProjectTopics.ts
|
||||||
|
model/dfgSubjectClassificationHighlight.ts
|
||||||
model/dockerHealth.ts
|
model/dockerHealth.ts
|
||||||
|
model/domain.ts
|
||||||
|
model/domainFieldsInner.ts
|
||||||
|
model/domainIds.ts
|
||||||
model/edge.ts
|
model/edge.ts
|
||||||
model/euCordisEurosciVocSummary.ts
|
model/euCordisEurosciVocSummary.ts
|
||||||
model/euCordisOrganizationSelectorPage.ts
|
model/euCordisOrganizationSelectorPage.ts
|
||||||
model/euCordisOrganizationSelectorSummary.ts
|
model/euCordisOrganizationSelectorSummary.ts
|
||||||
model/euCordisOrganizationSummary.ts
|
model/euCordisOrganizationSummary.ts
|
||||||
|
model/euCordisProjectHighlight.ts
|
||||||
model/euCordisProjectResponse.ts
|
model/euCordisProjectResponse.ts
|
||||||
model/euCordisProjectSearchPage.ts
|
model/euCordisProjectSearchPage.ts
|
||||||
model/euCordisProjectSummary.ts
|
model/euCordisProjectSummary.ts
|
||||||
@@ -125,9 +132,11 @@ model/euCordisProjectType.ts
|
|||||||
model/euCordisTopicSummary.ts
|
model/euCordisTopicSummary.ts
|
||||||
model/euProjectData.ts
|
model/euProjectData.ts
|
||||||
model/euProjectStatusStatistics.ts
|
model/euProjectStatusStatistics.ts
|
||||||
|
model/euProjectTopics.ts
|
||||||
model/extractedKeywords.ts
|
model/extractedKeywords.ts
|
||||||
model/extractedKeywordsLLM.ts
|
model/extractedKeywordsLLM.ts
|
||||||
model/extractedKeywordsResponse.ts
|
model/extractedKeywordsResponse.ts
|
||||||
|
model/fieldNode.ts
|
||||||
model/fileUpload.ts
|
model/fileUpload.ts
|
||||||
model/filterType.ts
|
model/filterType.ts
|
||||||
model/fp7EurosciVoc.ts
|
model/fp7EurosciVoc.ts
|
||||||
@@ -209,6 +218,7 @@ model/matchedTopic.ts
|
|||||||
model/mentionedPerson.ts
|
model/mentionedPerson.ts
|
||||||
model/meta.ts
|
model/meta.ts
|
||||||
model/model2YrMeanCitedness.ts
|
model/model2YrMeanCitedness.ts
|
||||||
|
model/modelField.ts
|
||||||
model/models.ts
|
model/models.ts
|
||||||
model/newsArticle.ts
|
model/newsArticle.ts
|
||||||
model/newsArticleDetail.ts
|
model/newsArticleDetail.ts
|
||||||
@@ -234,6 +244,8 @@ model/projectsSortBy.ts
|
|||||||
model/publicationDetailByFunder.ts
|
model/publicationDetailByFunder.ts
|
||||||
model/publicationIdsByAuthorPosition.ts
|
model/publicationIdsByAuthorPosition.ts
|
||||||
model/publicationType.ts
|
model/publicationType.ts
|
||||||
|
model/publicationTypeCount.ts
|
||||||
|
model/publicationTypeCountsRequest.ts
|
||||||
model/publicationsByAuthorResponse.ts
|
model/publicationsByAuthorResponse.ts
|
||||||
model/rankedAuthor.ts
|
model/rankedAuthor.ts
|
||||||
model/rankingResponse.ts
|
model/rankingResponse.ts
|
||||||
@@ -244,10 +256,15 @@ model/score.ts
|
|||||||
model/selectedAuthorsRequest.ts
|
model/selectedAuthorsRequest.ts
|
||||||
model/sortDirection.ts
|
model/sortDirection.ts
|
||||||
model/startCollaborationGraphResponse.ts
|
model/startCollaborationGraphResponse.ts
|
||||||
|
model/subfield.ts
|
||||||
|
model/subfieldDomain.ts
|
||||||
|
model/subfieldField.ts
|
||||||
|
model/subfieldNode.ts
|
||||||
model/subfieldShare.ts
|
model/subfieldShare.ts
|
||||||
model/timespan.ts
|
model/timespan.ts
|
||||||
model/tokenType.ts
|
model/tokenType.ts
|
||||||
model/topAuthor.ts
|
model/topAuthor.ts
|
||||||
|
model/topAuthorAnalysis.ts
|
||||||
model/topAuthorStatistics.ts
|
model/topAuthorStatistics.ts
|
||||||
model/topInstitutionItem.ts
|
model/topInstitutionItem.ts
|
||||||
model/topTopicItem.ts
|
model/topTopicItem.ts
|
||||||
@@ -261,7 +278,12 @@ model/topicHeatmapField.ts
|
|||||||
model/topicHeatmapSubfield.ts
|
model/topicHeatmapSubfield.ts
|
||||||
model/topicHeatmapTopic.ts
|
model/topicHeatmapTopic.ts
|
||||||
model/topicHeatmapValue.ts
|
model/topicHeatmapValue.ts
|
||||||
|
model/topicHierarchyDomain.ts
|
||||||
|
model/topicHierarchyField.ts
|
||||||
|
model/topicHierarchyResponse.ts
|
||||||
|
model/topicHierarchySubfield.ts
|
||||||
model/topicIds.ts
|
model/topicIds.ts
|
||||||
|
model/topicNode.ts
|
||||||
model/topicPageV2.ts
|
model/topicPageV2.ts
|
||||||
model/topicSortBy.ts
|
model/topicSortBy.ts
|
||||||
model/topicSubfield.ts
|
model/topicSubfield.ts
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ export * from './dashboard.service';
|
|||||||
import { DashboardService } from './dashboard.service';
|
import { DashboardService } from './dashboard.service';
|
||||||
export * from './funding.service';
|
export * from './funding.service';
|
||||||
import { FundingService } from './funding.service';
|
import { FundingService } from './funding.service';
|
||||||
export * from './iNSEService.service';
|
|
||||||
import { INSEServiceService } from './iNSEService.service';
|
|
||||||
export * from './institutions.service';
|
export * from './institutions.service';
|
||||||
import { InstitutionsService } from './institutions.service';
|
import { InstitutionsService } from './institutions.service';
|
||||||
export * from './institutionsV2.service';
|
export * from './institutionsV2.service';
|
||||||
@@ -48,4 +46,29 @@ export * from './works.service';
|
|||||||
import { WorksService } from './works.service';
|
import { WorksService } from './works.service';
|
||||||
export * from './worksV2.service';
|
export * from './worksV2.service';
|
||||||
import { WorksV2Service } from './worksV2.service';
|
import { WorksV2Service } from './worksV2.service';
|
||||||
export const APIS = [AuthService, AuthorsV2Service, BUNDInstitutionsService, BackgroundJobsService, BookmarksService, CompanyConnectionsService, DFGInstitutionsService, DFGPersonsService, DashboardService, FundingService, INSEServiceService, InstitutionsService, InstitutionsV2Service, KeywordsService, NewsService, OrganizationService, PatentsService, PersonsService, ProjectsService, RankingService, TopicsService, TopicsV2Service, UniversityRankingsService, WorksService, WorksV2Service];
|
export const APIS = [
|
||||||
|
AuthService,
|
||||||
|
AuthorsV2Service,
|
||||||
|
BUNDInstitutionsService,
|
||||||
|
BackgroundJobsService,
|
||||||
|
BookmarksService,
|
||||||
|
CompanyConnectionsService,
|
||||||
|
DFGInstitutionsService,
|
||||||
|
DFGPersonsService,
|
||||||
|
DashboardService,
|
||||||
|
FundingService,
|
||||||
|
InstitutionsService,
|
||||||
|
InstitutionsV2Service,
|
||||||
|
KeywordsService,
|
||||||
|
NewsService,
|
||||||
|
OrganizationService,
|
||||||
|
PatentsService,
|
||||||
|
PersonsService,
|
||||||
|
ProjectsService,
|
||||||
|
RankingService,
|
||||||
|
TopicsService,
|
||||||
|
TopicsV2Service,
|
||||||
|
UniversityRankingsService,
|
||||||
|
WorksService,
|
||||||
|
WorksV2Service,
|
||||||
|
];
|
||||||
|
|||||||
+1197
-343
File diff suppressed because it is too large
Load Diff
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -32,14 +38,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class AuthorsV2Service extends BaseService {
|
export class AuthorsV2Service extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,34 +57,77 @@ export class AuthorsV2Service 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public autocompleteAuthorsForSelector(query?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorPage>;
|
public autocompleteAuthorsForSelector(
|
||||||
public autocompleteAuthorsForSelector(query?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorPage>>;
|
query?: string,
|
||||||
public autocompleteAuthorsForSelector(query?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorPage>>;
|
observe?: 'body',
|
||||||
public autocompleteAuthorsForSelector(query?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<AuthorPage>;
|
||||||
|
public autocompleteAuthorsForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<AuthorPage>>;
|
||||||
|
public autocompleteAuthorsForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<AuthorPage>>;
|
||||||
|
public autocompleteAuthorsForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>query, 'query');
|
localVarQueryParameters,
|
||||||
|
<any>query,
|
||||||
|
'query',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -86,7 +136,9 @@ export class AuthorsV2Service extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/authors/v2/autocomplete/selector`;
|
let localVarPath = `/api/authors/v2/autocomplete/selector`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<AuthorPage>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<AuthorPage>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -94,9 +146,11 @@ export class AuthorsV2Service extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,51 +161,98 @@ export class AuthorsV2Service 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAuthorById(rawOaAuthorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Author>;
|
public getAuthorById(
|
||||||
public getAuthorById(rawOaAuthorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Author>>;
|
rawOaAuthorId: string,
|
||||||
public getAuthorById(rawOaAuthorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Author>>;
|
observe?: 'body',
|
||||||
public getAuthorById(rawOaAuthorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Author>;
|
||||||
|
public getAuthorById(
|
||||||
|
rawOaAuthorId: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Author>>;
|
||||||
|
public getAuthorById(
|
||||||
|
rawOaAuthorId: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Author>>;
|
||||||
|
public getAuthorById(
|
||||||
|
rawOaAuthorId: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (rawOaAuthorId === null || rawOaAuthorId === undefined) {
|
if (rawOaAuthorId === null || rawOaAuthorId === undefined) {
|
||||||
throw new Error('Required parameter rawOaAuthorId was null or undefined when calling getAuthorById.');
|
throw new Error(
|
||||||
|
'Required parameter rawOaAuthorId was null or undefined when calling getAuthorById.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/authors/v2/${this.configuration.encodeParam({name: "rawOaAuthorId", value: rawOaAuthorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
let localVarPath = `/api/authors/v2/${this.configuration.encodeParam({ name: 'rawOaAuthorId', value: rawOaAuthorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Author>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Author>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,38 +263,81 @@ export class AuthorsV2Service 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAuthorsByIds(authorIds?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorPage>;
|
public getAuthorsByIds(
|
||||||
public getAuthorsByIds(authorIds?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorPage>>;
|
authorIds?: Array<string>,
|
||||||
public getAuthorsByIds(authorIds?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorPage>>;
|
observe?: 'body',
|
||||||
public getAuthorsByIds(authorIds?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<AuthorPage>;
|
||||||
|
public getAuthorsByIds(
|
||||||
|
authorIds?: Array<string>,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<AuthorPage>>;
|
||||||
|
public getAuthorsByIds(
|
||||||
|
authorIds?: Array<string>,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<AuthorPage>>;
|
||||||
|
public getAuthorsByIds(
|
||||||
|
authorIds?: Array<string>,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
if (authorIds) {
|
if (authorIds) {
|
||||||
authorIds.forEach((element) => {
|
authorIds.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'author_ids');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'author_ids',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -202,7 +346,9 @@ export class AuthorsV2Service extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/authors/v2/authors/id`;
|
let localVarPath = `/api/authors/v2/authors/id`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<AuthorPage>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<AuthorPage>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -210,9 +356,11 @@ export class AuthorsV2Service extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -223,51 +371,98 @@ export class AuthorsV2Service 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getCollaborationGraphStatus(graphId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CollaborationGraphStatusResponse>;
|
public getCollaborationGraphStatus(
|
||||||
public getCollaborationGraphStatus(graphId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CollaborationGraphStatusResponse>>;
|
graphId: string,
|
||||||
public getCollaborationGraphStatus(graphId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CollaborationGraphStatusResponse>>;
|
observe?: 'body',
|
||||||
public getCollaborationGraphStatus(graphId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<CollaborationGraphStatusResponse>;
|
||||||
|
public getCollaborationGraphStatus(
|
||||||
|
graphId: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<CollaborationGraphStatusResponse>>;
|
||||||
|
public getCollaborationGraphStatus(
|
||||||
|
graphId: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<CollaborationGraphStatusResponse>>;
|
||||||
|
public getCollaborationGraphStatus(
|
||||||
|
graphId: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (graphId === null || graphId === undefined) {
|
if (graphId === null || graphId === undefined) {
|
||||||
throw new Error('Required parameter graphId was null or undefined when calling getCollaborationGraphStatus.');
|
throw new Error(
|
||||||
|
'Required parameter graphId was null or undefined when calling getCollaborationGraphStatus.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/authors/v2/collaboration-graph/${this.configuration.encodeParam({name: "graphId", value: graphId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/status`;
|
let localVarPath = `/api/authors/v2/collaboration-graph/${this.configuration.encodeParam({ name: 'graphId', value: graphId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/status`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<CollaborationGraphStatusResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<CollaborationGraphStatusResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -284,57 +479,145 @@ export class AuthorsV2Service 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public startCollaborationGraph(rawOaAuthorId: string, yearFrom?: number, yearTo?: number, minCollaborators?: number, maxCollaborators?: number, topicIds?: Array<string>, institutionIds?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<StartCollaborationGraphResponse>;
|
public startCollaborationGraph(
|
||||||
public startCollaborationGraph(rawOaAuthorId: string, yearFrom?: number, yearTo?: number, minCollaborators?: number, maxCollaborators?: number, topicIds?: Array<string>, institutionIds?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<StartCollaborationGraphResponse>>;
|
rawOaAuthorId: string,
|
||||||
public startCollaborationGraph(rawOaAuthorId: string, yearFrom?: number, yearTo?: number, minCollaborators?: number, maxCollaborators?: number, topicIds?: Array<string>, institutionIds?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<StartCollaborationGraphResponse>>;
|
yearFrom?: number,
|
||||||
public startCollaborationGraph(rawOaAuthorId: string, yearFrom?: number, yearTo?: number, minCollaborators?: number, maxCollaborators?: number, topicIds?: Array<string>, institutionIds?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
yearTo?: number,
|
||||||
|
minCollaborators?: number,
|
||||||
|
maxCollaborators?: number,
|
||||||
|
topicIds?: Array<string>,
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<StartCollaborationGraphResponse>;
|
||||||
|
public startCollaborationGraph(
|
||||||
|
rawOaAuthorId: string,
|
||||||
|
yearFrom?: number,
|
||||||
|
yearTo?: number,
|
||||||
|
minCollaborators?: number,
|
||||||
|
maxCollaborators?: number,
|
||||||
|
topicIds?: Array<string>,
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<StartCollaborationGraphResponse>>;
|
||||||
|
public startCollaborationGraph(
|
||||||
|
rawOaAuthorId: string,
|
||||||
|
yearFrom?: number,
|
||||||
|
yearTo?: number,
|
||||||
|
minCollaborators?: number,
|
||||||
|
maxCollaborators?: number,
|
||||||
|
topicIds?: Array<string>,
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<StartCollaborationGraphResponse>>;
|
||||||
|
public startCollaborationGraph(
|
||||||
|
rawOaAuthorId: string,
|
||||||
|
yearFrom?: number,
|
||||||
|
yearTo?: number,
|
||||||
|
minCollaborators?: number,
|
||||||
|
maxCollaborators?: number,
|
||||||
|
topicIds?: Array<string>,
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (rawOaAuthorId === null || rawOaAuthorId === undefined) {
|
if (rawOaAuthorId === null || rawOaAuthorId === undefined) {
|
||||||
throw new Error('Required parameter rawOaAuthorId was null or undefined when calling startCollaborationGraph.');
|
throw new Error(
|
||||||
|
'Required parameter rawOaAuthorId was null or undefined when calling startCollaborationGraph.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>rawOaAuthorId, 'raw_oa_author_id');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>rawOaAuthorId,
|
||||||
<any>yearFrom, 'year_from');
|
'raw_oa_author_id',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>yearTo, 'year_to');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters,
|
||||||
<any>minCollaborators, 'min_collaborators');
|
<any>yearFrom,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
'year_from',
|
||||||
<any>maxCollaborators, 'max_collaborators');
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>yearTo,
|
||||||
|
'year_to',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>minCollaborators,
|
||||||
|
'min_collaborators',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>maxCollaborators,
|
||||||
|
'max_collaborators',
|
||||||
|
);
|
||||||
if (topicIds) {
|
if (topicIds) {
|
||||||
topicIds.forEach((element) => {
|
topicIds.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'topic_ids');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'topic_ids',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (institutionIds) {
|
if (institutionIds) {
|
||||||
institutionIds.forEach((element) => {
|
institutionIds.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'institution_ids');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'institution_ids',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -343,7 +626,9 @@ export class AuthorsV2Service extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/authors/v2/collaboration-graph`;
|
let localVarPath = `/api/authors/v2/collaboration-graph`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<StartCollaborationGraphResponse>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<StartCollaborationGraphResponse>(
|
||||||
|
'post',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -351,10 +636,11 @@ export class AuthorsV2Service extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -26,14 +32,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class BUNDInstitutionsService extends BaseService {
|
export class BUNDInstitutionsService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,34 +51,77 @@ export class BUNDInstitutionsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getBundInstitutionAutocompleteForSelector(query?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<BundInstitutionSummaryPage>;
|
public getBundInstitutionAutocompleteForSelector(
|
||||||
public getBundInstitutionAutocompleteForSelector(query?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<BundInstitutionSummaryPage>>;
|
query?: string,
|
||||||
public getBundInstitutionAutocompleteForSelector(query?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<BundInstitutionSummaryPage>>;
|
observe?: 'body',
|
||||||
public getBundInstitutionAutocompleteForSelector(query?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<BundInstitutionSummaryPage>;
|
||||||
|
public getBundInstitutionAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<BundInstitutionSummaryPage>>;
|
||||||
|
public getBundInstitutionAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<BundInstitutionSummaryPage>>;
|
||||||
|
public getBundInstitutionAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>query, 'query');
|
localVarQueryParameters,
|
||||||
|
<any>query,
|
||||||
|
'query',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -80,7 +130,9 @@ export class BUNDInstitutionsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/bund/institutions/autocomplete/selector`;
|
let localVarPath = `/api/bund/institutions/autocomplete/selector`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<BundInstitutionSummaryPage>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<BundInstitutionSummaryPage>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -88,9 +140,11 @@ export class BUNDInstitutionsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,38 +155,81 @@ export class BUNDInstitutionsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getBundInstitutionsByName(institutionNames?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<BundInstitutionSummaryPage>;
|
public getBundInstitutionsByName(
|
||||||
public getBundInstitutionsByName(institutionNames?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<BundInstitutionSummaryPage>>;
|
institutionNames?: Array<string>,
|
||||||
public getBundInstitutionsByName(institutionNames?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<BundInstitutionSummaryPage>>;
|
observe?: 'body',
|
||||||
public getBundInstitutionsByName(institutionNames?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<BundInstitutionSummaryPage>;
|
||||||
|
public getBundInstitutionsByName(
|
||||||
|
institutionNames?: Array<string>,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<BundInstitutionSummaryPage>>;
|
||||||
|
public getBundInstitutionsByName(
|
||||||
|
institutionNames?: Array<string>,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<BundInstitutionSummaryPage>>;
|
||||||
|
public getBundInstitutionsByName(
|
||||||
|
institutionNames?: Array<string>,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
if (institutionNames) {
|
if (institutionNames) {
|
||||||
institutionNames.forEach((element) => {
|
institutionNames.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'institution_names');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'institution_names',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -141,7 +238,9 @@ export class BUNDInstitutionsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/bund/institutions/names`;
|
let localVarPath = `/api/bund/institutions/names`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<BundInstitutionSummaryPage>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<BundInstitutionSummaryPage>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -149,10 +248,11 @@ export class BUNDInstitutionsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -28,14 +34,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class BookmarksService extends BaseService {
|
export class BookmarksService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,57 +55,119 @@ export class BookmarksService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public bookmarkPerson(personId: string, createPersonBookmark: CreatePersonBookmark, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<PersonBookmarkResponse>;
|
public bookmarkPerson(
|
||||||
public bookmarkPerson(personId: string, createPersonBookmark: CreatePersonBookmark, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PersonBookmarkResponse>>;
|
personId: string,
|
||||||
public bookmarkPerson(personId: string, createPersonBookmark: CreatePersonBookmark, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PersonBookmarkResponse>>;
|
createPersonBookmark: CreatePersonBookmark,
|
||||||
public bookmarkPerson(personId: string, createPersonBookmark: CreatePersonBookmark, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<PersonBookmarkResponse>;
|
||||||
|
public bookmarkPerson(
|
||||||
|
personId: string,
|
||||||
|
createPersonBookmark: CreatePersonBookmark,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<PersonBookmarkResponse>>;
|
||||||
|
public bookmarkPerson(
|
||||||
|
personId: string,
|
||||||
|
createPersonBookmark: CreatePersonBookmark,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<PersonBookmarkResponse>>;
|
||||||
|
public bookmarkPerson(
|
||||||
|
personId: string,
|
||||||
|
createPersonBookmark: CreatePersonBookmark,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (personId === null || personId === undefined) {
|
if (personId === null || personId === undefined) {
|
||||||
throw new Error('Required parameter personId was null or undefined when calling bookmarkPerson.');
|
throw new Error(
|
||||||
|
'Required parameter personId was null or undefined when calling bookmarkPerson.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (createPersonBookmark === null || createPersonBookmark === undefined) {
|
if (createPersonBookmark === null || createPersonBookmark === undefined) {
|
||||||
throw new Error('Required parameter createPersonBookmark was null or undefined when calling bookmarkPerson.');
|
throw new Error(
|
||||||
|
'Required parameter createPersonBookmark was null or undefined when calling bookmarkPerson.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (HTTPBearer) required
|
// authentication (HTTPBearer) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||||
|
'HTTPBearer',
|
||||||
|
'Authorization',
|
||||||
|
localVarHeaders,
|
||||||
|
'Bearer ',
|
||||||
|
);
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
// to determine the Content-Type header
|
||||||
const consumes: string[] = [
|
const consumes: string[] = ['application/json'];
|
||||||
'application/json'
|
const httpContentTypeSelected: string | undefined =
|
||||||
];
|
this.configuration.selectHeaderContentType(consumes);
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
if (httpContentTypeSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Content-Type',
|
||||||
|
httpContentTypeSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/bookmarks/persons/${this.configuration.encodeParam({name: "personId", value: personId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
let localVarPath = `/api/bookmarks/persons/${this.configuration.encodeParam({ name: 'personId', value: personId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<PersonBookmarkResponse>('put', `${basePath}${localVarPath}`,
|
return this.httpClient.request<PersonBookmarkResponse>(
|
||||||
|
'put',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createPersonBookmark,
|
body: createPersonBookmark,
|
||||||
@@ -106,9 +175,11 @@ export class BookmarksService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,33 +190,78 @@ export class BookmarksService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public listPersonBookmarks(secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<PersonBookmarkResponse>>;
|
public listPersonBookmarks(
|
||||||
public listPersonBookmarks(secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<PersonBookmarkResponse>>>;
|
secureFgpAcc?: string,
|
||||||
public listPersonBookmarks(secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<PersonBookmarkResponse>>>;
|
observe?: 'body',
|
||||||
public listPersonBookmarks(secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<PersonBookmarkResponse>>;
|
||||||
|
public listPersonBookmarks(
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<PersonBookmarkResponse>>>;
|
||||||
|
public listPersonBookmarks(
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<PersonBookmarkResponse>>>;
|
||||||
|
public listPersonBookmarks(
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (HTTPBearer) required
|
// authentication (HTTPBearer) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||||
|
'HTTPBearer',
|
||||||
|
'Authorization',
|
||||||
|
localVarHeaders,
|
||||||
|
'Bearer ',
|
||||||
|
);
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -154,16 +270,20 @@ export class BookmarksService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/bookmarks/persons`;
|
let localVarPath = `/api/bookmarks/persons`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<PersonBookmarkResponse>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<PersonBookmarkResponse>>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -175,55 +295,110 @@ export class BookmarksService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public removePersonBookmark(personId: string, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public removePersonBookmark(
|
||||||
public removePersonBookmark(personId: string, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
personId: string,
|
||||||
public removePersonBookmark(personId: string, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
secureFgpAcc?: string,
|
||||||
public removePersonBookmark(personId: string, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any>;
|
||||||
|
public removePersonBookmark(
|
||||||
|
personId: string,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<any>>;
|
||||||
|
public removePersonBookmark(
|
||||||
|
personId: string,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<any>>;
|
||||||
|
public removePersonBookmark(
|
||||||
|
personId: string,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (personId === null || personId === undefined) {
|
if (personId === null || personId === undefined) {
|
||||||
throw new Error('Required parameter personId was null or undefined when calling removePersonBookmark.');
|
throw new Error(
|
||||||
|
'Required parameter personId was null or undefined when calling removePersonBookmark.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (HTTPBearer) required
|
// authentication (HTTPBearer) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||||
|
'HTTPBearer',
|
||||||
|
'Authorization',
|
||||||
|
localVarHeaders,
|
||||||
|
'Bearer ',
|
||||||
|
);
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/bookmarks/persons/${this.configuration.encodeParam({name: "personId", value: personId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
let localVarPath = `/api/bookmarks/persons/${this.configuration.encodeParam({ name: 'personId', value: personId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>(
|
||||||
|
'delete',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -28,14 +34,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class CompanyConnectionsService extends BaseService {
|
export class CompanyConnectionsService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,54 +54,110 @@ export class CompanyConnectionsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getCompanyConnectionsAvailability(authorId: string, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CompanyConnectionsAvailability>;
|
public getCompanyConnectionsAvailability(
|
||||||
public getCompanyConnectionsAvailability(authorId: string, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CompanyConnectionsAvailability>>;
|
authorId: string,
|
||||||
public getCompanyConnectionsAvailability(authorId: string, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CompanyConnectionsAvailability>>;
|
secureFgpAcc?: string,
|
||||||
public getCompanyConnectionsAvailability(authorId: string, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<CompanyConnectionsAvailability>;
|
||||||
|
public getCompanyConnectionsAvailability(
|
||||||
|
authorId: string,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<CompanyConnectionsAvailability>>;
|
||||||
|
public getCompanyConnectionsAvailability(
|
||||||
|
authorId: string,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<CompanyConnectionsAvailability>>;
|
||||||
|
public getCompanyConnectionsAvailability(
|
||||||
|
authorId: string,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (authorId === null || authorId === undefined) {
|
if (authorId === null || authorId === undefined) {
|
||||||
throw new Error('Required parameter authorId was null or undefined when calling getCompanyConnectionsAvailability.');
|
throw new Error(
|
||||||
|
'Required parameter authorId was null or undefined when calling getCompanyConnectionsAvailability.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (HTTPBearer) required
|
// authentication (HTTPBearer) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||||
|
'HTTPBearer',
|
||||||
|
'Authorization',
|
||||||
|
localVarHeaders,
|
||||||
|
'Bearer ',
|
||||||
|
);
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/company-connections/availability`;
|
let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/company-connections/availability`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<CompanyConnectionsAvailability>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<CompanyConnectionsAvailability>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,55 +169,110 @@ export class CompanyConnectionsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getCompanyConnectionsByAuthor(authorId: string, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CompanyConnectionsResponse>;
|
public getCompanyConnectionsByAuthor(
|
||||||
public getCompanyConnectionsByAuthor(authorId: string, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CompanyConnectionsResponse>>;
|
authorId: string,
|
||||||
public getCompanyConnectionsByAuthor(authorId: string, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CompanyConnectionsResponse>>;
|
secureFgpAcc?: string,
|
||||||
public getCompanyConnectionsByAuthor(authorId: string, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<CompanyConnectionsResponse>;
|
||||||
|
public getCompanyConnectionsByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<CompanyConnectionsResponse>>;
|
||||||
|
public getCompanyConnectionsByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<CompanyConnectionsResponse>>;
|
||||||
|
public getCompanyConnectionsByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (authorId === null || authorId === undefined) {
|
if (authorId === null || authorId === undefined) {
|
||||||
throw new Error('Required parameter authorId was null or undefined when calling getCompanyConnectionsByAuthor.');
|
throw new Error(
|
||||||
|
'Required parameter authorId was null or undefined when calling getCompanyConnectionsByAuthor.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (HTTPBearer) required
|
// authentication (HTTPBearer) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||||
|
'HTTPBearer',
|
||||||
|
'Authorization',
|
||||||
|
localVarHeaders,
|
||||||
|
'Bearer ',
|
||||||
|
);
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/company-connections`;
|
let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/company-connections`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<CompanyConnectionsResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<CompanyConnectionsResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -26,14 +32,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class DFGInstitutionsService extends BaseService {
|
export class DFGInstitutionsService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,34 +51,77 @@ export class DFGInstitutionsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDfgInstitutionAutocompleteForSelector(query?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<DfgInstitutionSummaryPage>;
|
public getDfgInstitutionAutocompleteForSelector(
|
||||||
public getDfgInstitutionAutocompleteForSelector(query?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<DfgInstitutionSummaryPage>>;
|
query?: string,
|
||||||
public getDfgInstitutionAutocompleteForSelector(query?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<DfgInstitutionSummaryPage>>;
|
observe?: 'body',
|
||||||
public getDfgInstitutionAutocompleteForSelector(query?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<DfgInstitutionSummaryPage>;
|
||||||
|
public getDfgInstitutionAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<DfgInstitutionSummaryPage>>;
|
||||||
|
public getDfgInstitutionAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<DfgInstitutionSummaryPage>>;
|
||||||
|
public getDfgInstitutionAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>query, 'query');
|
localVarQueryParameters,
|
||||||
|
<any>query,
|
||||||
|
'query',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -80,7 +130,9 @@ export class DFGInstitutionsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/dfg/institutions/autocomplete/selector`;
|
let localVarPath = `/api/dfg/institutions/autocomplete/selector`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<DfgInstitutionSummaryPage>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<DfgInstitutionSummaryPage>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -88,9 +140,11 @@ export class DFGInstitutionsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,38 +155,81 @@ export class DFGInstitutionsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDfgInstitutionsByIds(institutionIds?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<DfgInstitutionSummaryPage>;
|
public getDfgInstitutionsByIds(
|
||||||
public getDfgInstitutionsByIds(institutionIds?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<DfgInstitutionSummaryPage>>;
|
institutionIds?: Array<string>,
|
||||||
public getDfgInstitutionsByIds(institutionIds?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<DfgInstitutionSummaryPage>>;
|
observe?: 'body',
|
||||||
public getDfgInstitutionsByIds(institutionIds?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<DfgInstitutionSummaryPage>;
|
||||||
|
public getDfgInstitutionsByIds(
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<DfgInstitutionSummaryPage>>;
|
||||||
|
public getDfgInstitutionsByIds(
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<DfgInstitutionSummaryPage>>;
|
||||||
|
public getDfgInstitutionsByIds(
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
if (institutionIds) {
|
if (institutionIds) {
|
||||||
institutionIds.forEach((element) => {
|
institutionIds.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'institution_ids');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'institution_ids',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -141,7 +238,9 @@ export class DFGInstitutionsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/dfg/institutions/ids`;
|
let localVarPath = `/api/dfg/institutions/ids`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<DfgInstitutionSummaryPage>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<DfgInstitutionSummaryPage>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -149,10 +248,11 @@ export class DFGInstitutionsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -26,14 +32,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class DFGPersonsService extends BaseService {
|
export class DFGPersonsService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,34 +51,77 @@ export class DFGPersonsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDfgPersonAutocompleteForSelector(query?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<DfgPersonSummaryPage>;
|
public getDfgPersonAutocompleteForSelector(
|
||||||
public getDfgPersonAutocompleteForSelector(query?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<DfgPersonSummaryPage>>;
|
query?: string,
|
||||||
public getDfgPersonAutocompleteForSelector(query?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<DfgPersonSummaryPage>>;
|
observe?: 'body',
|
||||||
public getDfgPersonAutocompleteForSelector(query?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<DfgPersonSummaryPage>;
|
||||||
|
public getDfgPersonAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<DfgPersonSummaryPage>>;
|
||||||
|
public getDfgPersonAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<DfgPersonSummaryPage>>;
|
||||||
|
public getDfgPersonAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>query, 'query');
|
localVarQueryParameters,
|
||||||
|
<any>query,
|
||||||
|
'query',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -80,7 +130,9 @@ export class DFGPersonsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/dfg/persons/autocomplete/selector`;
|
let localVarPath = `/api/dfg/persons/autocomplete/selector`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<DfgPersonSummaryPage>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<DfgPersonSummaryPage>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -88,9 +140,11 @@ export class DFGPersonsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,38 +155,81 @@ export class DFGPersonsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDfgPersonsByIds(personIds?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<DfgPersonSummaryPage>;
|
public getDfgPersonsByIds(
|
||||||
public getDfgPersonsByIds(personIds?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<DfgPersonSummaryPage>>;
|
personIds?: Array<string>,
|
||||||
public getDfgPersonsByIds(personIds?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<DfgPersonSummaryPage>>;
|
observe?: 'body',
|
||||||
public getDfgPersonsByIds(personIds?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<DfgPersonSummaryPage>;
|
||||||
|
public getDfgPersonsByIds(
|
||||||
|
personIds?: Array<string>,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<DfgPersonSummaryPage>>;
|
||||||
|
public getDfgPersonsByIds(
|
||||||
|
personIds?: Array<string>,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<DfgPersonSummaryPage>>;
|
||||||
|
public getDfgPersonsByIds(
|
||||||
|
personIds?: Array<string>,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
if (personIds) {
|
if (personIds) {
|
||||||
personIds.forEach((element) => {
|
personIds.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'person_ids');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'person_ids',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -141,7 +238,9 @@ export class DFGPersonsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/dfg/persons/ids`;
|
let localVarPath = `/api/dfg/persons/ids`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<DfgPersonSummaryPage>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<DfgPersonSummaryPage>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -149,10 +248,11 @@ export class DFGPersonsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,213 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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 { HTTPValidationError } from '../model/hTTPValidationError';
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
||||||
import { Configuration } from '../configuration';
|
|
||||||
import { BaseService } from '../api.base.service';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
|
||||||
providedIn: 'root'
|
|
||||||
})
|
|
||||||
export class INSEServiceService extends BaseService {
|
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
|
||||||
super(basePath, 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.
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
|
|
||||||
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
|
|
||||||
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
|
|
||||||
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
||||||
<any>pageSize, 'page_size');
|
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
||||||
<any>saveJson, 'save_json');
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/topics/cache`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
params: localVarQueryParameters,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Counts topic hierarchy occurrences from cache.
|
|
||||||
* @endpoint get /api/inse-service/topics/count
|
|
||||||
* @param topic Topic names (repeat parameter).
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public countTopicHierarchy(topic: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
|
|
||||||
public countTopicHierarchy(topic: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
|
|
||||||
public countTopicHierarchy(topic: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
|
|
||||||
public countTopicHierarchy(topic: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (topic === null || topic === undefined) {
|
|
||||||
throw new Error('Required parameter topic was null or undefined when calling countTopicHierarchy.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
||||||
if (topic) {
|
|
||||||
topic.forEach((element) => {
|
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
||||||
<any>element, 'topic');
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/topics/count`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
params: localVarQueryParameters,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics).
|
|
||||||
* @endpoint get /api/inse-service/topics/hierarchy
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public getTopicHierarchy(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
|
|
||||||
public getTopicHierarchy(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
|
|
||||||
public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
|
|
||||||
public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/topics/hierarchy`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -28,14 +34,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class InstitutionsV2Service extends BaseService {
|
export class InstitutionsV2Service extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,34 +53,77 @@ export class InstitutionsV2Service 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getInstitutionAutocompleteForSelector(query?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<InstitutionPageV2>;
|
public getInstitutionAutocompleteForSelector(
|
||||||
public getInstitutionAutocompleteForSelector(query?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<InstitutionPageV2>>;
|
query?: string,
|
||||||
public getInstitutionAutocompleteForSelector(query?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<InstitutionPageV2>>;
|
observe?: 'body',
|
||||||
public getInstitutionAutocompleteForSelector(query?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<InstitutionPageV2>;
|
||||||
|
public getInstitutionAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<InstitutionPageV2>>;
|
||||||
|
public getInstitutionAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<InstitutionPageV2>>;
|
||||||
|
public getInstitutionAutocompleteForSelector(
|
||||||
|
query?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>query, 'query');
|
localVarQueryParameters,
|
||||||
|
<any>query,
|
||||||
|
'query',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -82,7 +132,9 @@ export class InstitutionsV2Service extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/institutions/v2/autocomplete/selector`;
|
let localVarPath = `/api/institutions/v2/autocomplete/selector`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<InstitutionPageV2>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<InstitutionPageV2>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -90,9 +142,11 @@ export class InstitutionsV2Service extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,51 +157,98 @@ export class InstitutionsV2Service 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getInstitutionById2(institutionId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Institution>;
|
public getInstitutionById2(
|
||||||
public getInstitutionById2(institutionId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Institution>>;
|
institutionId: string,
|
||||||
public getInstitutionById2(institutionId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Institution>>;
|
observe?: 'body',
|
||||||
public getInstitutionById2(institutionId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Institution>;
|
||||||
|
public getInstitutionById2(
|
||||||
|
institutionId: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Institution>>;
|
||||||
|
public getInstitutionById2(
|
||||||
|
institutionId: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Institution>>;
|
||||||
|
public getInstitutionById2(
|
||||||
|
institutionId: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (institutionId === null || institutionId === undefined) {
|
if (institutionId === null || institutionId === undefined) {
|
||||||
throw new Error('Required parameter institutionId was null or undefined when calling getInstitutionById2.');
|
throw new Error(
|
||||||
|
'Required parameter institutionId was null or undefined when calling getInstitutionById2.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/institutions/v2/single/${this.configuration.encodeParam({name: "institutionId", value: institutionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
let localVarPath = `/api/institutions/v2/single/${this.configuration.encodeParam({ name: 'institutionId', value: institutionId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Institution>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Institution>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,38 +259,81 @@ export class InstitutionsV2Service 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getInstitutionsByIds(institutionIds?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<InstitutionPageV2>;
|
public getInstitutionsByIds(
|
||||||
public getInstitutionsByIds(institutionIds?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<InstitutionPageV2>>;
|
institutionIds?: Array<string>,
|
||||||
public getInstitutionsByIds(institutionIds?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<InstitutionPageV2>>;
|
observe?: 'body',
|
||||||
public getInstitutionsByIds(institutionIds?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<InstitutionPageV2>;
|
||||||
|
public getInstitutionsByIds(
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<InstitutionPageV2>>;
|
||||||
|
public getInstitutionsByIds(
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<InstitutionPageV2>>;
|
||||||
|
public getInstitutionsByIds(
|
||||||
|
institutionIds?: Array<string>,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
if (institutionIds) {
|
if (institutionIds) {
|
||||||
institutionIds.forEach((element) => {
|
institutionIds.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'institution_ids');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'institution_ids',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -198,7 +342,9 @@ export class InstitutionsV2Service extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/institutions/v2/multiple/ids`;
|
let localVarPath = `/api/institutions/v2/multiple/ids`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<InstitutionPageV2>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<InstitutionPageV2>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -206,10 +352,11 @@ export class InstitutionsV2Service extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -36,14 +42,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class PatentsService extends BaseService {
|
export class PatentsService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,48 +68,140 @@ export class PatentsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAllPatents(page?: number, size?: number, search?: string, source?: string, sortBy?: string, sortDirection?: string, yearFrom?: number, yearTo?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AllPatentsResponse>;
|
public getAllPatents(
|
||||||
public getAllPatents(page?: number, size?: number, search?: string, source?: string, sortBy?: string, sortDirection?: string, yearFrom?: number, yearTo?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AllPatentsResponse>>;
|
page?: number,
|
||||||
public getAllPatents(page?: number, size?: number, search?: string, source?: string, sortBy?: string, sortDirection?: string, yearFrom?: number, yearTo?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AllPatentsResponse>>;
|
size?: number,
|
||||||
public getAllPatents(page?: number, size?: number, search?: string, source?: string, sortBy?: string, sortDirection?: string, yearFrom?: number, yearTo?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
search?: string,
|
||||||
|
source?: string,
|
||||||
|
sortBy?: string,
|
||||||
|
sortDirection?: string,
|
||||||
|
yearFrom?: number,
|
||||||
|
yearTo?: number,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<AllPatentsResponse>;
|
||||||
|
public getAllPatents(
|
||||||
|
page?: number,
|
||||||
|
size?: number,
|
||||||
|
search?: string,
|
||||||
|
source?: string,
|
||||||
|
sortBy?: string,
|
||||||
|
sortDirection?: string,
|
||||||
|
yearFrom?: number,
|
||||||
|
yearTo?: number,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<AllPatentsResponse>>;
|
||||||
|
public getAllPatents(
|
||||||
|
page?: number,
|
||||||
|
size?: number,
|
||||||
|
search?: string,
|
||||||
|
source?: string,
|
||||||
|
sortBy?: string,
|
||||||
|
sortDirection?: string,
|
||||||
|
yearFrom?: number,
|
||||||
|
yearTo?: number,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<AllPatentsResponse>>;
|
||||||
|
public getAllPatents(
|
||||||
|
page?: number,
|
||||||
|
size?: number,
|
||||||
|
search?: string,
|
||||||
|
source?: string,
|
||||||
|
sortBy?: string,
|
||||||
|
sortDirection?: string,
|
||||||
|
yearFrom?: number,
|
||||||
|
yearTo?: number,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>page, 'page');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>page,
|
||||||
<any>size, 'size');
|
'page',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>search, 'search');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters,
|
||||||
<any>source, 'source');
|
<any>size,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
'size',
|
||||||
<any>sortBy, 'sort_by');
|
);
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>sortDirection, 'sort_direction');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>search,
|
||||||
<any>yearFrom, 'year_from');
|
'search',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>yearTo, 'year_to');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>source,
|
||||||
|
'source',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>sortBy,
|
||||||
|
'sort_by',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>sortDirection,
|
||||||
|
'sort_direction',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>yearFrom,
|
||||||
|
'year_from',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>yearTo,
|
||||||
|
'year_to',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -111,7 +210,9 @@ export class PatentsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/inse-service/patents`;
|
let localVarPath = `/api/inse-service/patents`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<AllPatentsResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<AllPatentsResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -119,9 +220,11 @@ export class PatentsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,52 +239,125 @@ export class PatentsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getOrgPatentsByInstitution(id: string, matchType?: 'institution' | 'name' | 'both' | 'all', page?: number, size?: number, source?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<OrgPatentsResponse>;
|
public getOrgPatentsByInstitution(
|
||||||
public getOrgPatentsByInstitution(id: string, matchType?: 'institution' | 'name' | 'both' | 'all', page?: number, size?: number, source?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<OrgPatentsResponse>>;
|
id: string,
|
||||||
public getOrgPatentsByInstitution(id: string, matchType?: 'institution' | 'name' | 'both' | 'all', page?: number, size?: number, source?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<OrgPatentsResponse>>;
|
matchType?: 'institution' | 'name' | 'both' | 'all',
|
||||||
public getOrgPatentsByInstitution(id: string, matchType?: 'institution' | 'name' | 'both' | 'all', page?: number, size?: number, source?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
page?: number,
|
||||||
|
size?: number,
|
||||||
|
source?: string,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<OrgPatentsResponse>;
|
||||||
|
public getOrgPatentsByInstitution(
|
||||||
|
id: string,
|
||||||
|
matchType?: 'institution' | 'name' | 'both' | 'all',
|
||||||
|
page?: number,
|
||||||
|
size?: number,
|
||||||
|
source?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<OrgPatentsResponse>>;
|
||||||
|
public getOrgPatentsByInstitution(
|
||||||
|
id: string,
|
||||||
|
matchType?: 'institution' | 'name' | 'both' | 'all',
|
||||||
|
page?: number,
|
||||||
|
size?: number,
|
||||||
|
source?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<OrgPatentsResponse>>;
|
||||||
|
public getOrgPatentsByInstitution(
|
||||||
|
id: string,
|
||||||
|
matchType?: 'institution' | 'name' | 'both' | 'all',
|
||||||
|
page?: number,
|
||||||
|
size?: number,
|
||||||
|
source?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getOrgPatentsByInstitution.');
|
throw new Error(
|
||||||
|
'Required parameter id was null or undefined when calling getOrgPatentsByInstitution.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>matchType, 'match_type');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>matchType,
|
||||||
<any>page, 'page');
|
'match_type',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>size, 'size');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters,
|
||||||
<any>source, 'source');
|
<any>page,
|
||||||
|
'page',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>size,
|
||||||
|
'size',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>source,
|
||||||
|
'source',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/org-patents`;
|
let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/org-patents`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<OrgPatentsResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<OrgPatentsResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -189,9 +365,11 @@ export class PatentsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -204,48 +382,107 @@ export class PatentsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getPatentByIdOrTitle(identifier: string, prefix?: string, title?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<PatentEntry>;
|
public getPatentByIdOrTitle(
|
||||||
public getPatentByIdOrTitle(identifier: string, prefix?: string, title?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PatentEntry>>;
|
identifier: string,
|
||||||
public getPatentByIdOrTitle(identifier: string, prefix?: string, title?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PatentEntry>>;
|
prefix?: string,
|
||||||
public getPatentByIdOrTitle(identifier: string, prefix?: string, title?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
title?: string,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<PatentEntry>;
|
||||||
|
public getPatentByIdOrTitle(
|
||||||
|
identifier: string,
|
||||||
|
prefix?: string,
|
||||||
|
title?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<PatentEntry>>;
|
||||||
|
public getPatentByIdOrTitle(
|
||||||
|
identifier: string,
|
||||||
|
prefix?: string,
|
||||||
|
title?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<PatentEntry>>;
|
||||||
|
public getPatentByIdOrTitle(
|
||||||
|
identifier: string,
|
||||||
|
prefix?: string,
|
||||||
|
title?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (identifier === null || identifier === undefined) {
|
if (identifier === null || identifier === undefined) {
|
||||||
throw new Error('Required parameter identifier was null or undefined when calling getPatentByIdOrTitle.');
|
throw new Error(
|
||||||
|
'Required parameter identifier was null or undefined when calling getPatentByIdOrTitle.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>prefix, 'prefix');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>prefix,
|
||||||
<any>title, 'title');
|
'prefix',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>title,
|
||||||
|
'title',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/patents/${this.configuration.encodeParam({name: "identifier", value: identifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
let localVarPath = `/api/inse-service/patents/${this.configuration.encodeParam({ name: 'identifier', value: identifier, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<PatentEntry>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<PatentEntry>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -253,9 +490,11 @@ export class PatentsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,51 +505,98 @@ export class PatentsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getPatentsByAuthor(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<PatentsByAuthorResponse>;
|
public getPatentsByAuthor(
|
||||||
public getPatentsByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PatentsByAuthorResponse>>;
|
authorId: string,
|
||||||
public getPatentsByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PatentsByAuthorResponse>>;
|
observe?: 'body',
|
||||||
public getPatentsByAuthor(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<PatentsByAuthorResponse>;
|
||||||
|
public getPatentsByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<PatentsByAuthorResponse>>;
|
||||||
|
public getPatentsByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<PatentsByAuthorResponse>>;
|
||||||
|
public getPatentsByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (authorId === null || authorId === undefined) {
|
if (authorId === null || authorId === undefined) {
|
||||||
throw new Error('Required parameter authorId was null or undefined when calling getPatentsByAuthor.');
|
throw new Error(
|
||||||
|
'Required parameter authorId was null or undefined when calling getPatentsByAuthor.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/patents`;
|
let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/patents`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<PatentsByAuthorResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<PatentsByAuthorResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -321,51 +607,98 @@ export class PatentsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getPatentsByInstitution(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<PatentsByInstitutionResponse>;
|
public getPatentsByInstitution(
|
||||||
public getPatentsByInstitution(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PatentsByInstitutionResponse>>;
|
id: string,
|
||||||
public getPatentsByInstitution(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PatentsByInstitutionResponse>>;
|
observe?: 'body',
|
||||||
public getPatentsByInstitution(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<PatentsByInstitutionResponse>;
|
||||||
|
public getPatentsByInstitution(
|
||||||
|
id: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<PatentsByInstitutionResponse>>;
|
||||||
|
public getPatentsByInstitution(
|
||||||
|
id: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<PatentsByInstitutionResponse>>;
|
||||||
|
public getPatentsByInstitution(
|
||||||
|
id: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getPatentsByInstitution.');
|
throw new Error(
|
||||||
|
'Required parameter id was null or undefined when calling getPatentsByInstitution.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/patents`;
|
let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/patents`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<PatentsByInstitutionResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<PatentsByInstitutionResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -376,52 +709,98 @@ export class PatentsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public rebuildOrgPatents(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<RebuildResponse>;
|
public rebuildOrgPatents(
|
||||||
public rebuildOrgPatents(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<RebuildResponse>>;
|
id: string,
|
||||||
public rebuildOrgPatents(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<RebuildResponse>>;
|
observe?: 'body',
|
||||||
public rebuildOrgPatents(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<RebuildResponse>;
|
||||||
|
public rebuildOrgPatents(
|
||||||
|
id: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<RebuildResponse>>;
|
||||||
|
public rebuildOrgPatents(
|
||||||
|
id: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<RebuildResponse>>;
|
||||||
|
public rebuildOrgPatents(
|
||||||
|
id: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling rebuildOrgPatents.');
|
throw new Error(
|
||||||
|
'Required parameter id was null or undefined when calling rebuildOrgPatents.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/org-patents/rebuild`;
|
let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/org-patents/rebuild`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<RebuildResponse>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<RebuildResponse>(
|
||||||
|
'post',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -33,6 +39,10 @@ import { HTTPValidationError } from '../model/hTTPValidationError';
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { KeywordToAuthorRequest } from '../model/keywordToAuthorRequest';
|
import { KeywordToAuthorRequest } from '../model/keywordToAuthorRequest';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
import { PublicationTypeCount } from '../model/publicationTypeCount';
|
||||||
|
// @ts-ignore
|
||||||
|
import { PublicationTypeCountsRequest } from '../model/publicationTypeCountsRequest';
|
||||||
|
// @ts-ignore
|
||||||
import { RankedAuthor } from '../model/rankedAuthor';
|
import { RankedAuthor } from '../model/rankedAuthor';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { SelectedAuthorsRequest } from '../model/selectedAuthorsRequest';
|
import { SelectedAuthorsRequest } from '../model/selectedAuthorsRequest';
|
||||||
@@ -42,14 +52,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class RankingService extends BaseService {
|
export class RankingService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,45 +73,102 @@ export class RankingService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public orientationProfilesApiRankOrientationProfilesPost(authorOrientationProfilesRequest: AuthorOrientationProfilesRequest, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<AuthorOrientationProfile>>;
|
public orientationProfilesApiRankOrientationProfilesPost(
|
||||||
public orientationProfilesApiRankOrientationProfilesPost(authorOrientationProfilesRequest: AuthorOrientationProfilesRequest, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<AuthorOrientationProfile>>>;
|
authorOrientationProfilesRequest: AuthorOrientationProfilesRequest,
|
||||||
public orientationProfilesApiRankOrientationProfilesPost(authorOrientationProfilesRequest: AuthorOrientationProfilesRequest, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<AuthorOrientationProfile>>>;
|
secureFgpAcc?: string,
|
||||||
public orientationProfilesApiRankOrientationProfilesPost(authorOrientationProfilesRequest: AuthorOrientationProfilesRequest, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
observe?: 'body',
|
||||||
if (authorOrientationProfilesRequest === null || authorOrientationProfilesRequest === undefined) {
|
reportProgress?: boolean,
|
||||||
throw new Error('Required parameter authorOrientationProfilesRequest was null or undefined when calling orientationProfilesApiRankOrientationProfilesPost.');
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<AuthorOrientationProfile>>;
|
||||||
|
public orientationProfilesApiRankOrientationProfilesPost(
|
||||||
|
authorOrientationProfilesRequest: AuthorOrientationProfilesRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<AuthorOrientationProfile>>>;
|
||||||
|
public orientationProfilesApiRankOrientationProfilesPost(
|
||||||
|
authorOrientationProfilesRequest: AuthorOrientationProfilesRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<AuthorOrientationProfile>>>;
|
||||||
|
public orientationProfilesApiRankOrientationProfilesPost(
|
||||||
|
authorOrientationProfilesRequest: AuthorOrientationProfilesRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
|
if (
|
||||||
|
authorOrientationProfilesRequest === null ||
|
||||||
|
authorOrientationProfilesRequest === undefined
|
||||||
|
) {
|
||||||
|
throw new Error(
|
||||||
|
'Required parameter authorOrientationProfilesRequest was null or undefined when calling orientationProfilesApiRankOrientationProfilesPost.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (HTTPBearer) required
|
// authentication (HTTPBearer) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||||
|
'HTTPBearer',
|
||||||
|
'Authorization',
|
||||||
|
localVarHeaders,
|
||||||
|
'Bearer ',
|
||||||
|
);
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
// to determine the Content-Type header
|
||||||
const consumes: string[] = [
|
const consumes: string[] = ['application/json'];
|
||||||
'application/json'
|
const httpContentTypeSelected: string | undefined =
|
||||||
];
|
this.configuration.selectHeaderContentType(consumes);
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
if (httpContentTypeSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Content-Type',
|
||||||
|
httpContentTypeSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -109,7 +177,9 @@ export class RankingService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/rank/orientation-profiles`;
|
let localVarPath = `/api/rank/orientation-profiles`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<AuthorOrientationProfile>>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<AuthorOrientationProfile>>(
|
||||||
|
'post',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: authorOrientationProfilesRequest,
|
body: authorOrientationProfilesRequest,
|
||||||
@@ -117,9 +187,141 @@ export class RankingService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Publication Type Counts
|
||||||
|
* @endpoint post /api/rank/publication-type-counts
|
||||||
|
* @param publicationTypeCountsRequest
|
||||||
|
* @param secureFgpAcc
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public publicationTypeCountsApiRankPublicationTypeCountsPost(
|
||||||
|
publicationTypeCountsRequest: PublicationTypeCountsRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<PublicationTypeCount>>;
|
||||||
|
public publicationTypeCountsApiRankPublicationTypeCountsPost(
|
||||||
|
publicationTypeCountsRequest: PublicationTypeCountsRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<PublicationTypeCount>>>;
|
||||||
|
public publicationTypeCountsApiRankPublicationTypeCountsPost(
|
||||||
|
publicationTypeCountsRequest: PublicationTypeCountsRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<PublicationTypeCount>>>;
|
||||||
|
public publicationTypeCountsApiRankPublicationTypeCountsPost(
|
||||||
|
publicationTypeCountsRequest: PublicationTypeCountsRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
|
if (
|
||||||
|
publicationTypeCountsRequest === null ||
|
||||||
|
publicationTypeCountsRequest === undefined
|
||||||
|
) {
|
||||||
|
throw new Error(
|
||||||
|
'Required parameter publicationTypeCountsRequest was null or undefined when calling publicationTypeCountsApiRankPublicationTypeCountsPost.',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
// authentication (HTTPBearer) required
|
||||||
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||||
|
'HTTPBearer',
|
||||||
|
'Authorization',
|
||||||
|
localVarHeaders,
|
||||||
|
'Bearer ',
|
||||||
|
);
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
|
options?.httpHeaderAccept ??
|
||||||
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
// to determine the Content-Type header
|
||||||
|
const consumes: string[] = ['application/json'];
|
||||||
|
const httpContentTypeSelected: string | undefined =
|
||||||
|
this.configuration.selectHeaderContentType(consumes);
|
||||||
|
if (httpContentTypeSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Content-Type',
|
||||||
|
httpContentTypeSelected,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/api/rank/publication-type-counts`;
|
||||||
|
const { basePath, withCredentials } = this.configuration;
|
||||||
|
return this.httpClient.request<Array<PublicationTypeCount>>(
|
||||||
|
'post',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
body: publicationTypeCountsRequest,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined
|
||||||
|
? { transferCache: localVarTransferCache }
|
||||||
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,45 +333,102 @@ export class RankingService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public rankAuthorApiRankRankAuthorPost(keywordToAuthorRequest: KeywordToAuthorRequest, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<RankedAuthor>>;
|
public rankAuthorApiRankRankAuthorPost(
|
||||||
public rankAuthorApiRankRankAuthorPost(keywordToAuthorRequest: KeywordToAuthorRequest, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<RankedAuthor>>>;
|
keywordToAuthorRequest: KeywordToAuthorRequest,
|
||||||
public rankAuthorApiRankRankAuthorPost(keywordToAuthorRequest: KeywordToAuthorRequest, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<RankedAuthor>>>;
|
secureFgpAcc?: string,
|
||||||
public rankAuthorApiRankRankAuthorPost(keywordToAuthorRequest: KeywordToAuthorRequest, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
observe?: 'body',
|
||||||
if (keywordToAuthorRequest === null || keywordToAuthorRequest === undefined) {
|
reportProgress?: boolean,
|
||||||
throw new Error('Required parameter keywordToAuthorRequest was null or undefined when calling rankAuthorApiRankRankAuthorPost.');
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<RankedAuthor>>;
|
||||||
|
public rankAuthorApiRankRankAuthorPost(
|
||||||
|
keywordToAuthorRequest: KeywordToAuthorRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<RankedAuthor>>>;
|
||||||
|
public rankAuthorApiRankRankAuthorPost(
|
||||||
|
keywordToAuthorRequest: KeywordToAuthorRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<RankedAuthor>>>;
|
||||||
|
public rankAuthorApiRankRankAuthorPost(
|
||||||
|
keywordToAuthorRequest: KeywordToAuthorRequest,
|
||||||
|
secureFgpAcc?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
|
if (
|
||||||
|
keywordToAuthorRequest === null ||
|
||||||
|
keywordToAuthorRequest === undefined
|
||||||
|
) {
|
||||||
|
throw new Error(
|
||||||
|
'Required parameter keywordToAuthorRequest was null or undefined when calling rankAuthorApiRankRankAuthorPost.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (HTTPBearer) required
|
// authentication (HTTPBearer) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||||
|
'HTTPBearer',
|
||||||
|
'Authorization',
|
||||||
|
localVarHeaders,
|
||||||
|
'Bearer ',
|
||||||
|
);
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
// to determine the Content-Type header
|
||||||
const consumes: string[] = [
|
const consumes: string[] = ['application/json'];
|
||||||
'application/json'
|
const httpContentTypeSelected: string | undefined =
|
||||||
];
|
this.configuration.selectHeaderContentType(consumes);
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
if (httpContentTypeSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Content-Type',
|
||||||
|
httpContentTypeSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -178,7 +437,9 @@ export class RankingService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/rank/rank-author`;
|
let localVarPath = `/api/rank/rank-author`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<RankedAuthor>>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<RankedAuthor>>(
|
||||||
|
'post',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: keywordToAuthorRequest,
|
body: keywordToAuthorRequest,
|
||||||
@@ -186,9 +447,11 @@ export class RankingService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -199,42 +462,87 @@ export class RankingService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public staticStatsApiRankStaticStatsPost(authorMetricsRequest: AuthorMetricsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<AuthorStaticStats>>;
|
public staticStatsApiRankStaticStatsPost(
|
||||||
public staticStatsApiRankStaticStatsPost(authorMetricsRequest: AuthorMetricsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<AuthorStaticStats>>>;
|
authorMetricsRequest: AuthorMetricsRequest,
|
||||||
public staticStatsApiRankStaticStatsPost(authorMetricsRequest: AuthorMetricsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<AuthorStaticStats>>>;
|
observe?: 'body',
|
||||||
public staticStatsApiRankStaticStatsPost(authorMetricsRequest: AuthorMetricsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<AuthorStaticStats>>;
|
||||||
|
public staticStatsApiRankStaticStatsPost(
|
||||||
|
authorMetricsRequest: AuthorMetricsRequest,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<AuthorStaticStats>>>;
|
||||||
|
public staticStatsApiRankStaticStatsPost(
|
||||||
|
authorMetricsRequest: AuthorMetricsRequest,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<AuthorStaticStats>>>;
|
||||||
|
public staticStatsApiRankStaticStatsPost(
|
||||||
|
authorMetricsRequest: AuthorMetricsRequest,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (authorMetricsRequest === null || authorMetricsRequest === undefined) {
|
if (authorMetricsRequest === null || authorMetricsRequest === undefined) {
|
||||||
throw new Error('Required parameter authorMetricsRequest was null or undefined when calling staticStatsApiRankStaticStatsPost.');
|
throw new Error(
|
||||||
|
'Required parameter authorMetricsRequest was null or undefined when calling staticStatsApiRankStaticStatsPost.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
// to determine the Content-Type header
|
||||||
const consumes: string[] = [
|
const consumes: string[] = ['application/json'];
|
||||||
'application/json'
|
const httpContentTypeSelected: string | undefined =
|
||||||
];
|
this.configuration.selectHeaderContentType(consumes);
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
if (httpContentTypeSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Content-Type',
|
||||||
|
httpContentTypeSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -243,7 +551,9 @@ export class RankingService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/rank/static-stats`;
|
let localVarPath = `/api/rank/static-stats`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<AuthorStaticStats>>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<AuthorStaticStats>>(
|
||||||
|
'post',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: authorMetricsRequest,
|
body: authorMetricsRequest,
|
||||||
@@ -251,9 +561,11 @@ export class RankingService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -264,42 +576,90 @@ export class RankingService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public topicProfileApiRankTopicProfilePost(selectedAuthorsRequest: SelectedAuthorsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<AuthorTopicProfile>>;
|
public topicProfileApiRankTopicProfilePost(
|
||||||
public topicProfileApiRankTopicProfilePost(selectedAuthorsRequest: SelectedAuthorsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<AuthorTopicProfile>>>;
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
||||||
public topicProfileApiRankTopicProfilePost(selectedAuthorsRequest: SelectedAuthorsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<AuthorTopicProfile>>>;
|
observe?: 'body',
|
||||||
public topicProfileApiRankTopicProfilePost(selectedAuthorsRequest: SelectedAuthorsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
if (selectedAuthorsRequest === null || selectedAuthorsRequest === undefined) {
|
options?: {
|
||||||
throw new Error('Required parameter selectedAuthorsRequest was null or undefined when calling topicProfileApiRankTopicProfilePost.');
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<AuthorTopicProfile>>;
|
||||||
|
public topicProfileApiRankTopicProfilePost(
|
||||||
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<AuthorTopicProfile>>>;
|
||||||
|
public topicProfileApiRankTopicProfilePost(
|
||||||
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<AuthorTopicProfile>>>;
|
||||||
|
public topicProfileApiRankTopicProfilePost(
|
||||||
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
|
if (
|
||||||
|
selectedAuthorsRequest === null ||
|
||||||
|
selectedAuthorsRequest === undefined
|
||||||
|
) {
|
||||||
|
throw new Error(
|
||||||
|
'Required parameter selectedAuthorsRequest was null or undefined when calling topicProfileApiRankTopicProfilePost.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
// to determine the Content-Type header
|
||||||
const consumes: string[] = [
|
const consumes: string[] = ['application/json'];
|
||||||
'application/json'
|
const httpContentTypeSelected: string | undefined =
|
||||||
];
|
this.configuration.selectHeaderContentType(consumes);
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
if (httpContentTypeSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Content-Type',
|
||||||
|
httpContentTypeSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -308,7 +668,9 @@ export class RankingService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/rank/topic-profile`;
|
let localVarPath = `/api/rank/topic-profile`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<AuthorTopicProfile>>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<AuthorTopicProfile>>(
|
||||||
|
'post',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: selectedAuthorsRequest,
|
body: selectedAuthorsRequest,
|
||||||
@@ -316,9 +678,11 @@ export class RankingService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -329,42 +693,90 @@ export class RankingService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public topicStatsApiRankTopicStatsPost(selectedAuthorsRequest: SelectedAuthorsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<AuthorTopicStats>>;
|
public topicStatsApiRankTopicStatsPost(
|
||||||
public topicStatsApiRankTopicStatsPost(selectedAuthorsRequest: SelectedAuthorsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<AuthorTopicStats>>>;
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
||||||
public topicStatsApiRankTopicStatsPost(selectedAuthorsRequest: SelectedAuthorsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<AuthorTopicStats>>>;
|
observe?: 'body',
|
||||||
public topicStatsApiRankTopicStatsPost(selectedAuthorsRequest: SelectedAuthorsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
if (selectedAuthorsRequest === null || selectedAuthorsRequest === undefined) {
|
options?: {
|
||||||
throw new Error('Required parameter selectedAuthorsRequest was null or undefined when calling topicStatsApiRankTopicStatsPost.');
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<AuthorTopicStats>>;
|
||||||
|
public topicStatsApiRankTopicStatsPost(
|
||||||
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<AuthorTopicStats>>>;
|
||||||
|
public topicStatsApiRankTopicStatsPost(
|
||||||
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<AuthorTopicStats>>>;
|
||||||
|
public topicStatsApiRankTopicStatsPost(
|
||||||
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
|
if (
|
||||||
|
selectedAuthorsRequest === null ||
|
||||||
|
selectedAuthorsRequest === undefined
|
||||||
|
) {
|
||||||
|
throw new Error(
|
||||||
|
'Required parameter selectedAuthorsRequest was null or undefined when calling topicStatsApiRankTopicStatsPost.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
// to determine the Content-Type header
|
||||||
const consumes: string[] = [
|
const consumes: string[] = ['application/json'];
|
||||||
'application/json'
|
const httpContentTypeSelected: string | undefined =
|
||||||
];
|
this.configuration.selectHeaderContentType(consumes);
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
if (httpContentTypeSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Content-Type',
|
||||||
|
httpContentTypeSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -373,7 +785,9 @@ export class RankingService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/rank/topic-stats`;
|
let localVarPath = `/api/rank/topic-stats`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<AuthorTopicStats>>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<AuthorTopicStats>>(
|
||||||
|
'post',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: selectedAuthorsRequest,
|
body: selectedAuthorsRequest,
|
||||||
@@ -381,10 +795,11 @@ export class RankingService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -32,14 +38,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class TopicsService extends BaseService {
|
export class TopicsService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,45 +61,119 @@ export class TopicsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AutocompleteResponse>;
|
public autocompleteTopics(
|
||||||
public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AutocompleteResponse>>;
|
query: string,
|
||||||
public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AutocompleteResponse>>;
|
domainId?: string,
|
||||||
public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
fieldId?: string,
|
||||||
|
subfieldId?: string,
|
||||||
|
limit?: number,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<AutocompleteResponse>;
|
||||||
|
public autocompleteTopics(
|
||||||
|
query: string,
|
||||||
|
domainId?: string,
|
||||||
|
fieldId?: string,
|
||||||
|
subfieldId?: string,
|
||||||
|
limit?: number,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<AutocompleteResponse>>;
|
||||||
|
public autocompleteTopics(
|
||||||
|
query: string,
|
||||||
|
domainId?: string,
|
||||||
|
fieldId?: string,
|
||||||
|
subfieldId?: string,
|
||||||
|
limit?: number,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<AutocompleteResponse>>;
|
||||||
|
public autocompleteTopics(
|
||||||
|
query: string,
|
||||||
|
domainId?: string,
|
||||||
|
fieldId?: string,
|
||||||
|
subfieldId?: string,
|
||||||
|
limit?: number,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (query === null || query === undefined) {
|
if (query === null || query === undefined) {
|
||||||
throw new Error('Required parameter query was null or undefined when calling autocompleteTopics.');
|
throw new Error(
|
||||||
|
'Required parameter query was null or undefined when calling autocompleteTopics.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>query, 'query');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>query,
|
||||||
<any>domainId, 'domainId');
|
'query',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>fieldId, 'fieldId');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters,
|
||||||
<any>subfieldId, 'subfieldId');
|
<any>domainId,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
'domainId',
|
||||||
<any>limit, 'limit');
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>fieldId,
|
||||||
|
'fieldId',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>subfieldId,
|
||||||
|
'subfieldId',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>limit,
|
||||||
|
'limit',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -101,7 +182,9 @@ export class TopicsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/topics/autocomplete`;
|
let localVarPath = `/api/topics/autocomplete`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<AutocompleteResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<AutocompleteResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -109,184 +192,11 @@ export class TopicsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
);
|
reportProgress: reportProgress,
|
||||||
}
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Builds the topic hierarchy cache.
|
|
||||||
* @endpoint get /api/inse-service/topics/cache
|
|
||||||
* @param pageSize Page size for each search page.
|
|
||||||
* @param saveJson Persist cache JSON to data folder.
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
|
|
||||||
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
|
|
||||||
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
|
|
||||||
public buildTopicCache(pageSize?: number, saveJson?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
||||||
<any>pageSize, 'page_size');
|
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
||||||
<any>saveJson, 'save_json');
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/topics/cache`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
params: localVarQueryParameters,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Counts topic hierarchy occurrences from cache.
|
|
||||||
* @endpoint get /api/inse-service/topics/count
|
|
||||||
* @param topic Topic names (repeat parameter).
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public countTopicHierarchy(topic: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
|
|
||||||
public countTopicHierarchy(topic: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
|
|
||||||
public countTopicHierarchy(topic: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
|
|
||||||
public countTopicHierarchy(topic: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (topic === null || topic === undefined) {
|
|
||||||
throw new Error('Required parameter topic was null or undefined when calling countTopicHierarchy.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
||||||
if (topic) {
|
|
||||||
topic.forEach((element) => {
|
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
||||||
<any>element, 'topic');
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/topics/count`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
params: localVarQueryParameters,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics).
|
|
||||||
* @endpoint get /api/inse-service/topics/hierarchy
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public getTopicHierarchy(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
|
|
||||||
public getTopicHierarchy(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
|
|
||||||
public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
|
|
||||||
public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/api/inse-service/topics/hierarchy`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -305,50 +215,149 @@ export class TopicsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<TopicsListResponse>;
|
public listTopics(
|
||||||
public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<TopicsListResponse>>;
|
search?: string,
|
||||||
public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<TopicsListResponse>>;
|
filter?: string,
|
||||||
public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
sort?: string,
|
||||||
|
groupBy?: string,
|
||||||
|
perPage?: number,
|
||||||
|
page?: number,
|
||||||
|
cursor?: string,
|
||||||
|
sample?: number,
|
||||||
|
select?: string,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<TopicsListResponse>;
|
||||||
|
public listTopics(
|
||||||
|
search?: string,
|
||||||
|
filter?: string,
|
||||||
|
sort?: string,
|
||||||
|
groupBy?: string,
|
||||||
|
perPage?: number,
|
||||||
|
page?: number,
|
||||||
|
cursor?: string,
|
||||||
|
sample?: number,
|
||||||
|
select?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<TopicsListResponse>>;
|
||||||
|
public listTopics(
|
||||||
|
search?: string,
|
||||||
|
filter?: string,
|
||||||
|
sort?: string,
|
||||||
|
groupBy?: string,
|
||||||
|
perPage?: number,
|
||||||
|
page?: number,
|
||||||
|
cursor?: string,
|
||||||
|
sample?: number,
|
||||||
|
select?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<TopicsListResponse>>;
|
||||||
|
public listTopics(
|
||||||
|
search?: string,
|
||||||
|
filter?: string,
|
||||||
|
sort?: string,
|
||||||
|
groupBy?: string,
|
||||||
|
perPage?: number,
|
||||||
|
page?: number,
|
||||||
|
cursor?: string,
|
||||||
|
sample?: number,
|
||||||
|
select?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>search, 'search');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>search,
|
||||||
<any>filter, 'filter');
|
'search',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>sort, 'sort');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters,
|
||||||
<any>groupBy, 'group_by');
|
<any>filter,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
'filter',
|
||||||
<any>perPage, 'per_page');
|
);
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>page, 'page');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>sort,
|
||||||
<any>cursor, 'cursor');
|
'sort',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>sample, 'sample');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters,
|
||||||
<any>select, 'select');
|
<any>groupBy,
|
||||||
|
'group_by',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>perPage,
|
||||||
|
'per_page',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>page,
|
||||||
|
'page',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>cursor,
|
||||||
|
'cursor',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>sample,
|
||||||
|
'sample',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>select,
|
||||||
|
'select',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -357,7 +366,9 @@ export class TopicsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/topics`;
|
let localVarPath = `/api/topics`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<TopicsListResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<TopicsListResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -365,9 +376,11 @@ export class TopicsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -380,41 +393,101 @@ export class TopicsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public vectorSearchTopics(query: string, limit?: number, searchType?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<TopicsListResponse>;
|
public vectorSearchTopics(
|
||||||
public vectorSearchTopics(query: string, limit?: number, searchType?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<TopicsListResponse>>;
|
query: string,
|
||||||
public vectorSearchTopics(query: string, limit?: number, searchType?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<TopicsListResponse>>;
|
limit?: number,
|
||||||
public vectorSearchTopics(query: string, limit?: number, searchType?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
searchType?: string,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<TopicsListResponse>;
|
||||||
|
public vectorSearchTopics(
|
||||||
|
query: string,
|
||||||
|
limit?: number,
|
||||||
|
searchType?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<TopicsListResponse>>;
|
||||||
|
public vectorSearchTopics(
|
||||||
|
query: string,
|
||||||
|
limit?: number,
|
||||||
|
searchType?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<TopicsListResponse>>;
|
||||||
|
public vectorSearchTopics(
|
||||||
|
query: string,
|
||||||
|
limit?: number,
|
||||||
|
searchType?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (query === null || query === undefined) {
|
if (query === null || query === undefined) {
|
||||||
throw new Error('Required parameter query was null or undefined when calling vectorSearchTopics.');
|
throw new Error(
|
||||||
|
'Required parameter query was null or undefined when calling vectorSearchTopics.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>query, 'query');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>query,
|
||||||
<any>limit, 'limit');
|
'query',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>searchType, 'searchType');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>limit,
|
||||||
|
'limit',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>searchType,
|
||||||
|
'searchType',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -423,7 +496,9 @@ export class TopicsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/topics/vector-search`;
|
let localVarPath = `/api/topics/vector-search`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<TopicsListResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<TopicsListResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -431,9 +506,11 @@ export class TopicsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -445,46 +522,98 @@ export class TopicsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public vectorSearchTopicsBatch(keywordsTopicsRequest: KeywordsTopicsRequest, searchType?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<KeywordsTopicsResponse>;
|
public vectorSearchTopicsBatch(
|
||||||
public vectorSearchTopicsBatch(keywordsTopicsRequest: KeywordsTopicsRequest, searchType?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<KeywordsTopicsResponse>>;
|
keywordsTopicsRequest: KeywordsTopicsRequest,
|
||||||
public vectorSearchTopicsBatch(keywordsTopicsRequest: KeywordsTopicsRequest, searchType?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<KeywordsTopicsResponse>>;
|
searchType?: string,
|
||||||
public vectorSearchTopicsBatch(keywordsTopicsRequest: KeywordsTopicsRequest, searchType?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<KeywordsTopicsResponse>;
|
||||||
|
public vectorSearchTopicsBatch(
|
||||||
|
keywordsTopicsRequest: KeywordsTopicsRequest,
|
||||||
|
searchType?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<KeywordsTopicsResponse>>;
|
||||||
|
public vectorSearchTopicsBatch(
|
||||||
|
keywordsTopicsRequest: KeywordsTopicsRequest,
|
||||||
|
searchType?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<KeywordsTopicsResponse>>;
|
||||||
|
public vectorSearchTopicsBatch(
|
||||||
|
keywordsTopicsRequest: KeywordsTopicsRequest,
|
||||||
|
searchType?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (keywordsTopicsRequest === null || keywordsTopicsRequest === undefined) {
|
if (keywordsTopicsRequest === null || keywordsTopicsRequest === undefined) {
|
||||||
throw new Error('Required parameter keywordsTopicsRequest was null or undefined when calling vectorSearchTopicsBatch.');
|
throw new Error(
|
||||||
|
'Required parameter keywordsTopicsRequest was null or undefined when calling vectorSearchTopicsBatch.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>searchType, 'searchType');
|
localVarQueryParameters,
|
||||||
|
<any>searchType,
|
||||||
|
'searchType',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
// to determine the Content-Type header
|
||||||
const consumes: string[] = [
|
const consumes: string[] = ['application/json'];
|
||||||
'application/json'
|
const httpContentTypeSelected: string | undefined =
|
||||||
];
|
this.configuration.selectHeaderContentType(consumes);
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
if (httpContentTypeSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Content-Type',
|
||||||
|
httpContentTypeSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -493,7 +622,9 @@ export class TopicsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/topics/vector-search/batch`;
|
let localVarPath = `/api/topics/vector-search/batch`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<KeywordsTopicsResponse>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<KeywordsTopicsResponse>(
|
||||||
|
'post',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: keywordsTopicsRequest,
|
body: keywordsTopicsRequest,
|
||||||
@@ -502,10 +633,11 @@ export class TopicsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ import { Subfield } from '../model/subfield';
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { Topic } from '../model/topic';
|
import { Topic } from '../model/topic';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
import { TopicHierarchyResponse } from '../model/topicHierarchyResponse';
|
||||||
|
// @ts-ignore
|
||||||
import { TopicPageV2 } from '../model/topicPageV2';
|
import { TopicPageV2 } from '../model/topicPageV2';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { TopicSortBy } from '../model/topicSortBy';
|
import { TopicSortBy } from '../model/topicSortBy';
|
||||||
@@ -564,6 +566,97 @@ export class TopicsV2Service extends BaseService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the full topic hierarchy tree (Domain -> Field -> Subfield -> Topics).
|
||||||
|
* @endpoint get /api/topics/v2/hierarchy
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public getTopicHierarchy(
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<TopicHierarchyResponse>;
|
||||||
|
public getTopicHierarchy(
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<TopicHierarchyResponse>>;
|
||||||
|
public getTopicHierarchy(
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<TopicHierarchyResponse>>;
|
||||||
|
public getTopicHierarchy(
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
|
options?.httpHeaderAccept ??
|
||||||
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/api/topics/v2/hierarchy`;
|
||||||
|
const { basePath, withCredentials } = this.configuration;
|
||||||
|
return this.httpClient.request<TopicHierarchyResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined
|
||||||
|
? { transferCache: localVarTransferCache }
|
||||||
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a paginated list of topics for a given list of topic IDs.
|
* Returns a paginated list of topics for a given list of topic IDs.
|
||||||
* @endpoint get /api/topics/v2/topics/id
|
* @endpoint get /api/topics/v2/topics/id
|
||||||
|
|||||||
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -36,14 +42,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class UniversityRankingsService extends BaseService {
|
export class UniversityRankingsService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,37 +61,83 @@ export class UniversityRankingsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<AutocompleteLocationItem>>;
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
|
||||||
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<AutocompleteLocationItem>>>;
|
query: string,
|
||||||
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<AutocompleteLocationItem>>>;
|
observe?: 'body',
|
||||||
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<AutocompleteLocationItem>>;
|
||||||
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
|
||||||
|
query: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<AutocompleteLocationItem>>>;
|
||||||
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
|
||||||
|
query: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<AutocompleteLocationItem>>>;
|
||||||
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
|
||||||
|
query: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (query === null || query === undefined) {
|
if (query === null || query === undefined) {
|
||||||
throw new Error('Required parameter query was null or undefined when calling getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet.');
|
throw new Error(
|
||||||
|
'Required parameter query was null or undefined when calling getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>query, 'query');
|
localVarQueryParameters,
|
||||||
|
<any>query,
|
||||||
|
'query',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -93,7 +146,9 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/inse-service/university-rankings/autocomplete-locations`;
|
let localVarPath = `/api/inse-service/university-rankings/autocomplete-locations`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<AutocompleteLocationItem>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<AutocompleteLocationItem>>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -101,9 +156,11 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,39 +172,92 @@ export class UniversityRankingsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getRankingsApiInseServiceUniversityRankingsGet(topic: string, metric?: 'publications' | 'citations', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<RankingResponse>;
|
public getRankingsApiInseServiceUniversityRankingsGet(
|
||||||
public getRankingsApiInseServiceUniversityRankingsGet(topic: string, metric?: 'publications' | 'citations', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<RankingResponse>>;
|
topic: string,
|
||||||
public getRankingsApiInseServiceUniversityRankingsGet(topic: string, metric?: 'publications' | 'citations', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<RankingResponse>>;
|
metric?: 'publications' | 'citations',
|
||||||
public getRankingsApiInseServiceUniversityRankingsGet(topic: string, metric?: 'publications' | 'citations', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<RankingResponse>;
|
||||||
|
public getRankingsApiInseServiceUniversityRankingsGet(
|
||||||
|
topic: string,
|
||||||
|
metric?: 'publications' | 'citations',
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<RankingResponse>>;
|
||||||
|
public getRankingsApiInseServiceUniversityRankingsGet(
|
||||||
|
topic: string,
|
||||||
|
metric?: 'publications' | 'citations',
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<RankingResponse>>;
|
||||||
|
public getRankingsApiInseServiceUniversityRankingsGet(
|
||||||
|
topic: string,
|
||||||
|
metric?: 'publications' | 'citations',
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (topic === null || topic === undefined) {
|
if (topic === null || topic === undefined) {
|
||||||
throw new Error('Required parameter topic was null or undefined when calling getRankingsApiInseServiceUniversityRankingsGet.');
|
throw new Error(
|
||||||
|
'Required parameter topic was null or undefined when calling getRankingsApiInseServiceUniversityRankingsGet.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>topic, 'topic');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>topic,
|
||||||
<any>metric, 'metric');
|
'topic',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>metric,
|
||||||
|
'metric',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -156,7 +266,9 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/inse-service/university-rankings`;
|
let localVarPath = `/api/inse-service/university-rankings`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<RankingResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<RankingResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -164,9 +276,11 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,43 +294,110 @@ export class UniversityRankingsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<TopInstitutionItem>>;
|
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(
|
||||||
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<TopInstitutionItem>>>;
|
topic: string,
|
||||||
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<TopInstitutionItem>>>;
|
region?: string,
|
||||||
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
country?: string,
|
||||||
|
limit?: number,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<TopInstitutionItem>>;
|
||||||
|
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(
|
||||||
|
topic: string,
|
||||||
|
region?: string,
|
||||||
|
country?: string,
|
||||||
|
limit?: number,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<TopInstitutionItem>>>;
|
||||||
|
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(
|
||||||
|
topic: string,
|
||||||
|
region?: string,
|
||||||
|
country?: string,
|
||||||
|
limit?: number,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<TopInstitutionItem>>>;
|
||||||
|
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(
|
||||||
|
topic: string,
|
||||||
|
region?: string,
|
||||||
|
country?: string,
|
||||||
|
limit?: number,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (topic === null || topic === undefined) {
|
if (topic === null || topic === undefined) {
|
||||||
throw new Error('Required parameter topic was null or undefined when calling getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet.');
|
throw new Error(
|
||||||
|
'Required parameter topic was null or undefined when calling getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>topic, 'topic');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>topic,
|
||||||
<any>region, 'region');
|
'topic',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>country, 'country');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters,
|
||||||
<any>limit, 'limit');
|
<any>region,
|
||||||
|
'region',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>country,
|
||||||
|
'country',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>limit,
|
||||||
|
'limit',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -225,7 +406,9 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/inse-service/university-rankings/top-institutions`;
|
let localVarPath = `/api/inse-service/university-rankings/top-institutions`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<TopInstitutionItem>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<TopInstitutionItem>>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -233,9 +416,11 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,48 +435,124 @@ export class UniversityRankingsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet(entityId: string, entityType: string, startYear?: number, endYear?: number, searchType?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<TopTopicsResponse>;
|
public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet(
|
||||||
public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet(entityId: string, entityType: string, startYear?: number, endYear?: number, searchType?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<TopTopicsResponse>>;
|
entityId: string,
|
||||||
public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet(entityId: string, entityType: string, startYear?: number, endYear?: number, searchType?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<TopTopicsResponse>>;
|
entityType: string,
|
||||||
public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet(entityId: string, entityType: string, startYear?: number, endYear?: number, searchType?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
startYear?: number,
|
||||||
|
endYear?: number,
|
||||||
|
searchType?: string,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<TopTopicsResponse>;
|
||||||
|
public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet(
|
||||||
|
entityId: string,
|
||||||
|
entityType: string,
|
||||||
|
startYear?: number,
|
||||||
|
endYear?: number,
|
||||||
|
searchType?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<TopTopicsResponse>>;
|
||||||
|
public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet(
|
||||||
|
entityId: string,
|
||||||
|
entityType: string,
|
||||||
|
startYear?: number,
|
||||||
|
endYear?: number,
|
||||||
|
searchType?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<TopTopicsResponse>>;
|
||||||
|
public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet(
|
||||||
|
entityId: string,
|
||||||
|
entityType: string,
|
||||||
|
startYear?: number,
|
||||||
|
endYear?: number,
|
||||||
|
searchType?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (entityId === null || entityId === undefined) {
|
if (entityId === null || entityId === undefined) {
|
||||||
throw new Error('Required parameter entityId was null or undefined when calling getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet.');
|
throw new Error(
|
||||||
|
'Required parameter entityId was null or undefined when calling getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (entityType === null || entityType === undefined) {
|
if (entityType === null || entityType === undefined) {
|
||||||
throw new Error('Required parameter entityType was null or undefined when calling getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet.');
|
throw new Error(
|
||||||
|
'Required parameter entityType was null or undefined when calling getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>entityId, 'entity_id');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>entityId,
|
||||||
<any>entityType, 'entity_type');
|
'entity_id',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>startYear, 'start_year');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters,
|
||||||
<any>endYear, 'end_year');
|
<any>entityType,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
'entity_type',
|
||||||
<any>searchType, 'search_type');
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>startYear,
|
||||||
|
'start_year',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>endYear,
|
||||||
|
'end_year',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>searchType,
|
||||||
|
'search_type',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -300,7 +561,9 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/inse-service/university-rankings/top-topics`;
|
let localVarPath = `/api/inse-service/university-rankings/top-topics`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<TopTopicsResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<TopTopicsResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -308,9 +571,11 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -328,75 +593,170 @@ export class UniversityRankingsService 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, keywords?: Array<string>, fuzzy?: boolean, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, authors?: Array<string>, searchType?: TrendSearchType, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<TrendResponse>;
|
public getTrendApiInseServiceUniversityRankingsTrendGet(
|
||||||
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, keywords?: Array<string>, fuzzy?: boolean, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, authors?: Array<string>, searchType?: TrendSearchType, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<TrendResponse>>;
|
topics: Array<string>,
|
||||||
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, keywords?: Array<string>, fuzzy?: boolean, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, authors?: Array<string>, searchType?: TrendSearchType, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<TrendResponse>>;
|
keywords?: Array<string>,
|
||||||
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, keywords?: Array<string>, fuzzy?: boolean, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, authors?: Array<string>, searchType?: TrendSearchType, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
fuzzy?: boolean,
|
||||||
|
institutions?: Array<string>,
|
||||||
|
countries?: Array<string>,
|
||||||
|
regions?: Array<string>,
|
||||||
|
authors?: Array<string>,
|
||||||
|
searchType?: TrendSearchType,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<TrendResponse>;
|
||||||
|
public getTrendApiInseServiceUniversityRankingsTrendGet(
|
||||||
|
topics: Array<string>,
|
||||||
|
keywords?: Array<string>,
|
||||||
|
fuzzy?: boolean,
|
||||||
|
institutions?: Array<string>,
|
||||||
|
countries?: Array<string>,
|
||||||
|
regions?: Array<string>,
|
||||||
|
authors?: Array<string>,
|
||||||
|
searchType?: TrendSearchType,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<TrendResponse>>;
|
||||||
|
public getTrendApiInseServiceUniversityRankingsTrendGet(
|
||||||
|
topics: Array<string>,
|
||||||
|
keywords?: Array<string>,
|
||||||
|
fuzzy?: boolean,
|
||||||
|
institutions?: Array<string>,
|
||||||
|
countries?: Array<string>,
|
||||||
|
regions?: Array<string>,
|
||||||
|
authors?: Array<string>,
|
||||||
|
searchType?: TrendSearchType,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<TrendResponse>>;
|
||||||
|
public getTrendApiInseServiceUniversityRankingsTrendGet(
|
||||||
|
topics: Array<string>,
|
||||||
|
keywords?: Array<string>,
|
||||||
|
fuzzy?: boolean,
|
||||||
|
institutions?: Array<string>,
|
||||||
|
countries?: Array<string>,
|
||||||
|
regions?: Array<string>,
|
||||||
|
authors?: Array<string>,
|
||||||
|
searchType?: TrendSearchType,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (topics === null || topics === undefined) {
|
if (topics === null || topics === undefined) {
|
||||||
throw new Error('Required parameter topics was null or undefined when calling getTrendApiInseServiceUniversityRankingsTrendGet.');
|
throw new Error(
|
||||||
|
'Required parameter topics was null or undefined when calling getTrendApiInseServiceUniversityRankingsTrendGet.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
if (topics) {
|
if (topics) {
|
||||||
topics.forEach((element) => {
|
topics.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'topics');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'topics',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (keywords) {
|
if (keywords) {
|
||||||
keywords.forEach((element) => {
|
keywords.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'keywords');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'keywords',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>fuzzy, 'fuzzy');
|
localVarQueryParameters,
|
||||||
|
<any>fuzzy,
|
||||||
|
'fuzzy',
|
||||||
|
);
|
||||||
if (institutions) {
|
if (institutions) {
|
||||||
institutions.forEach((element) => {
|
institutions.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'institutions');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'institutions',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (countries) {
|
if (countries) {
|
||||||
countries.forEach((element) => {
|
countries.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'countries');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'countries',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (regions) {
|
if (regions) {
|
||||||
regions.forEach((element) => {
|
regions.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'regions');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'regions',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (authors) {
|
if (authors) {
|
||||||
authors.forEach((element) => {
|
authors.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'authors');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'authors',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>searchType, 'search_type');
|
localVarQueryParameters,
|
||||||
|
<any>searchType,
|
||||||
|
'search_type',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
@@ -405,7 +765,9 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
|
|
||||||
let localVarPath = `/api/inse-service/university-rankings/trend`;
|
let localVarPath = `/api/inse-service/university-rankings/trend`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<TrendResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<TrendResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -413,10 +775,11 @@ export class UniversityRankingsService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,14 @@
|
|||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import { Inject, Injectable, Optional } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient,
|
||||||
|
HttpHeaders,
|
||||||
|
HttpParams,
|
||||||
|
HttpResponse,
|
||||||
|
HttpEvent,
|
||||||
|
HttpParameterCodec,
|
||||||
|
HttpContext,
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
import { CustomHttpParameterCodec } from '../encoder';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
@@ -34,14 +40,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|||||||
import { Configuration } from '../configuration';
|
import { Configuration } from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import { BaseService } from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class WorksService extends BaseService {
|
export class WorksService extends BaseService {
|
||||||
|
constructor(
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
protected httpClient: HttpClient,
|
||||||
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||||
|
@Optional() configuration?: Configuration,
|
||||||
|
) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,51 +59,98 @@ 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 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.
|
* @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(
|
||||||
public getAllAuthorWorks(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<WorksListResponse>>;
|
authorId: string,
|
||||||
public getAllAuthorWorks(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<WorksListResponse>>;
|
observe?: 'body',
|
||||||
public getAllAuthorWorks(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
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) {
|
if (authorId === null || authorId === undefined) {
|
||||||
throw new Error('Required parameter authorId was null or undefined when calling getAllAuthorWorks.');
|
throw new Error(
|
||||||
|
'Required parameter authorId was null or undefined when calling getAllAuthorWorks.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<WorksListResponse>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<WorksListResponse>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,80 +169,181 @@ 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 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.
|
* @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>, institutionId?: Array<string>, topicId?: Array<string>, sort?: 'year' | 'citations', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<WorkPage>;
|
public getAuthorWorks(
|
||||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, institutionId?: Array<string>, topicId?: Array<string>, sort?: 'year' | 'citations', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<WorkPage>>;
|
authorId: string,
|
||||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, institutionId?: Array<string>, topicId?: Array<string>, sort?: 'year' | 'citations', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<WorkPage>>;
|
page?: number,
|
||||||
public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, institutionId?: Array<string>, topicId?: Array<string>, sort?: 'year' | 'citations', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
size?: number,
|
||||||
|
publicationYear?: Array<number>,
|
||||||
|
type?: Array<string>,
|
||||||
|
language?: Array<string>,
|
||||||
|
institutionId?: Array<string>,
|
||||||
|
topicId?: Array<string>,
|
||||||
|
sort?: 'year' | 'citations',
|
||||||
|
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>,
|
||||||
|
institutionId?: Array<string>,
|
||||||
|
topicId?: Array<string>,
|
||||||
|
sort?: 'year' | 'citations',
|
||||||
|
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>,
|
||||||
|
institutionId?: Array<string>,
|
||||||
|
topicId?: Array<string>,
|
||||||
|
sort?: 'year' | 'citations',
|
||||||
|
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>,
|
||||||
|
institutionId?: Array<string>,
|
||||||
|
topicId?: Array<string>,
|
||||||
|
sort?: 'year' | 'citations',
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (authorId === null || authorId === undefined) {
|
if (authorId === null || authorId === undefined) {
|
||||||
throw new Error('Required parameter authorId was null or undefined when calling getAuthorWorks.');
|
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,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>page, 'page');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>page,
|
||||||
<any>size, 'size');
|
'page',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>size,
|
||||||
|
'size',
|
||||||
|
);
|
||||||
if (publicationYear) {
|
if (publicationYear) {
|
||||||
publicationYear.forEach((element) => {
|
publicationYear.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'publication_year');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'publication_year',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (type) {
|
if (type) {
|
||||||
type.forEach((element) => {
|
type.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'type');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'type',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (language) {
|
if (language) {
|
||||||
language.forEach((element) => {
|
language.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'language');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'language',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (institutionId) {
|
if (institutionId) {
|
||||||
institutionId.forEach((element) => {
|
institutionId.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'institution_id');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'institution_id',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (topicId) {
|
if (topicId) {
|
||||||
topicId.forEach((element) => {
|
topicId.forEach((element) => {
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>element, 'topic_id');
|
localVarQueryParameters,
|
||||||
})
|
<any>element,
|
||||||
|
'topic_id',
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>sort, 'sort');
|
localVarQueryParameters,
|
||||||
|
<any>sort,
|
||||||
|
'sort',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<WorkPage>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<WorkPage>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -196,9 +351,11 @@ export class WorksService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,51 +366,98 @@ 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getPrimaryTopicCountsByAuthor(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<TopicCount>>;
|
public getPrimaryTopicCountsByAuthor(
|
||||||
public getPrimaryTopicCountsByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<TopicCount>>>;
|
authorId: string,
|
||||||
public getPrimaryTopicCountsByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<TopicCount>>>;
|
observe?: 'body',
|
||||||
public getPrimaryTopicCountsByAuthor(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Array<TopicCount>>;
|
||||||
|
public getPrimaryTopicCountsByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Array<TopicCount>>>;
|
||||||
|
public getPrimaryTopicCountsByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Array<TopicCount>>>;
|
||||||
|
public getPrimaryTopicCountsByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (authorId === null || authorId === undefined) {
|
if (authorId === null || authorId === undefined) {
|
||||||
throw new Error('Required parameter authorId was null or undefined when calling getPrimaryTopicCountsByAuthor.');
|
throw new Error(
|
||||||
|
'Required parameter authorId was null or undefined when calling getPrimaryTopicCountsByAuthor.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/primary-topic-counts`;
|
let localVarPath = `/api/works/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/primary-topic-counts`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Array<TopicCount>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<TopicCount>>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -267,50 +471,116 @@ 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<TopicsByTime>;
|
public getTopicsByTimeByAuthor(
|
||||||
public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<TopicsByTime>>;
|
authorId: string,
|
||||||
public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<TopicsByTime>>;
|
maxTopicsPerYear?: number,
|
||||||
public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
targetPublications?: number,
|
||||||
|
includeAll?: boolean,
|
||||||
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<TopicsByTime>;
|
||||||
|
public getTopicsByTimeByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
maxTopicsPerYear?: number,
|
||||||
|
targetPublications?: number,
|
||||||
|
includeAll?: boolean,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<TopicsByTime>>;
|
||||||
|
public getTopicsByTimeByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
maxTopicsPerYear?: number,
|
||||||
|
targetPublications?: number,
|
||||||
|
includeAll?: boolean,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<TopicsByTime>>;
|
||||||
|
public getTopicsByTimeByAuthor(
|
||||||
|
authorId: string,
|
||||||
|
maxTopicsPerYear?: number,
|
||||||
|
targetPublications?: number,
|
||||||
|
includeAll?: boolean,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (authorId === null || authorId === undefined) {
|
if (authorId === null || authorId === undefined) {
|
||||||
throw new Error('Required parameter authorId was null or undefined when calling getTopicsByTimeByAuthor.');
|
throw new Error(
|
||||||
|
'Required parameter authorId was null or undefined when calling getTopicsByTimeByAuthor.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>maxTopicsPerYear, 'max_topics_per_year');
|
localVarQueryParameters,
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
<any>maxTopicsPerYear,
|
||||||
<any>targetPublications, 'target_publications');
|
'max_topics_per_year',
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
);
|
||||||
<any>includeAll, 'include_all');
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>targetPublications,
|
||||||
|
'target_publications',
|
||||||
|
);
|
||||||
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
|
localVarQueryParameters,
|
||||||
|
<any>includeAll,
|
||||||
|
'include_all',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
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`;
|
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;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<TopicsByTime>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<TopicsByTime>(
|
||||||
|
'get',
|
||||||
|
`${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
@@ -318,9 +588,11 @@ export class WorksService extends BaseService {
|
|||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
}
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -332,57 +604,106 @@ 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 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.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getWork(identifier: string, title?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Work>;
|
public getWork(
|
||||||
public getWork(identifier: string, title?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Work>>;
|
identifier: string,
|
||||||
public getWork(identifier: string, title?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Work>>;
|
title?: string,
|
||||||
public getWork(identifier: string, title?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
observe?: 'body',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<Work>;
|
||||||
|
public getWork(
|
||||||
|
identifier: string,
|
||||||
|
title?: string,
|
||||||
|
observe?: 'response',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpResponse<Work>>;
|
||||||
|
public getWork(
|
||||||
|
identifier: string,
|
||||||
|
title?: string,
|
||||||
|
observe?: 'events',
|
||||||
|
reportProgress?: boolean,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<HttpEvent<Work>>;
|
||||||
|
public getWork(
|
||||||
|
identifier: string,
|
||||||
|
title?: string,
|
||||||
|
observe: any = 'body',
|
||||||
|
reportProgress: boolean = false,
|
||||||
|
options?: {
|
||||||
|
httpHeaderAccept?: 'application/json';
|
||||||
|
context?: HttpContext;
|
||||||
|
transferCache?: boolean;
|
||||||
|
},
|
||||||
|
): Observable<any> {
|
||||||
if (identifier === null || identifier === undefined) {
|
if (identifier === null || identifier === undefined) {
|
||||||
throw new Error('Required parameter identifier was null or undefined when calling getWork.');
|
throw new Error(
|
||||||
|
'Required parameter identifier was null or undefined when calling getWork.',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
localVarQueryParameters = this.addToHttpParams(
|
||||||
<any>title, 'title');
|
localVarQueryParameters,
|
||||||
|
<any>title,
|
||||||
|
'title',
|
||||||
|
);
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||||
'application/json'
|
options?.httpHeaderAccept ??
|
||||||
]);
|
this.configuration.selectHeaderAccept(['application/json']);
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set(
|
||||||
|
'Accept',
|
||||||
|
localVarHttpHeaderAcceptSelected,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
const localVarHttpContext: HttpContext =
|
||||||
|
options?.context ?? new HttpContext();
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
responseType_ = 'text';
|
responseType_ = 'text';
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
} else if (
|
||||||
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||||
|
) {
|
||||||
responseType_ = 'json';
|
responseType_ = 'json';
|
||||||
} else {
|
} else {
|
||||||
responseType_ = 'blob';
|
responseType_ = 'blob';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/api/works/detail/${this.configuration.encodeParam({name: "identifier", value: identifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
let localVarPath = `/api/works/detail/${this.configuration.encodeParam({ name: 'identifier', value: identifier, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const { basePath, withCredentials } = this.configuration;
|
||||||
return this.httpClient.request<Work>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Work>('get', `${basePath}${localVarPath}`, {
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
params: localVarQueryParameters,
|
params: localVarQueryParameters,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? { withCredentials } : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined
|
||||||
reportProgress: reportProgress
|
? { transferCache: localVarTransferCache }
|
||||||
|
: {}),
|
||||||
|
reportProgress: reportProgress,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,6 @@
|
|||||||
import { TokenType } from './tokenType';
|
import { TokenType } from './tokenType';
|
||||||
import { UserRole } from './userRole';
|
import { UserRole } from './userRole';
|
||||||
|
|
||||||
|
|
||||||
export interface AccessToken {
|
export interface AccessToken {
|
||||||
/**
|
/**
|
||||||
* The unique identifier of the real account associated with this token.
|
* The unique identifier of the real account associated with this token.
|
||||||
@@ -54,7 +53,4 @@ export interface AccessToken {
|
|||||||
*/
|
*/
|
||||||
raw_token: string;
|
raw_token: string;
|
||||||
}
|
}
|
||||||
export namespace AccessToken {
|
export namespace AccessToken {}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { UserRole } from './userRole';
|
import { UserRole } from './userRole';
|
||||||
|
|
||||||
|
|
||||||
export interface AccountProfile {
|
export interface AccountProfile {
|
||||||
id: string;
|
id: string;
|
||||||
email: string;
|
email: string;
|
||||||
@@ -23,4 +22,3 @@ export interface AccountProfile {
|
|||||||
is_real_account?: boolean;
|
is_real_account?: boolean;
|
||||||
is_impersonating?: boolean;
|
is_impersonating?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { CompanyStatusFilter } from './companyStatusFilter';
|
import { CompanyStatusFilter } from './companyStatusFilter';
|
||||||
|
|
||||||
|
|
||||||
export interface AuthorMetricsRequest {
|
export interface AuthorMetricsRequest {
|
||||||
/**
|
/**
|
||||||
* OpenAlex IDs of the authors.
|
* OpenAlex IDs of the authors.
|
||||||
@@ -20,7 +19,4 @@ export interface AuthorMetricsRequest {
|
|||||||
*/
|
*/
|
||||||
company_status?: CompanyStatusFilter;
|
company_status?: CompanyStatusFilter;
|
||||||
}
|
}
|
||||||
export namespace AuthorMetricsRequest {
|
export namespace AuthorMetricsRequest {}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface AuthorNode {
|
export interface AuthorNode {
|
||||||
/**
|
/**
|
||||||
* The ID of the author.
|
* The ID of the author.
|
||||||
@@ -23,4 +22,3 @@ export interface AuthorNode {
|
|||||||
*/
|
*/
|
||||||
institution_ids?: Array<string>;
|
institution_ids?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { AuthorOrientationProfileStatus } from './authorOrientationProfileStatus';
|
import { AuthorOrientationProfileStatus } from './authorOrientationProfileStatus';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Aggregated research-orientation result for one selected author.
|
* Aggregated research-orientation result for one selected author.
|
||||||
*/
|
*/
|
||||||
@@ -20,11 +19,8 @@ export interface AuthorOrientationProfile {
|
|||||||
author_id: string;
|
author_id: string;
|
||||||
status: AuthorOrientationProfileStatus;
|
status: AuthorOrientationProfileStatus;
|
||||||
orientation_score?: number | null;
|
orientation_score?: number | null;
|
||||||
primary_category_counts?: { [key: string]: number; } | null;
|
primary_category_counts?: { [key: string]: number } | null;
|
||||||
classified_work_count?: number | null;
|
classified_work_count?: number | null;
|
||||||
scored_work_count?: number | null;
|
scored_work_count?: number | null;
|
||||||
}
|
}
|
||||||
export namespace AuthorOrientationProfile {
|
export namespace AuthorOrientationProfile {}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,13 +8,12 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export const AuthorOrientationProfileStatus = {
|
export const AuthorOrientationProfileStatus = {
|
||||||
Available: 'available',
|
Available: 'available',
|
||||||
InsufficientScoredPublications: 'insufficient_scored_publications',
|
InsufficientScoredPublications: 'insufficient_scored_publications',
|
||||||
NoClassifiedPublications: 'no_classified_publications',
|
NoClassifiedPublications: 'no_classified_publications',
|
||||||
NoOrientationScore: 'no_orientation_score',
|
NoOrientationScore: 'no_orientation_score',
|
||||||
Restricted: 'restricted'
|
Restricted: 'restricted',
|
||||||
} as const;
|
} as const;
|
||||||
export type AuthorOrientationProfileStatus = typeof AuthorOrientationProfileStatus[keyof typeof AuthorOrientationProfileStatus];
|
export type AuthorOrientationProfileStatus =
|
||||||
|
(typeof AuthorOrientationProfileStatus)[keyof typeof AuthorOrientationProfileStatus];
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
import { Timespan } from './timespan';
|
import { Timespan } from './timespan';
|
||||||
import { PublicationType } from './publicationType';
|
import { PublicationType } from './publicationType';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters used to compare the research orientation of selected authors.
|
* Filters used to compare the research orientation of selected authors.
|
||||||
*/
|
*/
|
||||||
@@ -25,4 +24,3 @@ export interface AuthorOrientationProfilesRequest {
|
|||||||
publication_types?: Array<PublicationType>;
|
publication_types?: Array<PublicationType>;
|
||||||
timespan?: Timespan | null;
|
timespan?: Timespan | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { Author } from './author';
|
import { Author } from './author';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A paginated response containing a list of authors.
|
* A paginated response containing a list of authors.
|
||||||
*/
|
*/
|
||||||
@@ -31,4 +30,3 @@ export interface AuthorPage {
|
|||||||
*/
|
*/
|
||||||
total?: number;
|
total?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Section 2: author-level stats independent of any keyword/topic/time filter.
|
* Section 2: author-level stats independent of any keyword/topic/time filter.
|
||||||
*/
|
*/
|
||||||
@@ -34,4 +33,3 @@ export interface AuthorStaticStats {
|
|||||||
*/
|
*/
|
||||||
patents_count: number;
|
patents_count: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
import { FieldNode } from './fieldNode';
|
||||||
import { SubfieldShare } from './subfieldShare';
|
import { SubfieldShare } from './subfieldShare';
|
||||||
|
|
||||||
|
|
||||||
export interface AuthorTopicProfile {
|
export interface AuthorTopicProfile {
|
||||||
/**
|
/**
|
||||||
* The OpenAlex ID of the author.
|
* The OpenAlex ID of the author.
|
||||||
@@ -47,5 +47,8 @@ export interface AuthorTopicProfile {
|
|||||||
* Top subfields over all works, by primary topic, largest first.
|
* Top subfields over all works, by primary topic, largest first.
|
||||||
*/
|
*/
|
||||||
subfields?: Array<SubfieldShare>;
|
subfields?: Array<SubfieldShare>;
|
||||||
|
/**
|
||||||
|
* Field -> subfield -> topic hierarchy over all works, by primary topic, each level largest first. Drives the interactive topic treemap.
|
||||||
|
*/
|
||||||
|
field_tree?: Array<FieldNode>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Section 1: combined stats over an author\'s works that match the topic filter.
|
* Section 1: combined stats over an author\'s works that match the topic filter.
|
||||||
*/
|
*/
|
||||||
@@ -92,4 +91,3 @@ export interface AuthorTopicStats {
|
|||||||
*/
|
*/
|
||||||
last_author_count?: number;
|
last_author_count?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,7 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface AvailableImages {
|
export interface AvailableImages {
|
||||||
images: Array<string>;
|
images: Array<string>;
|
||||||
detail?: string;
|
detail?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { JobRun } from './jobRun';
|
import { JobRun } from './jobRun';
|
||||||
|
|
||||||
|
|
||||||
export interface BackgroundJobTask {
|
export interface BackgroundJobTask {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
@@ -17,11 +16,10 @@ export interface BackgroundJobTask {
|
|||||||
target_index: string;
|
target_index: string;
|
||||||
image: string | null;
|
image: string | null;
|
||||||
command: string | null;
|
command: string | null;
|
||||||
env: { [key: string]: string; };
|
env: { [key: string]: string };
|
||||||
schedule: string | null;
|
schedule: string | null;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
next_run_at: string | null;
|
next_run_at: string | null;
|
||||||
last_run: JobRun | null;
|
last_run: JobRun | null;
|
||||||
status: string;
|
status: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface BmbfProjectStatusStatistics {
|
export interface BmbfProjectStatusStatistics {
|
||||||
institution_id: string;
|
institution_id: string;
|
||||||
organization_name: string;
|
organization_name: string;
|
||||||
@@ -16,4 +15,3 @@ export interface BmbfProjectStatusStatistics {
|
|||||||
upcoming: number;
|
upcoming: number;
|
||||||
completed: number;
|
completed: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A single institution entry derived from a BUND project record. Note: this index has no dedicated institution entity — each entry is reconstructed from the agency/recipient fields on a single project hit, so the same institution may appear multiple times (once per project).
|
* A single institution entry derived from a BUND project record. Note: this index has no dedicated institution entity — each entry is reconstructed from the agency/recipient fields on a single project hit, so the same institution may appear multiple times (once per project).
|
||||||
*/
|
*/
|
||||||
@@ -22,4 +21,3 @@ export interface BundInstitutionSummary {
|
|||||||
state?: string | null;
|
state?: string | null;
|
||||||
country?: string | null;
|
country?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { BundInstitutionSummary } from './bundInstitutionSummary';
|
import { BundInstitutionSummary } from './bundInstitutionSummary';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A paginated response containing a list of institutions.
|
* A paginated response containing a list of institutions.
|
||||||
*/
|
*/
|
||||||
@@ -31,4 +30,3 @@ export interface BundInstitutionSummaryPage {
|
|||||||
*/
|
*/
|
||||||
total?: number;
|
total?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { Topic } from './topic';
|
import { Topic } from './topic';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clean summary model for a Bund (federal) project, consolidating all fields into semantic English names with proper native types.
|
* Clean summary model for a Bund (federal) project, consolidating all fields into semantic English names with proper native types.
|
||||||
*/
|
*/
|
||||||
@@ -56,4 +55,3 @@ export interface BundProjectDetails {
|
|||||||
institutions?: Array<string>;
|
institutions?: Array<string>;
|
||||||
oa_topics?: Array<Topic> | null;
|
oa_topics?: Array<Topic> | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Highlighted matching fragments from a BUND project search.
|
||||||
|
*/
|
||||||
|
export interface BundProjectHighlight {
|
||||||
|
/**
|
||||||
|
* Highlights from the Elasticsearch field \"Verbundprojekt\".
|
||||||
|
*/
|
||||||
|
joint_project?: Array<string>;
|
||||||
|
/**
|
||||||
|
* Highlights from the Elasticsearch field \"Thema\".
|
||||||
|
*/
|
||||||
|
topic?: Array<string>;
|
||||||
|
/**
|
||||||
|
* Highlights from the Elasticsearch field \"Zuwendungsempfänger\".
|
||||||
|
*/
|
||||||
|
recipient?: Array<string>;
|
||||||
|
/**
|
||||||
|
* Highlights from the Elasticsearch field \"Ausführende Stelle\".
|
||||||
|
*/
|
||||||
|
executing_agency?: Array<string>;
|
||||||
|
}
|
||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { BundProjectSummary } from './bundProjectSummary';
|
import { BundProjectSummary } from './bundProjectSummary';
|
||||||
|
|
||||||
|
|
||||||
export interface BundProjectPage {
|
export interface BundProjectPage {
|
||||||
/**
|
/**
|
||||||
* The current page number.
|
* The current page number.
|
||||||
@@ -28,4 +27,3 @@ export interface BundProjectPage {
|
|||||||
*/
|
*/
|
||||||
elements?: Array<BundProjectSummary>;
|
elements?: Array<BundProjectSummary>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
import { BundProjectHighlight } from './bundProjectHighlight';
|
||||||
import { Topic } from './topic';
|
import { Topic } from './topic';
|
||||||
import { BundInstitutionSummary } from './bundInstitutionSummary';
|
import { BundInstitutionSummary } from './bundInstitutionSummary';
|
||||||
|
|
||||||
|
|
||||||
export interface BundProjectSummary {
|
export interface BundProjectSummary {
|
||||||
funding_code?: string | null;
|
funding_code?: string | null;
|
||||||
department?: string | null;
|
department?: string | null;
|
||||||
@@ -25,7 +25,7 @@ export interface BundProjectSummary {
|
|||||||
place?: string | null;
|
place?: string | null;
|
||||||
state?: string | null;
|
state?: string | null;
|
||||||
country?: string | null;
|
country?: string | null;
|
||||||
implementing_agency?: string | null;
|
executing_agency?: string | null;
|
||||||
topic?: string | null;
|
topic?: string | null;
|
||||||
performance_plan_system?: string | null;
|
performance_plan_system?: string | null;
|
||||||
performance_plan_system_text?: string | null;
|
performance_plan_system_text?: string | null;
|
||||||
@@ -38,9 +38,9 @@ export interface BundProjectSummary {
|
|||||||
publication_date?: string | null;
|
publication_date?: string | null;
|
||||||
unix_timestamp?: number | null;
|
unix_timestamp?: number | null;
|
||||||
date?: string | null;
|
date?: string | null;
|
||||||
'new'?: boolean | null;
|
new?: boolean | null;
|
||||||
duration?: string | null;
|
duration?: string | null;
|
||||||
oa_topics?: Array<Topic> | null;
|
oa_topics?: Array<Topic> | null;
|
||||||
institution?: BundInstitutionSummary | null;
|
institution?: BundInstitutionSummary | null;
|
||||||
|
highlight?: BundProjectHighlight | 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 { DfgProjectTopic } from './dfgProjectTopic';
|
||||||
|
|
||||||
|
|
||||||
|
export interface BundProjectTopics {
|
||||||
|
institution_id: string;
|
||||||
|
organization_name: string;
|
||||||
|
project_count: number;
|
||||||
|
matched_project_count: number;
|
||||||
|
topics: Array<DfgProjectTopic>;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -12,7 +12,6 @@ import { Edge } from './edge';
|
|||||||
import { InstitutionNode } from './institutionNode';
|
import { InstitutionNode } from './institutionNode';
|
||||||
import { AuthorNode } from './authorNode';
|
import { AuthorNode } from './authorNode';
|
||||||
|
|
||||||
|
|
||||||
export interface CollaborationGraph {
|
export interface CollaborationGraph {
|
||||||
/**
|
/**
|
||||||
* The ID of the root author.
|
* The ID of the root author.
|
||||||
@@ -35,4 +34,3 @@ export interface CollaborationGraph {
|
|||||||
*/
|
*/
|
||||||
edges?: Array<Edge>;
|
edges?: Array<Edge>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,10 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export const CollaborationGraphStatus = {
|
export const CollaborationGraphStatus = {
|
||||||
Pending: 'pending',
|
Pending: 'pending',
|
||||||
Completed: 'completed',
|
Completed: 'completed',
|
||||||
Failed: 'failed'
|
Failed: 'failed',
|
||||||
} as const;
|
} as const;
|
||||||
export type CollaborationGraphStatus = typeof CollaborationGraphStatus[keyof typeof CollaborationGraphStatus];
|
export type CollaborationGraphStatus =
|
||||||
|
(typeof CollaborationGraphStatus)[keyof typeof CollaborationGraphStatus];
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
import { CollaborationGraph } from './collaborationGraph';
|
import { CollaborationGraph } from './collaborationGraph';
|
||||||
import { CollaborationGraphStatus } from './collaborationGraphStatus';
|
import { CollaborationGraphStatus } from './collaborationGraphStatus';
|
||||||
|
|
||||||
|
|
||||||
export interface CollaborationGraphStatusResponse {
|
export interface CollaborationGraphStatusResponse {
|
||||||
/**
|
/**
|
||||||
* The status of the collaboration graph.
|
* The status of the collaboration graph.
|
||||||
@@ -19,7 +18,4 @@ export interface CollaborationGraphStatusResponse {
|
|||||||
result?: CollaborationGraph | null;
|
result?: CollaborationGraph | null;
|
||||||
error_message?: string | null;
|
error_message?: string | null;
|
||||||
}
|
}
|
||||||
export namespace CollaborationGraphStatusResponse {
|
export namespace CollaborationGraphStatusResponse {}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CompanyConnectionsAvailability {
|
export interface CompanyConnectionsAvailability {
|
||||||
available: boolean;
|
available: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { CompanyConnection } from './companyConnection';
|
import { CompanyConnection } from './companyConnection';
|
||||||
|
|
||||||
|
|
||||||
export interface CompanyConnectionsResponse {
|
export interface CompanyConnectionsResponse {
|
||||||
author_id: string;
|
author_id: string;
|
||||||
display_name?: string | null;
|
display_name?: string | null;
|
||||||
@@ -19,4 +18,3 @@ export interface CompanyConnectionsResponse {
|
|||||||
common_name_warning: boolean;
|
common_name_warning: boolean;
|
||||||
connections?: Array<CompanyConnection>;
|
connections?: Array<CompanyConnection>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { UserRole } from './userRole';
|
import { UserRole } from './userRole';
|
||||||
|
|
||||||
|
|
||||||
export interface CreateAccountRequest {
|
export interface CreateAccountRequest {
|
||||||
email: string;
|
email: string;
|
||||||
name: string;
|
name: string;
|
||||||
@@ -18,4 +17,3 @@ export interface CreateAccountRequest {
|
|||||||
password: string;
|
password: string;
|
||||||
openalex_person_id?: string | null;
|
openalex_person_id?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreatePersonBookmark {
|
export interface CreatePersonBookmark {
|
||||||
person_name?: string | null;
|
person_name?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DFGProjectFachgebieteInner
|
* DFGProjectFachgebieteInner
|
||||||
*/
|
*/
|
||||||
@@ -22,4 +21,3 @@ export interface DFGProjectFachgebieteInner {
|
|||||||
wissenschaftsbereich?: string | null;
|
wissenschaftsbereich?: string | null;
|
||||||
wissenschaftsbereich_code?: string | null;
|
wissenschaftsbereich_code?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,10 +8,8 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface DashboardStatisticValue {
|
export interface DashboardStatisticValue {
|
||||||
institution_id: string;
|
institution_id: string;
|
||||||
organization_name: string;
|
organization_name: string;
|
||||||
value: number;
|
value: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface DashboardStatistics {
|
export interface DashboardStatistics {
|
||||||
institution_id: string;
|
institution_id: string;
|
||||||
organization_name: string;
|
organization_name: string;
|
||||||
@@ -19,4 +18,3 @@ export interface DashboardStatistics {
|
|||||||
eu_projects: number;
|
eu_projects: number;
|
||||||
bmbf_projects: number;
|
bmbf_projects: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A summary of a DFG institution.
|
* A summary of a DFG institution.
|
||||||
*/
|
*/
|
||||||
@@ -22,4 +21,3 @@ export interface DfgInstitutionSummary {
|
|||||||
address_country_de?: string | null;
|
address_country_de?: string | null;
|
||||||
address_country_en?: string | null;
|
address_country_en?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { DfgInstitutionSummary } from './dfgInstitutionSummary';
|
import { DfgInstitutionSummary } from './dfgInstitutionSummary';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A paginated response containing a list of institutions.
|
* A paginated response containing a list of institutions.
|
||||||
*/
|
*/
|
||||||
@@ -31,4 +30,3 @@ export interface DfgInstitutionSummaryPage {
|
|||||||
*/
|
*/
|
||||||
total?: number;
|
total?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { DfgInstitutionSummary } from './dfgInstitutionSummary';
|
import { DfgInstitutionSummary } from './dfgInstitutionSummary';
|
||||||
|
|
||||||
|
|
||||||
export interface DfgPersonSummary {
|
export interface DfgPersonSummary {
|
||||||
person_id: number;
|
person_id: number;
|
||||||
orcid_id?: string | null;
|
orcid_id?: string | null;
|
||||||
@@ -19,4 +18,3 @@ export interface DfgPersonSummary {
|
|||||||
role_label_de?: string | null;
|
role_label_de?: string | null;
|
||||||
institution?: DfgInstitutionSummary | null;
|
institution?: DfgInstitutionSummary | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { DfgPersonSummary } from './dfgPersonSummary';
|
import { DfgPersonSummary } from './dfgPersonSummary';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A paginated response containing a list of persons.
|
* A paginated response containing a list of persons.
|
||||||
*/
|
*/
|
||||||
@@ -31,4 +30,3 @@ export interface DfgPersonSummaryPage {
|
|||||||
*/
|
*/
|
||||||
total?: number;
|
total?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import { DFGProjectFachgebieteInner } from './dFGProjectFachgebieteInner';
|
|||||||
import { Topic } from './topic';
|
import { Topic } from './topic';
|
||||||
import { DfgProjectPublicationSummary } from './dfgProjectPublicationSummary';
|
import { DfgProjectPublicationSummary } from './dfgProjectPublicationSummary';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clean, enriched summary model for a DFG project.
|
* Clean, enriched summary model for a DFG project.
|
||||||
*/
|
*/
|
||||||
@@ -81,4 +80,3 @@ export interface DfgProjectDetails {
|
|||||||
publications?: Array<DfgProjectPublicationSummary>;
|
publications?: Array<DfgProjectPublicationSummary>;
|
||||||
topics?: Array<Topic> | null;
|
topics?: Array<Topic> | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 { DfgSubjectClassificationHighlight } from './dfgSubjectClassificationHighlight';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Highlighted fragments returned for a DFG project.
|
||||||
|
*/
|
||||||
|
export interface DfgProjectHighlight {
|
||||||
|
title_de?: Array<string>;
|
||||||
|
title_en?: Array<string>;
|
||||||
|
abstract_de?: Array<string>;
|
||||||
|
abstract_en?: Array<string>;
|
||||||
|
subject_classifications?: Array<DfgSubjectClassificationHighlight>;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An institution associated with the project, together with its role.
|
* An institution associated with the project, together with its role.
|
||||||
*/
|
*/
|
||||||
@@ -22,4 +21,3 @@ export interface DfgProjectInstitutionRole {
|
|||||||
is_dissolved?: boolean | null;
|
is_dissolved?: boolean | null;
|
||||||
is_head?: boolean | null;
|
is_head?: boolean | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,7 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface DfgProjectKeyword {
|
export interface DfgProjectKeyword {
|
||||||
name: string;
|
name: string;
|
||||||
project_count: number;
|
project_count: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A person associated with the project, together with their role.
|
* A person associated with the project, together with their role.
|
||||||
*/
|
*/
|
||||||
@@ -24,4 +23,3 @@ export interface DfgProjectPersonRole {
|
|||||||
is_deceased?: boolean | null;
|
is_deceased?: boolean | null;
|
||||||
is_head?: boolean | null;
|
is_head?: boolean | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A lightweight reference to a publication resulting from the project.
|
* A lightweight reference to a publication resulting from the project.
|
||||||
*/
|
*/
|
||||||
@@ -19,4 +18,3 @@ export interface DfgProjectPublicationSummary {
|
|||||||
doi?: string | null;
|
doi?: string | null;
|
||||||
publication_year?: number | null;
|
publication_year?: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface DfgProjectStatusStatistics {
|
export interface DfgProjectStatusStatistics {
|
||||||
institution_id: string;
|
institution_id: string;
|
||||||
organization_name: string;
|
organization_name: string;
|
||||||
@@ -16,4 +15,3 @@ export interface DfgProjectStatusStatistics {
|
|||||||
upcoming: number;
|
upcoming: number;
|
||||||
completed: number;
|
completed: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A lightweight reference to a sub-project of this project.
|
* A lightweight reference to a sub-project of this project.
|
||||||
*/
|
*/
|
||||||
@@ -23,4 +22,3 @@ export interface DfgProjectSubprojectSummary {
|
|||||||
funding_start?: number | null;
|
funding_start?: number | null;
|
||||||
funding_end?: number | null;
|
funding_end?: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
import { DfgInstitutionSummary } from './dfgInstitutionSummary';
|
import { DfgInstitutionSummary } from './dfgInstitutionSummary';
|
||||||
import { DFGProjectFachgebieteInner } from './dFGProjectFachgebieteInner';
|
import { DFGProjectFachgebieteInner } from './dFGProjectFachgebieteInner';
|
||||||
|
import { DfgProjectHighlight } from './dfgProjectHighlight';
|
||||||
import { Topic } from './topic';
|
import { Topic } from './topic';
|
||||||
import { DfgPersonSummary } from './dfgPersonSummary';
|
import { DfgPersonSummary } from './dfgPersonSummary';
|
||||||
|
|
||||||
@@ -19,8 +20,11 @@ export interface DfgProjectSummary {
|
|||||||
*/
|
*/
|
||||||
id: string;
|
id: string;
|
||||||
link?: string | null;
|
link?: string | null;
|
||||||
title?: string | null;
|
title_de?: string | null;
|
||||||
professional_classification?: string | null;
|
title_en?: string | null;
|
||||||
|
subject_classifications_raw?: string | null;
|
||||||
|
abstract_de?: string | null;
|
||||||
|
abstract_en?: string | null;
|
||||||
funding_start?: string | null;
|
funding_start?: string | null;
|
||||||
funding_end?: string | null;
|
funding_end?: string | null;
|
||||||
/**
|
/**
|
||||||
@@ -37,5 +41,6 @@ export interface DfgProjectSummary {
|
|||||||
persons?: Array<DfgPersonSummary>;
|
persons?: Array<DfgPersonSummary>;
|
||||||
subject_classifications?: Array<DFGProjectFachgebieteInner> | null;
|
subject_classifications?: Array<DFGProjectFachgebieteInner> | null;
|
||||||
topics?: Array<Topic> | null;
|
topics?: Array<Topic> | null;
|
||||||
|
highlight?: DfgProjectHighlight | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { DfgProjectKeyword } from './dfgProjectKeyword';
|
import { DfgProjectKeyword } from './dfgProjectKeyword';
|
||||||
|
|
||||||
|
|
||||||
export interface DfgProjectTopic {
|
export interface DfgProjectTopic {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
@@ -17,5 +16,7 @@ export interface DfgProjectTopic {
|
|||||||
field?: string | null;
|
field?: string | null;
|
||||||
domain?: string | null;
|
domain?: string | null;
|
||||||
project_count: number;
|
project_count: number;
|
||||||
|
field_project_count: number;
|
||||||
|
subfield_project_count: number;
|
||||||
keywords: Array<DfgProjectKeyword>;
|
keywords: Array<DfgProjectKeyword>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
import { DfgProjectTopic } from './dfgProjectTopic';
|
import { DfgProjectTopic } from './dfgProjectTopic';
|
||||||
|
|
||||||
|
|
||||||
export interface DfgProjectTopics {
|
export interface DfgProjectTopics {
|
||||||
institution_id: string;
|
institution_id: string;
|
||||||
organization_name: string;
|
organization_name: string;
|
||||||
@@ -17,4 +16,3 @@ export interface DfgProjectTopics {
|
|||||||
matched_project_count: number;
|
matched_project_count: number;
|
||||||
topics: Array<DfgProjectTopic>;
|
topics: Array<DfgProjectTopic>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
/**
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A highlighted nested subject classification.
|
||||||
|
*/
|
||||||
|
export interface DfgSubjectClassificationHighlight {
|
||||||
|
/**
|
||||||
|
* The keyword/inner_hits group which produced this match.
|
||||||
|
*/
|
||||||
|
query: string;
|
||||||
|
offset?: number | null;
|
||||||
|
fach?: Array<string>;
|
||||||
|
fachkollegium?: Array<string>;
|
||||||
|
fachgebiet?: Array<string>;
|
||||||
|
fachgebiet_de?: Array<string>;
|
||||||
|
wissenschaftsbereich?: Array<string>;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -8,9 +8,7 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface DockerHealth {
|
export interface DockerHealth {
|
||||||
reachable: boolean;
|
reachable: boolean;
|
||||||
detail: string;
|
detail: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface Edge {
|
export interface Edge {
|
||||||
/**
|
/**
|
||||||
* The ID of the source node.
|
* The ID of the source node.
|
||||||
@@ -23,4 +22,3 @@ export interface Edge {
|
|||||||
*/
|
*/
|
||||||
weight: number;
|
weight: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
/**
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Highlighted fragments returned by Elasticsearch.
|
||||||
|
*/
|
||||||
|
export interface EuCordisProjectHighlight {
|
||||||
|
title?: Array<string>;
|
||||||
|
acronym?: Array<string>;
|
||||||
|
objective?: Array<string>;
|
||||||
|
keywords?: Array<string>;
|
||||||
|
/**
|
||||||
|
* Highlighted fragments from the CORDIS topics text field.
|
||||||
|
*/
|
||||||
|
cordis_topic_text?: Array<string>;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
import { EuCordisTopicSummary } from './euCordisTopicSummary';
|
import { EuCordisTopicSummary } from './euCordisTopicSummary';
|
||||||
import { AuthorPage } from './authorPage';
|
import { AuthorPage } from './authorPage';
|
||||||
|
import { EuCordisProjectHighlight } from './euCordisProjectHighlight';
|
||||||
import { EuCordisEurosciVocSummary } from './euCordisEurosciVocSummary';
|
import { EuCordisEurosciVocSummary } from './euCordisEurosciVocSummary';
|
||||||
import { Topic } from './topic';
|
import { Topic } from './topic';
|
||||||
import { EuCordisOrganizationSummary } from './euCordisOrganizationSummary';
|
import { EuCordisOrganizationSummary } from './euCordisOrganizationSummary';
|
||||||
@@ -37,6 +38,8 @@ export interface EuCordisProjectSummary {
|
|||||||
* Mapped OpenAlex topics.
|
* Mapped OpenAlex topics.
|
||||||
*/
|
*/
|
||||||
topics?: Array<Topic>;
|
topics?: Array<Topic>;
|
||||||
|
cordis_topic_text?: string | null;
|
||||||
|
highlight?: EuCordisProjectHighlight | null;
|
||||||
}
|
}
|
||||||
export namespace EuCordisProjectSummary {
|
export namespace EuCordisProjectSummary {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import { HEUReportSummary } from './hEUReportSummary';
|
|||||||
import { Topic } from './topic';
|
import { Topic } from './topic';
|
||||||
import { HEUProjectDetails } from './hEUProjectDetails';
|
import { HEUProjectDetails } from './hEUProjectDetails';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The project data
|
* The project data
|
||||||
*/
|
*/
|
||||||
@@ -72,4 +71,3 @@ export interface EuProjectData {
|
|||||||
deliverableCount?: number;
|
deliverableCount?: number;
|
||||||
ercPiCount?: number;
|
ercPiCount?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface EuProjectStatusStatistics {
|
export interface EuProjectStatusStatistics {
|
||||||
institution_id: string;
|
institution_id: string;
|
||||||
organization_name: string;
|
organization_name: string;
|
||||||
@@ -16,4 +15,3 @@ export interface EuProjectStatusStatistics {
|
|||||||
upcoming: number;
|
upcoming: number;
|
||||||
completed: number;
|
completed: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 { DfgProjectTopic } from './dfgProjectTopic';
|
||||||
|
|
||||||
|
|
||||||
|
export interface EuProjectTopics {
|
||||||
|
institution_id: string;
|
||||||
|
organization_name: string;
|
||||||
|
project_count: number;
|
||||||
|
matched_project_count: number;
|
||||||
|
topics: Array<DfgProjectTopic>;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
/**
|
||||||
|
* 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 { SubfieldNode } from './subfieldNode';
|
||||||
|
|
||||||
|
export interface FieldNode {
|
||||||
|
/**
|
||||||
|
* The OpenAlex ID of the field.
|
||||||
|
*/
|
||||||
|
id: string;
|
||||||
|
/**
|
||||||
|
* The field display name.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* Number of works whose primary topic belongs to this field.
|
||||||
|
*/
|
||||||
|
count: number;
|
||||||
|
/**
|
||||||
|
* Subfields within this field, largest first.
|
||||||
|
*/
|
||||||
|
subfields?: Array<SubfieldNode>;
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user