43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
from pydantic import BaseModel
|
|
|
|
from ApiLayers.ApiValidations.Request import ListOptions
|
|
from ApiLayers.Schemas import AccountRecords
|
|
# from ApiLayers.LanguageModels.Request import (
|
|
# LoginRequestLanguageModel,
|
|
# SelectRequestLanguageModel,
|
|
# )
|
|
from Events.Engine.abstract_class import Event
|
|
|
|
from .models import AccountRequestValidators
|
|
from .function_handlers import (
|
|
AccountListEventMethods,
|
|
)
|
|
|
|
#
|
|
# class SelectResponseAccount(BaseModel):
|
|
# """
|
|
# Response model for account list.
|
|
# """
|
|
# neighborhood_code: str
|
|
# neighborhood_name: str
|
|
# type_code: str
|
|
# type_description: str
|
|
#
|
|
|
|
# Auth Login
|
|
account_insert_super_user_event = Event(
|
|
name="account_insert_super_user_event",
|
|
key="36a165fe-a2f3-437b-80ee-1ee44670fe70",
|
|
request_validator=AccountRequestValidators.ListAccountRecord,
|
|
# response_validator=SelectResponseAccount,
|
|
# language_models=[AccountRecords.__language_model__],
|
|
language_models=[],
|
|
statics="ACCOUNTS_LIST",
|
|
description="List all types of accounts by validation list options and queries.",
|
|
)
|
|
|
|
|
|
account_insert_super_user_event.endpoint_callable = (
|
|
AccountListEventMethods.account_records_list
|
|
)
|