PredictionRequestComputed contains computed manufacturing process data and pricing details for individual brief elements. This entity stores the detailed production sequences, machine operations, cost calculations, and optimization data generated by the pricing engine for each product in a brief. It represents one manufacturing process variant for a specific element.
Store manufacturing process sequences and operations
Link element positions to manufacturing details
Provide detailed cost breakdowns by category
Track machine operations and provider services
Support production optimization recommendations
Calculate unit pricing and production time
Property Type Description idUUID Unique identifier positionnumber Element position (0-indexed, matches BriefElement.position ) predictionRequestIdUUID Parent BriefPrice reference
Property Type Description unitPricenumber Unit price per piece (€) toolingCostnumber Tooling cost (€) deliveryCostnumber Delivery cost (€) productCostnumber Product manufacturing cost (€)
Property Type Description productionTimenumber Production time (hours) partsCountnumber Number of parts/components partsRecord<string, string> Parts breakdown (JSONB) productIdsstring[] Related product IDs
Property Type Description sheetSizeWidthnumber Sheet width (mm) sheetSizeHeightnumber Sheet height (mm) layoutCountnumber Number of layouts per sheet simulationPliantLargeurPredisnumber Simulated flat width (mm) simulationPliantHauteurPredisnumber Simulated flat height (mm) simulationNbPosesPliantPredisnumber Number of positions on sheet nbFeuilleTotalPliantPredisnumber Total sheet count pliantObjFoldingWeightnumber Folding weight (kg)
Property Type Description pliantPredisnumber Flat cost cartonStructurePredisnumber Cardboard structure cost encrageRectoDeBasePredisnumber Base printing cost plaqueOffsetPredisnumber Offset plate cost vernisDeBasePredisnumber Base varnish cost plaqueVernisPredisnumber Varnish plate cost pelliculagePredisnumber Lamination cost varnishOrScreenprintingPredisnumber Varnish/screenprinting cost ecranSerigraphiePredisnumber Screen printing cost dorurePredisnumber Hot stamping cost colleContreCollagePredisnumber Counter-mounting glue cost colleFenetrePrixPredisnumber Window glue cost petFenetrePrixPredisnumber Window PET cost digipackPredisnumber Digipack cost sachetsPrixPredisnumber Bags cost cellophanePredisnumber Cellophane cost caissePredisnumber Box cost palettePredisnumber Pallet cost predictedDeliveryPricenumber Predicted delivery price predictedThousandPricenumber Price per thousand units prixFinalTotalPredisnumber Final total price decorticageCarcassePredisnumber Carcass stripping cost decoupeCarcassePredisnumber Carcass cutting cost sealingStripPredisnumber Sealing strip cost totalPrixMachinePredisnumber Total machine price
Property Type Description costBreakdownCostBreakdown Detailed cost breakdown (JSONB) costSummaryCostSummary Cost summary (JSONB)
Property Type Description commercialMarginInitialnumber Initial commercial margin (0-0.99) commercialMarginnumber Applied commercial margin (0-0.99) optimisationsRequestOptimisation[] Optimization recommendations optimisationQuantitynumber Optimized quantity optimiseProductQuantityPerDecorationDecorationCount[] Optimized quantities per decoration
Property Type Description createdAtDate Creation timestamp updatedAtDate Last update timestamp
Relationship Entity Type Description predictionRequestBriefPrice Many-to-One Parent pricing data predictionMachineOperationRatesPredictionMachineOperationRate[] One-to-Many Machine operation details with rates and pace predictionProvidersOperationsRatesPredictionProvidersOperationsRate[] One-to-Many External provider operation details predictionOperationSequencePredictionOperation []One-to-Many Ordered sequence of manufacturing operations
The position property is critical for linking manufacturing data to brief elements:
// Access manufacturing details for first element (position: 0)
GET / briefs / :briefId / process / 0
const element = brief . briefElements [ 0 ]; // position: 0
const computed = briefPrice . predictionRequestComputed . find ( prc => prc . position === 0 );
interface CostBreakdown {
// Breakdown by operation
marginPercentage : number ;
The optimisations field contains recommendations for cost reduction:
enum RequestOptimisation {
INCREASE_QUANTITY = ' INCREASE_QUANTITY ' ,
CHANGE_MATERIAL = ' CHANGE_MATERIAL ' ,
SIMPLIFY_FINISHING = ' SIMPLIFY_FINISHING ' ,
ADJUST_DIMENSIONS = ' ADJUST_DIMENSIONS '
Manufacturing Details : Access via GET /briefs/:id/process/:position to get full manufacturing process for element
Cost Analysis : Use costBreakdown for detailed cost components
Production Planning : Reference predictionOperationSequence for operation order
Machine Selection : Check predictionMachineOperationRates for required machines
Optimization : Review optimisations array for cost-saving recommendations
Multi-Product Briefs : Use position to match elements with their manufacturing data
PredictionRequestComputed data is accessed through Brief endpoints:
# Get manufacturing details for specific element
GET /briefs/:id/process/:elementPosition
# Get complete pricing with all computed data
The /process/:elementPosition endpoint returns the PredictionRequestComputed for the specified element position (0-indexed).
Position is 0-indexed : First element is position 0, second is position 1, etc.
One per element per variant : Each BriefElement may have multiple PredictionRequestComputed entities representing different manufacturing approaches
Legacy fields : Many *Predis fields are legacy cost components from older prediction models
Cost structures : Prefer costBreakdown and costSummary over individual *Predis fields for modern integrations
Margin validation : Commercial margin fields are constrained between 0 and 0.99 (0% to 99%)
JSONB fields : costBreakdown, costSummary, parts, and optimiseProductQuantityPerDecoration are stored as JSONB for flexible structure
The predictionOperationSequence relationship contains the ordered sequence of manufacturing operations required to produce the element. Each operation represents one step in the manufacturing process with complete details about machines, materials, layouts, and costs.
Key Information :
Operations ordered by position (0-indexed)
Multi-part products grouped by partNumber
Each operation links to specific machine, materials, and provider
Contains detailed sheet layouts, logistics, and cost breakdowns
📖 Full PredictionOperation Entity Documentation
Quick Example :
// Access operations in sequence
const operations = predictionRequestComputed . predictionOperationSequence ;
operations . sort ( ( a , b ) => a . position - b . position );
// First operation details
const op = operations[ 0 ];
console . log ( ` ${ op . operation . name } on ${ op . machine . name } ` );
console . log ( ` Time: ${ op . setupTime } h setup + ${ op . rollingTime } h rolling ` );
console . log ( ` Sheets: ${ op . sheetQuantity } @ ${ op . sheetWidth } x ${ op . sheetHeight } mm ` );
GET /briefs/:id/process/:position - Get manufacturing details for specific element (includes full PredictionRequestComputed with predictionOperationSequence)
GET /briefs/:id/details - Get complete brief with all PredictionRequestComputed data
GET /briefs/:id/value-analysis - Get cost analysis with optimization recommendations