Skip to content

Commit 5667865

Browse files
committed
Update type definitions to match expanded pawtograder API
1 parent 9e5d1d5 commit 5667865

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

dist/api/adminServiceSchemas.d.ts

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/adminServiceSchemas.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export type AutograderFeedback = {
5151
part?: string
5252
output_format?: OutputFormat
5353
output: string
54+
hidden_output?: string
55+
hidden_output_format?: OutputFormat
5456
name_format?: OutputFormat
5557
name: string
5658
/**
@@ -99,6 +101,31 @@ export type AutograderFeedback = {
99101
path: string // Local path in the grader container
100102
data?: object
101103
}[]
104+
annotations?: (
105+
| FeedbackComment
106+
| FeedbackLineComment
107+
| FeedbackArtifactComment
108+
)[]
109+
}
110+
111+
export type FeedbackComment = {
112+
author: {
113+
name: string
114+
avatar_url: string
115+
flair?: string
116+
flair_color?: string
117+
}
118+
message: string
119+
points?: number
120+
rubric_check_id?: number
121+
released: boolean
122+
}
123+
export type FeedbackLineComment = FeedbackComment & {
124+
line: number
125+
file_name: string
126+
}
127+
export type FeedbackArtifactComment = FeedbackComment & {
128+
artifact_name: string
102129
}
103130

104131
export type GradingScriptResult = {

0 commit comments

Comments
 (0)