From 410194b0cb204fce9f5bdce170b8891348ceb8ac Mon Sep 17 00:00:00 2001 From: Rustam Khalimov Date: Fri, 11 Sep 2026 13:20:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D0=B7=D0=B1=D0=B8=D1=82=D1=8C=20In?= =?UTF-8?q?frastructure=20=D0=B8=20=D0=BA=D0=BE=D1=80=D0=B5=D0=BD=D1=8C=20?= =?UTF-8?q?Deal.Api=20=D0=BF=D0=BE=20=D0=BD=D0=B0=D0=B7=D0=BD=D0=B0=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Integrations -> Abstractions/Exceptions/Extensions/Models/Options/ Services (включая Storage); Persistence-конфигурации -> Configurations; корень Deal.Api (оркестратор/планировщики/DTO) -> Services/Dtos. namespace приведён к путям, using добавлены/дедуплицированы, FQN обновлены. --- src/core/Deal.Api/Configuration/CookieOptions.cs | 2 ++ .../Deal.Api/Configuration/DataRetentionOptions.cs | 3 +++ .../Configuration/ForwardedHeadersConfig.cs | 3 +++ .../Configuration/OperatorCookieOptions.cs | 2 ++ .../Deal.Api/Configuration/RateLimitOptions.cs | 3 +++ src/core/Deal.Api/Configuration/SecurityOptions.cs | 3 +++ src/core/Deal.Api/{ => Dtos}/AdminTickResultDto.cs | 5 ++++- src/core/Deal.Api/Endpoints/AiCheckEndpoint.cs | 2 ++ src/core/Deal.Api/Endpoints/AiSuggestEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/AuthEndpoints.cs | 2 ++ .../Deal.Api/Endpoints/CardDetailsEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/CardsEndpoints.cs | 2 ++ .../Deal.Api/Endpoints/ChangePasswordRequest.cs | 3 +++ src/core/Deal.Api/Endpoints/CheckMessageRequest.cs | 3 +++ src/core/Deal.Api/Endpoints/ContainersEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/DiscoveryEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/EventsEndpoint.cs | 2 ++ .../Deal.Api/Endpoints/FilterTesterEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/JoinEndpoint.cs | 2 ++ src/core/Deal.Api/Endpoints/JoinRequest.cs | 3 +++ src/core/Deal.Api/Endpoints/LoginRequest.cs | 3 +++ src/core/Deal.Api/Endpoints/MlApplyRequest.cs | 3 +++ src/core/Deal.Api/Endpoints/MlCandidatesRequest.cs | 3 +++ src/core/Deal.Api/Endpoints/MlEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/MlPredictRequest.cs | 3 +++ .../Endpoints/OperatorAnalyticsEndpoints.cs | 2 ++ .../Deal.Api/Endpoints/OperatorAuditEndpoints.cs | 2 ++ .../Deal.Api/Endpoints/OperatorAuthEndpoints.cs | 2 ++ .../Deal.Api/Endpoints/OperatorHealthEndpoints.cs | 10 +++++++++- .../Endpoints/OperatorInviteCreateRequest.cs | 3 +++ .../Deal.Api/Endpoints/OperatorInvitesEndpoints.cs | 2 ++ .../Endpoints/OperatorLimitUpdateRequest.cs | 3 +++ .../Deal.Api/Endpoints/OperatorLimitsEndpoints.cs | 2 ++ .../Endpoints/OperatorMaintenanceEndpoints.cs | 2 ++ .../Endpoints/OperatorSettingsEndpoints.cs | 2 ++ .../Endpoints/OperatorTenantCreateRequest.cs | 3 +++ .../Endpoints/OperatorTenantImpersonateRequest.cs | 3 +++ .../Deal.Api/Endpoints/OperatorTenantsEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/PipelineEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/RatesEndpoints.cs | 2 ++ .../Endpoints/RequestModels/CardLinkRequest.cs | 3 +++ .../Endpoints/RequestModels/ClearColBody.cs | 3 +++ .../Endpoints/RequestModels/ColStateBody.cs | 3 +++ .../Endpoints/RequestModels/CommentBody.cs | 3 +++ .../RequestModels/ContainerCreateRequest.cs | 2 ++ .../RequestModels/ContainerPatchRequest.cs | 2 ++ .../Endpoints/RequestModels/CreateCardRequest.cs | 2 ++ .../RequestModels/DiscoveryTaskCreateBody.cs | 3 +++ .../RequestModels/DiscoveryTaskPatchBody.cs | 3 +++ .../Endpoints/RequestModels/MarkColBody.cs | 3 +++ .../Deal.Api/Endpoints/RequestModels/MoveBody.cs | 3 +++ .../RequestModels/OperatorTelegramKeysRequest.cs | 3 +++ .../Deal.Api/Endpoints/RequestModels/OrderBody.cs | 3 +++ .../Endpoints/RequestModels/ReclassifyBody.cs | 3 +++ .../Endpoints/RequestModels/ReminderSetRequest.cs | 3 +++ .../Endpoints/RequestModels/ReturnReasonRequest.cs | 3 +++ .../Endpoints/RequestModels/TakeCardRequest.cs | 3 +++ .../Endpoints/RequestModels/TgMonitorBody.cs | 3 +++ .../Endpoints/RequestModels/TgPreviewBody.cs | 3 +++ .../Endpoints/RequestModels/TgSendCodeRequest.cs | 3 +++ .../RequestModels/TgSendPasswordRequest.cs | 3 +++ .../Endpoints/RequestModels/TgStartPhoneRequest.cs | 3 +++ src/core/Deal.Api/Endpoints/SettingsEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/StorageEndpoints.cs | 2 ++ src/core/Deal.Api/Endpoints/TelegramEndpoints.cs | 2 ++ .../Deal.Api/Endpoints/TelegramQrImageEndpoint.cs | 2 ++ src/core/Deal.Api/Events/SseBroker.cs | 2 ++ src/core/Deal.Api/Events/SseEvent.cs | 3 +++ src/core/Deal.Api/Events/SseSubscription.cs | 2 ++ src/core/Deal.Api/Events/StorageToastPublisher.cs | 2 ++ src/core/Deal.Api/Hosting/BudgetAlertScheduler.cs | 2 ++ .../Deal.Api/Hosting/DataRetentionScheduler.cs | 2 ++ .../Deal.Api/Hosting/DiscoveryWorkerScheduler.cs | 2 ++ .../Deal.Api/Hosting/MlOutboxFlushScheduler.cs | 9 ++++++++- .../Hosting/OperatorBootstrapHostedService.cs | 2 ++ src/core/Deal.Api/Hosting/StorageTickScheduler.cs | 2 ++ .../Deal.Api/Hosting/TenantBootstrapService.cs | 2 ++ src/core/Deal.Api/Http/AuditAppender.cs | 2 ++ src/core/Deal.Api/Http/AuthHelpers.cs | 3 +++ src/core/Deal.Api/Http/CurrentOperator.cs | 3 +++ src/core/Deal.Api/Http/CurrentUser.cs | 3 +++ src/core/Deal.Api/Http/EndpointResults.cs | 3 +++ src/core/Deal.Api/Http/LoginAttemptGuard.cs | 2 ++ src/core/Deal.Api/Http/SessionCookieWriter.cs | 3 +++ .../Http/StoreBackedFixedWindowRateLimiter.cs | 2 ++ src/core/Deal.Api/Logging/DealLogging.cs | 2 ++ .../Deal.Api/Middleware/HttpAccessLogMiddleware.cs | 2 ++ .../Middleware/OperatorSessionMiddleware.cs | 2 ++ .../Deal.Api/Middleware/OriginGuardMiddleware.cs | 2 ++ src/core/Deal.Api/Middleware/RateLimitPolicies.cs | 2 ++ src/core/Deal.Api/Middleware/SessionMiddleware.cs | 2 ++ .../Deal.Api/Observability/DealMetricsCollector.cs | 2 ++ .../Deal.Api/Observability/DealMetricsHosting.cs | 2 ++ .../Observability/RuntimeDepthsCollector.cs | 3 +++ .../Deal.Api/Observability/RuntimeDepthsDto.cs | 3 +++ src/core/Deal.Api/Program.cs | 14 ++++++++++++-- .../{ => Services}/AdminTickOrchestrator.cs | 5 ++++- .../Deal.Api/{ => Services}/PipelinePumpGate.cs | 5 ++++- .../{ => Services}/PipelineWorkerScheduler.cs | 5 ++++- .../{ => Services}/RatesRefreshScheduler.cs | 5 ++++- .../{ => Services}/TelegramBackfillScheduler.cs | 5 ++++- .../Telegram/IngressRateLimitInterceptor.cs | 2 ++ .../Telegram/IngressServiceTokenInterceptor.cs | 2 ++ .../Deal.Api/Telegram/RpcCallLoggingInterceptor.cs | 2 ++ .../Deal.Api/Telegram/TelegramIngressService.cs | 2 ++ .../Deal.Api/Telegram/TelegramKeysMaskedDto.cs | 3 +++ src/core/Deal.Api/Telegram/TelegramKeysService.cs | 2 ++ src/core/Deal.Api/Telegram/TelegramKeysValue.cs | 3 +++ src/core/Deal.Api/Telegram/TgKeysSnapshot.cs | 3 +++ src/core/Deal.Api/Telegram/TgReportedStatus.cs | 3 +++ src/core/Deal.Api/Telegram/TgStatusService.cs | 2 ++ .../Deal.Contracts/Integrations/IAiClassifier.cs | 2 +- .../Integrations/IColumnSuggester.cs | 2 +- src/core/Deal.Contracts/Integrations/IMlClient.cs | 2 +- .../{ => Abstractions}/IMlTrainClient.cs | 7 ++++++- .../{ => Exceptions}/AiUnavailableException.cs | 8 +++++++- .../{ => Extensions}/RpcExceptionExtensions.cs | 7 ++++++- .../Integrations/{ => Extensions}/UriExtensions.cs | 7 ++++++- .../Integrations/{ => Models}/AiGrpcConnection.cs | 7 ++++++- .../Integrations/{ => Models}/MlGrpcConnection.cs | 7 ++++++- .../Integrations/{ => Models}/MtlsCertificates.cs | 7 ++++++- .../{ => Models}/ServiceHealthResult.cs | 8 +++++++- .../{ => Models}/TelegramGrpcConnection.cs | 7 ++++++- .../Integrations/{ => Options}/AiServiceOptions.cs | 8 +++++++- .../Integrations/{ => Options}/MlServiceOptions.cs | 8 +++++++- .../Integrations/{ => Options}/MtlsOptions.cs | 7 ++++++- .../{ => Options}/TelegramServiceOptions.cs | 8 +++++++- .../{ => Services}/AiConnectionChecker.cs | 7 ++++++- .../{ => Services}/AiProviderConfigBuilder.cs | 7 ++++++- .../{ => Services}/BudgetedAiClassifier.cs | 7 ++++++- .../Integrations/{ => Services}/BudgetedAiTools.cs | 7 ++++++- .../Integrations/{ => Services}/CbrRateSource.cs | 7 ++++++- .../{ => Services}/GrpcAiClassifier.cs | 7 ++++++- .../Integrations/{ => Services}/GrpcAiTools.cs | 7 ++++++- .../Integrations/{ => Services}/GrpcMlClient.cs | 7 ++++++- .../{ => Services}/GrpcTelegramClient.cs | 7 ++++++- .../{ => Services}/LocalAiClassifier.cs | 7 ++++++- .../Integrations/{ => Services}/LocalAiTools.cs | 7 ++++++- .../{ => Services}/LocalColumnSuggester.cs | 7 ++++++- .../Integrations/{ => Services}/LocalMlClient.cs | 7 ++++++- .../{ => Services}/LocalTelegramGateway.cs | 7 ++++++- .../Integrations/{ => Services}/MlOutboxQueue.cs | 7 ++++++- .../Integrations/{ => Services}/MlStatusCache.cs | 7 ++++++- .../{ => Services}/ServiceHealthProbe.cs | 7 ++++++- .../{ => Services}/TokenUsageRecorder.cs | 7 ++++++- .../MinioStorageOptionsExtensions.cs | 5 ++++- .../Storage/{ => Extensions}/StringExtensions.cs | 5 ++++- .../Storage/{ => Options}/LocalStorageOptions.cs | 5 ++++- .../Storage/{ => Options}/MinioStorageOptions.cs | 5 ++++- .../Storage/{ => Options}/StorageOptions.cs | 5 ++++- .../Storage/{ => Services}/FileStorageRegistrar.cs | 4 +++- .../Storage/{ => Services}/LocalFileStorage.cs | 4 +++- .../Storage/{ => Services}/MinioFileStorage.cs | 4 +++- .../20260905192825_InitialSystem.Designer.cs | 1 + .../20260907181413_SystemSaaS.Designer.cs | 1 + ...907192419_SessionsImpersonationMark.Designer.cs | 1 + .../20260910152246_AddTokenUsageEvents.Designer.cs | 1 + .../20260910172545_RateLimitCounters.Designer.cs | 1 + .../20260910194443_GlobalSettings.Designer.cs | 1 + .../Migrations/DealDbContextModelSnapshot.cs | 1 + .../20260905193010_InitialTenant.Designer.cs | 1 + .../20260906125058_TenantKanban.Designer.cs | 1 + .../20260906165058_TenantPipeline.Designer.cs | 1 + .../20260906200342_TenantProjects.Designer.cs | 1 + .../20260907141242_TenantTelegram.Designer.cs | 1 + .../20260907155333_TenantDiscovery.Designer.cs | 1 + .../20260909222322_TenantContainers.Designer.cs | 1 + .../20260910132805_TenantUnifiedCard.Designer.cs | 1 + ...60910134104_TenantContainerRegistry.Designer.cs | 1 + ...260910134358_TenantContainerCleanup.Designer.cs | 1 + .../TenantDb/TenantDbContextModelSnapshot.cs | 1 + .../{ => Configurations}/AuditLogConfiguration.cs | 4 +++- .../{ => Configurations}/CardConfiguration.cs | 4 +++- .../{ => Configurations}/CardMoveConfiguration.cs | 4 +++- .../{ => Configurations}/ContainerConfiguration.cs | 4 +++- .../DedupEntryConfiguration.cs | 4 +++- .../{ => Configurations}/DialogConfiguration.cs | 4 +++- .../DiscBlacklistConfiguration.cs | 4 +++- .../DiscCandidateConfiguration.cs | 4 +++- .../{ => Configurations}/DiscLogConfiguration.cs | 4 +++- .../{ => Configurations}/DiscTaskConfiguration.cs | 4 +++- .../GlobalSettingConfiguration.cs | 4 +++- .../{ => Configurations}/InviteConfiguration.cs | 4 +++- .../LeadCommentConfiguration.cs | 4 +++- .../{ => Configurations}/MlOutboxConfiguration.cs | 4 +++- .../{ => Configurations}/OperatorConfiguration.cs | 4 +++- .../OperatorSessionConfiguration.cs | 4 +++- .../{ => Configurations}/QueueItemConfiguration.cs | 4 +++- .../RateLimitCounterConfiguration.cs | 4 +++- .../RejectedItemConfiguration.cs | 4 +++- .../{ => Configurations}/SessionConfiguration.cs | 4 +++- .../{ => Configurations}/TenantConfiguration.cs | 4 +++- .../TenantLimitConfiguration.cs | 4 +++- .../TenantSettingConfiguration.cs | 4 +++- .../{ => Configurations}/TgMessageConfiguration.cs | 4 +++- .../TokenUsageEventConfiguration.cs | 4 +++- .../{ => Configurations}/UserConfiguration.cs | 4 +++- .../Persistence/DealDbContext.cs | 1 + .../Persistence/DealDbDesignTimeFactory.cs | 1 + .../Persistence/Entities/AuditLogEntity.cs | 2 ++ .../Persistence/Entities/CardEntity.cs | 1 + .../Persistence/Entities/CardMoveEntity.cs | 2 ++ .../Persistence/Entities/ContainerEntity.cs | 1 + .../Persistence/Entities/DedupEntryEntity.cs | 2 ++ .../Persistence/Entities/DialogEntity.cs | 2 ++ .../Persistence/Entities/DiscBlacklistEntity.cs | 2 ++ .../Persistence/Entities/DiscCandidateEntity.cs | 2 ++ .../Persistence/Entities/DiscLogEntity.cs | 2 ++ .../Persistence/Entities/DiscTaskEntity.cs | 2 ++ .../Persistence/Entities/GlobalSettingEntity.cs | 2 ++ .../Persistence/Entities/InviteEntity.cs | 2 ++ .../Persistence/Entities/LeadCommentEntity.cs | 2 ++ .../Persistence/Entities/MlOutboxEntity.cs | 2 ++ .../Persistence/Entities/OperatorEntity.cs | 2 ++ .../Persistence/Entities/OperatorSessionEntity.cs | 2 ++ .../Persistence/Entities/QueueItemEntity.cs | 2 ++ .../Persistence/Entities/RateLimitCounterEntity.cs | 2 ++ .../Persistence/Entities/RejectedItemEntity.cs | 1 + .../Persistence/Entities/SessionEntity.cs | 2 ++ .../Persistence/Entities/TenantEntity.cs | 2 ++ .../Persistence/Entities/TenantLimitEntity.cs | 2 ++ .../Persistence/Entities/TenantSettingEntity.cs | 2 ++ .../Persistence/Entities/TgMessageEntity.cs | 2 ++ .../Persistence/Entities/TokenUsageEventEntity.cs | 2 ++ .../Persistence/Entities/UserEntity.cs | 2 ++ .../Persistence/Repositories/AuditLogStore.cs | 1 + .../Persistence/Repositories/AuthStore.cs | 1 + .../Repositories/DiscoveryStore.Blacklist.cs | 1 + .../Repositories/DiscoveryStore.Candidates.cs | 1 + .../Repositories/DiscoveryStore.Logs.cs | 1 + .../Repositories/DiscoveryStore.Tasks.cs | 1 + .../Persistence/Repositories/DiscoveryStore.cs | 1 + .../Repositories/GlobalSettingsStore.cs | 1 + .../Persistence/Repositories/InviteStore.cs | 1 + .../Persistence/Repositories/KanbanStore.Cards.cs | 1 + .../Repositories/KanbanStore.Comments.cs | 1 + .../Repositories/KanbanStore.Containers.cs | 1 + .../Repositories/KanbanStore.Selected.cs | 1 + .../Repositories/KanbanStore.StorageRules.cs | 1 + .../Persistence/Repositories/KanbanStore.cs | 1 + .../Persistence/Repositories/MlLearningStore.cs | 1 + .../Persistence/Repositories/OperatorAuthStore.cs | 1 + .../Persistence/Repositories/PipelineStore.cs | 1 + .../Repositories/RateLimitCounterStore.cs | 1 + .../Persistence/Repositories/SettingsStore.cs | 1 + .../Persistence/Repositories/TelegramStore.cs | 1 + .../Persistence/Repositories/TenantLimitStore.cs | 1 + .../Persistence/Repositories/TenantRepository.cs | 1 + .../Repositories/TokenUsageEventStore.cs | 1 + .../Persistence/TenantDbContext.cs | 1 + .../Persistence/TenantDbDesignTimeFactory.cs | 1 + .../ServiceCollectionExtensions.cs | 8 +++++++- .../Deal.Infrastructure/Services/FtsMaintenance.cs | 1 + .../Tenancy/DefaultContainerProvisioner.cs | 1 + .../Tenancy/TenantProvisioningService.cs | 1 + .../Deal.Tests.Unit/AdminTickOrchestratorTests.cs | 2 ++ .../Deal.Tests.Unit/AiConnectionCheckerTests.cs | 7 ++++++- src/core/tests/Deal.Tests.Unit/AiGrpcTestHost.cs | 7 ++++++- .../tests/Deal.Tests.Unit/AuditLogStoreTests.cs | 1 + src/core/tests/Deal.Tests.Unit/AuthStoreTests.cs | 1 + .../Deal.Tests.Unit/BudgetedAiClassifierTests.cs | 7 ++++++- .../tests/Deal.Tests.Unit/BudgetedAiToolsTests.cs | 7 ++++++- .../tests/Deal.Tests.Unit/CbrRateSourceTests.cs | 7 ++++++- .../Deal.Tests.Unit/GlobalSettingsStoreTests.cs | 1 + .../tests/Deal.Tests.Unit/GrpcAiClassifierTests.cs | 7 ++++++- src/core/tests/Deal.Tests.Unit/GrpcAiToolsTests.cs | 7 ++++++- .../tests/Deal.Tests.Unit/GrpcMlClientTests.cs | 7 ++++++- .../Deal.Tests.Unit/GrpcTelegramClientTests.cs | 7 ++++++- .../tests/Deal.Tests.Unit/IntegrationsDiTests.cs | 7 ++++++- src/core/tests/Deal.Tests.Unit/InviteStoreTests.cs | 1 + .../Deal.Tests.Unit/LocalAiClassifierTests.cs | 7 ++++++- .../tests/Deal.Tests.Unit/LocalAiToolsTests.cs | 7 ++++++- .../Deal.Tests.Unit/LocalColumnSuggesterTests.cs | 7 ++++++- .../tests/Deal.Tests.Unit/LocalFileStorageTests.cs | 4 +++- .../tests/Deal.Tests.Unit/LocalMlClientTests.cs | 7 ++++++- .../Deal.Tests.Unit/MlOutboxFlushSchedulerTests.cs | 7 ++++++- .../tests/Deal.Tests.Unit/MtlsCertificatesTests.cs | 7 ++++++- src/core/tests/Deal.Tests.Unit/MtlsOptionsTests.cs | 7 ++++++- .../tests/Deal.Tests.Unit/OperatorAuthHttpHost.cs | 8 +++++++- .../Deal.Tests.Unit/OperatorAuthStoreTests.cs | 1 + .../tests/Deal.Tests.Unit/PipelinePumpGateTests.cs | 2 ++ .../Deal.Tests.Unit/PipelineWorkerGrpcAiTests.cs | 7 ++++++- .../PipelineWorkerSchedulerTests.cs | 2 ++ .../Deal.Tests.Unit/RateLimitCounterStoreTests.cs | 1 + .../Deal.Tests.Unit/ServiceHealthProbeTests.cs | 7 ++++++- .../Deal.Tests.Unit/TelegramIngressTestHost.cs | 2 ++ .../tests/Deal.Tests.Unit/TenantLimitStoreTests.cs | 1 + .../tests/Deal.Tests.Unit/TenantRepositoryTests.cs | 1 + .../Deal.Tests.Unit/TokenUsageRecorderTests.cs | 7 ++++++- 289 files changed, 855 insertions(+), 101 deletions(-) rename src/core/Deal.Api/{ => Dtos}/AdminTickResultDto.cs (96%) rename src/core/Deal.Api/{ => Services}/AdminTickOrchestrator.cs (99%) rename src/core/Deal.Api/{ => Services}/PipelinePumpGate.cs (96%) rename src/core/Deal.Api/{ => Services}/PipelineWorkerScheduler.cs (99%) rename src/core/Deal.Api/{ => Services}/RatesRefreshScheduler.cs (97%) rename src/core/Deal.Api/{ => Services}/TelegramBackfillScheduler.cs (98%) rename src/core/Deal.Infrastructure/Integrations/{ => Abstractions}/IMlTrainClient.cs (85%) rename src/core/Deal.Infrastructure/Integrations/{ => Exceptions}/AiUnavailableException.cs (84%) rename src/core/Deal.Infrastructure/Integrations/{ => Extensions}/RpcExceptionExtensions.cs (73%) rename src/core/Deal.Infrastructure/Integrations/{ => Extensions}/UriExtensions.cs (85%) rename src/core/Deal.Infrastructure/Integrations/{ => Models}/AiGrpcConnection.cs (94%) rename src/core/Deal.Infrastructure/Integrations/{ => Models}/MlGrpcConnection.cs (94%) rename src/core/Deal.Infrastructure/Integrations/{ => Models}/MtlsCertificates.cs (97%) rename src/core/Deal.Infrastructure/Integrations/{ => Models}/ServiceHealthResult.cs (79%) rename src/core/Deal.Infrastructure/Integrations/{ => Models}/TelegramGrpcConnection.cs (94%) rename src/core/Deal.Infrastructure/Integrations/{ => Options}/AiServiceOptions.cs (84%) rename src/core/Deal.Infrastructure/Integrations/{ => Options}/MlServiceOptions.cs (83%) rename src/core/Deal.Infrastructure/Integrations/{ => Options}/MtlsOptions.cs (94%) rename src/core/Deal.Infrastructure/Integrations/{ => Options}/TelegramServiceOptions.cs (84%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/AiConnectionChecker.cs (97%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/AiProviderConfigBuilder.cs (96%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/BudgetedAiClassifier.cs (96%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/BudgetedAiTools.cs (96%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/CbrRateSource.cs (96%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/GrpcAiClassifier.cs (97%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/GrpcAiTools.cs (97%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/GrpcMlClient.cs (98%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/GrpcTelegramClient.cs (98%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/LocalAiClassifier.cs (92%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/LocalAiTools.cs (87%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/LocalColumnSuggester.cs (97%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/LocalMlClient.cs (96%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/LocalTelegramGateway.cs (93%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/MlOutboxQueue.cs (93%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/MlStatusCache.cs (94%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/ServiceHealthProbe.cs (93%) rename src/core/Deal.Infrastructure/Integrations/{ => Services}/TokenUsageRecorder.cs (97%) rename src/core/Deal.Infrastructure/Integrations/Storage/{ => Extensions}/MinioStorageOptionsExtensions.cs (81%) rename src/core/Deal.Infrastructure/Integrations/Storage/{ => Extensions}/StringExtensions.cs (79%) rename src/core/Deal.Infrastructure/Integrations/Storage/{ => Options}/LocalStorageOptions.cs (85%) rename src/core/Deal.Infrastructure/Integrations/Storage/{ => Options}/MinioStorageOptions.cs (93%) rename src/core/Deal.Infrastructure/Integrations/Storage/{ => Options}/StorageOptions.cs (88%) rename src/core/Deal.Infrastructure/Integrations/Storage/{ => Services}/FileStorageRegistrar.cs (98%) rename src/core/Deal.Infrastructure/Integrations/Storage/{ => Services}/LocalFileStorage.cs (97%) rename src/core/Deal.Infrastructure/Integrations/Storage/{ => Services}/MinioFileStorage.cs (98%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/AuditLogConfiguration.cs (85%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/CardConfiguration.cs (94%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/CardMoveConfiguration.cs (83%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/ContainerConfiguration.cs (93%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/DedupEntryConfiguration.cs (85%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/DialogConfiguration.cs (85%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/DiscBlacklistConfiguration.cs (87%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/DiscCandidateConfiguration.cs (89%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/DiscLogConfiguration.cs (85%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/DiscTaskConfiguration.cs (86%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/GlobalSettingConfiguration.cs (83%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/InviteConfiguration.cs (90%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/LeadCommentConfiguration.cs (86%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/MlOutboxConfiguration.cs (85%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/OperatorConfiguration.cs (85%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/OperatorSessionConfiguration.cs (88%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/QueueItemConfiguration.cs (88%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/RateLimitCounterConfiguration.cs (86%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/RejectedItemConfiguration.cs (91%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/SessionConfiguration.cs (88%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/TenantConfiguration.cs (80%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/TenantLimitConfiguration.cs (88%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/TenantSettingConfiguration.cs (84%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/TgMessageConfiguration.cs (83%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/TokenUsageEventConfiguration.cs (87%) rename src/core/Deal.Infrastructure/Persistence/{ => Configurations}/UserConfiguration.cs (88%) diff --git a/src/core/Deal.Api/Configuration/CookieOptions.cs b/src/core/Deal.Api/Configuration/CookieOptions.cs index 9a6d188..d8d954a 100644 --- a/src/core/Deal.Api/Configuration/CookieOptions.cs +++ b/src/core/Deal.Api/Configuration/CookieOptions.cs @@ -3,6 +3,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Configuration; diff --git a/src/core/Deal.Api/Configuration/DataRetentionOptions.cs b/src/core/Deal.Api/Configuration/DataRetentionOptions.cs index 66faf83..a0b849a 100644 --- a/src/core/Deal.Api/Configuration/DataRetentionOptions.cs +++ b/src/core/Deal.Api/Configuration/DataRetentionOptions.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Configuration; /// diff --git a/src/core/Deal.Api/Configuration/ForwardedHeadersConfig.cs b/src/core/Deal.Api/Configuration/ForwardedHeadersConfig.cs index 887c65d..1a4ea7a 100644 --- a/src/core/Deal.Api/Configuration/ForwardedHeadersConfig.cs +++ b/src/core/Deal.Api/Configuration/ForwardedHeadersConfig.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Configuration; /// diff --git a/src/core/Deal.Api/Configuration/OperatorCookieOptions.cs b/src/core/Deal.Api/Configuration/OperatorCookieOptions.cs index ccc61f7..0828b95 100644 --- a/src/core/Deal.Api/Configuration/OperatorCookieOptions.cs +++ b/src/core/Deal.Api/Configuration/OperatorCookieOptions.cs @@ -3,6 +3,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Configuration; diff --git a/src/core/Deal.Api/Configuration/RateLimitOptions.cs b/src/core/Deal.Api/Configuration/RateLimitOptions.cs index fa016da..9ca2b77 100644 --- a/src/core/Deal.Api/Configuration/RateLimitOptions.cs +++ b/src/core/Deal.Api/Configuration/RateLimitOptions.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Configuration; /// diff --git a/src/core/Deal.Api/Configuration/SecurityOptions.cs b/src/core/Deal.Api/Configuration/SecurityOptions.cs index a2a1f20..a391004 100644 --- a/src/core/Deal.Api/Configuration/SecurityOptions.cs +++ b/src/core/Deal.Api/Configuration/SecurityOptions.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Configuration; /// diff --git a/src/core/Deal.Api/AdminTickResultDto.cs b/src/core/Deal.Api/Dtos/AdminTickResultDto.cs similarity index 96% rename from src/core/Deal.Api/AdminTickResultDto.cs rename to src/core/Deal.Api/Dtos/AdminTickResultDto.cs index fb90885..962b492 100644 --- a/src/core/Deal.Api/AdminTickResultDto.cs +++ b/src/core/Deal.Api/Dtos/AdminTickResultDto.cs @@ -1,6 +1,9 @@ using Deal.Modules.Kanban.Application.Models; +using Deal.Api.Services; +using Deal.Api; +using Deal.Api.Dtos; -namespace Deal.Api; +namespace Deal.Api.Dtos; /// /// Ответ POST /api/admin/tick — форма {storage, reminders, pipeline, queue} (dashboard_routes.py admin_tick L327–337, план Task 10). diff --git a/src/core/Deal.Api/Endpoints/AiCheckEndpoint.cs b/src/core/Deal.Api/Endpoints/AiCheckEndpoint.cs index 6a1e105..720cd14 100644 --- a/src/core/Deal.Api/Endpoints/AiCheckEndpoint.cs +++ b/src/core/Deal.Api/Endpoints/AiCheckEndpoint.cs @@ -4,6 +4,8 @@ using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/AiSuggestEndpoints.cs b/src/core/Deal.Api/Endpoints/AiSuggestEndpoints.cs index 5e46b28..80e4394 100644 --- a/src/core/Deal.Api/Endpoints/AiSuggestEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/AiSuggestEndpoints.cs @@ -2,6 +2,8 @@ using Deal.Api.Events; using Deal.Api.Http; using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/AuthEndpoints.cs b/src/core/Deal.Api/Endpoints/AuthEndpoints.cs index c60c091..0fef7d7 100644 --- a/src/core/Deal.Api/Endpoints/AuthEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/AuthEndpoints.cs @@ -6,6 +6,8 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.Extensions.Options; +using Deal.Api.Services; +using Deal.Api.Dtos; // Имя конфигурационного типа совпадает с Microsoft.AspNetCore.Http.CookieOptions — фиксируем алиасом. using CookieOptions = Deal.Api.Configuration.CookieOptions; diff --git a/src/core/Deal.Api/Endpoints/CardDetailsEndpoints.cs b/src/core/Deal.Api/Endpoints/CardDetailsEndpoints.cs index 6302a73..9a15fa0 100644 --- a/src/core/Deal.Api/Endpoints/CardDetailsEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/CardDetailsEndpoints.cs @@ -13,6 +13,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/CardsEndpoints.cs b/src/core/Deal.Api/Endpoints/CardsEndpoints.cs index ab599b4..5633ee5 100644 --- a/src/core/Deal.Api/Endpoints/CardsEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/CardsEndpoints.cs @@ -18,6 +18,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/ChangePasswordRequest.cs b/src/core/Deal.Api/Endpoints/ChangePasswordRequest.cs index 7370db9..2cde3fe 100644 --- a/src/core/Deal.Api/Endpoints/ChangePasswordRequest.cs +++ b/src/core/Deal.Api/Endpoints/ChangePasswordRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/CheckMessageRequest.cs b/src/core/Deal.Api/Endpoints/CheckMessageRequest.cs index e8fe90c..b780455 100644 --- a/src/core/Deal.Api/Endpoints/CheckMessageRequest.cs +++ b/src/core/Deal.Api/Endpoints/CheckMessageRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/ContainersEndpoints.cs b/src/core/Deal.Api/Endpoints/ContainersEndpoints.cs index 27b5331..0807d48 100644 --- a/src/core/Deal.Api/Endpoints/ContainersEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/ContainersEndpoints.cs @@ -11,6 +11,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/DiscoveryEndpoints.cs b/src/core/Deal.Api/Endpoints/DiscoveryEndpoints.cs index 59455c9..6951266 100644 --- a/src/core/Deal.Api/Endpoints/DiscoveryEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/DiscoveryEndpoints.cs @@ -14,6 +14,8 @@ using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; using Deal.Modules.Telegram.Application; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/EventsEndpoint.cs b/src/core/Deal.Api/Endpoints/EventsEndpoint.cs index 9ee1d6b..a85de6c 100644 --- a/src/core/Deal.Api/Endpoints/EventsEndpoint.cs +++ b/src/core/Deal.Api/Endpoints/EventsEndpoint.cs @@ -1,5 +1,7 @@ using Deal.Api.Events; using Deal.Api.Http; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/FilterTesterEndpoints.cs b/src/core/Deal.Api/Endpoints/FilterTesterEndpoints.cs index c1cfe2c..361187b 100644 --- a/src/core/Deal.Api/Endpoints/FilterTesterEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/FilterTesterEndpoints.cs @@ -3,6 +3,8 @@ using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/JoinEndpoint.cs b/src/core/Deal.Api/Endpoints/JoinEndpoint.cs index 09c54fa..d340780 100644 --- a/src/core/Deal.Api/Endpoints/JoinEndpoint.cs +++ b/src/core/Deal.Api/Endpoints/JoinEndpoint.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/JoinRequest.cs b/src/core/Deal.Api/Endpoints/JoinRequest.cs index e9f983f..ae8b848 100644 --- a/src/core/Deal.Api/Endpoints/JoinRequest.cs +++ b/src/core/Deal.Api/Endpoints/JoinRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/LoginRequest.cs b/src/core/Deal.Api/Endpoints/LoginRequest.cs index f2b457e..556fa90 100644 --- a/src/core/Deal.Api/Endpoints/LoginRequest.cs +++ b/src/core/Deal.Api/Endpoints/LoginRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/MlApplyRequest.cs b/src/core/Deal.Api/Endpoints/MlApplyRequest.cs index 2f8498a..0e005a2 100644 --- a/src/core/Deal.Api/Endpoints/MlApplyRequest.cs +++ b/src/core/Deal.Api/Endpoints/MlApplyRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/MlCandidatesRequest.cs b/src/core/Deal.Api/Endpoints/MlCandidatesRequest.cs index a252062..7166536 100644 --- a/src/core/Deal.Api/Endpoints/MlCandidatesRequest.cs +++ b/src/core/Deal.Api/Endpoints/MlCandidatesRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/MlEndpoints.cs b/src/core/Deal.Api/Endpoints/MlEndpoints.cs index 0862890..6db4cee 100644 --- a/src/core/Deal.Api/Endpoints/MlEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/MlEndpoints.cs @@ -5,6 +5,8 @@ using Deal.Modules.Pipeline.Application.Abstractions; using Deal.Modules.Pipeline.Application.Models; using Deal.Modules.Pipeline.Application.Registrars; using Deal.Modules.Pipeline.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/MlPredictRequest.cs b/src/core/Deal.Api/Endpoints/MlPredictRequest.cs index e764ad6..f61bae3 100644 --- a/src/core/Deal.Api/Endpoints/MlPredictRequest.cs +++ b/src/core/Deal.Api/Endpoints/MlPredictRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/OperatorAnalyticsEndpoints.cs b/src/core/Deal.Api/Endpoints/OperatorAnalyticsEndpoints.cs index d71a6e1..a3f7a2a 100644 --- a/src/core/Deal.Api/Endpoints/OperatorAnalyticsEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/OperatorAnalyticsEndpoints.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/OperatorAuditEndpoints.cs b/src/core/Deal.Api/Endpoints/OperatorAuditEndpoints.cs index bcab5ed..67ef3dd 100644 --- a/src/core/Deal.Api/Endpoints/OperatorAuditEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/OperatorAuditEndpoints.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/OperatorAuthEndpoints.cs b/src/core/Deal.Api/Endpoints/OperatorAuthEndpoints.cs index b26be34..ae198e5 100644 --- a/src/core/Deal.Api/Endpoints/OperatorAuthEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/OperatorAuthEndpoints.cs @@ -6,6 +6,8 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.Extensions.Options; +using Deal.Api.Services; +using Deal.Api.Dtos; using AspNetCoreCookieOptions = Microsoft.AspNetCore.Http.CookieOptions; // Имя конфигурационного типа совпадает с Microsoft.AspNetCore.Http.CookieOptions — фиксируем алиасами. using OperatorCookieOptions = Deal.Api.Configuration.OperatorCookieOptions; diff --git a/src/core/Deal.Api/Endpoints/OperatorHealthEndpoints.cs b/src/core/Deal.Api/Endpoints/OperatorHealthEndpoints.cs index 580db5f..67a6b35 100644 --- a/src/core/Deal.Api/Endpoints/OperatorHealthEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/OperatorHealthEndpoints.cs @@ -1,8 +1,16 @@ using Deal.Api.Http; using Deal.Api.Observability; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/OperatorInviteCreateRequest.cs b/src/core/Deal.Api/Endpoints/OperatorInviteCreateRequest.cs index 1c2ef03..ab870f2 100644 --- a/src/core/Deal.Api/Endpoints/OperatorInviteCreateRequest.cs +++ b/src/core/Deal.Api/Endpoints/OperatorInviteCreateRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/OperatorInvitesEndpoints.cs b/src/core/Deal.Api/Endpoints/OperatorInvitesEndpoints.cs index 5485a70..7a2c2a2 100644 --- a/src/core/Deal.Api/Endpoints/OperatorInvitesEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/OperatorInvitesEndpoints.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/OperatorLimitUpdateRequest.cs b/src/core/Deal.Api/Endpoints/OperatorLimitUpdateRequest.cs index d8954f3..feb1473 100644 --- a/src/core/Deal.Api/Endpoints/OperatorLimitUpdateRequest.cs +++ b/src/core/Deal.Api/Endpoints/OperatorLimitUpdateRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/OperatorLimitsEndpoints.cs b/src/core/Deal.Api/Endpoints/OperatorLimitsEndpoints.cs index 1464661..6a82f7d 100644 --- a/src/core/Deal.Api/Endpoints/OperatorLimitsEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/OperatorLimitsEndpoints.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/OperatorMaintenanceEndpoints.cs b/src/core/Deal.Api/Endpoints/OperatorMaintenanceEndpoints.cs index 273c81e..4bd1715 100644 --- a/src/core/Deal.Api/Endpoints/OperatorMaintenanceEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/OperatorMaintenanceEndpoints.cs @@ -1,5 +1,7 @@ using Deal.Api.Http; using Deal.Infrastructure.Tenancy; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/OperatorSettingsEndpoints.cs b/src/core/Deal.Api/Endpoints/OperatorSettingsEndpoints.cs index 027fddf..ad3a881 100644 --- a/src/core/Deal.Api/Endpoints/OperatorSettingsEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/OperatorSettingsEndpoints.cs @@ -6,6 +6,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/OperatorTenantCreateRequest.cs b/src/core/Deal.Api/Endpoints/OperatorTenantCreateRequest.cs index ccc88c8..f78cc71 100644 --- a/src/core/Deal.Api/Endpoints/OperatorTenantCreateRequest.cs +++ b/src/core/Deal.Api/Endpoints/OperatorTenantCreateRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/OperatorTenantImpersonateRequest.cs b/src/core/Deal.Api/Endpoints/OperatorTenantImpersonateRequest.cs index f315791..853ed95 100644 --- a/src/core/Deal.Api/Endpoints/OperatorTenantImpersonateRequest.cs +++ b/src/core/Deal.Api/Endpoints/OperatorTenantImpersonateRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints; /// diff --git a/src/core/Deal.Api/Endpoints/OperatorTenantsEndpoints.cs b/src/core/Deal.Api/Endpoints/OperatorTenantsEndpoints.cs index dd27c5f..989fc16 100644 --- a/src/core/Deal.Api/Endpoints/OperatorTenantsEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/OperatorTenantsEndpoints.cs @@ -5,6 +5,8 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.Extensions.Options; +using Deal.Api.Services; +using Deal.Api.Dtos; using CookieOptions = Deal.Api.Configuration.CookieOptions; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/PipelineEndpoints.cs b/src/core/Deal.Api/Endpoints/PipelineEndpoints.cs index 4b40095..050e586 100644 --- a/src/core/Deal.Api/Endpoints/PipelineEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/PipelineEndpoints.cs @@ -4,6 +4,8 @@ using Deal.Modules.Pipeline.Application.Abstractions; using Deal.Modules.Pipeline.Application.Models; using Deal.Modules.Pipeline.Application.Registrars; using Deal.Modules.Pipeline.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/RatesEndpoints.cs b/src/core/Deal.Api/Endpoints/RatesEndpoints.cs index b19bb5c..666eece 100644 --- a/src/core/Deal.Api/Endpoints/RatesEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/RatesEndpoints.cs @@ -3,6 +3,8 @@ using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/RequestModels/CardLinkRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/CardLinkRequest.cs index 06a74f5..7e1db98 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/CardLinkRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/CardLinkRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/ClearColBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/ClearColBody.cs index d058fed..f55cf84 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/ClearColBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/ClearColBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/ColStateBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/ColStateBody.cs index 7559b5d..1baf875 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/ColStateBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/ColStateBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/CommentBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/CommentBody.cs index 2f1949f..54dfcda 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/CommentBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/CommentBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/ContainerCreateRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/ContainerCreateRequest.cs index d0ac239..ddd8206 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/ContainerCreateRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/ContainerCreateRequest.cs @@ -1,4 +1,6 @@ using Deal.Modules.Kanban.Application.Models; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints.RequestModels; diff --git a/src/core/Deal.Api/Endpoints/RequestModels/ContainerPatchRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/ContainerPatchRequest.cs index 12648bf..6e22e0a 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/ContainerPatchRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/ContainerPatchRequest.cs @@ -1,4 +1,6 @@ using Deal.Modules.Kanban.Application.Models; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints.RequestModels; diff --git a/src/core/Deal.Api/Endpoints/RequestModels/CreateCardRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/CreateCardRequest.cs index 79da3a7..062fe42 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/CreateCardRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/CreateCardRequest.cs @@ -1,4 +1,6 @@ using Deal.Modules.Kanban.Application.Models; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints.RequestModels; diff --git a/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskCreateBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskCreateBody.cs index 5e71163..14bee41 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskCreateBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskCreateBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskPatchBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskPatchBody.cs index ef16249..ebbf808 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskPatchBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskPatchBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/MarkColBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/MarkColBody.cs index 3d4b4a7..224ec18 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/MarkColBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/MarkColBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/MoveBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/MoveBody.cs index 79c3e2d..e943549 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/MoveBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/MoveBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/OperatorTelegramKeysRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/OperatorTelegramKeysRequest.cs index 8d56427..1e9defd 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/OperatorTelegramKeysRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/OperatorTelegramKeysRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/OrderBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/OrderBody.cs index a8acb1f..7671d9c 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/OrderBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/OrderBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/ReclassifyBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/ReclassifyBody.cs index e4cea43..d82093c 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/ReclassifyBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/ReclassifyBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/ReminderSetRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/ReminderSetRequest.cs index 38e5ddd..490d126 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/ReminderSetRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/ReminderSetRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/ReturnReasonRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/ReturnReasonRequest.cs index df02a6c..0e2feb2 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/ReturnReasonRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/ReturnReasonRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/TakeCardRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/TakeCardRequest.cs index da23b13..fe247fe 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/TakeCardRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/TakeCardRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/TgMonitorBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/TgMonitorBody.cs index 0eeeb5a..db8e6b0 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/TgMonitorBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/TgMonitorBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/TgPreviewBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/TgPreviewBody.cs index e2e331d..5a94ca0 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/TgPreviewBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/TgPreviewBody.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/TgSendCodeRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/TgSendCodeRequest.cs index bf52e68..3253986 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/TgSendCodeRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/TgSendCodeRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/TgSendPasswordRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/TgSendPasswordRequest.cs index 207031b..b4ea886 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/TgSendPasswordRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/TgSendPasswordRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/RequestModels/TgStartPhoneRequest.cs b/src/core/Deal.Api/Endpoints/RequestModels/TgStartPhoneRequest.cs index 7e329e4..22f1060 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/TgStartPhoneRequest.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/TgStartPhoneRequest.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Endpoints.RequestModels; /// diff --git a/src/core/Deal.Api/Endpoints/SettingsEndpoints.cs b/src/core/Deal.Api/Endpoints/SettingsEndpoints.cs index e1b74f7..56e6504 100644 --- a/src/core/Deal.Api/Endpoints/SettingsEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/SettingsEndpoints.cs @@ -1,5 +1,7 @@ using System.Text.Json; using Deal.Api; +using Deal.Api.Dtos; +using Deal.Api.Services; using Deal.Api.Http; using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; diff --git a/src/core/Deal.Api/Endpoints/StorageEndpoints.cs b/src/core/Deal.Api/Endpoints/StorageEndpoints.cs index bea2e32..9b137fd 100644 --- a/src/core/Deal.Api/Endpoints/StorageEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/StorageEndpoints.cs @@ -1,5 +1,7 @@ using Deal.Api.Http; using Deal.Infrastructure.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/TelegramEndpoints.cs b/src/core/Deal.Api/Endpoints/TelegramEndpoints.cs index 645dcbd..8c7bc6a 100644 --- a/src/core/Deal.Api/Endpoints/TelegramEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/TelegramEndpoints.cs @@ -10,6 +10,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Endpoints/TelegramQrImageEndpoint.cs b/src/core/Deal.Api/Endpoints/TelegramQrImageEndpoint.cs index ddb241c..8ea3e26 100644 --- a/src/core/Deal.Api/Endpoints/TelegramQrImageEndpoint.cs +++ b/src/core/Deal.Api/Endpoints/TelegramQrImageEndpoint.cs @@ -2,6 +2,8 @@ using Deal.Api.Http; using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; using Net.Codecrete.QrCodeGenerator; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Endpoints; diff --git a/src/core/Deal.Api/Events/SseBroker.cs b/src/core/Deal.Api/Events/SseBroker.cs index ee9dc9c..b59308f 100644 --- a/src/core/Deal.Api/Events/SseBroker.cs +++ b/src/core/Deal.Api/Events/SseBroker.cs @@ -1,6 +1,8 @@ using System.Text.Encodings.Web; using System.Text.Json; using System.Threading.Channels; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Events; diff --git a/src/core/Deal.Api/Events/SseEvent.cs b/src/core/Deal.Api/Events/SseEvent.cs index ec3aed8..da21d2a 100644 --- a/src/core/Deal.Api/Events/SseEvent.cs +++ b/src/core/Deal.Api/Events/SseEvent.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Events; /// diff --git a/src/core/Deal.Api/Events/SseSubscription.cs b/src/core/Deal.Api/Events/SseSubscription.cs index 95127e5..889967f 100644 --- a/src/core/Deal.Api/Events/SseSubscription.cs +++ b/src/core/Deal.Api/Events/SseSubscription.cs @@ -1,4 +1,6 @@ using System.Threading.Channels; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Events; diff --git a/src/core/Deal.Api/Events/StorageToastPublisher.cs b/src/core/Deal.Api/Events/StorageToastPublisher.cs index b6e3b8b..b71ee0e 100644 --- a/src/core/Deal.Api/Events/StorageToastPublisher.cs +++ b/src/core/Deal.Api/Events/StorageToastPublisher.cs @@ -1,4 +1,6 @@ using Deal.Modules.Kanban.Application.Models; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Events; diff --git a/src/core/Deal.Api/Hosting/BudgetAlertScheduler.cs b/src/core/Deal.Api/Hosting/BudgetAlertScheduler.cs index b2e56a7..65adfc7 100644 --- a/src/core/Deal.Api/Hosting/BudgetAlertScheduler.cs +++ b/src/core/Deal.Api/Hosting/BudgetAlertScheduler.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Hosting; diff --git a/src/core/Deal.Api/Hosting/DataRetentionScheduler.cs b/src/core/Deal.Api/Hosting/DataRetentionScheduler.cs index fefab2d..a2d3a3d 100644 --- a/src/core/Deal.Api/Hosting/DataRetentionScheduler.cs +++ b/src/core/Deal.Api/Hosting/DataRetentionScheduler.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Hosting; diff --git a/src/core/Deal.Api/Hosting/DiscoveryWorkerScheduler.cs b/src/core/Deal.Api/Hosting/DiscoveryWorkerScheduler.cs index 1561bb6..759addb 100644 --- a/src/core/Deal.Api/Hosting/DiscoveryWorkerScheduler.cs +++ b/src/core/Deal.Api/Hosting/DiscoveryWorkerScheduler.cs @@ -10,6 +10,8 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Hosting; diff --git a/src/core/Deal.Api/Hosting/MlOutboxFlushScheduler.cs b/src/core/Deal.Api/Hosting/MlOutboxFlushScheduler.cs index a3e1d8a..8081f6f 100644 --- a/src/core/Deal.Api/Hosting/MlOutboxFlushScheduler.cs +++ b/src/core/Deal.Api/Hosting/MlOutboxFlushScheduler.cs @@ -1,4 +1,9 @@ -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Kanban.Application.Abstractions; using Deal.Modules.Kanban.Application.Extensions; using Deal.Modules.Kanban.Application.Models; @@ -10,6 +15,8 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Hosting; diff --git a/src/core/Deal.Api/Hosting/OperatorBootstrapHostedService.cs b/src/core/Deal.Api/Hosting/OperatorBootstrapHostedService.cs index c168a21..5f0c77d 100644 --- a/src/core/Deal.Api/Hosting/OperatorBootstrapHostedService.cs +++ b/src/core/Deal.Api/Hosting/OperatorBootstrapHostedService.cs @@ -3,6 +3,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Hosting; diff --git a/src/core/Deal.Api/Hosting/StorageTickScheduler.cs b/src/core/Deal.Api/Hosting/StorageTickScheduler.cs index 2586bf5..e67816b 100644 --- a/src/core/Deal.Api/Hosting/StorageTickScheduler.cs +++ b/src/core/Deal.Api/Hosting/StorageTickScheduler.cs @@ -14,6 +14,8 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Hosting; diff --git a/src/core/Deal.Api/Hosting/TenantBootstrapService.cs b/src/core/Deal.Api/Hosting/TenantBootstrapService.cs index da60f11..2f67f6f 100644 --- a/src/core/Deal.Api/Hosting/TenantBootstrapService.cs +++ b/src/core/Deal.Api/Hosting/TenantBootstrapService.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Hosting; diff --git a/src/core/Deal.Api/Http/AuditAppender.cs b/src/core/Deal.Api/Http/AuditAppender.cs index 823e41d..ba8cb9c 100644 --- a/src/core/Deal.Api/Http/AuditAppender.cs +++ b/src/core/Deal.Api/Http/AuditAppender.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.Extensions.DependencyInjection; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Http; diff --git a/src/core/Deal.Api/Http/AuthHelpers.cs b/src/core/Deal.Api/Http/AuthHelpers.cs index ad57420..0d3fa8f 100644 --- a/src/core/Deal.Api/Http/AuthHelpers.cs +++ b/src/core/Deal.Api/Http/AuthHelpers.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Http; /// diff --git a/src/core/Deal.Api/Http/CurrentOperator.cs b/src/core/Deal.Api/Http/CurrentOperator.cs index 68abaf6..12dd4af 100644 --- a/src/core/Deal.Api/Http/CurrentOperator.cs +++ b/src/core/Deal.Api/Http/CurrentOperator.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Http; /// diff --git a/src/core/Deal.Api/Http/CurrentUser.cs b/src/core/Deal.Api/Http/CurrentUser.cs index e112e91..cdff07d 100644 --- a/src/core/Deal.Api/Http/CurrentUser.cs +++ b/src/core/Deal.Api/Http/CurrentUser.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Http; /// diff --git a/src/core/Deal.Api/Http/EndpointResults.cs b/src/core/Deal.Api/Http/EndpointResults.cs index 0fb5c0b..246bd3f 100644 --- a/src/core/Deal.Api/Http/EndpointResults.cs +++ b/src/core/Deal.Api/Http/EndpointResults.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Http; /// diff --git a/src/core/Deal.Api/Http/LoginAttemptGuard.cs b/src/core/Deal.Api/Http/LoginAttemptGuard.cs index b911766..448a7e8 100644 --- a/src/core/Deal.Api/Http/LoginAttemptGuard.cs +++ b/src/core/Deal.Api/Http/LoginAttemptGuard.cs @@ -4,6 +4,8 @@ using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Http; diff --git a/src/core/Deal.Api/Http/SessionCookieWriter.cs b/src/core/Deal.Api/Http/SessionCookieWriter.cs index 25ab369..d4d132d 100644 --- a/src/core/Deal.Api/Http/SessionCookieWriter.cs +++ b/src/core/Deal.Api/Http/SessionCookieWriter.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + using AspNetCoreCookieOptions = Microsoft.AspNetCore.Http.CookieOptions; using CookieOptions = Deal.Api.Configuration.CookieOptions; diff --git a/src/core/Deal.Api/Http/StoreBackedFixedWindowRateLimiter.cs b/src/core/Deal.Api/Http/StoreBackedFixedWindowRateLimiter.cs index 6d95bb5..4f3b3e1 100644 --- a/src/core/Deal.Api/Http/StoreBackedFixedWindowRateLimiter.cs +++ b/src/core/Deal.Api/Http/StoreBackedFixedWindowRateLimiter.cs @@ -5,6 +5,8 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.Extensions.DependencyInjection; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Http; diff --git a/src/core/Deal.Api/Logging/DealLogging.cs b/src/core/Deal.Api/Logging/DealLogging.cs index dd7d23e..2d406b4 100644 --- a/src/core/Deal.Api/Logging/DealLogging.cs +++ b/src/core/Deal.Api/Logging/DealLogging.cs @@ -2,6 +2,8 @@ using Microsoft.Extensions.Configuration; using Serilog; using Serilog.Events; using Serilog.Formatting.Compact; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Logging; diff --git a/src/core/Deal.Api/Middleware/HttpAccessLogMiddleware.cs b/src/core/Deal.Api/Middleware/HttpAccessLogMiddleware.cs index 08ef294..d05c47a 100644 --- a/src/core/Deal.Api/Middleware/HttpAccessLogMiddleware.cs +++ b/src/core/Deal.Api/Middleware/HttpAccessLogMiddleware.cs @@ -1,4 +1,6 @@ using System.Diagnostics; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Middleware; diff --git a/src/core/Deal.Api/Middleware/OperatorSessionMiddleware.cs b/src/core/Deal.Api/Middleware/OperatorSessionMiddleware.cs index 9333706..5521cb7 100644 --- a/src/core/Deal.Api/Middleware/OperatorSessionMiddleware.cs +++ b/src/core/Deal.Api/Middleware/OperatorSessionMiddleware.cs @@ -6,6 +6,8 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.Extensions.Options; +using Deal.Api.Services; +using Deal.Api.Dtos; // Имя конфигурационного типа совпадает с Microsoft.AspNetCore.Http.CookieOptions — фиксируем алиасом. using OperatorCookieOptions = Deal.Api.Configuration.OperatorCookieOptions; diff --git a/src/core/Deal.Api/Middleware/OriginGuardMiddleware.cs b/src/core/Deal.Api/Middleware/OriginGuardMiddleware.cs index a12a66c..010e477 100644 --- a/src/core/Deal.Api/Middleware/OriginGuardMiddleware.cs +++ b/src/core/Deal.Api/Middleware/OriginGuardMiddleware.cs @@ -1,5 +1,7 @@ using Deal.Api.Configuration; using Microsoft.Net.Http.Headers; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Middleware; diff --git a/src/core/Deal.Api/Middleware/RateLimitPolicies.cs b/src/core/Deal.Api/Middleware/RateLimitPolicies.cs index 179a06e..ba837e3 100644 --- a/src/core/Deal.Api/Middleware/RateLimitPolicies.cs +++ b/src/core/Deal.Api/Middleware/RateLimitPolicies.cs @@ -3,6 +3,8 @@ using Deal.Api.Configuration; using Deal.Api.Http; using Microsoft.AspNetCore.RateLimiting; using Microsoft.Extensions.DependencyInjection; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Middleware; diff --git a/src/core/Deal.Api/Middleware/SessionMiddleware.cs b/src/core/Deal.Api/Middleware/SessionMiddleware.cs index 4f8440d..6e17e9e 100644 --- a/src/core/Deal.Api/Middleware/SessionMiddleware.cs +++ b/src/core/Deal.Api/Middleware/SessionMiddleware.cs @@ -7,6 +7,8 @@ using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; using Microsoft.Extensions.Options; +using Deal.Api.Services; +using Deal.Api.Dtos; // Имя конфигурационного типа совпадает с Microsoft.AspNetCore.Http.CookieOptions — фиксируем алиасом. using CookieOptions = Deal.Api.Configuration.CookieOptions; diff --git a/src/core/Deal.Api/Observability/DealMetricsCollector.cs b/src/core/Deal.Api/Observability/DealMetricsCollector.cs index ed1e49a..5855d76 100644 --- a/src/core/Deal.Api/Observability/DealMetricsCollector.cs +++ b/src/core/Deal.Api/Observability/DealMetricsCollector.cs @@ -1,4 +1,6 @@ using Deal.SharedKernel.Observability; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Observability; diff --git a/src/core/Deal.Api/Observability/DealMetricsHosting.cs b/src/core/Deal.Api/Observability/DealMetricsHosting.cs index 2a0c626..1a81b1d 100644 --- a/src/core/Deal.Api/Observability/DealMetricsHosting.cs +++ b/src/core/Deal.Api/Observability/DealMetricsHosting.cs @@ -5,6 +5,8 @@ using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.Extensions.DependencyInjection; using OpenTelemetry; using OpenTelemetry.Metrics; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Observability; diff --git a/src/core/Deal.Api/Observability/RuntimeDepthsCollector.cs b/src/core/Deal.Api/Observability/RuntimeDepthsCollector.cs index 3c18481..e76e474 100644 --- a/src/core/Deal.Api/Observability/RuntimeDepthsCollector.cs +++ b/src/core/Deal.Api/Observability/RuntimeDepthsCollector.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Modules.Kanban.Application.Abstractions; using Deal.Modules.Kanban.Application.Extensions; using Deal.Modules.Kanban.Application.Models; @@ -15,6 +16,8 @@ using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; using Microsoft.EntityFrameworkCore; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Observability; diff --git a/src/core/Deal.Api/Observability/RuntimeDepthsDto.cs b/src/core/Deal.Api/Observability/RuntimeDepthsDto.cs index 885217f..7a1c16a 100644 --- a/src/core/Deal.Api/Observability/RuntimeDepthsDto.cs +++ b/src/core/Deal.Api/Observability/RuntimeDepthsDto.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Observability; /// diff --git a/src/core/Deal.Api/Program.cs b/src/core/Deal.Api/Program.cs index 8816afd..603285a 100644 --- a/src/core/Deal.Api/Program.cs +++ b/src/core/Deal.Api/Program.cs @@ -2,6 +2,8 @@ using System.Net; using System.Net.Sockets; using System.Text.Encodings.Web; using Deal.Api; +using Deal.Api.Dtos; +using Deal.Api.Services; using Deal.Api.Configuration; using Deal.Api.Endpoints; using Deal.Api.Events; @@ -14,9 +16,17 @@ using Deal.Api.Telegram; using Deal.Contracts.Integrations; using Deal.Infrastructure; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; -using Deal.Infrastructure.Integrations.Storage; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; +using Deal.Infrastructure.Integrations.Storage.Extensions; +using Deal.Infrastructure.Integrations.Storage.Options; +using Deal.Infrastructure.Integrations.Storage.Services; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Services; using Deal.Modules.Discovery.Application.Abstractions; using Deal.Modules.Discovery.Application.Exceptions; diff --git a/src/core/Deal.Api/AdminTickOrchestrator.cs b/src/core/Deal.Api/Services/AdminTickOrchestrator.cs similarity index 99% rename from src/core/Deal.Api/AdminTickOrchestrator.cs rename to src/core/Deal.Api/Services/AdminTickOrchestrator.cs index 535a3ae..215e5ff 100644 --- a/src/core/Deal.Api/AdminTickOrchestrator.cs +++ b/src/core/Deal.Api/Services/AdminTickOrchestrator.cs @@ -8,8 +8,11 @@ using Deal.Modules.Pipeline.Application.Abstractions; using Deal.Modules.Pipeline.Application.Models; using Deal.Modules.Pipeline.Application.Registrars; using Deal.Modules.Pipeline.Application.Services; +using Deal.Api.Dtos; +using Deal.Api; +using Deal.Api.Services; -namespace Deal.Api; +namespace Deal.Api.Services; /// /// Оркестратор ручного тика POST /api/admin/tick (план Tasks 10–11, Ruling 8/9; dashboard_routes.py admin_tick L327–337). diff --git a/src/core/Deal.Api/PipelinePumpGate.cs b/src/core/Deal.Api/Services/PipelinePumpGate.cs similarity index 96% rename from src/core/Deal.Api/PipelinePumpGate.cs rename to src/core/Deal.Api/Services/PipelinePumpGate.cs index 95739f9..e137c40 100644 --- a/src/core/Deal.Api/PipelinePumpGate.cs +++ b/src/core/Deal.Api/Services/PipelinePumpGate.cs @@ -1,6 +1,9 @@ using System.Collections.Concurrent; +using Deal.Api.Dtos; +using Deal.Api; +using Deal.Api.Services; -namespace Deal.Api; +namespace Deal.Api.Services; /// /// Общий воркер-гейт pump одного тенанта: admin/tick и фоновый цикл не разбирают очередь одновременно (Ruling 8, план Task 11; аналог asyncio.Lock pipeline.py L38–42). diff --git a/src/core/Deal.Api/PipelineWorkerScheduler.cs b/src/core/Deal.Api/Services/PipelineWorkerScheduler.cs similarity index 99% rename from src/core/Deal.Api/PipelineWorkerScheduler.cs rename to src/core/Deal.Api/Services/PipelineWorkerScheduler.cs index fc688c2..deaf2a3 100644 --- a/src/core/Deal.Api/PipelineWorkerScheduler.cs +++ b/src/core/Deal.Api/Services/PipelineWorkerScheduler.cs @@ -10,8 +10,11 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; +using Deal.Api.Dtos; +using Deal.Api; +using Deal.Api.Services; -namespace Deal.Api; +namespace Deal.Api.Services; /// /// Фоновый цикл разбора очереди входящих по всем тенантам (план Task 11, Ruling 8; аналог _pipeline_loop main.py L79–88). diff --git a/src/core/Deal.Api/RatesRefreshScheduler.cs b/src/core/Deal.Api/Services/RatesRefreshScheduler.cs similarity index 97% rename from src/core/Deal.Api/RatesRefreshScheduler.cs rename to src/core/Deal.Api/Services/RatesRefreshScheduler.cs index 9abdb3d..e1d9f29 100644 --- a/src/core/Deal.Api/RatesRefreshScheduler.cs +++ b/src/core/Deal.Api/Services/RatesRefreshScheduler.cs @@ -2,8 +2,11 @@ using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; +using Deal.Api.Dtos; +using Deal.Api; +using Deal.Api.Services; -namespace Deal.Api; +namespace Deal.Api.Services; /// /// Фоновое обновление кэша курсов вне жизненного цикла запроса (Ruling 6, Task 8). diff --git a/src/core/Deal.Api/TelegramBackfillScheduler.cs b/src/core/Deal.Api/Services/TelegramBackfillScheduler.cs similarity index 98% rename from src/core/Deal.Api/TelegramBackfillScheduler.cs rename to src/core/Deal.Api/Services/TelegramBackfillScheduler.cs index 3423cd6..a6620da 100644 --- a/src/core/Deal.Api/TelegramBackfillScheduler.cs +++ b/src/core/Deal.Api/Services/TelegramBackfillScheduler.cs @@ -1,6 +1,9 @@ using Deal.Modules.Telegram.Application; +using Deal.Api.Dtos; +using Deal.Api; +using Deal.Api.Services; -namespace Deal.Api; +namespace Deal.Api.Services; /// /// Фоновые спуски перечитывания каналов вне жизненного цикла запроса (Ruling 8, план Task 14). diff --git a/src/core/Deal.Api/Telegram/IngressRateLimitInterceptor.cs b/src/core/Deal.Api/Telegram/IngressRateLimitInterceptor.cs index 45d2017..c690d98 100644 --- a/src/core/Deal.Api/Telegram/IngressRateLimitInterceptor.cs +++ b/src/core/Deal.Api/Telegram/IngressRateLimitInterceptor.cs @@ -4,6 +4,8 @@ using Deal.Api.Middleware; using Grpc.Core; using Grpc.Core.Interceptors; using Microsoft.Extensions.DependencyInjection; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Telegram; diff --git a/src/core/Deal.Api/Telegram/IngressServiceTokenInterceptor.cs b/src/core/Deal.Api/Telegram/IngressServiceTokenInterceptor.cs index 237a723..e47b30f 100644 --- a/src/core/Deal.Api/Telegram/IngressServiceTokenInterceptor.cs +++ b/src/core/Deal.Api/Telegram/IngressServiceTokenInterceptor.cs @@ -1,5 +1,7 @@ using Grpc.Core; using Grpc.Core.Interceptors; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Telegram; diff --git a/src/core/Deal.Api/Telegram/RpcCallLoggingInterceptor.cs b/src/core/Deal.Api/Telegram/RpcCallLoggingInterceptor.cs index f6788dc..d753688 100644 --- a/src/core/Deal.Api/Telegram/RpcCallLoggingInterceptor.cs +++ b/src/core/Deal.Api/Telegram/RpcCallLoggingInterceptor.cs @@ -1,6 +1,8 @@ using System.Diagnostics; using Grpc.Core; using Grpc.Core.Interceptors; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Telegram; diff --git a/src/core/Deal.Api/Telegram/TelegramIngressService.cs b/src/core/Deal.Api/Telegram/TelegramIngressService.cs index 73ec94c..2ae0304 100644 --- a/src/core/Deal.Api/Telegram/TelegramIngressService.cs +++ b/src/core/Deal.Api/Telegram/TelegramIngressService.cs @@ -18,6 +18,8 @@ using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; using Grpc.Core; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Telegram; diff --git a/src/core/Deal.Api/Telegram/TelegramKeysMaskedDto.cs b/src/core/Deal.Api/Telegram/TelegramKeysMaskedDto.cs index 9eb78cc..0466f6c 100644 --- a/src/core/Deal.Api/Telegram/TelegramKeysMaskedDto.cs +++ b/src/core/Deal.Api/Telegram/TelegramKeysMaskedDto.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Telegram; /// diff --git a/src/core/Deal.Api/Telegram/TelegramKeysService.cs b/src/core/Deal.Api/Telegram/TelegramKeysService.cs index d7632ea..25dd705 100644 --- a/src/core/Deal.Api/Telegram/TelegramKeysService.cs +++ b/src/core/Deal.Api/Telegram/TelegramKeysService.cs @@ -3,6 +3,8 @@ using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Telegram; diff --git a/src/core/Deal.Api/Telegram/TelegramKeysValue.cs b/src/core/Deal.Api/Telegram/TelegramKeysValue.cs index 0e0edfc..c58cced 100644 --- a/src/core/Deal.Api/Telegram/TelegramKeysValue.cs +++ b/src/core/Deal.Api/Telegram/TelegramKeysValue.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Telegram; /// diff --git a/src/core/Deal.Api/Telegram/TgKeysSnapshot.cs b/src/core/Deal.Api/Telegram/TgKeysSnapshot.cs index 89f161a..d88b911 100644 --- a/src/core/Deal.Api/Telegram/TgKeysSnapshot.cs +++ b/src/core/Deal.Api/Telegram/TgKeysSnapshot.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Telegram; /// diff --git a/src/core/Deal.Api/Telegram/TgReportedStatus.cs b/src/core/Deal.Api/Telegram/TgReportedStatus.cs index e365203..7b7bdfd 100644 --- a/src/core/Deal.Api/Telegram/TgReportedStatus.cs +++ b/src/core/Deal.Api/Telegram/TgReportedStatus.cs @@ -1,3 +1,6 @@ +using Deal.Api.Services; +using Deal.Api.Dtos; + namespace Deal.Api.Telegram; /// diff --git a/src/core/Deal.Api/Telegram/TgStatusService.cs b/src/core/Deal.Api/Telegram/TgStatusService.cs index f1f6821..08d96c6 100644 --- a/src/core/Deal.Api/Telegram/TgStatusService.cs +++ b/src/core/Deal.Api/Telegram/TgStatusService.cs @@ -7,6 +7,8 @@ using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; using Deal.Modules.Telegram.Application; using Deal.Modules.Telegram.Application.Models; +using Deal.Api.Services; +using Deal.Api.Dtos; namespace Deal.Api.Telegram; diff --git a/src/core/Deal.Contracts/Integrations/IAiClassifier.cs b/src/core/Deal.Contracts/Integrations/IAiClassifier.cs index 0a427d2..2293e63 100644 --- a/src/core/Deal.Contracts/Integrations/IAiClassifier.cs +++ b/src/core/Deal.Contracts/Integrations/IAiClassifier.cs @@ -7,7 +7,7 @@ namespace Deal.Contracts.Integrations; /// /// /// Порт объявлен в Contracts, потому что контракт потребляет модуль Pipeline (воркер) и в будущем — -/// переклассификация из Api. На этапе 4 реализация — детерминированная Deal.Infrastructure.Integrations.LocalAiClassifier +/// переклассификация из Api. На этапе 4 реализация — детерминированная Deal.Infrastructure.Integrations.Services.LocalAiClassifier /// (Ruling 5): фильтр всегда пропускает (pass+skipped), классификация — локальный разбор ядра /// MessageParseCore модуля Pipeline (маркерная гипотеза типа, is_vacancy_known=false, board=null — /// «смысловые колонки до ИИ не назначаем», pipeline.py L954–958); на этапе 6 реализация заменяется diff --git a/src/core/Deal.Contracts/Integrations/IColumnSuggester.cs b/src/core/Deal.Contracts/Integrations/IColumnSuggester.cs index c9447a2..df8b846 100644 --- a/src/core/Deal.Contracts/Integrations/IColumnSuggester.cs +++ b/src/core/Deal.Contracts/Integrations/IColumnSuggester.cs @@ -7,7 +7,7 @@ namespace Deal.Contracts.Integrations; /// /// /// Порт объявлен в Contracts, потому что контракт потребляют модуль Kanban и Api. На этапе 3 -/// реализация — детерминированная эвристика Deal.Infrastructure.Integrations.LocalColumnSuggester +/// реализация — детерминированная эвристика Deal.Infrastructure.Integrations.Services.LocalColumnSuggester /// (Ruling 3): чистое ядро SuggestHeuristics в модуле Kanban (частотные слова-темы по source_msg /// «Неразобранного») + тонкий адаптер, читающий карточки через ICardStore и создающий доски /// suggested=true c note. На этапе 6 реализация заменяется gRPC-клиентом ai-service с тем же контрактом. diff --git a/src/core/Deal.Contracts/Integrations/IMlClient.cs b/src/core/Deal.Contracts/Integrations/IMlClient.cs index 499d8ee..d9765b1 100644 --- a/src/core/Deal.Contracts/Integrations/IMlClient.cs +++ b/src/core/Deal.Contracts/Integrations/IMlClient.cs @@ -7,7 +7,7 @@ namespace Deal.Contracts.Integrations; /// /// /// Порт объявлен в Contracts, потому что контракт потребляют несколько модулей и Api. На этапе 2 -/// реализация — детерминированная заглушка Deal.Infrastructure.Integrations.LocalMlClient +/// реализация — детерминированная заглушка Deal.Infrastructure.Integrations.Services.LocalMlClient /// (Ruling 5); на этапе 6 она заменяется gRPC-клиентом с тем же контрактом. Методы и record-DTO /// повторяют прототип 1:1: backend/app/services/ml_client.py (status/predict/reset/push) и /// mlservice/model.py (эталон полей status/predict). Обучение на действиях пользователя diff --git a/src/core/Deal.Infrastructure/Integrations/IMlTrainClient.cs b/src/core/Deal.Infrastructure/Integrations/Abstractions/IMlTrainClient.cs similarity index 85% rename from src/core/Deal.Infrastructure/Integrations/IMlTrainClient.cs rename to src/core/Deal.Infrastructure/Integrations/Abstractions/IMlTrainClient.cs index 3316288..3092080 100644 --- a/src/core/Deal.Infrastructure/Integrations/IMlTrainClient.cs +++ b/src/core/Deal.Infrastructure/Integrations/Abstractions/IMlTrainClient.cs @@ -1,6 +1,11 @@ using Deal.Modules.Kanban.Application.Models; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Abstractions; /// /// Порт отправки батча обучения в ml-service (RPC TrainBatch, ml.proto L52–55) — для MlOutboxFlushScheduler. diff --git a/src/core/Deal.Infrastructure/Integrations/AiUnavailableException.cs b/src/core/Deal.Infrastructure/Integrations/Exceptions/AiUnavailableException.cs similarity index 84% rename from src/core/Deal.Infrastructure/Integrations/AiUnavailableException.cs rename to src/core/Deal.Infrastructure/Integrations/Exceptions/AiUnavailableException.cs index 1d974f4..6a8fa40 100644 --- a/src/core/Deal.Infrastructure/Integrations/AiUnavailableException.cs +++ b/src/core/Deal.Infrastructure/Integrations/Exceptions/AiUnavailableException.cs @@ -1,4 +1,10 @@ -namespace Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; + +namespace Deal.Infrastructure.Integrations.Exceptions; /// /// Сбой вызова ИИ-сервиса (провайдер недоступен/не ответил корректно либо ответ без разбора) — diff --git a/src/core/Deal.Infrastructure/Integrations/RpcExceptionExtensions.cs b/src/core/Deal.Infrastructure/Integrations/Extensions/RpcExceptionExtensions.cs similarity index 73% rename from src/core/Deal.Infrastructure/Integrations/RpcExceptionExtensions.cs rename to src/core/Deal.Infrastructure/Integrations/Extensions/RpcExceptionExtensions.cs index 5d7da6b..c75799d 100644 --- a/src/core/Deal.Infrastructure/Integrations/RpcExceptionExtensions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Extensions/RpcExceptionExtensions.cs @@ -1,6 +1,11 @@ using Grpc.Core; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Extensions; /// /// Расширения классификации gRPC-исключений клиентов автономных сервисов. diff --git a/src/core/Deal.Infrastructure/Integrations/UriExtensions.cs b/src/core/Deal.Infrastructure/Integrations/Extensions/UriExtensions.cs similarity index 85% rename from src/core/Deal.Infrastructure/Integrations/UriExtensions.cs rename to src/core/Deal.Infrastructure/Integrations/Extensions/UriExtensions.cs index ff32ece..be622bb 100644 --- a/src/core/Deal.Infrastructure/Integrations/UriExtensions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Extensions/UriExtensions.cs @@ -1,7 +1,12 @@ using System.Net; using System.Net.Sockets; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Extensions; /// /// Расширения для SSRF-гейта интеграций (проверка приватности адреса). diff --git a/src/core/Deal.Infrastructure/Integrations/AiGrpcConnection.cs b/src/core/Deal.Infrastructure/Integrations/Models/AiGrpcConnection.cs similarity index 94% rename from src/core/Deal.Infrastructure/Integrations/AiGrpcConnection.cs rename to src/core/Deal.Infrastructure/Integrations/Models/AiGrpcConnection.cs index 2eed8a2..aea6960 100644 --- a/src/core/Deal.Infrastructure/Integrations/AiGrpcConnection.cs +++ b/src/core/Deal.Infrastructure/Integrations/Models/AiGrpcConnection.cs @@ -1,8 +1,13 @@ using Deal.Grpc.Ai; using Grpc.Core; using Grpc.Net.Client; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Models; /// /// Транспорт gRPC-клиентов ai-service: общий канал + обязательные metadata (Ruling 1, эталон diff --git a/src/core/Deal.Infrastructure/Integrations/MlGrpcConnection.cs b/src/core/Deal.Infrastructure/Integrations/Models/MlGrpcConnection.cs similarity index 94% rename from src/core/Deal.Infrastructure/Integrations/MlGrpcConnection.cs rename to src/core/Deal.Infrastructure/Integrations/Models/MlGrpcConnection.cs index 5619365..c694b9d 100644 --- a/src/core/Deal.Infrastructure/Integrations/MlGrpcConnection.cs +++ b/src/core/Deal.Infrastructure/Integrations/Models/MlGrpcConnection.cs @@ -1,8 +1,13 @@ using Deal.Grpc.Ml; using Grpc.Core; using Grpc.Net.Client; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Models; /// /// Транспорт gRPC-клиента ml-service: общий канал + обязательные metadata (Ruling 1). diff --git a/src/core/Deal.Infrastructure/Integrations/MtlsCertificates.cs b/src/core/Deal.Infrastructure/Integrations/Models/MtlsCertificates.cs similarity index 97% rename from src/core/Deal.Infrastructure/Integrations/MtlsCertificates.cs rename to src/core/Deal.Infrastructure/Integrations/Models/MtlsCertificates.cs index 32bd04e..2e3a7de 100644 --- a/src/core/Deal.Infrastructure/Integrations/MtlsCertificates.cs +++ b/src/core/Deal.Infrastructure/Integrations/Models/MtlsCertificates.cs @@ -1,8 +1,13 @@ using System.Net.Security; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Models; /// /// Загруженный набор сертификатов mTLS внутреннего gRPC (Ruling 6, план Task 13). diff --git a/src/core/Deal.Infrastructure/Integrations/ServiceHealthResult.cs b/src/core/Deal.Infrastructure/Integrations/Models/ServiceHealthResult.cs similarity index 79% rename from src/core/Deal.Infrastructure/Integrations/ServiceHealthResult.cs rename to src/core/Deal.Infrastructure/Integrations/Models/ServiceHealthResult.cs index fff070a..32f4508 100644 --- a/src/core/Deal.Infrastructure/Integrations/ServiceHealthResult.cs +++ b/src/core/Deal.Infrastructure/Integrations/Models/ServiceHealthResult.cs @@ -1,4 +1,10 @@ -namespace Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; + +namespace Deal.Infrastructure.Integrations.Models; /// /// Результат health-пробы grpc.health.v1 автономного сервиса (Task 10; формирует ). diff --git a/src/core/Deal.Infrastructure/Integrations/TelegramGrpcConnection.cs b/src/core/Deal.Infrastructure/Integrations/Models/TelegramGrpcConnection.cs similarity index 94% rename from src/core/Deal.Infrastructure/Integrations/TelegramGrpcConnection.cs rename to src/core/Deal.Infrastructure/Integrations/Models/TelegramGrpcConnection.cs index d415135..5c9c460 100644 --- a/src/core/Deal.Infrastructure/Integrations/TelegramGrpcConnection.cs +++ b/src/core/Deal.Infrastructure/Integrations/Models/TelegramGrpcConnection.cs @@ -1,8 +1,13 @@ using Deal.Grpc.Telegram; using Grpc.Core; using Grpc.Net.Client; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Models; /// /// Транспорт gRPC-клиента telegram-service: общий канал + обязательные metadata (Ruling 1, план Task 14). diff --git a/src/core/Deal.Infrastructure/Integrations/AiServiceOptions.cs b/src/core/Deal.Infrastructure/Integrations/Options/AiServiceOptions.cs similarity index 84% rename from src/core/Deal.Infrastructure/Integrations/AiServiceOptions.cs rename to src/core/Deal.Infrastructure/Integrations/Options/AiServiceOptions.cs index 4f4f838..3366305 100644 --- a/src/core/Deal.Infrastructure/Integrations/AiServiceOptions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Options/AiServiceOptions.cs @@ -1,4 +1,10 @@ -namespace Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Services; + +namespace Deal.Infrastructure.Integrations.Options; /// /// Конфигурация клиента AI-сервиса — секция Services:Ai (Ruling 6, план Task 15). diff --git a/src/core/Deal.Infrastructure/Integrations/MlServiceOptions.cs b/src/core/Deal.Infrastructure/Integrations/Options/MlServiceOptions.cs similarity index 83% rename from src/core/Deal.Infrastructure/Integrations/MlServiceOptions.cs rename to src/core/Deal.Infrastructure/Integrations/Options/MlServiceOptions.cs index bc56524..afc1382 100644 --- a/src/core/Deal.Infrastructure/Integrations/MlServiceOptions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Options/MlServiceOptions.cs @@ -1,4 +1,10 @@ -namespace Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Services; + +namespace Deal.Infrastructure.Integrations.Options; /// /// Конфигурация клиента ML-сервиса — секция Services:Ml (Ruling 6, план Task 16). diff --git a/src/core/Deal.Infrastructure/Integrations/MtlsOptions.cs b/src/core/Deal.Infrastructure/Integrations/Options/MtlsOptions.cs similarity index 94% rename from src/core/Deal.Infrastructure/Integrations/MtlsOptions.cs rename to src/core/Deal.Infrastructure/Integrations/Options/MtlsOptions.cs index 8da9635..f10710e 100644 --- a/src/core/Deal.Infrastructure/Integrations/MtlsOptions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Options/MtlsOptions.cs @@ -1,6 +1,11 @@ using Microsoft.Extensions.Configuration; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Services; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Options; /// /// Конфигурация mTLS-транспорта внутреннего gRPC (Ruling 6, план Task 13). diff --git a/src/core/Deal.Infrastructure/Integrations/TelegramServiceOptions.cs b/src/core/Deal.Infrastructure/Integrations/Options/TelegramServiceOptions.cs similarity index 84% rename from src/core/Deal.Infrastructure/Integrations/TelegramServiceOptions.cs rename to src/core/Deal.Infrastructure/Integrations/Options/TelegramServiceOptions.cs index b68daed..635a2f2 100644 --- a/src/core/Deal.Infrastructure/Integrations/TelegramServiceOptions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Options/TelegramServiceOptions.cs @@ -1,4 +1,10 @@ -namespace Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Services; + +namespace Deal.Infrastructure.Integrations.Options; /// /// Конфигурация клиента telegram-service — секция Services:Telegram (Ruling 6, план Task 14). diff --git a/src/core/Deal.Infrastructure/Integrations/AiConnectionChecker.cs b/src/core/Deal.Infrastructure/Integrations/Services/AiConnectionChecker.cs similarity index 97% rename from src/core/Deal.Infrastructure/Integrations/AiConnectionChecker.cs rename to src/core/Deal.Infrastructure/Integrations/Services/AiConnectionChecker.cs index dc48169..bddba0e 100644 --- a/src/core/Deal.Infrastructure/Integrations/AiConnectionChecker.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/AiConnectionChecker.cs @@ -4,8 +4,13 @@ using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// HTTP-реализация проверки подключения к AI-провайдеру (Ruling 7; 1:1 settings_routes.py L195–219). diff --git a/src/core/Deal.Infrastructure/Integrations/AiProviderConfigBuilder.cs b/src/core/Deal.Infrastructure/Integrations/Services/AiProviderConfigBuilder.cs similarity index 96% rename from src/core/Deal.Infrastructure/Integrations/AiProviderConfigBuilder.cs rename to src/core/Deal.Infrastructure/Integrations/Services/AiProviderConfigBuilder.cs index dcd2e42..b5c0480 100644 --- a/src/core/Deal.Infrastructure/Integrations/AiProviderConfigBuilder.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/AiProviderConfigBuilder.cs @@ -4,8 +4,13 @@ using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Собирает конфиг активного ИИ-провайдера для запросов ai-service (Ruling 5: ядро расшифровывает diff --git a/src/core/Deal.Infrastructure/Integrations/BudgetedAiClassifier.cs b/src/core/Deal.Infrastructure/Integrations/Services/BudgetedAiClassifier.cs similarity index 96% rename from src/core/Deal.Infrastructure/Integrations/BudgetedAiClassifier.cs rename to src/core/Deal.Infrastructure/Integrations/Services/BudgetedAiClassifier.cs index 1898b88..5dc10fc 100644 --- a/src/core/Deal.Infrastructure/Integrations/BudgetedAiClassifier.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/BudgetedAiClassifier.cs @@ -7,8 +7,13 @@ using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; using Microsoft.Extensions.Logging; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Декоратор бюджетного гейта порта (Ruling 3, Task 9): поверх «платного» diff --git a/src/core/Deal.Infrastructure/Integrations/BudgetedAiTools.cs b/src/core/Deal.Infrastructure/Integrations/Services/BudgetedAiTools.cs similarity index 96% rename from src/core/Deal.Infrastructure/Integrations/BudgetedAiTools.cs rename to src/core/Deal.Infrastructure/Integrations/Services/BudgetedAiTools.cs index 4ed6e6c..097fd6a 100644 --- a/src/core/Deal.Infrastructure/Integrations/BudgetedAiTools.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/BudgetedAiTools.cs @@ -7,8 +7,13 @@ using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; using Microsoft.Extensions.Logging; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Декоратор бюджетного гейта порта (Ruling 3, Task 9): поверх «платного» diff --git a/src/core/Deal.Infrastructure/Integrations/CbrRateSource.cs b/src/core/Deal.Infrastructure/Integrations/Services/CbrRateSource.cs similarity index 96% rename from src/core/Deal.Infrastructure/Integrations/CbrRateSource.cs rename to src/core/Deal.Infrastructure/Integrations/Services/CbrRateSource.cs index c35db28..2a0249d 100644 --- a/src/core/Deal.Infrastructure/Integrations/CbrRateSource.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/CbrRateSource.cs @@ -5,8 +5,13 @@ using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; using Microsoft.Extensions.Logging; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// HTTP-источник курсов ЦБ РФ: GET daily_json.js (Ruling 6, Task 8; 1:1 rates.py L43–59). diff --git a/src/core/Deal.Infrastructure/Integrations/GrpcAiClassifier.cs b/src/core/Deal.Infrastructure/Integrations/Services/GrpcAiClassifier.cs similarity index 97% rename from src/core/Deal.Infrastructure/Integrations/GrpcAiClassifier.cs rename to src/core/Deal.Infrastructure/Integrations/Services/GrpcAiClassifier.cs index 453be72..9e9953f 100644 --- a/src/core/Deal.Infrastructure/Integrations/GrpcAiClassifier.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/GrpcAiClassifier.cs @@ -8,8 +8,13 @@ using Deal.Modules.Pipeline.Application.Services; using Deal.SharedKernel.Tenants; using Grpc.Core; using Microsoft.Extensions.Logging; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// gRPC-адаптер порта к автономному ai-service (Ruling 5/6, план Task 15 diff --git a/src/core/Deal.Infrastructure/Integrations/GrpcAiTools.cs b/src/core/Deal.Infrastructure/Integrations/Services/GrpcAiTools.cs similarity index 97% rename from src/core/Deal.Infrastructure/Integrations/GrpcAiTools.cs rename to src/core/Deal.Infrastructure/Integrations/Services/GrpcAiTools.cs index d6d086c..21d4725 100644 --- a/src/core/Deal.Infrastructure/Integrations/GrpcAiTools.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/GrpcAiTools.cs @@ -4,8 +4,13 @@ using Deal.Grpc.Ai; using Deal.SharedKernel.Tenants; using Grpc.Core; using Microsoft.Extensions.Logging; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// gRPC-адаптер порта к автономному ai-service (Ruling 9, план Task 15/18/19). diff --git a/src/core/Deal.Infrastructure/Integrations/GrpcMlClient.cs b/src/core/Deal.Infrastructure/Integrations/Services/GrpcMlClient.cs similarity index 98% rename from src/core/Deal.Infrastructure/Integrations/GrpcMlClient.cs rename to src/core/Deal.Infrastructure/Integrations/Services/GrpcMlClient.cs index c186914..b7a508e 100644 --- a/src/core/Deal.Infrastructure/Integrations/GrpcMlClient.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/GrpcMlClient.cs @@ -19,8 +19,13 @@ using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Tenants; using Grpc.Core; using Microsoft.Extensions.Logging; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// gRPC-адаптер порта IMlClient к автономному ml-service (Ruling 4/6, план Task 16 L438–445). diff --git a/src/core/Deal.Infrastructure/Integrations/GrpcTelegramClient.cs b/src/core/Deal.Infrastructure/Integrations/Services/GrpcTelegramClient.cs similarity index 98% rename from src/core/Deal.Infrastructure/Integrations/GrpcTelegramClient.cs rename to src/core/Deal.Infrastructure/Integrations/Services/GrpcTelegramClient.cs index afe7352..0472b19 100644 --- a/src/core/Deal.Infrastructure/Integrations/GrpcTelegramClient.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/GrpcTelegramClient.cs @@ -4,8 +4,13 @@ using Deal.Grpc.Telegram; using Deal.SharedKernel.Tenants; using Grpc.Core; using Microsoft.Extensions.Logging; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// gRPC-адаптер порта к автономному telegram-service (Ruling 6/7, план Task 14). diff --git a/src/core/Deal.Infrastructure/Integrations/LocalAiClassifier.cs b/src/core/Deal.Infrastructure/Integrations/Services/LocalAiClassifier.cs similarity index 92% rename from src/core/Deal.Infrastructure/Integrations/LocalAiClassifier.cs rename to src/core/Deal.Infrastructure/Integrations/Services/LocalAiClassifier.cs index 5a3abeb..980bb74 100644 --- a/src/core/Deal.Infrastructure/Integrations/LocalAiClassifier.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/LocalAiClassifier.cs @@ -5,8 +5,13 @@ using Deal.Modules.Pipeline.Application.Models; using Deal.Modules.Pipeline.Application.Registrars; using Deal.Modules.Pipeline.Application.Services; using Deal.Modules.Pipeline.Application.Parse; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Локальная реализация без внешнего ИИ-сервиса (Ruling 5, план Task 6 L370–388). diff --git a/src/core/Deal.Infrastructure/Integrations/LocalAiTools.cs b/src/core/Deal.Infrastructure/Integrations/Services/LocalAiTools.cs similarity index 87% rename from src/core/Deal.Infrastructure/Integrations/LocalAiTools.cs rename to src/core/Deal.Infrastructure/Integrations/Services/LocalAiTools.cs index b3d008e..6bddb91 100644 --- a/src/core/Deal.Infrastructure/Integrations/LocalAiTools.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/LocalAiTools.cs @@ -1,7 +1,12 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Локальная реализация без внешнего ИИ-сервиса (Ruling 9, план Task 15). diff --git a/src/core/Deal.Infrastructure/Integrations/LocalColumnSuggester.cs b/src/core/Deal.Infrastructure/Integrations/Services/LocalColumnSuggester.cs similarity index 97% rename from src/core/Deal.Infrastructure/Integrations/LocalColumnSuggester.cs rename to src/core/Deal.Infrastructure/Integrations/Services/LocalColumnSuggester.cs index 84cae4f..5040b0b 100644 --- a/src/core/Deal.Infrastructure/Integrations/LocalColumnSuggester.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/LocalColumnSuggester.cs @@ -17,8 +17,13 @@ using Deal.Modules.Settings.Application.Services; // Алиас: статический класс ColumnRules лежит в одноимённом пространстве имён (см. CardsService) — // внутри Deal.Modules.Kanban.Application имя ColumnRules резолвится в пространство. using KanbanColumnRules = Deal.Modules.Kanban.Application.ColumnRules.ColumnRules; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Адаптер ИИ-предложений колонок/ключей — детерминированная эвристика этапа 3 (Ruling 3, план Task 14). diff --git a/src/core/Deal.Infrastructure/Integrations/LocalMlClient.cs b/src/core/Deal.Infrastructure/Integrations/Services/LocalMlClient.cs similarity index 96% rename from src/core/Deal.Infrastructure/Integrations/LocalMlClient.cs rename to src/core/Deal.Infrastructure/Integrations/Services/LocalMlClient.cs index 85ff5e1..8e3a1b1 100644 --- a/src/core/Deal.Infrastructure/Integrations/LocalMlClient.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/LocalMlClient.cs @@ -10,8 +10,13 @@ using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Локальная реализация без внешнего ML-сервиса (Ruling 4, план Task 5 L266–286). diff --git a/src/core/Deal.Infrastructure/Integrations/LocalTelegramGateway.cs b/src/core/Deal.Infrastructure/Integrations/Services/LocalTelegramGateway.cs similarity index 93% rename from src/core/Deal.Infrastructure/Integrations/LocalTelegramGateway.cs rename to src/core/Deal.Infrastructure/Integrations/Services/LocalTelegramGateway.cs index 7d1d125..4b54194 100644 --- a/src/core/Deal.Infrastructure/Integrations/LocalTelegramGateway.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/LocalTelegramGateway.cs @@ -1,7 +1,12 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Локальная заглушка без telegram-service (Ruling 6, план Task 13/14). diff --git a/src/core/Deal.Infrastructure/Integrations/MlOutboxQueue.cs b/src/core/Deal.Infrastructure/Integrations/Services/MlOutboxQueue.cs similarity index 93% rename from src/core/Deal.Infrastructure/Integrations/MlOutboxQueue.cs rename to src/core/Deal.Infrastructure/Integrations/Services/MlOutboxQueue.cs index 97f86a3..383a334 100644 --- a/src/core/Deal.Infrastructure/Integrations/MlOutboxQueue.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/MlOutboxQueue.cs @@ -4,8 +4,13 @@ using Deal.Modules.Kanban.Application.Extensions; using Deal.Modules.Kanban.Application.Models; using Deal.Modules.Kanban.Application.Registrars; using Deal.Modules.Kanban.Application.Services; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; // Общая запись обучающего сигнала в очередь MlOutbox (ml_client.push L40–49) для адаптеров IMlClient. // Поведение 1:1 с прототипом и с LocalMlClient.PushAsync этапа 3: пустые после trim text/label — diff --git a/src/core/Deal.Infrastructure/Integrations/MlStatusCache.cs b/src/core/Deal.Infrastructure/Integrations/Services/MlStatusCache.cs similarity index 94% rename from src/core/Deal.Infrastructure/Integrations/MlStatusCache.cs rename to src/core/Deal.Infrastructure/Integrations/Services/MlStatusCache.cs index 748524c..82a45a9 100644 --- a/src/core/Deal.Infrastructure/Integrations/MlStatusCache.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/MlStatusCache.cs @@ -1,7 +1,12 @@ using System.Collections.Concurrent; using Deal.Contracts.Integrations.Models; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Кэш статуса ML-сервиса на тенанта (python ml_client L30–31 + refresh_status L127–135; Ruling 6). diff --git a/src/core/Deal.Infrastructure/Integrations/ServiceHealthProbe.cs b/src/core/Deal.Infrastructure/Integrations/Services/ServiceHealthProbe.cs similarity index 93% rename from src/core/Deal.Infrastructure/Integrations/ServiceHealthProbe.cs rename to src/core/Deal.Infrastructure/Integrations/Services/ServiceHealthProbe.cs index b387ab2..ae3817a 100644 --- a/src/core/Deal.Infrastructure/Integrations/ServiceHealthProbe.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/ServiceHealthProbe.cs @@ -1,8 +1,13 @@ using Grpc.Core; using Grpc.Health.V1; using Grpc.Net.Client; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Health-проба grpc.health.v1 автономных сервисов (ml/ai/telegram) для операторского health diff --git a/src/core/Deal.Infrastructure/Integrations/TokenUsageRecorder.cs b/src/core/Deal.Infrastructure/Integrations/Services/TokenUsageRecorder.cs similarity index 97% rename from src/core/Deal.Infrastructure/Integrations/TokenUsageRecorder.cs rename to src/core/Deal.Infrastructure/Integrations/Services/TokenUsageRecorder.cs index 9a0ee63..909ca22 100644 --- a/src/core/Deal.Infrastructure/Integrations/TokenUsageRecorder.cs +++ b/src/core/Deal.Infrastructure/Integrations/Services/TokenUsageRecorder.cs @@ -12,8 +12,13 @@ using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Deal.SharedKernel.Observability; using Deal.SharedKernel.Tenants; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; -namespace Deal.Infrastructure.Integrations; +namespace Deal.Infrastructure.Integrations.Services; /// /// Recorder расхода токенов (Ruling 3 этапа 7; история — этап 10, T2): успешный RPC ai-service diff --git a/src/core/Deal.Infrastructure/Integrations/Storage/MinioStorageOptionsExtensions.cs b/src/core/Deal.Infrastructure/Integrations/Storage/Extensions/MinioStorageOptionsExtensions.cs similarity index 81% rename from src/core/Deal.Infrastructure/Integrations/Storage/MinioStorageOptionsExtensions.cs rename to src/core/Deal.Infrastructure/Integrations/Storage/Extensions/MinioStorageOptionsExtensions.cs index bc6702f..a417ece 100644 --- a/src/core/Deal.Infrastructure/Integrations/Storage/MinioStorageOptionsExtensions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Storage/Extensions/MinioStorageOptionsExtensions.cs @@ -1,4 +1,7 @@ -namespace Deal.Infrastructure.Integrations.Storage; +using Deal.Infrastructure.Integrations.Storage.Options; +using Deal.Infrastructure.Integrations.Storage.Services; + +namespace Deal.Infrastructure.Integrations.Storage.Extensions; /// /// Расширения (выбор MinIO-адаптера по заполненности секции). diff --git a/src/core/Deal.Infrastructure/Integrations/Storage/StringExtensions.cs b/src/core/Deal.Infrastructure/Integrations/Storage/Extensions/StringExtensions.cs similarity index 79% rename from src/core/Deal.Infrastructure/Integrations/Storage/StringExtensions.cs rename to src/core/Deal.Infrastructure/Integrations/Storage/Extensions/StringExtensions.cs index e5ab3cd..93382dd 100644 --- a/src/core/Deal.Infrastructure/Integrations/Storage/StringExtensions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Storage/Extensions/StringExtensions.cs @@ -1,4 +1,7 @@ -namespace Deal.Infrastructure.Integrations.Storage; +using Deal.Infrastructure.Integrations.Storage.Options; +using Deal.Infrastructure.Integrations.Storage.Services; + +namespace Deal.Infrastructure.Integrations.Storage.Extensions; /// /// Расширения для разбора конфигурационных значений. diff --git a/src/core/Deal.Infrastructure/Integrations/Storage/LocalStorageOptions.cs b/src/core/Deal.Infrastructure/Integrations/Storage/Options/LocalStorageOptions.cs similarity index 85% rename from src/core/Deal.Infrastructure/Integrations/Storage/LocalStorageOptions.cs rename to src/core/Deal.Infrastructure/Integrations/Storage/Options/LocalStorageOptions.cs index c2cda2d..610ac54 100644 --- a/src/core/Deal.Infrastructure/Integrations/Storage/LocalStorageOptions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Storage/Options/LocalStorageOptions.cs @@ -1,4 +1,7 @@ -namespace Deal.Infrastructure.Integrations.Storage; +using Deal.Infrastructure.Integrations.Storage.Extensions; +using Deal.Infrastructure.Integrations.Storage.Services; + +namespace Deal.Infrastructure.Integrations.Storage.Options; /// /// Локальный режим файлового хранилища — секция Storage:Local (Ruling 4, Task 6). diff --git a/src/core/Deal.Infrastructure/Integrations/Storage/MinioStorageOptions.cs b/src/core/Deal.Infrastructure/Integrations/Storage/Options/MinioStorageOptions.cs similarity index 93% rename from src/core/Deal.Infrastructure/Integrations/Storage/MinioStorageOptions.cs rename to src/core/Deal.Infrastructure/Integrations/Storage/Options/MinioStorageOptions.cs index 148374c..8854a32 100644 --- a/src/core/Deal.Infrastructure/Integrations/Storage/MinioStorageOptions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Storage/Options/MinioStorageOptions.cs @@ -1,4 +1,7 @@ -namespace Deal.Infrastructure.Integrations.Storage; +using Deal.Infrastructure.Integrations.Storage.Extensions; +using Deal.Infrastructure.Integrations.Storage.Services; + +namespace Deal.Infrastructure.Integrations.Storage.Options; /// /// MinIO-режим файлового хранилища — секция Storage:Minio (Ruling 4, Task 6). diff --git a/src/core/Deal.Infrastructure/Integrations/Storage/StorageOptions.cs b/src/core/Deal.Infrastructure/Integrations/Storage/Options/StorageOptions.cs similarity index 88% rename from src/core/Deal.Infrastructure/Integrations/Storage/StorageOptions.cs rename to src/core/Deal.Infrastructure/Integrations/Storage/Options/StorageOptions.cs index 54d26dd..94ea31e 100644 --- a/src/core/Deal.Infrastructure/Integrations/Storage/StorageOptions.cs +++ b/src/core/Deal.Infrastructure/Integrations/Storage/Options/StorageOptions.cs @@ -1,4 +1,7 @@ -namespace Deal.Infrastructure.Integrations.Storage; +using Deal.Infrastructure.Integrations.Storage.Extensions; +using Deal.Infrastructure.Integrations.Storage.Services; + +namespace Deal.Infrastructure.Integrations.Storage.Options; /// /// Настройки файлового хранилища — секция Storage конфигурации (Ruling 4, Task 6). diff --git a/src/core/Deal.Infrastructure/Integrations/Storage/FileStorageRegistrar.cs b/src/core/Deal.Infrastructure/Integrations/Storage/Services/FileStorageRegistrar.cs similarity index 98% rename from src/core/Deal.Infrastructure/Integrations/Storage/FileStorageRegistrar.cs rename to src/core/Deal.Infrastructure/Integrations/Storage/Services/FileStorageRegistrar.cs index a28e4d8..131d29d 100644 --- a/src/core/Deal.Infrastructure/Integrations/Storage/FileStorageRegistrar.cs +++ b/src/core/Deal.Infrastructure/Integrations/Storage/Services/FileStorageRegistrar.cs @@ -2,8 +2,10 @@ using Deal.Contracts.Integrations; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; +using Deal.Infrastructure.Integrations.Storage.Extensions; +using Deal.Infrastructure.Integrations.Storage.Options; -namespace Deal.Infrastructure.Integrations.Storage; +namespace Deal.Infrastructure.Integrations.Storage.Services; /// /// DI-регистрация файлового хранилища: выбор Local/MinIO по конфигурации (Ruling 4, Task 6). diff --git a/src/core/Deal.Infrastructure/Integrations/Storage/LocalFileStorage.cs b/src/core/Deal.Infrastructure/Integrations/Storage/Services/LocalFileStorage.cs similarity index 97% rename from src/core/Deal.Infrastructure/Integrations/Storage/LocalFileStorage.cs rename to src/core/Deal.Infrastructure/Integrations/Storage/Services/LocalFileStorage.cs index 05d13b4..f816221 100644 --- a/src/core/Deal.Infrastructure/Integrations/Storage/LocalFileStorage.cs +++ b/src/core/Deal.Infrastructure/Integrations/Storage/Services/LocalFileStorage.cs @@ -1,7 +1,9 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; +using Deal.Infrastructure.Integrations.Storage.Extensions; +using Deal.Infrastructure.Integrations.Storage.Options; -namespace Deal.Infrastructure.Integrations.Storage; +namespace Deal.Infrastructure.Integrations.Storage.Services; /// /// Локальное файловое хранилище вложений — каталог на диске (Ruling 4, Task 6; 1:1 object_store.py L54–79). diff --git a/src/core/Deal.Infrastructure/Integrations/Storage/MinioFileStorage.cs b/src/core/Deal.Infrastructure/Integrations/Storage/Services/MinioFileStorage.cs similarity index 98% rename from src/core/Deal.Infrastructure/Integrations/Storage/MinioFileStorage.cs rename to src/core/Deal.Infrastructure/Integrations/Storage/Services/MinioFileStorage.cs index f34e8e9..47a6789 100644 --- a/src/core/Deal.Infrastructure/Integrations/Storage/MinioFileStorage.cs +++ b/src/core/Deal.Infrastructure/Integrations/Storage/Services/MinioFileStorage.cs @@ -5,8 +5,10 @@ using Minio; using Minio.DataModel; using Minio.DataModel.Args; using Minio.Exceptions; +using Deal.Infrastructure.Integrations.Storage.Extensions; +using Deal.Infrastructure.Integrations.Storage.Options; -namespace Deal.Infrastructure.Integrations.Storage; +namespace Deal.Infrastructure.Integrations.Storage.Services; /// /// Хранилище вложений на MinIO (S3-совместимое) — Minio .NET SDK (Ruling 4, Task 6; 1:1 object_store.py L26–107). diff --git a/src/core/Deal.Infrastructure/Migrations/20260905192825_InitialSystem.Designer.cs b/src/core/Deal.Infrastructure/Migrations/20260905192825_InitialSystem.Designer.cs index 8d7470c..ad08bdc 100644 --- a/src/core/Deal.Infrastructure/Migrations/20260905192825_InitialSystem.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/20260905192825_InitialSystem.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/20260907181413_SystemSaaS.Designer.cs b/src/core/Deal.Infrastructure/Migrations/20260907181413_SystemSaaS.Designer.cs index b9997e4..7a1dee8 100644 --- a/src/core/Deal.Infrastructure/Migrations/20260907181413_SystemSaaS.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/20260907181413_SystemSaaS.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/20260907192419_SessionsImpersonationMark.Designer.cs b/src/core/Deal.Infrastructure/Migrations/20260907192419_SessionsImpersonationMark.Designer.cs index 8c0229b..2da4f52 100644 --- a/src/core/Deal.Infrastructure/Migrations/20260907192419_SessionsImpersonationMark.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/20260907192419_SessionsImpersonationMark.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/20260910152246_AddTokenUsageEvents.Designer.cs b/src/core/Deal.Infrastructure/Migrations/20260910152246_AddTokenUsageEvents.Designer.cs index d833103..23564a5 100644 --- a/src/core/Deal.Infrastructure/Migrations/20260910152246_AddTokenUsageEvents.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/20260910152246_AddTokenUsageEvents.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/20260910172545_RateLimitCounters.Designer.cs b/src/core/Deal.Infrastructure/Migrations/20260910172545_RateLimitCounters.Designer.cs index ccc64b4..eb77b95 100644 --- a/src/core/Deal.Infrastructure/Migrations/20260910172545_RateLimitCounters.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/20260910172545_RateLimitCounters.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/20260910194443_GlobalSettings.Designer.cs b/src/core/Deal.Infrastructure/Migrations/20260910194443_GlobalSettings.Designer.cs index ebe5d03..80c4dda 100644 --- a/src/core/Deal.Infrastructure/Migrations/20260910194443_GlobalSettings.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/20260910194443_GlobalSettings.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/DealDbContextModelSnapshot.cs b/src/core/Deal.Infrastructure/Migrations/DealDbContextModelSnapshot.cs index 5c095ed..cf7d7fc 100644 --- a/src/core/Deal.Infrastructure/Migrations/DealDbContextModelSnapshot.cs +++ b/src/core/Deal.Infrastructure/Migrations/DealDbContextModelSnapshot.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260905193010_InitialTenant.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260905193010_InitialTenant.Designer.cs index 0aa52b7..9065fa7 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260905193010_InitialTenant.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260905193010_InitialTenant.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906125058_TenantKanban.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906125058_TenantKanban.Designer.cs index 979ba09..50d197d 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906125058_TenantKanban.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906125058_TenantKanban.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906165058_TenantPipeline.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906165058_TenantPipeline.Designer.cs index a539c2b..7b9a417 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906165058_TenantPipeline.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906165058_TenantPipeline.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906200342_TenantProjects.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906200342_TenantProjects.Designer.cs index 813f9f3..059c001 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906200342_TenantProjects.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260906200342_TenantProjects.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260907141242_TenantTelegram.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260907141242_TenantTelegram.Designer.cs index 994372b..3a9738a 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260907141242_TenantTelegram.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260907141242_TenantTelegram.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260907155333_TenantDiscovery.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260907155333_TenantDiscovery.Designer.cs index 1f12124..3fd8b4f 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260907155333_TenantDiscovery.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260907155333_TenantDiscovery.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260909222322_TenantContainers.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260909222322_TenantContainers.Designer.cs index 40ebff3..eea1b76 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260909222322_TenantContainers.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260909222322_TenantContainers.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910132805_TenantUnifiedCard.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910132805_TenantUnifiedCard.Designer.cs index 7acf04d..92cb847 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910132805_TenantUnifiedCard.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910132805_TenantUnifiedCard.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910134104_TenantContainerRegistry.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910134104_TenantContainerRegistry.Designer.cs index 817dbaf..f60ac51 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910134104_TenantContainerRegistry.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910134104_TenantContainerRegistry.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910134358_TenantContainerCleanup.Designer.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910134358_TenantContainerCleanup.Designer.cs index 4f93672..239ccc4 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910134358_TenantContainerCleanup.Designer.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/20260910134358_TenantContainerCleanup.Designer.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/core/Deal.Infrastructure/Migrations/TenantDb/TenantDbContextModelSnapshot.cs b/src/core/Deal.Infrastructure/Migrations/TenantDb/TenantDbContextModelSnapshot.cs index 1d367bb..9984b30 100644 --- a/src/core/Deal.Infrastructure/Migrations/TenantDb/TenantDbContextModelSnapshot.cs +++ b/src/core/Deal.Infrastructure/Migrations/TenantDb/TenantDbContextModelSnapshot.cs @@ -1,6 +1,7 @@ // using System; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; diff --git a/src/core/Deal.Infrastructure/Persistence/AuditLogConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/AuditLogConfiguration.cs similarity index 85% rename from src/core/Deal.Infrastructure/Persistence/AuditLogConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/AuditLogConfiguration.cs index 2d2f241..6b6b7d9 100644 --- a/src/core/Deal.Infrastructure/Persistence/AuditLogConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/AuditLogConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация записи аудита: таблица audit_log в схеме public (append-only). diff --git a/src/core/Deal.Infrastructure/Persistence/CardConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/CardConfiguration.cs similarity index 94% rename from src/core/Deal.Infrastructure/Persistence/CardConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/CardConfiguration.cs index e792b37..98e7083 100644 --- a/src/core/Deal.Infrastructure/Persistence/CardConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/CardConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация карточки канбана: таблица Cards (модель без схемы). diff --git a/src/core/Deal.Infrastructure/Persistence/CardMoveConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/CardMoveConfiguration.cs similarity index 83% rename from src/core/Deal.Infrastructure/Persistence/CardMoveConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/CardMoveConfiguration.cs index 28a600a..70d3e75 100644 --- a/src/core/Deal.Infrastructure/Persistence/CardMoveConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/CardMoveConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация журнала действий над карточками: таблица CardMoves (модель без схемы). diff --git a/src/core/Deal.Infrastructure/Persistence/ContainerConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/ContainerConfiguration.cs similarity index 93% rename from src/core/Deal.Infrastructure/Persistence/ContainerConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/ContainerConfiguration.cs index 5c4fc2f..0d2cc82 100644 --- a/src/core/Deal.Infrastructure/Persistence/ContainerConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/ContainerConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация единого контейнера: таблица Containers (модель без схемы). diff --git a/src/core/Deal.Infrastructure/Persistence/DedupEntryConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/DedupEntryConfiguration.cs similarity index 85% rename from src/core/Deal.Infrastructure/Persistence/DedupEntryConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/DedupEntryConfiguration.cs index 89e97fb..f07b928 100644 --- a/src/core/Deal.Infrastructure/Persistence/DedupEntryConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/DedupEntryConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация дедуп-хэшей пайплайна: таблица DedupEntries (модель без схемы). diff --git a/src/core/Deal.Infrastructure/Persistence/DialogConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/DialogConfiguration.cs similarity index 85% rename from src/core/Deal.Infrastructure/Persistence/DialogConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/DialogConfiguration.cs index 9b6862d..0406152 100644 --- a/src/core/Deal.Infrastructure/Persistence/DialogConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/DialogConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация каталога диалогов: таблица Dialogs (модель без схемы; Ruling 7). diff --git a/src/core/Deal.Infrastructure/Persistence/DiscBlacklistConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/DiscBlacklistConfiguration.cs similarity index 87% rename from src/core/Deal.Infrastructure/Persistence/DiscBlacklistConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/DiscBlacklistConfiguration.cs index 717d4e1..c7c0795 100644 --- a/src/core/Deal.Infrastructure/Persistence/DiscBlacklistConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/DiscBlacklistConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация чёрного списка Discovery: таблица DiscBlacklist (модель без схемы; Ruling 9). diff --git a/src/core/Deal.Infrastructure/Persistence/DiscCandidateConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/DiscCandidateConfiguration.cs similarity index 89% rename from src/core/Deal.Infrastructure/Persistence/DiscCandidateConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/DiscCandidateConfiguration.cs index 8b20766..1e5dc09 100644 --- a/src/core/Deal.Infrastructure/Persistence/DiscCandidateConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/DiscCandidateConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация кандидата Discovery: таблица DiscCandidates (модель без схемы; Ruling 9). diff --git a/src/core/Deal.Infrastructure/Persistence/DiscLogConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/DiscLogConfiguration.cs similarity index 85% rename from src/core/Deal.Infrastructure/Persistence/DiscLogConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/DiscLogConfiguration.cs index bd270b5..2ce5f28 100644 --- a/src/core/Deal.Infrastructure/Persistence/DiscLogConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/DiscLogConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация лога Discovery: таблица DiscLog (модель без схемы; Ruling 9). diff --git a/src/core/Deal.Infrastructure/Persistence/DiscTaskConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/DiscTaskConfiguration.cs similarity index 86% rename from src/core/Deal.Infrastructure/Persistence/DiscTaskConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/DiscTaskConfiguration.cs index cb8cc95..e95e352 100644 --- a/src/core/Deal.Infrastructure/Persistence/DiscTaskConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/DiscTaskConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация задачи поиска Discovery: таблица DiscTasks (модель без схемы; Ruling 9). diff --git a/src/core/Deal.Infrastructure/Persistence/GlobalSettingConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/GlobalSettingConfiguration.cs similarity index 83% rename from src/core/Deal.Infrastructure/Persistence/GlobalSettingConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/GlobalSettingConfiguration.cs index 4480bd0..29237b7 100644 --- a/src/core/Deal.Infrastructure/Persistence/GlobalSettingConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/GlobalSettingConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация глобальной (системной) настройки оператора: таблица global_settings diff --git a/src/core/Deal.Infrastructure/Persistence/InviteConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/InviteConfiguration.cs similarity index 90% rename from src/core/Deal.Infrastructure/Persistence/InviteConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/InviteConfiguration.cs index 75cb76a..938c03d 100644 --- a/src/core/Deal.Infrastructure/Persistence/InviteConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/InviteConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация приглашения: таблица invites в схеме public. diff --git a/src/core/Deal.Infrastructure/Persistence/LeadCommentConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/LeadCommentConfiguration.cs similarity index 86% rename from src/core/Deal.Infrastructure/Persistence/LeadCommentConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/LeadCommentConfiguration.cs index ade3304..18e9cfc 100644 --- a/src/core/Deal.Infrastructure/Persistence/LeadCommentConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/LeadCommentConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация комментария карточки: таблица LeadComments (модель без схемы). diff --git a/src/core/Deal.Infrastructure/Persistence/MlOutboxConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/MlOutboxConfiguration.cs similarity index 85% rename from src/core/Deal.Infrastructure/Persistence/MlOutboxConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/MlOutboxConfiguration.cs index b03b46d..552b072 100644 --- a/src/core/Deal.Infrastructure/Persistence/MlOutboxConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/MlOutboxConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация очереди обучающих сигналов ML: таблица MlOutbox (модель без схемы). diff --git a/src/core/Deal.Infrastructure/Persistence/OperatorConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/OperatorConfiguration.cs similarity index 85% rename from src/core/Deal.Infrastructure/Persistence/OperatorConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/OperatorConfiguration.cs index aed12ea..e633fd3 100644 --- a/src/core/Deal.Infrastructure/Persistence/OperatorConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/OperatorConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация оператора: таблица operators в схеме public. diff --git a/src/core/Deal.Infrastructure/Persistence/OperatorSessionConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/OperatorSessionConfiguration.cs similarity index 88% rename from src/core/Deal.Infrastructure/Persistence/OperatorSessionConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/OperatorSessionConfiguration.cs index 50667a3..ab1422c 100644 --- a/src/core/Deal.Infrastructure/Persistence/OperatorSessionConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/OperatorSessionConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация сессии оператора: таблица operator_sessions в схеме public. diff --git a/src/core/Deal.Infrastructure/Persistence/QueueItemConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/QueueItemConfiguration.cs similarity index 88% rename from src/core/Deal.Infrastructure/Persistence/QueueItemConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/QueueItemConfiguration.cs index d5d3ca5..aaed102 100644 --- a/src/core/Deal.Infrastructure/Persistence/QueueItemConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/QueueItemConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация очереди входящих пайплайна: таблица QueueItems (модель без схемы). diff --git a/src/core/Deal.Infrastructure/Persistence/RateLimitCounterConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/RateLimitCounterConfiguration.cs similarity index 86% rename from src/core/Deal.Infrastructure/Persistence/RateLimitCounterConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/RateLimitCounterConfiguration.cs index 2255bdf..ebdf75a 100644 --- a/src/core/Deal.Infrastructure/Persistence/RateLimitCounterConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/RateLimitCounterConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация счётчика фиксированного окна: таблица rate_limit_counters в схеме public diff --git a/src/core/Deal.Infrastructure/Persistence/RejectedItemConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/RejectedItemConfiguration.cs similarity index 91% rename from src/core/Deal.Infrastructure/Persistence/RejectedItemConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/RejectedItemConfiguration.cs index cec3b16..36cc876 100644 --- a/src/core/Deal.Infrastructure/Persistence/RejectedItemConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/RejectedItemConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация отсева пайплайна: таблица RejectedItems (модель без схемы). diff --git a/src/core/Deal.Infrastructure/Persistence/SessionConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/SessionConfiguration.cs similarity index 88% rename from src/core/Deal.Infrastructure/Persistence/SessionConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/SessionConfiguration.cs index e68ffcc..18bf052 100644 --- a/src/core/Deal.Infrastructure/Persistence/SessionConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/SessionConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация сессии: таблица sessions в схеме public. diff --git a/src/core/Deal.Infrastructure/Persistence/TenantConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/TenantConfiguration.cs similarity index 80% rename from src/core/Deal.Infrastructure/Persistence/TenantConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/TenantConfiguration.cs index 7e32015..89c2b01 100644 --- a/src/core/Deal.Infrastructure/Persistence/TenantConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/TenantConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация тенанта: таблица tenants в схеме public. diff --git a/src/core/Deal.Infrastructure/Persistence/TenantLimitConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/TenantLimitConfiguration.cs similarity index 88% rename from src/core/Deal.Infrastructure/Persistence/TenantLimitConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/TenantLimitConfiguration.cs index bbee339..a923d56 100644 --- a/src/core/Deal.Infrastructure/Persistence/TenantLimitConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/TenantLimitConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация лимита тенанта: таблица tenant_limits в схеме public. diff --git a/src/core/Deal.Infrastructure/Persistence/TenantSettingConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/TenantSettingConfiguration.cs similarity index 84% rename from src/core/Deal.Infrastructure/Persistence/TenantSettingConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/TenantSettingConfiguration.cs index 4483cce..8a3de73 100644 --- a/src/core/Deal.Infrastructure/Persistence/TenantSettingConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/TenantSettingConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация настройки тенанта: таблица settings в схеме тенанта (модель без схемы). diff --git a/src/core/Deal.Infrastructure/Persistence/TgMessageConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/TgMessageConfiguration.cs similarity index 83% rename from src/core/Deal.Infrastructure/Persistence/TgMessageConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/TgMessageConfiguration.cs index 900f3be..25ff241 100644 --- a/src/core/Deal.Infrastructure/Persistence/TgMessageConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/TgMessageConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация превью-сообщений: таблица TgMessages (модель без схемы; Ruling 7, db.py L67–74). diff --git a/src/core/Deal.Infrastructure/Persistence/TokenUsageEventConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/TokenUsageEventConfiguration.cs similarity index 87% rename from src/core/Deal.Infrastructure/Persistence/TokenUsageEventConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/TokenUsageEventConfiguration.cs index fcadba0..67fa294 100644 --- a/src/core/Deal.Infrastructure/Persistence/TokenUsageEventConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/TokenUsageEventConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация события расхода токенов: таблица token_usage_events в схеме public (append-only). diff --git a/src/core/Deal.Infrastructure/Persistence/UserConfiguration.cs b/src/core/Deal.Infrastructure/Persistence/Configurations/UserConfiguration.cs similarity index 88% rename from src/core/Deal.Infrastructure/Persistence/UserConfiguration.cs rename to src/core/Deal.Infrastructure/Persistence/Configurations/UserConfiguration.cs index 1ffd386..3ede495 100644 --- a/src/core/Deal.Infrastructure/Persistence/UserConfiguration.cs +++ b/src/core/Deal.Infrastructure/Persistence/Configurations/UserConfiguration.cs @@ -1,8 +1,10 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; +using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; -namespace Deal.Infrastructure.Persistence; +namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация пользователя: таблица users в схеме public. diff --git a/src/core/Deal.Infrastructure/Persistence/DealDbContext.cs b/src/core/Deal.Infrastructure/Persistence/DealDbContext.cs index e17f19e..61a1131 100644 --- a/src/core/Deal.Infrastructure/Persistence/DealDbContext.cs +++ b/src/core/Deal.Infrastructure/Persistence/DealDbContext.cs @@ -1,5 +1,6 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence; diff --git a/src/core/Deal.Infrastructure/Persistence/DealDbDesignTimeFactory.cs b/src/core/Deal.Infrastructure/Persistence/DealDbDesignTimeFactory.cs index 31eaefe..64b6944 100644 --- a/src/core/Deal.Infrastructure/Persistence/DealDbDesignTimeFactory.cs +++ b/src/core/Deal.Infrastructure/Persistence/DealDbDesignTimeFactory.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence; diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/AuditLogEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/AuditLogEntity.cs index 3a73192..864e7c9 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/AuditLogEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/AuditLogEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/CardEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/CardEntity.cs index 8627a7d..5146cc2 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/CardEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/CardEntity.cs @@ -1,4 +1,5 @@ using NpgsqlTypes; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Entities; diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/CardMoveEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/CardMoveEntity.cs index 2dcbf84..a32c622 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/CardMoveEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/CardMoveEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/ContainerEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/ContainerEntity.cs index fb17332..e1fb7e3 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/ContainerEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/ContainerEntity.cs @@ -1,4 +1,5 @@ using NpgsqlTypes; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Entities; diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/DedupEntryEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/DedupEntryEntity.cs index e637bb2..c1dafab 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/DedupEntryEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/DedupEntryEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/DialogEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/DialogEntity.cs index b5626bd..ec042b2 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/DialogEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/DialogEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/DiscBlacklistEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/DiscBlacklistEntity.cs index fcdb158..6b9f768 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/DiscBlacklistEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/DiscBlacklistEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/DiscCandidateEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/DiscCandidateEntity.cs index 6146596..eb4220b 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/DiscCandidateEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/DiscCandidateEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/DiscLogEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/DiscLogEntity.cs index a66dfae..195bdb9 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/DiscLogEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/DiscLogEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/DiscTaskEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/DiscTaskEntity.cs index 347d412..8e933d8 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/DiscTaskEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/DiscTaskEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/GlobalSettingEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/GlobalSettingEntity.cs index 2ae60f0..c63e384 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/GlobalSettingEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/GlobalSettingEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/InviteEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/InviteEntity.cs index ed7fe6b..414bdc2 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/InviteEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/InviteEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/LeadCommentEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/LeadCommentEntity.cs index e62b71c..f2dd179 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/LeadCommentEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/LeadCommentEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/MlOutboxEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/MlOutboxEntity.cs index 1f29f02..49a55ff 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/MlOutboxEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/MlOutboxEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/OperatorEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/OperatorEntity.cs index e5383dd..f616fc5 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/OperatorEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/OperatorEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/OperatorSessionEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/OperatorSessionEntity.cs index 77b2b5c..c1cc8ed 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/OperatorSessionEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/OperatorSessionEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/QueueItemEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/QueueItemEntity.cs index 9e01af0..53e9706 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/QueueItemEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/QueueItemEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/RateLimitCounterEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/RateLimitCounterEntity.cs index 44b2fa0..528ea67 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/RateLimitCounterEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/RateLimitCounterEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/RejectedItemEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/RejectedItemEntity.cs index 9eee294..365af2f 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/RejectedItemEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/RejectedItemEntity.cs @@ -1,4 +1,5 @@ using NpgsqlTypes; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Entities; diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/SessionEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/SessionEntity.cs index 9f91dbf..76fb01c 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/SessionEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/SessionEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/TenantEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/TenantEntity.cs index e58c8d8..15e128a 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/TenantEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/TenantEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/TenantLimitEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/TenantLimitEntity.cs index 14f903a..25f779b 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/TenantLimitEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/TenantLimitEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/TenantSettingEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/TenantSettingEntity.cs index 6f4e7d5..9b61d5c 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/TenantSettingEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/TenantSettingEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/TgMessageEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/TgMessageEntity.cs index c3438eb..235605a 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/TgMessageEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/TgMessageEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/TokenUsageEventEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/TokenUsageEventEntity.cs index e2c91e0..bc06080 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/TokenUsageEventEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/TokenUsageEventEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/UserEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/UserEntity.cs index 3099f26..1ae7cf8 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/UserEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/UserEntity.cs @@ -1,3 +1,5 @@ +using Deal.Infrastructure.Persistence.Configurations; + namespace Deal.Infrastructure.Persistence.Entities; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/AuditLogStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/AuditLogStore.cs index 3b6a0fd..edb0549 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/AuditLogStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/AuditLogStore.cs @@ -5,6 +5,7 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/AuthStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/AuthStore.cs index eebb784..28d6718 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/AuthStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/AuthStore.cs @@ -5,6 +5,7 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Blacklist.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Blacklist.cs index 9f12e85..2af4daf 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Blacklist.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Blacklist.cs @@ -7,6 +7,7 @@ using Deal.Modules.Discovery.Application.Models; using Deal.Modules.Discovery.Application.Registrars; using Deal.Modules.Discovery.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Candidates.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Candidates.cs index 454d4c5..3af0f99 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Candidates.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Candidates.cs @@ -7,6 +7,7 @@ using Deal.Modules.Discovery.Application.Models; using Deal.Modules.Discovery.Application.Registrars; using Deal.Modules.Discovery.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Logs.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Logs.cs index 543dc31..45b656e 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Logs.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Logs.cs @@ -7,6 +7,7 @@ using Deal.Modules.Discovery.Application.Models; using Deal.Modules.Discovery.Application.Registrars; using Deal.Modules.Discovery.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Tasks.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Tasks.cs index 4c9b91a..eb0b2fb 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Tasks.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.Tasks.cs @@ -7,6 +7,7 @@ using Deal.Modules.Discovery.Application.Models; using Deal.Modules.Discovery.Application.Registrars; using Deal.Modules.Discovery.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.cs index 4490e39..eb0f341 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/DiscoveryStore.cs @@ -7,6 +7,7 @@ using Deal.Modules.Discovery.Application.Models; using Deal.Modules.Discovery.Application.Registrars; using Deal.Modules.Discovery.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/GlobalSettingsStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/GlobalSettingsStore.cs index 81e0269..fb608d4 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/GlobalSettingsStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/GlobalSettingsStore.cs @@ -4,6 +4,7 @@ using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/InviteStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/InviteStore.cs index c8bc9ca..6e174e7 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/InviteStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/InviteStore.cs @@ -5,6 +5,7 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Cards.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Cards.cs index 6505a87..dfd3b09 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Cards.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Cards.cs @@ -6,6 +6,7 @@ using Deal.Modules.Kanban.Application.Models; using Deal.Modules.Kanban.Application.Registrars; using Deal.Modules.Kanban.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Comments.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Comments.cs index 82ff32a..7420e24 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Comments.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Comments.cs @@ -9,6 +9,7 @@ using Deal.Modules.Kanban.Application.Models; using Deal.Modules.Kanban.Application.Registrars; using Deal.Modules.Kanban.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Containers.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Containers.cs index 5bb288d..6ffff8d 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Containers.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Containers.cs @@ -8,6 +8,7 @@ using Deal.Modules.Kanban.Application.Models; using Deal.Modules.Kanban.Application.Registrars; using Deal.Modules.Kanban.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Selected.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Selected.cs index f31f7dc..7828ca3 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Selected.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.Selected.cs @@ -1,6 +1,7 @@ using Deal.Infrastructure.Persistence.Entities; using Deal.Modules.Kanban.Application.Models; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.StorageRules.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.StorageRules.cs index 0db55a9..8fe03fe 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.StorageRules.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.StorageRules.cs @@ -9,6 +9,7 @@ using Deal.Modules.Kanban.Application.Models; using Deal.Modules.Kanban.Application.Registrars; using Deal.Modules.Kanban.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.cs index 61a35cd..4eb53d4 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/KanbanStore.cs @@ -9,6 +9,7 @@ using Deal.Modules.Kanban.Application.Models; using Deal.Modules.Kanban.Application.Registrars; using Deal.Modules.Kanban.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/MlLearningStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/MlLearningStore.cs index f934f8f..473b948 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/MlLearningStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/MlLearningStore.cs @@ -5,6 +5,7 @@ using Deal.Modules.Kanban.Application.Models; using Deal.Modules.Kanban.Application.Registrars; using Deal.Modules.Kanban.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/OperatorAuthStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/OperatorAuthStore.cs index b8e5758..29085e5 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/OperatorAuthStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/OperatorAuthStore.cs @@ -5,6 +5,7 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/PipelineStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/PipelineStore.cs index dbe3439..08a77be 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/PipelineStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/PipelineStore.cs @@ -9,6 +9,7 @@ using Deal.Modules.Pipeline.Application.Models; using Deal.Modules.Pipeline.Application.Registrars; using Deal.Modules.Pipeline.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/RateLimitCounterStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/RateLimitCounterStore.cs index b657a60..1a166e2 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/RateLimitCounterStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/RateLimitCounterStore.cs @@ -8,6 +8,7 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/SettingsStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/SettingsStore.cs index a8c7db1..173dc71 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/SettingsStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/SettingsStore.cs @@ -4,6 +4,7 @@ using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; using Deal.Modules.Settings.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/TelegramStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/TelegramStore.cs index 9ddceef..c30a887 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/TelegramStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/TelegramStore.cs @@ -3,6 +3,7 @@ using Deal.Infrastructure.Persistence.Entities; using Deal.Modules.Telegram.Application; using Deal.Modules.Telegram.Application.Models; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/TenantLimitStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/TenantLimitStore.cs index 4262d04..a0049d8 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/TenantLimitStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/TenantLimitStore.cs @@ -5,6 +5,7 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/TenantRepository.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/TenantRepository.cs index 068b91b..927909a 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/TenantRepository.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/TenantRepository.cs @@ -5,6 +5,7 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/Repositories/TokenUsageEventStore.cs b/src/core/Deal.Infrastructure/Persistence/Repositories/TokenUsageEventStore.cs index ab66c0c..6e3fa1c 100644 --- a/src/core/Deal.Infrastructure/Persistence/Repositories/TokenUsageEventStore.cs +++ b/src/core/Deal.Infrastructure/Persistence/Repositories/TokenUsageEventStore.cs @@ -6,6 +6,7 @@ using Deal.Modules.Tenants.Application.Models; using Deal.Modules.Tenants.Application.Registrars; using Deal.Modules.Tenants.Application.Services; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence.Repositories; diff --git a/src/core/Deal.Infrastructure/Persistence/TenantDbContext.cs b/src/core/Deal.Infrastructure/Persistence/TenantDbContext.cs index 17f0eda..6ce7b17 100644 --- a/src/core/Deal.Infrastructure/Persistence/TenantDbContext.cs +++ b/src/core/Deal.Infrastructure/Persistence/TenantDbContext.cs @@ -1,5 +1,6 @@ using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence; diff --git a/src/core/Deal.Infrastructure/Persistence/TenantDbDesignTimeFactory.cs b/src/core/Deal.Infrastructure/Persistence/TenantDbDesignTimeFactory.cs index 65e9945..67a9a88 100644 --- a/src/core/Deal.Infrastructure/Persistence/TenantDbDesignTimeFactory.cs +++ b/src/core/Deal.Infrastructure/Persistence/TenantDbDesignTimeFactory.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; +using Deal.Infrastructure.Persistence.Configurations; namespace Deal.Infrastructure.Persistence; diff --git a/src/core/Deal.Infrastructure/ServiceCollectionExtensions.cs b/src/core/Deal.Infrastructure/ServiceCollectionExtensions.cs index 0abe311..384a92f 100644 --- a/src/core/Deal.Infrastructure/ServiceCollectionExtensions.cs +++ b/src/core/Deal.Infrastructure/ServiceCollectionExtensions.cs @@ -1,6 +1,12 @@ using Deal.Contracts.Integrations; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Repositories; using Deal.Infrastructure.Security; using Deal.Infrastructure.Services; diff --git a/src/core/Deal.Infrastructure/Services/FtsMaintenance.cs b/src/core/Deal.Infrastructure/Services/FtsMaintenance.cs index 1ac3a3d..0713254 100644 --- a/src/core/Deal.Infrastructure/Services/FtsMaintenance.cs +++ b/src/core/Deal.Infrastructure/Services/FtsMaintenance.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; diff --git a/src/core/Deal.Infrastructure/Tenancy/DefaultContainerProvisioner.cs b/src/core/Deal.Infrastructure/Tenancy/DefaultContainerProvisioner.cs index 41007a9..867084e 100644 --- a/src/core/Deal.Infrastructure/Tenancy/DefaultContainerProvisioner.cs +++ b/src/core/Deal.Infrastructure/Tenancy/DefaultContainerProvisioner.cs @@ -1,5 +1,6 @@ using System.Text.Json; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Entities; using Deal.Modules.Cards.Application.Abstractions; using Deal.Modules.Cards.Application.Dtos; diff --git a/src/core/Deal.Infrastructure/Tenancy/TenantProvisioningService.cs b/src/core/Deal.Infrastructure/Tenancy/TenantProvisioningService.cs index dbb9c46..2a70d86 100644 --- a/src/core/Deal.Infrastructure/Tenancy/TenantProvisioningService.cs +++ b/src/core/Deal.Infrastructure/Tenancy/TenantProvisioningService.cs @@ -2,6 +2,7 @@ using System.Collections.Concurrent; using Deal.Infrastructure.Data; using Deal.Infrastructure.Migrations; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Modules.Tenants.Application.Abstractions; using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/AdminTickOrchestratorTests.cs b/src/core/tests/Deal.Tests.Unit/AdminTickOrchestratorTests.cs index 2d986e1..cd86fa8 100644 --- a/src/core/tests/Deal.Tests.Unit/AdminTickOrchestratorTests.cs +++ b/src/core/tests/Deal.Tests.Unit/AdminTickOrchestratorTests.cs @@ -1,5 +1,7 @@ using System.Text.Json; using Deal.Api; +using Deal.Api.Dtos; +using Deal.Api.Services; using Deal.Api.Events; using Deal.Contracts.Integrations.Models; using Deal.Modules.Kanban.Application.Abstractions; diff --git a/src/core/tests/Deal.Tests.Unit/AiConnectionCheckerTests.cs b/src/core/tests/Deal.Tests.Unit/AiConnectionCheckerTests.cs index 43be5da..d8ae286 100644 --- a/src/core/tests/Deal.Tests.Unit/AiConnectionCheckerTests.cs +++ b/src/core/tests/Deal.Tests.Unit/AiConnectionCheckerTests.cs @@ -1,5 +1,10 @@ using System.Net; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Settings.Application.Models; namespace Deal.Tests.Unit; diff --git a/src/core/tests/Deal.Tests.Unit/AiGrpcTestHost.cs b/src/core/tests/Deal.Tests.Unit/AiGrpcTestHost.cs index 847394b..41dbe89 100644 --- a/src/core/tests/Deal.Tests.Unit/AiGrpcTestHost.cs +++ b/src/core/tests/Deal.Tests.Unit/AiGrpcTestHost.cs @@ -1,5 +1,10 @@ using System.Net; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Grpc.Net.Client; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/core/tests/Deal.Tests.Unit/AuditLogStoreTests.cs b/src/core/tests/Deal.Tests.Unit/AuditLogStoreTests.cs index e96d23c..8f3972d 100644 --- a/src/core/tests/Deal.Tests.Unit/AuditLogStoreTests.cs +++ b/src/core/tests/Deal.Tests.Unit/AuditLogStoreTests.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Repositories; using Deal.Modules.Tenants.Application.Abstractions; using Deal.Modules.Tenants.Application.Extensions; diff --git a/src/core/tests/Deal.Tests.Unit/AuthStoreTests.cs b/src/core/tests/Deal.Tests.Unit/AuthStoreTests.cs index b609244..903c96d 100644 --- a/src/core/tests/Deal.Tests.Unit/AuthStoreTests.cs +++ b/src/core/tests/Deal.Tests.Unit/AuthStoreTests.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Repositories; using Deal.Modules.Tenants.Application.Abstractions; using Deal.Modules.Tenants.Application.Extensions; diff --git a/src/core/tests/Deal.Tests.Unit/BudgetedAiClassifierTests.cs b/src/core/tests/Deal.Tests.Unit/BudgetedAiClassifierTests.cs index 86c5415..c26571e 100644 --- a/src/core/tests/Deal.Tests.Unit/BudgetedAiClassifierTests.cs +++ b/src/core/tests/Deal.Tests.Unit/BudgetedAiClassifierTests.cs @@ -1,7 +1,12 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Pipeline.Application.Parse; using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/BudgetedAiToolsTests.cs b/src/core/tests/Deal.Tests.Unit/BudgetedAiToolsTests.cs index 037f58f..eb04b4e 100644 --- a/src/core/tests/Deal.Tests.Unit/BudgetedAiToolsTests.cs +++ b/src/core/tests/Deal.Tests.Unit/BudgetedAiToolsTests.cs @@ -1,7 +1,12 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Tenants.Application.Abstractions; using Deal.Modules.Tenants.Application.Extensions; using Deal.Modules.Tenants.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/CbrRateSourceTests.cs b/src/core/tests/Deal.Tests.Unit/CbrRateSourceTests.cs index d7f8c79..b4307b3 100644 --- a/src/core/tests/Deal.Tests.Unit/CbrRateSourceTests.cs +++ b/src/core/tests/Deal.Tests.Unit/CbrRateSourceTests.cs @@ -1,6 +1,11 @@ using System.Net; using System.Text; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Microsoft.Extensions.Logging.Abstractions; namespace Deal.Tests.Unit; diff --git a/src/core/tests/Deal.Tests.Unit/GlobalSettingsStoreTests.cs b/src/core/tests/Deal.Tests.Unit/GlobalSettingsStoreTests.cs index 91f5054..e70f4df 100644 --- a/src/core/tests/Deal.Tests.Unit/GlobalSettingsStoreTests.cs +++ b/src/core/tests/Deal.Tests.Unit/GlobalSettingsStoreTests.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Repositories; using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/GrpcAiClassifierTests.cs b/src/core/tests/Deal.Tests.Unit/GrpcAiClassifierTests.cs index 6e12775..845fc04 100644 --- a/src/core/tests/Deal.Tests.Unit/GrpcAiClassifierTests.cs +++ b/src/core/tests/Deal.Tests.Unit/GrpcAiClassifierTests.cs @@ -4,7 +4,12 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; using Deal.Grpc.Ai; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Kanban.Application.Models; using Deal.Modules.Pipeline.Application.Abstractions; using Deal.Modules.Pipeline.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/GrpcAiToolsTests.cs b/src/core/tests/Deal.Tests.Unit/GrpcAiToolsTests.cs index d0dee88..938be97 100644 --- a/src/core/tests/Deal.Tests.Unit/GrpcAiToolsTests.cs +++ b/src/core/tests/Deal.Tests.Unit/GrpcAiToolsTests.cs @@ -2,7 +2,12 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; using Deal.Grpc.Ai; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars; diff --git a/src/core/tests/Deal.Tests.Unit/GrpcMlClientTests.cs b/src/core/tests/Deal.Tests.Unit/GrpcMlClientTests.cs index a3fda3c..2589572 100644 --- a/src/core/tests/Deal.Tests.Unit/GrpcMlClientTests.cs +++ b/src/core/tests/Deal.Tests.Unit/GrpcMlClientTests.cs @@ -1,7 +1,12 @@ using Deal.Contracts.Integrations.Models; using Deal.Grpc.Ml; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Kanban.Application.Models; using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/GrpcTelegramClientTests.cs b/src/core/tests/Deal.Tests.Unit/GrpcTelegramClientTests.cs index 8ebd638..1b35c7b 100644 --- a/src/core/tests/Deal.Tests.Unit/GrpcTelegramClientTests.cs +++ b/src/core/tests/Deal.Tests.Unit/GrpcTelegramClientTests.cs @@ -2,7 +2,12 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; using Deal.Grpc.Telegram; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.SharedKernel.Tenants; using Grpc.Core; using Microsoft.Extensions.Logging.Abstractions; diff --git a/src/core/tests/Deal.Tests.Unit/IntegrationsDiTests.cs b/src/core/tests/Deal.Tests.Unit/IntegrationsDiTests.cs index 04eb03f..cbf828e 100644 --- a/src/core/tests/Deal.Tests.Unit/IntegrationsDiTests.cs +++ b/src/core/tests/Deal.Tests.Unit/IntegrationsDiTests.cs @@ -1,7 +1,12 @@ using Deal.Contracts.Integrations; using Deal.Infrastructure; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Kanban.Application.Abstractions; using Deal.Modules.Kanban.Application.Extensions; using Deal.Modules.Kanban.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/InviteStoreTests.cs b/src/core/tests/Deal.Tests.Unit/InviteStoreTests.cs index 92a0665..622efbd 100644 --- a/src/core/tests/Deal.Tests.Unit/InviteStoreTests.cs +++ b/src/core/tests/Deal.Tests.Unit/InviteStoreTests.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Repositories; using Deal.Modules.Tenants.Application.Abstractions; using Deal.Modules.Tenants.Application.Extensions; diff --git a/src/core/tests/Deal.Tests.Unit/LocalAiClassifierTests.cs b/src/core/tests/Deal.Tests.Unit/LocalAiClassifierTests.cs index 90309ab..aa07f3f 100644 --- a/src/core/tests/Deal.Tests.Unit/LocalAiClassifierTests.cs +++ b/src/core/tests/Deal.Tests.Unit/LocalAiClassifierTests.cs @@ -1,6 +1,11 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Pipeline.Application.Parse; using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/LocalAiToolsTests.cs b/src/core/tests/Deal.Tests.Unit/LocalAiToolsTests.cs index 3fef504..9996a57 100644 --- a/src/core/tests/Deal.Tests.Unit/LocalAiToolsTests.cs +++ b/src/core/tests/Deal.Tests.Unit/LocalAiToolsTests.cs @@ -1,5 +1,10 @@ using Deal.Contracts.Integrations; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; namespace Deal.Tests.Unit; diff --git a/src/core/tests/Deal.Tests.Unit/LocalColumnSuggesterTests.cs b/src/core/tests/Deal.Tests.Unit/LocalColumnSuggesterTests.cs index 5a160c7..62e283f 100644 --- a/src/core/tests/Deal.Tests.Unit/LocalColumnSuggesterTests.cs +++ b/src/core/tests/Deal.Tests.Unit/LocalColumnSuggesterTests.cs @@ -1,7 +1,12 @@ using System.Globalization; using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Kanban.Application.Abstractions; using Deal.Modules.Kanban.Application.Extensions; using Deal.Modules.Kanban.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/LocalFileStorageTests.cs b/src/core/tests/Deal.Tests.Unit/LocalFileStorageTests.cs index 1a70118..a48e54a 100644 --- a/src/core/tests/Deal.Tests.Unit/LocalFileStorageTests.cs +++ b/src/core/tests/Deal.Tests.Unit/LocalFileStorageTests.cs @@ -1,6 +1,8 @@ using System.Text; using Deal.Contracts.Integrations.Models; -using Deal.Infrastructure.Integrations.Storage; +using Deal.Infrastructure.Integrations.Storage.Extensions; +using Deal.Infrastructure.Integrations.Storage.Options; +using Deal.Infrastructure.Integrations.Storage.Services; namespace Deal.Tests.Unit; diff --git a/src/core/tests/Deal.Tests.Unit/LocalMlClientTests.cs b/src/core/tests/Deal.Tests.Unit/LocalMlClientTests.cs index 0863434..d810922 100644 --- a/src/core/tests/Deal.Tests.Unit/LocalMlClientTests.cs +++ b/src/core/tests/Deal.Tests.Unit/LocalMlClientTests.cs @@ -1,6 +1,11 @@ using System.Text.Json; using Deal.Contracts.Integrations.Models; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Kanban.Application.Abstractions; using Deal.Modules.Kanban.Application.Extensions; using Deal.Modules.Kanban.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/MlOutboxFlushSchedulerTests.cs b/src/core/tests/Deal.Tests.Unit/MlOutboxFlushSchedulerTests.cs index f45d928..a2b0335 100644 --- a/src/core/tests/Deal.Tests.Unit/MlOutboxFlushSchedulerTests.cs +++ b/src/core/tests/Deal.Tests.Unit/MlOutboxFlushSchedulerTests.cs @@ -1,7 +1,12 @@ using Deal.Api.Hosting; using Deal.Contracts.Integrations; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Kanban.Application.Abstractions; using Deal.Modules.Kanban.Application.Extensions; using Deal.Modules.Kanban.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/MtlsCertificatesTests.cs b/src/core/tests/Deal.Tests.Unit/MtlsCertificatesTests.cs index a464428..32b9846 100644 --- a/src/core/tests/Deal.Tests.Unit/MtlsCertificatesTests.cs +++ b/src/core/tests/Deal.Tests.Unit/MtlsCertificatesTests.cs @@ -1,7 +1,12 @@ using System.Net.Security; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; namespace Deal.Tests.Unit; diff --git a/src/core/tests/Deal.Tests.Unit/MtlsOptionsTests.cs b/src/core/tests/Deal.Tests.Unit/MtlsOptionsTests.cs index 185cae1..ae9ad83 100644 --- a/src/core/tests/Deal.Tests.Unit/MtlsOptionsTests.cs +++ b/src/core/tests/Deal.Tests.Unit/MtlsOptionsTests.cs @@ -1,4 +1,9 @@ -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Microsoft.Extensions.Configuration; namespace Deal.Tests.Unit; diff --git a/src/core/tests/Deal.Tests.Unit/OperatorAuthHttpHost.cs b/src/core/tests/Deal.Tests.Unit/OperatorAuthHttpHost.cs index e2fd011..88983eb 100644 --- a/src/core/tests/Deal.Tests.Unit/OperatorAuthHttpHost.cs +++ b/src/core/tests/Deal.Tests.Unit/OperatorAuthHttpHost.cs @@ -5,8 +5,14 @@ using Deal.Api.Http; using Deal.Api.Middleware; using Deal.Api.Telegram; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Tenancy; using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/OperatorAuthStoreTests.cs b/src/core/tests/Deal.Tests.Unit/OperatorAuthStoreTests.cs index a054cfb..405feba 100644 --- a/src/core/tests/Deal.Tests.Unit/OperatorAuthStoreTests.cs +++ b/src/core/tests/Deal.Tests.Unit/OperatorAuthStoreTests.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Repositories; using Deal.Modules.Tenants.Application.Models; using Microsoft.EntityFrameworkCore; diff --git a/src/core/tests/Deal.Tests.Unit/PipelinePumpGateTests.cs b/src/core/tests/Deal.Tests.Unit/PipelinePumpGateTests.cs index deb7c40..5798334 100644 --- a/src/core/tests/Deal.Tests.Unit/PipelinePumpGateTests.cs +++ b/src/core/tests/Deal.Tests.Unit/PipelinePumpGateTests.cs @@ -1,4 +1,6 @@ using Deal.Api; +using Deal.Api.Dtos; +using Deal.Api.Services; namespace Deal.Tests.Unit; diff --git a/src/core/tests/Deal.Tests.Unit/PipelineWorkerGrpcAiTests.cs b/src/core/tests/Deal.Tests.Unit/PipelineWorkerGrpcAiTests.cs index 7988c61..78f2fa1 100644 --- a/src/core/tests/Deal.Tests.Unit/PipelineWorkerGrpcAiTests.cs +++ b/src/core/tests/Deal.Tests.Unit/PipelineWorkerGrpcAiTests.cs @@ -2,7 +2,12 @@ using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; using Deal.Grpc.Ai; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Kanban.Application.Abstractions; using Deal.Modules.Kanban.Application.Extensions; using Deal.Modules.Kanban.Application.Models; diff --git a/src/core/tests/Deal.Tests.Unit/PipelineWorkerSchedulerTests.cs b/src/core/tests/Deal.Tests.Unit/PipelineWorkerSchedulerTests.cs index 87ed37f..6ce9990 100644 --- a/src/core/tests/Deal.Tests.Unit/PipelineWorkerSchedulerTests.cs +++ b/src/core/tests/Deal.Tests.Unit/PipelineWorkerSchedulerTests.cs @@ -1,5 +1,7 @@ using System.Text.Json; using Deal.Api; +using Deal.Api.Dtos; +using Deal.Api.Services; using Deal.Api.Events; using Deal.Contracts.Integrations; using Deal.Contracts.Integrations.Models; diff --git a/src/core/tests/Deal.Tests.Unit/RateLimitCounterStoreTests.cs b/src/core/tests/Deal.Tests.Unit/RateLimitCounterStoreTests.cs index 93e962b..5542553 100644 --- a/src/core/tests/Deal.Tests.Unit/RateLimitCounterStoreTests.cs +++ b/src/core/tests/Deal.Tests.Unit/RateLimitCounterStoreTests.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Repositories; using Microsoft.EntityFrameworkCore; diff --git a/src/core/tests/Deal.Tests.Unit/ServiceHealthProbeTests.cs b/src/core/tests/Deal.Tests.Unit/ServiceHealthProbeTests.cs index 5ddd1a1..ee413cf 100644 --- a/src/core/tests/Deal.Tests.Unit/ServiceHealthProbeTests.cs +++ b/src/core/tests/Deal.Tests.Unit/ServiceHealthProbeTests.cs @@ -1,5 +1,10 @@ using System.Net; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.Kestrel.Core; diff --git a/src/core/tests/Deal.Tests.Unit/TelegramIngressTestHost.cs b/src/core/tests/Deal.Tests.Unit/TelegramIngressTestHost.cs index 957467d..9ad836a 100644 --- a/src/core/tests/Deal.Tests.Unit/TelegramIngressTestHost.cs +++ b/src/core/tests/Deal.Tests.Unit/TelegramIngressTestHost.cs @@ -1,5 +1,7 @@ using System.Net; using Deal.Api; +using Deal.Api.Dtos; +using Deal.Api.Services; using Deal.Api.Configuration; using Deal.Api.Events; using Deal.Api.Telegram; diff --git a/src/core/tests/Deal.Tests.Unit/TenantLimitStoreTests.cs b/src/core/tests/Deal.Tests.Unit/TenantLimitStoreTests.cs index 27489c6..5521f7b 100644 --- a/src/core/tests/Deal.Tests.Unit/TenantLimitStoreTests.cs +++ b/src/core/tests/Deal.Tests.Unit/TenantLimitStoreTests.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Entities; using Deal.Infrastructure.Persistence.Repositories; using Deal.Modules.Tenants.Application.Abstractions; diff --git a/src/core/tests/Deal.Tests.Unit/TenantRepositoryTests.cs b/src/core/tests/Deal.Tests.Unit/TenantRepositoryTests.cs index 0737808..db5dd17 100644 --- a/src/core/tests/Deal.Tests.Unit/TenantRepositoryTests.cs +++ b/src/core/tests/Deal.Tests.Unit/TenantRepositoryTests.cs @@ -1,4 +1,5 @@ using Deal.Infrastructure.Persistence; +using Deal.Infrastructure.Persistence.Configurations; using Deal.Infrastructure.Persistence.Repositories; using Deal.Modules.Tenants.Application.Abstractions; using Deal.Modules.Tenants.Application.Extensions; diff --git a/src/core/tests/Deal.Tests.Unit/TokenUsageRecorderTests.cs b/src/core/tests/Deal.Tests.Unit/TokenUsageRecorderTests.cs index f8c472b..92ca7f4 100644 --- a/src/core/tests/Deal.Tests.Unit/TokenUsageRecorderTests.cs +++ b/src/core/tests/Deal.Tests.Unit/TokenUsageRecorderTests.cs @@ -1,7 +1,12 @@ using System.Text.Json; using Deal.Grpc.Ai; using Deal.Infrastructure.Data; -using Deal.Infrastructure.Integrations; +using Deal.Infrastructure.Integrations.Abstractions; +using Deal.Infrastructure.Integrations.Exceptions; +using Deal.Infrastructure.Integrations.Extensions; +using Deal.Infrastructure.Integrations.Models; +using Deal.Infrastructure.Integrations.Options; +using Deal.Infrastructure.Integrations.Services; using Deal.Modules.Settings.Application.Abstractions; using Deal.Modules.Settings.Application.Models; using Deal.Modules.Settings.Application.Registrars;