Feature/multipliers frontend #321
@@ -472,7 +472,7 @@ One doc per focal author, `_id = <institution>_<author>` (same scheme as scores)
|
||||
|
||||
| field | content |
|
||||
|---|---|
|
||||
| `nodes[]` | `{id, name, role, inst, active_years, suspicious}`; role ∈ ego / mentee / cohort / industry / external |
|
||||
| `nodes[]` | `{id, name, role, inst, active_years, suspicious, company_insts?}`; role ∈ ego / mentee / cohort / industry / external. **`industry` is tie-level**: assigned only when a company affiliation of the neighbour appears on a work *shared with the ego* (matching what `industry_coauthor_share` counts), and `company_insts` names the triggering companies — a lifetime-flag version painted predominantly-academic people orange over a single old dual affiliation. `inst` is the author's most frequent institution. |
|
||||
| `edges[]` | `{a, b, w, n_works, cross, first_year, last_year}` — `w` = decayed tie strength, `cross` = mostly cross-institution |
|
||||
| `ego{}` | header duplicate (bucket, tags, sub_scores, max_sub_score) so a network endpoint renders standalone |
|
||||
| totals | `total_coauthors`, `cohort_coauthors`, `mentee_count`, `shown`, `shown_mentees` |
|
||||
|
||||
@@ -82,24 +82,42 @@ def main() -> None:
|
||||
f"({timings['load_cache_s']}s)")
|
||||
|
||||
# ---- single pass over works before they are freed: DOIs per focal author
|
||||
# (CORDIS join) + per-author institution label and company flag (network docs)
|
||||
# (CORDIS join), per-author institution counts (modal label), and per-WORK
|
||||
# company affiliations (tie-level industry roles in the network docs)
|
||||
focal_short_ids = {short_id(a) for a in focal_ids}
|
||||
max_authors = int(config["extraction"]["max_authors_per_work"])
|
||||
dois_by_author: dict[str, set[str]] = {}
|
||||
inst_by_author: dict[str, str] = {}
|
||||
company_authors: set[str] = set()
|
||||
inst_counts: dict[str, dict[str, int]] = {}
|
||||
company_by_author_work: dict[str, dict[str, list[str]]] = {}
|
||||
company_work_authors: dict[str, set[str]] = {}
|
||||
for w in works:
|
||||
doi = normalize_doi(w.get("doi"))
|
||||
wid = short_id(w.get("id"))
|
||||
work_authors: set[str] = set()
|
||||
work_companies: dict[str, list[str]] = {}
|
||||
for a in w.get("authorships") or []:
|
||||
aid = short_id((a.get("author") or {}).get("id"))
|
||||
if not aid:
|
||||
continue
|
||||
work_authors.add(aid)
|
||||
if doi and aid in focal_short_ids:
|
||||
dois_by_author.setdefault(aid, set()).add(doi)
|
||||
for inst in a.get("institutions") or []:
|
||||
if aid not in inst_by_author and inst.get("display_name"):
|
||||
inst_by_author[aid] = inst["display_name"]
|
||||
if inst.get("type") == "company":
|
||||
company_authors.add(aid)
|
||||
name = inst.get("display_name")
|
||||
if name:
|
||||
counts = inst_counts.setdefault(aid, {})
|
||||
counts[name] = counts.get(name, 0) + 1
|
||||
if inst.get("type") == "company":
|
||||
work_companies.setdefault(aid, []).append(name)
|
||||
# company evidence only for works that also enter the graph (same cap)
|
||||
if wid and work_companies and 2 <= len(work_authors) <= max_authors:
|
||||
company_work_authors[wid] = work_authors
|
||||
for aid, names in work_companies.items():
|
||||
company_by_author_work.setdefault(aid, {})[wid] = names
|
||||
inst_by_author = {
|
||||
aid: max(counts, key=counts.get) for aid, counts in inst_counts.items()
|
||||
}
|
||||
del inst_counts
|
||||
|
||||
# ---- graph ----
|
||||
t0 = time.time()
|
||||
@@ -196,7 +214,8 @@ def main() -> None:
|
||||
scored,
|
||||
incident_edges(graph),
|
||||
inst_by_author,
|
||||
company_authors,
|
||||
company_by_author_work,
|
||||
company_work_authors,
|
||||
max_nodes=int(network_cfg.get("max_nodes", 42)),
|
||||
max_forced_mentees=int(network_cfg.get("max_forced_mentees", 14)),
|
||||
)
|
||||
|
||||
@@ -41,7 +41,8 @@ def build_network_docs(
|
||||
scored_rows: list[dict[str, Any]],
|
||||
incident: dict[str, list],
|
||||
inst_by_author: dict[str, str],
|
||||
company_authors: set[str],
|
||||
company_by_author_work: dict[str, dict[str, list[str]]],
|
||||
company_work_authors: dict[str, set[str]],
|
||||
max_nodes: int = 42,
|
||||
max_forced_mentees: int = 14,
|
||||
) -> list[dict[str, Any]]:
|
||||
@@ -49,6 +50,16 @@ def build_network_docs(
|
||||
|
||||
metric_rows must still carry the FULL `junior_ids` (pre-scoring; the scored
|
||||
rows' evidence list is capped). scored_rows supply the ego header fields.
|
||||
|
||||
Industry roles are TIE-LEVEL, not lifetime: a neighbour is marked `industry`
|
||||
only if a company affiliation of theirs appears on a work SHARED with the ego
|
||||
— matching what `industry_coauthor_share` counts. (The first version flagged
|
||||
anyone who ever had a company affiliation anywhere in the corpus, which
|
||||
painted predominantly-academic people orange over one dual affiliation from
|
||||
years ago, with a university name in the tooltip contradicting the colour.)
|
||||
The triggering company names ship on the node as `company_insts`, and
|
||||
`inst_by_author` should be the author's MOST FREQUENT institution so the
|
||||
default label matches reality.
|
||||
"""
|
||||
scored_by_id = {r["author_id"]: r for r in scored_rows}
|
||||
docs: list[dict[str, Any]] = []
|
||||
@@ -71,26 +82,34 @@ def build_network_docs(
|
||||
nodes = []
|
||||
for nid in selected:
|
||||
node = graph.nodes[nid]
|
||||
# company evidence ON WORKS SHARED WITH THE EGO only
|
||||
shared_companies: set[str] = set()
|
||||
for wid, names in (company_by_author_work.get(nid) or {}).items():
|
||||
if ego_id in company_work_authors.get(wid, ()):
|
||||
shared_companies.update(names)
|
||||
if nid == ego_id:
|
||||
role = "ego"
|
||||
elif nid in mentees:
|
||||
role = "mentee"
|
||||
elif nid in company_authors and not node.is_focal:
|
||||
elif shared_companies and not node.is_focal:
|
||||
role = "industry"
|
||||
elif node.is_focal:
|
||||
role = "cohort"
|
||||
else:
|
||||
role = "external"
|
||||
nodes.append(
|
||||
{
|
||||
"id": nid,
|
||||
"name": node.display_name,
|
||||
"role": role,
|
||||
"inst": inst_by_author.get(nid, ""),
|
||||
"active_years": len(node.publication_years),
|
||||
"suspicious": is_suspicious_profile(node.publication_years),
|
||||
}
|
||||
)
|
||||
entry = {
|
||||
"id": nid,
|
||||
"name": node.display_name,
|
||||
"role": role,
|
||||
"inst": inst_by_author.get(nid, ""),
|
||||
"active_years": len(node.publication_years),
|
||||
"suspicious": is_suspicious_profile(node.publication_years),
|
||||
}
|
||||
if shared_companies:
|
||||
# the receipts for the industry colour (also kept on cohort/
|
||||
# mentee nodes so tooltips can show the industry link)
|
||||
entry["company_insts"] = sorted(shared_companies)
|
||||
nodes.append(entry)
|
||||
|
||||
# all corpus edges among the selected nodes — pair lookups against the
|
||||
# edge dict (~900 per ego), NOT a scan of the 5.8M-edge dict per ego
|
||||
|
||||
@@ -752,7 +752,7 @@ One doc per focal author, `_id = <institution>_<author>` (same scheme as scores)
|
||||
|
||||
| field | content |
|
||||
|---|---|
|
||||
| `nodes[]` | `{id, name, role, inst, active_years, suspicious}`; role ∈ ego / mentee / cohort / industry / external |
|
||||
| `nodes[]` | `{id, name, role, inst, active_years, suspicious, company_insts?}`; role ∈ ego / mentee / cohort / industry / external |
|
||||
| `edges[]` | `{a, b, w, n_works, cross, first_year, last_year}` — `w` = decayed tie strength, `cross` = mostly cross-institution |
|
||||
| `ego{}` | header duplicate (bucket, tags, sub_scores, max_sub_score) so a network endpoint renders standalone |
|
||||
| totals | `total_coauthors`, `cohort_coauthors`, `mentee_count`, `shown`, `shown_mentees` |
|
||||
@@ -765,6 +765,16 @@ the mentor score is about. Positions are NOT stored: the webapp's echarts `graph
|
||||
series (force layout) lays out at render time; map role → color, active_years →
|
||||
symbol size, `cross` → dashed line.
|
||||
|
||||
Role semantics (fixed 2026-08-29): `industry` is **ego-relative** — the node holds a
|
||||
company-typed affiliation on a work **shared with this ego**, and those company
|
||||
names are on the node as `company_insts` (present on any role: a mentee or cohort
|
||||
member with a company link keeps their role but still carries the names, and the
|
||||
ego's own company affiliations appear on the ego node). The previous global
|
||||
"has a company affiliation anywhere in the corpus" flag mislabeled people whose
|
||||
industry ties had nothing to do with the ego (audited: 2 of 6 industry nodes in
|
||||
I62318514_A5113304257). `inst` is the person's **most frequent** affiliation across
|
||||
their works, not first-seen. Focal cohort members are never `industry`.
|
||||
|
||||
`nodes`/`edges` are mapped `"enabled": false` (stored, never indexed) — the index
|
||||
stays small and fast for the queryable header fields (`institution_id`, `author_id`,
|
||||
`ego.tags`, `computed_at`, …). Skip building with `--no-network`.
|
||||
|
||||
@@ -32,7 +32,10 @@ from service.scripts.profiling.multipliers.founding import (
|
||||
from service.scripts.profiling.multipliers.graph import build_graph, short_id
|
||||
from service.scripts.profiling.multipliers.index import NETWORK_MAPPING, NETWORKS_INDEX, MultiplicatorsIndexClient
|
||||
from service.scripts.profiling.multipliers.metrics import compute_all_metrics, incident_edges
|
||||
from service.scripts.profiling.multipliers.networks import build_network_docs
|
||||
from service.scripts.profiling.multipliers.networks import (
|
||||
build_network_docs,
|
||||
collect_author_context,
|
||||
)
|
||||
from service.scripts.profiling.multipliers.scoring import load_config, score_rows
|
||||
from service.scripts.profiling.multipliers.signals import (
|
||||
cached_author_patent_profiles,
|
||||
@@ -100,24 +103,14 @@ def main() -> None:
|
||||
f"({timings['load_cache_s']}s)")
|
||||
|
||||
# ---- single pass over works before they are freed: DOIs (CORDIS join) +
|
||||
# per-author institution label and company flag (network docs) ----
|
||||
# per-author institution label and ego-relative company links (network docs)
|
||||
focal_short_ids = {short_id(a) for a in focal_ids}
|
||||
dois_by_author: dict[str, set[str]] = {}
|
||||
inst_by_author: dict[str, str] = {}
|
||||
company_authors: set[str] = set()
|
||||
for w in works:
|
||||
doi = normalize_doi(w.get("doi"))
|
||||
for a in w.get("authorships") or []:
|
||||
aid = short_id((a.get("author") or {}).get("id"))
|
||||
if not aid:
|
||||
continue
|
||||
if doi and aid in focal_short_ids:
|
||||
dois_by_author.setdefault(aid, set()).add(doi)
|
||||
for inst in a.get("institutions") or []:
|
||||
if aid not in inst_by_author and inst.get("display_name"):
|
||||
inst_by_author[aid] = inst["display_name"]
|
||||
if inst.get("type") == "company":
|
||||
company_authors.add(aid)
|
||||
dois_by_author, inst_by_author, company_links = collect_author_context(
|
||||
works,
|
||||
focal_short_ids,
|
||||
max_authors_per_work=config["extraction"]["max_authors_per_work"],
|
||||
doi_normalizer=normalize_doi,
|
||||
)
|
||||
|
||||
# ---- founder-model publication/grant features (works still in memory) ----
|
||||
pub_features: dict = {}
|
||||
@@ -286,7 +279,7 @@ def main() -> None:
|
||||
scored,
|
||||
incident_edges(graph),
|
||||
inst_by_author,
|
||||
company_authors,
|
||||
company_links,
|
||||
max_nodes=int(network_cfg.get("max_nodes", 42)),
|
||||
max_forced_mentees=int(network_cfg.get("max_forced_mentees", 14)),
|
||||
)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -11,22 +11,93 @@ visualization index".
|
||||
Node selection forces up to `max_forced_mentees` mentees in before the
|
||||
top-by-weight cut: mentee ties are decayed and team-size-divided, so a pure
|
||||
top-N hides exactly the people the mentor score is about.
|
||||
|
||||
The `industry` role is EGO-RELATIVE: a node is industry in this ego's network
|
||||
only if it has a company-typed affiliation on a work SHARED with the ego, and
|
||||
those company names are stored on the node as `company_insts`. A global
|
||||
"has a company affiliation anywhere in the corpus" flag mislabels people whose
|
||||
industry ties have nothing to do with this ego (measured: 2 of 6 industry
|
||||
nodes in the first audited network).
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
from typing import Any, Callable
|
||||
|
||||
from service.scripts.profiling.multipliers.graph import Graph
|
||||
from service.scripts.profiling.multipliers.graph import Graph, short_id
|
||||
from service.scripts.profiling.multipliers.metrics import is_suspicious_profile
|
||||
|
||||
|
||||
def collect_author_context(
|
||||
works: list[dict[str, Any]],
|
||||
focal_short_ids: set[str],
|
||||
max_authors_per_work: int = 50,
|
||||
doi_normalizer: Callable[[str | None], str | None] | None = None,
|
||||
) -> tuple[dict[str, set[str]], dict[str, str], dict[str, dict[str, set[str]]]]:
|
||||
"""One pass over the work extract -> (dois_by_author, inst_by_author, company_links).
|
||||
|
||||
dois_by_author focal author -> their work DOIs (CORDIS join); only
|
||||
collected when `doi_normalizer` is given.
|
||||
inst_by_author author -> their MOST FREQUENT institution display name
|
||||
across all their works (ties break lexicographically).
|
||||
First-seen selection showed minority affiliations.
|
||||
company_links focal ego -> {co-author -> company display names}, from
|
||||
company-typed affiliations the co-author holds ON WORKS
|
||||
SHARED with that ego. An ego's own company affiliations
|
||||
land under their own id. Works above
|
||||
`max_authors_per_work` are excluded, mirroring the graph's
|
||||
hyperauthorship cap — consortium papers are not
|
||||
collaboration evidence.
|
||||
"""
|
||||
dois_by_author: dict[str, set[str]] = {}
|
||||
inst_counts: dict[str, dict[str, int]] = {}
|
||||
company_links: dict[str, dict[str, set[str]]] = {}
|
||||
|
||||
for w in works:
|
||||
doi = doi_normalizer(w.get("doi")) if doi_normalizer else None
|
||||
seen: set[str] = set()
|
||||
focal_on_work: list[str] = []
|
||||
company_on_work: list[tuple[str, set[str]]] = []
|
||||
for a in w.get("authorships") or []:
|
||||
aid = short_id((a.get("author") or {}).get("id"))
|
||||
if not aid or aid in seen:
|
||||
continue
|
||||
seen.add(aid)
|
||||
if aid in focal_short_ids:
|
||||
focal_on_work.append(aid)
|
||||
if doi:
|
||||
dois_by_author.setdefault(aid, set()).add(doi)
|
||||
companies: set[str] = set()
|
||||
for inst in a.get("institutions") or []:
|
||||
name = inst.get("display_name")
|
||||
if not name:
|
||||
continue
|
||||
counts = inst_counts.setdefault(aid, {})
|
||||
counts[name] = counts.get(name, 0) + 1
|
||||
if inst.get("type") == "company":
|
||||
companies.add(name)
|
||||
if companies:
|
||||
company_on_work.append((aid, companies))
|
||||
|
||||
if company_on_work and 2 <= len(seen) <= max_authors_per_work:
|
||||
for ego in focal_on_work:
|
||||
links = company_links.setdefault(ego, {})
|
||||
for aid, companies in company_on_work:
|
||||
links.setdefault(aid, set()).update(companies)
|
||||
|
||||
inst_by_author = {
|
||||
aid: max(counts.items(), key=lambda kv: (kv[1], kv[0]))[0]
|
||||
for aid, counts in inst_counts.items()
|
||||
}
|
||||
return dois_by_author, inst_by_author, company_links
|
||||
|
||||
|
||||
def build_network_docs(
|
||||
graph: Graph,
|
||||
metric_rows: dict[str, dict[str, Any]],
|
||||
scored_rows: list[dict[str, Any]],
|
||||
incident: dict[str, list],
|
||||
inst_by_author: dict[str, str],
|
||||
company_authors: set[str],
|
||||
company_links: dict[str, dict[str, set[str]]],
|
||||
max_nodes: int = 42,
|
||||
max_forced_mentees: int = 14,
|
||||
) -> list[dict[str, Any]]:
|
||||
@@ -34,6 +105,7 @@ def build_network_docs(
|
||||
|
||||
metric_rows must still carry the FULL `junior_ids` (pre-scoring; the scored
|
||||
rows' evidence list is capped). scored_rows supply the ego header fields.
|
||||
`company_links` comes from `collect_author_context`.
|
||||
"""
|
||||
scored_by_id = {r["author_id"]: r for r in scored_rows}
|
||||
docs: list[dict[str, Any]] = []
|
||||
@@ -51,8 +123,8 @@ def build_network_docs(
|
||||
forced = set(mentee_picks)
|
||||
others = [n for n, _ in ranked if n not in forced]
|
||||
selected = [ego_id] + mentee_picks + others[: max_nodes - len(mentee_picks)]
|
||||
idset = set(selected)
|
||||
|
||||
ego_company = company_links.get(ego_id, {})
|
||||
nodes = []
|
||||
for nid in selected:
|
||||
node = graph.nodes[nid]
|
||||
@@ -60,22 +132,25 @@ def build_network_docs(
|
||||
role = "ego"
|
||||
elif nid in mentees:
|
||||
role = "mentee"
|
||||
elif nid in company_authors and not node.is_focal:
|
||||
elif nid in ego_company and not node.is_focal:
|
||||
role = "industry"
|
||||
elif node.is_focal:
|
||||
role = "cohort"
|
||||
else:
|
||||
role = "external"
|
||||
nodes.append(
|
||||
{
|
||||
"id": nid,
|
||||
"name": node.display_name,
|
||||
"role": role,
|
||||
"inst": inst_by_author.get(nid, ""),
|
||||
"active_years": len(node.publication_years),
|
||||
"suspicious": is_suspicious_profile(node.publication_years),
|
||||
}
|
||||
)
|
||||
node_doc = {
|
||||
"id": nid,
|
||||
"name": node.display_name,
|
||||
"role": role,
|
||||
"inst": inst_by_author.get(nid, ""),
|
||||
"active_years": len(node.publication_years),
|
||||
"suspicious": is_suspicious_profile(node.publication_years),
|
||||
}
|
||||
# which companies connect this person to the ego (present on every
|
||||
# role — a mentee or cohort member can hold a company link too)
|
||||
if nid in ego_company:
|
||||
node_doc["company_insts"] = sorted(ego_company[nid])
|
||||
nodes.append(node_doc)
|
||||
|
||||
# pair lookups against the edge dict (~900 per ego), NOT a scan of
|
||||
# the 5.8M-edge dict per ego
|
||||
|
||||
@@ -0,0 +1,140 @@
|
||||
"""Tests for the ego-network docs: ego-relative industry roles and company links.
|
||||
|
||||
Regression background (audit of I62318514_A5113304257): the old global
|
||||
"has a company affiliation anywhere in the corpus" flag marked 2 of 6 industry
|
||||
nodes whose company ties were on works NOT shared with the ego, and the
|
||||
first-seen `inst` label showed minority affiliations.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from service.scripts.profiling.multipliers.graph import build_graph
|
||||
from service.scripts.profiling.multipliers.metrics import incident_edges
|
||||
from service.scripts.profiling.multipliers.networks import (
|
||||
build_network_docs,
|
||||
collect_author_context,
|
||||
)
|
||||
|
||||
EGO, OTHER_EGO, COHORT, MENTEE = "E1", "F1", "C1", "M1"
|
||||
FOCAL = {EGO, OTHER_EGO, COHORT, MENTEE}
|
||||
X_SHARED_COMPANY = "X1" # company affiliation on a work shared with EGO
|
||||
Y_ELSEWHERE_COMPANY = "Y1" # company affiliation only on a work NOT shared with EGO
|
||||
|
||||
|
||||
def make_work(wid, authors, year=2024, doi=None):
|
||||
"""authors: list of (author_id, [(inst_name, inst_type), ...])."""
|
||||
return {
|
||||
"id": f"https://openalex.org/{wid}",
|
||||
"publication_year": year,
|
||||
"doi": doi,
|
||||
"authorships": [
|
||||
{
|
||||
"author": {"id": aid, "display_name": aid},
|
||||
"institutions": [
|
||||
{"id": f"I_{name}", "display_name": name, "type": typ}
|
||||
for name, typ in insts
|
||||
],
|
||||
}
|
||||
for aid, insts in authors
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
def fixture_works():
|
||||
return [
|
||||
# shared with EGO: X and the ego itself carry company affiliations here,
|
||||
# the mentee and a cohort member too (role precedence must still win)
|
||||
make_work(
|
||||
"W1",
|
||||
[
|
||||
(EGO, [("EgoCo", "company"), ("UDE", "education")]),
|
||||
(X_SHARED_COMPANY, [("Acme Corp", "company"), ("Uni A", "education")]),
|
||||
(MENTEE, [("UDE", "education"), ("MenteeCo", "company")]),
|
||||
(COHORT, [("UDE", "education"), ("Gamma AG", "company")]),
|
||||
],
|
||||
doi="https://doi.org/10.1/w1",
|
||||
),
|
||||
# shared with EGO, but Y has no company affiliation on it
|
||||
make_work("W2", [(EGO, [("UDE", "education")]), (Y_ELSEWHERE_COMPANY, [("Uni B", "education")])]),
|
||||
# Y's company affiliation lives on a work shared with OTHER_EGO only
|
||||
make_work(
|
||||
"W3",
|
||||
[
|
||||
(OTHER_EGO, [("UDE", "education")]),
|
||||
(Y_ELSEWHERE_COMPANY, [("Beta GmbH", "company"), ("Uni B", "education")]),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
def test_company_links_are_ego_relative():
|
||||
_, _, links = collect_author_context(fixture_works(), FOCAL)
|
||||
# X's company tie is on a work shared with EGO; Y's is not
|
||||
assert links[EGO][X_SHARED_COMPANY] == {"Acme Corp"}
|
||||
assert Y_ELSEWHERE_COMPANY not in links[EGO]
|
||||
# ...but it IS a company link for the ego whose work carries it
|
||||
assert links[OTHER_EGO][Y_ELSEWHERE_COMPANY] == {"Beta GmbH"}
|
||||
# the ego's own company affiliation lands under their own id
|
||||
assert links[EGO][EGO] == {"EgoCo"}
|
||||
|
||||
|
||||
def test_company_links_respect_the_hyperauthorship_cap():
|
||||
crowd = [(f"D{i}", [("UDE", "education")]) for i in range(60)]
|
||||
big = make_work("W9", [(EGO, [("UDE", "education")]),
|
||||
("Z1", [("Huge Inc", "company")])] + crowd)
|
||||
_, _, links = collect_author_context([big], FOCAL, max_authors_per_work=50)
|
||||
assert links == {}
|
||||
|
||||
|
||||
def test_inst_label_is_the_modal_affiliation():
|
||||
_, inst_by_author, _ = collect_author_context(fixture_works(), FOCAL)
|
||||
# Y appears with "Uni B" on both works -> modal, not first-seen
|
||||
assert inst_by_author[Y_ELSEWHERE_COMPANY] == "Uni B"
|
||||
assert inst_by_author[COHORT] == "UDE"
|
||||
|
||||
|
||||
def test_dois_collected_only_with_normalizer_and_only_for_focal():
|
||||
dois, _, _ = collect_author_context(
|
||||
fixture_works(), FOCAL, doi_normalizer=lambda d: d
|
||||
)
|
||||
assert EGO in dois and X_SHARED_COMPANY not in dois
|
||||
no_dois, _, _ = collect_author_context(fixture_works(), FOCAL)
|
||||
assert no_dois == {}
|
||||
|
||||
|
||||
def _docs():
|
||||
works = fixture_works()
|
||||
graph = build_graph(works, FOCAL)
|
||||
_, inst_by_author, company_links = collect_author_context(works, FOCAL)
|
||||
metric_rows = {
|
||||
EGO: {"junior_ids": [MENTEE]},
|
||||
OTHER_EGO: {"junior_ids": []},
|
||||
}
|
||||
scored_rows = [{"author_id": EGO}, {"author_id": OTHER_EGO}]
|
||||
docs = build_network_docs(
|
||||
graph, metric_rows, scored_rows, incident_edges(graph),
|
||||
inst_by_author, company_links,
|
||||
)
|
||||
return {d["author_id"]: {n["id"]: n for n in d["nodes"]} for d in docs}
|
||||
|
||||
|
||||
def test_industry_role_requires_company_link_on_shared_works():
|
||||
nodes = _docs()
|
||||
ego_net, other_net = nodes[EGO], nodes[OTHER_EGO]
|
||||
assert ego_net[X_SHARED_COMPANY]["role"] == "industry"
|
||||
assert ego_net[X_SHARED_COMPANY]["company_insts"] == ["Acme Corp"]
|
||||
# Y co-authored with EGO but their company tie is elsewhere -> external here
|
||||
assert ego_net[Y_ELSEWHERE_COMPANY]["role"] == "external"
|
||||
assert "company_insts" not in ego_net[Y_ELSEWHERE_COMPANY]
|
||||
# ...and industry in the network the tie actually belongs to
|
||||
assert other_net[Y_ELSEWHERE_COMPANY]["role"] == "industry"
|
||||
assert other_net[Y_ELSEWHERE_COMPANY]["company_insts"] == ["Beta GmbH"]
|
||||
|
||||
|
||||
def test_role_precedence_keeps_mentee_cohort_and_ego_but_carries_company_insts():
|
||||
ego_net = _docs()[EGO]
|
||||
assert ego_net[MENTEE]["role"] == "mentee"
|
||||
assert ego_net[MENTEE]["company_insts"] == ["MenteeCo"]
|
||||
assert ego_net[COHORT]["role"] == "cohort" # focal members are never industry
|
||||
assert ego_net[COHORT]["company_insts"] == ["Gamma AG"]
|
||||
assert ego_net[EGO]["role"] == "ego"
|
||||
assert ego_net[EGO]["company_insts"] == ["EgoCo"]
|
||||
@@ -93,7 +93,7 @@ class Settings(BaseSettings):
|
||||
environment: Literal["dev", "prod"] = "dev"
|
||||
|
||||
token_issuer_id: str | None = None
|
||||
token_hmac_key: str | None = None
|
||||
token_hmac_key: str | None = "92fb8c1e6f1e868567552e02cdd3693bca689d80a09ee13207b73ab53f42bb81"
|
||||
|
||||
skip_otk_validation: bool = True
|
||||
# SMTP / email config
|
||||
|
||||
@@ -8,6 +8,34 @@ class NotFoundException(Exception):
|
||||
super().__init__(message)
|
||||
|
||||
|
||||
class ResearcherDataUnavailableException(NotFoundException):
|
||||
"""Raised when no multiplicator document exists for an author.
|
||||
|
||||
The ``reason`` tells the client *why* the person is missing, so the UI can
|
||||
explain it instead of showing a generic error page:
|
||||
|
||||
``NOT_INDEXED`` the author belongs to the institution but the pipeline
|
||||
produced no document for them,
|
||||
``OTHER_INSTITUTION`` the author's current affiliations are elsewhere,
|
||||
``UNKNOWN_AUTHOR`` OpenAlex does not know the author at all.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
message: str,
|
||||
*,
|
||||
reason: str,
|
||||
author_id: str | None = None,
|
||||
display_name: str | None = None,
|
||||
author_institution: str | None = None,
|
||||
):
|
||||
super().__init__(message)
|
||||
self.reason = reason
|
||||
self.author_id = author_id
|
||||
self.display_name = display_name
|
||||
self.author_institution = author_institution
|
||||
|
||||
|
||||
class ElasticsearchException(Exception):
|
||||
"""Base exception for all Elasticsearch integrations."""
|
||||
|
||||
|
||||
@@ -108,6 +108,8 @@ def _index_to_cluster(index: ESIndex) -> ESCluster | None:
|
||||
ESIndex.DFG_PROJECTS_V2,
|
||||
ESIndex.DFG_INSTITUTES_V2,
|
||||
ESIndex.PROJECTS_DFG_OPENALEX_TOPICS,
|
||||
ESIndex.MULTIPLICATORS_V1,
|
||||
ESIndex.MULTIPLICATOR_NETWORKS_V1,
|
||||
}:
|
||||
return ESCluster.INSE
|
||||
else:
|
||||
|
||||
@@ -28,6 +28,7 @@ from inse.exceptions import (
|
||||
ElasticsearchException,
|
||||
MissingApiKeyError,
|
||||
NotFoundException,
|
||||
ResearcherDataUnavailableException,
|
||||
UpstreamAPIException,
|
||||
)
|
||||
from inse.funders.service import router as funders_service_router
|
||||
@@ -37,6 +38,7 @@ from inse.keywords.service import router as keywords_service_router
|
||||
|
||||
# caching
|
||||
from inse.middleware.etag_cache import ETagCacheMiddleware
|
||||
from inse.multiplicators.router import router as multiplicators_router
|
||||
from inse.news.service import router as news_service_router
|
||||
from inse.organization_management.router import router as organization_management_router
|
||||
from inse.patents.keywords.service import router as keywords_patents_router
|
||||
@@ -136,6 +138,7 @@ app.include_router(background_jobs_router)
|
||||
app.include_router(orgminer_router)
|
||||
|
||||
app.include_router(eu_organizations_router)
|
||||
app.include_router(multiplicators_router)
|
||||
app.add_middleware(
|
||||
ETagCacheMiddleware,
|
||||
ttl=600, # 10 minutes expiration time
|
||||
@@ -158,6 +161,23 @@ async def handle_not_found(request: Request, exc: NotFoundException):
|
||||
return JSONResponse(status_code=404, content={"message": str(exc)})
|
||||
|
||||
|
||||
@app.exception_handler(ResearcherDataUnavailableException)
|
||||
async def handle_researcher_unavailable(
|
||||
request: Request, exc: ResearcherDataUnavailableException
|
||||
):
|
||||
"""404 with a machine-readable reason, so the UI can explain the gap."""
|
||||
return JSONResponse(
|
||||
status_code=404,
|
||||
content={
|
||||
"message": str(exc),
|
||||
"reason": exc.reason,
|
||||
"author_id": exc.author_id,
|
||||
"display_name": exc.display_name,
|
||||
"author_institution": exc.author_institution,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@app.exception_handler(ElasticsearchException)
|
||||
async def handle_elasticsearch_error(request: Request, exc: ElasticsearchException):
|
||||
logger.error("Elasticsearch integration error: %s", str(exc))
|
||||
|
||||
@@ -123,7 +123,10 @@ class ESIndex(StrEnum):
|
||||
PROJECTS_CORDIS_EU_H2020_TOPICS = "projects_cordiseu_h2020_openalex_topics"
|
||||
PROJECTS_CORDIS_EU_HEUROPE_TOPICS = "projects_cordiseu_heurope_openalex_topics"
|
||||
PATENTS_OPENALEX_KEYWORDS = "patents_openalex_keywords"
|
||||
|
||||
|
||||
MULTIPLICATORS_V1 = "multiplicators_v1"
|
||||
MULTIPLICATOR_NETWORKS_V1 = "multiplicator_networks_v1"
|
||||
|
||||
UDE_ORGANIZATION_CONTENT = "ude_organization_content_august_2025_draft"
|
||||
TUD_ORGANIZATION_CONTENT = "tud_organization_content_test_genja"
|
||||
RUB_ORGANIZATION_CONTENT = "placeholder.."
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"model": "lightgbm_symmetric_founder_classifier_v2",
|
||||
"design": "symmetric landmark (see experiments/src/symmetric.py)",
|
||||
"reference_cohort_size": 9017,
|
||||
"reference_founders": 2349,
|
||||
"oof_roc_auc": 0.8659,
|
||||
"oof_pr_auc": 0.7257,
|
||||
"importance_metric": "mean ROC-AUC drop under feature permutation (out-of-fold)",
|
||||
"importances": [
|
||||
{
|
||||
"feature": "patent_research_area_n.",
|
||||
"importance_mean": 0.1044,
|
||||
"importance_std": 0.01
|
||||
},
|
||||
{
|
||||
"feature": "pub_rate",
|
||||
"importance_mean": 0.082,
|
||||
"importance_std": 0.0103
|
||||
},
|
||||
{
|
||||
"feature": "first_publication_year",
|
||||
"importance_mean": 0.0548,
|
||||
"importance_std": 0.006
|
||||
},
|
||||
{
|
||||
"feature": "industry_collab_at_index",
|
||||
"importance_mean": 0.0455,
|
||||
"importance_std": 0.0047
|
||||
},
|
||||
{
|
||||
"feature": "career_age_at_index",
|
||||
"importance_mean": 0.0303,
|
||||
"importance_std": 0.0061
|
||||
},
|
||||
{
|
||||
"feature": "patents_at_index",
|
||||
"importance_mean": 0.0279,
|
||||
"importance_std": 0.0037
|
||||
},
|
||||
{
|
||||
"feature": "patent_rate",
|
||||
"importance_mean": 0.0226,
|
||||
"importance_std": 0.0028
|
||||
},
|
||||
{
|
||||
"feature": "patent_research_area_46",
|
||||
"importance_mean": 0.0207,
|
||||
"importance_std": 0.0047
|
||||
},
|
||||
{
|
||||
"feature": "publication_research_area_32",
|
||||
"importance_mean": 0.015,
|
||||
"importance_std": 0.0027
|
||||
},
|
||||
{
|
||||
"feature": "years_since_first_grant",
|
||||
"importance_mean": 0.0091,
|
||||
"importance_std": 0.0028
|
||||
},
|
||||
{
|
||||
"feature": "grant_research_area_51",
|
||||
"importance_mean": 0.0084,
|
||||
"importance_std": 0.0018
|
||||
},
|
||||
{
|
||||
"feature": "institution_berkeley",
|
||||
"importance_mean": 0.0071,
|
||||
"importance_std": 0.0021
|
||||
}
|
||||
],
|
||||
"horizon_models": [
|
||||
{
|
||||
"horizon_years": 1,
|
||||
"model": "lightgbm_symmetric_p_within_1y_v2",
|
||||
"oof_roc_auc": 0.8614,
|
||||
"oof_pr_auc": 0.7154
|
||||
},
|
||||
{
|
||||
"horizon_years": 3,
|
||||
"model": "lightgbm_symmetric_p_within_3y_v2",
|
||||
"oof_roc_auc": 0.861,
|
||||
"oof_pr_auc": 0.7176
|
||||
},
|
||||
{
|
||||
"horizon_years": 5,
|
||||
"model": "lightgbm_symmetric_p_within_5y_v2",
|
||||
"oof_roc_auc": 0.8535,
|
||||
"oof_pr_auc": 0.7038
|
||||
}
|
||||
],
|
||||
"caveats": [
|
||||
"The top feature patent_research_area_n. is constant across this deployment's cohort (the patent corpus has no IPC-to-FOR mapping, so every patent research area is the unknown token) - it separated classes in training but separates nothing locally.",
|
||||
"Importances describe the trained model on its training distribution, not the local cohort.",
|
||||
"institution_* features were one-hot encoded in the research experiments; the production bundle drops them, so their listed importance does not apply to deployed scores."
|
||||
],
|
||||
"source": "service/scripts/profiling/founding_potential/results/rq1_symmetric/permutation_importance.csv + production/classifier_symmetric/manifest.json"
|
||||
}
|
||||
@@ -0,0 +1,581 @@
|
||||
"""Models for the multiplicator and founder-potential indices.
|
||||
|
||||
Two different ranking scales live in the same source document, and the field
|
||||
names here keep them apart:
|
||||
|
||||
*_external_percentile 0-100, ranked against a fixed reference cohort of
|
||||
academics at OTHER universities.
|
||||
*_peer_rank 0-1, ranked against same-university peers in the same
|
||||
career stage.
|
||||
"""
|
||||
|
||||
from enum import StrEnum
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
from inse.model import Page
|
||||
|
||||
# Dimensions FOR 2-digit division names, matching FOR_NAMES in
|
||||
# scripts/profiling/multipliers/founding_stats.py.
|
||||
FOR_DIVISION_NAMES: dict[str, str] = {
|
||||
"30": "Agricultural, Veterinary & Food Sciences",
|
||||
"31": "Biological Sciences",
|
||||
"32": "Biomedical & Clinical Sciences",
|
||||
"34": "Chemical Sciences",
|
||||
"35": "Commerce, Management, Tourism & Services",
|
||||
"36": "Creative Arts & Writing",
|
||||
"37": "Earth Sciences",
|
||||
"38": "Economics",
|
||||
"40": "Engineering",
|
||||
"41": "Environmental Sciences",
|
||||
"42": "Health Sciences",
|
||||
"44": "Human Society",
|
||||
"46": "Information & Computing Sciences",
|
||||
"49": "Mathematical Sciences",
|
||||
"51": "Physical Sciences",
|
||||
"52": "Psychology",
|
||||
"n.": "unknown / not classified",
|
||||
}
|
||||
|
||||
UNKNOWN_RESEARCH_AREA = "n."
|
||||
|
||||
|
||||
class CareerBucket(StrEnum):
|
||||
EARLY = "Early"
|
||||
EMERGING = "Emerging"
|
||||
ESTABLISHED = "Established"
|
||||
SENIOR = "Senior"
|
||||
|
||||
|
||||
CAREER_BUCKET_ORDER: list[CareerBucket] = [
|
||||
CareerBucket.EARLY,
|
||||
CareerBucket.EMERGING,
|
||||
CareerBucket.ESTABLISHED,
|
||||
CareerBucket.SENIOR,
|
||||
]
|
||||
|
||||
|
||||
class MultiplierTag(StrEnum):
|
||||
BRIDGER = "bridger"
|
||||
MENTOR = "mentor"
|
||||
AMPLIFIER = "amplifier"
|
||||
|
||||
|
||||
class PeerRankField(StrEnum):
|
||||
BRIDGER = "bridger"
|
||||
MENTOR = "mentor"
|
||||
AMPLIFIER = "amplifier"
|
||||
MAX = "max"
|
||||
|
||||
|
||||
class FounderSortBy(StrEnum):
|
||||
EXTERNAL_PERCENTILE = "external_percentile"
|
||||
WITHIN_1Y = "within_1y"
|
||||
WITHIN_3Y = "within_3y"
|
||||
WITHIN_5Y = "within_5y"
|
||||
PUBLICATIONS = "publications"
|
||||
PATENTS = "patents"
|
||||
ACTIVE_YEARS = "active_years"
|
||||
|
||||
|
||||
class ResearcherSortBy(StrEnum):
|
||||
BRIDGER = "bridger"
|
||||
MENTOR = "mentor"
|
||||
AMPLIFIER = "amplifier"
|
||||
MAX = "max"
|
||||
|
||||
|
||||
class FounderScreenReason(StrEnum):
|
||||
"""Why a researcher fails the data-quality screen."""
|
||||
|
||||
MERGED_PROFILE = "MERGED_PROFILE"
|
||||
IMPLAUSIBLE_CAREER_LENGTH = "IMPLAUSIBLE_CAREER_LENGTH"
|
||||
UNKNOWN_CAREER_LENGTH = "UNKNOWN_CAREER_LENGTH"
|
||||
THIN_PROFILE = "THIN_PROFILE"
|
||||
OUT_OF_POPULATION = "OUT_OF_POPULATION"
|
||||
|
||||
|
||||
class FunnelStageKey(StrEnum):
|
||||
ALL = "ALL"
|
||||
IN_POPULATION = "IN_POPULATION"
|
||||
NOT_SUSPICIOUS = "NOT_SUSPICIOUS"
|
||||
CAREER_AGE_PLAUSIBLE = "CAREER_AGE_PLAUSIBLE"
|
||||
MIN_PUBLICATIONS = "MIN_PUBLICATIONS"
|
||||
|
||||
|
||||
class ShowcaseKind(StrEnum):
|
||||
BRIDGER = "bridger"
|
||||
MENTOR = "mentor"
|
||||
AMPLIFIER = "amplifier"
|
||||
EXAMPLE = "example"
|
||||
|
||||
|
||||
class ResearcherUnavailableReason(StrEnum):
|
||||
"""Why no multiplicator document exists for a requested author."""
|
||||
|
||||
#: The author is an active member of this university, but the pipeline has
|
||||
#: no document for them yet.
|
||||
NOT_INDEXED = "NOT_INDEXED"
|
||||
#: The author's current affiliations are at other institutions.
|
||||
OTHER_INSTITUTION = "OTHER_INSTITUTION"
|
||||
#: OpenAlex has no author with this id.
|
||||
UNKNOWN_AUTHOR = "UNKNOWN_AUTHOR"
|
||||
|
||||
|
||||
class MultiplicatorsBase(BaseModel):
|
||||
"""Ignores unknown source keys so retired index fields never leak out."""
|
||||
|
||||
model_config = ConfigDict(extra="ignore")
|
||||
|
||||
|
||||
class MultiplierPeerRanks(MultiplicatorsBase):
|
||||
"""Sub-scores, 0-1, ranked within this university and career stage."""
|
||||
|
||||
bridger: float = Field(default=0.0, description="Bridger sub-score (0-1).")
|
||||
mentor: float = Field(default=0.0, description="Mentor sub-score (0-1).")
|
||||
amplifier: float = Field(default=0.0, description="Amplifier sub-score (0-1).")
|
||||
|
||||
|
||||
class MetricValue(MultiplicatorsBase):
|
||||
"""A raw metric next to its peer rank."""
|
||||
|
||||
raw: float | None = Field(
|
||||
default=None, description="The raw metric value in its own units."
|
||||
)
|
||||
peer_rank: float | None = Field(
|
||||
default=None,
|
||||
description=(
|
||||
"Rank of this metric (0-1) against same-university peers in the same "
|
||||
"career stage. Null when the metric does not feed any sub-score."
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
class FounderTiming(MultiplicatorsBase):
|
||||
"""Sequence-model timing estimate.
|
||||
|
||||
Only present when the models are applicable to this profile; when
|
||||
`timing_applicable` is false this whole object is null, because the estimate
|
||||
is anchored on a publication debut year that is unreliable for merged
|
||||
profiles and outside the 1-20 year career range the models were trained on.
|
||||
"""
|
||||
|
||||
predicted_founding_age: float | None = Field(
|
||||
default=None,
|
||||
description="How many years into a career this activity pattern looks like a founding moment.",
|
||||
)
|
||||
predicted_founding_age_cross_check: float | None = Field(
|
||||
default=None, description="The second model's estimate, as a cross-check."
|
||||
)
|
||||
years_to_founding: float | None = Field(
|
||||
default=None,
|
||||
description="predicted_founding_age minus current_career_age. <= 0 means the profile already looks founding-ready.",
|
||||
)
|
||||
|
||||
|
||||
class FounderPotential(MultiplicatorsBase):
|
||||
"""Founder-propensity model output for one researcher."""
|
||||
|
||||
external_percentile: float | None = Field(
|
||||
default=None,
|
||||
description=(
|
||||
"Rank (0-100) of this person's founder propensity against a fixed reference "
|
||||
"cohort of ~9,000 academics at other universities. NULL means the person is "
|
||||
"outside the model's scoring population - unscored, NOT zero. Never treat "
|
||||
"null as a low score."
|
||||
),
|
||||
)
|
||||
external_percentile_within_1y: float | None = Field(
|
||||
default=None, description="Same scale, for 'founds within 1 year of the index'."
|
||||
)
|
||||
external_percentile_within_3y: float | None = Field(
|
||||
default=None, description="Same scale, for 'founds within 3 years of the index'."
|
||||
)
|
||||
external_percentile_within_5y: float | None = Field(
|
||||
default=None, description="Same scale, for 'founds within 5 years of the index'."
|
||||
)
|
||||
in_reference_population: bool = Field(
|
||||
default=False,
|
||||
description=(
|
||||
"Whether the model considers this person scoreable (at least 4 publications). "
|
||||
"Below it the training classes come from clashing sampling frames and the "
|
||||
"scores are not evidence, so such people must not be ranked."
|
||||
),
|
||||
)
|
||||
timing_applicable: bool = Field(
|
||||
default=False,
|
||||
description="Whether the sequence timing models apply to this profile. When false, `timing` is null.",
|
||||
)
|
||||
current_career_age: int | None = Field(
|
||||
default=None,
|
||||
description="Scoring year minus first publication year.",
|
||||
)
|
||||
timing: FounderTiming | None = Field(
|
||||
default=None,
|
||||
description="Timing estimate; null when `timing_applicable` is false.",
|
||||
)
|
||||
as_of_year: int | None = Field(
|
||||
default=None,
|
||||
description="The scoring year - the corpus's newest publication year, not the wall clock.",
|
||||
)
|
||||
patent_source: str | None = Field(
|
||||
default=None,
|
||||
description=(
|
||||
"Which patent link quality fed the model's patent features. Scores computed "
|
||||
"under different sources are not comparable."
|
||||
),
|
||||
)
|
||||
classifier_model: str | None = Field(
|
||||
default=None, description="Which model bundle produced these numbers."
|
||||
)
|
||||
|
||||
|
||||
class FounderFeatures(MultiplicatorsBase):
|
||||
"""The exact input record the founder model saw, as coach-facing evidence."""
|
||||
|
||||
publications: int = Field(default=0, description="Lifetime publication count at the scoring year.")
|
||||
patents: int = Field(default=0, description="Patent count. 0 means 'nothing found', not 'provably none'.")
|
||||
grants: int = Field(default=0, description="Distinct grant ids acknowledged, raw.")
|
||||
grants_capped: float | None = Field(
|
||||
default=None,
|
||||
description="The de-inflated grant value the model effectively used (consortium lists inflate the raw count).",
|
||||
)
|
||||
industry_collab_papers: int = Field(
|
||||
default=0, description="Works co-authored with at least one company-affiliated author."
|
||||
)
|
||||
linked_patents_to_publications: int = Field(
|
||||
default=0,
|
||||
description="Always 0 here - this corpus has no patent-to-paper citation graph.",
|
||||
)
|
||||
first_publication_year: int | None = Field(default=None)
|
||||
first_patent_year: int | None = Field(default=None)
|
||||
first_grant_year: int | None = Field(default=None)
|
||||
publication_research_area: str | None = Field(
|
||||
default=None, description="Modal Dimensions FOR 2-digit division of the person's works."
|
||||
)
|
||||
publication_research_area_label: str | None = Field(
|
||||
default=None, description="Human-readable name for the code; null if the code is unknown."
|
||||
)
|
||||
grant_research_area: str | None = Field(
|
||||
default=None, description="Modal FOR division of the works the person's grants funded."
|
||||
)
|
||||
grant_research_area_label: str | None = Field(default=None)
|
||||
|
||||
|
||||
class FounderScreen(MultiplicatorsBase):
|
||||
"""Data-quality verdict for a founder candidate."""
|
||||
|
||||
passed: bool = Field(description="Whether the researcher passes every screen rule.")
|
||||
reasons: list[FounderScreenReason] = Field(
|
||||
default=[],
|
||||
description=(
|
||||
"Why the screen failed, in precedence order - reasons[0] is the headline "
|
||||
"reason. Empty when `passed` is true."
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
class ResearcherMetrics(MultiplicatorsBase):
|
||||
"""Raw multiplier metrics paired with their peer ranks."""
|
||||
|
||||
betweenness: MetricValue = Field(default_factory=MetricValue)
|
||||
brokerage: MetricValue = Field(default_factory=MetricValue)
|
||||
constraint: MetricValue = Field(default_factory=MetricValue)
|
||||
field_entropy: MetricValue = Field(default_factory=MetricValue)
|
||||
cross_institution_share: MetricValue = Field(default_factory=MetricValue)
|
||||
strength: MetricValue = Field(default_factory=MetricValue)
|
||||
n_coauthors: MetricValue = Field(default_factory=MetricValue)
|
||||
juniors_mentored: MetricValue = Field(default_factory=MetricValue)
|
||||
junior_progression_rate: MetricValue = Field(default_factory=MetricValue)
|
||||
mentoring_rate: MetricValue = Field(default_factory=MetricValue)
|
||||
last_author_with_junior_first: MetricValue = Field(default_factory=MetricValue)
|
||||
industry_coauthor_share: MetricValue = Field(default_factory=MetricValue)
|
||||
industry_coauthor_share_shrunk: MetricValue = Field(default_factory=MetricValue)
|
||||
patent_count: MetricValue = Field(default_factory=MetricValue)
|
||||
cordis_eu_projects: MetricValue = Field(default_factory=MetricValue)
|
||||
news_mentions: MetricValue = Field(default_factory=MetricValue)
|
||||
|
||||
|
||||
class ResearcherSummary(MultiplicatorsBase):
|
||||
"""Compact researcher row shared by the list endpoints."""
|
||||
|
||||
author_id: str = Field(description="OpenAlex author id, short form (e.g. A5087456839).")
|
||||
display_name: str | None = Field(default=None)
|
||||
career_bucket: CareerBucket | None = Field(
|
||||
default=None, description="Career stage; all peer ranks are computed within it."
|
||||
)
|
||||
active_years: int = Field(default=0, description="Distinct calendar years with at least one publication.")
|
||||
n_works: int = Field(default=0)
|
||||
suspicious_profile: bool = Field(
|
||||
default=False,
|
||||
description="Merged-identity heuristic (debut before 1970 or a span over 60 years). Treat evidence as low confidence.",
|
||||
)
|
||||
tags: list[MultiplierTag] = Field(
|
||||
default=[], description="Archetypes this person qualifies for; a person can hold 0-3."
|
||||
)
|
||||
multiplier_peer_ranks: MultiplierPeerRanks = Field(default_factory=MultiplierPeerRanks)
|
||||
max_multiplier_peer_rank: float = Field(
|
||||
default=0.0, description="Best of the three sub-scores (0-1)."
|
||||
)
|
||||
|
||||
|
||||
class FounderCandidate(ResearcherSummary):
|
||||
"""A researcher with their founder-potential block and screen verdict."""
|
||||
|
||||
founder_potential: FounderPotential = Field(default_factory=FounderPotential)
|
||||
founder_features: FounderFeatures = Field(default_factory=FounderFeatures)
|
||||
screen: FounderScreen
|
||||
|
||||
|
||||
class ResearcherDetail(ResearcherSummary):
|
||||
"""Everything the index holds for one researcher."""
|
||||
|
||||
institution_id: str = Field(description="The primary institution this document belongs to.")
|
||||
metrics: ResearcherMetrics = Field(default_factory=ResearcherMetrics)
|
||||
founder_potential: FounderPotential = Field(default_factory=FounderPotential)
|
||||
founder_features: FounderFeatures = Field(default_factory=FounderFeatures)
|
||||
computed_at: str | None = Field(default=None, description="When the pipeline last wrote this document.")
|
||||
config_hash: str | None = Field(
|
||||
default=None,
|
||||
description="Which scoring configuration produced these numbers. Scores are weight-dependent.",
|
||||
)
|
||||
|
||||
|
||||
class FounderCandidatePage(Page[FounderCandidate]):
|
||||
"""A paginated list of founder candidates."""
|
||||
|
||||
|
||||
class ResearcherSummaryPage(Page[ResearcherSummary]):
|
||||
"""A paginated list of researchers."""
|
||||
|
||||
|
||||
class EgoNetworkNode(MultiplicatorsBase):
|
||||
"""One person in an ego network. No layout coordinates - the client lays out."""
|
||||
|
||||
id: str = Field(description="OpenAlex author id, short form.")
|
||||
name: str | None = Field(default=None)
|
||||
role: str = Field(
|
||||
description=(
|
||||
"One of: ego, mentee, cohort, industry, external. `industry` is ego-relative: "
|
||||
"the person holds a company affiliation on a work shared with the ego (see "
|
||||
"`company_insts`). Typed as a string rather than an enum because the index is "
|
||||
"rebuilt independently of this API."
|
||||
)
|
||||
)
|
||||
inst: str | None = Field(
|
||||
default=None,
|
||||
description="The person's most frequent institution across their works.",
|
||||
)
|
||||
active_years: int = Field(default=0)
|
||||
suspicious: bool = Field(default=False)
|
||||
company_insts: list[str] | None = Field(
|
||||
default=None,
|
||||
description=(
|
||||
"Companies this person was affiliated with on works shared with the ego - "
|
||||
"the basis for the industry role. Present on any role: a mentee or cohort "
|
||||
"member with a company link keeps their role but still carries the names."
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
class EgoNetworkEdge(MultiplicatorsBase):
|
||||
"""A collaboration tie between two nodes."""
|
||||
|
||||
a: str = Field(description="First author id (lexicographically smaller).")
|
||||
b: str = Field(description="Second author id.")
|
||||
w: float = Field(default=0.0, description="Decayed, team-size-weighted collaboration strength.")
|
||||
n_works: int = Field(default=0, description="Raw shared-work count.")
|
||||
cross: bool = Field(default=False, description="Whether the tie is mostly cross-institution.")
|
||||
first_year: int | None = Field(default=None)
|
||||
last_year: int | None = Field(default=None)
|
||||
|
||||
|
||||
class EgoNetwork(MultiplicatorsBase):
|
||||
"""One researcher's ego co-author network.
|
||||
|
||||
Node and edge positions are deliberately absent: a force layout on the client
|
||||
(e.g. echarts' `graph` series) positions them at render time.
|
||||
"""
|
||||
|
||||
author_id: str
|
||||
display_name: str | None = Field(default=None)
|
||||
career_bucket: CareerBucket | None = Field(default=None)
|
||||
active_years: int = Field(default=0)
|
||||
n_works: int = Field(default=0)
|
||||
suspicious_profile: bool = Field(default=False)
|
||||
tags: list[MultiplierTag] = Field(default=[])
|
||||
multiplier_peer_ranks: MultiplierPeerRanks = Field(default_factory=MultiplierPeerRanks)
|
||||
max_multiplier_peer_rank: float = Field(default=0.0)
|
||||
total_coauthors: int = Field(default=0, description="All co-authors, not just the drawn ones.")
|
||||
cohort_coauthors: int = Field(default=0, description="Co-authors inside this university's cohort.")
|
||||
mentee_count: int = Field(default=0)
|
||||
shown: int = Field(default=0, description="How many co-authors are in `nodes` (excluding the ego).")
|
||||
shown_mentees: int = Field(default=0)
|
||||
nodes: list[EgoNetworkNode] = Field(
|
||||
default=[], description="nodes[0] is always the ego."
|
||||
)
|
||||
edges: list[EgoNetworkEdge] = Field(default=[])
|
||||
computed_at: str | None = Field(default=None)
|
||||
config_hash: str | None = Field(default=None)
|
||||
|
||||
|
||||
class ShowcaseEntry(MultiplicatorsBase):
|
||||
kind: ShowcaseKind = Field(
|
||||
description="Which archetype this person illustrates; 'example' is the top scorer who just misses the tag threshold."
|
||||
)
|
||||
researcher: ResearcherSummary
|
||||
|
||||
|
||||
class Showcase(MultiplicatorsBase):
|
||||
institution_id: str
|
||||
entries: list[ShowcaseEntry] = Field(
|
||||
default=[], description="Up to four entries; fewer if an archetype has no tagged people."
|
||||
)
|
||||
|
||||
|
||||
class FunnelStage(MultiplicatorsBase):
|
||||
"""One cumulative stage of the data-quality funnel."""
|
||||
|
||||
key: FunnelStageKey
|
||||
label: str = Field(description="Human-readable description of the rule applied at this stage.")
|
||||
count: int = Field(description="How many researchers survive this stage and every earlier one.")
|
||||
lost_from_previous: int = Field(default=0, description="How many the previous stage's set lost here.")
|
||||
share_of_total: float = Field(default=0.0, description="count divided by the stage-0 total (0-1).")
|
||||
|
||||
|
||||
class CareerStageStatistics(MultiplicatorsBase):
|
||||
"""Founder-score distribution for one career stage (or all of them)."""
|
||||
|
||||
career_bucket: str = Field(description="A career stage name, or 'ALL' for the whole cohort.")
|
||||
total: int = Field(default=0)
|
||||
in_population: int = Field(default=0, description="Scoreable researchers - the pool percentiles are drawn from.")
|
||||
screened: int = Field(default=0, description="How many pass the data-quality screen.")
|
||||
shortlist_plain: int = Field(default=0, description="At or above the percentile threshold.")
|
||||
shortlist_robust: int = Field(default=0, description="Also meeting the minimum publication count.")
|
||||
percentile_p50: float | None = Field(default=None, description="Median founder percentile (approximate).")
|
||||
percentile_p90: float | None = Field(default=None)
|
||||
above_75: int = Field(default=0)
|
||||
above_90: int = Field(default=0)
|
||||
robust_percentile_p50: float | None = Field(default=None)
|
||||
robust_percentile_p90: float | None = Field(default=None)
|
||||
robust_above_75: int = Field(default=0)
|
||||
robust_above_90: int = Field(default=0)
|
||||
|
||||
|
||||
class ResearchAreaStatistics(MultiplicatorsBase):
|
||||
"""How one research area is represented in the cohort versus the shortlist."""
|
||||
|
||||
code: str = Field(description="Dimensions FOR 2-digit division code.")
|
||||
label: str | None = Field(default=None, description="Human-readable name; null if the code is unknown.")
|
||||
cohort_count: int = Field(default=0)
|
||||
cohort_share: float = Field(default=0.0, description="Share of the scoreable cohort (0-1).")
|
||||
shortlist_count: int = Field(default=0)
|
||||
shortlist_share: float = Field(default=0.0)
|
||||
robust_count: int = Field(default=0)
|
||||
robust_share: float = Field(default=0.0)
|
||||
ratio: float | None = Field(
|
||||
default=None,
|
||||
description="shortlist_share / cohort_share. Above 1 means over-represented. Null when the area is absent from the cohort.",
|
||||
)
|
||||
|
||||
|
||||
class ArchetypeOverlap(MultiplicatorsBase):
|
||||
"""Overlap between one multiplier archetype and founder potential.
|
||||
|
||||
Counts are NOT mutually exclusive: a person holding two tags is counted under
|
||||
both, so these do not sum to the shortlist size.
|
||||
"""
|
||||
|
||||
tag: MultiplierTag
|
||||
shortlist_count: int = Field(default=0, description="Shortlisted people carrying this tag.")
|
||||
robust_count: int = Field(default=0)
|
||||
soft_shortlist_count: int = Field(
|
||||
default=0, description="Shortlisted people whose sub-score clears the softer threshold."
|
||||
)
|
||||
soft_robust_count: int = Field(default=0)
|
||||
tagged_in_population: int = Field(
|
||||
default=0, description="Scoreable people carrying this tag - the reverse direction."
|
||||
)
|
||||
tagged_percentile_p50: float | None = Field(default=None)
|
||||
tagged_percentile_p90: float | None = Field(default=None)
|
||||
tagged_above_band: int = Field(
|
||||
default=0, description="Tagged people at or above the `tagged_band` percentile."
|
||||
)
|
||||
|
||||
|
||||
class FounderStatisticsProvenance(MultiplicatorsBase):
|
||||
institution_id: str
|
||||
document_count: int = Field(description="Researchers indexed for this institution.")
|
||||
computed_at: str | None = Field(default=None, description="When the pipeline last ran.")
|
||||
config_hash: str | None = Field(default=None)
|
||||
as_of_year: int | None = Field(default=None)
|
||||
patent_sources: list[str] = Field(
|
||||
default=[], description="Distinct patent link qualities present in this cohort."
|
||||
)
|
||||
|
||||
|
||||
class FounderStatisticsParameters(MultiplicatorsBase):
|
||||
"""The cutoffs these statistics were computed with, echoed back."""
|
||||
|
||||
percentile_threshold: float
|
||||
min_publications: int
|
||||
soft_peer_rank_threshold: float
|
||||
max_career_age: int
|
||||
tagged_band: float
|
||||
|
||||
|
||||
class FounderStatistics(MultiplicatorsBase):
|
||||
"""Everything the founder dashboard needs, in one response."""
|
||||
|
||||
provenance: FounderStatisticsProvenance
|
||||
parameters: FounderStatisticsParameters
|
||||
funnel: list[FunnelStage] = Field(default=[])
|
||||
overall: CareerStageStatistics
|
||||
career_stages: list[CareerStageStatistics] = Field(default=[])
|
||||
research_areas: list[ResearchAreaStatistics] = Field(default=[])
|
||||
archetypes: list[ArchetypeOverlap] = Field(default=[])
|
||||
untagged_shortlist_count: int = Field(
|
||||
default=0, description="Shortlisted people carrying no archetype tag at all."
|
||||
)
|
||||
untagged_robust_count: int = Field(default=0)
|
||||
|
||||
|
||||
class FounderFeatureImportance(MultiplicatorsBase):
|
||||
feature: str
|
||||
importance_mean: float
|
||||
importance_std: float | None = Field(default=None)
|
||||
|
||||
|
||||
class FounderHorizonModel(MultiplicatorsBase):
|
||||
horizon_years: int
|
||||
model: str
|
||||
oof_roc_auc: float | None = Field(default=None)
|
||||
oof_pr_auc: float | None = Field(default=None)
|
||||
|
||||
|
||||
class FounderModelInfo(MultiplicatorsBase):
|
||||
"""Which model produced the founder scores, and what drives it.
|
||||
|
||||
These numbers describe the trained model itself, not any one university, so
|
||||
they are identical for every caller.
|
||||
"""
|
||||
|
||||
model_config = ConfigDict(extra="ignore", protected_namespaces=())
|
||||
|
||||
model: str = Field(description="The production model bundle name.")
|
||||
design: str | None = Field(default=None)
|
||||
reference_cohort_size: int | None = Field(
|
||||
default=None, description="Rows in the training/reference cohort."
|
||||
)
|
||||
reference_founders: int | None = Field(default=None)
|
||||
oof_roc_auc: float | None = Field(default=None, description="Out-of-fold ROC-AUC.")
|
||||
oof_pr_auc: float | None = Field(default=None, description="Out-of-fold PR-AUC.")
|
||||
importance_metric: str | None = Field(
|
||||
default=None, description="What the importance numbers measure."
|
||||
)
|
||||
importances: list[FounderFeatureImportance] = Field(default=[])
|
||||
horizon_models: list[FounderHorizonModel] = Field(default=[])
|
||||
caveats: list[str] = Field(
|
||||
default=[], description="Deployment caveats that must accompany these numbers."
|
||||
)
|
||||
source: str | None = Field(default=None, description="Where the numbers were exported from.")
|
||||
@@ -0,0 +1,296 @@
|
||||
"""Routes for the multiplicator and founder-potential indices.
|
||||
|
||||
Every data route is scoped to the university of the logged-in user's
|
||||
organization, taken from the access token - there is no institution parameter.
|
||||
"""
|
||||
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException, Path, Query, status
|
||||
|
||||
from inse.auth.model import AccessTokenMetadata
|
||||
from inse.auth.service import CurrentUserAccessTokenPayloadDep
|
||||
from inse.model import SortDirection
|
||||
from inse.router_prefixes import RouterPrefixes
|
||||
from inse.tags import Tags
|
||||
|
||||
from . import service
|
||||
from .model import (
|
||||
CareerBucket,
|
||||
EgoNetwork,
|
||||
FounderCandidatePage,
|
||||
FounderModelInfo,
|
||||
FounderSortBy,
|
||||
FounderStatistics,
|
||||
MultiplierTag,
|
||||
PeerRankField,
|
||||
ResearcherDetail,
|
||||
ResearcherSortBy,
|
||||
ResearcherSummaryPage,
|
||||
Showcase,
|
||||
)
|
||||
|
||||
router = APIRouter(prefix=RouterPrefixes.MULTIPLICATORS, tags=[Tags.MULTIPLICATORS])
|
||||
|
||||
|
||||
def _current_institution_id(
|
||||
access_token_metadata: Annotated[AccessTokenMetadata, CurrentUserAccessTokenPayloadDep],
|
||||
) -> str:
|
||||
"""The short OpenAlex institution id of the logged-in user's organization."""
|
||||
raw = access_token_metadata.effective_institution_id
|
||||
short = service.short_openalex_id(raw) if raw else ""
|
||||
if not short:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_403_FORBIDDEN,
|
||||
detail="No OpenAlex institution is assigned to the current organization.",
|
||||
)
|
||||
return short
|
||||
|
||||
|
||||
InstitutionIdDep = Annotated[str, Depends(_current_institution_id)]
|
||||
|
||||
_AUTHOR_ID_PATH = Path(
|
||||
description="The OpenAlex author id, short form (e.g. A5087456839) or full URL."
|
||||
)
|
||||
|
||||
|
||||
@router.get(
|
||||
"/founder-statistics",
|
||||
operation_id="getFounderStatistics",
|
||||
summary="Founder-potential statistics for the current user's university: data-quality funnel, "
|
||||
"score distributions per career stage, research-area composition and archetype overlap.",
|
||||
)
|
||||
async def get_founder_statistics(
|
||||
institution_id: InstitutionIdDep,
|
||||
percentile_threshold: Annotated[
|
||||
float,
|
||||
Query(
|
||||
description="Founder percentile (0-100) at or above which a researcher counts as shortlisted.",
|
||||
ge=0,
|
||||
le=100,
|
||||
),
|
||||
] = 90.0,
|
||||
min_publications: Annotated[
|
||||
int,
|
||||
Query(
|
||||
description="Minimum publication count for the robust shortlist and the funnel's last stage.",
|
||||
ge=0,
|
||||
),
|
||||
] = 7,
|
||||
soft_peer_rank_threshold: Annotated[
|
||||
float,
|
||||
Query(
|
||||
description="Sub-score (0-1) at or above which a shortlisted researcher counts as a soft archetype match.",
|
||||
ge=0,
|
||||
le=1,
|
||||
),
|
||||
] = 0.7,
|
||||
max_career_age: Annotated[
|
||||
int,
|
||||
Query(description="Career ages above this count as implausible in the screen.", ge=0),
|
||||
] = 40,
|
||||
tagged_band: Annotated[
|
||||
float,
|
||||
Query(
|
||||
description="Founder percentile band used in the reverse archetype view (how many tagged people exceed it).",
|
||||
ge=0,
|
||||
le=100,
|
||||
),
|
||||
] = 40.0,
|
||||
) -> FounderStatistics:
|
||||
return await service.get_founder_statistics(
|
||||
institution_id=institution_id,
|
||||
percentile_threshold=percentile_threshold,
|
||||
min_publications=min_publications,
|
||||
soft_peer_rank_threshold=soft_peer_rank_threshold,
|
||||
max_career_age=max_career_age,
|
||||
tagged_band=tagged_band,
|
||||
)
|
||||
|
||||
|
||||
@router.get(
|
||||
"/founders",
|
||||
operation_id="searchFounderCandidates",
|
||||
summary="Search the current university's researchers by founder potential.",
|
||||
)
|
||||
async def search_founder_candidates(
|
||||
institution_id: InstitutionIdDep,
|
||||
page: Annotated[int, Query(description="The page number to retrieve. (0-based)", ge=0)] = 0,
|
||||
size: Annotated[
|
||||
int, Query(description="The number of researchers to retrieve per page.", ge=1, le=100)
|
||||
] = 25,
|
||||
in_population: Annotated[
|
||||
bool | None,
|
||||
Query(
|
||||
description="Restrict to researchers the model can score (default). "
|
||||
"Pass false for the unscored, or leave unset for everyone."
|
||||
),
|
||||
] = True,
|
||||
min_external_percentile: Annotated[
|
||||
float | None,
|
||||
Query(description="Minimum founder percentile (0-100, vs the external reference cohort).", ge=0, le=100),
|
||||
] = None,
|
||||
max_external_percentile: Annotated[
|
||||
float | None, Query(description="Maximum founder percentile (0-100).", ge=0, le=100)
|
||||
] = None,
|
||||
career_bucket: Annotated[
|
||||
list[CareerBucket] | None, Query(description="Career stages to include.")
|
||||
] = None,
|
||||
screened: Annotated[
|
||||
bool | None,
|
||||
Query(
|
||||
description="true: only researchers passing the data-quality screen; "
|
||||
"false: only the rejects; unset: everyone."
|
||||
),
|
||||
] = None,
|
||||
min_publications: Annotated[
|
||||
int | None, Query(description="Minimum publication count.", ge=0)
|
||||
] = None,
|
||||
has_patents: Annotated[
|
||||
bool | None, Query(description="Whether the researcher has at least one patent.")
|
||||
] = None,
|
||||
research_area: Annotated[
|
||||
list[str] | None,
|
||||
Query(description="Dimensions FOR 2-digit division codes to include (e.g. 32, 40)."),
|
||||
] = None,
|
||||
tags: Annotated[
|
||||
list[MultiplierTag] | None,
|
||||
Query(description="Multiplier tags to include (any-of semantics)."),
|
||||
] = None,
|
||||
name: Annotated[
|
||||
str | None, Query(description="A name to filter by (prefix matches allowed).")
|
||||
] = None,
|
||||
screen_min_publications: Annotated[
|
||||
int, Query(description="Publication count below which the screen flags a thin profile.", ge=0)
|
||||
] = 7,
|
||||
screen_max_career_age: Annotated[
|
||||
int, Query(description="Career age above which the screen flags an implausible length.", ge=0)
|
||||
] = 40,
|
||||
sort_by: Annotated[
|
||||
FounderSortBy, Query(description="The field to sort by.")
|
||||
] = FounderSortBy.EXTERNAL_PERCENTILE,
|
||||
sort_order: Annotated[
|
||||
SortDirection, Query(description="The order to sort by.")
|
||||
] = SortDirection.DESCENDING,
|
||||
) -> FounderCandidatePage:
|
||||
return await service.search_founder_candidates(
|
||||
institution_id=institution_id,
|
||||
page=page,
|
||||
size=size,
|
||||
in_population=in_population,
|
||||
min_external_percentile=min_external_percentile,
|
||||
max_external_percentile=max_external_percentile,
|
||||
career_bucket=career_bucket,
|
||||
screened=screened,
|
||||
min_publications=min_publications,
|
||||
has_patents=has_patents,
|
||||
research_area=research_area,
|
||||
tags=tags,
|
||||
name=name,
|
||||
screen_min_publications=screen_min_publications,
|
||||
screen_max_career_age=screen_max_career_age,
|
||||
sort_by=sort_by,
|
||||
sort_order=sort_order,
|
||||
)
|
||||
|
||||
|
||||
@router.get(
|
||||
"/researchers",
|
||||
operation_id="searchMultiplicatorResearchers",
|
||||
summary="Search the current university's researchers by multiplier archetype "
|
||||
"(bridger / mentor / amplifier).",
|
||||
)
|
||||
async def search_researchers(
|
||||
institution_id: InstitutionIdDep,
|
||||
page: Annotated[int, Query(description="The page number to retrieve. (0-based)", ge=0)] = 0,
|
||||
size: Annotated[
|
||||
int, Query(description="The number of researchers to retrieve per page.", ge=1, le=100)
|
||||
] = 25,
|
||||
tags: Annotated[
|
||||
list[MultiplierTag] | None,
|
||||
Query(description="Multiplier tags to include (any-of semantics)."),
|
||||
] = None,
|
||||
career_bucket: Annotated[
|
||||
list[CareerBucket] | None, Query(description="Career stages to include.")
|
||||
] = None,
|
||||
min_peer_rank: Annotated[
|
||||
float | None,
|
||||
Query(description="Minimum sub-score (0-1, ranked against same-career-stage peers).", ge=0, le=1),
|
||||
] = None,
|
||||
peer_rank_field: Annotated[
|
||||
PeerRankField, Query(description="Which sub-score `min_peer_rank` applies to.")
|
||||
] = PeerRankField.MAX,
|
||||
suspicious_profile: Annotated[
|
||||
bool | None, Query(description="Filter by the merged-profile flag.")
|
||||
] = None,
|
||||
name: Annotated[
|
||||
str | None, Query(description="A name to filter by (prefix matches allowed).")
|
||||
] = None,
|
||||
sort_by: Annotated[
|
||||
ResearcherSortBy, Query(description="The sub-score to sort by.")
|
||||
] = ResearcherSortBy.MAX,
|
||||
sort_order: Annotated[
|
||||
SortDirection, Query(description="The order to sort by.")
|
||||
] = SortDirection.DESCENDING,
|
||||
) -> ResearcherSummaryPage:
|
||||
return await service.search_researchers(
|
||||
institution_id=institution_id,
|
||||
page=page,
|
||||
size=size,
|
||||
tags=tags,
|
||||
career_bucket=career_bucket,
|
||||
min_peer_rank=min_peer_rank,
|
||||
peer_rank_field=peer_rank_field,
|
||||
suspicious_profile=suspicious_profile,
|
||||
name=name,
|
||||
sort_by=sort_by,
|
||||
sort_order=sort_order,
|
||||
)
|
||||
|
||||
|
||||
@router.get(
|
||||
"/researchers/{author_id}",
|
||||
operation_id="getMultiplicatorResearcher",
|
||||
summary="Full multiplier and founder-potential detail for one researcher: every raw metric "
|
||||
"next to its peer rank, so a coach can see why the person scored what they scored.",
|
||||
)
|
||||
async def get_researcher(
|
||||
institution_id: InstitutionIdDep,
|
||||
author_id: Annotated[str, _AUTHOR_ID_PATH],
|
||||
) -> ResearcherDetail:
|
||||
return await service.get_researcher_detail(institution_id, author_id)
|
||||
|
||||
|
||||
@router.get(
|
||||
"/researchers/{author_id}/network",
|
||||
operation_id="getMultiplicatorResearcherNetwork",
|
||||
summary="One researcher's ego co-author network (nodes and edges, no layout - "
|
||||
"position them client-side with a force layout).",
|
||||
)
|
||||
async def get_researcher_network(
|
||||
institution_id: InstitutionIdDep,
|
||||
author_id: Annotated[str, _AUTHOR_ID_PATH],
|
||||
) -> EgoNetwork:
|
||||
return await service.get_researcher_network(institution_id, author_id)
|
||||
|
||||
|
||||
@router.get(
|
||||
"/showcase",
|
||||
operation_id="getMultiplicatorShowcase",
|
||||
summary="Four representative researchers: the top bridger, mentor and amplifier, "
|
||||
"plus the best scorer who just misses the tag threshold.",
|
||||
)
|
||||
async def get_showcase(institution_id: InstitutionIdDep) -> Showcase:
|
||||
return await service.get_showcase(institution_id)
|
||||
|
||||
|
||||
@router.get(
|
||||
"/founder-model-info",
|
||||
operation_id="getFounderModelInfo",
|
||||
summary="Which model produced the founder scores: performance and permutation "
|
||||
"importances. Identical for every university.",
|
||||
)
|
||||
async def get_founder_model_info(
|
||||
access_token_metadata: Annotated[AccessTokenMetadata, CurrentUserAccessTokenPayloadDep],
|
||||
) -> FounderModelInfo:
|
||||
return service.get_founder_model_info()
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,996 @@
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from inse.exceptions import (
|
||||
BadRequestException,
|
||||
NotFoundException,
|
||||
ResearcherDataUnavailableException,
|
||||
)
|
||||
from inse.integrations.elasticsearch import _index_to_cluster
|
||||
from inse.model import ESCluster, ESIndex, SortDirection
|
||||
|
||||
from . import service
|
||||
from .model import (
|
||||
CareerBucket,
|
||||
FounderScreenReason,
|
||||
FounderSortBy,
|
||||
MultiplierTag,
|
||||
PeerRankField,
|
||||
ResearcherSortBy,
|
||||
ResearcherUnavailableReason,
|
||||
ShowcaseKind,
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def anyio_backend():
|
||||
return "asyncio"
|
||||
|
||||
|
||||
INSTITUTION = "I62318514"
|
||||
|
||||
|
||||
def _empty_search_response(total: int = 0) -> dict:
|
||||
return {"hits": {"hits": [], "total": {"value": total}}}
|
||||
|
||||
|
||||
def _search_response(sources: list[dict], total: int | None = None) -> dict:
|
||||
return {
|
||||
"hits": {
|
||||
"hits": [{"_source": s} for s in sources],
|
||||
"total": {"value": total if total is not None else len(sources)},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Infrastructure
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_index_enums_route_to_the_inse_cluster():
|
||||
# Without this, every query silently targets the NES cluster and surfaces
|
||||
# as a 404 that looks like "no data for this institution".
|
||||
assert _index_to_cluster(ESIndex.MULTIPLICATORS_V1) == ESCluster.INSE
|
||||
assert _index_to_cluster(ESIndex.MULTIPLICATOR_NETWORKS_V1) == ESCluster.INSE
|
||||
|
||||
|
||||
def test_short_id_normalizes_full_openalex_url():
|
||||
assert service.short_openalex_id("https://openalex.org/I62318514") == "I62318514"
|
||||
assert service.short_openalex_id("https://openalex.org/I62318514/") == "I62318514"
|
||||
assert service.short_openalex_id("I62318514") == "I62318514"
|
||||
assert service.short_openalex_id(" A5087456839 ") == "A5087456839"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Screen: the ES filter and the Python verdict must agree
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def _doc(
|
||||
suspicious: bool = False,
|
||||
career_age: int | None = 10,
|
||||
publications: int = 20,
|
||||
in_population: bool = True,
|
||||
) -> dict:
|
||||
founding: dict = {"in_population": in_population}
|
||||
if career_age is not None:
|
||||
founding["current_career_age"] = career_age
|
||||
return {
|
||||
"suspicious_profile": suspicious,
|
||||
"founding": founding,
|
||||
"founding_features": {"publications": publications},
|
||||
}
|
||||
|
||||
|
||||
def _matches_screen_clauses(doc: dict, min_publications: int, max_career_age: int) -> bool:
|
||||
"""Evaluates the generated ES clauses in Python, clause semantics included
|
||||
(a range never matches a missing field)."""
|
||||
founding = doc.get("founding") or {}
|
||||
passes_not_suspicious = not doc.get("suspicious_profile")
|
||||
career_age = founding.get("current_career_age")
|
||||
passes_career = career_age is not None and career_age <= max_career_age
|
||||
passes_pubs = (doc.get("founding_features") or {}).get(
|
||||
"publications", 0
|
||||
) >= min_publications
|
||||
return passes_not_suspicious and passes_career and passes_pubs
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"doc",
|
||||
[
|
||||
_doc(), # clean
|
||||
_doc(suspicious=True),
|
||||
_doc(career_age=41),
|
||||
_doc(career_age=None),
|
||||
_doc(publications=3),
|
||||
_doc(suspicious=True, publications=3),
|
||||
_doc(suspicious=True, career_age=50, publications=1),
|
||||
_doc(in_population=False),
|
||||
],
|
||||
)
|
||||
def test_screen_filter_and_verdict_agree(doc):
|
||||
verdict = service.screen_verdict(doc, min_publications=7, max_career_age=40)
|
||||
es_passes = _matches_screen_clauses(doc, min_publications=7, max_career_age=40)
|
||||
# OUT_OF_POPULATION is a verdict-only annotation and not part of the ES
|
||||
# screen clauses (population filtering is its own query parameter).
|
||||
screen_reasons = [
|
||||
r for r in verdict.reasons if r != FounderScreenReason.OUT_OF_POPULATION
|
||||
]
|
||||
assert (not screen_reasons) == es_passes
|
||||
|
||||
|
||||
def test_screen_reason_precedence_matches_report():
|
||||
# "merged profile" outranks "only N papers", as in the reference dashboard.
|
||||
verdict = service.screen_verdict(
|
||||
_doc(suspicious=True, publications=3), min_publications=7, max_career_age=40
|
||||
)
|
||||
assert verdict.reasons[0] == FounderScreenReason.MERGED_PROFILE
|
||||
assert FounderScreenReason.THIN_PROFILE in verdict.reasons
|
||||
|
||||
verdict = service.screen_verdict(
|
||||
_doc(career_age=55, publications=3), min_publications=7, max_career_age=40
|
||||
)
|
||||
assert verdict.reasons[0] == FounderScreenReason.IMPLAUSIBLE_CAREER_LENGTH
|
||||
|
||||
|
||||
def test_screen_unknown_career_length_is_distinct():
|
||||
verdict = service.screen_verdict(_doc(career_age=None), min_publications=7, max_career_age=40)
|
||||
assert verdict.reasons == [FounderScreenReason.UNKNOWN_CAREER_LENGTH]
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# /founders
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founders_builds_expected_filter_clauses():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_empty_search_response()),
|
||||
) as search:
|
||||
await service.search_founder_candidates(
|
||||
INSTITUTION,
|
||||
min_external_percentile=90,
|
||||
career_bucket=[CareerBucket.EMERGING],
|
||||
screened=True,
|
||||
has_patents=True,
|
||||
research_area=["32"],
|
||||
tags=[MultiplierTag.MENTOR],
|
||||
name="Pak",
|
||||
)
|
||||
|
||||
query = search.await_args.kwargs["query"]
|
||||
filters = query["bool"]["filter"]
|
||||
assert {"term": {"institution_id": INSTITUTION}} in filters
|
||||
assert {"term": {"founding.in_population": True}} in filters
|
||||
assert {"range": {"founding.percentile": {"gte": 90}}} in filters
|
||||
assert {"terms": {"career_bucket": ["Emerging"]}} in filters
|
||||
assert {"range": {"founding_features.patents": {"gte": 1}}} in filters
|
||||
assert {"terms": {"founding_features.publication_research_area": ["32"]}} in filters
|
||||
assert {"terms": {"tags": ["mentor"]}} in filters
|
||||
# the three screen clauses
|
||||
assert {"bool": {"must_not": [{"term": {"suspicious_profile": True}}]}} in filters
|
||||
assert {"range": {"founding.current_career_age": {"lte": 40}}} in filters
|
||||
assert {"range": {"founding_features.publications": {"gte": 7}}} in filters
|
||||
assert query["bool"]["must"] == [{"match_phrase_prefix": {"display_name": "Pak"}}]
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founders_screened_false_returns_the_rejects_clause():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_empty_search_response()),
|
||||
) as search:
|
||||
await service.search_founder_candidates(INSTITUTION, screened=False)
|
||||
|
||||
filters = search.await_args.kwargs["query"]["bool"]["filter"]
|
||||
rejects = [f for f in filters if "should" in f.get("bool", {})]
|
||||
assert len(rejects) == 1
|
||||
should = rejects[0]["bool"]["should"]
|
||||
assert rejects[0]["bool"]["minimum_should_match"] == 1
|
||||
# each option negates one screen clause
|
||||
assert len(should) == 3
|
||||
assert all("must_not" in option["bool"] for option in should)
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founders_sort_uses_missing_last_and_author_id_tiebreaker():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_empty_search_response()),
|
||||
) as search:
|
||||
await service.search_founder_candidates(
|
||||
INSTITUTION, sort_by=FounderSortBy.WITHIN_3Y, sort_order=SortDirection.ASCENDING
|
||||
)
|
||||
|
||||
assert search.await_args.kwargs["sort"] == [
|
||||
{"founding.p_within_3y_percentile": {"order": "asc", "missing": "_last"}},
|
||||
{"author_id": {"order": "asc"}},
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founders_out_of_population_percentile_stays_null():
|
||||
source = {
|
||||
"author_id": "A1",
|
||||
"display_name": "Test Person",
|
||||
"career_bucket": "Early",
|
||||
"founding": {"in_population": False},
|
||||
"founding_features": {"publications": 2},
|
||||
}
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_search_response([source])),
|
||||
):
|
||||
page = await service.search_founder_candidates(INSTITUTION, in_population=None)
|
||||
|
||||
candidate = page.elements[0]
|
||||
assert candidate.founder_potential.external_percentile is None # null, not 0.0
|
||||
assert candidate.founder_potential.in_reference_population is False
|
||||
assert FounderScreenReason.OUT_OF_POPULATION in candidate.screen.reasons
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_pagination_beyond_max_result_window_raises_bad_request():
|
||||
with pytest.raises(BadRequestException):
|
||||
await service.search_founder_candidates(INSTITUTION, page=101, size=100)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# /researchers
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_researchers_min_peer_rank_targets_selected_field():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_empty_search_response()),
|
||||
) as search:
|
||||
await service.search_researchers(
|
||||
INSTITUTION,
|
||||
min_peer_rank=0.7,
|
||||
peer_rank_field=PeerRankField.BRIDGER,
|
||||
sort_by=ResearcherSortBy.MENTOR,
|
||||
)
|
||||
|
||||
filters = search.await_args.kwargs["query"]["bool"]["filter"]
|
||||
assert {"range": {"sub_scores.bridger": {"gte": 0.7}}} in filters
|
||||
assert search.await_args.kwargs["sort"][0] == {
|
||||
"sub_scores.mentor": {"order": "desc", "missing": "_last"}
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_researchers_default_peer_rank_field_is_max():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_empty_search_response()),
|
||||
) as search:
|
||||
await service.search_researchers(INSTITUTION, min_peer_rank=0.5)
|
||||
|
||||
filters = search.await_args.kwargs["query"]["bool"]["filter"]
|
||||
assert {"range": {"max_sub_score": {"gte": 0.5}}} in filters
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Detail + network (_doc lookups)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def _detail_source() -> dict:
|
||||
return {
|
||||
"institution_id": INSTITUTION,
|
||||
"author_id": "A5113304257",
|
||||
"display_name": "Test Person",
|
||||
"career_bucket": "Senior",
|
||||
"active_years": 20,
|
||||
"n_works": 150,
|
||||
"suspicious_profile": False,
|
||||
"tags": ["mentor"],
|
||||
"sub_scores": {"bridger": 0.5, "mentor": 0.9, "amplifier": 0.3},
|
||||
"max_sub_score": 0.9,
|
||||
"betweenness": 0.012,
|
||||
"juniors_mentored": 14,
|
||||
"percentiles": {"betweenness": 0.88, "juniors_mentored": 0.95},
|
||||
"founding": {
|
||||
"percentile": 55.2,
|
||||
"in_population": True,
|
||||
"timing_applicable": False,
|
||||
"predicted_founding_age": 8.5,
|
||||
"years_to_founding": -3.1,
|
||||
"current_career_age": 25,
|
||||
# retired v1 fields still present in old documents:
|
||||
"probability": 0.996,
|
||||
"applicable": True,
|
||||
"p_within_2y": 1.0,
|
||||
"models_agree": True,
|
||||
},
|
||||
"founding_features": {
|
||||
"publications": 150,
|
||||
"patents": 2,
|
||||
"publication_research_area": "32",
|
||||
"h_index": 40, # retired v1 field
|
||||
},
|
||||
"computed_at": "2026-08-07T00:00:00Z",
|
||||
"config_hash": "abc123",
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_researcher_detail_uses_doc_get_with_composite_id():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": True, "_source": _detail_source()}),
|
||||
) as get:
|
||||
detail = await service.get_researcher_detail(
|
||||
INSTITUTION, "https://openalex.org/A5113304257"
|
||||
)
|
||||
|
||||
assert get.await_args.args[:2] == (
|
||||
ESIndex.MULTIPLICATORS_V1,
|
||||
f"{INSTITUTION}_A5113304257",
|
||||
)
|
||||
assert detail.author_id == "A5113304257"
|
||||
assert detail.career_bucket == CareerBucket.SENIOR
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_researcher_detail_omits_retired_v1_fields():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": True, "_source": _detail_source()}),
|
||||
):
|
||||
detail = await service.get_researcher_detail(INSTITUTION, "A5113304257")
|
||||
|
||||
dumped = detail.model_dump()
|
||||
as_text = str(dumped)
|
||||
assert "probability" not in as_text
|
||||
assert "p_within_2y" not in as_text
|
||||
assert "models_agree" not in as_text
|
||||
assert "h_index" not in as_text
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_researcher_detail_timing_block_is_null_when_not_applicable():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": True, "_source": _detail_source()}),
|
||||
):
|
||||
detail = await service.get_researcher_detail(INSTITUTION, "A5113304257")
|
||||
|
||||
assert detail.founder_potential.timing_applicable is False
|
||||
assert detail.founder_potential.timing is None
|
||||
assert detail.founder_potential.current_career_age == 25 # still visible
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_researcher_detail_pairs_raw_metrics_with_peer_ranks():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": True, "_source": _detail_source()}),
|
||||
):
|
||||
detail = await service.get_researcher_detail(INSTITUTION, "A5113304257")
|
||||
|
||||
assert detail.metrics.betweenness.raw == 0.012
|
||||
assert detail.metrics.betweenness.peer_rank == 0.88
|
||||
assert detail.metrics.juniors_mentored.raw == 14
|
||||
assert detail.metrics.juniors_mentored.peer_rank == 0.95
|
||||
# a metric absent from the doc stays fully null
|
||||
assert detail.metrics.patent_count.raw is None
|
||||
assert detail.metrics.patent_count.peer_rank is None
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_researcher_detail_rejects_document_from_another_institution():
|
||||
source = {**_detail_source(), "institution_id": "I999"}
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": True, "_source": source}),
|
||||
):
|
||||
with pytest.raises(NotFoundException):
|
||||
await service.get_researcher_detail(INSTITUTION, "A5113304257")
|
||||
|
||||
|
||||
def _author(author_id: str = "A5113304257", institutions: list[str] | None = None):
|
||||
from inse.models.openalex.author import Author
|
||||
|
||||
return Author(
|
||||
id=f"https://openalex.org/{author_id}",
|
||||
display_name="Test Person",
|
||||
last_known_institutions=[
|
||||
{"id": f"https://openalex.org/I{index}", "display_name": name}
|
||||
for index, name in enumerate(institutions or [])
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_missing_detail_reports_author_of_another_institution():
|
||||
with (
|
||||
patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": False}),
|
||||
),
|
||||
patch(
|
||||
"inse.multiplicators.service.get_author_by_id",
|
||||
new=AsyncMock(return_value=_author(institutions=["TU Berlin"])),
|
||||
),
|
||||
patch(
|
||||
"inse.multiplicators.service.author_currently_belongs_to_institution",
|
||||
new=AsyncMock(return_value=False),
|
||||
),
|
||||
):
|
||||
with pytest.raises(ResearcherDataUnavailableException) as excinfo:
|
||||
await service.get_researcher_detail(INSTITUTION, "A5113304257")
|
||||
|
||||
exc = excinfo.value
|
||||
assert exc.reason == ResearcherUnavailableReason.OTHER_INSTITUTION
|
||||
assert exc.author_institution == "TU Berlin"
|
||||
assert exc.display_name == "Test Person"
|
||||
assert exc.author_id == "A5113304257"
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_missing_detail_reports_member_that_was_never_indexed():
|
||||
with (
|
||||
patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": False}),
|
||||
),
|
||||
patch(
|
||||
"inse.multiplicators.service.get_author_by_id",
|
||||
new=AsyncMock(return_value=_author()),
|
||||
),
|
||||
patch(
|
||||
"inse.multiplicators.service.author_currently_belongs_to_institution",
|
||||
new=AsyncMock(return_value=True),
|
||||
),
|
||||
):
|
||||
with pytest.raises(ResearcherDataUnavailableException) as excinfo:
|
||||
await service.get_researcher_detail(INSTITUTION, "A5113304257")
|
||||
|
||||
assert excinfo.value.reason == ResearcherUnavailableReason.NOT_INDEXED
|
||||
assert excinfo.value.author_institution is None
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_missing_detail_treats_listed_member_as_not_indexed():
|
||||
"""A long-retired member fails the activity check but still lists UDE."""
|
||||
from inse.models.openalex.author import Author
|
||||
|
||||
author = Author(
|
||||
id="https://openalex.org/A5113304257",
|
||||
display_name="Test Person",
|
||||
last_known_institutions=[
|
||||
{
|
||||
"id": f"https://openalex.org/{INSTITUTION}",
|
||||
"display_name": "Universität Duisburg-Essen",
|
||||
}
|
||||
],
|
||||
)
|
||||
with (
|
||||
patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": False}),
|
||||
),
|
||||
patch(
|
||||
"inse.multiplicators.service.get_author_by_id",
|
||||
new=AsyncMock(return_value=author),
|
||||
),
|
||||
patch(
|
||||
"inse.multiplicators.service.author_currently_belongs_to_institution",
|
||||
new=AsyncMock(return_value=False),
|
||||
),
|
||||
):
|
||||
with pytest.raises(ResearcherDataUnavailableException) as excinfo:
|
||||
await service.get_researcher_detail(INSTITUTION, "A5113304257")
|
||||
|
||||
assert excinfo.value.reason == ResearcherUnavailableReason.NOT_INDEXED
|
||||
assert excinfo.value.author_institution is None
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_missing_detail_reports_unknown_author():
|
||||
with (
|
||||
patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": False}),
|
||||
),
|
||||
patch(
|
||||
"inse.multiplicators.service.get_author_by_id",
|
||||
new=AsyncMock(return_value=None),
|
||||
),
|
||||
):
|
||||
with pytest.raises(ResearcherDataUnavailableException) as excinfo:
|
||||
await service.get_researcher_detail(INSTITUTION, "A0000000000")
|
||||
|
||||
assert excinfo.value.reason == ResearcherUnavailableReason.UNKNOWN_AUTHOR
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_missing_detail_survives_a_broken_author_lookup():
|
||||
with (
|
||||
patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": False}),
|
||||
),
|
||||
patch(
|
||||
"inse.multiplicators.service.get_author_by_id",
|
||||
new=AsyncMock(side_effect=RuntimeError("author index unavailable")),
|
||||
),
|
||||
):
|
||||
with pytest.raises(NotFoundException) as excinfo:
|
||||
await service.get_researcher_detail(INSTITUTION, "A5113304257")
|
||||
|
||||
assert isinstance(excinfo.value, ResearcherDataUnavailableException)
|
||||
assert excinfo.value.reason == ResearcherUnavailableReason.UNKNOWN_AUTHOR
|
||||
|
||||
|
||||
def test_unavailable_researcher_maps_to_a_structured_404():
|
||||
"""The specific handler must win over the generic NotFoundException one."""
|
||||
from starlette.applications import Starlette
|
||||
from starlette.requests import Request
|
||||
from starlette.routing import Route
|
||||
from starlette.testclient import TestClient
|
||||
|
||||
from inse.main import handle_not_found, handle_researcher_unavailable
|
||||
|
||||
async def boom(request: Request):
|
||||
raise ResearcherDataUnavailableException(
|
||||
"No multiplicator data.",
|
||||
reason=ResearcherUnavailableReason.OTHER_INSTITUTION,
|
||||
author_id="A5113304257",
|
||||
display_name="Test Person",
|
||||
author_institution="TU Berlin",
|
||||
)
|
||||
|
||||
app = Starlette(routes=[Route("/boom", boom)])
|
||||
app.add_exception_handler(NotFoundException, handle_not_found)
|
||||
app.add_exception_handler(
|
||||
ResearcherDataUnavailableException, handle_researcher_unavailable
|
||||
)
|
||||
|
||||
response = TestClient(app).get("/boom")
|
||||
|
||||
assert response.status_code == 404
|
||||
assert response.json() == {
|
||||
"message": "No multiplicator data.",
|
||||
"reason": "OTHER_INSTITUTION",
|
||||
"author_id": "A5113304257",
|
||||
"display_name": "Test Person",
|
||||
"author_institution": "TU Berlin",
|
||||
}
|
||||
|
||||
|
||||
def _network_source() -> dict:
|
||||
return {
|
||||
"institution_id": INSTITUTION,
|
||||
"author_id": "A5113304257",
|
||||
"display_name": "Test Person",
|
||||
"ego": {
|
||||
"career_bucket": "Senior",
|
||||
"active_years": 20,
|
||||
"n_works": 150,
|
||||
"suspicious_profile": False,
|
||||
"tags": ["mentor"],
|
||||
"sub_scores": {"bridger": 0.5, "mentor": 0.9, "amplifier": 0.3},
|
||||
"max_sub_score": 0.9,
|
||||
},
|
||||
"total_coauthors": 300,
|
||||
"cohort_coauthors": 120,
|
||||
"mentee_count": 14,
|
||||
"shown": 42,
|
||||
"shown_mentees": 14,
|
||||
"nodes": [
|
||||
{"id": "A5113304257", "name": "Test Person", "role": "ego",
|
||||
"inst": "UDE", "active_years": 20, "suspicious": False},
|
||||
{"id": "A2", "name": "Mentee", "role": "mentee",
|
||||
"inst": "UDE", "active_years": 3, "suspicious": True},
|
||||
{"id": "A3", "name": "Industry Partner", "role": "industry",
|
||||
"inst": "Some University", "active_years": 8, "suspicious": False,
|
||||
"company_insts": ["Acme Corp"]},
|
||||
],
|
||||
"edges": [
|
||||
{"a": "A2", "b": "A5113304257", "w": 1.5, "n_works": 7,
|
||||
"cross": False, "first_year": 2019, "last_year": 2025},
|
||||
],
|
||||
"computed_at": "2026-08-07T00:00:00Z",
|
||||
"config_hash": "abc123",
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_researcher_network_returns_nodes_and_edges_verbatim():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(return_value={"found": True, "_source": _network_source()}),
|
||||
) as get:
|
||||
network = await service.get_researcher_network(INSTITUTION, "A5113304257")
|
||||
|
||||
assert get.await_args.args[:2] == (
|
||||
ESIndex.MULTIPLICATOR_NETWORKS_V1,
|
||||
f"{INSTITUTION}_A5113304257",
|
||||
)
|
||||
assert network.nodes[0].role == "ego"
|
||||
assert network.nodes[1].suspicious is True # kept, unlike the report script
|
||||
assert network.nodes[1].company_insts is None
|
||||
assert network.nodes[2].company_insts == ["Acme Corp"] # passed through verbatim
|
||||
assert network.edges[0].last_year == 2025 # kept, unlike the report script
|
||||
# no layout coordinates anywhere - the client lays out
|
||||
dumped = str(network.model_dump())
|
||||
assert "'x'" not in dumped and "'y'" not in dumped
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_researcher_network_missing_document_raises_not_found():
|
||||
from inse.exceptions import ElasticsearchNotFoundException
|
||||
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.get",
|
||||
new=AsyncMock(side_effect=ElasticsearchNotFoundException("missing")),
|
||||
):
|
||||
with pytest.raises(NotFoundException):
|
||||
await service.get_researcher_network(INSTITUTION, "A404")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Showcase
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def _summary_source(author_id: str, tags: list[str] | None = None) -> dict:
|
||||
return {
|
||||
"author_id": author_id,
|
||||
"display_name": author_id,
|
||||
"career_bucket": "Senior",
|
||||
"tags": tags or [],
|
||||
"sub_scores": {"bridger": 0.9, "mentor": 0.8, "amplifier": 0.4},
|
||||
"max_sub_score": 0.9,
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_showcase_issues_one_msearch_with_four_bodies():
|
||||
responses = [
|
||||
_search_response([_summary_source("A1", ["bridger"])]),
|
||||
_search_response([_summary_source("A2", ["mentor"])]),
|
||||
_search_response([_summary_source("A3", ["amplifier"])]),
|
||||
_search_response([_summary_source("A4")]),
|
||||
]
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.msearch",
|
||||
new=AsyncMock(return_value=responses),
|
||||
) as msearch:
|
||||
showcase = await service.get_showcase(INSTITUTION)
|
||||
|
||||
searches = msearch.await_args.args[0]
|
||||
assert len(searches) == 4
|
||||
assert all(index == ESIndex.MULTIPLICATORS_V1 for index, _ in searches)
|
||||
assert all(body["size"] == 5 for _, body in searches)
|
||||
# the near-miss search excludes tagged people and sorts by max_sub_score
|
||||
_, example_body = searches[3]
|
||||
assert example_body["query"]["bool"]["must_not"] == [{"exists": {"field": "tags"}}]
|
||||
assert example_body["sort"] == [{"max_sub_score": {"order": "desc"}}]
|
||||
assert [e.kind for e in showcase.entries] == [
|
||||
ShowcaseKind.BRIDGER,
|
||||
ShowcaseKind.MENTOR,
|
||||
ShowcaseKind.AMPLIFIER,
|
||||
ShowcaseKind.EXAMPLE,
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_showcase_deduplicates_people_holding_several_tags():
|
||||
both_tags = _summary_source("A1", ["bridger", "mentor"])
|
||||
responses = [
|
||||
_search_response([both_tags]),
|
||||
_search_response([both_tags, _summary_source("A2", ["mentor"])]),
|
||||
_search_response([_summary_source("A3", ["amplifier"])]),
|
||||
_search_response([_summary_source("A4")]),
|
||||
]
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.msearch",
|
||||
new=AsyncMock(return_value=responses),
|
||||
):
|
||||
showcase = await service.get_showcase(INSTITUTION)
|
||||
|
||||
ids = [e.researcher.author_id for e in showcase.entries]
|
||||
assert ids == ["A1", "A2", "A3", "A4"] # mentor slot takes the second hit
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_showcase_tolerates_missing_categories():
|
||||
responses = [
|
||||
_search_response([_summary_source("A1", ["bridger"])]),
|
||||
_empty_search_response(),
|
||||
_empty_search_response(),
|
||||
_search_response([_summary_source("A4")]),
|
||||
]
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.msearch",
|
||||
new=AsyncMock(return_value=responses),
|
||||
):
|
||||
showcase = await service.get_showcase(INSTITUTION)
|
||||
|
||||
assert [e.kind for e in showcase.entries] == [
|
||||
ShowcaseKind.BRIDGER,
|
||||
ShowcaseKind.EXAMPLE,
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_showcase_with_no_documents_raises_not_found():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.msearch",
|
||||
new=AsyncMock(return_value=[_empty_search_response()] * 4),
|
||||
):
|
||||
with pytest.raises(NotFoundException):
|
||||
await service.get_showcase(INSTITUTION)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Founder statistics
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def _stats_response() -> dict:
|
||||
percentile_stats = {"values": {"50.0": 33.1, "90.0": 82.4}}
|
||||
bucket_block = {
|
||||
"screened": {"doc_count": 400},
|
||||
"in_population": {
|
||||
"doc_count": 1000,
|
||||
"percentile_stats": percentile_stats,
|
||||
"above_75": {"doc_count": 120},
|
||||
"above_90": {"doc_count": 60},
|
||||
"robust": {
|
||||
"doc_count": 700,
|
||||
"percentile_stats": percentile_stats,
|
||||
"above_75": {"doc_count": 80},
|
||||
"above_90": {"doc_count": 30},
|
||||
},
|
||||
},
|
||||
"shortlist_plain": {"doc_count": 60},
|
||||
"shortlist_robust": {"doc_count": 20},
|
||||
}
|
||||
tag_overlap = {
|
||||
"tags": {"buckets": [{"key": "bridger", "doc_count": 4}]},
|
||||
"no_tag": {"doc_count": 50},
|
||||
"soft_bridger": {"doc_count": 10},
|
||||
"soft_mentor": {"doc_count": 8},
|
||||
"soft_amplifier": {"doc_count": 6},
|
||||
}
|
||||
tagged_block = {
|
||||
"doc_count": 150,
|
||||
"percentile_stats": {"values": {"50.0": 10.0, "90.0": 47.0}},
|
||||
"above_band": {"doc_count": 30},
|
||||
}
|
||||
return {
|
||||
"hits": {"hits": [], "total": {"value": 9474}},
|
||||
"aggregations": {
|
||||
"funnel": {
|
||||
"doc_count": 5712,
|
||||
"not_suspicious": {
|
||||
"doc_count": 5317,
|
||||
"career_age_ok": {
|
||||
"doc_count": 4858,
|
||||
"pubs_ok": {"doc_count": 3742},
|
||||
},
|
||||
},
|
||||
},
|
||||
"by_bucket": {
|
||||
"buckets": [
|
||||
{"key": "Early", "doc_count": 5361, **bucket_block},
|
||||
{"key": "Senior", "doc_count": 1745, **bucket_block},
|
||||
]
|
||||
},
|
||||
"overall": {"doc_count": 9474, **bucket_block},
|
||||
"areas": {
|
||||
"doc_count": 5712,
|
||||
"shortlist_total": {"doc_count": 270},
|
||||
"robust_total": {"doc_count": 100},
|
||||
"by_area": {
|
||||
"buckets": [
|
||||
{
|
||||
"key": "32",
|
||||
"doc_count": 2856,
|
||||
"shortlist": {"doc_count": 100},
|
||||
"robust": {"doc_count": 40},
|
||||
},
|
||||
{
|
||||
"key": "43", # unknown FOR code
|
||||
"doc_count": 10,
|
||||
"shortlist": {"doc_count": 0},
|
||||
"robust": {"doc_count": 0},
|
||||
},
|
||||
]
|
||||
},
|
||||
},
|
||||
"shortlist": {
|
||||
"doc_count": 270,
|
||||
**tag_overlap,
|
||||
"robust": {"doc_count": 100, **tag_overlap},
|
||||
},
|
||||
"tagged_bridger": tagged_block,
|
||||
"tagged_mentor": tagged_block,
|
||||
"tagged_amplifier": tagged_block,
|
||||
"patent_sources": {
|
||||
"buckets": [{"key": "api+org_patents", "doc_count": 9474}]
|
||||
},
|
||||
"provenance": {
|
||||
"hits": {
|
||||
"hits": [
|
||||
{
|
||||
"_source": {
|
||||
"computed_at": "2026-08-07T12:00:00Z",
|
||||
"config_hash": "abc123def456",
|
||||
"founding": {"as_of_year": 2026},
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founder_statistics_issues_a_single_search_with_size_zero():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_stats_response()),
|
||||
) as search:
|
||||
await service.get_founder_statistics(INSTITUTION)
|
||||
|
||||
assert search.await_count == 1
|
||||
body = search.await_args.kwargs["body"]
|
||||
assert body["size"] == 0
|
||||
assert body["query"] == {
|
||||
"bool": {"filter": [{"term": {"institution_id": INSTITUTION}}]}
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founder_statistics_funnel_is_cumulative_and_nested():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_stats_response()),
|
||||
) as search:
|
||||
stats = await service.get_founder_statistics(INSTITUTION)
|
||||
|
||||
funnel_agg = search.await_args.kwargs["body"]["aggs"]["funnel"]
|
||||
assert funnel_agg["filter"] == {"term": {"founding.in_population": True}}
|
||||
nested = funnel_agg["aggs"]["not_suspicious"]
|
||||
assert nested["filter"] == {
|
||||
"bool": {"must_not": [{"term": {"suspicious_profile": True}}]}
|
||||
}
|
||||
deeper = nested["aggs"]["career_age_ok"]
|
||||
assert deeper["filter"] == {"range": {"founding.current_career_age": {"lte": 40}}}
|
||||
assert deeper["aggs"]["pubs_ok"]["filter"] == {
|
||||
"range": {"founding_features.publications": {"gte": 7}}
|
||||
}
|
||||
|
||||
counts = [stage.count for stage in stats.funnel]
|
||||
assert counts == [9474, 5712, 5317, 4858, 3742]
|
||||
assert [stage.lost_from_previous for stage in stats.funnel] == [
|
||||
0, 3762, 395, 459, 1116,
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founder_statistics_threshold_params_reach_the_dsl():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_stats_response()),
|
||||
) as search:
|
||||
await service.get_founder_statistics(
|
||||
INSTITUTION,
|
||||
percentile_threshold=75,
|
||||
min_publications=3,
|
||||
soft_peer_rank_threshold=0.5,
|
||||
)
|
||||
|
||||
aggs = search.await_args.kwargs["body"]["aggs"]
|
||||
assert aggs["by_bucket"]["aggs"]["shortlist_plain"]["filter"] == {
|
||||
"range": {"founding.percentile": {"gte": 75}}
|
||||
}
|
||||
assert aggs["shortlist"]["aggs"]["soft_mentor"]["filter"] == {
|
||||
"range": {"sub_scores.mentor": {"gte": 0.5}}
|
||||
}
|
||||
assert aggs["funnel"]["aggs"]["not_suspicious"]["aggs"]["career_age_ok"]["aggs"][
|
||||
"pubs_ok"
|
||||
]["filter"] == {"range": {"founding_features.publications": {"gte": 3}}}
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founder_statistics_maps_for_codes_to_labels_and_shares():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_stats_response()),
|
||||
):
|
||||
stats = await service.get_founder_statistics(INSTITUTION)
|
||||
|
||||
by_code = {area.code: area for area in stats.research_areas}
|
||||
assert by_code["32"].label == "Biomedical & Clinical Sciences"
|
||||
assert by_code["43"].label is None # unknown code stays visible, not renamed
|
||||
area = by_code["32"]
|
||||
assert area.cohort_share == 0.5 # 2856 / 5712
|
||||
assert area.shortlist_share == round(100 / 270, 4)
|
||||
assert area.ratio == round((100 / 270) / 0.5, 2)
|
||||
assert by_code["43"].ratio is None or by_code["43"].ratio == 0.0
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founder_statistics_ratio_is_none_when_cohort_share_is_zero():
|
||||
response = _stats_response()
|
||||
response["aggregations"]["areas"]["by_area"]["buckets"].append(
|
||||
{"key": "51", "doc_count": 0, "shortlist": {"doc_count": 0}, "robust": {"doc_count": 0}}
|
||||
)
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=response),
|
||||
):
|
||||
stats = await service.get_founder_statistics(INSTITUTION)
|
||||
|
||||
by_code = {area.code: area for area in stats.research_areas}
|
||||
assert by_code["51"].ratio is None
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founder_statistics_returns_an_empty_payload_for_unindexed_university():
|
||||
"""A university without data gets 200 + document_count=0, not a 404."""
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value={"hits": {"hits": [], "total": {"value": 0}}}),
|
||||
):
|
||||
stats = await service.get_founder_statistics("TU9")
|
||||
|
||||
assert stats.provenance.institution_id == "TU9"
|
||||
assert stats.provenance.document_count == 0
|
||||
assert stats.overall.career_bucket == "ALL"
|
||||
assert stats.overall.total == 0
|
||||
assert stats.career_stages == []
|
||||
assert stats.research_areas == []
|
||||
assert [stage.count for stage in stats.funnel] == [0, 0, 0, 0, 0]
|
||||
assert {a.tag for a in stats.archetypes} == set(MultiplierTag)
|
||||
assert all(a.tagged_in_population == 0 for a in stats.archetypes)
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_founder_statistics_provenance_and_overlap():
|
||||
with patch(
|
||||
"inse.multiplicators.service.elasticsearch.search",
|
||||
new=AsyncMock(return_value=_stats_response()),
|
||||
):
|
||||
stats = await service.get_founder_statistics(INSTITUTION)
|
||||
|
||||
assert stats.provenance.document_count == 9474
|
||||
assert stats.provenance.config_hash == "abc123def456"
|
||||
assert stats.provenance.as_of_year == 2026
|
||||
assert stats.provenance.patent_sources == ["api+org_patents"]
|
||||
assert stats.overall.career_bucket == "ALL"
|
||||
assert stats.untagged_shortlist_count == 50
|
||||
|
||||
bridger = next(a for a in stats.archetypes if a.tag == MultiplierTag.BRIDGER)
|
||||
assert bridger.shortlist_count == 4
|
||||
assert bridger.soft_shortlist_count == 10
|
||||
assert bridger.tagged_in_population == 150
|
||||
assert bridger.tagged_above_band == 30
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Model info
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_founder_model_info_loads_bundled_file():
|
||||
info = service.get_founder_model_info()
|
||||
assert info.model == "lightgbm_symmetric_founder_classifier_v2"
|
||||
assert info.oof_roc_auc == 0.8659
|
||||
assert len(info.importances) == 12
|
||||
assert info.importances[0].feature == "patent_research_area_n."
|
||||
assert any("constant" in caveat for caveat in info.caveats)
|
||||
assert {h.horizon_years for h in info.horizon_models} == {1, 3, 5}
|
||||
@@ -8,3 +8,4 @@ class RouterPrefixes(StrEnum):
|
||||
TOPICS_V2 = "/api/topics/v2"
|
||||
AUTHORS_V2 = "/api/authors/v2"
|
||||
WORKS_V2 = "/api/works/v2"
|
||||
MULTIPLICATORS = "/api/multiplicators"
|
||||
|
||||
@@ -27,3 +27,5 @@ class Tags(StrEnum):
|
||||
BACKGROUND_JOBS = "Background Jobs"
|
||||
|
||||
BUND_INSTITUTIONS = "BUND Institutions"
|
||||
|
||||
MULTIPLICATORS = "Multiplicators"
|
||||
|
||||
@@ -17,6 +17,7 @@ api/funding.service.ts
|
||||
api/institutions.service.ts
|
||||
api/institutionsV2.service.ts
|
||||
api/keywords.service.ts
|
||||
api/multiplicators.service.ts
|
||||
api/news.service.ts
|
||||
api/organization.service.ts
|
||||
api/orgminer.service.ts
|
||||
@@ -38,6 +39,7 @@ model/accessToken.ts
|
||||
model/accountPage.ts
|
||||
model/accountProfile.ts
|
||||
model/allPatentsResponse.ts
|
||||
model/archetypeOverlap.ts
|
||||
model/author.ts
|
||||
model/authorAffiliationsInner.ts
|
||||
model/authorCountsByYearInner.ts
|
||||
@@ -78,8 +80,10 @@ model/bundProjectHighlight.ts
|
||||
model/bundProjectPage.ts
|
||||
model/bundProjectSummary.ts
|
||||
model/bundProjectTopics.ts
|
||||
model/careerBucket.ts
|
||||
model/careerMetrics.ts
|
||||
model/careerStage.ts
|
||||
model/careerStageStatistics.ts
|
||||
model/category.ts
|
||||
model/categoryBucket.ts
|
||||
model/classifiedPage.ts
|
||||
@@ -127,6 +131,9 @@ model/domain.ts
|
||||
model/domainFieldsInner.ts
|
||||
model/domainIds.ts
|
||||
model/edge.ts
|
||||
model/egoNetwork.ts
|
||||
model/egoNetworkEdge.ts
|
||||
model/egoNetworkNode.ts
|
||||
model/euCordisEurosciVocSummary.ts
|
||||
model/euCordisOrganizationSelectorPage.ts
|
||||
model/euCordisOrganizationSelectorSummary.ts
|
||||
@@ -145,6 +152,20 @@ model/extractedKeywordsLLM.ts
|
||||
model/extractedKeywordsResponse.ts
|
||||
model/fieldNode.ts
|
||||
model/fileUpload.ts
|
||||
model/founderCandidate.ts
|
||||
model/founderCandidatePage.ts
|
||||
model/founderFeatureImportance.ts
|
||||
model/founderFeatures.ts
|
||||
model/founderHorizonModel.ts
|
||||
model/founderModelInfo.ts
|
||||
model/founderPotential.ts
|
||||
model/founderScreen.ts
|
||||
model/founderScreenReason.ts
|
||||
model/founderSortBy.ts
|
||||
model/founderStatistics.ts
|
||||
model/founderStatisticsParameters.ts
|
||||
model/founderStatisticsProvenance.ts
|
||||
model/founderTiming.ts
|
||||
model/fp7EurosciVoc.ts
|
||||
model/fp7LegalBasis.ts
|
||||
model/fp7Organization.ts
|
||||
@@ -158,6 +179,8 @@ model/funderByAuthor.ts
|
||||
model/fundersByAuthorResponse.ts
|
||||
model/fundingProject.ts
|
||||
model/fundingProjectPage.ts
|
||||
model/funnelStage.ts
|
||||
model/funnelStageKey.ts
|
||||
model/fwci.ts
|
||||
model/groupByResult.ts
|
||||
model/h2020Deliverable.ts
|
||||
@@ -227,9 +250,12 @@ model/matchedOfficer.ts
|
||||
model/matchedTopic.ts
|
||||
model/mentionedPerson.ts
|
||||
model/meta.ts
|
||||
model/metricValue.ts
|
||||
model/model2YrMeanCitedness.ts
|
||||
model/modelField.ts
|
||||
model/models.ts
|
||||
model/multiplierPeerRanks.ts
|
||||
model/multiplierTag.ts
|
||||
model/newsArticle.ts
|
||||
model/newsArticleDetail.ts
|
||||
model/newsPage.ts
|
||||
@@ -249,6 +275,7 @@ model/patentsByAuthorResponse.ts
|
||||
model/patentsByInstitutionResponse.ts
|
||||
model/patentsByKeywordsRequest.ts
|
||||
model/patentsByKeywordsResponse.ts
|
||||
model/peerRankField.ts
|
||||
model/personBio.ts
|
||||
model/personBookmarkResponse.ts
|
||||
model/primaryCategoryYearAggregation.ts
|
||||
@@ -267,9 +294,18 @@ model/rankingResponse.ts
|
||||
model/rankingWeights.ts
|
||||
model/rebuildResponse.ts
|
||||
model/registryHealth.ts
|
||||
model/researchAreaStatistics.ts
|
||||
model/researcherDetail.ts
|
||||
model/researcherMetrics.ts
|
||||
model/researcherSortBy.ts
|
||||
model/researcherSummary.ts
|
||||
model/researcherSummaryPage.ts
|
||||
model/saveHierarchyResponse.ts
|
||||
model/score.ts
|
||||
model/selectedAuthorsRequest.ts
|
||||
model/showcase.ts
|
||||
model/showcaseEntry.ts
|
||||
model/showcaseKind.ts
|
||||
model/sortDirection.ts
|
||||
model/startCollaborationGraphResponse.ts
|
||||
model/subfield.ts
|
||||
|
||||
@@ -24,6 +24,8 @@ export * from './institutionsV2.service';
|
||||
import { InstitutionsV2Service } from './institutionsV2.service';
|
||||
export * from './keywords.service';
|
||||
import { KeywordsService } from './keywords.service';
|
||||
export * from './multiplicators.service';
|
||||
import { MultiplicatorsService } from './multiplicators.service';
|
||||
export * from './news.service';
|
||||
import { NewsService } from './news.service';
|
||||
export * from './organization.service';
|
||||
@@ -48,4 +50,4 @@ export * from './works.service';
|
||||
import { WorksService } from './works.service';
|
||||
export * from './worksV2.service';
|
||||
import { WorksV2Service } from './worksV2.service';
|
||||
export const APIS = [AuthService, AuthorsV2Service, BUNDInstitutionsService, BackgroundJobsService, BookmarksService, CompanyConnectionsService, DFGInstitutionsService, DFGPersonsService, DashboardService, FundingService, InstitutionsService, InstitutionsV2Service, KeywordsService, NewsService, OrganizationService, OrgminerService, 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, MultiplicatorsService, NewsService, OrganizationService, OrgminerService, PatentsService, PersonsService, ProjectsService, RankingService, TopicsService, TopicsV2Service, UniversityRankingsService, WorksService, WorksV2Service];
|
||||
|
||||
+1032
-1938
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,18 +9,12 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import {
|
||||
HttpClient,
|
||||
HttpHeaders,
|
||||
HttpParams,
|
||||
HttpResponse,
|
||||
HttpEvent,
|
||||
HttpParameterCodec,
|
||||
HttpContext,
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { Author } from '../model/author';
|
||||
@@ -34,613 +28,333 @@ import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { StartCollaborationGraphResponse } from '../model/startCollaborationGraphResponse';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class AuthorsV2Service extends BaseService {
|
||||
constructor(
|
||||
protected httpClient: HttpClient,
|
||||
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||
@Optional() configuration?: Configuration,
|
||||
) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a paginated list of authors for a given search term based on their display name.
|
||||
* @endpoint get /api/authors/v2/autocomplete/selector
|
||||
* @param query A search term to filter authors by (partial matches allowed).
|
||||
* @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 autocompleteAuthorsForSelector(
|
||||
query?: string,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>query,
|
||||
'query',
|
||||
);
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Returns a paginated list of authors for a given search term based on their display name.
|
||||
* @endpoint get /api/authors/v2/autocomplete/selector
|
||||
* @param query A search term to filter authors by (partial matches allowed).
|
||||
* @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 autocompleteAuthorsForSelector(query?: string, observe?: 'body', 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> {
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>query, 'query');
|
||||
|
||||
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 localVarHeaders = this.defaultHeaders;
|
||||
|
||||
let localVarPath = `/api/authors/v2/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<AuthorPage>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an author for a given author ID.
|
||||
* @endpoint get /api/authors/v2/{raw_oa_author_id}
|
||||
* @param rawOaAuthorId The ID of the author to retrieve.
|
||||
* @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 getAuthorById(
|
||||
rawOaAuthorId: string,
|
||||
observe?: 'body',
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter rawOaAuthorId was null or undefined when calling getAuthorById.',
|
||||
);
|
||||
}
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
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();
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
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/authors/v2/${this.configuration.encodeParam({ name: 'rawOaAuthorId', value: rawOaAuthorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Author>(
|
||||
'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 authors for a given list of author IDs.
|
||||
* @endpoint get /api/authors/v2/authors/id
|
||||
* @param authorIds A list of author IDs to retrieve.
|
||||
* @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 getAuthorsByIds(
|
||||
authorIds?: Array<string>,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
if (authorIds) {
|
||||
authorIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>element,
|
||||
'author_ids',
|
||||
let localVarPath = `/api/authors/v2/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<AuthorPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
/**
|
||||
* Returns an author for a given author ID.
|
||||
* @endpoint get /api/authors/v2/{raw_oa_author_id}
|
||||
* @param rawOaAuthorId The ID of the author to retrieve.
|
||||
* @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 getAuthorById(rawOaAuthorId: string, observe?: 'body', 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) {
|
||||
throw new Error('Required parameter rawOaAuthorId was null or undefined when calling getAuthorById.');
|
||||
}
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
}
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (
|
||||
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||
) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
let localVarPath = `/api/authors/v2/authors/id`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<AuthorPage>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the status of a collaboration graph generation task.
|
||||
* @endpoint get /api/authors/v2/collaboration-graph/{graph_id}/status
|
||||
* @param graphId The ID of the collaboration graph generation task.
|
||||
* @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 getCollaborationGraphStatus(
|
||||
graphId: string,
|
||||
observe?: 'body',
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter graphId was null or undefined when calling getCollaborationGraphStatus.',
|
||||
);
|
||||
}
|
||||
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 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/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;
|
||||
return this.httpClient.request<CollaborationGraphStatusResponse>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a collaboration graph for a given author ID.
|
||||
* @endpoint post /api/authors/v2/collaboration-graph
|
||||
* @param rawOaAuthorId The raw OpenAlex author ID for which to retrieve the collaboration graph.
|
||||
* @param yearFrom The starting year to filter the works by (optional).
|
||||
* @param yearTo The ending year to filter the works by (optional).
|
||||
* @param minCollaborators The minimum number of collaborators to filter the works by (optional).
|
||||
* @param maxCollaborators The maximum number of collaborators to filter the works by (optional).
|
||||
* @param topicIds A list of topic IDs to filter the works by (optional).
|
||||
* @param institutionIds A list of institution IDs to filter the works by (optional).
|
||||
* @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 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(
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter rawOaAuthorId was null or undefined when calling startCollaborationGraph.',
|
||||
);
|
||||
}
|
||||
|
||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>rawOaAuthorId,
|
||||
'raw_oa_author_id',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>yearFrom,
|
||||
'year_from',
|
||||
);
|
||||
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) {
|
||||
topicIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>element,
|
||||
'topic_ids',
|
||||
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;
|
||||
return this.httpClient.request<Author>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
if (institutionIds) {
|
||||
institutionIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>element,
|
||||
'institution_ids',
|
||||
|
||||
/**
|
||||
* Returns a paginated list of authors for a given list of author IDs.
|
||||
* @endpoint get /api/authors/v2/authors/id
|
||||
* @param authorIds A list of author IDs to retrieve.
|
||||
* @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 getAuthorsByIds(authorIds?: Array<string>, observe?: 'body', 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});
|
||||
if (authorIds) {
|
||||
authorIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'author_ids');
|
||||
})
|
||||
}
|
||||
|
||||
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/authors/v2/authors/id`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<AuthorPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
/**
|
||||
* Returns the status of a collaboration graph generation task.
|
||||
* @endpoint get /api/authors/v2/collaboration-graph/{graph_id}/status
|
||||
* @param graphId The ID of the collaboration graph generation task.
|
||||
* @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 getCollaborationGraphStatus(graphId: string, observe?: 'body', 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) {
|
||||
throw new Error('Required parameter graphId was null or undefined when calling getCollaborationGraphStatus.');
|
||||
}
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/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;
|
||||
return this.httpClient.request<CollaborationGraphStatusResponse>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Returns a collaboration graph for a given author ID.
|
||||
* @endpoint post /api/authors/v2/collaboration-graph
|
||||
* @param rawOaAuthorId The raw OpenAlex author ID for which to retrieve the collaboration graph.
|
||||
* @param yearFrom The starting year to filter the works by (optional).
|
||||
* @param yearTo The ending year to filter the works by (optional).
|
||||
* @param minCollaborators The minimum number of collaborators to filter the works by (optional).
|
||||
* @param maxCollaborators The maximum number of collaborators to filter the works by (optional).
|
||||
* @param topicIds A list of topic IDs to filter the works by (optional).
|
||||
* @param institutionIds A list of institution IDs to filter the works by (optional).
|
||||
* @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 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(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) {
|
||||
throw new Error('Required parameter rawOaAuthorId was null or undefined when calling startCollaborationGraph.');
|
||||
}
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>rawOaAuthorId, 'raw_oa_author_id');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>yearFrom, 'year_from');
|
||||
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) {
|
||||
topicIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'topic_ids');
|
||||
})
|
||||
}
|
||||
if (institutionIds) {
|
||||
institutionIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'institution_ids');
|
||||
})
|
||||
}
|
||||
|
||||
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 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/authors/v2/collaboration-graph`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<StartCollaborationGraphResponse>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
let localVarPath = `/api/authors/v2/collaboration-graph`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<StartCollaborationGraphResponse>(
|
||||
'post',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,18 +9,12 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import {
|
||||
HttpClient,
|
||||
HttpHeaders,
|
||||
HttpParams,
|
||||
HttpResponse,
|
||||
HttpEvent,
|
||||
HttpParameterCodec,
|
||||
HttpContext,
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { BundInstitutionSummaryPage } from '../model/bundInstitutionSummaryPage';
|
||||
@@ -28,231 +22,137 @@ import { BundInstitutionSummaryPage } from '../model/bundInstitutionSummaryPage'
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class BUNDInstitutionsService extends BaseService {
|
||||
constructor(
|
||||
protected httpClient: HttpClient,
|
||||
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||
@Optional() configuration?: Configuration,
|
||||
) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of institutions based on a search term for autocomplete functionality.
|
||||
* @endpoint get /api/bund/institutions/autocomplete/selector
|
||||
* @param query A search term to filter institutions by (partial matches allowed).
|
||||
* @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 getBundInstitutionAutocompleteForSelector(
|
||||
query?: string,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>query,
|
||||
'query',
|
||||
);
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Returns a list of institutions based on a search term for autocomplete functionality.
|
||||
* @endpoint get /api/bund/institutions/autocomplete/selector
|
||||
* @param query A search term to filter institutions by (partial matches allowed).
|
||||
* @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 getBundInstitutionAutocompleteForSelector(query?: string, observe?: 'body', 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> {
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>query, 'query');
|
||||
|
||||
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 localVarHeaders = this.defaultHeaders;
|
||||
|
||||
let localVarPath = `/api/bund/institutions/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<BundInstitutionSummaryPage>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of institutions based on their names.
|
||||
* @endpoint get /api/bund/institutions/names
|
||||
* @param institutionNames A list of institution names to retrieve.
|
||||
* @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 getBundInstitutionsByName(
|
||||
institutionNames?: Array<string>,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
if (institutionNames) {
|
||||
institutionNames.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>element,
|
||||
'institution_names',
|
||||
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/bund/institutions/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<BundInstitutionSummaryPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
/**
|
||||
* Returns a list of institutions based on their names.
|
||||
* @endpoint get /api/bund/institutions/names
|
||||
* @param institutionNames A list of institution names to retrieve.
|
||||
* @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 getBundInstitutionsByName(institutionNames?: Array<string>, observe?: 'body', 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> {
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
if (institutionNames) {
|
||||
institutionNames.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'institution_names');
|
||||
})
|
||||
}
|
||||
|
||||
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/bund/institutions/names`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<BundInstitutionSummaryPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (
|
||||
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||
) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/bund/institutions/names`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<BundInstitutionSummaryPage>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,18 +9,12 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import {
|
||||
HttpClient,
|
||||
HttpHeaders,
|
||||
HttpParams,
|
||||
HttpResponse,
|
||||
HttpEvent,
|
||||
HttpParameterCodec,
|
||||
HttpContext,
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CreatePersonBookmark } from '../model/createPersonBookmark';
|
||||
@@ -30,375 +24,206 @@ import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { PersonBookmarkResponse } from '../model/personBookmarkResponse';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class BookmarksService extends BaseService {
|
||||
constructor(
|
||||
protected httpClient: HttpClient,
|
||||
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||
@Optional() configuration?: Configuration,
|
||||
) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bookmark Person
|
||||
* @endpoint put /api/bookmarks/persons/{person_id}
|
||||
* @param personId
|
||||
* @param createPersonBookmark
|
||||
* @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 bookmarkPerson(
|
||||
personId: string,
|
||||
createPersonBookmark: CreatePersonBookmark,
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter personId was null or undefined when calling bookmarkPerson.',
|
||||
);
|
||||
}
|
||||
if (createPersonBookmark === null || createPersonBookmark === undefined) {
|
||||
throw new Error(
|
||||
'Required parameter createPersonBookmark was null or undefined when calling bookmarkPerson.',
|
||||
);
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
/**
|
||||
* Bookmark Person
|
||||
* @endpoint put /api/bookmarks/persons/{person_id}
|
||||
* @param personId
|
||||
* @param createPersonBookmark
|
||||
* @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 bookmarkPerson(personId: string, createPersonBookmark: CreatePersonBookmark, 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) {
|
||||
throw new Error('Required parameter personId was null or undefined when calling bookmarkPerson.');
|
||||
}
|
||||
if (createPersonBookmark === null || createPersonBookmark === undefined) {
|
||||
throw new Error('Required parameter createPersonBookmark was null or undefined when calling bookmarkPerson.');
|
||||
}
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||
'HTTPBearer',
|
||||
'Authorization',
|
||||
localVarHeaders,
|
||||
'Bearer ',
|
||||
);
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
// 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/bookmarks/persons/${this.configuration.encodeParam({name: "personId", value: personId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<PersonBookmarkResponse>('put', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createPersonBookmark,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* List Person Bookmarks
|
||||
* @endpoint get /api/bookmarks/persons
|
||||
* @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 listPersonBookmarks(secureFgpAcc?: string, observe?: 'body', 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> {
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// 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,
|
||||
);
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/bookmarks/persons`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<PersonBookmarkResponse>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (
|
||||
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||
) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
/**
|
||||
* Remove Person Bookmark
|
||||
* @endpoint delete /api/bookmarks/persons/{person_id}
|
||||
* @param personId
|
||||
* @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 removePersonBookmark(personId: string, secureFgpAcc?: string, 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) {
|
||||
throw new Error('Required parameter personId was null or undefined when calling removePersonBookmark.');
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/bookmarks/persons/${this.configuration.encodeParam({name: "personId", value: personId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
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;
|
||||
return this.httpClient.request<PersonBookmarkResponse>(
|
||||
'put',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createPersonBookmark,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List Person Bookmarks
|
||||
* @endpoint get /api/bookmarks/persons
|
||||
* @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 listPersonBookmarks(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
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;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||
'HTTPBearer',
|
||||
'Authorization',
|
||||
localVarHeaders,
|
||||
'Bearer ',
|
||||
);
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (
|
||||
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||
) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/bookmarks/persons`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<PersonBookmarkResponse>>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove Person Bookmark
|
||||
* @endpoint delete /api/bookmarks/persons/{person_id}
|
||||
* @param personId
|
||||
* @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 removePersonBookmark(
|
||||
personId: string,
|
||||
secureFgpAcc?: string,
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter personId was null or undefined when calling removePersonBookmark.',
|
||||
);
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||
'HTTPBearer',
|
||||
'Authorization',
|
||||
localVarHeaders,
|
||||
'Bearer ',
|
||||
);
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (
|
||||
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||
) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/bookmarks/persons/${this.configuration.encodeParam({ name: 'personId', value: personId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>(
|
||||
'delete',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,18 +9,12 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import {
|
||||
HttpClient,
|
||||
HttpHeaders,
|
||||
HttpParams,
|
||||
HttpResponse,
|
||||
HttpEvent,
|
||||
HttpParameterCodec,
|
||||
HttpContext,
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CompanyConnectionsAvailability } from '../model/companyConnectionsAvailability';
|
||||
@@ -30,249 +24,137 @@ import { CompanyConnectionsResponse } from '../model/companyConnectionsResponse'
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class CompanyConnectionsService extends BaseService {
|
||||
constructor(
|
||||
protected httpClient: HttpClient,
|
||||
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||
@Optional() configuration?: Configuration,
|
||||
) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether company connections are available for an author.
|
||||
* @endpoint get /api/inse-service/authors/{author_id}/company-connections/availability
|
||||
* @param authorId
|
||||
* @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 getCompanyConnectionsAvailability(
|
||||
authorId: string,
|
||||
secureFgpAcc?: string,
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter authorId was null or undefined when calling getCompanyConnectionsAvailability.',
|
||||
);
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
/**
|
||||
* Check whether company connections are available for an author.
|
||||
* @endpoint get /api/inse-service/authors/{author_id}/company-connections/availability
|
||||
* @param authorId
|
||||
* @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 getCompanyConnectionsAvailability(authorId: string, secureFgpAcc?: string, 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) {
|
||||
throw new Error('Required parameter authorId was null or undefined when calling getCompanyConnectionsAvailability.');
|
||||
}
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||
'HTTPBearer',
|
||||
'Authorization',
|
||||
localVarHeaders,
|
||||
'Bearer ',
|
||||
);
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/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;
|
||||
return this.httpClient.request<CompanyConnectionsAvailability>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Get possible company connections by OpenAlex author ID.
|
||||
* @endpoint get /api/inse-service/authors/{author_id}/company-connections
|
||||
* @param authorId
|
||||
* @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 getCompanyConnectionsByAuthor(authorId: string, secureFgpAcc?: string, 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) {
|
||||
throw new Error('Required parameter authorId was null or undefined when calling getCompanyConnectionsByAuthor.');
|
||||
}
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
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';
|
||||
}
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/company-connections`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<CompanyConnectionsResponse>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
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;
|
||||
return this.httpClient.request<CompanyConnectionsAvailability>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get possible company connections by OpenAlex author ID.
|
||||
* @endpoint get /api/inse-service/authors/{author_id}/company-connections
|
||||
* @param authorId
|
||||
* @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 getCompanyConnectionsByAuthor(
|
||||
authorId: string,
|
||||
secureFgpAcc?: string,
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter authorId was null or undefined when calling getCompanyConnectionsByAuthor.',
|
||||
);
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders(
|
||||
'HTTPBearer',
|
||||
'Authorization',
|
||||
localVarHeaders,
|
||||
'Bearer ',
|
||||
);
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (
|
||||
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||
) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/company-connections`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<CompanyConnectionsResponse>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,18 +9,12 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import {
|
||||
HttpClient,
|
||||
HttpHeaders,
|
||||
HttpParams,
|
||||
HttpResponse,
|
||||
HttpEvent,
|
||||
HttpParameterCodec,
|
||||
HttpContext,
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { DfgInstitutionSummaryPage } from '../model/dfgInstitutionSummaryPage';
|
||||
@@ -28,231 +22,137 @@ import { DfgInstitutionSummaryPage } from '../model/dfgInstitutionSummaryPage';
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class DFGInstitutionsService extends BaseService {
|
||||
constructor(
|
||||
protected httpClient: HttpClient,
|
||||
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||
@Optional() configuration?: Configuration,
|
||||
) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of institutions based on a search term for autocomplete functionality.
|
||||
* @endpoint get /api/dfg/institutions/autocomplete/selector
|
||||
* @param query A search term to filter institutions by (partial matches allowed).
|
||||
* @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 getDfgInstitutionAutocompleteForSelector(
|
||||
query?: string,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>query,
|
||||
'query',
|
||||
);
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Returns a list of institutions based on a search term for autocomplete functionality.
|
||||
* @endpoint get /api/dfg/institutions/autocomplete/selector
|
||||
* @param query A search term to filter institutions by (partial matches allowed).
|
||||
* @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 getDfgInstitutionAutocompleteForSelector(query?: string, observe?: 'body', 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> {
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>query, 'query');
|
||||
|
||||
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 localVarHeaders = this.defaultHeaders;
|
||||
|
||||
let localVarPath = `/api/dfg/institutions/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<DfgInstitutionSummaryPage>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of institutions based on their IDs.
|
||||
* @endpoint get /api/dfg/institutions/ids
|
||||
* @param institutionIds A list of institution IDs to retrieve.
|
||||
* @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 getDfgInstitutionsByIds(
|
||||
institutionIds?: Array<string>,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
if (institutionIds) {
|
||||
institutionIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>element,
|
||||
'institution_ids',
|
||||
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/dfg/institutions/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<DfgInstitutionSummaryPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
/**
|
||||
* Returns a list of institutions based on their IDs.
|
||||
* @endpoint get /api/dfg/institutions/ids
|
||||
* @param institutionIds A list of institution IDs to retrieve.
|
||||
* @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 getDfgInstitutionsByIds(institutionIds?: Array<string>, observe?: 'body', 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> {
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
if (institutionIds) {
|
||||
institutionIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'institution_ids');
|
||||
})
|
||||
}
|
||||
|
||||
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/dfg/institutions/ids`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<DfgInstitutionSummaryPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (
|
||||
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||
) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/dfg/institutions/ids`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<DfgInstitutionSummaryPage>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,18 +9,12 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import {
|
||||
HttpClient,
|
||||
HttpHeaders,
|
||||
HttpParams,
|
||||
HttpResponse,
|
||||
HttpEvent,
|
||||
HttpParameterCodec,
|
||||
HttpContext,
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { DfgPersonSummaryPage } from '../model/dfgPersonSummaryPage';
|
||||
@@ -28,231 +22,137 @@ import { DfgPersonSummaryPage } from '../model/dfgPersonSummaryPage';
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class DFGPersonsService extends BaseService {
|
||||
constructor(
|
||||
protected httpClient: HttpClient,
|
||||
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||
@Optional() configuration?: Configuration,
|
||||
) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of persons based on a search term for autocomplete functionality.
|
||||
* @endpoint get /api/dfg/persons/autocomplete/selector
|
||||
* @param query A search term to filter persons by (partial matches allowed).
|
||||
* @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 getDfgPersonAutocompleteForSelector(
|
||||
query?: string,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>query,
|
||||
'query',
|
||||
);
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Returns a list of persons based on a search term for autocomplete functionality.
|
||||
* @endpoint get /api/dfg/persons/autocomplete/selector
|
||||
* @param query A search term to filter persons by (partial matches allowed).
|
||||
* @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 getDfgPersonAutocompleteForSelector(query?: string, observe?: 'body', 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> {
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>query, 'query');
|
||||
|
||||
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 localVarHeaders = this.defaultHeaders;
|
||||
|
||||
let localVarPath = `/api/dfg/persons/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<DfgPersonSummaryPage>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of persons based on their IDs.
|
||||
* @endpoint get /api/dfg/persons/ids
|
||||
* @param personIds A list of person IDs to retrieve.
|
||||
* @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 getDfgPersonsByIds(
|
||||
personIds?: Array<string>,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
if (personIds) {
|
||||
personIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>element,
|
||||
'person_ids',
|
||||
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/dfg/persons/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<DfgPersonSummaryPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
/**
|
||||
* Returns a list of persons based on their IDs.
|
||||
* @endpoint get /api/dfg/persons/ids
|
||||
* @param personIds A list of person IDs to retrieve.
|
||||
* @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 getDfgPersonsByIds(personIds?: Array<string>, observe?: 'body', 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> {
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
if (personIds) {
|
||||
personIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'person_ids');
|
||||
})
|
||||
}
|
||||
|
||||
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/dfg/persons/ids`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<DfgPersonSummaryPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (
|
||||
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||
) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/dfg/persons/ids`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<DfgPersonSummaryPage>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,18 +9,12 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import {
|
||||
HttpClient,
|
||||
HttpHeaders,
|
||||
HttpParams,
|
||||
HttpResponse,
|
||||
HttpEvent,
|
||||
HttpParameterCodec,
|
||||
HttpContext,
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
@@ -30,333 +24,192 @@ import { Institution } from '../model/institution';
|
||||
import { InstitutionPageV2 } from '../model/institutionPageV2';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class InstitutionsV2Service extends BaseService {
|
||||
constructor(
|
||||
protected httpClient: HttpClient,
|
||||
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||
@Optional() configuration?: Configuration,
|
||||
) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of institutions based on a search term for autocomplete functionality.
|
||||
* @endpoint get /api/institutions/v2/autocomplete/selector
|
||||
* @param query A search term to filter institutions by (partial matches allowed).
|
||||
* @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 getInstitutionAutocompleteForSelector(
|
||||
query?: string,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>query,
|
||||
'query',
|
||||
);
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Returns a list of institutions based on a search term for autocomplete functionality.
|
||||
* @endpoint get /api/institutions/v2/autocomplete/selector
|
||||
* @param query A search term to filter institutions by (partial matches allowed).
|
||||
* @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 getInstitutionAutocompleteForSelector(query?: string, observe?: 'body', 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> {
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>query, 'query');
|
||||
|
||||
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 localVarHeaders = this.defaultHeaders;
|
||||
|
||||
let localVarPath = `/api/institutions/v2/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<InstitutionPageV2>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an institution based on its ID.
|
||||
* @endpoint get /api/institutions/v2/single/{institution_id}
|
||||
* @param institutionId The ID of the institution to retrieve.
|
||||
* @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 getInstitutionById2(
|
||||
institutionId: string,
|
||||
observe?: 'body',
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter institutionId was null or undefined when calling getInstitutionById2.',
|
||||
);
|
||||
}
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
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();
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
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/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;
|
||||
return this.httpClient.request<Institution>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of institutions based on their IDs.
|
||||
* @endpoint get /api/institutions/v2/multiple/ids
|
||||
* @param institutionIds A list of institution IDs to retrieve.
|
||||
* @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 getInstitutionsByIds(
|
||||
institutionIds?: Array<string>,
|
||||
observe?: 'body',
|
||||
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 });
|
||||
if (institutionIds) {
|
||||
institutionIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>element,
|
||||
'institution_ids',
|
||||
let localVarPath = `/api/institutions/v2/autocomplete/selector`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<InstitutionPageV2>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
/**
|
||||
* Returns an institution based on its ID.
|
||||
* @endpoint get /api/institutions/v2/single/{institution_id}
|
||||
* @param institutionId The ID of the institution to retrieve.
|
||||
* @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 getInstitutionById2(institutionId: string, observe?: 'body', 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) {
|
||||
throw new Error('Required parameter institutionId was null or undefined when calling getInstitutionById2.');
|
||||
}
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/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;
|
||||
return this.httpClient.request<Institution>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Returns a list of institutions based on their IDs.
|
||||
* @endpoint get /api/institutions/v2/multiple/ids
|
||||
* @param institutionIds A list of institution IDs to retrieve.
|
||||
* @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 getInstitutionsByIds(institutionIds?: Array<string>, observe?: 'body', 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> {
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
if (institutionIds) {
|
||||
institutionIds.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'institution_ids');
|
||||
})
|
||||
}
|
||||
|
||||
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 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/institutions/v2/multiple/ids`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<InstitutionPageV2>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
let localVarPath = `/api/institutions/v2/multiple/ids`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<InstitutionPageV2>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,579 @@
|
||||
/**
|
||||
* 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 { CareerBucket } from '../model/careerBucket';
|
||||
// @ts-ignore
|
||||
import { EgoNetwork } from '../model/egoNetwork';
|
||||
// @ts-ignore
|
||||
import { FounderCandidatePage } from '../model/founderCandidatePage';
|
||||
// @ts-ignore
|
||||
import { FounderModelInfo } from '../model/founderModelInfo';
|
||||
// @ts-ignore
|
||||
import { FounderSortBy } from '../model/founderSortBy';
|
||||
// @ts-ignore
|
||||
import { FounderStatistics } from '../model/founderStatistics';
|
||||
// @ts-ignore
|
||||
import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
// @ts-ignore
|
||||
import { MultiplierTag } from '../model/multiplierTag';
|
||||
// @ts-ignore
|
||||
import { PeerRankField } from '../model/peerRankField';
|
||||
// @ts-ignore
|
||||
import { ResearcherDetail } from '../model/researcherDetail';
|
||||
// @ts-ignore
|
||||
import { ResearcherSortBy } from '../model/researcherSortBy';
|
||||
// @ts-ignore
|
||||
import { ResearcherSummaryPage } from '../model/researcherSummaryPage';
|
||||
// @ts-ignore
|
||||
import { Showcase } from '../model/showcase';
|
||||
// @ts-ignore
|
||||
import { SortDirection } from '../model/sortDirection';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class MultiplicatorsService extends BaseService {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Which model produced the founder scores: performance and permutation importances. Identical for every university.
|
||||
* @endpoint get /api/multiplicators/founder-model-info
|
||||
* @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 getFounderModelInfo(secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<FounderModelInfo>;
|
||||
public getFounderModelInfo(secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<FounderModelInfo>>;
|
||||
public getFounderModelInfo(secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<FounderModelInfo>>;
|
||||
public getFounderModelInfo(secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/multiplicators/founder-model-info`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<FounderModelInfo>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Founder-potential statistics for the current user\'s university: data-quality funnel, score distributions per career stage, research-area composition and archetype overlap.
|
||||
* @endpoint get /api/multiplicators/founder-statistics
|
||||
* @param percentileThreshold Founder percentile (0-100) at or above which a researcher counts as shortlisted.
|
||||
* @param minPublications Minimum publication count for the robust shortlist and the funnel\'s last stage.
|
||||
* @param softPeerRankThreshold Sub-score (0-1) at or above which a shortlisted researcher counts as a soft archetype match.
|
||||
* @param maxCareerAge Career ages above this count as implausible in the screen.
|
||||
* @param taggedBand Founder percentile band used in the reverse archetype view (how many tagged people exceed it).
|
||||
* @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 getFounderStatistics(percentileThreshold?: number, minPublications?: number, softPeerRankThreshold?: number, maxCareerAge?: number, taggedBand?: number, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<FounderStatistics>;
|
||||
public getFounderStatistics(percentileThreshold?: number, minPublications?: number, softPeerRankThreshold?: number, maxCareerAge?: number, taggedBand?: number, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<FounderStatistics>>;
|
||||
public getFounderStatistics(percentileThreshold?: number, minPublications?: number, softPeerRankThreshold?: number, maxCareerAge?: number, taggedBand?: number, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<FounderStatistics>>;
|
||||
public getFounderStatistics(percentileThreshold?: number, minPublications?: number, softPeerRankThreshold?: number, maxCareerAge?: number, taggedBand?: number, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>percentileThreshold, 'percentile_threshold');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>minPublications, 'min_publications');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>softPeerRankThreshold, 'soft_peer_rank_threshold');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>maxCareerAge, 'max_career_age');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>taggedBand, 'tagged_band');
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/multiplicators/founder-statistics`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<FounderStatistics>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Full multiplier and founder-potential detail for one researcher: every raw metric next to its peer rank, so a coach can see why the person scored what they scored.
|
||||
* @endpoint get /api/multiplicators/researchers/{author_id}
|
||||
* @param authorId The OpenAlex author id, short form (e.g. A5087456839) or full URL.
|
||||
* @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 getMultiplicatorResearcher(authorId: string, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<ResearcherDetail>;
|
||||
public getMultiplicatorResearcher(authorId: string, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ResearcherDetail>>;
|
||||
public getMultiplicatorResearcher(authorId: string, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ResearcherDetail>>;
|
||||
public getMultiplicatorResearcher(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) {
|
||||
throw new Error('Required parameter authorId was null or undefined when calling getMultiplicatorResearcher.');
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/multiplicators/researchers/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<ResearcherDetail>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* One researcher\'s ego co-author network (nodes and edges, no layout - position them client-side with a force layout).
|
||||
* @endpoint get /api/multiplicators/researchers/{author_id}/network
|
||||
* @param authorId The OpenAlex author id, short form (e.g. A5087456839) or full URL.
|
||||
* @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 getMultiplicatorResearcherNetwork(authorId: string, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<EgoNetwork>;
|
||||
public getMultiplicatorResearcherNetwork(authorId: string, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<EgoNetwork>>;
|
||||
public getMultiplicatorResearcherNetwork(authorId: string, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<EgoNetwork>>;
|
||||
public getMultiplicatorResearcherNetwork(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) {
|
||||
throw new Error('Required parameter authorId was null or undefined when calling getMultiplicatorResearcherNetwork.');
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/multiplicators/researchers/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/network`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<EgoNetwork>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Four representative researchers: the top bridger, mentor and amplifier, plus the best scorer who just misses the tag threshold.
|
||||
* @endpoint get /api/multiplicators/showcase
|
||||
* @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 getMultiplicatorShowcase(secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Showcase>;
|
||||
public getMultiplicatorShowcase(secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Showcase>>;
|
||||
public getMultiplicatorShowcase(secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Showcase>>;
|
||||
public getMultiplicatorShowcase(secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/multiplicators/showcase`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Showcase>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Search the current university\'s researchers by founder potential.
|
||||
* @endpoint get /api/multiplicators/founders
|
||||
* @param page The page number to retrieve. (0-based)
|
||||
* @param size The number of researchers to retrieve per page.
|
||||
* @param inPopulation Restrict to researchers the model can score (default). Pass false for the unscored, or leave unset for everyone.
|
||||
* @param minExternalPercentile Minimum founder percentile (0-100, vs the external reference cohort).
|
||||
* @param maxExternalPercentile Maximum founder percentile (0-100).
|
||||
* @param careerBucket Career stages to include.
|
||||
* @param screened true: only researchers passing the data-quality screen; false: only the rejects; unset: everyone.
|
||||
* @param minPublications Minimum publication count.
|
||||
* @param hasPatents Whether the researcher has at least one patent.
|
||||
* @param researchArea Dimensions FOR 2-digit division codes to include (e.g. 32, 40).
|
||||
* @param tags Multiplier tags to include (any-of semantics).
|
||||
* @param name A name to filter by (prefix matches allowed).
|
||||
* @param screenMinPublications Publication count below which the screen flags a thin profile.
|
||||
* @param screenMaxCareerAge Career age above which the screen flags an implausible length.
|
||||
* @param sortBy The field to sort by.
|
||||
* @param sortOrder The order to sort by.
|
||||
* @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 searchFounderCandidates(page?: number, size?: number, inPopulation?: boolean, minExternalPercentile?: number, maxExternalPercentile?: number, careerBucket?: Array<CareerBucket>, screened?: boolean, minPublications?: number, hasPatents?: boolean, researchArea?: Array<string>, tags?: Array<MultiplierTag>, name?: string, screenMinPublications?: number, screenMaxCareerAge?: number, sortBy?: FounderSortBy, sortOrder?: SortDirection, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<FounderCandidatePage>;
|
||||
public searchFounderCandidates(page?: number, size?: number, inPopulation?: boolean, minExternalPercentile?: number, maxExternalPercentile?: number, careerBucket?: Array<CareerBucket>, screened?: boolean, minPublications?: number, hasPatents?: boolean, researchArea?: Array<string>, tags?: Array<MultiplierTag>, name?: string, screenMinPublications?: number, screenMaxCareerAge?: number, sortBy?: FounderSortBy, sortOrder?: SortDirection, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<FounderCandidatePage>>;
|
||||
public searchFounderCandidates(page?: number, size?: number, inPopulation?: boolean, minExternalPercentile?: number, maxExternalPercentile?: number, careerBucket?: Array<CareerBucket>, screened?: boolean, minPublications?: number, hasPatents?: boolean, researchArea?: Array<string>, tags?: Array<MultiplierTag>, name?: string, screenMinPublications?: number, screenMaxCareerAge?: number, sortBy?: FounderSortBy, sortOrder?: SortDirection, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<FounderCandidatePage>>;
|
||||
public searchFounderCandidates(page?: number, size?: number, inPopulation?: boolean, minExternalPercentile?: number, maxExternalPercentile?: number, careerBucket?: Array<CareerBucket>, screened?: boolean, minPublications?: number, hasPatents?: boolean, researchArea?: Array<string>, tags?: Array<MultiplierTag>, name?: string, screenMinPublications?: number, screenMaxCareerAge?: number, sortBy?: FounderSortBy, sortOrder?: SortDirection, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>page, 'page');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>size, 'size');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>inPopulation, 'in_population');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>minExternalPercentile, 'min_external_percentile');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>maxExternalPercentile, 'max_external_percentile');
|
||||
if (careerBucket) {
|
||||
careerBucket.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'career_bucket');
|
||||
})
|
||||
}
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>screened, 'screened');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>minPublications, 'min_publications');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>hasPatents, 'has_patents');
|
||||
if (researchArea) {
|
||||
researchArea.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'research_area');
|
||||
})
|
||||
}
|
||||
if (tags) {
|
||||
tags.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'tags');
|
||||
})
|
||||
}
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>name, 'name');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>screenMinPublications, 'screen_min_publications');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>screenMaxCareerAge, 'screen_max_career_age');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>sortBy, 'sort_by');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>sortOrder, 'sort_order');
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/multiplicators/founders`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<FounderCandidatePage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Search the current university\'s researchers by multiplier archetype (bridger / mentor / amplifier).
|
||||
* @endpoint get /api/multiplicators/researchers
|
||||
* @param page The page number to retrieve. (0-based)
|
||||
* @param size The number of researchers to retrieve per page.
|
||||
* @param tags Multiplier tags to include (any-of semantics).
|
||||
* @param careerBucket Career stages to include.
|
||||
* @param minPeerRank Minimum sub-score (0-1, ranked against same-career-stage peers).
|
||||
* @param peerRankField Which sub-score `min_peer_rank` applies to.
|
||||
* @param suspiciousProfile Filter by the merged-profile flag.
|
||||
* @param name A name to filter by (prefix matches allowed).
|
||||
* @param sortBy The sub-score to sort by.
|
||||
* @param sortOrder The order to sort by.
|
||||
* @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 searchMultiplicatorResearchers(page?: number, size?: number, tags?: Array<MultiplierTag>, careerBucket?: Array<CareerBucket>, minPeerRank?: number, peerRankField?: PeerRankField, suspiciousProfile?: boolean, name?: string, sortBy?: ResearcherSortBy, sortOrder?: SortDirection, secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<ResearcherSummaryPage>;
|
||||
public searchMultiplicatorResearchers(page?: number, size?: number, tags?: Array<MultiplierTag>, careerBucket?: Array<CareerBucket>, minPeerRank?: number, peerRankField?: PeerRankField, suspiciousProfile?: boolean, name?: string, sortBy?: ResearcherSortBy, sortOrder?: SortDirection, secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ResearcherSummaryPage>>;
|
||||
public searchMultiplicatorResearchers(page?: number, size?: number, tags?: Array<MultiplierTag>, careerBucket?: Array<CareerBucket>, minPeerRank?: number, peerRankField?: PeerRankField, suspiciousProfile?: boolean, name?: string, sortBy?: ResearcherSortBy, sortOrder?: SortDirection, secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ResearcherSummaryPage>>;
|
||||
public searchMultiplicatorResearchers(page?: number, size?: number, tags?: Array<MultiplierTag>, careerBucket?: Array<CareerBucket>, minPeerRank?: number, peerRankField?: PeerRankField, suspiciousProfile?: boolean, name?: string, sortBy?: ResearcherSortBy, sortOrder?: SortDirection, secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>page, 'page');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>size, 'size');
|
||||
if (tags) {
|
||||
tags.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'tags');
|
||||
})
|
||||
}
|
||||
if (careerBucket) {
|
||||
careerBucket.forEach((element) => {
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>element, 'career_bucket');
|
||||
})
|
||||
}
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>minPeerRank, 'min_peer_rank');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>peerRankField, 'peer_rank_field');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>suspiciousProfile, 'suspicious_profile');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>name, 'name');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>sortBy, 'sort_by');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>sortOrder, 'sort_order');
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
// authentication (HTTPBearer) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('HTTPBearer', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/multiplicators/researchers`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<ResearcherSummaryPage>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
+716
-1540
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -2251,8 +2251,8 @@ export class OrgminerService extends BaseService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Submits a suggestion or, for managers, updates the active hierarchy.
|
||||
* Users submit suggestions (max. 3 per account and day); managers update the active hierarchy.
|
||||
* Creates or updates a hierarchy suggestion.
|
||||
* Admins can create one suggestion and update it until it is reviewed.
|
||||
* @endpoint post /api/orgminer/save-hierarchy
|
||||
* @param requestBody
|
||||
* @param secureFgpAcc
|
||||
@@ -2379,8 +2379,8 @@ export class OrgminerService extends BaseService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Submits a suggestion or, for managers, updates the active hierarchy.
|
||||
* Users submit suggestions (max. 3 per account and day); managers update the active hierarchy.
|
||||
* Creates or updates a hierarchy suggestion.
|
||||
* Admins can create one suggestion and update it until it is reviewed.
|
||||
* @endpoint post /api/orgminer/save-hierarchy
|
||||
* @param requestBody
|
||||
* @param secureFgpAcc
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+1131
-2300
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,18 +9,12 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import {
|
||||
HttpClient,
|
||||
HttpHeaders,
|
||||
HttpParams,
|
||||
HttpResponse,
|
||||
HttpEvent,
|
||||
HttpParameterCodec,
|
||||
HttpContext,
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from '../encoder';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { AutocompleteResponse } from '../model/autocompleteResponse';
|
||||
@@ -34,610 +28,309 @@ import { KeywordsTopicsResponse } from '../model/keywordsTopicsResponse';
|
||||
import { TopicsListResponse } from '../model/topicsListResponse';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class TopicsService extends BaseService {
|
||||
constructor(
|
||||
protected httpClient: HttpClient,
|
||||
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
||||
@Optional() configuration?: Configuration,
|
||||
) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns topic options for autocomplete inputs.
|
||||
* @endpoint get /api/topics/autocomplete
|
||||
* @param query Topic search text, for example \'machine learning\'.
|
||||
* @param domainId Optional OpenAlex domain id filter.
|
||||
* @param fieldId Optional OpenAlex field id filter.
|
||||
* @param subfieldId Optional OpenAlex subfield id filter.
|
||||
* @param limit Maximum number of autocomplete options.
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public 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(
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter query was null or undefined when calling autocompleteTopics.',
|
||||
);
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>query,
|
||||
'query',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>domainId,
|
||||
'domainId',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>fieldId,
|
||||
'fieldId',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>subfieldId,
|
||||
'subfieldId',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>limit,
|
||||
'limit',
|
||||
);
|
||||
/**
|
||||
* Returns topic options for autocomplete inputs.
|
||||
* @endpoint get /api/topics/autocomplete
|
||||
* @param query Topic search text, for example \'machine learning\'.
|
||||
* @param domainId Optional OpenAlex domain id filter.
|
||||
* @param fieldId Optional OpenAlex field id filter.
|
||||
* @param subfieldId Optional OpenAlex subfield id filter.
|
||||
* @param limit Maximum number of autocomplete options.
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public 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(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) {
|
||||
throw new Error('Required parameter query was null or undefined when calling autocompleteTopics.');
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>query, 'query');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>domainId, 'domainId');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>fieldId, 'fieldId');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>subfieldId, 'subfieldId');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>limit, 'limit');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/topics/autocomplete`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<AutocompleteResponse>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Returns a list of OpenAlex topics.
|
||||
* @endpoint get /api/topics
|
||||
* @param search Full-text search, for example \'machine learning\'.
|
||||
* @param filter OpenAlex filter, for example \'domain.id:1,works_count:>1000\'.
|
||||
* @param sort Sort field, for example \'works_count:desc\'.
|
||||
* @param groupBy OpenAlex group_by field, for example \'domain.id\'.
|
||||
* @param perPage Results per page.
|
||||
* @param page Page number. Use cursor for deep pagination.
|
||||
* @param cursor Cursor pagination token. Use \'*\' to start.
|
||||
* @param sample Random sample size. Cannot be combined with sort or page.
|
||||
* @param select Comma-separated fields to return.
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public 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(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> {
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>search, 'search');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>filter, 'filter');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>sort, 'sort');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>groupBy, 'group_by');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>perPage, 'per_page');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>page, 'page');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>cursor, 'cursor');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>sample, 'sample');
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>select, 'select');
|
||||
|
||||
let 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 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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<TopicsListResponse>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
let localVarPath = `/api/topics/autocomplete`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<AutocompleteResponse>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Semantic / vector search for topics using a keyword/sentence.
|
||||
* @endpoint get /api/topics/vector-search
|
||||
* @param query Word or sentence to search by similarity.
|
||||
* @param limit Maximum number of topics to return.
|
||||
* @param searchType Search approach: \'hybrid\' or \'semantic\'.
|
||||
* @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 vectorSearchTopics(query: string, limit?: number, 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) {
|
||||
throw new Error('Required parameter query was null or undefined when calling vectorSearchTopics.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of OpenAlex topics.
|
||||
* @endpoint get /api/topics
|
||||
* @param search Full-text search, for example \'machine learning\'.
|
||||
* @param filter OpenAlex filter, for example \'domain.id:1,works_count:>1000\'.
|
||||
* @param sort Sort field, for example \'works_count:desc\'.
|
||||
* @param groupBy OpenAlex group_by field, for example \'domain.id\'.
|
||||
* @param perPage Results per page.
|
||||
* @param page Page number. Use cursor for deep pagination.
|
||||
* @param cursor Cursor pagination token. Use \'*\' to start.
|
||||
* @param sample Random sample size. Cannot be combined with sort or page.
|
||||
* @param select Comma-separated fields to return.
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public 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(
|
||||
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 });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>search,
|
||||
'search',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>filter,
|
||||
'filter',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>sort,
|
||||
'sort',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>groupBy,
|
||||
'group_by',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>perPage,
|
||||
'per_page',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>page,
|
||||
'page',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>cursor,
|
||||
'cursor',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>sample,
|
||||
'sample',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>select,
|
||||
'select',
|
||||
);
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>query, 'query');
|
||||
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(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
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/vector-search`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<TopicsListResponse>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
/**
|
||||
* Batch semantic / vector search for multiple keywords.
|
||||
* @endpoint post /api/topics/vector-search/batch
|
||||
* @param keywordsTopicsRequest
|
||||
* @param searchType Search approach: \'hybrid\' or \'semantic\'.
|
||||
* @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 vectorSearchTopicsBatch(keywordsTopicsRequest: KeywordsTopicsRequest, searchType?: string, 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) {
|
||||
throw new Error('Required parameter keywordsTopicsRequest was null or undefined when calling vectorSearchTopicsBatch.');
|
||||
}
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
||||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
||||
<any>searchType, 'searchType');
|
||||
|
||||
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 localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
||||
}
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/topics/vector-search/batch`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<KeywordsTopicsResponse>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: keywordsTopicsRequest,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
let localVarPath = `/api/topics`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<TopicsListResponse>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Semantic / vector search for topics using a keyword/sentence.
|
||||
* @endpoint get /api/topics/vector-search
|
||||
* @param query Word or sentence to search by similarity.
|
||||
* @param limit Maximum number of topics to return.
|
||||
* @param searchType Search approach: \'hybrid\' or \'semantic\'.
|
||||
* @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 vectorSearchTopics(
|
||||
query: string,
|
||||
limit?: number,
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter query was null or undefined when calling vectorSearchTopics.',
|
||||
);
|
||||
}
|
||||
|
||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>query,
|
||||
'query',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>limit,
|
||||
'limit',
|
||||
);
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>searchType,
|
||||
'searchType',
|
||||
);
|
||||
|
||||
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/vector-search`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<TopicsListResponse>(
|
||||
'get',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Batch semantic / vector search for multiple keywords.
|
||||
* @endpoint post /api/topics/vector-search/batch
|
||||
* @param keywordsTopicsRequest
|
||||
* @param searchType Search approach: \'hybrid\' or \'semantic\'.
|
||||
* @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 vectorSearchTopicsBatch(
|
||||
keywordsTopicsRequest: KeywordsTopicsRequest,
|
||||
searchType?: string,
|
||||
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) {
|
||||
throw new Error(
|
||||
'Required parameter keywordsTopicsRequest was null or undefined when calling vectorSearchTopicsBatch.',
|
||||
);
|
||||
}
|
||||
|
||||
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
||||
localVarQueryParameters = this.addToHttpParams(
|
||||
localVarQueryParameters,
|
||||
<any>searchType,
|
||||
'searchType',
|
||||
);
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined =
|
||||
options?.httpHeaderAccept ??
|
||||
this.configuration.selectHeaderAccept(['application/json']);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Accept',
|
||||
localVarHttpHeaderAcceptSelected,
|
||||
);
|
||||
}
|
||||
|
||||
const localVarHttpContext: HttpContext =
|
||||
options?.context ?? new HttpContext();
|
||||
|
||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = ['application/json'];
|
||||
const httpContentTypeSelected: string | undefined =
|
||||
this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set(
|
||||
'Content-Type',
|
||||
httpContentTypeSelected,
|
||||
);
|
||||
}
|
||||
|
||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||
if (localVarHttpHeaderAcceptSelected) {
|
||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||
responseType_ = 'text';
|
||||
} else if (
|
||||
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
||||
) {
|
||||
responseType_ = 'json';
|
||||
} else {
|
||||
responseType_ = 'blob';
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/api/topics/vector-search/batch`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<KeywordsTopicsResponse>(
|
||||
'post',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: keywordsTopicsRequest,
|
||||
params: localVarQueryParameters,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined
|
||||
? { transferCache: localVarTransferCache }
|
||||
: {}),
|
||||
reportProgress: reportProgress,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -10,47 +10,51 @@
|
||||
import { TokenType } from './tokenType';
|
||||
import { UserRole } from './userRole';
|
||||
|
||||
export interface AccessToken {
|
||||
/**
|
||||
* The unique identifier of the real account associated with this token.
|
||||
*/
|
||||
real_account_id: string;
|
||||
/**
|
||||
* The timestamp indicating when the token will expire.
|
||||
*/
|
||||
expires_at: string;
|
||||
/**
|
||||
* The epoch value for the token. Used for versioning of tokens.
|
||||
*/
|
||||
epoch?: number;
|
||||
/**
|
||||
* The type of the token, which is always ACCESS_TOKEN for this class.
|
||||
*/
|
||||
token_type?: TokenType;
|
||||
/**
|
||||
* A unique fingerprint of the user, used for additional security checks.
|
||||
*/
|
||||
user_fingerprint_hash: string;
|
||||
/**
|
||||
* The unique identifier of the effective account associated with this access token. This may differ from the real account ID due to account impersonation.
|
||||
*/
|
||||
effective_account_id: string;
|
||||
/**
|
||||
* The specific role this access token grants within its organization.
|
||||
*/
|
||||
effective_role?: UserRole;
|
||||
/**
|
||||
* The roles this access token grants within its organization.
|
||||
*/
|
||||
effective_roles?: Array<UserRole>;
|
||||
/**
|
||||
* The unique identifier of the organization associated with this access token.
|
||||
*/
|
||||
effective_organization_id: string;
|
||||
effective_institution_id?: string | null;
|
||||
/**
|
||||
* The raw string representation of the access token. This is the actual token that can be used for authentication and authorization purposes.
|
||||
*/
|
||||
raw_token: string;
|
||||
|
||||
export interface AccessToken {
|
||||
/**
|
||||
* The unique identifier of the real account associated with this token.
|
||||
*/
|
||||
real_account_id: string;
|
||||
/**
|
||||
* The timestamp indicating when the token will expire.
|
||||
*/
|
||||
expires_at: string;
|
||||
/**
|
||||
* The epoch value for the token. Used for versioning of tokens.
|
||||
*/
|
||||
epoch?: number;
|
||||
/**
|
||||
* The type of the token, which is always ACCESS_TOKEN for this class.
|
||||
*/
|
||||
token_type?: TokenType;
|
||||
/**
|
||||
* A unique fingerprint of the user, used for additional security checks.
|
||||
*/
|
||||
user_fingerprint_hash: string;
|
||||
/**
|
||||
* The unique identifier of the effective account associated with this access token. This may differ from the real account ID due to account impersonation.
|
||||
*/
|
||||
effective_account_id: string;
|
||||
/**
|
||||
* The specific role this access token grants within its organization.
|
||||
*/
|
||||
effective_role?: UserRole;
|
||||
/**
|
||||
* The roles this access token grants within its organization.
|
||||
*/
|
||||
effective_roles?: Array<UserRole>;
|
||||
/**
|
||||
* The unique identifier of the organization associated with this access token.
|
||||
*/
|
||||
effective_organization_id: string;
|
||||
effective_institution_id?: string | null;
|
||||
/**
|
||||
* The raw string representation of the access token. This is the actual token that can be used for authentication and authorization purposes.
|
||||
*/
|
||||
raw_token: string;
|
||||
}
|
||||
export namespace AccessToken {}
|
||||
export namespace AccessToken {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,16 +9,18 @@
|
||||
*/
|
||||
import { UserRole } from './userRole';
|
||||
|
||||
export interface AccountProfile {
|
||||
id: string;
|
||||
email: string;
|
||||
name: string;
|
||||
roles: Array<UserRole>;
|
||||
organization_id: string;
|
||||
organization_name: string;
|
||||
deleted: boolean;
|
||||
activated: boolean;
|
||||
is_current?: boolean;
|
||||
is_real_account?: boolean;
|
||||
is_impersonating?: boolean;
|
||||
|
||||
export interface AccountProfile {
|
||||
id: string;
|
||||
email: string;
|
||||
name: string;
|
||||
roles: Array<UserRole>;
|
||||
organization_id: string;
|
||||
organization_name: string;
|
||||
deleted: boolean;
|
||||
activated: boolean;
|
||||
is_current?: boolean;
|
||||
is_real_account?: boolean;
|
||||
is_impersonating?: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { MultiplierTag } from './multiplierTag';
|
||||
|
||||
|
||||
/**
|
||||
* Overlap between one multiplier archetype and founder potential. Counts are NOT mutually exclusive: a person holding two tags is counted under both, so these do not sum to the shortlist size.
|
||||
*/
|
||||
export interface ArchetypeOverlap {
|
||||
tag: MultiplierTag;
|
||||
/**
|
||||
* Shortlisted people carrying this tag.
|
||||
*/
|
||||
shortlist_count?: number;
|
||||
robust_count?: number;
|
||||
/**
|
||||
* Shortlisted people whose sub-score clears the softer threshold.
|
||||
*/
|
||||
soft_shortlist_count?: number;
|
||||
soft_robust_count?: number;
|
||||
/**
|
||||
* Scoreable people carrying this tag - the reverse direction.
|
||||
*/
|
||||
tagged_in_population?: number;
|
||||
tagged_percentile_p50?: number | null;
|
||||
tagged_percentile_p90?: number | null;
|
||||
/**
|
||||
* Tagged people at or above the `tagged_band` percentile.
|
||||
*/
|
||||
tagged_above_band?: number;
|
||||
}
|
||||
export namespace ArchetypeOverlap {
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,14 +9,18 @@
|
||||
*/
|
||||
import { CompanyStatusFilter } from './companyStatusFilter';
|
||||
|
||||
export interface AuthorMetricsRequest {
|
||||
/**
|
||||
* OpenAlex IDs of the authors.
|
||||
*/
|
||||
author_ids: Array<string>;
|
||||
/**
|
||||
* Which companies to count for the company-foundations metric: \'all\', only \'active\' (non-deleted), or only \'deleted\'.
|
||||
*/
|
||||
company_status?: CompanyStatusFilter;
|
||||
|
||||
export interface AuthorMetricsRequest {
|
||||
/**
|
||||
* OpenAlex IDs of the authors.
|
||||
*/
|
||||
author_ids: Array<string>;
|
||||
/**
|
||||
* Which companies to count for the company-foundations metric: \'all\', only \'active\' (non-deleted), or only \'deleted\'.
|
||||
*/
|
||||
company_status?: CompanyStatusFilter;
|
||||
}
|
||||
export namespace AuthorMetricsRequest {}
|
||||
export namespace AuthorMetricsRequest {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,24 +1,26 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface AuthorNode {
|
||||
/**
|
||||
* The ID of the author.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* The display name of the author.
|
||||
*/
|
||||
display_name: string;
|
||||
/**
|
||||
* IDs of institutions this author is affiliated with.
|
||||
*/
|
||||
institution_ids?: Array<string>;
|
||||
|
||||
export interface AuthorNode {
|
||||
/**
|
||||
* The ID of the author.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* The display name of the author.
|
||||
*/
|
||||
display_name: string;
|
||||
/**
|
||||
* IDs of institutions this author is affiliated with.
|
||||
*/
|
||||
institution_ids?: Array<string>;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,18 +9,22 @@
|
||||
*/
|
||||
import { AuthorOrientationProfileStatus } from './authorOrientationProfileStatus';
|
||||
|
||||
|
||||
/**
|
||||
* Aggregated research-orientation result for one selected author.
|
||||
*/
|
||||
export interface AuthorOrientationProfile {
|
||||
/**
|
||||
* The full OpenAlex author ID.
|
||||
*/
|
||||
author_id: string;
|
||||
status: AuthorOrientationProfileStatus;
|
||||
orientation_score?: number | null;
|
||||
primary_category_counts?: { [key: string]: number } | null;
|
||||
classified_work_count?: number | null;
|
||||
scored_work_count?: number | null;
|
||||
export interface AuthorOrientationProfile {
|
||||
/**
|
||||
* The full OpenAlex author ID.
|
||||
*/
|
||||
author_id: string;
|
||||
status: AuthorOrientationProfileStatus;
|
||||
orientation_score?: number | null;
|
||||
primary_category_counts?: { [key: string]: number; } | null;
|
||||
classified_work_count?: number | null;
|
||||
scored_work_count?: number | null;
|
||||
}
|
||||
export namespace AuthorOrientationProfile {}
|
||||
export namespace AuthorOrientationProfile {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,19 +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.
|
||||
*/
|
||||
|
||||
|
||||
export const AuthorOrientationProfileStatus = {
|
||||
Available: 'available',
|
||||
InsufficientScoredPublications: 'insufficient_scored_publications',
|
||||
NoClassifiedPublications: 'no_classified_publications',
|
||||
NoOrientationScore: 'no_orientation_score',
|
||||
Restricted: 'restricted',
|
||||
Available: 'available',
|
||||
InsufficientScoredPublications: 'insufficient_scored_publications',
|
||||
NoClassifiedPublications: 'no_classified_publications',
|
||||
NoOrientationScore: 'no_orientation_score',
|
||||
Restricted: 'restricted'
|
||||
} as const;
|
||||
export type AuthorOrientationProfileStatus =
|
||||
(typeof AuthorOrientationProfileStatus)[keyof typeof AuthorOrientationProfileStatus];
|
||||
export type AuthorOrientationProfileStatus = typeof AuthorOrientationProfileStatus[keyof typeof AuthorOrientationProfileStatus];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -10,17 +10,19 @@
|
||||
import { Timespan } from './timespan';
|
||||
import { PublicationType } from './publicationType';
|
||||
|
||||
|
||||
/**
|
||||
* Filters used to compare the research orientation of selected authors.
|
||||
*/
|
||||
export interface AuthorOrientationProfilesRequest {
|
||||
/**
|
||||
* One to four unique OpenAlex author IDs.
|
||||
*/
|
||||
author_ids: Array<string>;
|
||||
/**
|
||||
* Optional publication-type filter. Empty means all types.
|
||||
*/
|
||||
publication_types?: Array<PublicationType>;
|
||||
timespan?: Timespan | null;
|
||||
export interface AuthorOrientationProfilesRequest {
|
||||
/**
|
||||
* One to four unique OpenAlex author IDs.
|
||||
*/
|
||||
author_ids: Array<string>;
|
||||
/**
|
||||
* Optional publication-type filter. Empty means all types.
|
||||
*/
|
||||
publication_types?: Array<PublicationType>;
|
||||
timespan?: Timespan | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,24 +9,26 @@
|
||||
*/
|
||||
import { Author } from './author';
|
||||
|
||||
|
||||
/**
|
||||
* A paginated response containing a list of authors.
|
||||
*/
|
||||
export interface AuthorPage {
|
||||
/**
|
||||
* The elements of the page.
|
||||
*/
|
||||
elements?: Array<Author>;
|
||||
/**
|
||||
* The page number. (0-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The page size in elements.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of elements.
|
||||
*/
|
||||
total?: number;
|
||||
export interface AuthorPage {
|
||||
/**
|
||||
* The elements of the page.
|
||||
*/
|
||||
elements?: Array<Author>;
|
||||
/**
|
||||
* The page number. (0-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The page size in elements.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of elements.
|
||||
*/
|
||||
total?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,35 +1,37 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Section 2: author-level stats independent of any keyword/topic/time filter.
|
||||
*/
|
||||
export interface AuthorStaticStats {
|
||||
/**
|
||||
* The OpenAlex ID of the author.
|
||||
*/
|
||||
author_id: string;
|
||||
/**
|
||||
* The name of the author.
|
||||
*/
|
||||
display_name: string;
|
||||
/**
|
||||
* Number of Handelsregister company connections matched by the author\'s name.
|
||||
*/
|
||||
companies_count: number;
|
||||
/**
|
||||
* Number of news articles that mention the author by exact name.
|
||||
*/
|
||||
news_count: number;
|
||||
/**
|
||||
* Number of patents matched to the author (from the org_patents index).
|
||||
*/
|
||||
patents_count: number;
|
||||
export interface AuthorStaticStats {
|
||||
/**
|
||||
* The OpenAlex ID of the author.
|
||||
*/
|
||||
author_id: string;
|
||||
/**
|
||||
* The name of the author.
|
||||
*/
|
||||
display_name: string;
|
||||
/**
|
||||
* Number of Handelsregister company connections matched by the author\'s name.
|
||||
*/
|
||||
companies_count: number;
|
||||
/**
|
||||
* Number of news articles that mention the author by exact name.
|
||||
*/
|
||||
news_count: number;
|
||||
/**
|
||||
* Number of patents matched to the author (from the org_patents index).
|
||||
*/
|
||||
patents_count: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,85 +1,87 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Section 1: combined stats over an author\'s works that match the topic filter.
|
||||
*/
|
||||
export interface AuthorTopicStats {
|
||||
/**
|
||||
* The OpenAlex ID of the author.
|
||||
*/
|
||||
author_id: string;
|
||||
/**
|
||||
* The name of the author.
|
||||
*/
|
||||
display_name: string;
|
||||
/**
|
||||
* Number of the author\'s works matching the topic filter.
|
||||
*/
|
||||
works_total: number;
|
||||
/**
|
||||
* Number of the author\'s topic works where they are the corresponding author.
|
||||
*/
|
||||
corresponding_count: number;
|
||||
/**
|
||||
* Average field-normalized citation percentile (0-1) over the author\'s topic works.
|
||||
*/
|
||||
avg_percentile: number;
|
||||
/**
|
||||
* Number of the author\'s topic works in the top 1% most-cited.
|
||||
*/
|
||||
top1_count: number;
|
||||
/**
|
||||
* Number of the author\'s topic works in the top 10% most-cited.
|
||||
*/
|
||||
top10_count: number;
|
||||
/**
|
||||
* Number of the author\'s topic works with a field-weighted citation impact (FWCI) above 1 (cited more than the field/year/type average).
|
||||
*/
|
||||
fwci_above_one_count?: number;
|
||||
/**
|
||||
* Total citations across the author\'s topic works.
|
||||
*/
|
||||
citations_total?: number;
|
||||
/**
|
||||
* Average citations per topic work.
|
||||
*/
|
||||
avg_citations?: number;
|
||||
/**
|
||||
* Citations of the author\'s most-cited topic work.
|
||||
*/
|
||||
max_citations?: number;
|
||||
/**
|
||||
* h-index over the author\'s topic works (capped at 100).
|
||||
*/
|
||||
h_index?: number;
|
||||
/**
|
||||
* Average field-weighted citation impact (FWCI) over the author\'s topic works; works without an FWCI value are excluded.
|
||||
*/
|
||||
avg_fwci?: number;
|
||||
/**
|
||||
* Number of the author\'s topic works with at least one co-author institution of type \'company\'.
|
||||
*/
|
||||
industry_works_count?: number;
|
||||
first_year?: number | null;
|
||||
last_year?: number | null;
|
||||
/**
|
||||
* Number of the author\'s topic works where they are the first author.
|
||||
*/
|
||||
first_author_count?: number;
|
||||
/**
|
||||
* Number of the author\'s topic works where they are a middle author.
|
||||
*/
|
||||
middle_author_count?: number;
|
||||
/**
|
||||
* Number of the author\'s topic works where they are the last author.
|
||||
*/
|
||||
last_author_count?: number;
|
||||
export interface AuthorTopicStats {
|
||||
/**
|
||||
* The OpenAlex ID of the author.
|
||||
*/
|
||||
author_id: string;
|
||||
/**
|
||||
* The name of the author.
|
||||
*/
|
||||
display_name: string;
|
||||
/**
|
||||
* Number of the author\'s works matching the topic filter.
|
||||
*/
|
||||
works_total: number;
|
||||
/**
|
||||
* Number of the author\'s topic works where they are the corresponding author.
|
||||
*/
|
||||
corresponding_count: number;
|
||||
/**
|
||||
* Average field-normalized citation percentile (0-1) over the author\'s topic works.
|
||||
*/
|
||||
avg_percentile: number;
|
||||
/**
|
||||
* Number of the author\'s topic works in the top 1% most-cited.
|
||||
*/
|
||||
top1_count: number;
|
||||
/**
|
||||
* Number of the author\'s topic works in the top 10% most-cited.
|
||||
*/
|
||||
top10_count: number;
|
||||
/**
|
||||
* Number of the author\'s topic works with a field-weighted citation impact (FWCI) above 1 (cited more than the field/year/type average).
|
||||
*/
|
||||
fwci_above_one_count?: number;
|
||||
/**
|
||||
* Total citations across the author\'s topic works.
|
||||
*/
|
||||
citations_total?: number;
|
||||
/**
|
||||
* Average citations per topic work.
|
||||
*/
|
||||
avg_citations?: number;
|
||||
/**
|
||||
* Citations of the author\'s most-cited topic work.
|
||||
*/
|
||||
max_citations?: number;
|
||||
/**
|
||||
* h-index over the author\'s topic works (capped at 100).
|
||||
*/
|
||||
h_index?: number;
|
||||
/**
|
||||
* Average field-weighted citation impact (FWCI) over the author\'s topic works; works without an FWCI value are excluded.
|
||||
*/
|
||||
avg_fwci?: number;
|
||||
/**
|
||||
* Number of the author\'s topic works with at least one co-author institution of type \'company\'.
|
||||
*/
|
||||
industry_works_count?: number;
|
||||
first_year?: number | null;
|
||||
last_year?: number | null;
|
||||
/**
|
||||
* Number of the author\'s topic works where they are the first author.
|
||||
*/
|
||||
first_author_count?: number;
|
||||
/**
|
||||
* Number of the author\'s topic works where they are a middle author.
|
||||
*/
|
||||
middle_author_count?: number;
|
||||
/**
|
||||
* Number of the author\'s topic works where they are the last author.
|
||||
*/
|
||||
last_author_count?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface AvailableImages {
|
||||
images: Array<string>;
|
||||
detail?: string;
|
||||
|
||||
export interface AvailableImages {
|
||||
images: Array<string>;
|
||||
detail?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface BmbfProjectStatusStatistics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
ongoing: number;
|
||||
upcoming: number;
|
||||
completed: number;
|
||||
|
||||
export interface BmbfProjectStatusStatistics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
ongoing: number;
|
||||
upcoming: number;
|
||||
completed: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface BodyValidatePasswordResetToken {
|
||||
/**
|
||||
* Password reset token from the reset link
|
||||
*/
|
||||
reset_token: string;
|
||||
|
||||
export interface BodyValidatePasswordResetToken {
|
||||
/**
|
||||
* Password reset token from the reset link
|
||||
*/
|
||||
reset_token: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,23 +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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* 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).
|
||||
*/
|
||||
export interface BundInstitutionSummary {
|
||||
department?: string | null;
|
||||
department_fullname?: string | null;
|
||||
name?: string | null;
|
||||
recepient?: string | null;
|
||||
municipality?: string | null;
|
||||
place?: string | null;
|
||||
state?: string | null;
|
||||
country?: string | null;
|
||||
export interface BundInstitutionSummary {
|
||||
department?: string | null;
|
||||
department_fullname?: string | null;
|
||||
name?: string | null;
|
||||
recepient?: string | null;
|
||||
municipality?: string | null;
|
||||
place?: string | null;
|
||||
state?: string | null;
|
||||
country?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,24 +9,26 @@
|
||||
*/
|
||||
import { BundInstitutionSummary } from './bundInstitutionSummary';
|
||||
|
||||
|
||||
/**
|
||||
* A paginated response containing a list of institutions.
|
||||
*/
|
||||
export interface BundInstitutionSummaryPage {
|
||||
/**
|
||||
* The elements of the page.
|
||||
*/
|
||||
elements?: Array<BundInstitutionSummary>;
|
||||
/**
|
||||
* The page number. (0-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The page size in elements.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of elements.
|
||||
*/
|
||||
total?: number;
|
||||
export interface BundInstitutionSummaryPage {
|
||||
/**
|
||||
* The elements of the page.
|
||||
*/
|
||||
elements?: Array<BundInstitutionSummary>;
|
||||
/**
|
||||
* The page number. (0-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The page size in elements.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of elements.
|
||||
*/
|
||||
total?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,49 +9,51 @@
|
||||
*/
|
||||
import { Topic } from './topic';
|
||||
|
||||
|
||||
/**
|
||||
* Clean summary model for a Bund (federal) project, consolidating all fields into semantic English names with proper native types.
|
||||
*/
|
||||
export interface BundProjectDetails {
|
||||
/**
|
||||
* The ID of the Bund project
|
||||
*/
|
||||
id: string;
|
||||
funding_reference?: string | null;
|
||||
title?: string | null;
|
||||
description?: string | null;
|
||||
joint_project?: string | null;
|
||||
funding_type?: string | null;
|
||||
funding_profile?: string | null;
|
||||
funding_amount?: number | null;
|
||||
funding_start_date?: string | null;
|
||||
funding_end_date?: string | null;
|
||||
duration?: string | null;
|
||||
performance_plan_code?: string | null;
|
||||
performance_plan_fullname?: string | null;
|
||||
executing_agency?: string | null;
|
||||
funding_recipient?: string | null;
|
||||
project_agency?: string | null;
|
||||
project_agency_fullname?: string | null;
|
||||
department?: string | null;
|
||||
department_fullname?: string | null;
|
||||
division?: string | null;
|
||||
location?: string | null;
|
||||
municipality?: string | null;
|
||||
state?: string | null;
|
||||
country?: string | null;
|
||||
municipality_code?: string | null;
|
||||
publication_date?: string | null;
|
||||
is_new?: boolean | null;
|
||||
record_date?: string | null;
|
||||
unix_timestamp?: number | null;
|
||||
/**
|
||||
* All persons associated with the Bund project (from nested Arb object)
|
||||
*/
|
||||
associated_persons?: Array<string>;
|
||||
/**
|
||||
* All institutions associated with the Bund project
|
||||
*/
|
||||
institutions?: Array<string>;
|
||||
oa_topics?: Array<Topic> | null;
|
||||
export interface BundProjectDetails {
|
||||
/**
|
||||
* The ID of the Bund project
|
||||
*/
|
||||
id: string;
|
||||
funding_reference?: string | null;
|
||||
title?: string | null;
|
||||
description?: string | null;
|
||||
joint_project?: string | null;
|
||||
funding_type?: string | null;
|
||||
funding_profile?: string | null;
|
||||
funding_amount?: number | null;
|
||||
funding_start_date?: string | null;
|
||||
funding_end_date?: string | null;
|
||||
duration?: string | null;
|
||||
performance_plan_code?: string | null;
|
||||
performance_plan_fullname?: string | null;
|
||||
executing_agency?: string | null;
|
||||
funding_recipient?: string | null;
|
||||
project_agency?: string | null;
|
||||
project_agency_fullname?: string | null;
|
||||
department?: string | null;
|
||||
department_fullname?: string | null;
|
||||
division?: string | null;
|
||||
location?: string | null;
|
||||
municipality?: string | null;
|
||||
state?: string | null;
|
||||
country?: string | null;
|
||||
municipality_code?: string | null;
|
||||
publication_date?: string | null;
|
||||
is_new?: boolean | null;
|
||||
record_date?: string | null;
|
||||
unix_timestamp?: number | null;
|
||||
/**
|
||||
* All persons associated with the Bund project (from nested Arb object)
|
||||
*/
|
||||
associated_persons?: Array<string>;
|
||||
/**
|
||||
* All institutions associated with the Bund project
|
||||
*/
|
||||
institutions?: Array<string>;
|
||||
oa_topics?: Array<Topic> | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,31 +1,33 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* 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>;
|
||||
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>;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,21 +9,23 @@
|
||||
*/
|
||||
import { BundProjectSummary } from './bundProjectSummary';
|
||||
|
||||
export interface BundProjectPage {
|
||||
/**
|
||||
* The current page number.
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The requested page size.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of items.
|
||||
*/
|
||||
total?: number;
|
||||
/**
|
||||
* The bund projects on this page.
|
||||
*/
|
||||
elements?: Array<BundProjectSummary>;
|
||||
|
||||
export interface BundProjectPage {
|
||||
/**
|
||||
* The current page number.
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The requested page size.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of items.
|
||||
*/
|
||||
total?: number;
|
||||
/**
|
||||
* The bund projects on this page.
|
||||
*/
|
||||
elements?: Array<BundProjectSummary>;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -11,36 +11,38 @@ import { BundProjectHighlight } from './bundProjectHighlight';
|
||||
import { Topic } from './topic';
|
||||
import { BundInstitutionSummary } from './bundInstitutionSummary';
|
||||
|
||||
export interface BundProjectSummary {
|
||||
funding_code?: string | null;
|
||||
department?: string | null;
|
||||
department_fullname?: string | null;
|
||||
referat?: string | null;
|
||||
project_sponsor?: string | null;
|
||||
project_sponsor_fullname?: string | null;
|
||||
work_unit?: string | null;
|
||||
recipient?: string | null;
|
||||
municipal_code?: string | null;
|
||||
municipality?: string | null;
|
||||
place?: string | null;
|
||||
state?: string | null;
|
||||
country?: string | null;
|
||||
executing_agency?: string | null;
|
||||
topic?: string | null;
|
||||
performance_plan_system?: string | null;
|
||||
performance_plan_system_text?: string | null;
|
||||
funding_start?: string | null;
|
||||
funding_end?: string | null;
|
||||
grant_amount?: number | null;
|
||||
funding_profile?: string | null;
|
||||
joint_project?: string | null;
|
||||
funding_type?: string | null;
|
||||
publication_date?: string | null;
|
||||
unix_timestamp?: number | null;
|
||||
date?: string | null;
|
||||
new?: boolean | null;
|
||||
duration?: string | null;
|
||||
oa_topics?: Array<Topic> | null;
|
||||
institution?: BundInstitutionSummary | null;
|
||||
highlight?: BundProjectHighlight | null;
|
||||
|
||||
export interface BundProjectSummary {
|
||||
funding_code?: string | null;
|
||||
department?: string | null;
|
||||
department_fullname?: string | null;
|
||||
referat?: string | null;
|
||||
project_sponsor?: string | null;
|
||||
project_sponsor_fullname?: string | null;
|
||||
work_unit?: string | null;
|
||||
recipient?: string | null;
|
||||
municipal_code?: string | null;
|
||||
municipality?: string | null;
|
||||
place?: string | null;
|
||||
state?: string | null;
|
||||
country?: string | null;
|
||||
executing_agency?: string | null;
|
||||
topic?: string | null;
|
||||
performance_plan_system?: string | null;
|
||||
performance_plan_system_text?: string | null;
|
||||
funding_start?: string | null;
|
||||
funding_end?: string | null;
|
||||
grant_amount?: number | null;
|
||||
funding_profile?: string | null;
|
||||
joint_project?: string | null;
|
||||
funding_type?: string | null;
|
||||
publication_date?: string | null;
|
||||
unix_timestamp?: number | null;
|
||||
date?: string | null;
|
||||
'new'?: boolean | null;
|
||||
duration?: string | null;
|
||||
oa_topics?: Array<Topic> | null;
|
||||
institution?: BundInstitutionSummary | null;
|
||||
highlight?: BundProjectHighlight | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
export const CareerBucket = {
|
||||
Early: 'Early',
|
||||
Emerging: 'Emerging',
|
||||
Established: 'Established',
|
||||
Senior: 'Senior'
|
||||
} as const;
|
||||
export type CareerBucket = typeof CareerBucket[keyof typeof CareerBucket];
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Founder-score distribution for one career stage (or all of them).
|
||||
*/
|
||||
export interface CareerStageStatistics {
|
||||
/**
|
||||
* A career stage name, or \'ALL\' for the whole cohort.
|
||||
*/
|
||||
career_bucket: string;
|
||||
total?: number;
|
||||
/**
|
||||
* Scoreable researchers - the pool percentiles are drawn from.
|
||||
*/
|
||||
in_population?: number;
|
||||
/**
|
||||
* How many pass the data-quality screen.
|
||||
*/
|
||||
screened?: number;
|
||||
/**
|
||||
* At or above the percentile threshold.
|
||||
*/
|
||||
shortlist_plain?: number;
|
||||
/**
|
||||
* Also meeting the minimum publication count.
|
||||
*/
|
||||
shortlist_robust?: number;
|
||||
percentile_p50?: number | null;
|
||||
percentile_p90?: number | null;
|
||||
above_75?: number;
|
||||
above_90?: number;
|
||||
robust_percentile_p50?: number | null;
|
||||
robust_percentile_p90?: number | null;
|
||||
robust_above_75?: number;
|
||||
robust_above_90?: number;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -12,25 +12,27 @@ import { Edge } from './edge';
|
||||
import { InstitutionNode } from './institutionNode';
|
||||
import { AuthorNode } from './authorNode';
|
||||
|
||||
export interface CollaborationGraph {
|
||||
/**
|
||||
* The ID of the root author.
|
||||
*/
|
||||
root_author_id: string;
|
||||
/**
|
||||
* A list of author nodes.
|
||||
*/
|
||||
authors?: Array<AuthorNode>;
|
||||
/**
|
||||
* A list of institution nodes.
|
||||
*/
|
||||
institutions?: Array<InstitutionNode>;
|
||||
/**
|
||||
* A list of work nodes.
|
||||
*/
|
||||
works?: Array<WorkNode>;
|
||||
/**
|
||||
* A list of edges in the collaboration graph.
|
||||
*/
|
||||
edges?: Array<Edge>;
|
||||
|
||||
export interface CollaborationGraph {
|
||||
/**
|
||||
* The ID of the root author.
|
||||
*/
|
||||
root_author_id: string;
|
||||
/**
|
||||
* A list of author nodes.
|
||||
*/
|
||||
authors?: Array<AuthorNode>;
|
||||
/**
|
||||
* A list of institution nodes.
|
||||
*/
|
||||
institutions?: Array<InstitutionNode>;
|
||||
/**
|
||||
* A list of work nodes.
|
||||
*/
|
||||
works?: Array<WorkNode>;
|
||||
/**
|
||||
* A list of edges in the collaboration graph.
|
||||
*/
|
||||
edges?: Array<Edge>;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
export const CollaborationGraphStatus = {
|
||||
Pending: 'pending',
|
||||
Completed: 'completed',
|
||||
Failed: 'failed',
|
||||
Pending: 'pending',
|
||||
Completed: 'completed',
|
||||
Failed: 'failed'
|
||||
} as const;
|
||||
export type CollaborationGraphStatus =
|
||||
(typeof CollaborationGraphStatus)[keyof typeof CollaborationGraphStatus];
|
||||
export type CollaborationGraphStatus = typeof CollaborationGraphStatus[keyof typeof CollaborationGraphStatus];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -10,12 +10,16 @@
|
||||
import { CollaborationGraph } from './collaborationGraph';
|
||||
import { CollaborationGraphStatus } from './collaborationGraphStatus';
|
||||
|
||||
export interface CollaborationGraphStatusResponse {
|
||||
/**
|
||||
* The status of the collaboration graph.
|
||||
*/
|
||||
status: CollaborationGraphStatus;
|
||||
result?: CollaborationGraph | null;
|
||||
error_message?: string | null;
|
||||
|
||||
export interface CollaborationGraphStatusResponse {
|
||||
/**
|
||||
* The status of the collaboration graph.
|
||||
*/
|
||||
status: CollaborationGraphStatus;
|
||||
result?: CollaborationGraph | null;
|
||||
error_message?: string | null;
|
||||
}
|
||||
export namespace CollaborationGraphStatusResponse {}
|
||||
export namespace CollaborationGraphStatusResponse {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface CompanyConnectionsAvailability {
|
||||
available: boolean;
|
||||
|
||||
export interface CompanyConnectionsAvailability {
|
||||
available: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,12 +9,14 @@
|
||||
*/
|
||||
import { CompanyConnection } from './companyConnection';
|
||||
|
||||
export interface CompanyConnectionsResponse {
|
||||
author_id: string;
|
||||
display_name?: string | null;
|
||||
matching_method?: string | null;
|
||||
company_count: number;
|
||||
has_more_results: boolean;
|
||||
common_name_warning: boolean;
|
||||
connections?: Array<CompanyConnection>;
|
||||
|
||||
export interface CompanyConnectionsResponse {
|
||||
author_id: string;
|
||||
display_name?: string | null;
|
||||
matching_method?: string | null;
|
||||
company_count: number;
|
||||
has_more_results: boolean;
|
||||
common_name_warning: boolean;
|
||||
connections?: Array<CompanyConnection>;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,11 +9,13 @@
|
||||
*/
|
||||
import { UserRole } from './userRole';
|
||||
|
||||
export interface CreateAccountRequest {
|
||||
email: string;
|
||||
name: string;
|
||||
roles?: Array<UserRole>;
|
||||
organization_id: string;
|
||||
password: string;
|
||||
openalex_person_id?: string | null;
|
||||
|
||||
export interface CreateAccountRequest {
|
||||
email: string;
|
||||
name: string;
|
||||
roles?: Array<UserRole>;
|
||||
organization_id: string;
|
||||
password: string;
|
||||
openalex_person_id?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface CreateOrganizationRequest {
|
||||
name: string;
|
||||
other_inst_id?: string | null;
|
||||
selected_openalex_institution_ids?: Array<string> | null;
|
||||
|
||||
export interface CreateOrganizationRequest {
|
||||
name: string;
|
||||
other_inst_id?: string | null;
|
||||
selected_openalex_institution_ids?: Array<string> | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface CreatePersonBookmark {
|
||||
person_name?: string | null;
|
||||
|
||||
export interface CreatePersonBookmark {
|
||||
person_name?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,23 +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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DFGProjectFachgebieteInner
|
||||
*/
|
||||
export interface DFGProjectFachgebieteInner {
|
||||
fach?: string | null;
|
||||
fach_code?: string | null;
|
||||
fachgebiet?: string | null;
|
||||
fachgebiet_code?: string | null;
|
||||
fachkollegium?: string | null;
|
||||
fachkollegium_code?: string | null;
|
||||
wissenschaftsbereich?: string | null;
|
||||
wissenschaftsbereich_code?: string | null;
|
||||
export interface DFGProjectFachgebieteInner {
|
||||
fach?: string | null;
|
||||
fach_code?: string | null;
|
||||
fachgebiet?: string | null;
|
||||
fachgebiet_code?: string | null;
|
||||
fachkollegium?: string | null;
|
||||
fachkollegium_code?: string | null;
|
||||
wissenschaftsbereich?: string | null;
|
||||
wissenschaftsbereich_code?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface DashboardStatisticValue {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
value: number;
|
||||
|
||||
export interface DashboardStatisticValue {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,20 +1,22 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface DashboardStatistics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
publications: number;
|
||||
persons: number;
|
||||
projects: number;
|
||||
dfg_projects: number;
|
||||
eu_projects: number;
|
||||
bmbf_projects: number;
|
||||
|
||||
export interface DashboardStatistics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
publications: number;
|
||||
persons: number;
|
||||
projects: number;
|
||||
dfg_projects: number;
|
||||
eu_projects: number;
|
||||
bmbf_projects: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,23 +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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A summary of a DFG institution.
|
||||
*/
|
||||
export interface DfgInstitutionSummary {
|
||||
id: number;
|
||||
institute_name_de?: string | null;
|
||||
institute_name_en?: string | null;
|
||||
root_id?: number | null;
|
||||
root_name_de?: string | null;
|
||||
root_name_en?: string | null;
|
||||
address_country_de?: string | null;
|
||||
address_country_en?: string | null;
|
||||
export interface DfgInstitutionSummary {
|
||||
id: number;
|
||||
institute_name_de?: string | null;
|
||||
institute_name_en?: string | null;
|
||||
root_id?: number | null;
|
||||
root_name_de?: string | null;
|
||||
root_name_en?: string | null;
|
||||
address_country_de?: string | null;
|
||||
address_country_en?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,24 +9,26 @@
|
||||
*/
|
||||
import { DfgInstitutionSummary } from './dfgInstitutionSummary';
|
||||
|
||||
|
||||
/**
|
||||
* A paginated response containing a list of institutions.
|
||||
*/
|
||||
export interface DfgInstitutionSummaryPage {
|
||||
/**
|
||||
* The elements of the page.
|
||||
*/
|
||||
elements?: Array<DfgInstitutionSummary>;
|
||||
/**
|
||||
* The page number. (0-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The page size in elements.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of elements.
|
||||
*/
|
||||
total?: number;
|
||||
export interface DfgInstitutionSummaryPage {
|
||||
/**
|
||||
* The elements of the page.
|
||||
*/
|
||||
elements?: Array<DfgInstitutionSummary>;
|
||||
/**
|
||||
* The page number. (0-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The page size in elements.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of elements.
|
||||
*/
|
||||
total?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,12 +9,14 @@
|
||||
*/
|
||||
import { DfgInstitutionSummary } from './dfgInstitutionSummary';
|
||||
|
||||
export interface DfgPersonSummary {
|
||||
person_id: number;
|
||||
orcid_id?: string | null;
|
||||
project_ref_id?: number | null;
|
||||
full_name?: string | null;
|
||||
role_label_en?: string | null;
|
||||
role_label_de?: string | null;
|
||||
institution?: DfgInstitutionSummary | null;
|
||||
|
||||
export interface DfgPersonSummary {
|
||||
person_id: number;
|
||||
orcid_id?: string | null;
|
||||
project_ref_id?: number | null;
|
||||
full_name?: string | null;
|
||||
role_label_en?: string | null;
|
||||
role_label_de?: string | null;
|
||||
institution?: DfgInstitutionSummary | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,24 +9,26 @@
|
||||
*/
|
||||
import { DfgPersonSummary } from './dfgPersonSummary';
|
||||
|
||||
|
||||
/**
|
||||
* A paginated response containing a list of persons.
|
||||
*/
|
||||
export interface DfgPersonSummaryPage {
|
||||
/**
|
||||
* The elements of the page.
|
||||
*/
|
||||
elements?: Array<DfgPersonSummary>;
|
||||
/**
|
||||
* The page number. (0-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The page size in elements.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of elements.
|
||||
*/
|
||||
total?: number;
|
||||
export interface DfgPersonSummaryPage {
|
||||
/**
|
||||
* The elements of the page.
|
||||
*/
|
||||
elements?: Array<DfgPersonSummary>;
|
||||
/**
|
||||
* The page number. (0-based)
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* The page size in elements.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* The total number of elements.
|
||||
*/
|
||||
total?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -14,69 +14,71 @@ import { DFGProjectFachgebieteInner } from './dFGProjectFachgebieteInner';
|
||||
import { Topic } from './topic';
|
||||
import { DfgProjectPublicationSummary } from './dfgProjectPublicationSummary';
|
||||
|
||||
|
||||
/**
|
||||
* Clean, enriched summary model for a DFG project.
|
||||
*/
|
||||
export interface DfgProjectDetails {
|
||||
id?: number | null;
|
||||
link?: string | null;
|
||||
page_url?: string | null;
|
||||
external_link?: string | null;
|
||||
title_de?: string | null;
|
||||
title_en?: string | null;
|
||||
description_de?: string | null;
|
||||
description_en?: string | null;
|
||||
final_report_abstract_de?: string | null;
|
||||
final_report_abstract_en?: string | null;
|
||||
project_identifier_de?: string | null;
|
||||
project_identifier_en?: string | null;
|
||||
funding_start?: number | null;
|
||||
funding_end?: number | null;
|
||||
funding_period_de?: string | null;
|
||||
funding_period_en?: string | null;
|
||||
funding_type_de?: string | null;
|
||||
funding_type_en?: string | null;
|
||||
funding_type_key?: string | null;
|
||||
dfg_procedure?: string | null;
|
||||
is_transfer_project?: boolean | null;
|
||||
website_html_de?: string | null;
|
||||
website_html_en?: string | null;
|
||||
equipment_group?: string | null;
|
||||
equipment_name?: string | null;
|
||||
subject_area_de?: string | null;
|
||||
subject_area_en?: string | null;
|
||||
/**
|
||||
* Detailed DFG subject-area classification entries (Fachsystematik)
|
||||
*/
|
||||
subject_classifications?: Array<DFGProjectFachgebieteInner>;
|
||||
international_relation_de?: string | null;
|
||||
international_relation_en?: string | null;
|
||||
/**
|
||||
* All persons associated with the project, each with their role
|
||||
*/
|
||||
persons?: Array<DfgProjectPersonRole>;
|
||||
/**
|
||||
* All institutions associated with the project, each with their role
|
||||
*/
|
||||
institutions?: Array<DfgProjectInstitutionRole>;
|
||||
/**
|
||||
* Flat, de-duplicated list of all person full names (convenience view)
|
||||
*/
|
||||
associated_persons?: Array<string>;
|
||||
/**
|
||||
* Flat, de-duplicated list of all institution names (convenience view)
|
||||
*/
|
||||
associated_institutions?: Array<string>;
|
||||
parent_project_id?: number | null;
|
||||
parent_title_de?: string | null;
|
||||
parent_title_en?: string | null;
|
||||
/**
|
||||
* Sub-projects of this project, if any
|
||||
*/
|
||||
subprojects?: Array<DfgProjectSubprojectSummary>;
|
||||
/**
|
||||
* Publications resulting from the project
|
||||
*/
|
||||
publications?: Array<DfgProjectPublicationSummary>;
|
||||
topics?: Array<Topic> | null;
|
||||
export interface DfgProjectDetails {
|
||||
id?: number | null;
|
||||
link?: string | null;
|
||||
page_url?: string | null;
|
||||
external_link?: string | null;
|
||||
title_de?: string | null;
|
||||
title_en?: string | null;
|
||||
description_de?: string | null;
|
||||
description_en?: string | null;
|
||||
final_report_abstract_de?: string | null;
|
||||
final_report_abstract_en?: string | null;
|
||||
project_identifier_de?: string | null;
|
||||
project_identifier_en?: string | null;
|
||||
funding_start?: number | null;
|
||||
funding_end?: number | null;
|
||||
funding_period_de?: string | null;
|
||||
funding_period_en?: string | null;
|
||||
funding_type_de?: string | null;
|
||||
funding_type_en?: string | null;
|
||||
funding_type_key?: string | null;
|
||||
dfg_procedure?: string | null;
|
||||
is_transfer_project?: boolean | null;
|
||||
website_html_de?: string | null;
|
||||
website_html_en?: string | null;
|
||||
equipment_group?: string | null;
|
||||
equipment_name?: string | null;
|
||||
subject_area_de?: string | null;
|
||||
subject_area_en?: string | null;
|
||||
/**
|
||||
* Detailed DFG subject-area classification entries (Fachsystematik)
|
||||
*/
|
||||
subject_classifications?: Array<DFGProjectFachgebieteInner>;
|
||||
international_relation_de?: string | null;
|
||||
international_relation_en?: string | null;
|
||||
/**
|
||||
* All persons associated with the project, each with their role
|
||||
*/
|
||||
persons?: Array<DfgProjectPersonRole>;
|
||||
/**
|
||||
* All institutions associated with the project, each with their role
|
||||
*/
|
||||
institutions?: Array<DfgProjectInstitutionRole>;
|
||||
/**
|
||||
* Flat, de-duplicated list of all person full names (convenience view)
|
||||
*/
|
||||
associated_persons?: Array<string>;
|
||||
/**
|
||||
* Flat, de-duplicated list of all institution names (convenience view)
|
||||
*/
|
||||
associated_institutions?: Array<string>;
|
||||
parent_project_id?: number | null;
|
||||
parent_title_de?: string | null;
|
||||
parent_title_en?: string | null;
|
||||
/**
|
||||
* Sub-projects of this project, if any
|
||||
*/
|
||||
subprojects?: Array<DfgProjectSubprojectSummary>;
|
||||
/**
|
||||
* Publications resulting from the project
|
||||
*/
|
||||
publications?: Array<DfgProjectPublicationSummary>;
|
||||
topics?: Array<Topic> | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,23 +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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* An institution associated with the project, together with its role.
|
||||
*/
|
||||
export interface DfgProjectInstitutionRole {
|
||||
institute_id?: number | null;
|
||||
name_de?: string | null;
|
||||
name_en?: string | null;
|
||||
role_key?: string | null;
|
||||
role_label_de?: string | null;
|
||||
role_label_en?: string | null;
|
||||
is_dissolved?: boolean | null;
|
||||
is_head?: boolean | null;
|
||||
export interface DfgProjectInstitutionRole {
|
||||
institute_id?: number | null;
|
||||
name_de?: string | null;
|
||||
name_en?: string | null;
|
||||
role_key?: string | null;
|
||||
role_label_de?: string | null;
|
||||
role_label_en?: string | null;
|
||||
is_dissolved?: boolean | null;
|
||||
is_head?: boolean | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface DfgProjectKeyword {
|
||||
name: string;
|
||||
project_count: number;
|
||||
|
||||
export interface DfgProjectKeyword {
|
||||
name: string;
|
||||
project_count: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,25 +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 person associated with the project, together with their role.
|
||||
*/
|
||||
export interface DfgProjectPersonRole {
|
||||
person_id?: number | null;
|
||||
full_name?: string | null;
|
||||
orcid_id?: string | null;
|
||||
role_key?: string | null;
|
||||
role_label_de?: string | null;
|
||||
role_label_en?: string | null;
|
||||
affiliation_de?: string | null;
|
||||
affiliation_en?: string | null;
|
||||
is_deceased?: boolean | null;
|
||||
is_head?: boolean | null;
|
||||
export interface DfgProjectPersonRole {
|
||||
person_id?: number | null;
|
||||
full_name?: string | null;
|
||||
orcid_id?: string | null;
|
||||
role_key?: string | null;
|
||||
role_label_de?: string | null;
|
||||
role_label_en?: string | null;
|
||||
affiliation_de?: string | null;
|
||||
affiliation_en?: string | null;
|
||||
is_deceased?: boolean | null;
|
||||
is_head?: boolean | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,20 +1,22 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A lightweight reference to a publication resulting from the project.
|
||||
*/
|
||||
export interface DfgProjectPublicationSummary {
|
||||
publication_id?: number | null;
|
||||
title?: string | null;
|
||||
authors_editors?: string | null;
|
||||
doi?: string | null;
|
||||
publication_year?: number | null;
|
||||
export interface DfgProjectPublicationSummary {
|
||||
publication_id?: number | null;
|
||||
title?: string | null;
|
||||
authors_editors?: string | null;
|
||||
doi?: string | null;
|
||||
publication_year?: number | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface DfgProjectStatusStatistics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
ongoing: number;
|
||||
upcoming: number;
|
||||
completed: number;
|
||||
|
||||
export interface DfgProjectStatusStatistics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
ongoing: number;
|
||||
upcoming: number;
|
||||
completed: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,26 @@
|
||||
/**
|
||||
* 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 lightweight reference to a sub-project of this project.
|
||||
*/
|
||||
export interface DfgProjectSubprojectSummary {
|
||||
subproject_id?: number | null;
|
||||
title_de?: string | null;
|
||||
title_en?: string | null;
|
||||
short_title?: string | null;
|
||||
role_label_de?: string | null;
|
||||
person_full_name?: string | null;
|
||||
status_de?: string | null;
|
||||
funding_start?: number | null;
|
||||
funding_end?: number | null;
|
||||
export interface DfgProjectSubprojectSummary {
|
||||
subproject_id?: number | null;
|
||||
title_de?: string | null;
|
||||
title_en?: string | null;
|
||||
short_title?: string | null;
|
||||
role_label_de?: string | null;
|
||||
person_full_name?: string | null;
|
||||
status_de?: string | null;
|
||||
funding_start?: number | null;
|
||||
funding_end?: number | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,14 +9,16 @@
|
||||
*/
|
||||
import { DfgProjectKeyword } from './dfgProjectKeyword';
|
||||
|
||||
export interface DfgProjectTopic {
|
||||
id: string;
|
||||
name: string;
|
||||
subfield?: string | null;
|
||||
field?: string | null;
|
||||
domain?: string | null;
|
||||
project_count: number;
|
||||
field_project_count: number;
|
||||
subfield_project_count: number;
|
||||
keywords: Array<DfgProjectKeyword>;
|
||||
|
||||
export interface DfgProjectTopic {
|
||||
id: string;
|
||||
name: string;
|
||||
subfield?: string | null;
|
||||
field?: string | null;
|
||||
domain?: string | null;
|
||||
project_count: number;
|
||||
field_project_count: number;
|
||||
subfield_project_count: number;
|
||||
keywords: Array<DfgProjectKeyword>;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,10 +9,12 @@
|
||||
*/
|
||||
import { DfgProjectTopic } from './dfgProjectTopic';
|
||||
|
||||
export interface DfgProjectTopics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
project_count: number;
|
||||
matched_project_count: number;
|
||||
topics: Array<DfgProjectTopic>;
|
||||
|
||||
export interface DfgProjectTopics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
project_count: number;
|
||||
matched_project_count: number;
|
||||
topics: Array<DfgProjectTopic>;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface DockerHealth {
|
||||
reachable: boolean;
|
||||
detail: string;
|
||||
|
||||
export interface DockerHealth {
|
||||
reachable: boolean;
|
||||
detail: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -10,20 +10,22 @@
|
||||
import { DomainFieldsInner } from './domainFieldsInner';
|
||||
import { DomainIds } from './domainIds';
|
||||
|
||||
|
||||
/**
|
||||
* Top-level category in the topic hierarchy (4 total)
|
||||
*/
|
||||
export interface Domain {
|
||||
id?: string | null;
|
||||
display_name?: string | null;
|
||||
description?: string | null;
|
||||
display_name_alternatives?: Array<string> | null;
|
||||
fields?: Array<DomainFieldsInner> | null;
|
||||
siblings?: Array<DomainFieldsInner> | null;
|
||||
ids?: DomainIds | null;
|
||||
works_count?: number | null;
|
||||
cited_by_count?: number | null;
|
||||
works_api_url?: string | null;
|
||||
created_date?: string | null;
|
||||
updated_date?: string | null;
|
||||
export interface Domain {
|
||||
id?: string | null;
|
||||
display_name?: string | null;
|
||||
description?: string | null;
|
||||
display_name_alternatives?: Array<string> | null;
|
||||
fields?: Array<DomainFieldsInner> | null;
|
||||
siblings?: Array<DomainFieldsInner> | null;
|
||||
ids?: DomainIds | null;
|
||||
works_count?: number | null;
|
||||
cited_by_count?: number | null;
|
||||
works_api_url?: string | null;
|
||||
created_date?: string | null;
|
||||
updated_date?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DomainFieldsInner
|
||||
*/
|
||||
export interface DomainFieldsInner {
|
||||
id?: string | null;
|
||||
display_name?: string | null;
|
||||
export interface DomainFieldsInner {
|
||||
id?: string | null;
|
||||
display_name?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,18 +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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* External identifiers:
|
||||
*/
|
||||
export interface DomainIds {
|
||||
openalex?: string | null;
|
||||
wikidata?: string | null;
|
||||
wikipedia?: string | null;
|
||||
export interface DomainIds {
|
||||
openalex?: string | null;
|
||||
wikidata?: string | null;
|
||||
wikipedia?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,26 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface Edge {
|
||||
/**
|
||||
* The ID of the source node.
|
||||
*/
|
||||
source: string;
|
||||
/**
|
||||
* The ID of the target node.
|
||||
*/
|
||||
target: string;
|
||||
/**
|
||||
* The weight of the edge.
|
||||
*/
|
||||
weight: number;
|
||||
|
||||
export interface Edge {
|
||||
/**
|
||||
* The ID of the source node.
|
||||
*/
|
||||
source: string;
|
||||
/**
|
||||
* The ID of the target node.
|
||||
*/
|
||||
target: string;
|
||||
/**
|
||||
* The weight of the edge.
|
||||
*/
|
||||
weight: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* 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 { EgoNetworkEdge } from './egoNetworkEdge';
|
||||
import { EgoNetworkNode } from './egoNetworkNode';
|
||||
import { MultiplierTag } from './multiplierTag';
|
||||
import { MultiplierPeerRanks } from './multiplierPeerRanks';
|
||||
import { CareerBucket } from './careerBucket';
|
||||
|
||||
|
||||
/**
|
||||
* One researcher\'s ego co-author network. Node and edge positions are deliberately absent: a force layout on the client (e.g. echarts\' `graph` series) positions them at render time.
|
||||
*/
|
||||
export interface EgoNetwork {
|
||||
author_id: string;
|
||||
display_name?: string | null;
|
||||
career_bucket?: CareerBucket | null;
|
||||
active_years?: number;
|
||||
n_works?: number;
|
||||
suspicious_profile?: boolean;
|
||||
tags?: Array<MultiplierTag>;
|
||||
multiplier_peer_ranks?: MultiplierPeerRanks;
|
||||
max_multiplier_peer_rank?: number;
|
||||
/**
|
||||
* All co-authors, not just the drawn ones.
|
||||
*/
|
||||
total_coauthors?: number;
|
||||
/**
|
||||
* Co-authors inside this university\'s cohort.
|
||||
*/
|
||||
cohort_coauthors?: number;
|
||||
mentee_count?: number;
|
||||
/**
|
||||
* How many co-authors are in `nodes` (excluding the ego).
|
||||
*/
|
||||
shown?: number;
|
||||
shown_mentees?: number;
|
||||
/**
|
||||
* nodes[0] is always the ego.
|
||||
*/
|
||||
nodes?: Array<EgoNetworkNode>;
|
||||
edges?: Array<EgoNetworkEdge>;
|
||||
computed_at?: string | null;
|
||||
config_hash?: string | null;
|
||||
}
|
||||
export namespace EgoNetwork {
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A collaboration tie between two nodes.
|
||||
*/
|
||||
export interface EgoNetworkEdge {
|
||||
/**
|
||||
* First author id (lexicographically smaller).
|
||||
*/
|
||||
a: string;
|
||||
/**
|
||||
* Second author id.
|
||||
*/
|
||||
b: string;
|
||||
/**
|
||||
* Decayed, team-size-weighted collaboration strength.
|
||||
*/
|
||||
w?: number;
|
||||
/**
|
||||
* Raw shared-work count.
|
||||
*/
|
||||
n_works?: number;
|
||||
/**
|
||||
* Whether the tie is mostly cross-institution.
|
||||
*/
|
||||
cross?: boolean;
|
||||
first_year?: number | null;
|
||||
last_year?: number | null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* One person in an ego network. No layout coordinates - the client lays out.
|
||||
*/
|
||||
export interface EgoNetworkNode {
|
||||
/**
|
||||
* OpenAlex author id, short form.
|
||||
*/
|
||||
id: string;
|
||||
name?: string | null;
|
||||
/**
|
||||
* One of: ego, mentee, cohort, industry, external. `industry` is ego-relative: the person holds a company affiliation on a work shared with the ego (see `company_insts`). Typed as a string rather than an enum because the index is rebuilt independently of this API.
|
||||
*/
|
||||
role: string;
|
||||
inst?: string | null;
|
||||
active_years?: number;
|
||||
suspicious?: boolean;
|
||||
company_insts?: Array<string> | null;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -25,49 +25,51 @@ import { HEUReportSummary } from './hEUReportSummary';
|
||||
import { Topic } from './topic';
|
||||
import { HEUProjectDetails } from './hEUProjectDetails';
|
||||
|
||||
|
||||
/**
|
||||
* The project data
|
||||
*/
|
||||
export interface EuProjectData {
|
||||
acronym?: string;
|
||||
contentUpdateDate?: string;
|
||||
ecMaxContribution?: number;
|
||||
ecSignatureDate?: string;
|
||||
endDate?: string;
|
||||
frameworkProgramme?: string;
|
||||
fundingScheme?: string;
|
||||
grantDoi?: string;
|
||||
humanValidated?: boolean;
|
||||
id?: string;
|
||||
keywords?: string;
|
||||
legalBasis?: string;
|
||||
masterCall?: string;
|
||||
nature?: string;
|
||||
objective?: string;
|
||||
rcn?: string;
|
||||
startDate?: string;
|
||||
status?: string;
|
||||
subCall?: string;
|
||||
title?: string;
|
||||
topics?: string;
|
||||
totalCost?: number;
|
||||
organizations?: Array<HEUOrganization>;
|
||||
publications?: Array<HEUPublication>;
|
||||
iprs?: Array<Fp7ProjectIPR>;
|
||||
report_summaries?: Array<Fp7ReportSummary>;
|
||||
topicsList?: Array<HEUTopic>;
|
||||
web_links?: Array<Fp7WebLink>;
|
||||
eurosciVoc?: Array<HEUEurosciVoc>;
|
||||
legalBasisList?: Array<HEULegalBasis>;
|
||||
organizationCount?: number;
|
||||
publicationCount?: number;
|
||||
iprCount?: number;
|
||||
oaTopics?: Array<Topic>;
|
||||
oaAuthors?: AuthorPage;
|
||||
deliverables?: Array<HEUDeliverable>;
|
||||
reportSummaries?: Array<HEUReportSummary>;
|
||||
webLinks?: Array<HEUWebLink>;
|
||||
ercPrincipalInvestigators?: Array<H2020ErcPI>;
|
||||
deliverableCount?: number;
|
||||
ercPiCount?: number;
|
||||
export interface EuProjectData {
|
||||
acronym?: string;
|
||||
contentUpdateDate?: string;
|
||||
ecMaxContribution?: number;
|
||||
ecSignatureDate?: string;
|
||||
endDate?: string;
|
||||
frameworkProgramme?: string;
|
||||
fundingScheme?: string;
|
||||
grantDoi?: string;
|
||||
humanValidated?: boolean;
|
||||
id?: string;
|
||||
keywords?: string;
|
||||
legalBasis?: string;
|
||||
masterCall?: string;
|
||||
nature?: string;
|
||||
objective?: string;
|
||||
rcn?: string;
|
||||
startDate?: string;
|
||||
status?: string;
|
||||
subCall?: string;
|
||||
title?: string;
|
||||
topics?: string;
|
||||
totalCost?: number;
|
||||
organizations?: Array<HEUOrganization>;
|
||||
publications?: Array<HEUPublication>;
|
||||
iprs?: Array<Fp7ProjectIPR>;
|
||||
report_summaries?: Array<Fp7ReportSummary>;
|
||||
topicsList?: Array<HEUTopic>;
|
||||
web_links?: Array<Fp7WebLink>;
|
||||
eurosciVoc?: Array<HEUEurosciVoc>;
|
||||
legalBasisList?: Array<HEULegalBasis>;
|
||||
organizationCount?: number;
|
||||
publicationCount?: number;
|
||||
iprCount?: number;
|
||||
oaTopics?: Array<Topic>;
|
||||
oaAuthors?: AuthorPage;
|
||||
deliverables?: Array<HEUDeliverable>;
|
||||
reportSummaries?: Array<HEUReportSummary>;
|
||||
webLinks?: Array<HEUWebLink>;
|
||||
ercPrincipalInvestigators?: Array<H2020ErcPI>;
|
||||
deliverableCount?: number;
|
||||
ercPiCount?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export interface EuProjectStatusStatistics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
ongoing: number;
|
||||
upcoming: number;
|
||||
completed: number;
|
||||
|
||||
export interface EuProjectStatusStatistics {
|
||||
institution_id: string;
|
||||
organization_name: string;
|
||||
ongoing: number;
|
||||
upcoming: number;
|
||||
completed: number;
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user