-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.go
162 lines (147 loc) · 4.59 KB
/
types.go
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
package main
import "time"
type Project struct {
URL string `json:"url"`
Key string `json:"key"`
Organization string `json:"organization"`
}
type SprintInformation struct {
goal string
state string
id string
name string
}
type ProjectApiResponse struct {
Id string `json:"id"`
}
type Config struct {
Organizations []Project `json:"organizations"`
}
type Sprint struct {
Id string `json:"id"`
Name string `json:"name"`
Goal string `json:"goal"`
State string `json:"state"`
}
type Planning struct {
ID string `json:"id"`
Origin string `json:"origin"`
CreatedAt int `json:"createdAt"`
Creator Creator `json:"creator"`
Reporter Reporter `json:"reporter"`
AssignedAt int `json:"assignedAt"`
InProgressAt int `json:"inProgressAt"`
ResolvedAt int `json:"resolvedAt"`
Assignee Assignee `json:"assignee"`
Resolver Resolver `json:"resolver"`
Resolution string `json:"resolution"`
Type string `json:"type"`
Status string `json:"status"`
StatusCategory string `json:"statusCategory"`
Summary string `json:"summary"`
Description string `json:"description"`
URL string `json:"url"`
Labels []string `json:"labels"`
SprintKeys []string `json:"sprintKeys"`
Priority string `json:"priority"`
StoryPointEstimate int `json:"storyPointEstimate"`
ParentIssue string `json:"parentIssue"`
Events []Event `json:"events"`
}
type Creator struct {
Name string `json:"name"`
Email string `json:"email"`
AccountID string `json:"accountId"`
LastActivity int `json:"lastActivity"`
}
type Reporter struct {
Name string `json:"name"`
Email string `json:"email"`
AccountID string `json:"accountId"`
LastActivity int `json:"lastActivity"`
}
type Assignee struct {
Name string `json:"name"`
Email string `json:"email"`
AccountID string `json:"accountId"`
LastActivity int `json:"lastActivity"`
}
type Resolver struct {
Name string `json:"name"`
Email string `json:"email"`
AccountID string `json:"accountId"`
LastActivity int `json:"lastActivity"`
}
type Event struct {
Type string `json:"type"`
Author struct {
Name string `json:"name"`
Email string `json:"email"`
AccountID string `json:"accountId"`
LastActivity int `json:"lastActivity"`
} `json:"author"`
CreatedAt int `json:"createdAt"`
To struct {
Name string `json:"name"`
Email string `json:"email"`
AccountID string `json:"accountId"`
LastActivity int `json:"lastActivity"`
} `json:"to,omitempty"`
From string `json:"from,omitempty"`
}
type ProjectQueryResponse struct {
Data struct {
Node struct {
ID string `json:"id"`
Title string `json:"title"`
Items struct {
TotalCount int `json:"totalCount"`
Edges []struct {
Cursor string `json:"cursor"`
Node struct {
ItemID string `json:"itemID"`
Type string `json:"type"`
Status struct {
Name string `json:"name"`
UpdatedAt time.Time `json:"updatedAt"`
Creator struct {
Typename string `json:"__typename"`
Login string `json:"login"`
Name string `json:"name"`
} `json:"creator"`
} `json:"status"`
Content struct {
Typename string `json:"__typename"`
Title string `json:"title"`
Author struct {
Typename string `json:"__typename"`
Login string `json:"login"`
Name string `json:"name"`
} `json:"author"`
Body string `json:"body"`
BodyHTML string `json:"bodyHTML"`
Closed bool `json:"closed"`
ClosedAt time.Time `json:"closedAt"`
CreatedAt time.Time `json:"createdAt"`
ID string `json:"id"`
Number int `json:"number"`
LastEditedAt interface{} `json:"lastEditedAt"`
Milestone interface{} `json:"milestone"`
State string `json:"state"`
StateReason string `json:"stateReason"`
UpdatedAt time.Time `json:"updatedAt"`
URL string `json:"url"`
} `json:"content"`
} `json:"node"`
} `json:"edges"`
} `json:"items"`
} `json:"node"`
} `json:"data"`
}
type graphQLRequest struct {
Query string `json:"query"`
Variables string `json:"Variables"`
}
type Parameters struct {
Val string
}