ProductionReportConsumptionState
A single consumable used during the run reported by a ProductionReport.
Fields
TypeID of this consumption row (prefix "prc").
TypeID of the production report this consumption belongs to (prefix "prr").
The consumable that was used, resolved from (stockableType, stockableId) to the concrete catalog entity by the active vertical; falls back to a StockableMarker carrying the partner-supplied external id and label when the item is not in our catalog.
How much of the consumable was used during the reported run, expressed in unit.
Unit of measure the quantity is expressed in. CUSTOM means the actual unit name is carried in customUnit.
Possible values (39)
NONENo unit
PERCENTPercentage (0-100)
RATIORatio (0.0-1.0)
BOOLEANBoolean (0 or 1)
COUNTGeneric count
PIECESDiscrete pieces/items
MILLIMETERSMillimeters
METERSMeters
INCHESInches
FEETFeet
METERS_PER_MINUTEMeters per minute
FEET_PER_MINUTEFeet per minute
UNITS_PER_MINUTEUnits per minute (generic)
UNITS_PER_HOURUnits per hour (generic)
CELSIUSDegrees Celsius
FAHRENHEITDegrees Fahrenheit
KELVINKelvin
BARBar
PSIPounds per square inch
KILOPASCALKilopascal
GRAMSGrams
KILOGRAMSKilograms
POUNDSPounds
MILLILITERSMilliliters
LITERSLiters
SQUARE_METERSSquare meters
SQUARE_FEETSquare feet
MILLISECONDSMilliseconds
SECONDSSeconds
MINUTESMinutes
HOURSHours
VOLTSVolts
AMPSAmperes
WATTSWatts
KILOWATT_HOURSKilowatt-hours
BYTESBytes
KILOBYTESKilobytes
MEGABYTESMegabytes
CUSTOMVertical-specific or user-defined unit — provide the unit name in customUnit
Vertical- or partner-specific unit name (e.g. "sheets"), used when unit is CUSTOM. Null otherwise.
Freeform integration-supplied details about the consumption (e.g. a press vendor's ink configuration id). Null when the reporting system supplied none.
ISO-8601 timestamp of when this consumption row was recorded on the platform — not necessarily when the material was consumed on the shop floor.
Referenced by (1)
Exact type SDL
"""
A single consumable used during the run reported by a `ProductionReport`.
"""
type ProductionReportConsumptionState {
"""TypeID of this consumption row (prefix "prc")."""
id: ProductionReportConsumptionID!
"""
TypeID of the production report this consumption belongs to (prefix "prr").
"""
productionReportId: ProductionReportID!
"""
The consumable that was used, resolved from (stockableType, stockableId) to the concrete catalog entity by the active vertical; falls back to a StockableMarker carrying the partner-supplied external id and label when the item is not in our catalog.
"""
stockable: Stockable!
"""
How much of the consumable was used during the reported run, expressed in `unit`.
"""
quantity: Float!
"""
Unit of measure the quantity is expressed in. CUSTOM means the actual unit name is carried in `customUnit`.
"""
unit: MetricUnit!
"""
Vertical- or partner-specific unit name (e.g. "sheets"), used when `unit` is CUSTOM. Null otherwise.
"""
customUnit: String
"""
Freeform integration-supplied details about the consumption (e.g. a press vendor's ink configuration id). Null when the reporting system supplied none.
"""
metadata: JSON
"""
ISO-8601 timestamp of when this consumption row was recorded on the platform — not necessarily when the material was consumed on the shop floor.
"""
createdAt: ISO8601!
}