addedInput schema / properties / detail
Added value: +{
+ "default": "summary",
+ "description": "'summary' (the default): the headline before and after, the change per cost category and only the cost lines that moved. 'full': the whole previewed cost sheet in cost_lines instead.",
+ "enum": [
+ "summary",
+ "full"
+ ],
+ "type": "string"
+}
addedOutput schema / $defs / CostLineMove
Added value: +{
+ "description": "One cost line whose amount the what-if moved.",
+ "properties": {
+ "after": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Amount per part under the what-if; null when the line is gone."
+ },
+ "before": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Amount per part in the priced calculation; null when the line is new."
+ },
+ "delta": {
+ "default": 0,
+ "description": "after minus before.",
+ "type": "number"
+ },
+ "label_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Message id for this line's name."
+ },
+ "label_params": {
+ "additionalProperties": true,
+ "description": "Values the label refers to, e.g. the machine name.",
+ "type": "object"
+ },
+ "path": {
+ "description": "Bucket slugs from the top-level category down to this line, so the line can be found in get_cost_breakdown's tree.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+}
addedOutput schema / $defs / CostPreviewHeadline
Added value: +{
+ "description": "One side of a what-if's headline, in the calculation's currency.",
+ "properties": {
+ "lot_size": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Lot size this side is priced at."
+ },
+ "offer_price": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Offer price per part: every top-level cost line, the surcharges and mark-up included."
+ },
+ "total_cost": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "unit_cost times lot_size."
+ },
+ "unit_cost": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Manufacturing cost per part, on the basis of the calculation's own unit cost."
+ }
+ },
+ "type": "object"
+}
addedOutput schema / $defs / CostSheetNode / properties / children_hidden
Added value: +{
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "How many lines sit beneath this one that `max_depth` left out: ask again with a larger `max_depth`, or null, to see them. Absent when nothing beneath this line was left out."
+}
addedOutput schema / properties / after
Added value: +{
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CostPreviewHeadline"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "detail='summary' only: the headline under the what-if."
+}
addedOutput schema / properties / before
Added value: +{
+ "anyOf": [
+ {
+ "$ref": "#/$defs/CostPreviewHeadline"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "detail='summary' only: the priced calculation's headline."
+}
changedOutput schema / properties / cost_lines / description
Previous value: -"The previewed cost sheet as a tree, same shape as get_cost_breakdown's."New value: +"The previewed cost sheet as a tree, same shape as get_cost_breakdown's. Empty under detail='summary'."
addedOutput schema / properties / moved_lines
Added value: +{
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/CostLineMove"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "detail='summary' only: every cost line, at any depth, whose amount moved, each with its path in the tree. Top-level lines only when the calculation recorded no itemised sheet to compare."
+}