File tree 21 files changed +160
-56
lines changed
src/server/webhooks/events
21 files changed +160
-56
lines changed Original file line number Diff line number Diff line change 1
1
import type {
2
2
SchemaApplicationUser ,
3
+ SchemaComment ,
3
4
SchemaProject ,
5
+ SchemaPullRequest ,
4
6
SchemaPullRequestParticipant ,
5
7
SchemaRepository ,
6
8
SchemaRestMinimalRef ,
@@ -40,7 +42,7 @@ export interface Comment {
40
42
readonly id : number
41
43
readonly properties : Properties
42
44
readonly severity : string
43
- readonly state : string
45
+ readonly state : SchemaComment [ "state" ]
44
46
readonly tasks ?: unknown [ ]
45
47
readonly text : string
46
48
readonly threadResolved : boolean
@@ -87,9 +89,9 @@ export interface PullRequest {
87
89
readonly links : ActorLinks
88
90
readonly locked : boolean
89
91
readonly open : boolean
90
- readonly participants : unknown [ ]
91
- readonly reviewers : unknown [ ]
92
- readonly state : string
92
+ readonly participants : Author [ ]
93
+ readonly reviewers : Author [ ]
94
+ readonly state : SchemaPullRequest [ "state" ]
93
95
readonly title : string
94
96
readonly toRef : Ref
95
97
readonly updatedDate : number
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -58,9 +63,9 @@ export interface PullRequest {
58
63
readonly id : number
59
64
readonly locked : boolean
60
65
readonly open : boolean
61
- readonly participants : unknown [ ]
62
- readonly reviewers : unknown [ ]
63
- readonly state : string
66
+ readonly participants : Author [ ]
67
+ readonly reviewers : Author [ ]
68
+ readonly state : SchemaPullRequest [ "state" ]
64
69
readonly title : string
65
70
readonly toRef : Ref
66
71
readonly updatedDate : number
@@ -82,6 +87,6 @@ export interface Repository {
82
87
readonly public : boolean
83
88
readonly scmId : string
84
89
readonly slug : string
85
- readonly state : string
90
+ readonly state : SchemaRepository [ "state" ]
86
91
readonly statusMessage : string
87
92
}
Original file line number Diff line number Diff line change 1
1
import type {
2
2
SchemaApplicationUser ,
3
+ SchemaComment ,
3
4
SchemaProject ,
5
+ SchemaPullRequest ,
4
6
SchemaPullRequestParticipant ,
5
7
SchemaRepository ,
6
8
SchemaRestMinimalRef ,
@@ -40,7 +42,7 @@ export interface Comment {
40
42
readonly id : number
41
43
readonly properties : Properties
42
44
readonly severity : string
43
- readonly state : string
45
+ readonly state : SchemaComment [ "state" ]
44
46
readonly text : string
45
47
readonly threadResolved : boolean
46
48
readonly threadResolvedDate : number
@@ -89,9 +91,9 @@ export interface PullRequest {
89
91
readonly links : ActorLinks
90
92
readonly locked : boolean
91
93
readonly open : boolean
92
- readonly participants : unknown [ ]
93
- readonly reviewers : unknown [ ]
94
- readonly state : string
94
+ readonly participants : Author [ ]
95
+ readonly reviewers : Author [ ]
96
+ readonly state : SchemaPullRequest [ "state" ]
95
97
readonly title : string
96
98
readonly toRef : Ref
97
99
readonly updatedDate : number
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -44,9 +49,9 @@ export interface PullRequest {
44
49
readonly id : number
45
50
readonly locked : boolean
46
51
readonly open : boolean
47
- readonly participants : unknown [ ]
52
+ readonly participants : Author [ ]
48
53
readonly reviewers : Author [ ]
49
- readonly state : string
54
+ readonly state : SchemaPullRequest [ "state" ]
50
55
readonly title : string
51
56
readonly toRef : Ref
52
57
readonly updatedDate : number
@@ -68,6 +73,6 @@ export interface Repository {
68
73
readonly public : boolean
69
74
readonly scmId : string
70
75
readonly slug : string
71
- readonly state : string
76
+ readonly state : SchemaRepository [ "state" ]
72
77
readonly statusMessage : string
73
78
}
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -43,9 +48,9 @@ export interface PullRequest {
43
48
readonly id : number
44
49
readonly locked : boolean
45
50
readonly open : boolean
46
- readonly participants : unknown [ ]
51
+ readonly participants : Author [ ]
47
52
readonly reviewers : Author [ ]
48
- readonly state : string
53
+ readonly state : SchemaPullRequest [ "state" ]
49
54
readonly title : string
50
55
readonly toRef : Ref
51
56
readonly updatedDate : number
@@ -67,6 +72,6 @@ export interface Repository {
67
72
readonly public : boolean
68
73
readonly scmId : string
69
74
readonly slug : string
70
- readonly state : string
75
+ readonly state : SchemaRepository [ "state" ]
71
76
readonly statusMessage : string
72
77
}
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -55,9 +60,9 @@ export interface PullRequest {
55
60
readonly links : ActorLinks
56
61
readonly locked : boolean
57
62
readonly open : boolean
58
- readonly participants : unknown [ ]
59
- readonly reviewers : unknown [ ]
60
- readonly state : string
63
+ readonly participants : Author [ ]
64
+ readonly reviewers : Author [ ]
65
+ readonly state : SchemaPullRequest [ "state" ]
61
66
readonly title : string
62
67
readonly toRef : Ref
63
68
readonly updatedDate : number
@@ -81,7 +86,7 @@ export interface Repository {
81
86
readonly public : boolean
82
87
readonly scmId : string
83
88
readonly slug : string
84
- readonly state : string
89
+ readonly state : SchemaRepository [ "state" ]
85
90
readonly statusMessage : string
86
91
}
87
92
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -55,8 +60,8 @@ export interface PullRequest {
55
60
readonly open : boolean
56
61
readonly participants : Author [ ]
57
62
readonly properties : Properties
58
- readonly reviewers : unknown [ ]
59
- readonly state : string
63
+ readonly reviewers : Author [ ]
64
+ readonly state : SchemaPullRequest [ "state" ]
60
65
readonly title : string
61
66
readonly toRef : Ref
62
67
readonly updatedDate : number
@@ -78,6 +83,6 @@ export interface Repository {
78
83
readonly public : boolean
79
84
readonly scmId : string
80
85
readonly slug : string
81
- readonly state : string
86
+ readonly state : SchemaRepository [ "state" ]
82
87
readonly statusMessage : string
83
88
}
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -57,9 +62,9 @@ export interface PullRequest {
57
62
readonly id : number
58
63
readonly locked : boolean
59
64
readonly open : boolean
60
- readonly participants : unknown [ ]
65
+ readonly participants : Author [ ]
61
66
readonly reviewers : Author [ ]
62
- readonly state : string
67
+ readonly state : SchemaPullRequest [ "state" ]
63
68
readonly title : string
64
69
readonly toRef : Ref
65
70
readonly updatedDate : number
@@ -81,6 +86,6 @@ export interface Repository {
81
86
readonly public : boolean
82
87
readonly scmId : string
83
88
readonly slug : string
84
- readonly state : string
89
+ readonly state : SchemaRepository [ "state" ]
85
90
readonly statusMessage : string
86
91
}
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -46,9 +51,9 @@ export interface PullRequest {
46
51
readonly links : Links
47
52
readonly locked : boolean
48
53
readonly open : boolean
49
- readonly participants : unknown [ ]
50
- readonly reviewers : unknown [ ]
51
- readonly state : string
54
+ readonly participants : Author [ ]
55
+ readonly reviewers : Author [ ]
56
+ readonly state : SchemaPullRequest [ "state" ]
52
57
readonly title : string
53
58
readonly toRef : Ref
54
59
readonly updatedDate : number
@@ -70,6 +75,6 @@ export interface Repository {
70
75
readonly public : boolean
71
76
readonly scmId : string
72
77
readonly slug : string
73
- readonly state : string
78
+ readonly state : SchemaRepository [ "state" ]
74
79
readonly statusMessage : string
75
80
}
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -54,9 +59,9 @@ export interface PullRequest {
54
59
readonly links : Links
55
60
readonly locked : boolean
56
61
readonly open : boolean
57
- readonly participants : unknown [ ]
62
+ readonly participants : Participant [ ]
58
63
readonly reviewers : Participant [ ]
59
- readonly state : string
64
+ readonly state : SchemaPullRequest [ "state" ]
60
65
readonly title : string
61
66
readonly toRef : Ref
62
67
readonly updatedDate : number
@@ -78,6 +83,6 @@ export interface Repository {
78
83
readonly public : boolean
79
84
readonly scmId : string
80
85
readonly slug : string
81
- readonly state : string
86
+ readonly state : SchemaRepository [ "state" ]
82
87
readonly statusMessage : string
83
88
}
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -49,9 +54,9 @@ export interface PullRequest {
49
54
readonly id : number
50
55
readonly locked : boolean
51
56
readonly open : boolean
52
- readonly participants : unknown [ ]
57
+ readonly participants : Participant [ ]
53
58
readonly reviewers : Participant [ ]
54
- readonly state : string
59
+ readonly state : SchemaPullRequest [ "state" ]
55
60
readonly title : string
56
61
readonly toRef : Ref
57
62
readonly updatedDate : number
@@ -73,6 +78,6 @@ export interface Repository {
73
78
readonly public : boolean
74
79
readonly scmId : string
75
80
readonly slug : string
76
- readonly state : string
81
+ readonly state : SchemaRepository [ "state" ]
77
82
readonly statusMessage : string
78
83
}
Original file line number Diff line number Diff line change
1
+ import type {
2
+ SchemaPullRequest ,
3
+ SchemaRepository ,
4
+ } from "../../../openapi/openapi-typescript.js"
5
+
1
6
export interface Actor {
2
7
readonly active : boolean
3
8
readonly displayName : string
@@ -49,9 +54,9 @@ export interface PullRequest {
49
54
readonly id : number
50
55
readonly locked : boolean
51
56
readonly open : boolean
52
- readonly participants : unknown [ ]
57
+ readonly participants : Participant [ ]
53
58
readonly reviewers : Participant [ ]
54
- readonly state : string
59
+ readonly state : SchemaPullRequest [ "state" ]
55
60
readonly title : string
56
61
readonly toRef : Ref
57
62
readonly updatedDate : number
@@ -73,6 +78,6 @@ export interface Repository {
73
78
readonly public : boolean
74
79
readonly scmId : string
75
80
readonly slug : string
76
- readonly state : string
81
+ readonly state : SchemaRepository [ "state" ]
77
82
readonly statusMessage : string
78
83
}
You can’t perform that action at this time.
0 commit comments