31 lines
914 B
Python
31 lines
914 B
Python
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,
|
|
)
|
|
|
|
|
|
# Auth Login
|
|
account_insert_super_user_event = Event(
|
|
name="account_insert_super_user_event",
|
|
key="36a165fe-a2f3-437b-80ee-1ee44670fe70",
|
|
request_validator=ListOptions,
|
|
# response_validator=SelectRequestLanguageModel,
|
|
# 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
|
|
)
|