# DevGem EventCatalog Schemas List of schemas for events, commands, queries, and services in EventCatalog. ## Events - [GridFlock Mapping Ready - GridflockMappingReady - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/GridflockMappingReady/0.0.1) - Published when the GridFlock pipeline completes (STL → slice → upload → mapping) or an existing mapping is found. The Order Service can now create print jobs for this SKU. - [GridFlock Pipeline Failed - GridflockPipelineFailed - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/GridflockPipelineFailed/0.0.1) - Published when the GridFlock pipeline fails at any step (STL generation, slicing, SimplyPrint upload, or mapping creation). Includes the failed step and error message. - [Integration Sendcloud Changed - IntegrationSendcloudChanged - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/IntegrationSendcloudChanged/0.0.1) - Published when the Sendcloud integration is connected or disconnected via the Settings UI. Consumer services reload their API client credentials from the database. - [Integration SimplyPrint Changed - IntegrationSimplyPrintChanged - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/IntegrationSimplyPrintChanged/0.0.1) - Published when the SimplyPrint integration is connected or disconnected via the Settings UI. Consumer services reload their API client credentials from the database. - [Order Cancelled - OrderCancelled - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/OrderCancelled/0.0.1) - Published when an order is cancelled. Triggers cancellation of print jobs in Print Service and shipments in Shipping Service. - [Order Created - OrderCreated - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/OrderCreated/0.0.1) - Published when a new order is ingested from Shopify (including via backfill). Triggers print job creation in the Print Service. - [Order Ready for Fulfillment - OrderReadyForFulfillment - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/OrderReadyForFulfillment/0.0.1) - Published when all print jobs for an order are complete. Triggers shipment creation in the Shipping Service. - [Print Job Cancelled - PrintJobCancelled - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/PrintJobCancelled/0.0.1) - Published when a print job is cancelled (typically as part of an order cancellation flow). The Order Service updates the line item status. - [Print Job Completed - PrintJobCompleted - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/PrintJobCompleted/0.0.1) - Published when a print job finishes successfully. The Order Service uses this to track completion progress and determine when all jobs are done. - [Print Job Failed - PrintJobFailed - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/PrintJobFailed/0.0.1) - Published when a print job fails on SimplyPrint. Includes the error message. The Order Service orchestration updates the line item status accordingly. - [Print Job Status Changed - PrintJobStatusChanged - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/PrintJobStatusChanged/0.0.1) - Published when a print job transitions between statuses (e.g., QUEUED → ASSIGNED → PRINTING). Used for real-time UI updates via Socket.IO. - [Shipment Created - ShipmentCreated - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/ShipmentCreated/0.0.1) - Published when a shipment is created via Sendcloud. The Order Service uses this to create a Shopify fulfillment with tracking information. - [Shipment Status Changed - ShipmentStatusChanged - 0.0.1](https://staging-connect.forma3d.be/api/schemas/events/ShipmentStatusChanged/0.0.1) - Published when a shipment status changes (e.g., label created → in transit → delivered). Originates from Sendcloud webhooks or reconciliation polling. - [Stock Replenishment Scheduled - StockReplenishmentScheduled - 0.0.2](https://staging-connect.forma3d.be/api/schemas/events/StockReplenishmentScheduled/0.0.2) - Published when the stock replenishment scheduler creates a print job for stock building. One event per print job in the batch. Consumed by the EventSubscriberService to queue the job in SimplyPrint. ## Commands - [Cancel Jobs for Order - CancelJobsForOrder - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/CancelJobsForOrder/0.0.1) - Synchronous HTTP command handled by the Print Service to cancel all print jobs for a given order. No service dispatches it in production — cancellation is driven by the OrderCancelled BullMQ event. - [Cancel Shipment - CancelShipment - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/CancelShipment/0.0.1) - Synchronous HTTP command handled by the Shipping Service to cancel a shipment. No service dispatches it in production — cancellation is driven by the OrderCancelled BullMQ event. - [Create Print Jobs - CreatePrintJobs - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/CreatePrintJobs/0.0.1) - Synchronous HTTP command handled by the Print Service to create print jobs for an order's line items. No service dispatches it in production — print jobs are created in-process via the shared PrintJobsBaseService. - [Create Product Mapping - CreateProductMapping - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/CreateProductMapping/0.0.1) - Synchronous HTTP command from Grid Service to Order Service to create a product mapping (SKU plus SimplyPrint assembly parts) after a successful pipeline run. - [Create Shipment - CreateShipment - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/CreateShipment/0.0.1) - Synchronous HTTP command handled by the Shipping Service to create a shipment. No service dispatches it in production — shipment creation is driven by the OrderReadyForFulfillment BullMQ event. - [Generate for Order - GenerateForOrder - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/GenerateForOrder/0.0.1) - Synchronous HTTP command from Order Service to Grid Service to trigger parametric STL generation for GridFlock-eligible line items. - [Slice STL - SliceSTL - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/SliceSTL/0.0.1) - Synchronous HTTP command from Grid Service to Slicer Container to convert an STL file to gcode using BambuStudio CLI. - [Update Order Status - UpdateOrderStatus - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/UpdateOrderStatus/0.0.1) - Synchronous HTTP command to update an order's status on the Order Service. Called by the Grid Service (pipeline completion) and the Shipping Service (order status sync). - [Update Tracking - UpdateTracking - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/UpdateTracking/0.0.1) - Synchronous HTTP command from Shipping Service to Order Service to update tracking information for an order. - [Upload to SimplyPrint - UploadToSimplyPrint - 0.0.1](https://staging-connect.forma3d.be/api/schemas/commands/UploadToSimplyPrint/0.0.1) - Synchronous HTTP command from Grid Service to Print Service to upload a sliced gcode file to SimplyPrint. ## Queries - [Get Jobs by Order ID - GetJobsByOrderId - 0.0.1](https://staging-connect.forma3d.be/api/schemas/queries/GetJobsByOrderId/0.0.1) - Synchronous HTTP query handled by the Print Service to retrieve all print jobs for a given order. No service dispatches it in production. - [Get Job Status Summary - GetJobStatusSummary - 0.0.1](https://staging-connect.forma3d.be/api/schemas/queries/GetJobStatusSummary/0.0.1) - Synchronous HTTP query handled by the Print Service to get a summary of print job statuses for an order. No service dispatches it in production. - [Get Mapping Status - GetMappingStatus - 0.0.1](https://staging-connect.forma3d.be/api/schemas/queries/GetMappingStatus/0.0.1) - Synchronous HTTP query from Order Service to Grid Service to check whether a product mapping exists for a given SKU. - [Get Order by Shopify ID - GetOrderByShopifyId - 0.0.1](https://staging-connect.forma3d.be/api/schemas/queries/GetOrderByShopifyId/0.0.1) - Synchronous HTTP query from Shipping Service to Order Service to look up an order by its Shopify order ID. - [Get Order Details - GetOrderDetails - 0.0.1](https://staging-connect.forma3d.be/api/schemas/queries/GetOrderDetails/0.0.1) - Synchronous HTTP query from Shipping Service to Order Service to retrieve full order details (shipping address, line items, etc.). - [Get Order Line Items - GetOrderLineItems - 0.0.1](https://staging-connect.forma3d.be/api/schemas/queries/GetOrderLineItems/0.0.1) - Synchronous HTTP query from Shipping Service to Order Service to retrieve an order with its line items. - [Get Product Mapping by SKU - GetProductMappingBySku - 0.0.1](https://staging-connect.forma3d.be/api/schemas/queries/GetProductMappingBySku/0.0.1) - Synchronous HTTP query from Grid Service to Order Service to look up an existing product mapping by SKU. - [Get Shipments by Order ID - GetShipmentsByOrderId - 0.0.1](https://staging-connect.forma3d.be/api/schemas/queries/GetShipmentsByOrderId/0.0.1) - Synchronous HTTP query handled by the Shipping Service to retrieve the shipment for a given order. No service dispatches it in production. ## Services