feature: saved exports

initial - not feature complete
This commit is contained in:
Gary Sharp
2025-02-09 17:14:04 +11:00
parent 2fce645066
commit ac24055365
35 changed files with 2244 additions and 156 deletions
+7 -15
View File
@@ -18,31 +18,23 @@ namespace Disco.Services.Jobs
public class JobExport : IExport<JobExportOptions, JobExportRecord>
{
public Guid Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public bool TimestampSuffix { get; set; }
public string Name { get; } = "Job Export";
public JobExportOptions Options { get; set; }
public string SuggestedFilenamePrefix { get; } = "JobExport";
public string FilenamePrefix { get; } = "JobExport";
public string ExcelWorksheetName { get; } = "JobExport";
public string ExcelTableName { get; } = "Jobs";
[JsonConstructor]
private JobExport()
{
}
public JobExport(string name, string description, bool timestampSuffix, JobExportOptions options)
public JobExport(JobExportOptions options)
{
Id = Guid.NewGuid();
Name = name;
Description = description;
TimestampSuffix = timestampSuffix;
Options = options;
}
public JobExport(JobExportOptions options)
: this("Job Export", null, true, options)
[JsonConstructor]
public JobExport()
: this(JobExportOptions.DefaultOptions())
{
}