Skip to content

Commit 2df63b5

Browse files
committed
Update bindings
1 parent 24306ec commit 2df63b5

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

crates/bindings/tmc-langs-node/ts/generated.d.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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, }
22

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, }
44

55
export type StyleValidationStrategy = "FAIL" | "WARN" | "DISABLED";
66

@@ -51,7 +51,11 @@ minimum_python_version?: PythonVer,
5151
/**
5252
* Overrides the default sandbox image. e.g. `eu.gcr.io/moocfi-public/tmc-sandbox-python:latest`
5353
*/
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, }
5559

5660
export type PythonVer = { major: number, minor: number | null, patch: number | null, }
5761

@@ -106,9 +110,9 @@ points: Array<string>, }
106110

107111
export type UpdatedExercise = { id: number, }
108112

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>]>, }
110114

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, }
112116

113117
export type CombinedCourseData = { details: CourseDetails, exercises: Array<CourseExercise>, settings: CourseData, }
114118

@@ -208,9 +212,9 @@ export type SubmissionFeedbackResponse = { api_version: number, status: Submissi
208212

209213
export type SubmissionStatus = "processing" | "fail" | "ok" | "error" | "hidden";
210214

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, }
212216

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, }
214218

215219
export type TmcStyleValidationStrategy = "FAIL" | "WARN" | "DISABLED";
216220

crates/tmc-langs-cli/bindings.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ minimum_python_version?: PythonVer,
7979
/**
8080
* Overrides the default sandbox image. e.g. `eu.gcr.io/moocfi-public/tmc-sandbox-python:latest`
8181
*/
82-
sandbox_image?: string, }
82+
sandbox_image?: string,
83+
/**
84+
* Overrides the default archive size limit (500 Mb).
85+
*/
86+
submission_size_limit_mb?: number, }
8387

8488
export type PythonVer = { major: number, minor: number | null, patch: number | null, }
8589

0 commit comments

Comments
 (0)