|
1 | | -export type StyleValidationResult = { strategy: StyleValidationStrategy, validationErrors: Record<string, Array<StyleValidationError>> | null, } |
| 1 | +export type StyleValidationResult = { strategy: StyleValidationStrategy, validation_errors: Record<string, Array<StyleValidationError>> | null, } |
2 | 2 |
|
3 | | -export type StyleValidationError = { column: number, line: number, message: string, sourceName: string, } |
| 3 | +export type StyleValidationError = { column: number, line: number, message: string, source_name: string, } |
4 | 4 |
|
5 | 5 | export type StyleValidationStrategy = "FAIL" | "WARN" | "DISABLED"; |
6 | 6 |
|
@@ -51,7 +51,11 @@ minimum_python_version?: PythonVer, |
51 | 51 | /** |
52 | 52 | * Overrides the default sandbox image. e.g. `eu.gcr.io/moocfi-public/tmc-sandbox-python:latest` |
53 | 53 | */ |
54 | | -sandbox_image?: string, } |
| 54 | +sandbox_image?: string, |
| 55 | +/** |
| 56 | + * Overrides the default archive size limit (500 Mb). |
| 57 | + */ |
| 58 | +submission_size_limit_mb?: number, } |
55 | 59 |
|
56 | 60 | export type PythonVer = { major: number, minor: number | null, patch: number | null, } |
57 | 61 |
|
@@ -106,9 +110,9 @@ points: Array<string>, } |
106 | 110 |
|
107 | 111 | export type UpdatedExercise = { id: number, } |
108 | 112 |
|
109 | | -export type DownloadOrUpdateCourseExercisesResult = { downloaded: Array<ExerciseDownload>, skipped: Array<ExerciseDownload>, failed?: Array<[ExerciseDownload, Array<string>]>, } |
| 113 | +export type DownloadOrUpdateTmcCourseExercisesResult = { downloaded: Array<TmcExerciseDownload>, skipped: Array<TmcExerciseDownload>, failed?: Array<[TmcExerciseDownload, Array<string>]>, } |
110 | 114 |
|
111 | | -export type ExerciseDownload = { id: number, "course-slug": string, "exercise-slug": string, path: string, } |
| 115 | +export type TmcExerciseDownload = { id: number, "course-slug": string, "exercise-slug": string, path: string, } |
112 | 116 |
|
113 | 117 | export type CombinedCourseData = { details: CourseDetails, exercises: Array<CourseExercise>, settings: CourseData, } |
114 | 118 |
|
@@ -208,9 +212,9 @@ export type SubmissionFeedbackResponse = { api_version: number, status: Submissi |
208 | 212 |
|
209 | 213 | export type SubmissionStatus = "processing" | "fail" | "ok" | "error" | "hidden"; |
210 | 214 |
|
211 | | -export type TmcStyleValidationResult = { strategy: TmcStyleValidationStrategy, validation_errors: Record<string, Array<TmcStyleValidationError>> | null, } |
| 215 | +export type TmcStyleValidationResult = { strategy: TmcStyleValidationStrategy, validationErrors: Record<string, Array<TmcStyleValidationError>> | null, } |
212 | 216 |
|
213 | | -export type TmcStyleValidationError = { column: number, line: number, message: string, source_name: string, } |
| 217 | +export type TmcStyleValidationError = { column: number, line: number, message: string, sourceName: string, } |
214 | 218 |
|
215 | 219 | export type TmcStyleValidationStrategy = "FAIL" | "WARN" | "DISABLED"; |
216 | 220 |
|
|
0 commit comments