Spaces:
Running

File size: 1,933 Bytes
0d9e67d
 
 
 
b01b49e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0d9e67d
 
 
 
 
 
 
b01b49e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0d9e67d
 
 
 
 
 
 
 
 
b01b49e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System.Collections.Generic;

namespace FlowAPI.Application.DTOs.AI
{
    public class QuestAssigneeDto
    {
        public string Email { get; set; } = string.Empty;
        public string DisplayName { get; set; } = string.Empty;
        public string SharedWithUserId { get; set; } = string.Empty;
    }

    public class QuestSubgoalsDto
    {
        public int Total { get; set; }
        public int Done { get; set; }
    }

    public class QuestOptionDto
    {
        public string Id { get; set; } = string.Empty;
        public string Label { get; set; } = string.Empty;
    }

    public class QuestNodeDto
    {
        public string Id { get; set; } = string.Empty;
        public string Label { get; set; } = string.Empty;
        public string? Description { get; set; }
        public string? DependsOn { get; set; }
        public string? Condition { get; set; }

        // Expanded fields to support rich graphs
        public string? Type { get; set; }
        public string? Status { get; set; }
        public int? Progress { get; set; }
        public bool? ShowProgress { get; set; }
        public string? Color { get; set; }
        public bool? IsPinned { get; set; }
        public List<string>? Tags { get; set; }
        public List<QuestAssigneeDto>? Assignees { get; set; }
        public QuestSubgoalsDto? Subgoals { get; set; }
        public string? Url { get; set; }
        public List<QuestOptionDto>? Options { get; set; }
        public List<string>? SelectedOptions { get; set; }
        public bool? MultiSelect { get; set; }
        public object? ResetRule { get; set; }
        public double? Width { get; set; }
        public double? Height { get; set; }
    }

    public class QuestSchemaDto
    {
        public string Title { get; set; } = string.Empty;
        public string? Description { get; set; }
        public List<QuestNodeDto> Nodes { get; set; } = new();
    }
}