517b38791b
Add revision-protected reads, atomic upsert and deletion with structured actions. Preserve omitted translations and fix insertion of new push languages. Ref: IT-1627
12 lines
485 B
C#
12 lines
485 B
C#
namespace HrynCo.NotificationService.DAL.Abstract.Templates;
|
|
|
|
public sealed class PushTemplateDefinitionPatch
|
|
{
|
|
public Guid ServiceId { get; init; }
|
|
public required string Key { get; init; }
|
|
public Guid? Revision { get; init; }
|
|
public required IReadOnlyList<EmailTemplateVariable> Variables { get; init; }
|
|
public required IReadOnlyList<PushTemplateTranslation> Translations { get; init; }
|
|
public IReadOnlyList<string> RemoveLanguageCodes { get; init; } = [];
|
|
}
|