fix: merge conflict

This commit is contained in:
2026-06-10 18:35:26 +03:00
parent e208792738
commit 4fc74f404f
2 changed files with 24 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ from abc import ABC, abstractmethod
from datetime import datetime from datetime import datetime
from src.application.domain.entities import UserEntity from src.application.domain.entities import UserEntity
from src.application.domain.entities.organization import PartySearchEntity
class IUserRepository(ABC): class IUserRepository(ABC):
@@ -26,6 +27,14 @@ class IUserRepository(ABC):
async def exists_by_email(self, email: str) -> bool: async def exists_by_email(self, email: str) -> bool:
raise NotImplementedError raise NotImplementedError
@abstractmethod
async def search_individuals(self, *, query: str, limit: int, offset: int) -> list[PartySearchEntity]:
raise NotImplementedError
@abstractmethod
async def count_individuals(self, *, query: str) -> int:
raise NotImplementedError
@abstractmethod @abstractmethod
async def get_password_hash(self, user_id: str) -> str: async def get_password_hash(self, user_id: str) -> str:
raise NotImplementedError raise NotImplementedError

View File

@@ -1,23 +1,27 @@
from src.application.commands.admin_login import AdminLoginCommand
from src.application.commands.admin_logout import AdminLogoutCommand
from src.application.commands.admin_jwt_refresh import AdminJwtRefreshCommand from src.application.commands.admin_jwt_refresh import AdminJwtRefreshCommand
from src.application.commands.get_admin_me import GetAdminMeCommand from src.application.commands.get_admin_me import GetAdminMeCommand
from src.application.commands.create_organization import CreateOrganizationCommand from src.application.commands.create_organization import CreateOrganizationCommand
from src.application.commands.create_organization_wallets import CreateOrganizationWalletsCommand from src.application.commands.create_organization_wallets import CreateOrganizationWalletsCommand
from src.application.commands.upload_organization_document import UploadOrganizationDocumentCommand from src.application.commands.put_organization_document import PutOrganizationDocumentCommand
from src.application.commands.set_password import SetPasswordCommand
from src.application.commands.organization_commands import ( from src.application.commands.organization_commands import (
ListOrganizationsCommand, ListOrganizationsCommand,
GetOrganizationCommand, GetOrganizationCommand,
SearchPartiesCommand,
UpdateOrganizationCommand, UpdateOrganizationCommand,
) )
from src.application.commands.organization_document_commands import ( from src.application.commands.organization_document_commands import (
ListOrganizationDocumentsCommand, ListOrganizationDocumentsCommand,
GetOrganizationDocumentCommand, GetOrganizationDocumentCommand,
) )
from src.application.commands.organization_wallet_commands import (
GetOrganizationMnemonicCommand,
GetOrganizationSecretKeysCommand,
ListOrganizationWalletsCommand,
)
from src.application.commands.purchase_request_commands import ( from src.application.commands.purchase_request_commands import (
ListPurchaseRequestsCommand, ListPurchaseRequestsCommand,
GetPurchaseRequestCommand, GetPurchaseRequestCommand,
UpdatePurchaseRequestCommand,
UpdatePurchaseRequestStatusCommand, UpdatePurchaseRequestStatusCommand,
SetPurchaseRequestQuoteCommand, SetPurchaseRequestQuoteCommand,
) )
@@ -29,15 +33,19 @@ __all__ = [
'GetAdminMeCommand', 'GetAdminMeCommand',
'CreateOrganizationCommand', 'CreateOrganizationCommand',
'CreateOrganizationWalletsCommand', 'CreateOrganizationWalletsCommand',
'UploadOrganizationDocumentCommand', 'PutOrganizationDocumentCommand',
'ListOrganizationsCommand', 'ListOrganizationsCommand',
'GetOrganizationCommand', 'GetOrganizationCommand',
'SearchPartiesCommand',
'UpdateOrganizationCommand', 'UpdateOrganizationCommand',
'ListPurchaseRequestsCommand', 'ListPurchaseRequestsCommand',
'GetPurchaseRequestCommand', 'GetPurchaseRequestCommand',
'UpdatePurchaseRequestCommand',
'UpdatePurchaseRequestStatusCommand', 'UpdatePurchaseRequestStatusCommand',
'SetPurchaseRequestQuoteCommand', 'SetPurchaseRequestQuoteCommand',
'ListOrganizationDocumentsCommand', 'ListOrganizationDocumentsCommand',
'GetOrganizationDocumentCommand', 'GetOrganizationDocumentCommand',
'SetPasswordCommand', 'ListOrganizationWalletsCommand',
] 'GetOrganizationMnemonicCommand',
'GetOrganizationSecretKeysCommand',
]