events updated
This commit is contained in:
@@ -19,9 +19,7 @@ from api_validations.validations_request import (
|
||||
PatchRecord,
|
||||
ListOptions,
|
||||
)
|
||||
from api_validations.validations_response import (
|
||||
ListBuildingResponse
|
||||
)
|
||||
from api_validations.validations_response import ListBuildingResponse
|
||||
|
||||
from api_validations.core_response import AlchemyJsonResponse
|
||||
from api_events.events.abstract_class import MethodToEvent, ActionsSchema
|
||||
@@ -240,6 +238,9 @@ class BuildPatchEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"e3876bfe-8847-4dea-ae36-e709f7431930": "build_patch",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"e3876bfe-8847-4dea-ae36-e709f7431930": "build_patch",
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_patch(cls, build_uu_id: str, data: PatchRecord, token_dict):
|
||||
|
||||
@@ -22,6 +22,9 @@ class BuildAreaListEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"0bb51845-65a2-4340-8872-a3b5aad95468": "build_area_list",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"0bb51845-65a2-4340-8872-a3b5aad95468": None,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_area_list(
|
||||
@@ -56,6 +59,9 @@ class BuildAreaCreateEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"a10571fa-ac1d-4546-9272-cacb911d8004": "build_area_create",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"a10571fa-ac1d-4546-9272-cacb911d8004": InsertBuildArea,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_area_create(
|
||||
@@ -114,6 +120,9 @@ class BuildAreaUpdateEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"58178738-7489-4f8f-954e-5c8f083c1845": "build_area_update",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"58178738-7489-4f8f-954e-5c8f083c1845": UpdateBuildArea,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_area_update(
|
||||
@@ -135,6 +144,9 @@ class BuildAreaPatchEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"d6bd8a5f-fa76-49da-b82e-4a95f1bcce39": "build_area_patch",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"d6bd8a5f-fa76-49da-b82e-4a95f1bcce39": None,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_area_patch(
|
||||
|
||||
@@ -13,6 +13,7 @@ from api_validations.core_response import AlchemyJsonResponse
|
||||
|
||||
from api_validations.validations_request import (
|
||||
InsertBuildParts,
|
||||
UpdateBuildParts,
|
||||
ListOptions,
|
||||
)
|
||||
|
||||
@@ -23,6 +24,7 @@ class BuildingBuildPartsListEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"b860e37a-e19b-4c45-9543-461241f7587c": "building_build_parts_list"
|
||||
}
|
||||
__event_validation__ = {"b860e37a-e19b-4c45-9543-461241f7587c": None}
|
||||
|
||||
@classmethod
|
||||
def building_build_parts_list(
|
||||
@@ -52,6 +54,7 @@ class BuildingBuildPartsCreateEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"fb403f69-11ed-4f4f-ad71-5e6fb4a793d2": "building_build_parts_create"
|
||||
}
|
||||
__event_validation__ = {"fb403f69-11ed-4f4f-ad71-5e6fb4a793d2": InsertBuildParts}
|
||||
|
||||
@classmethod
|
||||
def building_build_parts_create(
|
||||
@@ -79,11 +82,12 @@ class BuildingBuildPartsUpdateEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"58fdf95e-2110-4ed6-9c26-95f4be87eaee": "building_build_parts_update"
|
||||
}
|
||||
__event_validation__ = {"58fdf95e-2110-4ed6-9c26-95f4be87eaee": UpdateBuildParts}
|
||||
|
||||
@classmethod
|
||||
def building_build_parts_update(
|
||||
cls,
|
||||
data: InsertBuildParts,
|
||||
data: UpdateBuildParts,
|
||||
token_dict: Union[EmployeeTokenObject, OccupantTokenObject],
|
||||
):
|
||||
updated_build = BuildParts.update_action(data=data, token=token_dict)
|
||||
@@ -104,6 +108,7 @@ class BuildingBuildPartsPatchEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"87a15ade-3474-4206-b574-bbf8580cbb14": "building_build_parts_patch"
|
||||
}
|
||||
__event_validation__ = {"87a15ade-3474-4206-b574-bbf8580cbb14": None}
|
||||
|
||||
@classmethod
|
||||
def building_build_parts_patch(cls, data, token_dict):
|
||||
|
||||
@@ -23,6 +23,9 @@ class BuildSitesListEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"6798414c-6c7d-47f0-9d8b-6935a0f51c2e": "build_sites_list",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"6798414c-6c7d-47f0-9d8b-6935a0f51c2e": None,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_sites_list(
|
||||
@@ -65,6 +68,9 @@ class BuildSitesCreateEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"57edc8bf-8f29-4e75-b5e1-9ca0139a3fda": "build_sites_create",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"57edc8bf-8f29-4e75-b5e1-9ca0139a3fda": InsertBuildArea,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_area_create(
|
||||
@@ -113,6 +119,9 @@ class BuildSitesUpdateEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"b18e8e37-a62b-4a84-9972-ba17121ed393": "build_sites_update",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"b18e8e37-a62b-4a84-9972-ba17121ed393": UpdateBuildArea,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_area_update(
|
||||
@@ -134,6 +143,9 @@ class BuildSitesPatchEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"39ba1d78-ff0d-4ec7-a363-b457cbf199a0": "build_sites_patch",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"39ba1d78-ff0d-4ec7-a363-b457cbf199a0": None,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_area_patch(
|
||||
|
||||
@@ -15,6 +15,7 @@ class BuildTypesListEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"5344d03c-fc47-43ec-8c44-6c2acd7e5d9f": "build_types_list",
|
||||
}
|
||||
__event_validation__ = {"5344d03c-fc47-43ec-8c44-6c2acd7e5d9f": None}
|
||||
|
||||
@classmethod
|
||||
def build_types_list(
|
||||
|
||||
@@ -29,6 +29,7 @@ class BuildingLivingSpacesListEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"36961d8a-cefa-46cc-9f7c-9d841d6351b6": "building_live_space_list",
|
||||
}
|
||||
__event_validation__ = {"36961d8a-cefa-46cc-9f7c-9d841d6351b6": None}
|
||||
|
||||
@classmethod
|
||||
def building_live_space_list(
|
||||
@@ -108,6 +109,9 @@ class BuildingLivingSpacesCreateEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"46d90119-3b23-4784-8053-fe11da4a3584": "building_live_space_create"
|
||||
}
|
||||
__event_validation__ = {
|
||||
"46d90119-3b23-4784-8053-fe11da4a3584": InsertBuildLivingSpace
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def building_live_space_create(
|
||||
@@ -207,6 +211,9 @@ class BuildingLivingSpacesUpdateEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"c786e15c-c03e-4e8f-936c-7e5e5ec9bbcc": "building_live_space_update",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"c786e15c-c03e-4e8f-936c-7e5e5ec9bbcc": UpdateBuildLivingSpace
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def building_live_space_update(
|
||||
|
||||
Reference in New Issue
Block a user