fix: merge conflict 2
This commit is contained in:
@@ -10,17 +10,21 @@ from src.application.commands import (
|
||||
GetAdminMeCommand,
|
||||
CreateOrganizationCommand,
|
||||
CreateOrganizationWalletsCommand,
|
||||
GetOrganizationMnemonicCommand,
|
||||
GetOrganizationSecretKeysCommand,
|
||||
GetOrganizationCommand,
|
||||
ListOrganizationWalletsCommand,
|
||||
GetPurchaseRequestCommand,
|
||||
ListOrganizationsCommand,
|
||||
GetOrganizationDocumentCommand,
|
||||
ListOrganizationDocumentsCommand,
|
||||
ListPurchaseRequestsCommand,
|
||||
SearchPartiesCommand,
|
||||
SetPurchaseRequestQuoteCommand,
|
||||
UpdateOrganizationCommand,
|
||||
UpdatePurchaseRequestCommand,
|
||||
UpdatePurchaseRequestStatusCommand,
|
||||
UploadOrganizationDocumentCommand,
|
||||
SetPasswordCommand,
|
||||
PutOrganizationDocumentCommand,
|
||||
)
|
||||
from src.application.contracts import IHashService, IJwtService, ILogger
|
||||
from src.infrastructure.config import settings
|
||||
@@ -92,11 +96,32 @@ def get_create_organization_wallets_command(
|
||||
return CreateOrganizationWalletsCommand(uow, logger)
|
||||
|
||||
|
||||
def get_upload_organization_document_command(
|
||||
def get_list_organization_wallets_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> UploadOrganizationDocumentCommand:
|
||||
return UploadOrganizationDocumentCommand(uow, get_s3_documents_service(), logger)
|
||||
) -> ListOrganizationWalletsCommand:
|
||||
return ListOrganizationWalletsCommand(uow, logger)
|
||||
|
||||
|
||||
def get_get_organization_mnemonic_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> GetOrganizationMnemonicCommand:
|
||||
return GetOrganizationMnemonicCommand(uow, logger)
|
||||
|
||||
|
||||
def get_get_organization_secret_keys_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> GetOrganizationSecretKeysCommand:
|
||||
return GetOrganizationSecretKeysCommand(uow, logger)
|
||||
|
||||
|
||||
def get_put_organization_document_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> PutOrganizationDocumentCommand:
|
||||
return PutOrganizationDocumentCommand(uow, get_s3_documents_service(), logger)
|
||||
|
||||
|
||||
def get_list_organizations_command(
|
||||
@@ -106,6 +131,13 @@ def get_list_organizations_command(
|
||||
return ListOrganizationsCommand(uow, logger)
|
||||
|
||||
|
||||
def get_search_parties_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> SearchPartiesCommand:
|
||||
return SearchPartiesCommand(uow, logger)
|
||||
|
||||
|
||||
def get_get_organization_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
@@ -155,15 +187,15 @@ def get_update_purchase_request_status_command(
|
||||
return UpdatePurchaseRequestStatusCommand(uow, logger)
|
||||
|
||||
|
||||
def get_update_purchase_request_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> UpdatePurchaseRequestCommand:
|
||||
return UpdatePurchaseRequestCommand(uow, logger)
|
||||
|
||||
|
||||
def get_set_purchase_request_quote_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> SetPurchaseRequestQuoteCommand:
|
||||
return SetPurchaseRequestQuoteCommand(uow, logger)
|
||||
|
||||
def get_set_password_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
hash_service: IHashService = Depends(get_hash_service),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> SetPasswordCommand:
|
||||
return SetPasswordCommand(uow, hash_service, logger)
|
||||
|
||||
Reference in New Issue
Block a user