Skip to content

Commit 3bff9e1

Browse files
FrostyApeOneFrostyApeOne
authored andcommitted
Updated FE models
1 parent 6c0befa commit 3bff9e1

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace GovUK.Dfe.CoreLibs.Contracts.ExternalApplications.Models.Request;
4+
5+
/// <summary>
6+
/// Request to set whether a template is live for end users in the current tenant.
7+
/// </summary>
8+
public class SetTemplateLiveRequest
9+
{
10+
/// <summary>
11+
/// When <c>true</c>, the template is available to end users who have permission.
12+
/// </summary>
13+
[JsonPropertyName("isLive")]
14+
public bool IsLive { get; set; }
15+
}

src/GovUK.Dfe.CoreLibs.Contracts/ExternalApplications/Models/Response/TemplateDto.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,11 @@ public class TemplateDto
1818

1919
[JsonPropertyName("latestVersionNumber")]
2020
public string? LatestVersionNumber { get; set; }
21+
22+
/// <summary>
23+
/// When <c>true</c>, end users with permission can access this template.
24+
/// Admins receive all catalogue templates and can use this flag for publish/preview UX.
25+
/// </summary>
26+
[JsonPropertyName("isLive")]
27+
public bool IsLive { get; set; }
2128
}

0 commit comments

Comments
 (0)