File tree 20 files changed +103
-33
lines changed
src/server/webhooks/events
20 files changed +103
-33
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
@@ -89,7 +91,7 @@ export interface PullRequest {
89
91
readonly open : boolean
90
92
readonly participants : Author [ ]
91
93
readonly reviewers : Author [ ]
92
- readonly state : string
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
@@ -60,7 +65,7 @@ export interface PullRequest {
60
65
readonly open : boolean
61
66
readonly participants : Author [ ]
62
67
readonly reviewers : Author [ ]
63
- readonly state : string
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
@@ -91,7 +93,7 @@ export interface PullRequest {
91
93
readonly open : boolean
92
94
readonly participants : Author [ ]
93
95
readonly reviewers : Author [ ]
94
- readonly state : string
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
@@ -46,7 +51,7 @@ export interface PullRequest {
46
51
readonly open : boolean
47
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
@@ -45,7 +50,7 @@ export interface PullRequest {
45
50
readonly open : boolean
46
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
@@ -57,7 +62,7 @@ export interface PullRequest {
57
62
readonly open : boolean
58
63
readonly participants : Author [ ]
59
64
readonly reviewers : Author [ ]
60
- readonly state : string
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
@@ -56,7 +61,7 @@ export interface PullRequest {
56
61
readonly participants : Author [ ]
57
62
readonly properties : Properties
58
63
readonly reviewers : Author [ ]
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
@@ -59,7 +64,7 @@ export interface PullRequest {
59
64
readonly open : boolean
60
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
@@ -48,7 +53,7 @@ export interface PullRequest {
48
53
readonly open : boolean
49
54
readonly participants : Author [ ]
50
55
readonly reviewers : Author [ ]
51
- readonly state : string
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
@@ -56,7 +61,7 @@ export interface PullRequest {
56
61
readonly open : boolean
57
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
@@ -51,7 +56,7 @@ export interface PullRequest {
51
56
readonly open : boolean
52
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
@@ -51,7 +56,7 @@ export interface PullRequest {
51
56
readonly open : boolean
52
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 { SchemaRepository } from "../../../openapi/openapi-typescript.js"
2
+
1
3
export interface Actor {
2
4
readonly active : boolean
3
5
readonly displayName : string
@@ -61,6 +63,6 @@ export interface Repository {
61
63
readonly public : boolean
62
64
readonly scmId : string
63
65
readonly slug : string
64
- readonly state : string
66
+ readonly state : SchemaRepository [ "state" ]
65
67
readonly statusMessage : string
66
68
}
Original file line number Diff line number Diff line change
1
+ import type { SchemaRepository } from "../../../openapi/openapi-typescript.js"
2
+
1
3
export interface Actor {
2
4
readonly active : boolean
3
5
readonly displayName : string
@@ -50,6 +52,6 @@ export interface Repository {
50
52
readonly public : boolean
51
53
readonly scmId : string
52
54
readonly slug : string
53
- readonly state : string
55
+ readonly state : SchemaRepository [ "state" ]
54
56
readonly statusMessage : string
55
57
}
Original file line number Diff line number Diff line change
1
+ import type { SchemaRepository } from "../../../openapi/openapi-typescript.js"
2
+
1
3
export interface Actor {
2
4
readonly active : boolean
3
5
readonly displayName : string
@@ -63,6 +65,6 @@ export interface Repository {
63
65
readonly public : boolean
64
66
readonly scmId : string
65
67
readonly slug : string
66
- readonly state : string
68
+ readonly state : SchemaRepository [ "state" ]
67
69
readonly statusMessage : string
68
70
}
Original file line number Diff line number Diff line change
1
+ import type { SchemaRepository } from "../../../openapi/openapi-typescript.js"
2
+
1
3
export interface Actor {
2
4
readonly active : boolean
3
5
readonly displayName : string
@@ -16,7 +18,7 @@ export interface Origin {
16
18
readonly public : boolean
17
19
readonly scmId : string
18
20
readonly slug : string
19
- readonly state : string
21
+ readonly state : SchemaRepository [ "state" ]
20
22
readonly statusMessage : string
21
23
}
22
24
@@ -51,6 +53,6 @@ export interface Repository {
51
53
readonly public : boolean
52
54
readonly scmId : string
53
55
readonly slug : string
54
- readonly state : string
56
+ readonly state : SchemaRepository [ "state" ]
55
57
readonly statusMessage : string
56
58
}
Original file line number Diff line number Diff line change
1
+ import type { SchemaRepository } from "../../../openapi/openapi-typescript.js"
2
+
1
3
export interface Actor {
2
4
readonly active : boolean
3
5
readonly displayName : string
@@ -37,6 +39,6 @@ export interface Repository {
37
39
readonly public : boolean
38
40
readonly scmId : string
39
41
readonly slug : string
40
- readonly state : string
42
+ readonly state : SchemaRepository [ "state" ]
41
43
readonly statusMessage : string
42
44
}
You can’t perform that action at this time.
0 commit comments