oarepo-runtime 2.0.0.dev39__py3-none-any.whl → 2.0.0.dev40__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,6 @@ from .api import Model
19
19
  from .ext import OARepoRuntime
20
20
  from .proxies import current_runtime
21
21
 
22
- __version__ = "2.0.0dev39"
22
+ __version__ = "2.0.0dev40"
23
23
 
24
24
  __all__ = ("Model", "OARepoRuntime", "__version__", "current_runtime")
oarepo_runtime/api.py CHANGED
@@ -409,3 +409,10 @@ class Model[
409
409
  def imports(self) -> list[Import]:
410
410
  """Get all importable request body parsers."""
411
411
  return self._imports
412
+
413
+ @property
414
+ def entity_type(self) -> str:
415
+ """Get the entity type."""
416
+ if self.records_alias_enabled:
417
+ return cast("str", self.service.id)
418
+ raise TypeError("This model does not have associated entity type.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oarepo-runtime
3
- Version: 2.0.0.dev39
3
+ Version: 2.0.0.dev40
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Project-URL: Homepage, https://github.com/oarepo/oarepo-runtime
6
6
  License-Expression: MIT
@@ -1,5 +1,5 @@
1
- oarepo_runtime/__init__.py,sha256=Hq07N9-oKqUJGYTjwG4TvOXZT2Usdd3GJ-ySd7Y3Wrw,686
2
- oarepo_runtime/api.py,sha256=hEYmBbqxk0DRfLGikSx4NMMmyDYxUKRAVP1z678iIOw,15000
1
+ oarepo_runtime/__init__.py,sha256=ovgPvyXZ4RbBBG9BuRiLv_4Q1TSPMYzOP1vE2STwWT8,686
2
+ oarepo_runtime/api.py,sha256=CXprwgOPA3lA69GITWx1xt0AvEuqz2WgdzUYftaHOxo,15247
3
3
  oarepo_runtime/config.py,sha256=RUEPFn_5bKp9Wb0OY-Fb3VK30m35vF5IsLjYaQHhP3g,3838
4
4
  oarepo_runtime/ext.py,sha256=OdhT4gGKK2LpNcJ30cHndCxWZgeHdAk1Ev8bISeX8Qk,9321
5
5
  oarepo_runtime/proxies.py,sha256=x8Y1iTP8QIzSI67s90VR0_5fvXuT1xlJXtAHsaoXFwg,903
@@ -44,8 +44,8 @@ oarepo_runtime/services/schema/__init__.py,sha256=jgAPI_uKC6Ug4KQWnwQVg3-aNaw-eH
44
44
  oarepo_runtime/services/schema/i18n.py,sha256=9D1zOQaPKAnYzejB0vO-m2BJYnam0N0Lrq4jID7twfE,3174
45
45
  oarepo_runtime/services/schema/i18n_ui.py,sha256=DbusphhGDeaobTt4nuwNgKZ6Houlu4Sv3SuMGkdjRRY,3582
46
46
  oarepo_runtime/services/schema/ui.py,sha256=Y_jBO-fowkpOgceWz8aqJSJAUiAnKLGSIuNpjNLnp8Q,4612
47
- oarepo_runtime-2.0.0.dev39.dist-info/METADATA,sha256=yqEwOh9uNtI0K20bSvj-GDXDZJjhZj8comcClUjJaPA,4660
48
- oarepo_runtime-2.0.0.dev39.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
49
- oarepo_runtime-2.0.0.dev39.dist-info/entry_points.txt,sha256=rOfs8R1oXFN_dLH9zAZ6ydkvr83mDajegc6NBIRsCMQ,318
50
- oarepo_runtime-2.0.0.dev39.dist-info/licenses/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
51
- oarepo_runtime-2.0.0.dev39.dist-info/RECORD,,
47
+ oarepo_runtime-2.0.0.dev40.dist-info/METADATA,sha256=sQI5ZRMimfnSlqnHvrzNW7VYDgvxi9spTH8UKxOJ720,4660
48
+ oarepo_runtime-2.0.0.dev40.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
49
+ oarepo_runtime-2.0.0.dev40.dist-info/entry_points.txt,sha256=rOfs8R1oXFN_dLH9zAZ6ydkvr83mDajegc6NBIRsCMQ,318
50
+ oarepo_runtime-2.0.0.dev40.dist-info/licenses/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
51
+ oarepo_runtime-2.0.0.dev40.dist-info/RECORD,,