project events updated
This commit is contained in:
@@ -26,7 +26,7 @@ from databases import (
|
||||
from databases.sql_models.building.decision_book import BuildDecisionBookProjectItems, BuildDecisionBookItems
|
||||
|
||||
|
||||
class ProjectDecisionBookPersonListEvents(MethodToEvent):
|
||||
class ProjectDecisionBookListEventMethods(MethodToEvent):
|
||||
|
||||
event_type = "LIST"
|
||||
|
||||
@@ -62,7 +62,7 @@ class ProjectDecisionBookPersonListEvents(MethodToEvent):
|
||||
)
|
||||
|
||||
|
||||
class ProjectDecisionBookCreateEvents(MethodToEvent):
|
||||
class ProjectDecisionBookCreateEventMethods(MethodToEvent):
|
||||
|
||||
event_type = "CREATE"
|
||||
|
||||
@@ -118,7 +118,7 @@ class ProjectDecisionBookCreateEvents(MethodToEvent):
|
||||
)
|
||||
|
||||
|
||||
class ProjectDecisionBookUpdateEvents(MethodToEvent):
|
||||
class ProjectDecisionBookUpdateEventMethods(MethodToEvent):
|
||||
|
||||
event_type = "UPDATE"
|
||||
|
||||
@@ -194,7 +194,7 @@ class ProjectDecisionBookUpdateEvents(MethodToEvent):
|
||||
)
|
||||
|
||||
|
||||
class ProjectDecisionBookApprovalEvents(MethodToEvent):
|
||||
class ProjectDecisionBookApprovalEventMethods(MethodToEvent):
|
||||
|
||||
event_type = "UPDATE"
|
||||
|
||||
@@ -310,7 +310,7 @@ class ProjectDecisionBookApprovalEvents(MethodToEvent):
|
||||
)
|
||||
|
||||
|
||||
class ProjectDecisionBookPatchEvents(MethodToEvent):
|
||||
class ProjectDecisionBookPatchEventMethods(MethodToEvent):
|
||||
|
||||
event_type = "PATCH"
|
||||
|
||||
@@ -325,3 +325,31 @@ class ProjectDecisionBookPatchEvents(MethodToEvent):
|
||||
token_dict: Union[EmployeeTokenObject, OccupantTokenObject],
|
||||
):
|
||||
return
|
||||
|
||||
|
||||
ProjectDecisionBookListEventMethod = (
|
||||
ProjectDecisionBookListEventMethods(
|
||||
action=ActionsSchema(endpoint="/build/decision_book/project/person/list")
|
||||
)
|
||||
)
|
||||
ProjectDecisionBookCreateEventMethod = (
|
||||
ProjectDecisionBookCreateEventMethods(
|
||||
action=ActionsSchema(endpoint="/build/decision_book/project/create")
|
||||
)
|
||||
)
|
||||
ProjectDecisionBookUpdateEventMethod = (
|
||||
ProjectDecisionBookUpdateEventMethods(
|
||||
action=ActionsSchema(endpoint="/build/decision_book/project/update")
|
||||
)
|
||||
)
|
||||
ProjectDecisionBookApprovalEventMethod = (
|
||||
ProjectDecisionBookApprovalEventMethods(
|
||||
action=ActionsSchema(endpoint="/build/decision_book/project/approval")
|
||||
)
|
||||
)
|
||||
ProjectDecisionBookPatchEventMethod = (
|
||||
ProjectDecisionBookPatchEventMethods(
|
||||
action=ActionsSchema(endpoint="/build/decision_book/project/patch")
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ from api_objects.auth.token_objects import EmployeeTokenObject, OccupantTokenObj
|
||||
from api_validations.core_response import AlchemyJsonResponse
|
||||
|
||||
|
||||
class ProjectDecisionBookPersonListEvents(MethodToEvent):
|
||||
class ProjectDecisionBookPersonListEventMethods(MethodToEvent):
|
||||
|
||||
event_type = "LIST"
|
||||
|
||||
@@ -52,7 +52,7 @@ class ProjectDecisionBookPersonListEvents(MethodToEvent):
|
||||
)
|
||||
|
||||
|
||||
class ProjectDecisionBookPersonCreateEvents(MethodToEvent):
|
||||
class ProjectDecisionBookPersonCreateEventMethods(MethodToEvent):
|
||||
|
||||
event_type = "CREATE"
|
||||
|
||||
@@ -85,7 +85,7 @@ class ProjectDecisionBookPersonCreateEvents(MethodToEvent):
|
||||
)
|
||||
|
||||
|
||||
class ProjectDecisionBookPersonUpdateEvents(MethodToEvent):
|
||||
class ProjectDecisionBookPersonUpdateEventMethods(MethodToEvent):
|
||||
|
||||
event_type = "UPDATE"
|
||||
|
||||
@@ -119,7 +119,7 @@ class ProjectDecisionBookPersonUpdateEvents(MethodToEvent):
|
||||
)
|
||||
|
||||
|
||||
class ProjectDecisionBookPersonPatchEvents(MethodToEvent):
|
||||
class ProjectDecisionBookPersonPatchEventMethods(MethodToEvent):
|
||||
|
||||
event_type = "PATCH"
|
||||
|
||||
@@ -151,3 +151,24 @@ class ProjectDecisionBookPersonPatchEvents(MethodToEvent):
|
||||
result=decision_book_project_person,
|
||||
)
|
||||
|
||||
|
||||
ProjectDecisionBookPersonListEventMethod = (
|
||||
ProjectDecisionBookPersonListEventMethods(
|
||||
action=ActionsSchema(endpoint="/build/decision_book/project/people/list")
|
||||
)
|
||||
)
|
||||
ProjectDecisionBookPersonCreateEventMethod = (
|
||||
ProjectDecisionBookPersonCreateEventMethods(
|
||||
action=ActionsSchema(endpoint="/build/decision_book/project/people/create")
|
||||
)
|
||||
)
|
||||
ProjectDecisionBookPersonUpdateEventMethod = (
|
||||
ProjectDecisionBookPersonUpdateEventMethods(
|
||||
action=ActionsSchema(endpoint="/build/decision_book/project/people/update")
|
||||
)
|
||||
)
|
||||
ProjectDecisionBookPersonPatchEventMethod = (
|
||||
ProjectDecisionBookPersonPatchEventMethods(
|
||||
action=ActionsSchema(endpoint="/build/decision_book/project/people/patch")
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user