from django.urls import path

from apps.repository.integration.grant_link import GrantSearchView
from apps.repository.integration.rep_link import RepLinkRegisterView, RepOERSearchView
from apps.repository.integration.rims_api import GrantClosureNotifyView, RimsIngestView
from apps.repository.integration.smehub_search import SmehubResearchSearchView

app_name = "repo_integration"

urlpatterns = [
    path("ingest/", RimsIngestView.as_view(), name="rims_ingest"),
    # FRREP-VL009 — RIMS grant close-out → flag every linked document.
    path("grants/close/", GrantClosureNotifyView.as_view(), name="grant_closure_notify"),
    path("oer/search/", RepOERSearchView.as_view(), name="oer_search"),
    path("oer/link/", RepLinkRegisterView.as_view(), name="oer_link"),
    path("research/search/", SmehubResearchSearchView.as_view(), name="smehub_search"),
    # FRREP-MCL009 — RIMS grant picker typeahead for the submit wizard.
    path("grants/search/", GrantSearchView.as_view(), name="grant_search"),
]
