Adds per-playout REST for classic-playout alternate schedules and
block-playout templates, plus the default-deco read-side deferred from S3:
- GET/PUT /api/playouts/{id}/alternate-schedules (Classic only; 422 otherwise)
- GET/PUT /api/playouts/{id}/templates (Block only; 422 otherwise)
- PlayoutResponseModel gains decoId/decoName (GetPlayoutById includes Deco)
PUT assigns Index from array order (top = highest priority, last = catch-all
default), mirroring the Blazor editors. Alternate-schedule PUT requires a
non-empty list and existing ProgramScheduleIds; template PUT requires existing
TemplateIds and any supplied DecoTemplateId. Regenerates the OpenAPI spec.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
23 lines
540 B
C#
23 lines
540 B
C#
#nullable enable
|
|
namespace ErsatzTV.Core.Api.Scheduling;
|
|
|
|
public record PlayoutTemplateResponseModel(
|
|
int Id,
|
|
int Index,
|
|
int TemplateId,
|
|
string TemplateName,
|
|
string TemplateGroupName,
|
|
int? DecoTemplateId,
|
|
string? DecoTemplateName,
|
|
string? DecoTemplateGroupName,
|
|
ICollection<DayOfWeek> DaysOfWeek,
|
|
ICollection<int> DaysOfMonth,
|
|
ICollection<int> MonthsOfYear,
|
|
bool LimitToDateRange,
|
|
int StartMonth,
|
|
int StartDay,
|
|
int? StartYear,
|
|
int EndMonth,
|
|
int EndDay,
|
|
int? EndYear);
|