1
+ import type {
2
+ SchemaApplicationUser ,
3
+ SchemaProject ,
4
+ SchemaPullRequestParticipant ,
5
+ SchemaRepository ,
6
+ SchemaRestMinimalRef ,
7
+ } from "../../../openapi/openapi-typescript.js"
8
+
1
9
export interface Actor {
2
10
readonly active : boolean
3
11
readonly displayName : string
4
12
readonly emailAddress : string
5
13
readonly id : number
14
+ readonly links : ActorLinks
6
15
readonly name : string
7
16
readonly slug : string
8
- readonly type : string
17
+ readonly type : SchemaApplicationUser [ "type" ]
18
+ }
19
+
20
+ export interface ActorLinks {
21
+ readonly self : Self [ ]
9
22
}
10
23
11
24
export interface Author {
12
25
readonly approved : boolean
13
- readonly role : string
14
- readonly status : string
26
+ readonly role : SchemaPullRequestParticipant [ "role" ]
27
+ readonly status : SchemaPullRequestParticipant [ "status" ]
15
28
readonly user : Actor
16
29
}
17
30
31
+ export interface Clone {
32
+ readonly href : string
33
+ readonly name : string
34
+ }
35
+
18
36
export interface Comment {
19
37
readonly author : Actor
20
38
readonly comments : unknown [ ]
21
39
readonly createdDate : number
22
40
readonly id : number
23
41
readonly properties : Properties
24
- readonly tasks : unknown [ ]
42
+ readonly severity : string
43
+ readonly state : string
25
44
readonly text : string
45
+ readonly threadResolved : boolean
46
+ readonly threadResolvedDate : number
47
+ readonly threadResolver : Actor
26
48
readonly updatedDate : number
27
49
readonly version : number
28
50
}
@@ -34,7 +56,7 @@ export interface PRCommentEdited {
34
56
/** The comment edited. */
35
57
readonly comment : Comment
36
58
/** Id of the parent comment if one exists. */
37
- readonly commentParentId : number
59
+ readonly commentParentId ? : number
38
60
readonly date : string
39
61
readonly eventKey : "pr:comment:edited"
40
62
/** Text of the previous comment. */
@@ -46,9 +68,10 @@ export interface PRCommentEdited {
46
68
export interface Project {
47
69
readonly id : number
48
70
readonly key : string
71
+ readonly links : ActorLinks
49
72
readonly name : string
50
73
readonly public : boolean
51
- readonly type : string
74
+ readonly type : SchemaProject [ "type" ]
52
75
}
53
76
54
77
export interface Properties {
@@ -59,9 +82,11 @@ export interface PullRequest {
59
82
readonly author : Author
60
83
readonly closed : boolean
61
84
readonly createdDate : number
85
+ readonly description : string
62
86
readonly draft : boolean
63
87
readonly fromRef : Ref
64
88
readonly id : number
89
+ readonly links : ActorLinks
65
90
readonly locked : boolean
66
91
readonly open : boolean
67
92
readonly participants : unknown [ ]
@@ -78,16 +103,29 @@ export interface Ref {
78
103
readonly id : string
79
104
readonly latestCommit : string
80
105
readonly repository : Repository
106
+ readonly type : SchemaRestMinimalRef [ "type" ]
81
107
}
82
108
83
109
export interface Repository {
110
+ readonly archived : boolean
84
111
readonly forkable : boolean
112
+ readonly hierarchyId : string
85
113
readonly id : number
114
+ readonly links : RepositoryLinks
86
115
readonly name : string
87
116
readonly project : Project
88
117
readonly public : boolean
89
118
readonly scmId : string
90
119
readonly slug : string
91
- readonly state : string
120
+ readonly state : SchemaRepository [ "state" ]
92
121
readonly statusMessage : string
93
122
}
123
+
124
+ export interface RepositoryLinks {
125
+ readonly clone : Clone [ ]
126
+ readonly self : Self [ ]
127
+ }
128
+
129
+ export interface Self {
130
+ readonly href : string
131
+ }
0 commit comments