ramodels 43.10.0__tar.gz → 44.0.1__tar.gz
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.
- {ramodels-43.10.0 → ramodels-44.0.1}/PKG-INFO +1 -1
- {ramodels-43.10.0 → ramodels-44.0.1}/pyproject.toml +1 -1
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/organisation_unit.py +7 -3
- {ramodels-43.10.0 → ramodels-44.0.1}/setup.py +1 -1
- {ramodels-43.10.0 → ramodels-44.0.1}/README.md +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/__init__.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/base.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/exceptions.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/lora/__init__.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/lora/_shared.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/lora/facet.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/lora/itsystem.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/lora/klasse.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/lora/organisation.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/__init__.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/_shared.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/class_.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/detail.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/__init__.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/_shared.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/address.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/association.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/engagement.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/it_system.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/kle.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/leave.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/manager.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/owner.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/related_unit.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/details/role.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/employee.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/facet.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/mo/organisation.py +0 -0
- {ramodels-43.10.0 → ramodels-44.0.1}/ramodels/py.typed +0 -0
|
@@ -86,7 +86,7 @@ class OrganisationUnit(MOBase):
|
|
|
86
86
|
org_unit_type: OrgUnitType = Field(
|
|
87
87
|
description="Reference to the organisation unit type."
|
|
88
88
|
)
|
|
89
|
-
org_unit_level: OrgUnitLevel = Field(
|
|
89
|
+
org_unit_level: OrgUnitLevel | None = Field(
|
|
90
90
|
description="Reference to the organisation unit level type."
|
|
91
91
|
)
|
|
92
92
|
details: list[OrgUnitDetails] | None = Field(
|
|
@@ -103,10 +103,10 @@ class OrganisationUnit(MOBase):
|
|
|
103
103
|
user_key: str,
|
|
104
104
|
name: str,
|
|
105
105
|
org_unit_type_uuid: UUID,
|
|
106
|
-
org_unit_level_uuid: UUID,
|
|
107
106
|
from_date: str,
|
|
108
107
|
uuid: UUID | None = None,
|
|
109
108
|
parent_uuid: UUID | None = None,
|
|
109
|
+
org_unit_level_uuid: UUID | None = None,
|
|
110
110
|
org_unit_hierarchy_uuid: UUID | None = None,
|
|
111
111
|
to_date: str | None = None,
|
|
112
112
|
) -> "OrganisationUnit":
|
|
@@ -117,6 +117,10 @@ class OrganisationUnit(MOBase):
|
|
|
117
117
|
if org_unit_hierarchy_uuid
|
|
118
118
|
else None
|
|
119
119
|
)
|
|
120
|
+
org_unit_level = (
|
|
121
|
+
OrgUnitLevel(uuid=org_unit_level_uuid) if org_unit_level_uuid else None
|
|
122
|
+
)
|
|
123
|
+
|
|
120
124
|
validity = Validity(from_date=from_date, to_date=to_date)
|
|
121
125
|
|
|
122
126
|
return cls(
|
|
@@ -127,7 +131,7 @@ class OrganisationUnit(MOBase):
|
|
|
127
131
|
parent=parent,
|
|
128
132
|
org_unit_hierarchy=org_unit_hierarchy,
|
|
129
133
|
org_unit_type=OrgUnitType(uuid=org_unit_type_uuid),
|
|
130
|
-
org_unit_level=
|
|
134
|
+
org_unit_level=org_unit_level,
|
|
131
135
|
)
|
|
132
136
|
|
|
133
137
|
|
|
@@ -18,7 +18,7 @@ entry_points = \
|
|
|
18
18
|
|
|
19
19
|
setup_kwargs = {
|
|
20
20
|
'name': 'ramodels',
|
|
21
|
-
'version': '
|
|
21
|
+
'version': '44.0.1',
|
|
22
22
|
'description': 'Pydantic data models for OS2mo',
|
|
23
23
|
'long_description': '<!--\nSPDX-FileCopyrightText: Magenta ApS <https://magenta.dk>\nSPDX-License-Identifier: MPL-2.0\n-->\n\n\n# MoLoRa Data Models\n\nRAModels - MoLoRa data validation models powered by [pydantic](https://github.com/samuelcolvin/pydantic/#pydantic).\n\n## Versioning\nThis project uses [Semantic Versioning](https://semver.org/) with the following strategy:\n- MAJOR: Incompatible changes to existing data models\n- MINOR: Backwards compatible updates to existing data models OR new models added\n- PATCH: Backwards compatible bug fixes\n\n\n## Authors\n\nMagenta ApS <https://magenta.dk>\n\n## License\n- This project: [MPL-2.0](MPL-2.0.txt)\n- Dependencies:\n - pydantic: [MIT](MIT.txt)\n\nThis project uses [REUSE](https://reuse.software) for licensing. All licenses can be found in the [LICENSES folder](LICENSES/) of the project.\n\n## Development\n### Prerequisites\n\n- [Poetry](https://github.com/python-poetry/poetry)\n- [Pre-commit](https://github.com/pre-commit/pre-commit)\n\n\n### Getting Started\n\n1. Clone the repository:\n`git clone git@git.magenta.dk:rammearkitektur/ra-data-models.git`\n\n2. Install all dependencies:\n`poetry install`\n\n3. Set up pre-commit:\n`pre-commit install`\n\n\n### Running the tests\n\nYou use `poetry` and `pytest` to run the tests:\n\n`poetry run pytest`\n\n\nYou can also run specific files\n\n`poetry run pytest tests/<test_folder>/<test_file.py>`\n\nand even use filtering with `-k`\n\n`poetry run pytest -k "Manager"`\n\n\nYou can use the flags `-vx` where `v` prints the test & `x` makes the test stop if any tests fails (Verbose, X-fail)\n\n### Pre-commit usage\nPre-commit must either be used via your virtual environment or globally.\nIf you want to pre-commit globally, the following extra dependencies are needed:\n`pip install mypy pydantic`\n\n\n### Models\n\n## LoRa\n`LoRa` implements the OIO standard version 1.1. The [standard](https://digitaliser.dk/resource/1569113) with\n[specification](https://www.digitaliser.dk/resource/1569113/artefact/Specifikationafserviceinterfacefororganisation-OIO-Godkendt%5bvs.1.1%5d.pdf?artefact=true&PID=1569586)\n',
|
|
24
24
|
'author': 'Magenta',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|