event validations and event response models will be updated
This commit is contained in:
@@ -74,6 +74,10 @@ class BuildCreateEventMethods(MethodToEvent):
|
||||
"a2271854-6b90-43da-a440-a62b70d90528": "build_create",
|
||||
"b67ee709-0992-4604-9f90-fb1da10d5cf9": "create_building_employee",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"a2271854-6b90-43da-a440-a62b70d90528": InsertBuild,
|
||||
"b67ee709-0992-4604-9f90-fb1da10d5cf9": InsertBuild,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_create(cls, data: InsertBuild, token_dict: EmployeeTokenObject):
|
||||
@@ -191,6 +195,9 @@ class BuildUpdateEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"5ad38a66-1189-451e-babb-77de2d63d757": "build_update",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"5ad38a66-1189-451e-babb-77de2d63d757": UpdateBuild,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_update(
|
||||
|
||||
Reference in New Issue
Block a user