fix(backend): make API types internal

This commit is contained in:
2026-05-07 14:06:37 -04:00
parent d1621ecb36
commit 9022fa7d93
208 changed files with 347 additions and 344 deletions

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Approvals.Data;
public class ApprovalDecision
internal class ApprovalDecision
{
public Guid Id { get; init; }
public Guid ApprovalRequestId { get; set; }

View File

@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
namespace Socialize.Api.Modules.Approvals.Data;
public static class ApprovalModelConfiguration
internal static class ApprovalModelConfiguration
{
public static ModelBuilder ConfigureApprovalsModule(this ModelBuilder modelBuilder)
{

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Approvals.Data;
public class ApprovalRequest
internal class ApprovalRequest
{
public Guid Id { get; init; }
public Guid WorkspaceId { get; set; }

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Approvals.Data;
public class ApprovalWorkflowInstance
internal class ApprovalWorkflowInstance
{
public Guid Id { get; init; }
public Guid WorkspaceId { get; set; }

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Approvals.Data;
public class WorkspaceApprovalStepConfiguration
internal class WorkspaceApprovalStepConfiguration
{
public Guid Id { get; init; }
public Guid WorkspaceId { get; set; }

View File

@@ -7,9 +7,9 @@ using Socialize.Api.Infrastructure.Security;
namespace Socialize.Api.Modules.Approvals.Handlers;
public record GetApprovalsRequest(Guid ContentItemId);
internal record GetApprovalsRequest(Guid ContentItemId);
public record ApprovalDecisionDto(
internal record ApprovalDecisionDto(
Guid Id,
Guid ApprovalRequestId,
string Decision,
@@ -20,7 +20,7 @@ public record ApprovalDecisionDto(
string? DecidedByPortraitUrl,
DateTimeOffset CreatedAt);
public record ApprovalRequestDto(
internal record ApprovalRequestDto(
Guid Id,
Guid WorkspaceId,
Guid ContentItemId,
@@ -40,7 +40,7 @@ public record ApprovalRequestDto(
DateTimeOffset? CompletedAt,
IReadOnlyCollection<ApprovalDecisionDto> Decisions);
public class GetApprovalsHandler(
internal class GetApprovalsHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<GetApprovalsRequest, IReadOnlyCollection<ApprovalRequestDto>>

View File

@@ -12,12 +12,12 @@ using System.Text.Json;
namespace Socialize.Api.Modules.Approvals.Handlers;
public record SubmitApprovalDecisionRequest(
internal record SubmitApprovalDecisionRequest(
string Decision,
string? ReviewerName,
string? ReviewerEmail);
public class SubmitApprovalDecisionRequestValidator
internal class SubmitApprovalDecisionRequestValidator
: Validator<SubmitApprovalDecisionRequest>
{
public SubmitApprovalDecisionRequestValidator()
@@ -31,7 +31,7 @@ public class SubmitApprovalDecisionRequestValidator
}
}
public class SubmitApprovalDecisionHandler(
internal class SubmitApprovalDecisionHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
ApprovalWorkflowRuntimeService approvalWorkflowRuntimeService,

View File

@@ -2,7 +2,7 @@ using Socialize.Api.Modules.Approvals.Services;
namespace Socialize.Api.Modules.Approvals;
public static class ModuleRegistration
internal static class ModuleRegistration
{
public static WebApplicationBuilder AddApprovalsModule(
this WebApplicationBuilder builder)

View File

@@ -2,20 +2,20 @@ using Socialize.Api.Modules.Identity.Contracts;
namespace Socialize.Api.Modules.Approvals.Services;
public static class ApprovalStepTargetTypes
internal static class ApprovalStepTargetTypes
{
public const string Role = "Role";
public const string Membership = "Membership";
public const string Member = "Member";
}
public static class ApprovalMembershipTargets
internal static class ApprovalMembershipTargets
{
public const string Team = "Team";
public const string Client = "Client";
}
public static class ApprovalStepConfigurationRules
internal static class ApprovalStepConfigurationRules
{
public static readonly IReadOnlySet<string> AllowedTargetTypes = new HashSet<string>(StringComparer.Ordinal)
{

View File

@@ -2,7 +2,7 @@ using Socialize.Api.Modules.Identity.Contracts;
namespace Socialize.Api.Modules.Approvals.Services;
public static class ApprovalModes
internal static class ApprovalModes
{
public const string None = "None";
public const string Optional = "Optional";
@@ -10,7 +10,7 @@ public static class ApprovalModes
public const string MultiLevel = "Multi-level";
}
public static class ApprovalWorkflowRules
internal static class ApprovalWorkflowRules
{
public static bool BlocksManualApprovedOrScheduledStatus(string approvalMode)
{

View File

@@ -11,15 +11,15 @@ using Socialize.Api.Modules.Workspaces.Data;
namespace Socialize.Api.Modules.Approvals.Services;
public record ApprovalWorkflowStartResult(bool Succeeded, string? ErrorMessage);
internal record ApprovalWorkflowStartResult(bool Succeeded, string? ErrorMessage);
public record ApprovalWorkflowDecisionResult(
internal record ApprovalWorkflowDecisionResult(
bool Succeeded,
string? ErrorMessage,
int StatusCode,
bool IsWorkflowStep);
public class ApprovalWorkflowRuntimeService(
internal class ApprovalWorkflowRuntimeService(
AppDbContext dbContext,
INotificationEventWriter notificationEventWriter)
{

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Assets.Data;
public class Asset
internal class Asset
{
public Guid Id { get; init; }
public Guid WorkspaceId { get; set; }

View File

@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
namespace Socialize.Api.Modules.Assets.Data;
public static class AssetModelConfiguration
internal static class AssetModelConfiguration
{
public static ModelBuilder ConfigureAssetsModule(this ModelBuilder modelBuilder)
{

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Assets.Data;
public class AssetRevision
internal class AssetRevision
{
public Guid Id { get; init; }
public Guid AssetId { get; set; }

View File

@@ -10,12 +10,12 @@ using System.Text.Json;
namespace Socialize.Api.Modules.Assets.Handlers;
public record CreateAssetRevisionRequest(
internal record CreateAssetRevisionRequest(
string SourceReference,
string? PreviewUrl,
string? Notes);
public class CreateAssetRevisionRequestValidator
internal class CreateAssetRevisionRequestValidator
: Validator<CreateAssetRevisionRequest>
{
public CreateAssetRevisionRequestValidator()
@@ -26,7 +26,7 @@ public class CreateAssetRevisionRequestValidator
}
}
public class CreateAssetRevisionHandler(
internal class CreateAssetRevisionHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
IContentItemActivityWriter activityWriter,

View File

@@ -10,7 +10,7 @@ using System.Text.Json;
namespace Socialize.Api.Modules.Assets.Handlers;
public record CreateGoogleDriveAssetRequest(
internal record CreateGoogleDriveAssetRequest(
Guid WorkspaceId,
Guid ContentItemId,
string AssetType,
@@ -19,7 +19,7 @@ public record CreateGoogleDriveAssetRequest(
string GoogleDriveLink,
string? PreviewUrl);
public class CreateGoogleDriveAssetRequestValidator
internal class CreateGoogleDriveAssetRequestValidator
: Validator<CreateGoogleDriveAssetRequest>
{
public CreateGoogleDriveAssetRequestValidator()
@@ -34,7 +34,7 @@ public class CreateGoogleDriveAssetRequestValidator
}
}
public class CreateGoogleDriveAssetHandler(
internal class CreateGoogleDriveAssetHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
IContentItemActivityWriter activityWriter,

View File

@@ -5,9 +5,9 @@ using Socialize.Api.Infrastructure.Security;
namespace Socialize.Api.Modules.Assets.Handlers;
public record GetAssetsRequest(Guid ContentItemId);
internal record GetAssetsRequest(Guid ContentItemId);
public record AssetRevisionDto(
internal record AssetRevisionDto(
Guid Id,
Guid AssetId,
int RevisionNumber,
@@ -17,7 +17,7 @@ public record AssetRevisionDto(
Guid? CreatedByUserId,
DateTimeOffset CreatedAt);
public record AssetDto(
internal record AssetDto(
Guid Id,
Guid WorkspaceId,
Guid ContentItemId,
@@ -31,7 +31,7 @@ public record AssetDto(
DateTimeOffset CreatedAt,
IReadOnlyCollection<AssetRevisionDto> Revisions);
public class GetAssetsHandler(
internal class GetAssetsHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<GetAssetsRequest, IReadOnlyCollection<AssetDto>>

View File

@@ -2,7 +2,7 @@ using Socialize.Api.Modules.Assets.Data;
namespace Socialize.Api.Modules.Assets;
public static class ModuleRegistration
internal static class ModuleRegistration
{
public static WebApplicationBuilder AddAssetsModule(
this WebApplicationBuilder builder)

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.CalendarIntegrations.Data;
public class CalendarCatalogEntry
internal class CalendarCatalogEntry
{
public Guid Id { get; init; }
public required string Title { get; set; }

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.CalendarIntegrations.Data;
public static class CalendarCatalogSeed
internal static class CalendarCatalogSeed
{
public static readonly CalendarCatalogEntry[] Entries =
[

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.CalendarIntegrations.Data;
public class CalendarEvent
internal class CalendarEvent
{
public Guid Id { get; init; }
public Guid CalendarSourceId { get; set; }

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.CalendarIntegrations.Data;
public class CalendarSource
internal class CalendarSource
{
public Guid Id { get; init; }
public required string Scope { get; set; }

View File

@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
namespace Socialize.Api.Modules.CalendarIntegrations.Data;
public static class CalendarSourceModelConfiguration
internal static class CalendarSourceModelConfiguration
{
public static ModelBuilder ConfigureCalendarIntegrationsModule(this ModelBuilder modelBuilder)
{

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.CalendarIntegrations.Data;
public class UserCalendarExportFeed
internal class UserCalendarExportFeed
{
public Guid Id { get; init; }
public Guid UserId { get; set; }

View File

@@ -3,7 +3,7 @@ using Socialize.Api.Modules.CalendarIntegrations.Services;
namespace Socialize.Api.Modules.CalendarIntegrations.Handlers;
public record CalendarSourceDto(
internal record CalendarSourceDto(
Guid Id,
string Scope,
Guid? OrganizationId,
@@ -47,7 +47,7 @@ public record CalendarSourceDto(
}
}
public record UpsertCalendarSourceRequest(
internal record UpsertCalendarSourceRequest(
string Scope,
Guid? OrganizationId,
Guid? WorkspaceId,
@@ -59,7 +59,7 @@ public record UpsertCalendarSourceRequest(
bool IsEnabled,
string? InheritanceMode);
public class UpsertCalendarSourceRequestValidator
internal class UpsertCalendarSourceRequestValidator
: FastEndpoints.Validator<UpsertCalendarSourceRequest>
{
public UpsertCalendarSourceRequestValidator()

View File

@@ -8,7 +8,7 @@ using Socialize.Api.Modules.Organizations.Services;
namespace Socialize.Api.Modules.CalendarIntegrations.Handlers;
public class CreateCalendarSourceHandler(
internal class CreateCalendarSourceHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
OrganizationAccessService organizationAccessService)

View File

@@ -8,7 +8,7 @@ using Socialize.Api.Modules.Organizations.Services;
namespace Socialize.Api.Modules.CalendarIntegrations.Handlers;
public class DeleteCalendarSourceHandler(
internal class DeleteCalendarSourceHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
OrganizationAccessService organizationAccessService)

View File

@@ -5,7 +5,7 @@ using Socialize.Api.Modules.CalendarIntegrations.Data;
namespace Socialize.Api.Modules.CalendarIntegrations.Handlers;
public sealed class ListCalendarCatalogRequest
internal sealed class ListCalendarCatalogRequest
{
public string? Search { get; set; }
public string? Country { get; set; }
@@ -16,7 +16,7 @@ public sealed class ListCalendarCatalogRequest
public string? Provider { get; set; }
}
public record CalendarCatalogEntryDto(
internal record CalendarCatalogEntryDto(
Guid Id,
string Title,
string Description,
@@ -30,7 +30,7 @@ public record CalendarCatalogEntryDto(
string TrustLevel,
string DefaultColor);
public class ListCalendarCatalogHandler(AppDbContext dbContext)
internal class ListCalendarCatalogHandler(AppDbContext dbContext)
: Endpoint<ListCalendarCatalogRequest, IReadOnlyCollection<CalendarCatalogEntryDto>>
{
public override void Configure()

View File

@@ -7,14 +7,14 @@ using Socialize.Api.Modules.CalendarIntegrations.Services;
namespace Socialize.Api.Modules.CalendarIntegrations.Handlers;
public sealed class ListCalendarEventsRequest
internal sealed class ListCalendarEventsRequest
{
public Guid? WorkspaceId { get; set; }
public DateOnly? StartDate { get; set; }
public DateOnly? EndDate { get; set; }
}
public record CalendarEventDto(
internal record CalendarEventDto(
Guid Id,
Guid CalendarSourceId,
string SourceEventUid,
@@ -35,7 +35,7 @@ public record CalendarEventDto(
DateTimeOffset? SourceLastModifiedAt,
DateTimeOffset ImportedAt);
public class ListCalendarEventsHandler(
internal class ListCalendarEventsHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<ListCalendarEventsRequest, IReadOnlyCollection<CalendarEventDto>>

View File

@@ -7,9 +7,9 @@ using Socialize.Api.Modules.CalendarIntegrations.Services;
namespace Socialize.Api.Modules.CalendarIntegrations.Handlers;
public record ListCalendarSourcesRequest(Guid? WorkspaceId);
internal record ListCalendarSourcesRequest(Guid? WorkspaceId);
public class ListCalendarSourcesHandler(
internal class ListCalendarSourcesHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<ListCalendarSourcesRequest, IReadOnlyCollection<CalendarSourceDto>>

View File

@@ -8,7 +8,7 @@ using Socialize.Api.Modules.Organizations.Services;
namespace Socialize.Api.Modules.CalendarIntegrations.Handlers;
public class RefreshCalendarSourceHandler(
internal class RefreshCalendarSourceHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
OrganizationAccessService organizationAccessService,

View File

@@ -8,7 +8,7 @@ using Socialize.Api.Modules.Organizations.Services;
namespace Socialize.Api.Modules.CalendarIntegrations.Handlers;
public class UpdateCalendarSourceHandler(
internal class UpdateCalendarSourceHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
OrganizationAccessService organizationAccessService)

View File

@@ -8,14 +8,14 @@ using Socialize.Api.Modules.Identity.Data;
namespace Socialize.Api.Modules.CalendarIntegrations.Handlers;
public record UserCalendarExportFeedDto(
internal record UserCalendarExportFeedDto(
bool IsEnabled,
string? FeedUrl,
DateTimeOffset? CreatedAt,
DateTimeOffset? UpdatedAt,
DateTimeOffset? RevokedAt);
public class GetUserCalendarExportFeedHandler(AppDbContext dbContext)
internal class GetUserCalendarExportFeedHandler(AppDbContext dbContext)
: EndpointWithoutRequest<UserCalendarExportFeedDto>
{
public override void Configure()
@@ -33,7 +33,7 @@ public class GetUserCalendarExportFeedHandler(AppDbContext dbContext)
}
}
public class EnableUserCalendarExportFeedHandler(AppDbContext dbContext)
internal class EnableUserCalendarExportFeedHandler(AppDbContext dbContext)
: EndpointWithoutRequest<UserCalendarExportFeedDto>
{
public override void Configure()
@@ -81,7 +81,7 @@ public class EnableUserCalendarExportFeedHandler(AppDbContext dbContext)
}
}
public class RegenerateUserCalendarExportFeedHandler(AppDbContext dbContext)
internal class RegenerateUserCalendarExportFeedHandler(AppDbContext dbContext)
: EndpointWithoutRequest<UserCalendarExportFeedDto>
{
public override void Configure()
@@ -120,7 +120,7 @@ public class RegenerateUserCalendarExportFeedHandler(AppDbContext dbContext)
}
}
public class RevokeUserCalendarExportFeedHandler(AppDbContext dbContext)
internal class RevokeUserCalendarExportFeedHandler(AppDbContext dbContext)
: EndpointWithoutRequest<UserCalendarExportFeedDto>
{
public override void Configure()
@@ -147,7 +147,7 @@ public class RevokeUserCalendarExportFeedHandler(AppDbContext dbContext)
}
}
public class GetUserCalendarExportFeedIcsHandler(
internal class GetUserCalendarExportFeedIcsHandler(
AppDbContext dbContext,
CalendarExportFeedService feedService)
: EndpointWithoutRequest

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.CalendarIntegrations;
public static class ModuleRegistration
internal static class ModuleRegistration
{
public static WebApplicationBuilder AddCalendarIntegrationsModule(this WebApplicationBuilder builder)
{

View File

@@ -2,7 +2,7 @@ using System.Text;
namespace Socialize.Api.Modules.CalendarIntegrations.Services;
public sealed record CalendarExportFeedEvent(
internal sealed record CalendarExportFeedEvent(
string Uid,
string Title,
DateTimeOffset StartsAt,
@@ -11,7 +11,7 @@ public sealed record CalendarExportFeedEvent(
string? Description,
string? Url);
public class CalendarExportFeedBuilder
internal class CalendarExportFeedBuilder
{
public string Build(string calendarName, IReadOnlyCollection<CalendarExportFeedEvent> events)
{

View File

@@ -3,7 +3,7 @@ using Socialize.Api.Data;
namespace Socialize.Api.Modules.CalendarIntegrations.Services;
public class CalendarExportFeedService(AppDbContext dbContext, CalendarExportFeedBuilder feedBuilder)
internal class CalendarExportFeedService(AppDbContext dbContext, CalendarExportFeedBuilder feedBuilder)
{
public async Task<string> BuildUserFeedAsync(Guid userId, string? userEmail, string appBaseUrl, CancellationToken ct)
{

View File

@@ -2,7 +2,7 @@ using System.Security.Cryptography;
namespace Socialize.Api.Modules.CalendarIntegrations.Services;
public static class CalendarExportFeedTokenService
internal static class CalendarExportFeedTokenService
{
public static string GenerateToken()
{

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.CalendarIntegrations.Services;
public sealed class CalendarImportBackgroundService(
internal sealed class CalendarImportBackgroundService(
IServiceScopeFactory scopeFactory,
ILogger<CalendarImportBackgroundService> logger)
: BackgroundService

View File

@@ -5,7 +5,7 @@ using System.Text.Json;
namespace Socialize.Api.Modules.CalendarIntegrations.Services;
public sealed class CalendarImportSyncService(
internal sealed class CalendarImportSyncService(
AppDbContext dbContext,
IHttpClientFactory httpClientFactory,
IcsCalendarParser parser)

View File

@@ -1,13 +1,13 @@
namespace Socialize.Api.Modules.CalendarIntegrations.Services;
public static class CalendarSourceScopes
internal static class CalendarSourceScopes
{
public const string Organization = "Organization";
public const string Workspace = "Workspace";
public const string User = "User";
}
public static class CalendarSourceInheritanceModes
internal static class CalendarSourceInheritanceModes
{
public const string Required = "Required";
public const string Optional = "Optional";

View File

@@ -2,7 +2,7 @@ using Socialize.Api.Modules.CalendarIntegrations.Data;
namespace Socialize.Api.Modules.CalendarIntegrations.Services;
public static class CalendarSourceRules
internal static class CalendarSourceRules
{
public static readonly string[] SupportedScopes =
[

View File

@@ -2,7 +2,7 @@ using System.Globalization;
namespace Socialize.Api.Modules.CalendarIntegrations.Services;
public record ParsedCalendarEvent(
internal record ParsedCalendarEvent(
string SourceEventUid,
string Title,
string? Description,
@@ -39,7 +39,7 @@ internal sealed record IcsRawEvent(
string? SourceUrl,
DateTimeOffset? LastModifiedAt);
public sealed class IcsCalendarParser
internal sealed class IcsCalendarParser
{
public IReadOnlyCollection<ParsedCalendarEvent> Parse(
string content,

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Campaigns.Data;
public class Campaign
internal class Campaign
{
public Guid Id { get; init; }
public Guid WorkspaceId { get; set; }

View File

@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
namespace Socialize.Api.Modules.Campaigns.Data;
public static class CampaignModelConfiguration
internal static class CampaignModelConfiguration
{
public static ModelBuilder ConfigureCampaignsModule(this ModelBuilder modelBuilder)
{

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Modules.Campaigns.Data;
namespace Socialize.Api.Modules.Campaigns.Handlers;
public record CreateCampaignRequest(
internal record CreateCampaignRequest(
Guid WorkspaceId,
Guid ClientId,
string Name,
@@ -15,7 +15,7 @@ public record CreateCampaignRequest(
string? Description,
string? Notes);
public class CreateCampaignRequestValidator
internal class CreateCampaignRequestValidator
: Validator<CreateCampaignRequest>
{
public CreateCampaignRequestValidator()
@@ -32,7 +32,7 @@ public class CreateCampaignRequestValidator
}
}
public class CreateCampaignHandler(
internal class CreateCampaignHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<CreateCampaignRequest, CampaignDto>

View File

@@ -6,9 +6,9 @@ using Socialize.Api.Modules.Campaigns.Data;
namespace Socialize.Api.Modules.Campaigns.Handlers;
public record GetCampaignsRequest(Guid? WorkspaceId, Guid? ClientId);
internal record GetCampaignsRequest(Guid? WorkspaceId, Guid? ClientId);
public record CampaignDto(
internal record CampaignDto(
Guid Id,
Guid WorkspaceId,
Guid ClientId,
@@ -19,7 +19,7 @@ public record CampaignDto(
DateTimeOffset StartDate,
DateTimeOffset EndDate);
public class GetCampaignsHandler(
internal class GetCampaignsHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<GetCampaignsRequest, IReadOnlyCollection<CampaignDto>>

View File

@@ -2,7 +2,7 @@ using Socialize.Api.Modules.Campaigns.Data;
namespace Socialize.Api.Modules.Campaigns;
public static class ModuleRegistration
internal static class ModuleRegistration
{
public static WebApplicationBuilder AddCampaignsModule(
this WebApplicationBuilder builder)

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Channels.Data;
public class Channel
internal class Channel
{
public Guid Id { get; init; }
public Guid WorkspaceId { get; set; }

View File

@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
namespace Socialize.Api.Modules.Channels.Data;
public static class ChannelModelConfiguration
internal static class ChannelModelConfiguration
{
public static ModelBuilder ConfigureChannelsModule(this ModelBuilder modelBuilder)
{

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Channels.Handlers;
public record ChannelDto(
internal record ChannelDto(
Guid Id,
Guid WorkspaceId,
string Name,

View File

@@ -6,14 +6,14 @@ using Socialize.Api.Modules.Channels.Data;
namespace Socialize.Api.Modules.Channels.Handlers;
public record CreateChannelRequest(
internal record CreateChannelRequest(
Guid WorkspaceId,
string Name,
string Network,
string? Handle,
string? ExternalUrl);
public class CreateChannelRequestValidator
internal class CreateChannelRequestValidator
: Validator<CreateChannelRequest>
{
private static readonly string[] AllowedNetworks =
@@ -39,7 +39,7 @@ public class CreateChannelRequestValidator
}
}
public class CreateChannelHandler(
internal class CreateChannelHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<CreateChannelRequest, ChannelDto>

View File

@@ -6,9 +6,9 @@ using Socialize.Api.Modules.Channels.Data;
namespace Socialize.Api.Modules.Channels.Handlers;
public record GetChannelsRequest(Guid? WorkspaceId);
internal record GetChannelsRequest(Guid? WorkspaceId);
public class GetChannelsHandler(
internal class GetChannelsHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<GetChannelsRequest, IReadOnlyCollection<ChannelDto>>

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Channels;
public static class ModuleRegistration
internal static class ModuleRegistration
{
public static WebApplicationBuilder AddChannelsModule(
this WebApplicationBuilder builder)

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Clients.Data;
public class Client
internal class Client
{
public Guid Id { get; init; }
public Guid WorkspaceId { get; set; }

View File

@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
namespace Socialize.Api.Modules.Clients.Data;
public static class ClientModelConfiguration
internal static class ClientModelConfiguration
{
public static ModelBuilder ConfigureClientsModule(this ModelBuilder modelBuilder)
{

View File

@@ -7,13 +7,13 @@ using Socialize.Api.Modules.Clients.Data;
namespace Socialize.Api.Modules.Clients.Handlers;
public record ChangeClientPortraitRequest(
internal record ChangeClientPortraitRequest(
IFormFile File);
public record ChangeClientPortraitResponse(
internal record ChangeClientPortraitResponse(
string BlobUrl);
public sealed class ChangeClientPortraitRequestValidator : Validator<ChangeClientPortraitRequest>
internal sealed class ChangeClientPortraitRequestValidator : Validator<ChangeClientPortraitRequest>
{
public ChangeClientPortraitRequestValidator()
{
@@ -23,7 +23,7 @@ public sealed class ChangeClientPortraitRequestValidator : Validator<ChangeClien
}
}
public class ChangeClientPortraitHandler(
internal class ChangeClientPortraitHandler(
AppDbContext clientsDbContext,
IBlobStorage blobStorage,
AccessScopeService accessScopeService)

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Infrastructure.Security;
namespace Socialize.Api.Modules.Clients.Handlers;
public record CreateClientRequest(
internal record CreateClientRequest(
Guid WorkspaceId,
string Name,
string? PortraitUrl,
@@ -14,7 +14,7 @@ public record CreateClientRequest(
string? PrimaryContactEmail,
string? PrimaryContactPortraitUrl);
public class CreateClientRequestValidator
internal class CreateClientRequestValidator
: Validator<CreateClientRequest>
{
public CreateClientRequestValidator()
@@ -28,7 +28,7 @@ public class CreateClientRequestValidator
}
}
public class CreateClientHandler(
internal class CreateClientHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<CreateClientRequest, ClientDto>

View File

@@ -6,9 +6,9 @@ using Socialize.Api.Modules.Clients.Data;
namespace Socialize.Api.Modules.Clients.Handlers;
public record GetClientsRequest(Guid? WorkspaceId);
internal record GetClientsRequest(Guid? WorkspaceId);
public record ClientDto(
internal record ClientDto(
Guid Id,
Guid WorkspaceId,
string Name,
@@ -18,7 +18,7 @@ public record ClientDto(
string? PrimaryContactEmail,
string? PrimaryContactPortraitUrl);
public class GetClientsHandler(
internal class GetClientsHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<GetClientsRequest, IReadOnlyCollection<ClientDto>>

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Modules.Clients.Data;
namespace Socialize.Api.Modules.Clients.Handlers;
public record UpdateClientRequest(
internal record UpdateClientRequest(
string Name,
string? PortraitUrl,
string Status,
@@ -14,7 +14,7 @@ public record UpdateClientRequest(
string? PrimaryContactEmail,
string? PrimaryContactPortraitUrl);
public class UpdateClientRequestValidator
internal class UpdateClientRequestValidator
: Validator<UpdateClientRequest>
{
public UpdateClientRequestValidator()
@@ -28,7 +28,7 @@ public class UpdateClientRequestValidator
}
}
public class UpdateClientHandler(
internal class UpdateClientHandler(
AppDbContext clientsDbContext,
AccessScopeService accessScopeService)
: Endpoint<UpdateClientRequest, ClientDto>

View File

@@ -2,7 +2,7 @@ using Socialize.Api.Modules.Clients.Data;
namespace Socialize.Api.Modules.Clients;
public static class ModuleRegistration
internal static class ModuleRegistration
{
public static WebApplicationBuilder AddClientsModule(
this WebApplicationBuilder builder)

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Comments.Data;
public class Comment
internal class Comment
{
public Guid Id { get; init; }
public Guid WorkspaceId { get; set; }

View File

@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
namespace Socialize.Api.Modules.Comments.Data;
public static class CommentModelConfiguration
internal static class CommentModelConfiguration
{
public static ModelBuilder ConfigureCommentsModule(this ModelBuilder modelBuilder)
{

View File

@@ -11,14 +11,14 @@ using System.Text.Json;
namespace Socialize.Api.Modules.Comments.Handlers;
public record CreateCommentRequest(
internal record CreateCommentRequest(
Guid WorkspaceId,
Guid ContentItemId,
Guid? ParentCommentId,
string Body,
IFormFile? Attachment);
public class CreateCommentRequestValidator
internal class CreateCommentRequestValidator
: Validator<CreateCommentRequest>
{
public CreateCommentRequestValidator()
@@ -29,7 +29,7 @@ public class CreateCommentRequestValidator
}
}
public class CreateCommentHandler(
internal class CreateCommentHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
IBlobStorage blobStorage,

View File

@@ -7,9 +7,9 @@ using Socialize.Api.Infrastructure.Security;
namespace Socialize.Api.Modules.Comments.Handlers;
public record GetCommentsRequest(Guid ContentItemId);
internal record GetCommentsRequest(Guid ContentItemId);
public record CommentDto(
internal record CommentDto(
Guid Id,
Guid WorkspaceId,
Guid ContentItemId,
@@ -25,7 +25,7 @@ public record CommentDto(
string? AttachmentBlobUrl,
DateTimeOffset CreatedAt);
public class GetCommentsHandler(
internal class GetCommentsHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<GetCommentsRequest, IReadOnlyCollection<CommentDto>>

View File

@@ -2,7 +2,7 @@ using Socialize.Api.Modules.Comments.Data;
namespace Socialize.Api.Modules.Comments;
public static class ModuleRegistration
internal static class ModuleRegistration
{
public static WebApplicationBuilder AddCommentsModule(
this WebApplicationBuilder builder)

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.ContentItems.Contracts;
public record ContentItemActivityWriteModel(
internal record ContentItemActivityWriteModel(
Guid WorkspaceId,
Guid ContentItemId,
string EventType,
@@ -11,7 +11,7 @@ public record ContentItemActivityWriteModel(
string? ActorEmail,
string? MetadataJson);
public interface IContentItemActivityWriter
internal interface IContentItemActivityWriter
{
Task WriteAsync(ContentItemActivityWriteModel model, CancellationToken cancellationToken = default);
}

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.ContentItems.Data;
public class ContentItem
internal class ContentItem
{
public Guid Id { get; init; }
public Guid WorkspaceId { get; set; }

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.ContentItems.Data;
public class ContentItemActivityEntry
internal class ContentItemActivityEntry
{
public Guid Id { get; set; }
public Guid WorkspaceId { get; set; }

View File

@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
namespace Socialize.Api.Modules.ContentItems.Data;
public static class ContentItemModelConfiguration
internal static class ContentItemModelConfiguration
{
public static ModelBuilder ConfigureContentItemsModule(this ModelBuilder modelBuilder)
{

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.ContentItems.Data;
public class ContentItemRevision
internal class ContentItemRevision
{
public Guid Id { get; init; }
public Guid ContentItemId { get; set; }

View File

@@ -10,7 +10,7 @@ using System.Text.Json;
namespace Socialize.Api.Modules.ContentItems.Handlers;
public record CreateContentItemRequest(
internal record CreateContentItemRequest(
Guid WorkspaceId,
Guid ClientId,
Guid CampaignId,
@@ -20,7 +20,7 @@ public record CreateContentItemRequest(
string? Hashtags,
DateTimeOffset? DueDate);
public class CreateContentItemRequestValidator
internal class CreateContentItemRequestValidator
: Validator<CreateContentItemRequest>
{
public CreateContentItemRequestValidator()
@@ -35,7 +35,7 @@ public class CreateContentItemRequestValidator
}
}
public class CreateContentItemHandler(
internal class CreateContentItemHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
IContentItemActivityWriter activityWriter,

View File

@@ -9,7 +9,7 @@ using System.Text.Json;
namespace Socialize.Api.Modules.ContentItems.Handlers;
public record CreateContentItemRevisionRequest(
internal record CreateContentItemRevisionRequest(
string Title,
string PublicationMessage,
string PublicationTargets,
@@ -17,7 +17,7 @@ public record CreateContentItemRevisionRequest(
string? ChangeSummary,
DateTimeOffset? DueDate);
public class CreateContentItemRevisionRequestValidator
internal class CreateContentItemRevisionRequestValidator
: Validator<CreateContentItemRevisionRequest>
{
public CreateContentItemRevisionRequestValidator()
@@ -30,7 +30,7 @@ public class CreateContentItemRevisionRequestValidator
}
}
public class CreateContentItemRevisionHandler(
internal class CreateContentItemRevisionHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
IContentItemActivityWriter activityWriter,

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Modules.ContentItems.Data;
namespace Socialize.Api.Modules.ContentItems.Handlers;
public record ContentItemDetailDto(
internal record ContentItemDetailDto(
Guid Id,
Guid WorkspaceId,
Guid ClientId,
@@ -21,7 +21,7 @@ public record ContentItemDetailDto(
int CurrentRevisionNumber,
DateTimeOffset CreatedAt);
public class GetContentItemHandler(
internal class GetContentItemHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: EndpointWithoutRequest<ContentItemDetailDto>

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Modules.ContentItems.Data;
namespace Socialize.Api.Modules.ContentItems.Handlers;
public record ContentItemActivityEntryDto(
internal record ContentItemActivityEntryDto(
Guid Id,
Guid WorkspaceId,
Guid ContentItemId,
@@ -19,7 +19,7 @@ public record ContentItemActivityEntryDto(
string? MetadataJson,
DateTimeOffset CreatedAt);
public class GetContentItemActivityHandler(
internal class GetContentItemActivityHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: EndpointWithoutRequest<IReadOnlyCollection<ContentItemActivityEntryDto>>

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Modules.ContentItems.Data;
namespace Socialize.Api.Modules.ContentItems.Handlers;
public record ContentItemRevisionDto(
internal record ContentItemRevisionDto(
Guid Id,
Guid ContentItemId,
int RevisionNumber,
@@ -19,7 +19,7 @@ public record ContentItemRevisionDto(
Guid? CreatedByUserId,
DateTimeOffset CreatedAt);
public class GetContentItemRevisionsHandler(
internal class GetContentItemRevisionsHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: EndpointWithoutRequest<IReadOnlyCollection<ContentItemRevisionDto>>

View File

@@ -6,9 +6,9 @@ using Socialize.Api.Modules.ContentItems.Data;
namespace Socialize.Api.Modules.ContentItems.Handlers;
public record GetContentItemsRequest(Guid? WorkspaceId, Guid? ClientId, Guid? CampaignId);
internal record GetContentItemsRequest(Guid? WorkspaceId, Guid? ClientId, Guid? CampaignId);
public record ContentItemDto(
internal record ContentItemDto(
Guid Id,
Guid WorkspaceId,
Guid ClientId,
@@ -22,7 +22,7 @@ public record ContentItemDto(
string CurrentRevisionLabel,
int CurrentRevisionNumber);
public class GetContentItemsHandler(
internal class GetContentItemsHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService)
: Endpoint<GetContentItemsRequest, IReadOnlyCollection<ContentItemDto>>

View File

@@ -11,9 +11,9 @@ using System.Text.Json;
namespace Socialize.Api.Modules.ContentItems.Handlers;
public record UpdateContentItemStatusRequest(string Status);
internal record UpdateContentItemStatusRequest(string Status);
public class UpdateContentItemStatusRequestValidator
internal class UpdateContentItemStatusRequestValidator
: Validator<UpdateContentItemStatusRequest>
{
public UpdateContentItemStatusRequestValidator()
@@ -22,7 +22,7 @@ public class UpdateContentItemStatusRequestValidator
}
}
public class UpdateContentItemStatusHandler(
internal class UpdateContentItemStatusHandler(
AppDbContext dbContext,
AccessScopeService accessScopeService,
ApprovalWorkflowRuntimeService approvalWorkflowRuntimeService,

View File

@@ -3,7 +3,7 @@ using Socialize.Api.Modules.ContentItems.Services;
namespace Socialize.Api.Modules.ContentItems;
public static class ModuleRegistration
internal static class ModuleRegistration
{
public static WebApplicationBuilder AddContentItemsModule(
this WebApplicationBuilder builder)

View File

@@ -4,7 +4,7 @@ using Socialize.Api.Modules.ContentItems.Data;
namespace Socialize.Api.Modules.ContentItems.Services;
public class ContentItemActivityWriter(
internal class ContentItemActivityWriter(
AppDbContext dbContext)
: IContentItemActivityWriter
{

View File

@@ -2,7 +2,7 @@ using Socialize.Api.Modules.Feedback.Data;
namespace Socialize.Api.Modules.Feedback.Contracts;
public record FeedbackContextDto(
internal record FeedbackContextDto(
Guid? WorkspaceId,
string? WorkspaceName,
Guid? ClientId,
@@ -12,14 +12,14 @@ public record FeedbackContextDto(
Guid? ContentItemId,
string? ContentItemTitle);
public record FeedbackMetadataDto(
internal record FeedbackMetadataDto(
string SubmittedPath,
string? BrowserUserAgent,
int? ViewportWidth,
int? ViewportHeight,
string? AppVersion);
public record FeedbackScreenshotDto(
internal record FeedbackScreenshotDto(
Guid Id,
string FileName,
string ContentType,
@@ -27,7 +27,7 @@ public record FeedbackScreenshotDto(
string DownloadPath,
DateTimeOffset CreatedAt);
public record FeedbackReportDto(
internal record FeedbackReportDto(
Guid Id,
string Type,
string Status,
@@ -45,7 +45,7 @@ public record FeedbackReportDto(
DateTimeOffset? CancelledAt,
string? CancellationReason);
public record FeedbackTimelineItemDto(
internal record FeedbackTimelineItemDto(
Guid Id,
string Kind,
Guid ActorUserId,
@@ -59,7 +59,7 @@ public record FeedbackTimelineItemDto(
string? Note,
DateTimeOffset CreatedAt);
public static class FeedbackDtoMapper
internal static class FeedbackDtoMapper
{
public static FeedbackReportDto ToDto(this FeedbackReport report)
{

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Feedback.Data;
public class FeedbackActivityEntry
internal class FeedbackActivityEntry
{
public Guid Id { get; set; }
public Guid FeedbackReportId { get; set; }

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Feedback.Data;
public class FeedbackComment
internal class FeedbackComment
{
public Guid Id { get; set; }
public Guid FeedbackReportId { get; set; }

View File

@@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
namespace Socialize.Api.Modules.Feedback.Data;
public static class FeedbackModelConfiguration
internal static class FeedbackModelConfiguration
{
public static ModelBuilder ConfigureFeedbackModule(this ModelBuilder modelBuilder)
{

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Feedback.Data;
public class FeedbackReport
internal class FeedbackReport
{
public Guid Id { get; set; }
public FeedbackType Type { get; set; }

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Feedback.Data;
public class FeedbackScreenshot
internal class FeedbackScreenshot
{
public Guid Id { get; set; }
public Guid FeedbackReportId { get; set; }

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Feedback.Data;
public enum FeedbackStatus
internal enum FeedbackStatus
{
New,
Planned,

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Feedback.Data;
public class FeedbackTag
internal class FeedbackTag
{
public Guid Id { get; set; }
public Guid FeedbackReportId { get; set; }

View File

@@ -1,6 +1,6 @@
namespace Socialize.Api.Modules.Feedback.Data;
public enum FeedbackType
internal enum FeedbackType
{
Bug,
Suggestion,

View File

@@ -9,7 +9,7 @@ using Socialize.Api.Modules.Identity.Contracts;
namespace Socialize.Api.Modules.Feedback.Handlers;
public class AddDeveloperFeedbackCommentHandler(
internal class AddDeveloperFeedbackCommentHandler(
AppDbContext dbContext,
FeedbackNotificationService notificationService)
: Endpoint<AddFeedbackCommentRequest, FeedbackTimelineItemDto>

View File

@@ -8,9 +8,9 @@ using Socialize.Api.Modules.Feedback.Services;
namespace Socialize.Api.Modules.Feedback.Handlers;
public record AddFeedbackCommentRequest(string Body);
internal record AddFeedbackCommentRequest(string Body);
public class AddFeedbackCommentRequestValidator
internal class AddFeedbackCommentRequestValidator
: Validator<AddFeedbackCommentRequest>
{
public AddFeedbackCommentRequestValidator()
@@ -19,7 +19,7 @@ public class AddFeedbackCommentRequestValidator
}
}
public class AddMyFeedbackCommentHandler(
internal class AddMyFeedbackCommentHandler(
AppDbContext dbContext,
FeedbackNotificationService notificationService)
: Endpoint<AddFeedbackCommentRequest, FeedbackTimelineItemDto>

View File

@@ -9,9 +9,9 @@ using Socialize.Api.Modules.Feedback.Services;
namespace Socialize.Api.Modules.Feedback.Handlers;
public record AttachMyFeedbackScreenshotRequest(IFormFile File);
internal record AttachMyFeedbackScreenshotRequest(IFormFile File);
public class AttachMyFeedbackScreenshotRequestValidator
internal class AttachMyFeedbackScreenshotRequestValidator
: Validator<AttachMyFeedbackScreenshotRequest>
{
public AttachMyFeedbackScreenshotRequestValidator()
@@ -20,7 +20,7 @@ public class AttachMyFeedbackScreenshotRequestValidator
}
}
public class AttachMyFeedbackScreenshotHandler(
internal class AttachMyFeedbackScreenshotHandler(
AppDbContext dbContext,
IBlobStorage blobStorage)
: Endpoint<AttachMyFeedbackScreenshotRequest, FeedbackReportDto>

View File

@@ -8,9 +8,9 @@ using Socialize.Api.Modules.Feedback.Services;
namespace Socialize.Api.Modules.Feedback.Handlers;
public record CancelMyFeedbackRequest(string? Reason);
internal record CancelMyFeedbackRequest(string? Reason);
public class CancelMyFeedbackRequestValidator
internal class CancelMyFeedbackRequestValidator
: Validator<CancelMyFeedbackRequest>
{
public CancelMyFeedbackRequestValidator()
@@ -19,7 +19,7 @@ public class CancelMyFeedbackRequestValidator
}
}
public class CancelMyFeedbackHandler(AppDbContext dbContext)
internal class CancelMyFeedbackHandler(AppDbContext dbContext)
: Endpoint<CancelMyFeedbackRequest, FeedbackReportDto>
{
public override void Configure()

View File

@@ -7,7 +7,7 @@ using Socialize.Api.Modules.Identity.Contracts;
namespace Socialize.Api.Modules.Feedback.Handlers;
public class GetDeveloperFeedbackHandler(AppDbContext dbContext)
internal class GetDeveloperFeedbackHandler(AppDbContext dbContext)
: EndpointWithoutRequest<FeedbackReportDto>
{
public override void Configure()

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Modules.Identity.Contracts;
namespace Socialize.Api.Modules.Feedback.Handlers;
public class GetDeveloperFeedbackTimelineHandler(AppDbContext dbContext)
internal class GetDeveloperFeedbackTimelineHandler(AppDbContext dbContext)
: EndpointWithoutRequest<IReadOnlyCollection<FeedbackTimelineItemDto>>
{
public override void Configure()

View File

@@ -9,7 +9,7 @@ using Socialize.Api.Modules.Identity.Contracts;
namespace Socialize.Api.Modules.Feedback.Handlers;
public class GetFeedbackScreenshotHandler(
internal class GetFeedbackScreenshotHandler(
AppDbContext dbContext,
IBlobStorage blobStorage)
: EndpointWithoutRequest<Stream>

View File

@@ -7,7 +7,7 @@ using Socialize.Api.Modules.Feedback.Data;
namespace Socialize.Api.Modules.Feedback.Handlers;
public class GetMyFeedbackHandler(AppDbContext dbContext)
internal class GetMyFeedbackHandler(AppDbContext dbContext)
: EndpointWithoutRequest<FeedbackReportDto>
{
public override void Configure()

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Modules.Feedback.Contracts;
namespace Socialize.Api.Modules.Feedback.Handlers;
public class GetMyFeedbackTimelineHandler(AppDbContext dbContext)
internal class GetMyFeedbackTimelineHandler(AppDbContext dbContext)
: EndpointWithoutRequest<IReadOnlyCollection<FeedbackTimelineItemDto>>
{
public override void Configure()

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Modules.Identity.Contracts;
namespace Socialize.Api.Modules.Feedback.Handlers;
public class ListDeveloperFeedbackHandler(AppDbContext dbContext)
internal class ListDeveloperFeedbackHandler(AppDbContext dbContext)
: EndpointWithoutRequest<IReadOnlyCollection<FeedbackReportDto>>
{
public override void Configure()

View File

@@ -5,7 +5,7 @@ using Socialize.Api.Modules.Identity.Contracts;
namespace Socialize.Api.Modules.Feedback.Handlers;
public class ListFeedbackTagsHandler(AppDbContext dbContext)
internal class ListFeedbackTagsHandler(AppDbContext dbContext)
: EndpointWithoutRequest<IReadOnlyCollection<string>>
{
public override void Configure()

View File

@@ -6,7 +6,7 @@ using Socialize.Api.Modules.Feedback.Contracts;
namespace Socialize.Api.Modules.Feedback.Handlers;
public class ListMyFeedbackHandler(AppDbContext dbContext)
internal class ListMyFeedbackHandler(AppDbContext dbContext)
: EndpointWithoutRequest<IReadOnlyCollection<FeedbackReportDto>>
{
public override void Configure()

Some files were not shown because too many files have changed in this diff Show More