events imports are checked
This commit is contained in:
@@ -125,6 +125,10 @@ from .user import (
|
||||
ListUsers,
|
||||
DeleteUsers,
|
||||
)
|
||||
from .modules import (
|
||||
RegisterModules2Occupant,
|
||||
RegisterModules2Employee,
|
||||
)
|
||||
|
||||
|
||||
__all__ = [
|
||||
@@ -216,4 +220,6 @@ __all__ = [
|
||||
"ActiveUsers",
|
||||
"ListUsers",
|
||||
"DeleteUsers",
|
||||
"RegisterModules2Occupant",
|
||||
"RegisterModules2Employee",
|
||||
]
|
||||
18
api_validations/validations_request/modules.py
Normal file
18
api_validations/validations_request/modules.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from api_validations.core_validations import BaseModelRegular
|
||||
from api_validations.validations_request import (
|
||||
PydanticBaseModel,
|
||||
ListOptions,
|
||||
)
|
||||
|
||||
class RegisterModules2Occupant(BaseModelRegular):
|
||||
modules_uu_id: str
|
||||
occupant_uu_id: str
|
||||
build_part_uu_id: str
|
||||
|
||||
|
||||
class RegisterModules2Employee(BaseModelRegular):
|
||||
modules_uu_id: str
|
||||
employee_uu_id: str
|
||||
|
||||
|
||||
|
||||
@@ -4,12 +4,12 @@ from api_validations.validations_request import (
|
||||
ListOptions,
|
||||
)
|
||||
|
||||
class RegisterServices2Occupant(PydanticBaseModel):
|
||||
class RegisterServices2Occupant(BaseModelRegular):
|
||||
service_uu_id: str
|
||||
occupant_uu_id: str
|
||||
build_part_uu_id: str
|
||||
|
||||
|
||||
class RegisterServices2Employee(PydanticBaseModel):
|
||||
class RegisterServices2Employee(BaseModelRegular):
|
||||
service_uu_id: str
|
||||
employee_uu_id: str
|
||||
|
||||
Reference in New Issue
Block a user