SubmissionWithCode
Extended submission with full code content
Extends
Properties
code
code: string;
The actual code content
codeCompressedSize
codeCompressedSize: number;
Compressed code size in bytes
codeOriginalSize
codeOriginalSize: number;
Original code size in bytes
Inherited from
CodeSubmission.codeOriginalSize
codePreview?
optional codePreview: string;
Preview of the code (first ~500 chars) for display in lists
Inherited from
compressionRatio
compressionRatio: number;
Compression ratio percentage
createdAt
createdAt: string;
Timestamp when submission was created
Inherited from
description?
optional description: string;
Optional description of the submission
formattedCompressedSize
formattedCompressedSize: string;
Human-readable compressed size
formattedOriginalSize
formattedOriginalSize: string;
Human-readable original size
fromTutoringSession
fromTutoringSession: boolean;
Whether this came from a tutoring session
Inherited from
CodeSubmission.fromTutoringSession
id
id: string;
Unique identifier for the submission
Inherited from
language
language: string;
Programming language used
Inherited from
lesson?
optional lesson: {
id: string;
module?: {
curriculum?: {
id: string;
subject: string;
title: string;
};
id: string;
title: string;
};
title: string;
};
Associated lesson information
id
id: string;
module?
optional module: {
curriculum?: {
id: string;
subject: string;
title: string;
};
id: string;
title: string;
};
module.curriculum?
optional curriculum: {
id: string;
subject: string;
title: string;
};
module.curriculum.id
id: string;
module.curriculum.subject
subject: string;
module.curriculum.title
title: string;
module.id
id: string;
module.title
title: string;
title
title: string;
Inherited from
passed
passed: boolean;
Whether the submission passed all tests
Inherited from
score?
optional score: number;
Score achieved (0-100)
Inherited from
session?
optional session: {
id: string;
scheduledAt: string;
tutor?: {
firstName: string;
lastName: string;
};
};
Associated tutoring session information
id
id: string;
scheduledAt
scheduledAt: string;
tutor?
optional tutor: {
firstName: string;
lastName: string;
};
tutor.firstName
firstName: string;
tutor.lastName
lastName: string;
Inherited from
tags
tags: string[];
Tags for categorization
Inherited from
title
title: string;
Title of the submission
Inherited from
updatedAt
updatedAt: string;
Timestamp when submission was last updated