Skip to main content

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

CodeSubmission.codePreview


compressionRatio

compressionRatio: number;

Compression ratio percentage


createdAt

createdAt: string;

Timestamp when submission was created

Inherited from

CodeSubmission.createdAt


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

CodeSubmission.id


language

language: string;

Programming language used

Inherited from

CodeSubmission.language


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

CodeSubmission.lesson


passed

passed: boolean;

Whether the submission passed all tests

Inherited from

CodeSubmission.passed


score?

optional score: number;

Score achieved (0-100)

Inherited from

CodeSubmission.score


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

CodeSubmission.session


tags

tags: string[];

Tags for categorization

Inherited from

CodeSubmission.tags


title

title: string;

Title of the submission

Inherited from

CodeSubmission.title


updatedAt

updatedAt: string;

Timestamp when submission was last updated

Inherited from

CodeSubmission.updatedAt