Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
// SPDX-License-Identifier: AGPL-3.0-only
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
export type ContextAssignment = {
printerRouteId: string | null;
autoPrint: boolean;
};
export type LocationAssignment = {
defaultPrinterRouteId: string | null;
defaultAutoPrint: boolean;
shipping: ContextAssignment;
receiving: ContextAssignment;
inventory: ContextAssignment;
kanban: ContextAssignment;
workCenters: Record<string, ContextAssignment>;
};
export type PrintingSettings = {
assignments: Record<string, LocationAssignment>;
};
export type PrinterRoute = {
id: string;
companyId: string;
locationId: string | null;
name: string;
format: "zpl" | "pdf";
mediaSizeId: string | null;
printerUrl: string;
apiKey: string | null;
templateId: string | null;
};
export type PrintJobStatus =
| "generating"
| "queued"
| "printing"
| "completed"
| "failed";
export type PrintJobOrigin = "auto" | "manual" | "reprint";
export type PrintJobContentType = "zpl" | "pdf";
export type PrintJob = {
id: string;
companyId: string;
status: PrintJobStatus;
contentType: PrintJobContentType | null;
content: string | null;
printerUrl: string;
sourceDocument: string;
sourceDocumentId: string;
sourceDocumentReadableId: string | null;
description: string;
origin: PrintJobOrigin;
error: string | null;
attempts: number;
createdBy: string;
createdAt: string;
updatedAt: string | null;
updatedBy: string | null;
completedAt: string | null;
};