1
1
import type {
2
2
SchemaPullRequest ,
3
3
SchemaRepository ,
4
- } from "../../../openapi/openapi-typescript .js"
4
+ } from "../../../openapi/index .js"
5
5
6
6
export interface Actor {
7
7
readonly active : boolean
@@ -11,6 +11,15 @@ export interface Actor {
11
11
readonly name : string
12
12
readonly slug : string
13
13
readonly type : string
14
+ readonly links : ActorLinks
15
+ }
16
+
17
+ export interface ActorLinks {
18
+ readonly self : Self [ ]
19
+ }
20
+
21
+ export interface Self {
22
+ readonly href : string
14
23
}
15
24
16
25
export interface Author {
@@ -29,27 +38,30 @@ export interface PRModified {
29
38
readonly previousDescription : string
30
39
readonly previousDraft : boolean
31
40
/** Previous target of the pull request, may not have changed */
32
- readonly previousTarget : PreviousTarget
41
+ readonly previousTarget : Ref
33
42
/** Previous title of the pull request, may not have changed */
34
43
readonly previousTitle : string
35
44
/** Details of the pull request created. */
36
45
readonly pullRequest : PullRequest
37
46
}
38
47
39
- export interface PreviousTarget {
48
+ export interface Ref {
40
49
readonly displayId : string
41
50
readonly id : string
42
- readonly latestChangeset : string
51
+ readonly latestChangeset ? : string
43
52
readonly latestCommit : string
44
53
readonly type : string
54
+ readonly repository ?: Repository
45
55
}
46
56
47
57
export interface Project {
48
58
readonly id : number
49
59
readonly key : string
50
60
readonly name : string
51
- readonly owner : Actor
61
+ readonly owner ? : Actor
52
62
readonly type : string
63
+ readonly public : boolean
64
+ readonly links : ActorLinks
53
65
}
54
66
55
67
export interface PullRequest {
@@ -69,13 +81,7 @@ export interface PullRequest {
69
81
readonly toRef : Ref
70
82
readonly updatedDate : number
71
83
readonly version : number
72
- }
73
-
74
- export interface Ref {
75
- readonly displayId : string
76
- readonly id : string
77
- readonly latestCommit : string
78
- readonly repository : Repository
84
+ readonly links : ActorLinks
79
85
}
80
86
81
87
export interface Repository {
@@ -88,4 +94,17 @@ export interface Repository {
88
94
readonly slug : string
89
95
readonly state : SchemaRepository [ "state" ]
90
96
readonly statusMessage : string
97
+ readonly hierarchyId : string
98
+ readonly archived : boolean
99
+ readonly links : RepositoryLinks
100
+ }
101
+
102
+ export interface RepositoryLinks {
103
+ readonly clone : Clone [ ]
104
+ readonly self : Self [ ]
105
+ }
106
+
107
+ export interface Clone {
108
+ readonly href : string
109
+ readonly name : string
91
110
}
0 commit comments