events updated
This commit is contained in:
parent
6682d50228
commit
eab9e93969
|
|
@ -3,6 +3,10 @@ from typing import Union
|
||||||
from fastapi.exceptions import HTTPException
|
from fastapi.exceptions import HTTPException
|
||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
|
|
||||||
|
from api_validations.validations_response.address import (
|
||||||
|
ListAddressResponse,
|
||||||
|
AddressPostCodeResponse,
|
||||||
|
)
|
||||||
from databases import (
|
from databases import (
|
||||||
AddressPostcode,
|
AddressPostcode,
|
||||||
Addresses,
|
Addresses,
|
||||||
|
|
@ -33,6 +37,10 @@ class AddressListEventMethods(MethodToEvent):
|
||||||
"9c251d7d-da70-4d63-a72c-e69c26270442": "address_list_super_user",
|
"9c251d7d-da70-4d63-a72c-e69c26270442": "address_list_super_user",
|
||||||
"52afe375-dd95-4f4b-aaa2-4ec61bc6de52": "address_list_employee",
|
"52afe375-dd95-4f4b-aaa2-4ec61bc6de52": "address_list_employee",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"9c251d7d-da70-4d63-a72c-e69c26270442": ListAddressResponse,
|
||||||
|
"52afe375-dd95-4f4b-aaa2-4ec61bc6de52": ListAddressResponse,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def address_list_super_user(
|
def address_list_super_user(
|
||||||
|
|
@ -100,6 +108,9 @@ class AddressCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"ffdc445f-da10-4ce4-9531-d2bdb9a198ae": "create_address",
|
"ffdc445f-da10-4ce4-9531-d2bdb9a198ae": "create_address",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"ffdc445f-da10-4ce4-9531-d2bdb9a198ae": InsertAddress,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create_address(
|
def create_address(
|
||||||
|
|
@ -143,6 +154,9 @@ class AddressSearchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"e0ac1269-e9a7-4806-9962-219ac224b0d0": "search_address",
|
"e0ac1269-e9a7-4806-9962-219ac224b0d0": "search_address",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"e0ac1269-e9a7-4806-9962-219ac224b0d0": SearchAddress,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def search_address(
|
def search_address(
|
||||||
|
|
@ -218,6 +232,9 @@ class AddressUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"1f9c3a9c-e5bd-4dcd-9b9a-3742d7e03a27": "update_address",
|
"1f9c3a9c-e5bd-4dcd-9b9a-3742d7e03a27": "update_address",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"1f9c3a9c-e5bd-4dcd-9b9a-3742d7e03a27": UpdateAddress,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def update_address(
|
def update_address(
|
||||||
|
|
@ -263,6 +280,9 @@ class AddressPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"b0e55a7e-af81-468c-b46c-a6b3a6b68d5d": "patch_address",
|
"b0e55a7e-af81-468c-b46c-a6b3a6b68d5d": "patch_address",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"b0e55a7e-af81-468c-b46c-a6b3a6b68d5d": None,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def patch_address(
|
def patch_address(
|
||||||
|
|
@ -307,6 +327,9 @@ class AddressPostCodeCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"6f1406ac-577d-4f2c-8077-71fff2252c5f": "create_post_code_address",
|
"6f1406ac-577d-4f2c-8077-71fff2252c5f": "create_post_code_address",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"6f1406ac-577d-4f2c-8077-71fff2252c5f": InsertPostCode,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create_post_code_address(
|
def create_post_code_address(
|
||||||
|
|
@ -357,6 +380,9 @@ class AddressPostCodeUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"df18e489-a63c-477f-984c-aa52d30640ad": "update_post_code_address",
|
"df18e489-a63c-477f-984c-aa52d30640ad": "update_post_code_address",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"df18e489-a63c-477f-984c-aa52d30640ad": UpdatePostCode,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def update_post_code_address(
|
def update_post_code_address(
|
||||||
|
|
@ -413,6 +439,9 @@ class AddressPostCodeListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"88d37b78-1ac4-4513-9d25-090ac3a24f31": "list_post_code_address",
|
"88d37b78-1ac4-4513-9d25-090ac3a24f31": "list_post_code_address",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"88d37b78-1ac4-4513-9d25-090ac3a24f31": AddressPostCodeResponse,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def list_post_code_address(
|
def list_post_code_address(
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,9 @@ class AuthenticationLoginEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"e672846d-cc45-4d97-85d5-6f96747fac67": "authentication_login_with_domain_and_creds",
|
"e672846d-cc45-4d97-85d5-6f96747fac67": "authentication_login_with_domain_and_creds",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"e672846d-cc45-4d97-85d5-6f96747fac67": "authentication_login_with_domain_and_creds",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_login_with_domain_and_creds(
|
def authentication_login_with_domain_and_creds(
|
||||||
|
|
@ -105,6 +108,9 @@ class AuthenticationSelectEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"cee96b9b-8487-4e9f-aaed-2e8c79687bf9": "authentication_select_company_or_occupant_type",
|
"cee96b9b-8487-4e9f-aaed-2e8c79687bf9": "authentication_select_company_or_occupant_type",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"cee96b9b-8487-4e9f-aaed-2e8c79687bf9": "authentication_select_company_or_occupant_type",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_select_company_or_occupant_type(
|
def authentication_select_company_or_occupant_type(
|
||||||
|
|
@ -273,6 +279,9 @@ class AuthenticationCheckTokenEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"73d77e45-a33f-4f12-909e-3b56f00d8a12": "authentication_check_token_is_valid",
|
"73d77e45-a33f-4f12-909e-3b56f00d8a12": "authentication_check_token_is_valid",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"73d77e45-a33f-4f12-909e-3b56f00d8a12": "authentication_check_token_is_valid",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_login_with_domain_and_creds(
|
def authentication_login_with_domain_and_creds(
|
||||||
|
|
@ -302,6 +311,9 @@ class AuthenticationRefreshEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"48379bb2-ba81-4d8e-a9dd-58837cfcbf67": "authentication_refresh_user_info",
|
"48379bb2-ba81-4d8e-a9dd-58837cfcbf67": "authentication_refresh_user_info",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"48379bb2-ba81-4d8e-a9dd-58837cfcbf67": "authentication_refresh_user_info",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_refresh_user_info(
|
def authentication_refresh_user_info(
|
||||||
|
|
@ -346,6 +358,9 @@ class AuthenticationChangePasswordEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"f09f7c1a-bee6-4e32-8444-962ec8f39091": "authentication_change_password",
|
"f09f7c1a-bee6-4e32-8444-962ec8f39091": "authentication_change_password",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"f09f7c1a-bee6-4e32-8444-962ec8f39091": "authentication_change_password",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_change_password(
|
def authentication_change_password(
|
||||||
|
|
@ -386,6 +401,9 @@ class AuthenticationCreatePasswordEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"c519f9af-92e1-47b2-abf7-5a3316d075f7": "authentication_create_password",
|
"c519f9af-92e1-47b2-abf7-5a3316d075f7": "authentication_create_password",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"c519f9af-92e1-47b2-abf7-5a3316d075f7": "authentication_create_password",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_create_password(cls, data: CreatePassword):
|
def authentication_create_password(cls, data: CreatePassword):
|
||||||
|
|
@ -436,6 +454,9 @@ class AuthenticationDisconnectUserEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"8b586848-2fb3-4161-abbe-642157eec7ce": "authentication_disconnect_user",
|
"8b586848-2fb3-4161-abbe-642157eec7ce": "authentication_disconnect_user",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"8b586848-2fb3-4161-abbe-642157eec7ce": "authentication_disconnect_user",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_disconnect_user(
|
def authentication_disconnect_user(
|
||||||
|
|
@ -483,6 +504,9 @@ class AuthenticationLogoutEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"5cc22e4e-a0f7-4077-be41-1871feb3dfd1": "authentication_logout_user",
|
"5cc22e4e-a0f7-4077-be41-1871feb3dfd1": "authentication_logout_user",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"5cc22e4e-a0f7-4077-be41-1871feb3dfd1": "authentication_logout_user",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_logout_user(
|
def authentication_logout_user(
|
||||||
|
|
@ -526,6 +550,9 @@ class AuthenticationRefreshTokenEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"c90f3334-10c9-4181-b5ff-90d98a0287b2": "authentication_refresher_token",
|
"c90f3334-10c9-4181-b5ff-90d98a0287b2": "authentication_refresher_token",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"c90f3334-10c9-4181-b5ff-90d98a0287b2": "authentication_refresher_token",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_refresher_token(
|
def authentication_refresher_token(
|
||||||
|
|
@ -583,6 +610,9 @@ class AuthenticationForgotPasswordEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"e3ca6e24-b9f8-4127-949c-3bfa364e3513": "authentication_forgot_password",
|
"e3ca6e24-b9f8-4127-949c-3bfa364e3513": "authentication_forgot_password",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"e3ca6e24-b9f8-4127-949c-3bfa364e3513": "authentication_forgot_password",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_forgot_password(
|
def authentication_forgot_password(
|
||||||
|
|
@ -631,6 +661,9 @@ class AuthenticationDownloadAvatarEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"c140cd5f-307f-4046-a93e-3ade032a57a7": "authentication_download_avatar",
|
"c140cd5f-307f-4046-a93e-3ade032a57a7": "authentication_download_avatar",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"c140cd5f-307f-4046-a93e-3ade032a57a7": "authentication_download_avatar",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def authentication_download_avatar(cls, data: Forgot):
|
def authentication_download_avatar(cls, data: Forgot):
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,7 @@ from api_validations.validations_request import (
|
||||||
PatchRecord,
|
PatchRecord,
|
||||||
ListOptions,
|
ListOptions,
|
||||||
)
|
)
|
||||||
from api_validations.validations_response import (
|
from api_validations.validations_response import ListBuildingResponse
|
||||||
ListBuildingResponse
|
|
||||||
)
|
|
||||||
|
|
||||||
from api_validations.core_response import AlchemyJsonResponse
|
from api_validations.core_response import AlchemyJsonResponse
|
||||||
from api_events.events.abstract_class import MethodToEvent, ActionsSchema
|
from api_events.events.abstract_class import MethodToEvent, ActionsSchema
|
||||||
|
|
@ -240,6 +238,9 @@ class BuildPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"e3876bfe-8847-4dea-ae36-e709f7431930": "build_patch",
|
"e3876bfe-8847-4dea-ae36-e709f7431930": "build_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"e3876bfe-8847-4dea-ae36-e709f7431930": "build_patch",
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_patch(cls, build_uu_id: str, data: PatchRecord, token_dict):
|
def build_patch(cls, build_uu_id: str, data: PatchRecord, token_dict):
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@ class BuildAreaListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"0bb51845-65a2-4340-8872-a3b5aad95468": "build_area_list",
|
"0bb51845-65a2-4340-8872-a3b5aad95468": "build_area_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"0bb51845-65a2-4340-8872-a3b5aad95468": None,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_area_list(
|
def build_area_list(
|
||||||
|
|
@ -56,6 +59,9 @@ class BuildAreaCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"a10571fa-ac1d-4546-9272-cacb911d8004": "build_area_create",
|
"a10571fa-ac1d-4546-9272-cacb911d8004": "build_area_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"a10571fa-ac1d-4546-9272-cacb911d8004": InsertBuildArea,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_area_create(
|
def build_area_create(
|
||||||
|
|
@ -114,6 +120,9 @@ class BuildAreaUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"58178738-7489-4f8f-954e-5c8f083c1845": "build_area_update",
|
"58178738-7489-4f8f-954e-5c8f083c1845": "build_area_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"58178738-7489-4f8f-954e-5c8f083c1845": UpdateBuildArea,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_area_update(
|
def build_area_update(
|
||||||
|
|
@ -135,6 +144,9 @@ class BuildAreaPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"d6bd8a5f-fa76-49da-b82e-4a95f1bcce39": "build_area_patch",
|
"d6bd8a5f-fa76-49da-b82e-4a95f1bcce39": "build_area_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"d6bd8a5f-fa76-49da-b82e-4a95f1bcce39": None,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_area_patch(
|
def build_area_patch(
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ from api_validations.core_response import AlchemyJsonResponse
|
||||||
|
|
||||||
from api_validations.validations_request import (
|
from api_validations.validations_request import (
|
||||||
InsertBuildParts,
|
InsertBuildParts,
|
||||||
|
UpdateBuildParts,
|
||||||
ListOptions,
|
ListOptions,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -23,6 +24,7 @@ class BuildingBuildPartsListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"b860e37a-e19b-4c45-9543-461241f7587c": "building_build_parts_list"
|
"b860e37a-e19b-4c45-9543-461241f7587c": "building_build_parts_list"
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"b860e37a-e19b-4c45-9543-461241f7587c": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_build_parts_list(
|
def building_build_parts_list(
|
||||||
|
|
@ -52,6 +54,7 @@ class BuildingBuildPartsCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"fb403f69-11ed-4f4f-ad71-5e6fb4a793d2": "building_build_parts_create"
|
"fb403f69-11ed-4f4f-ad71-5e6fb4a793d2": "building_build_parts_create"
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"fb403f69-11ed-4f4f-ad71-5e6fb4a793d2": InsertBuildParts}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_build_parts_create(
|
def building_build_parts_create(
|
||||||
|
|
@ -79,11 +82,12 @@ class BuildingBuildPartsUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"58fdf95e-2110-4ed6-9c26-95f4be87eaee": "building_build_parts_update"
|
"58fdf95e-2110-4ed6-9c26-95f4be87eaee": "building_build_parts_update"
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"58fdf95e-2110-4ed6-9c26-95f4be87eaee": UpdateBuildParts}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_build_parts_update(
|
def building_build_parts_update(
|
||||||
cls,
|
cls,
|
||||||
data: InsertBuildParts,
|
data: UpdateBuildParts,
|
||||||
token_dict: Union[EmployeeTokenObject, OccupantTokenObject],
|
token_dict: Union[EmployeeTokenObject, OccupantTokenObject],
|
||||||
):
|
):
|
||||||
updated_build = BuildParts.update_action(data=data, token=token_dict)
|
updated_build = BuildParts.update_action(data=data, token=token_dict)
|
||||||
|
|
@ -104,6 +108,7 @@ class BuildingBuildPartsPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"87a15ade-3474-4206-b574-bbf8580cbb14": "building_build_parts_patch"
|
"87a15ade-3474-4206-b574-bbf8580cbb14": "building_build_parts_patch"
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"87a15ade-3474-4206-b574-bbf8580cbb14": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_build_parts_patch(cls, data, token_dict):
|
def building_build_parts_patch(cls, data, token_dict):
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ class BuildSitesListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"6798414c-6c7d-47f0-9d8b-6935a0f51c2e": "build_sites_list",
|
"6798414c-6c7d-47f0-9d8b-6935a0f51c2e": "build_sites_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"6798414c-6c7d-47f0-9d8b-6935a0f51c2e": None,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_sites_list(
|
def build_sites_list(
|
||||||
|
|
@ -65,6 +68,9 @@ class BuildSitesCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"57edc8bf-8f29-4e75-b5e1-9ca0139a3fda": "build_sites_create",
|
"57edc8bf-8f29-4e75-b5e1-9ca0139a3fda": "build_sites_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"57edc8bf-8f29-4e75-b5e1-9ca0139a3fda": InsertBuildArea,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_area_create(
|
def build_area_create(
|
||||||
|
|
@ -113,6 +119,9 @@ class BuildSitesUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"b18e8e37-a62b-4a84-9972-ba17121ed393": "build_sites_update",
|
"b18e8e37-a62b-4a84-9972-ba17121ed393": "build_sites_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"b18e8e37-a62b-4a84-9972-ba17121ed393": UpdateBuildArea,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_area_update(
|
def build_area_update(
|
||||||
|
|
@ -134,6 +143,9 @@ class BuildSitesPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"39ba1d78-ff0d-4ec7-a363-b457cbf199a0": "build_sites_patch",
|
"39ba1d78-ff0d-4ec7-a363-b457cbf199a0": "build_sites_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"39ba1d78-ff0d-4ec7-a363-b457cbf199a0": None,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_area_patch(
|
def build_area_patch(
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ class BuildTypesListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"5344d03c-fc47-43ec-8c44-6c2acd7e5d9f": "build_types_list",
|
"5344d03c-fc47-43ec-8c44-6c2acd7e5d9f": "build_types_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"5344d03c-fc47-43ec-8c44-6c2acd7e5d9f": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_types_list(
|
def build_types_list(
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ class BuildingLivingSpacesListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"36961d8a-cefa-46cc-9f7c-9d841d6351b6": "building_live_space_list",
|
"36961d8a-cefa-46cc-9f7c-9d841d6351b6": "building_live_space_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"36961d8a-cefa-46cc-9f7c-9d841d6351b6": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_live_space_list(
|
def building_live_space_list(
|
||||||
|
|
@ -108,6 +109,9 @@ class BuildingLivingSpacesCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"46d90119-3b23-4784-8053-fe11da4a3584": "building_live_space_create"
|
"46d90119-3b23-4784-8053-fe11da4a3584": "building_live_space_create"
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"46d90119-3b23-4784-8053-fe11da4a3584": InsertBuildLivingSpace
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_live_space_create(
|
def building_live_space_create(
|
||||||
|
|
@ -207,6 +211,9 @@ class BuildingLivingSpacesUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"c786e15c-c03e-4e8f-936c-7e5e5ec9bbcc": "building_live_space_update",
|
"c786e15c-c03e-4e8f-936c-7e5e5ec9bbcc": "building_live_space_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"c786e15c-c03e-4e8f-936c-7e5e5ec9bbcc": UpdateBuildLivingSpace
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_live_space_update(
|
def building_live_space_update(
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ class CompanyListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"f6900cb5-ac5b-478e-8e7c-fa87e65cd2e5": "company_list",
|
"f6900cb5-ac5b-478e-8e7c-fa87e65cd2e5": "company_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"f6900cb5-ac5b-478e-8e7c-fa87e65cd2e5": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def company_list(
|
def company_list(
|
||||||
|
|
@ -56,6 +57,7 @@ class CompanyCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"76f11a08-5f4a-4e1f-961f-aaef21699acd": "company_create",
|
"76f11a08-5f4a-4e1f-961f-aaef21699acd": "company_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"76f11a08-5f4a-4e1f-961f-aaef21699acd": InsertCompany}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def company_create(
|
def company_create(
|
||||||
|
|
@ -84,6 +86,9 @@ class CompanyUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"41ea7f29-006a-4310-b5c4-b2a0e1a504bd": "company_update",
|
"41ea7f29-006a-4310-b5c4-b2a0e1a504bd": "company_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"41ea7f29-006a-4310-b5c4-b2a0e1a504bd": UpdateCompany,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def company_update(
|
def company_update(
|
||||||
|
|
@ -125,6 +130,7 @@ class CompanyPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"6320d696-1fd1-49f9-860a-8f22e5b8a68d": "company_patch",
|
"6320d696-1fd1-49f9-860a-8f22e5b8a68d": "company_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"6320d696-1fd1-49f9-860a-8f22e5b8a68d": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def company_patch(
|
def company_patch(
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ class DepartmentListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"2cb90331-c1b4-4923-8314-8111326b621a": "department_list",
|
"2cb90331-c1b4-4923-8314-8111326b621a": "department_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"2cb90331-c1b4-4923-8314-8111326b621a": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def department_list(
|
def department_list(
|
||||||
|
|
@ -55,6 +56,7 @@ class DepartmentCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"d8bd3985-7f3b-4267-a74e-d5017e4ea9f8": "super_user_department_create",
|
"d8bd3985-7f3b-4267-a74e-d5017e4ea9f8": "super_user_department_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"d8bd3985-7f3b-4267-a74e-d5017e4ea9f8": DepartmentsPydantic}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def super_user_department_create(
|
def super_user_department_create(
|
||||||
|
|
@ -83,6 +85,7 @@ class DepartmentUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"4172706f-06c9-4c38-9ac8-59085a72f80a": "department_update",
|
"4172706f-06c9-4c38-9ac8-59085a72f80a": "department_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"4172706f-06c9-4c38-9ac8-59085a72f80a": DepartmentsPydantic}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def department_update(
|
def department_update(
|
||||||
|
|
@ -120,6 +123,7 @@ class DepartmentPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"1e272e4f-6c1e-418b-91a7-be8b06c875da": "department_patch",
|
"1e272e4f-6c1e-418b-91a7-be8b06c875da": "department_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"1e272e4f-6c1e-418b-91a7-be8b06c875da": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def department_patch(
|
def department_patch(
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ class DutiesListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"44b72beb-53a8-407b-a12a-76e74b65794d": "duties_list",
|
"44b72beb-53a8-407b-a12a-76e74b65794d": "duties_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"44b72beb-53a8-407b-a12a-76e74b65794d": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def duties_list(
|
def duties_list(
|
||||||
|
|
@ -46,6 +47,7 @@ class DutiesGetByUUIDEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"30c54cce-3303-4d36-959a-b64e383ae177": "duties_get_by_uuid",
|
"30c54cce-3303-4d36-959a-b64e383ae177": "duties_get_by_uuid",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"30c54cce-3303-4d36-959a-b64e383ae177": SelectDuties}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def duties_get_by_uuid(
|
def duties_get_by_uuid(
|
||||||
|
|
@ -91,6 +93,7 @@ class DutiesCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"3524ae42-0825-4af7-be85-7c890a4f65d3": "duties_create",
|
"3524ae42-0825-4af7-be85-7c890a4f65d3": "duties_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"3524ae42-0825-4af7-be85-7c890a4f65d3": InsertDuties}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def duties_create(
|
def duties_create(
|
||||||
|
|
@ -140,6 +143,7 @@ class DutiesUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"3fc77829-f1ee-4511-a2ca-582daa03125b": "duties_update",
|
"3fc77829-f1ee-4511-a2ca-582daa03125b": "duties_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"3fc77829-f1ee-4511-a2ca-582daa03125b": UpdateDuties}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def duties_update(
|
def duties_update(
|
||||||
|
|
@ -175,6 +179,7 @@ class DutiesPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"ca81c6d1-975a-4288-a27b-1069aea84afe": "duties_patch",
|
"ca81c6d1-975a-4288-a27b-1069aea84afe": "duties_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"ca81c6d1-975a-4288-a27b-1069aea84afe": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def duties_patch(
|
def duties_patch(
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ class DutyListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"23231c7d-4ff2-4b39-b71b-ea350d31fadf": "duty_list",
|
"23231c7d-4ff2-4b39-b71b-ea350d31fadf": "duty_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"23231c7d-4ff2-4b39-b71b-ea350d31fadf": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def duty_list(
|
def duty_list(
|
||||||
|
|
@ -42,6 +43,7 @@ class DutyCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"c6ea200e-fa17-4393-b390-37f5337c9c65": "duty_create",
|
"c6ea200e-fa17-4393-b390-37f5337c9c65": "duty_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"c6ea200e-fa17-4393-b390-37f5337c9c65": InsertCompanyDuty}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def duty_create(
|
def duty_create(
|
||||||
|
|
@ -67,6 +69,7 @@ class DutyUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"ad952647-bcf8-482d-9e05-b2ee8086483f": "duty_update",
|
"ad952647-bcf8-482d-9e05-b2ee8086483f": "duty_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"ad952647-bcf8-482d-9e05-b2ee8086483f": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def duty_update(
|
def duty_update(
|
||||||
|
|
@ -104,6 +107,7 @@ class DutyPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"d5c7b5c4-7b4e-4d5b-8e3b-2b9c5f5d0c0b": "duty_patch",
|
"d5c7b5c4-7b4e-4d5b-8e3b-2b9c5f5d0c0b": "duty_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"d5c7b5c4-7b4e-4d5b-8e3b-2b9c5f5d0c0b": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def duty_patch(
|
def duty_patch(
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ class EmployeeListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"cb677c92-6b05-4122-af5c-12766fae8095": "employee_list",
|
"cb677c92-6b05-4122-af5c-12766fae8095": "employee_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"cb677c92-6b05-4122-af5c-12766fae8095": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def employee_list(
|
def employee_list(
|
||||||
|
|
@ -49,6 +50,7 @@ class EmployeeCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"1e1632c3-bb0e-46a5-8e45-da3f6d88ac43": "employee_create",
|
"1e1632c3-bb0e-46a5-8e45-da3f6d88ac43": "employee_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"1e1632c3-bb0e-46a5-8e45-da3f6d88ac43": InsertEmployees}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def employee_create(
|
def employee_create(
|
||||||
|
|
@ -94,6 +96,7 @@ class EmployeeUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"9015a076-d78c-463d-9474-ea343a125fb8": "employee_update",
|
"9015a076-d78c-463d-9474-ea343a125fb8": "employee_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"9015a076-d78c-463d-9474-ea343a125fb8": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def employee_update(
|
def employee_update(
|
||||||
|
|
@ -137,6 +140,7 @@ class EmployeePatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"8446ce0b-9310-4b9f-93e2-61f56a9dacd1": "employee_patch",
|
"8446ce0b-9310-4b9f-93e2-61f56a9dacd1": "employee_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"8446ce0b-9310-4b9f-93e2-61f56a9dacd1": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def employee_patch(
|
def employee_patch(
|
||||||
|
|
@ -185,6 +189,9 @@ class Employee2PeopleEmployEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"5eb04057-7a74-4555-b2c6-14eda32dae89": "company_employee_employ",
|
"5eb04057-7a74-4555-b2c6-14eda32dae89": "company_employee_employ",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"5eb04057-7a74-4555-b2c6-14eda32dae89": BindEmployees2People
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def company_employee_employ(
|
def company_employee_employ(
|
||||||
|
|
@ -247,6 +254,9 @@ class Employee2PeopleFireEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"caf914fa-0899-4b0b-a85a-3d40fdaa06a5": "company_employee_fire",
|
"caf914fa-0899-4b0b-a85a-3d40fdaa06a5": "company_employee_fire",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"caf914fa-0899-4b0b-a85a-3d40fdaa06a5": BindEmployees2People
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def company_employee_fire(
|
def company_employee_fire(
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ class StaffListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"8984a519-99bf-4f25-8f34-2e1aebba468c": "staff_list",
|
"8984a519-99bf-4f25-8f34-2e1aebba468c": "staff_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"8984a519-99bf-4f25-8f34-2e1aebba468c": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def staff_list(cls, list_options: ListOptions, token_dict: EmployeeTokenObject):
|
def staff_list(cls, list_options: ListOptions, token_dict: EmployeeTokenObject):
|
||||||
|
|
@ -38,6 +39,7 @@ class StaffCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"8f619257-19fd-404f-b713-7392c588dc36": "staff_create",
|
"8f619257-19fd-404f-b713-7392c588dc36": "staff_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"8f619257-19fd-404f-b713-7392c588dc36": InsertStaff}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def staff_create(cls, data: InsertStaff, token_dict: EmployeeTokenObject):
|
def staff_create(cls, data: InsertStaff, token_dict: EmployeeTokenObject):
|
||||||
|
|
@ -69,6 +71,7 @@ class StaffGetByUUIDEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"7724cfbb-c0ee-4261-959b-61b84e88a34f": "staff_get_by_uu_id",
|
"7724cfbb-c0ee-4261-959b-61b84e88a34f": "staff_get_by_uu_id",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"7724cfbb-c0ee-4261-959b-61b84e88a34f": SelectStaff}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def staff_get_by_uu_id(cls, data: SelectStaff, token_dict: EmployeeTokenObject):
|
def staff_get_by_uu_id(cls, data: SelectStaff, token_dict: EmployeeTokenObject):
|
||||||
|
|
@ -104,6 +107,7 @@ class StaffUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"5329f35d-ff9d-4656-a831-ba9c8204e483": "staff_update",
|
"5329f35d-ff9d-4656-a831-ba9c8204e483": "staff_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"5329f35d-ff9d-4656-a831-ba9c8204e483": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def staff_update(cls, staff_uu_id: str, data, token_dict: EmployeeTokenObject):
|
def staff_update(cls, staff_uu_id: str, data, token_dict: EmployeeTokenObject):
|
||||||
|
|
@ -119,6 +123,7 @@ class StaffPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"b1cd7c0a-1458-472b-894f-3adc857c8512": "staff_patch",
|
"b1cd7c0a-1458-472b-894f-3adc857c8512": "staff_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"b1cd7c0a-1458-472b-894f-3adc857c8512": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def staff_patch(
|
def staff_patch(
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ class DecisionBookListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"5c10d6ae-2aee-4243-a7c3-94826d028d13": "building_decision_book_list",
|
"5c10d6ae-2aee-4243-a7c3-94826d028d13": "building_decision_book_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"5c10d6ae-2aee-4243-a7c3-94826d028d13": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_list(
|
def building_decision_book_list(
|
||||||
|
|
@ -67,6 +68,7 @@ class DecisionBookCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"0a68cb44-271a-4829-81f6-cd99a5f326b4": "building_decision_book_create",
|
"0a68cb44-271a-4829-81f6-cd99a5f326b4": "building_decision_book_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"0a68cb44-271a-4829-81f6-cd99a5f326b4": InsertDecisionBook}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_create(
|
def building_decision_book_create(
|
||||||
|
|
@ -177,6 +179,7 @@ class DecisionBookUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"6bc7035c-3b53-4c0a-8cc9-1ec9c6af1e29": "building_decision_book_update",
|
"6bc7035c-3b53-4c0a-8cc9-1ec9c6af1e29": "building_decision_book_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"6bc7035c-3b53-4c0a-8cc9-1ec9c6af1e29": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_update(cls, data: InsertDecisionBook, token_dict: dict):
|
def building_decision_book_update(cls, data: InsertDecisionBook, token_dict: dict):
|
||||||
|
|
@ -189,6 +192,7 @@ class DecisionBookPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"7b58ed84-9a65-4588-994d-30df8366b050": "building_decision_book_patch",
|
"7b58ed84-9a65-4588-994d-30df8366b050": "building_decision_book_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"7b58ed84-9a65-4588-994d-30df8366b050": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_patch(cls, data: InsertDecisionBook, token_dict: dict):
|
def building_decision_book_patch(cls, data: InsertDecisionBook, token_dict: dict):
|
||||||
|
|
@ -201,6 +205,7 @@ class DecisionBookApprovalEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"fc745142-3437-4ca2-89fa-c5a3e2b5c6c2": "building_decision_book_approval",
|
"fc745142-3437-4ca2-89fa-c5a3e2b5c6c2": "building_decision_book_approval",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"fc745142-3437-4ca2-89fa-c5a3e2b5c6c2": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_approval(cls, data, token_dict):
|
def building_decision_book_approval(cls, data, token_dict):
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ class DecisionBookDecisionBookItemsListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"eb36de59-8268-4d96-80b6-5d01c12bf0b1": "building_decision_book_items_list",
|
"eb36de59-8268-4d96-80b6-5d01c12bf0b1": "building_decision_book_items_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"eb36de59-8268-4d96-80b6-5d01c12bf0b1": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_items_list(
|
def building_decision_book_items_list(
|
||||||
|
|
@ -120,6 +121,9 @@ class DecisionBookDecisionBookItemsCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"dce10509-0da5-46fb-af3c-a81d54d5481c": "building_decision_book_items_create",
|
"dce10509-0da5-46fb-af3c-a81d54d5481c": "building_decision_book_items_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"dce10509-0da5-46fb-af3c-a81d54d5481c": InsertBuildDecisionBookItems
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def iterate_over_build_parts(
|
def iterate_over_build_parts(
|
||||||
|
|
@ -494,6 +498,7 @@ class DecisionBookDecisionBookItemsUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"f0fdfe1b-806b-4175-ad50-a1a165c0dfb7": "building_decision_book_items_update",
|
"f0fdfe1b-806b-4175-ad50-a1a165c0dfb7": "building_decision_book_items_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"f0fdfe1b-806b-4175-ad50-a1a165c0dfb7": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_items_update(
|
def building_decision_book_items_update(
|
||||||
|
|
@ -510,6 +515,7 @@ class DecisionBookDecisionBookItemsPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"42328809-b516-477b-82cc-2d6fadf28843": "building_decision_book_items_patch",
|
"42328809-b516-477b-82cc-2d6fadf28843": "building_decision_book_items_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"42328809-b516-477b-82cc-2d6fadf28843": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_items_patch(
|
def building_decision_book_items_patch(
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ class DecisionBookDecisionBookItemsDebitsListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"a1d2b1f6-9b8d-4f6b-8f4d-6b1f6a9d8b1a": "decision_book_decision_book_items_debits_list",
|
"a1d2b1f6-9b8d-4f6b-8f4d-6b1f6a9d8b1a": "decision_book_decision_book_items_debits_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"a1d2b1f6-9b8d-4f6b-8f4d-6b1f6a9d8b1a": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def decision_book_decision_book_items_debits_list(
|
def decision_book_decision_book_items_debits_list(
|
||||||
|
|
@ -54,6 +55,7 @@ class DecisionBookDecisionBookItemsDebitsCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"a1d2b1f6-9b8d-4f6b-8f4d-6b1f6a9d8b1a": "decision_book_decision_book_items_debits_create",
|
"a1d2b1f6-9b8d-4f6b-8f4d-6b1f6a9d8b1a": "decision_book_decision_book_items_debits_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"a1d2b1f6-9b8d-4f6b-8f4d-6b1f6a9d8b1a": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def decision_book_decision_book_items_debits_create(
|
def decision_book_decision_book_items_debits_create(
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ class DecisionBookPersonListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"ea324dc0-3b08-4896-9040-7fa0401a176f": "building_decision_book_person_list",
|
"ea324dc0-3b08-4896-9040-7fa0401a176f": "building_decision_book_person_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"ea324dc0-3b08-4896-9040-7fa0401a176f": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_person_list(
|
def building_decision_book_person_list(
|
||||||
|
|
@ -48,6 +49,9 @@ class DecisionBookPersonAddEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"e346f720-880b-4b07-93d6-9ac76fbbaa33": "building_decision_book_person_add",
|
"e346f720-880b-4b07-93d6-9ac76fbbaa33": "building_decision_book_person_add",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"e346f720-880b-4b07-93d6-9ac76fbbaa33": DecisionBookDecisionBookInvitationsUpdate
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_person_add(
|
def building_decision_book_person_add(
|
||||||
|
|
@ -142,6 +146,9 @@ class DecisionBookPersonRemoveEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"30588869-04cd-48ea-ad00-0e4f8dd7f735": "building_decision_book_people_remove",
|
"30588869-04cd-48ea-ad00-0e4f8dd7f735": "building_decision_book_people_remove",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"30588869-04cd-48ea-ad00-0e4f8dd7f735": RemoveDecisionBookPerson
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def building_decision_book_people_remove(
|
def building_decision_book_people_remove(
|
||||||
|
|
@ -156,6 +163,9 @@ class DecisionBookPersonAttendEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"bdcba521-0116-441c-ace1-84c5b68c86c7": "decision_book_invitations_attend",
|
"bdcba521-0116-441c-ace1-84c5b68c86c7": "decision_book_invitations_attend",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"bdcba521-0116-441c-ace1-84c5b68c86c7": DecisionBookDecisionBookInvitationsAttend
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def decision_book_invitations_attend(
|
def decision_book_invitations_attend(
|
||||||
|
|
@ -222,6 +232,9 @@ class DecisionBookPersonAssignOccupantEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"c0b65098-9c79-4212-b1d0-c7e7836cf141": "decision_book_invitations_assign_occupant",
|
"c0b65098-9c79-4212-b1d0-c7e7836cf141": "decision_book_invitations_assign_occupant",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"c0b65098-9c79-4212-b1d0-c7e7836cf141": DecisionBookDecisionBookInvitationsAssign
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def decision_book_invitations_assign_occupant(
|
def decision_book_invitations_assign_occupant(
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ class BuildDecisionBookInvitationsListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"e2277528-8c9c-4c0c-ae64-3ce80cae664b": "decision_book_invitations_list",
|
"e2277528-8c9c-4c0c-ae64-3ce80cae664b": "decision_book_invitations_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"e2277528-8c9c-4c0c-ae64-3ce80cae664b": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def decision_book_invitations_list(
|
def decision_book_invitations_list(
|
||||||
|
|
@ -48,6 +49,9 @@ class BuildDecisionBookInvitationsCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"d0bfa20c-841d-421c-98e6-d308f938d16a": "decision_book_invitations_create",
|
"d0bfa20c-841d-421c-98e6-d308f938d16a": "decision_book_invitations_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"d0bfa20c-841d-421c-98e6-d308f938d16a": DecisionBookDecisionBookInvitations
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def decision_book_invitations_create(
|
def decision_book_invitations_create(
|
||||||
|
|
@ -248,6 +252,9 @@ class BuildDecisionBookInvitationsUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"92413636-53a8-4a05-842c-1485a64e00d1": "decision_book_invitations_attend",
|
"92413636-53a8-4a05-842c-1485a64e00d1": "decision_book_invitations_attend",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"92413636-53a8-4a05-842c-1485a64e00d1": DecisionBookDecisionBookInvitationsUpdate
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def decision_book_invitations_attend(
|
def decision_book_invitations_attend(
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ class ProjectDecisionBookListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"96459b36-37f2-4d5b-8370-c459058d5bce": "project_decision_book_list",
|
"96459b36-37f2-4d5b-8370-c459058d5bce": "project_decision_book_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"96459b36-37f2-4d5b-8370-c459058d5bce": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def project_decision_book_list(
|
def project_decision_book_list(
|
||||||
|
|
@ -76,6 +77,9 @@ class ProjectDecisionBookCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"b8e44bb2-f157-4dd5-8a24-0e02db4877c9": "project_decision_book_create",
|
"b8e44bb2-f157-4dd5-8a24-0e02db4877c9": "project_decision_book_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"b8e44bb2-f157-4dd5-8a24-0e02db4877c9": InsertBuildDecisionBookProjects
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def project_decision_book_create(
|
def project_decision_book_create(
|
||||||
|
|
@ -132,6 +136,9 @@ class ProjectDecisionBookUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"bfe3ef13-030f-495f-b692-94bcb746d700": "project_decision_book_update",
|
"bfe3ef13-030f-495f-b692-94bcb746d700": "project_decision_book_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"bfe3ef13-030f-495f-b692-94bcb746d700": UpdateBuildDecisionBookProjects
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def project_decision_book_update(
|
def project_decision_book_update(
|
||||||
|
|
@ -209,6 +216,9 @@ class ProjectDecisionBookApprovalEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"a83a83fe-8446-4c60-9ae5-d1c06adbf626": "project_decision_book_approval",
|
"a83a83fe-8446-4c60-9ae5-d1c06adbf626": "project_decision_book_approval",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"a83a83fe-8446-4c60-9ae5-d1c06adbf626": ApprovalsBuildDecisionBookProjects
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def project_decision_book_approval(
|
def project_decision_book_approval(
|
||||||
|
|
@ -334,6 +344,7 @@ class ProjectDecisionBookPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"444d67a0-b3a8-4ca2-9d8d-f1acc75011e0": "project_decision_book_patch",
|
"444d67a0-b3a8-4ca2-9d8d-f1acc75011e0": "project_decision_book_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"444d67a0-b3a8-4ca2-9d8d-f1acc75011e0": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def project_decision_book_patch(
|
def project_decision_book_patch(
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ class BuildDecisionBookProjectItemsListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"ce3630e4-2bf9-4433-bdab-1ee72117e54b": "build_decision_book_project_items_list",
|
"ce3630e4-2bf9-4433-bdab-1ee72117e54b": "build_decision_book_project_items_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"ce3630e4-2bf9-4433-bdab-1ee72117e54b": None}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def build_decision_book_project_items_list(
|
def build_decision_book_project_items_list(
|
||||||
|
|
@ -45,11 +46,14 @@ class BuildDecisionBookProjectItemsCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"b27e4fd0-6e3e-441b-9b33-806ac7082444": "build_decision_book_project_items_create",
|
"b27e4fd0-6e3e-441b-9b33-806ac7082444": "build_decision_book_project_items_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"b27e4fd0-6e3e-441b-9b33-806ac7082444": InsertBuildDecisionBookProjectItems,
|
||||||
|
}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def build_decision_book_project_items_create(
|
def build_decision_book_project_items_create(
|
||||||
token_dict: Union[EmployeeTokenObject, OccupantTokenObject],
|
|
||||||
data: InsertBuildDecisionBookProjectItems,
|
data: InsertBuildDecisionBookProjectItems,
|
||||||
|
token_dict: Union[EmployeeTokenObject, OccupantTokenObject],
|
||||||
):
|
):
|
||||||
if isinstance(token_dict, EmployeeTokenObject):
|
if isinstance(token_dict, EmployeeTokenObject):
|
||||||
raise BuildDecisionBookProjectItems.raise_http_exception(
|
raise BuildDecisionBookProjectItems.raise_http_exception(
|
||||||
|
|
@ -90,6 +94,9 @@ class BuildDecisionBookProjectItemsUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"b2b7cdce-9a0c-4722-90ff-8bef36b4ec6b": "build_decision_book_project_items_update",
|
"b2b7cdce-9a0c-4722-90ff-8bef36b4ec6b": "build_decision_book_project_items_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"b2b7cdce-9a0c-4722-90ff-8bef36b4ec6b": UpdateBuildDecisionBookProjectItems
|
||||||
|
}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def build_decision_book_project_items_update(
|
def build_decision_book_project_items_update(
|
||||||
|
|
@ -110,6 +117,7 @@ class BuildDecisionBookProjectItemsPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"e59d50df-dd22-4823-aeae-b9490332885c": "build_decision_book_project_items_patch",
|
"e59d50df-dd22-4823-aeae-b9490332885c": "build_decision_book_project_items_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"e59d50df-dd22-4823-aeae-b9490332885c": None}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def build_decision_book_project_items_patch(
|
def build_decision_book_project_items_patch(
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ class ProjectDecisionBookPersonListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"7101b5ca-8bef-40f9-8b4d-646d9994e18f": "project_decision_book_person_list",
|
"7101b5ca-8bef-40f9-8b4d-646d9994e18f": "project_decision_book_person_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"7101b5ca-8bef-40f9-8b4d-646d9994e18f": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def project_decision_book_person_list(
|
def project_decision_book_person_list(
|
||||||
|
|
@ -64,6 +65,9 @@ class ProjectDecisionBookPersonCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"9c88e314-84e8-435e-8c1e-6a5aae80b2e6": "project_decision_book_person_create",
|
"9c88e314-84e8-435e-8c1e-6a5aae80b2e6": "project_decision_book_person_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"9c88e314-84e8-435e-8c1e-6a5aae80b2e6": InsertBuildDecisionBookProjectPerson
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def project_decision_book_create(
|
def project_decision_book_create(
|
||||||
|
|
@ -99,6 +103,9 @@ class ProjectDecisionBookPersonUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"7fbd18a0-c099-4494-ada1-bb23e39bb141": "project_decision_book_update_person",
|
"7fbd18a0-c099-4494-ada1-bb23e39bb141": "project_decision_book_update_person",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"7fbd18a0-c099-4494-ada1-bb23e39bb141": UpdateBuildDecisionBookProjectPerson
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def project_decision_book_update(
|
def project_decision_book_update(
|
||||||
|
|
@ -135,6 +142,7 @@ class ProjectDecisionBookPersonPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"a122e84a-5556-4bf7-b680-1f47c438d4f7": "project_decision_book_person_patch",
|
"a122e84a-5556-4bf7-b680-1f47c438d4f7": "project_decision_book_person_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"a122e84a-5556-4bf7-b680-1f47c438d4f7": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def project_decision_book_patch(
|
def project_decision_book_patch(
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ class EventBindOccupantEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"5702f0a9-fe8f-4aae-922e-6e04b497ef6a": "bind_events_occupant_super_user",
|
"5702f0a9-fe8f-4aae-922e-6e04b497ef6a": "bind_events_occupant_super_user",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"5702f0a9-fe8f-4aae-922e-6e04b497ef6a": RegisterEvents2Occupant
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def bind_events_occupant_super_user(
|
def bind_events_occupant_super_user(
|
||||||
|
|
@ -142,6 +145,9 @@ class EventBindEmployeeEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"c93a3009-65a0-498d-9191-04484d5cde81": "bind_events_employee",
|
"c93a3009-65a0-498d-9191-04484d5cde81": "bind_events_employee",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"c93a3009-65a0-498d-9191-04484d5cde81": RegisterEvents2Occupant
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def bind_events_employee(
|
def bind_events_employee(
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,10 @@ class ModulesBindOccupantEventMethods(MethodToEvent):
|
||||||
|
|
||||||
event_type = "UPDATE"
|
event_type = "UPDATE"
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"": "modules_bind_occupant",
|
"91003e90-8ead-4705-98a3-f8731c6ecb38": "modules_bind_occupant",
|
||||||
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"91003e90-8ead-4705-98a3-f8731c6ecb38": None,
|
||||||
}
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
@ -100,7 +103,10 @@ class ModulesBindEmployeeEventMethods(MethodToEvent):
|
||||||
|
|
||||||
event_type = "UPDATE"
|
event_type = "UPDATE"
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"": "modules_bind_employee",
|
"d4ed23db-62e9-4015-b7c0-698a7917aa0c": "modules_bind_employee",
|
||||||
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"d4ed23db-62e9-4015-b7c0-698a7917aa0c": None,
|
||||||
}
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,9 @@ class ServiceBindOccupantEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"0d2bc5c9-d4b1-4951-8305-69da4a687fdc": "bind_services_occupant",
|
"0d2bc5c9-d4b1-4951-8305-69da4a687fdc": "bind_services_occupant",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"0d2bc5c9-d4b1-4951-8305-69da4a687fdc": RegisterServices2Occupant
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def bind_services_occupant_system(
|
def bind_services_occupant_system(
|
||||||
|
|
@ -167,6 +170,7 @@ class ServiceBindEmployeeEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"50f84023-d8ec-4257-bfce-08ddf077c101": "bind_services_employee_super_user",
|
"50f84023-d8ec-4257-bfce-08ddf077c101": "bind_services_employee_super_user",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"50f84023-d8ec-4257-bfce-08ddf077c101": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def bind_services_employee(cls, service_id: int, employee_id: int):
|
def bind_services_employee(cls, service_id: int, employee_id: int):
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ class EventsListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"9fa01bef-c0e8-4fe1-b9ed-2ff1c4f35faa": "events_list",
|
"9fa01bef-c0e8-4fe1-b9ed-2ff1c4f35faa": "events_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"9fa01bef-c0e8-4fe1-b9ed-2ff1c4f35faa": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def events_list(
|
def events_list(
|
||||||
|
|
@ -77,6 +78,9 @@ class EventsBindEventToOccupantMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"d9aa58aa-37f7-4c27-861d-3105f76f5cdc": "bind_events_employee",
|
"d9aa58aa-37f7-4c27-861d-3105f76f5cdc": "bind_events_employee",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"d9aa58aa-37f7-4c27-861d-3105f76f5cdc": RegisterEvents2Employee
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def bind_events_employee(cls, data: RegisterEvents2Employee, token_dict):
|
def bind_events_employee(cls, data: RegisterEvents2Employee, token_dict):
|
||||||
|
|
@ -126,6 +130,9 @@ class EventsBindEventToEmployeeMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"8bb4f4fc-b474-427e-90b3-d8681f308bb5": "bind_events_occupant",
|
"8bb4f4fc-b474-427e-90b3-d8681f308bb5": "bind_events_occupant",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"8bb4f4fc-b474-427e-90b3-d8681f308bb5": RegisterEvents2Occupant
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def bind_events_occupant(cls, data: RegisterEvents2Occupant, token_dict):
|
def bind_events_occupant(cls, data: RegisterEvents2Occupant, token_dict):
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,12 @@ class PeopleListEventMethods(MethodToEvent):
|
||||||
"25cbbaf8-117a-470f-a844-2cfc70f71dde": "human_resources_users_people_list",
|
"25cbbaf8-117a-470f-a844-2cfc70f71dde": "human_resources_users_people_list",
|
||||||
"cdf62f06-ec50-40de-b19e-adb3dd34bb95": "people_list_only_occupant_tenant_or_owner",
|
"cdf62f06-ec50-40de-b19e-adb3dd34bb95": "people_list_only_occupant_tenant_or_owner",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"0a05f03c-6ed8-4230-a4ff-6e7cf886909b": None,
|
||||||
|
"b5612538-0445-4a4a-ab13-d2a06037f7a5": None,
|
||||||
|
"25cbbaf8-117a-470f-a844-2cfc70f71dde": None,
|
||||||
|
"cdf62f06-ec50-40de-b19e-adb3dd34bb95": None,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def super_users_people_list(
|
def super_users_people_list(
|
||||||
|
|
@ -92,6 +98,9 @@ class PeopleCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"2d1513f4-44ed-4fa3-84d1-dfbd0eadf9a1": "people_create",
|
"2d1513f4-44ed-4fa3-84d1-dfbd0eadf9a1": "people_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {
|
||||||
|
"2d1513f4-44ed-4fa3-84d1-dfbd0eadf9a1": InsertPerson,
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def people_create(
|
def people_create(
|
||||||
|
|
@ -121,6 +130,7 @@ class PeopleUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"e05cf22c-16c4-450b-86c8-417896a26afc": "people_update",
|
"e05cf22c-16c4-450b-86c8-417896a26afc": "people_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"e05cf22c-16c4-450b-86c8-417896a26afc": UpdateUsers}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def people_update(
|
def people_update(
|
||||||
|
|
@ -175,6 +185,7 @@ class PeoplePatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"3ae16d66-090b-4d27-b567-cce1b10a1c3b": "people_patch",
|
"3ae16d66-090b-4d27-b567-cce1b10a1c3b": "people_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"3ae16d66-090b-4d27-b567-cce1b10a1c3b": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def people_patch(cls):
|
def people_patch(cls):
|
||||||
|
|
@ -187,6 +198,7 @@ class PeopleDeleteEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"7f84c7a2-a120-4867-90d4-6767a41320db": "people_delete",
|
"7f84c7a2-a120-4867-90d4-6767a41320db": "people_delete",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"7f84c7a2-a120-4867-90d4-6767a41320db": None}
|
||||||
|
|
||||||
|
|
||||||
PeopleListEventMethod = PeopleListEventMethods(
|
PeopleListEventMethod = PeopleListEventMethods(
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ class UserListEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"1483a8a2-d244-4593-b9f8-f1b4bcbefcd5": "user_list",
|
"1483a8a2-d244-4593-b9f8-f1b4bcbefcd5": "user_list",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"1483a8a2-d244-4593-b9f8-f1b4bcbefcd5": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def user_list(
|
def user_list(
|
||||||
|
|
@ -71,6 +72,7 @@ class UserCreateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"8eb50c24-4bdc-4309-9836-f7048daee409": "user_create",
|
"8eb50c24-4bdc-4309-9836-f7048daee409": "user_create",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"8eb50c24-4bdc-4309-9836-f7048daee409": InsertUsers}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def user_create(
|
def user_create(
|
||||||
|
|
@ -125,6 +127,7 @@ class UserUpdateEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"d08a9470-1eb0-4890-a9e8-b6686239d7e9": "user_update",
|
"d08a9470-1eb0-4890-a9e8-b6686239d7e9": "user_update",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"d08a9470-1eb0-4890-a9e8-b6686239d7e9": UpdateUsers}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def user_update(
|
def user_update(
|
||||||
|
|
@ -165,6 +168,7 @@ class UserPatchEventMethods(MethodToEvent):
|
||||||
__event_keys__ = {
|
__event_keys__ = {
|
||||||
"d26a1a3c-eaeb-4d01-b35b-a5ed714e29c0": "user_patch",
|
"d26a1a3c-eaeb-4d01-b35b-a5ed714e29c0": "user_patch",
|
||||||
}
|
}
|
||||||
|
__event_validation__ = {"d26a1a3c-eaeb-4d01-b35b-a5ed714e29c0": None}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def user_patch(cls, data: PatchRecord, user_uu_id: str, token_dict):
|
def user_patch(cls, data: PatchRecord, user_uu_id: str, token_dict):
|
||||||
|
|
|
||||||
|
|
@ -48,10 +48,6 @@ class SuperUserEventBlock(AddEventFunctionality):
|
||||||
{"function_code": "ffdc445f-da10-4ce4-9531-d2bdb9a198ae"},
|
{"function_code": "ffdc445f-da10-4ce4-9531-d2bdb9a198ae"},
|
||||||
{"function_code": "b0e55a7e-af81-468c-b46c-a6b3a6b68d5d"},
|
{"function_code": "b0e55a7e-af81-468c-b46c-a6b3a6b68d5d"},
|
||||||
{"function_code": "1f9c3a9c-e5bd-4dcd-9b9a-3742d7e03a27"},
|
{"function_code": "1f9c3a9c-e5bd-4dcd-9b9a-3742d7e03a27"},
|
||||||
{"function_code": "68b3b5ed-b74c-4a27-820f-3959214e94e9"},
|
|
||||||
{"function_code": "a2271854-6b90-43da-a440-a62b70d90528"},
|
|
||||||
{"function_code": "5ad38a66-1189-451e-babb-77de2d63d757"},
|
|
||||||
{"function_code": "e3876bfe-8847-4dea-ae36-e709f7431930"},
|
|
||||||
{"function_code": "9c251d7d-da70-4d63-a72c-e69c26270442"},
|
{"function_code": "9c251d7d-da70-4d63-a72c-e69c26270442"},
|
||||||
{"function_code": "6f1406ac-577d-4f2c-8077-71fff2252c5f"},
|
{"function_code": "6f1406ac-577d-4f2c-8077-71fff2252c5f"},
|
||||||
{"function_code": "88d37b78-1ac4-4513-9d25-090ac3a24f31"},
|
{"function_code": "88d37b78-1ac4-4513-9d25-090ac3a24f31"},
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ from api_validations.validations_request import (
|
||||||
ListOptions,
|
ListOptions,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class BuildValidation:
|
class BuildValidation:
|
||||||
tr = {
|
tr = {
|
||||||
**CrudRecordValidation.tr,
|
**CrudRecordValidation.tr,
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ from api_validations.validations_request import (
|
||||||
ListOptions,
|
ListOptions,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class CompanyValidation:
|
class CompanyValidation:
|
||||||
tr = {
|
tr = {
|
||||||
"formal_name": "Resmi Ad",
|
"formal_name": "Resmi Ad",
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ class CrudRecordValidation:
|
||||||
"is_email_send": "Email Send",
|
"is_email_send": "Email Send",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class CrudRecords:
|
class CrudRecords:
|
||||||
uu_id: Optional[str] = None
|
uu_id: Optional[str] = None
|
||||||
created_at: Optional[str] = None
|
created_at: Optional[str] = None
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ from api_validations.validations_request import (
|
||||||
ListOptions,
|
ListOptions,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class DecisionBookDecisionBookInvitationsValidation:
|
class DecisionBookDecisionBookInvitationsValidation:
|
||||||
tr = {
|
tr = {
|
||||||
"build_decision_book_uu_id": "Karar Defteri UUID",
|
"build_decision_book_uu_id": "Karar Defteri UUID",
|
||||||
|
|
@ -19,7 +20,9 @@ class DecisionBookDecisionBookInvitationsValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class DecisionBookDecisionBookInvitations(BaseModelRegular, DecisionBookDecisionBookInvitationsValidation):
|
class DecisionBookDecisionBookInvitations(
|
||||||
|
BaseModelRegular, DecisionBookDecisionBookInvitationsValidation
|
||||||
|
):
|
||||||
build_decision_book_uu_id: str
|
build_decision_book_uu_id: str
|
||||||
message: str
|
message: str
|
||||||
planned_date: str
|
planned_date: str
|
||||||
|
|
@ -36,7 +39,9 @@ class DecisionBookDecisionBookInvitationsAttendValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class DecisionBookDecisionBookInvitationsAttend(BaseModelRegular, DecisionBookDecisionBookInvitationsAttendValidation):
|
class DecisionBookDecisionBookInvitationsAttend(
|
||||||
|
BaseModelRegular, DecisionBookDecisionBookInvitationsAttendValidation
|
||||||
|
):
|
||||||
token: str
|
token: str
|
||||||
is_attend: bool
|
is_attend: bool
|
||||||
|
|
||||||
|
|
@ -53,7 +58,10 @@ class DecisionBookDecisionBookInvitationsAssignValidation:
|
||||||
"occupant_type_uu_id": "Occupant Type UUID",
|
"occupant_type_uu_id": "Occupant Type UUID",
|
||||||
}
|
}
|
||||||
|
|
||||||
class DecisionBookDecisionBookInvitationsAssign(BaseModelRegular, DecisionBookDecisionBookInvitationsAssignValidation):
|
|
||||||
|
class DecisionBookDecisionBookInvitationsAssign(
|
||||||
|
BaseModelRegular, DecisionBookDecisionBookInvitationsAssignValidation
|
||||||
|
):
|
||||||
token: str
|
token: str
|
||||||
build_living_space_uu_id: str
|
build_living_space_uu_id: str
|
||||||
occupant_type_uu_id: str
|
occupant_type_uu_id: str
|
||||||
|
|
@ -71,7 +79,10 @@ class DecisionBookDecisionBookInvitationsUpdateValidation:
|
||||||
"occupant_type_uu_id": "Occupant Type UUID",
|
"occupant_type_uu_id": "Occupant Type UUID",
|
||||||
}
|
}
|
||||||
|
|
||||||
class DecisionBookDecisionBookInvitationsUpdate(PydanticBaseModel, DecisionBookDecisionBookInvitationsUpdateValidation):
|
|
||||||
|
class DecisionBookDecisionBookInvitationsUpdate(
|
||||||
|
PydanticBaseModel, DecisionBookDecisionBookInvitationsUpdateValidation
|
||||||
|
):
|
||||||
token: str
|
token: str
|
||||||
occupant_type_uu_id: Optional[str] = None
|
occupant_type_uu_id: Optional[str] = None
|
||||||
|
|
||||||
|
|
@ -84,6 +95,7 @@ class ListDecisionBookValidation:
|
||||||
"build_decision_book_uu_id": "Decision Book UUID",
|
"build_decision_book_uu_id": "Decision Book UUID",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class ListDecisionBook(ListOptions, ListDecisionBookValidation):
|
class ListDecisionBook(ListOptions, ListDecisionBookValidation):
|
||||||
build_decision_book_uu_id: Optional[str] = None
|
build_decision_book_uu_id: Optional[str] = None
|
||||||
|
|
||||||
|
|
@ -108,6 +120,7 @@ class InsertDecisionBookValidation:
|
||||||
"resp_company_uu_id": "Company UUID",
|
"resp_company_uu_id": "Company UUID",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertDecisionBook(PydanticBaseModel, InsertDecisionBookValidation):
|
class InsertDecisionBook(PydanticBaseModel, InsertDecisionBookValidation):
|
||||||
build_uu_id: str
|
build_uu_id: str
|
||||||
decision_type: str
|
decision_type: str
|
||||||
|
|
@ -129,7 +142,9 @@ class InsertDecisionBookCompletedValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertDecisionBookCompleted(BaseModelRegular, InsertDecisionBookCompletedValidation):
|
class InsertDecisionBookCompleted(
|
||||||
|
BaseModelRegular, InsertDecisionBookCompletedValidation
|
||||||
|
):
|
||||||
build_decision_book_uu_id: str
|
build_decision_book_uu_id: str
|
||||||
meeting_completed_date: str
|
meeting_completed_date: str
|
||||||
|
|
||||||
|
|
@ -260,7 +275,9 @@ class InsertBuildDecisionBookItemsValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertBuildDecisionBookItems(BaseModelRegular, InsertBuildDecisionBookItemsValidation):
|
class InsertBuildDecisionBookItems(
|
||||||
|
BaseModelRegular, InsertBuildDecisionBookItemsValidation
|
||||||
|
):
|
||||||
token: str
|
token: str
|
||||||
info_type_uu_id: str
|
info_type_uu_id: str
|
||||||
item_comment: str
|
item_comment: str
|
||||||
|
|
@ -288,7 +305,10 @@ class UpdateBuildDecisionBookItemsValidation:
|
||||||
"item_objection": "Item Objection",
|
"item_objection": "Item Objection",
|
||||||
}
|
}
|
||||||
|
|
||||||
class UpdateBuildDecisionBookItems(PydanticBaseModel, UpdateBuildDecisionBookItemsValidation):
|
|
||||||
|
class UpdateBuildDecisionBookItems(
|
||||||
|
PydanticBaseModel, UpdateBuildDecisionBookItemsValidation
|
||||||
|
):
|
||||||
item_comment: Optional[str] = None
|
item_comment: Optional[str] = None
|
||||||
item_objection: Optional[str] = None
|
item_objection: Optional[str] = None
|
||||||
|
|
||||||
|
|
@ -304,7 +324,9 @@ class InsertBuildDecisionBookItemDebitsValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertBuildDecisionBookItemDebits(BaseModelRegular, InsertBuildDecisionBookItemDebitsValidation):
|
class InsertBuildDecisionBookItemDebits(
|
||||||
|
BaseModelRegular, InsertBuildDecisionBookItemDebitsValidation
|
||||||
|
):
|
||||||
build_decision_book_item_uu_id: str
|
build_decision_book_item_uu_id: str
|
||||||
dues_values: dict
|
dues_values: dict
|
||||||
# dues_types_uu_id: str
|
# dues_types_uu_id: str
|
||||||
|
|
@ -326,7 +348,9 @@ class UpdateBuildDecisionBookItemDebitsValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class UpdateBuildDecisionBookItemDebits(PydanticBaseModel, UpdateBuildDecisionBookItemDebitsValidation):
|
class UpdateBuildDecisionBookItemDebits(
|
||||||
|
PydanticBaseModel, UpdateBuildDecisionBookItemDebitsValidation
|
||||||
|
):
|
||||||
dues_types_uu_id: Optional[str] = None
|
dues_types_uu_id: Optional[str] = None
|
||||||
dues_values: Optional[dict] = None
|
dues_values: Optional[dict] = None
|
||||||
decision_taken: Optional[bool] = None
|
decision_taken: Optional[bool] = None
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ class DepartmentsPydanticValidation:
|
||||||
"parent_department_uu_id": "Parent Department UUID",
|
"parent_department_uu_id": "Parent Department UUID",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class DepartmentsPydantic(PydanticBaseModel, PydanticBaseModelValidation):
|
class DepartmentsPydantic(PydanticBaseModel, PydanticBaseModelValidation):
|
||||||
|
|
||||||
department_code: Optional[str]
|
department_code: Optional[str]
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ class SelectDutiesValidation:
|
||||||
"duty_uu_id": "Duty UUID",
|
"duty_uu_id": "Duty UUID",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class SelectDuties(BaseModelRegular, SelectDutiesValidation):
|
class SelectDuties(BaseModelRegular, SelectDutiesValidation):
|
||||||
duty_uu_id: Optional[str] = None
|
duty_uu_id: Optional[str] = None
|
||||||
|
|
||||||
|
|
@ -126,6 +127,7 @@ class UpdateDutiesValidation:
|
||||||
"is_default_duty": "Default Duty",
|
"is_default_duty": "Default Duty",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class UpdateDuties(PydanticBaseModel):
|
class UpdateDuties(PydanticBaseModel):
|
||||||
duties_uu_id: Optional[str] = None
|
duties_uu_id: Optional[str] = None
|
||||||
department_uu_id: Optional[str] = None
|
department_uu_id: Optional[str] = None
|
||||||
|
|
@ -221,6 +223,7 @@ class InsertCompanyEmployeesValidation:
|
||||||
"stop_date": "Stop Date",
|
"stop_date": "Stop Date",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertCompanyEmployees(BaseModelRegular, InsertCompanyEmployeesValidation):
|
class InsertCompanyEmployees(BaseModelRegular, InsertCompanyEmployeesValidation):
|
||||||
|
|
||||||
employee_description: Optional[str] = None
|
employee_description: Optional[str] = None
|
||||||
|
|
@ -243,6 +246,7 @@ class UpdateCompanyEmployeesValidation:
|
||||||
"employee_description": "Employee Description",
|
"employee_description": "Employee Description",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class UpdateCompanyEmployees(PydanticBaseModel, UpdateCompanyEmployeesValidation):
|
class UpdateCompanyEmployees(PydanticBaseModel, UpdateCompanyEmployeesValidation):
|
||||||
stop_date: Optional[str] = None
|
stop_date: Optional[str] = None
|
||||||
employee_description: Optional[str] = None
|
employee_description: Optional[str] = None
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ from api_validations.validations_request import (
|
||||||
ListOptions,
|
ListOptions,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class InsertPersonValidation:
|
class InsertPersonValidation:
|
||||||
tr = {
|
tr = {
|
||||||
"firstname": "İsim",
|
"firstname": "İsim",
|
||||||
|
|
@ -48,6 +49,7 @@ class UpdatePersonValidation:
|
||||||
**InsertPersonValidation.tr,
|
**InsertPersonValidation.tr,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class UpdatePerson(PydanticBaseModel, UpdatePersonValidation):
|
class UpdatePerson(PydanticBaseModel, UpdatePersonValidation):
|
||||||
firstname: Optional[str] = None
|
firstname: Optional[str] = None
|
||||||
surname: Optional[str] = None
|
surname: Optional[str] = None
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,9 @@ class InsertBuildDecisionBookProjectItemsValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertBuildDecisionBookProjectItems(BaseModelRegular, InsertBuildDecisionBookProjectItemsValidation):
|
class InsertBuildDecisionBookProjectItems(
|
||||||
|
BaseModelRegular, InsertBuildDecisionBookProjectItemsValidation
|
||||||
|
):
|
||||||
build_decision_book_project_uu_id: str
|
build_decision_book_project_uu_id: str
|
||||||
item_header: str
|
item_header: str
|
||||||
item_comment: str
|
item_comment: str
|
||||||
|
|
@ -34,11 +36,11 @@ class InsertBuildDecisionBookProjectItems(BaseModelRegular, InsertBuildDecisionB
|
||||||
class UpdateBuildDecisionBookProjectItemsValidation:
|
class UpdateBuildDecisionBookProjectItemsValidation:
|
||||||
tr = {
|
tr = {
|
||||||
**InsertBuildDecisionBookProjectItemsValidation.tr,
|
**InsertBuildDecisionBookProjectItemsValidation.tr,
|
||||||
**PydanticBaseModelValidation.tr
|
**PydanticBaseModelValidation.tr,
|
||||||
}
|
}
|
||||||
en = {
|
en = {
|
||||||
**InsertBuildDecisionBookProjectItemsValidation.en,
|
**InsertBuildDecisionBookProjectItemsValidation.en,
|
||||||
**PydanticBaseModelValidation.en
|
**PydanticBaseModelValidation.en,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -71,7 +73,9 @@ class InsertBuildDecisionBookProjectPersonValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertBuildDecisionBookProjectPerson(BaseModelRegular, InsertBuildDecisionBookProjectPersonValidation):
|
class InsertBuildDecisionBookProjectPerson(
|
||||||
|
BaseModelRegular, InsertBuildDecisionBookProjectPersonValidation
|
||||||
|
):
|
||||||
dues_percent_discount: Optional[int] = None
|
dues_percent_discount: Optional[int] = None
|
||||||
job_fix_wage: Optional[float] = None
|
job_fix_wage: Optional[float] = None
|
||||||
bid_price: Optional[float] = None
|
bid_price: Optional[float] = None
|
||||||
|
|
@ -84,15 +88,17 @@ class InsertBuildDecisionBookProjectPerson(BaseModelRegular, InsertBuildDecision
|
||||||
class UpdateBuildDecisionBookProjectPersonValidation:
|
class UpdateBuildDecisionBookProjectPersonValidation:
|
||||||
tr = {
|
tr = {
|
||||||
**InsertBuildDecisionBookProjectPersonValidation.tr,
|
**InsertBuildDecisionBookProjectPersonValidation.tr,
|
||||||
**PydanticBaseModelValidation.tr
|
**PydanticBaseModelValidation.tr,
|
||||||
}
|
}
|
||||||
en = {
|
en = {
|
||||||
**InsertBuildDecisionBookProjectPersonValidation.en,
|
**InsertBuildDecisionBookProjectPersonValidation.en,
|
||||||
**PydanticBaseModelValidation.en
|
**PydanticBaseModelValidation.en,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class UpdateBuildDecisionBookProjectPerson(PydanticBaseModel, UpdateBuildDecisionBookProjectPersonValidation):
|
class UpdateBuildDecisionBookProjectPerson(
|
||||||
|
PydanticBaseModel, UpdateBuildDecisionBookProjectPersonValidation
|
||||||
|
):
|
||||||
dues_percent_discount: Optional[int] = None
|
dues_percent_discount: Optional[int] = None
|
||||||
job_fix_wage: Optional[float] = None
|
job_fix_wage: Optional[float] = None
|
||||||
bid_price: Optional[float] = None
|
bid_price: Optional[float] = None
|
||||||
|
|
@ -141,7 +147,9 @@ class InsertBuildDecisionBookProjectsValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertBuildDecisionBookProjects(BaseModelRegular, InsertBuildDecisionBookProjectsValidation):
|
class InsertBuildDecisionBookProjects(
|
||||||
|
BaseModelRegular, InsertBuildDecisionBookProjectsValidation
|
||||||
|
):
|
||||||
build_decision_book_item_uu_id: str
|
build_decision_book_item_uu_id: str
|
||||||
project_responsible_person_uu_id: str
|
project_responsible_person_uu_id: str
|
||||||
project_name: str
|
project_name: str
|
||||||
|
|
@ -164,15 +172,17 @@ class InsertBuildDecisionBookProjects(BaseModelRegular, InsertBuildDecisionBookP
|
||||||
class UpdateBuildDecisionBookProjectsValidation:
|
class UpdateBuildDecisionBookProjectsValidation:
|
||||||
tr = {
|
tr = {
|
||||||
**InsertBuildDecisionBookProjectsValidation.tr,
|
**InsertBuildDecisionBookProjectsValidation.tr,
|
||||||
**PydanticBaseModelValidation.tr
|
**PydanticBaseModelValidation.tr,
|
||||||
}
|
}
|
||||||
en = {
|
en = {
|
||||||
**InsertBuildDecisionBookProjectsValidation.en,
|
**InsertBuildDecisionBookProjectsValidation.en,
|
||||||
**PydanticBaseModelValidation.en
|
**PydanticBaseModelValidation.en,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class UpdateBuildDecisionBookProjects(PydanticBaseModel, UpdateBuildDecisionBookProjectsValidation):
|
class UpdateBuildDecisionBookProjects(
|
||||||
|
PydanticBaseModel, UpdateBuildDecisionBookProjectsValidation
|
||||||
|
):
|
||||||
build_decision_book_project_uu_id: str
|
build_decision_book_project_uu_id: str
|
||||||
is_out_sourced: Optional[bool] = False
|
is_out_sourced: Optional[bool] = False
|
||||||
project_note: Optional[str] = None
|
project_note: Optional[str] = None
|
||||||
|
|
@ -201,7 +211,9 @@ class ApprovalsBuildDecisionBookProjectsValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class ApprovalsBuildDecisionBookProjects(PydanticBaseModel, ApprovalsBuildDecisionBookProjectsValidation):
|
class ApprovalsBuildDecisionBookProjects(
|
||||||
|
PydanticBaseModel, ApprovalsBuildDecisionBookProjectsValidation
|
||||||
|
):
|
||||||
build_decision_book_project_uu_id: str
|
build_decision_book_project_uu_id: str
|
||||||
project_stop_date: str
|
project_stop_date: str
|
||||||
status_code: Optional[int] = None
|
status_code: Optional[int] = None
|
||||||
|
|
@ -231,7 +243,9 @@ class InsertBuildDecisionBookProjectItemDebitsValidation:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertBuildDecisionBookProjectItemDebits(PydanticBaseModel, InsertBuildDecisionBookProjectItemDebitsValidation):
|
class InsertBuildDecisionBookProjectItemDebits(
|
||||||
|
PydanticBaseModel, InsertBuildDecisionBookProjectItemDebitsValidation
|
||||||
|
):
|
||||||
build_decision_book_project_item_uu_id: str
|
build_decision_book_project_item_uu_id: str
|
||||||
payment_date: str
|
payment_date: str
|
||||||
dues_values: dict
|
dues_values: dict
|
||||||
|
|
@ -244,15 +258,17 @@ class InsertBuildDecisionBookProjectItemDebits(PydanticBaseModel, InsertBuildDec
|
||||||
class UpdateBuildDecisionBookProjectItemDebitsValidation:
|
class UpdateBuildDecisionBookProjectItemDebitsValidation:
|
||||||
tr = {
|
tr = {
|
||||||
**InsertBuildDecisionBookProjectItemDebitsValidation.tr,
|
**InsertBuildDecisionBookProjectItemDebitsValidation.tr,
|
||||||
**PydanticBaseModelValidation.tr
|
**PydanticBaseModelValidation.tr,
|
||||||
}
|
}
|
||||||
en = {
|
en = {
|
||||||
**InsertBuildDecisionBookProjectItemDebitsValidation.en,
|
**InsertBuildDecisionBookProjectItemDebitsValidation.en,
|
||||||
**PydanticBaseModelValidation.en
|
**PydanticBaseModelValidation.en,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class UpdateBuildDecisionBookProjectItemDebits(PydanticBaseModel, UpdateBuildDecisionBookProjectItemDebitsValidation):
|
class UpdateBuildDecisionBookProjectItemDebits(
|
||||||
|
PydanticBaseModel, UpdateBuildDecisionBookProjectItemDebitsValidation
|
||||||
|
):
|
||||||
dues_values: Optional[str] = None
|
dues_values: Optional[str] = None
|
||||||
discount_value: Optional[float] = None
|
discount_value: Optional[float] = None
|
||||||
discount_fix: Optional[float] = None
|
discount_fix: Optional[float] = None
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ from api_validations.validations_request import (
|
||||||
ListOptions,
|
ListOptions,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class InsertStaffValidation:
|
class InsertStaffValidation:
|
||||||
tr = {
|
tr = {
|
||||||
"staff_name": "Kadro Adı",
|
"staff_name": "Kadro Adı",
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ class InsertUsersValidation:
|
||||||
"avatar": "Avatar",
|
"avatar": "Avatar",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class InsertUsers(PydanticBaseModel, InsertUsersValidation):
|
class InsertUsers(PydanticBaseModel, InsertUsersValidation):
|
||||||
people_uu_id: str
|
people_uu_id: str
|
||||||
user_tag: str
|
user_tag: str
|
||||||
|
|
@ -48,6 +49,7 @@ class UpdateUsersValidation:
|
||||||
"avatar": "Avatar",
|
"avatar": "Avatar",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class UpdateUsers(PydanticBaseModel, UpdateUsersValidation):
|
class UpdateUsers(PydanticBaseModel, UpdateUsersValidation):
|
||||||
people_uu_id: Optional[str] = None
|
people_uu_id: Optional[str] = None
|
||||||
nick_name: Optional[str] = None
|
nick_name: Optional[str] = None
|
||||||
|
|
@ -65,5 +67,6 @@ class QueryUsersValidation:
|
||||||
"uu_id": "UUID",
|
"uu_id": "UUID",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class QueryUsers(PydanticBaseModel):
|
class QueryUsers(PydanticBaseModel):
|
||||||
uu_id: Optional[str] = None
|
uu_id: Optional[str] = None
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@ from .building import ListBuildingResponse
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"ListBuildingResponse",
|
"ListBuildingResponse",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
from typing import Optional
|
||||||
|
from api_validations.core_validations import BaseModelRegular
|
||||||
|
from api_validations.validations_request import (
|
||||||
|
PydanticBaseModel,
|
||||||
|
PydanticBaseModelValidation,
|
||||||
|
CrudRecordValidation,
|
||||||
|
CrudRecords,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class ListAddressResponse:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
street_id: Mapped[int] = mapped_column(ForeignKey("address_street.id"))
|
||||||
|
street_uu_id: Mapped[str] = mapped_column(
|
||||||
|
String, server_default="", comment="Street UUID"
|
||||||
|
)
|
||||||
|
postcode: Mapped[str] = mapped_column(
|
||||||
|
String(32), nullable=False, comment="Postcode"
|
||||||
|
)
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
class AddressPostCodeResponse:
|
||||||
|
street_id: Optional[int] = None
|
||||||
|
street_uu_id: Optional[str] = None
|
||||||
|
postcode: Optional[str] = None
|
||||||
|
|
@ -7,6 +7,7 @@ from api_validations.validations_request import (
|
||||||
CrudRecords,
|
CrudRecords,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class BuildListValidation:
|
class BuildListValidation:
|
||||||
tr = {
|
tr = {
|
||||||
**CrudRecordValidation.tr,
|
**CrudRecordValidation.tr,
|
||||||
|
|
@ -51,6 +52,7 @@ class BuildListValidation:
|
||||||
"site_uu_id": "Site UUID",
|
"site_uu_id": "Site UUID",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class ListBuildingResponse(BaseModelRegular, CrudRecords, BuildListValidation):
|
class ListBuildingResponse(BaseModelRegular, CrudRecords, BuildListValidation):
|
||||||
|
|
||||||
gov_address_code: Optional[str] = None
|
gov_address_code: Optional[str] = None
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ def user_list(request: Request, validation: EndpointValidation):
|
||||||
headers = getattr(
|
headers = getattr(
|
||||||
active_validation, str(valid_token.lang).lower(), active_validation.tr
|
active_validation, str(valid_token.lang).lower(), active_validation.tr
|
||||||
)
|
)
|
||||||
print('headers', headers)
|
print("headers", headers)
|
||||||
return EndpointValidationResponse(
|
return EndpointValidationResponse(
|
||||||
language=valid_token.lang,
|
language=valid_token.lang,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue