Files
octoturge 34c7c97d4f Fix real codegen bugs: unused proto import, missing runtime deps, no barrel index
protoc warned that print_job.proto imported template.proto without using it
- removed. ts-types/package.json was missing protobufjs and long, which the
ts-proto-generated code imports at runtime - tsc failed with 'cannot find
module'. src/index.ts also re-exports './generated' as a namespace, but
ts-proto wasn't configured to emit an index barrel file for it - added
outputIndex=true to the protoc invocation.

Verified with a clean 'bun run build' (both TS and Rust codegen) and
'tsc -b'.
2026-08-28 18:36:23 +00:00

26 lines
558 B
Protocol Buffer

syntax = "proto3";
package continuum.v1;
enum PrintJobStatus {
PRINT_JOB_STATUS_UNSPECIFIED = 0;
PRINT_JOB_STATUS_QUEUED = 1;
PRINT_JOB_STATUS_PRINTING = 2;
PRINT_JOB_STATUS_PAUSED = 3;
PRINT_JOB_STATUS_COMPLETED = 4;
PRINT_JOB_STATUS_FAILED = 5;
PRINT_JOB_STATUS_CANCELLED = 6;
}
message PrintJob {
string id = 1;
string farm_id = 2;
string printer_id = 3;
string template_id = 4;
PrintJobStatus status = 5;
double progress_percent = 6;
int64 started_at_unix = 7;
int64 completed_at_unix = 8;
string gcode_file_key = 9;
}