@erp-galoper/types 1.0.2190 → 1.0.2191

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/openapi.ts +484 -32
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -13478,8 +13478,9 @@ export interface paths {
13478
13478
  * **Route:** `POST /api/v1/production/production-orders/`
13479
13479
  *
13480
13480
  * **Body:** `CreateProductionOrderSchema`. Omit `productionVersion` to auto-select lowest-priority active version
13481
- * valid on `orderDate` and matching planned quantity lot size. Pegged-supply BOM lines become `peggedDemands` with
13482
- * child POs created in the same request (versions auto-selected per child).
13481
+ * valid on `orderDate` and matching planned quantity lot size. Supply `phantomProductionVersions` for every phantom
13482
+ * BOM input line in the explosion tree. Pegged-supply lines become `peggedDemands` with child POs (versions
13483
+ * auto-selected per child).
13483
13484
  *
13484
13485
  * **Response:** `201` + full detail in `data`.
13485
13486
  *
@@ -13494,6 +13495,30 @@ export interface paths {
13494
13495
  patch?: never;
13495
13496
  trace?: never;
13496
13497
  };
13498
+ "/api/v1/production/production-orders/explosion-preview/": {
13499
+ parameters: {
13500
+ query?: never;
13501
+ header?: never;
13502
+ path?: never;
13503
+ cookie?: never;
13504
+ };
13505
+ /** Preview BOM explosion (query params) */
13506
+ get: operations["production_production_orders_views_preview_production_order_explosion_get"];
13507
+ put?: never;
13508
+ /**
13509
+ * Preview BOM explosion
13510
+ * @description **Route:** `POST /api/v1/production/production-orders/explosion-preview/`
13511
+ *
13512
+ * Same header fields as create. Returns exploded material `lines` and pegged `peggedDemands` with nested
13513
+ * `subProductions` (child POs created when the parent order is saved).
13514
+ */
13515
+ post: operations["production_production_orders_views_preview_production_order_explosion_view"];
13516
+ delete?: never;
13517
+ options?: never;
13518
+ head?: never;
13519
+ patch?: never;
13520
+ trace?: never;
13521
+ };
13497
13522
  "/api/v1/production/production-orders/{id}/": {
13498
13523
  parameters: {
13499
13524
  query?: never;
@@ -13550,14 +13575,14 @@ export interface paths {
13550
13575
  get?: never;
13551
13576
  put?: never;
13552
13577
  /**
13553
- * Estimate production order costs
13578
+ * Mark production order estimated
13554
13579
  * @description **UI:** “Estimate” action on detail.
13555
13580
  *
13556
13581
  * **Route:** `POST /api/v1/production/production-orders/{id}/estimate/`
13557
13582
  *
13558
13583
  * **Precondition:** Status `created`; order has material lines.
13559
13584
  *
13560
- * **Effect:** Status → `estimated`; rolls up `estimatedCost` from materials and routing.
13585
+ * **Effect:** Status → `estimated` (planning gate; cost roll-up not active yet).
13561
13586
  *
13562
13587
  * **Permission:** `production_orders.estimate_productionorder`
13563
13588
  */
@@ -13723,6 +13748,32 @@ export interface paths {
13723
13748
  patch?: never;
13724
13749
  trace?: never;
13725
13750
  };
13751
+ "/api/v1/production/production-orders/{id}/operations/{operation_id}/output-lines/{output_line_id}/report/": {
13752
+ parameters: {
13753
+ query?: never;
13754
+ header?: never;
13755
+ path?: never;
13756
+ cookie?: never;
13757
+ };
13758
+ get?: never;
13759
+ put?: never;
13760
+ /**
13761
+ * Report operation output quantities
13762
+ * @description **UI:** Shop-floor output row — good quantity and optional scrap for one BOM output at the active operation.
13763
+ *
13764
+ * **Route:** `POST /api/v1/production/production-orders/{id}/operations/{operationId}/output-lines/{outputLineId}/report/`
13765
+ *
13766
+ * **Precondition:** Order `started`; operation `in_progress`; output line `pending`.
13767
+ *
13768
+ * **Permission:** `production_orders.change_productionorder`
13769
+ */
13770
+ post: operations["production_production_orders_views_report_production_order_operation_output_line_view"];
13771
+ delete?: never;
13772
+ options?: never;
13773
+ head?: never;
13774
+ patch?: never;
13775
+ trace?: never;
13776
+ };
13726
13777
  "/api/v1/production/production-orders/{id}/lines/{line_id}/consume-production-material/": {
13727
13778
  parameters: {
13728
13779
  query?: never;
@@ -13774,7 +13825,7 @@ export interface paths {
13774
13825
  * **Body:** `ReportAsFinishedProductionOrderSchema` — `actualQuantity` and/or `outputQuantities` per output line.
13775
13826
  * Batch-tracked outputs require `outputQuantities` with `tracking` (`batch` or new `number`). Backflush scales from primary output.
13776
13827
  *
13777
- * **Effect:** Status → `raf`; receives outputs into stock (including batch lots) and backflushes materials.
13828
+ * **Effect:** Status → `raf`; receives outputs into stock (including new/existing batches) and backflushes materials.
13778
13829
  *
13779
13830
  * **Permission:** `production_orders.change_productionorder`
13780
13831
  */
@@ -30179,7 +30230,7 @@ export interface components {
30179
30230
  * ItemUsage
30180
30231
  * @enum {string}
30181
30232
  */
30182
- ItemUsage: "goods" | "raw_material" | "works" | "service" | "wip" | "co_product" | "by_product" | "waste";
30233
+ ItemUsage: "goods" | "raw_material" | "works" | "service" | "semi_finished" | "co_product" | "by_product" | "waste";
30183
30234
  /** ItemWithChildrenSchema */
30184
30235
  ItemWithChildrenSchema: {
30185
30236
  /**
@@ -31245,7 +31296,8 @@ export interface components {
31245
31296
  /**
31246
31297
  * @description - when type is service usage should be disabled and set its value to service
31247
31298
  * - when type is product usage should be either goods, raw_material, or works
31248
- * - wip, co_product, by_product, and waste are only available when production is enabled in Galoper settings
31299
+ * - semi_finished, co_product, by_product, and waste are only available when production is enabled in Galoper settings
31300
+ * - In-order intermediate outputs are defined on BOM output lines (`outputType: intermediate`), not as item usage
31249
31301
  * - Get default value from inventory settings (/api/v1/settings/inventory/)
31250
31302
  * Only visible when the production module is enabled in Galoper settings (/api/v1/admin_panel/).
31251
31303
  */
@@ -31825,7 +31877,8 @@ export interface components {
31825
31877
  /**
31826
31878
  * @description - when type is service usage should be disabled and set its value to service
31827
31879
  * - when type is product usage should be either goods, raw_material, or works
31828
- * - wip, co_product, by_product, and waste are only available when production is enabled in Galoper settings
31880
+ * - semi_finished, co_product, by_product, and waste are only available when production is enabled in Galoper settings
31881
+ * - In-order intermediate outputs are defined on BOM output lines (`outputType: intermediate`), not as item usage
31829
31882
  * Only visible when the production module is enabled in Galoper settings (/api/v1/admin_panel/).
31830
31883
  */
31831
31884
  usage?: components["schemas"]["ItemUsage"] | null;
@@ -32169,7 +32222,8 @@ export interface components {
32169
32222
  /**
32170
32223
  * @description - when type is service usage should be disabled and set its value to service
32171
32224
  * - when type is product usage should be either goods, raw_material, or works
32172
- * - wip, co_product, by_product, and waste are only available when production is enabled in Galoper settings
32225
+ * - semi_finished, co_product, by_product, and waste are only available when production is enabled in Galoper settings
32226
+ * - In-order intermediate outputs are defined on BOM output lines (`outputType: intermediate`), not as item usage
32173
32227
  * Only visible when the production module is enabled in Galoper settings (/api/v1/admin_panel/).
32174
32228
  */
32175
32229
  usage?: components["schemas"]["ItemUsage"] | null;
@@ -51231,7 +51285,7 @@ export interface components {
51231
51285
  quantity: number | string;
51232
51286
  /** @description UOM for `quantity`; must be reachable from the item's UOM conversions. */
51233
51287
  unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
51234
- /** @description **Item** (`item`): a normal material — consume/issue this item's `quantity` from inventory (subject to WIP and other production rules). **Phantom** (`phantom`): a sub-assembly placeholder — this line does **not** consume stock for the selected item as a single component. When the BOM is used in production, the system **explodes** the line into the inputs (and structure) of that item's **certified** BOM. Use phantoms for manufactured sub-assemblies that have their own BOM instead of listing every raw material on the parent. Requirements: the phantom item must already have a certified BOM; batch/serial-tracked items cannot be phantoms; certify fails on circular phantom references (A → B → A). **Pegged supply** (`pegged_supply`): manufactured component demand — the line quantity is **not** issued from stock on the parent order. Production creates an **upstream order** for this item (pegged to the parent demand) and explodes that item's **certified** BOM. Same certify rules as phantoms (certified BOM required, no lot/serial SKU, no circular references). */
51288
+ /** @description **Item** (`item`): a normal material — consume/issue this item's `quantity` from inventory (subject to semi-finished and other production rules). **Phantom** (`phantom`): a sub-assembly placeholder — this line does **not** consume stock for the selected item as a single component. When the BOM is used in production, the system **explodes** the line into the inputs (and structure) of that item's **certified** BOM (and optionally merges routing from auto-selected production version when available). Use phantoms for manufactured sub-assemblies that have their own BOM instead of listing every raw material on the parent. Requirements: the phantom item must already have a certified BOM; batch/serial-tracked items cannot be phantoms; certify fails on circular phantom references (A → B → A). **Pegged supply** (`pegged_supply`): manufactured component demand — the line quantity is **not** issued from stock on the parent order. Production creates an **upstream order** for this item (pegged to the parent demand) and explodes that item's **certified** BOM. Same certify rules as phantoms (certified BOM required, no batch/serial SKU, no circular references). */
51235
51289
  lineType: components["schemas"]["BOMInputLineTypeEnum"];
51236
51290
  scalingType: components["schemas"]["BOMScalingTypeEnum"];
51237
51291
  /**
@@ -51290,13 +51344,23 @@ export interface components {
51290
51344
  * @description Display order; unique among output lines on this BOM.
51291
51345
  */
51292
51346
  sequence: number;
51347
+ /**
51348
+ * Routingoperationcode
51349
+ * @default
51350
+ */
51351
+ routingOperationCode: string;
51352
+ /**
51353
+ * Consumingoperationcode
51354
+ * @default
51355
+ */
51356
+ consumingOperationCode: string;
51293
51357
  };
51294
51358
  /**
51295
51359
  * BOMOutputTypeEnum
51296
51360
  * @description Exactly one `main` line per BOM. `by_product` / `waste` lines must use items with matching `usage`.
51297
51361
  * @enum {string}
51298
51362
  */
51299
- BOMOutputTypeEnum: "main" | "co_product" | "by_product" | "waste";
51363
+ BOMOutputTypeEnum: "main" | "co_product" | "by_product" | "waste" | "intermediate";
51300
51364
  /**
51301
51365
  * BOMScalingTypeEnum
51302
51366
  * @description How input quantity scales when production quantity differs from BOM header `quantity`.
@@ -51425,7 +51489,7 @@ export interface components {
51425
51489
  */
51426
51490
  unitOfMeasure: string;
51427
51491
  /**
51428
- * @description Default `item`. **Item** (`item`): a normal material — consume/issue this item's `quantity` from inventory (subject to WIP and other production rules). **Phantom** (`phantom`): a sub-assembly placeholder — this line does **not** consume stock for the selected item as a single component. When the BOM is used in production, the system **explodes** the line into the inputs (and structure) of that item's **certified** BOM. Use phantoms for manufactured sub-assemblies that have their own BOM instead of listing every raw material on the parent. Requirements: the phantom item must already have a certified BOM; batch/serial-tracked items cannot be phantoms; certify fails on circular phantom references (A → B → A). **Pegged supply** (`pegged_supply`): manufactured component demand — the line quantity is **not** issued from stock on the parent order. Production creates an **upstream order** for this item (pegged to the parent demand) and explodes that item's **certified** BOM. Same certify rules as phantoms (certified BOM required, no lot/serial SKU, no circular references).
51492
+ * @description Default `item`. **Item** (`item`): a normal material — consume/issue this item's `quantity` from inventory (subject to semi-finished and other production rules). **Phantom** (`phantom`): a sub-assembly placeholder — this line does **not** consume stock for the selected item as a single component. When the BOM is used in production, the system **explodes** the line into the inputs (and structure) of that item's **certified** BOM (and optionally merges routing from auto-selected production version when available). Use phantoms for manufactured sub-assemblies that have their own BOM instead of listing every raw material on the parent. Requirements: the phantom item must already have a certified BOM; batch/serial-tracked items cannot be phantoms; certify fails on circular phantom references (A → B → A). **Pegged supply** (`pegged_supply`): manufactured component demand — the line quantity is **not** issued from stock on the parent order. Production creates an **upstream order** for this item (pegged to the parent demand) and explodes that item's **certified** BOM. Same certify rules as phantoms (certified BOM required, no batch/serial SKU, no circular references).
51429
51493
  * @default item
51430
51494
  */
51431
51495
  lineType: components["schemas"]["BOMInputLineTypeEnum"];
@@ -51487,6 +51551,16 @@ export interface components {
51487
51551
  * @description Unique among output lines.
51488
51552
  */
51489
51553
  sequence: number;
51554
+ /**
51555
+ * Routingoperationcode
51556
+ * @description Routing step that produces this output.
51557
+ */
51558
+ routingOperationCode?: string | null;
51559
+ /**
51560
+ * Consumingoperationcode
51561
+ * @description Required when outputType is intermediate — step that consumes this output.
51562
+ */
51563
+ consumingOperationCode?: string | null;
51490
51564
  };
51491
51565
  /**
51492
51566
  * CreateBillOfMaterialsSchema
@@ -52892,7 +52966,7 @@ export interface components {
52892
52966
  id: string;
52893
52967
  /** Serialnumber */
52894
52968
  serialNumber: string;
52895
- /** @description Order classification (reporting and integrations). Does not change BOM explosion, routing, or shop-floor rules. batch: one production order for a planned quantity of the same finished item (lot / repetitive manufacturing; default). discrete: job-order style — a distinct manufacturing job, often a single unit or tracked separately from bulk lots. Pegged child production orders inherit the parent's order type. */
52969
+ /** @description Order classification (reporting and integrations). Does not change BOM explosion, routing, or shop-floor rules. batch: one production order for a planned quantity of the same finished item (repetitive / batch manufacturing; default). discrete: job-order style — a distinct manufacturing job, often a single unit or tracked separately from bulk batch runs. Pegged child production orders inherit the parent's order type. */
52896
52970
  orderType: components["schemas"]["ProductionOrderTypeEnum"];
52897
52971
  status: components["schemas"]["ProductionOrderStatusEnum"];
52898
52972
  item: components["schemas"]["ItemSummarySchema"];
@@ -52913,8 +52987,35 @@ export interface components {
52913
52987
  scheduledEnd?: string | null;
52914
52988
  /** @description Default warehouse for the order (branch default at create; same as lines unless overridden). */
52915
52989
  warehouse: components["schemas"]["ProductionOrderWarehouseSummarySchema"];
52916
- /** Estimatedcost */
52990
+ /**
52991
+ * Estimatedcost
52992
+ * @description Reserved for costing; not computed in this phase.
52993
+ * @default 0
52994
+ */
52917
52995
  estimatedCost: number | string;
52996
+ /**
52997
+ * Estimatedcostmaterial
52998
+ * @description Reserved for costing; not computed in this phase.
52999
+ * @default 0
53000
+ */
53001
+ estimatedCostMaterial: number | string;
53002
+ /**
53003
+ * Estimatedcostrouting
53004
+ * @description Reserved for costing; not computed in this phase.
53005
+ * @default 0
53006
+ */
53007
+ estimatedCostRouting: number | string;
53008
+ /**
53009
+ * Estimatedcostsubcontract
53010
+ * @description Reserved for costing; not computed in this phase.
53011
+ * @default 0
53012
+ */
53013
+ estimatedCostSubcontract: number | string;
53014
+ /**
53015
+ * Hasshortage
53016
+ * @default false
53017
+ */
53018
+ hasShortage: boolean;
52918
53019
  /** @description Set when this PO was spawned for a pegged-supply line on another order. */
52919
53020
  parentProductionOrder?: components["schemas"]["ProductionOrderLinkSummarySchema"] | null;
52920
53021
  /**
@@ -52925,7 +53026,7 @@ export interface components {
52925
53026
  };
52926
53027
  /**
52927
53028
  * ProductionOrderTypeEnum
52928
- * @description `batch` = quantity lot on one order; `discrete` = distinct job order (see create `orderType` description).
53029
+ * @description `batch` = one production run quantity on the order; `discrete` = distinct job order (see create `orderType`).
52929
53030
  * @enum {string}
52930
53031
  */
52931
53032
  ProductionOrderTypeEnum: "batch" | "discrete";
@@ -52969,7 +53070,7 @@ export interface components {
52969
53070
  id: string;
52970
53071
  /** Serialnumber */
52971
53072
  serialNumber: string;
52972
- /** @description Order classification (reporting and integrations). Does not change BOM explosion, routing, or shop-floor rules. batch: one production order for a planned quantity of the same finished item (lot / repetitive manufacturing; default). discrete: job-order style — a distinct manufacturing job, often a single unit or tracked separately from bulk lots. Pegged child production orders inherit the parent's order type. */
53073
+ /** @description Order classification (reporting and integrations). Does not change BOM explosion, routing, or shop-floor rules. batch: one production order for a planned quantity of the same finished item (repetitive / batch manufacturing; default). discrete: job-order style — a distinct manufacturing job, often a single unit or tracked separately from bulk batch runs. Pegged child production orders inherit the parent's order type. */
52973
53074
  orderType: components["schemas"]["ProductionOrderTypeEnum"];
52974
53075
  status: components["schemas"]["ProductionOrderStatusEnum"];
52975
53076
  item: components["schemas"]["ItemSummarySchema"];
@@ -52990,8 +53091,35 @@ export interface components {
52990
53091
  scheduledEnd?: string | null;
52991
53092
  /** @description Default warehouse for the order (branch default at create; same as lines unless overridden). */
52992
53093
  warehouse: components["schemas"]["ProductionOrderWarehouseSummarySchema"];
52993
- /** Estimatedcost */
53094
+ /**
53095
+ * Estimatedcost
53096
+ * @description Reserved for costing; not computed in this phase.
53097
+ * @default 0
53098
+ */
52994
53099
  estimatedCost: number | string;
53100
+ /**
53101
+ * Estimatedcostmaterial
53102
+ * @description Reserved for costing; not computed in this phase.
53103
+ * @default 0
53104
+ */
53105
+ estimatedCostMaterial: number | string;
53106
+ /**
53107
+ * Estimatedcostrouting
53108
+ * @description Reserved for costing; not computed in this phase.
53109
+ * @default 0
53110
+ */
53111
+ estimatedCostRouting: number | string;
53112
+ /**
53113
+ * Estimatedcostsubcontract
53114
+ * @description Reserved for costing; not computed in this phase.
53115
+ * @default 0
53116
+ */
53117
+ estimatedCostSubcontract: number | string;
53118
+ /**
53119
+ * Hasshortage
53120
+ * @default false
53121
+ */
53122
+ hasShortage: boolean;
52995
53123
  /** @description Set when this PO was spawned for a pegged-supply line on another order. */
52996
53124
  parentProductionOrder?: components["schemas"]["ProductionOrderLinkSummarySchema"] | null;
52997
53125
  /**
@@ -53004,7 +53132,11 @@ export interface components {
53004
53132
  * Format: uuid
53005
53133
  */
53006
53134
  bomId: string;
53007
- /** Actualcost */
53135
+ /**
53136
+ * Actualcost
53137
+ * @description Reserved for costing; not computed in this phase.
53138
+ * @default 0
53139
+ */
53008
53140
  actualCost: number | string;
53009
53141
  /** Actualstart */
53010
53142
  actualStart?: string | null;
@@ -53027,6 +53159,11 @@ export interface components {
53027
53159
  * @description Pegged-supply needs from the order BOM (not issued as material lines on this PO).
53028
53160
  */
53029
53161
  peggedDemands?: components["schemas"]["ProductionOrderPeggedDemandSchema"][];
53162
+ /**
53163
+ * Phantomproductionversions
53164
+ * @description Production versions chosen for phantom BOM lines on this order.
53165
+ */
53166
+ phantomProductionVersions?: components["schemas"]["ProductionOrderPhantomVersionSchema"][];
53030
53167
  /**
53031
53168
  * Peggedchildorders
53032
53169
  * @description Child POs linked from this order's pegged demands (created with the parent).
@@ -53095,6 +53232,41 @@ export interface components {
53095
53232
  /** Quantity */
53096
53233
  quantity: number | string;
53097
53234
  };
53235
+ /** ProductionOrderOperationOutputLineSchema */
53236
+ ProductionOrderOperationOutputLineSchema: {
53237
+ /**
53238
+ * Id
53239
+ * Format: uuid
53240
+ */
53241
+ id: string;
53242
+ item: components["schemas"]["ItemSummarySchema"];
53243
+ /** Plannedquantity */
53244
+ plannedQuantity: number | string;
53245
+ /** Expectedquantity */
53246
+ expectedQuantity: number | string;
53247
+ /** Actualquantity */
53248
+ actualQuantity: number | string;
53249
+ /** Scrapquantity */
53250
+ scrapQuantity: number | string;
53251
+ /**
53252
+ * Scrapreasoncode
53253
+ * @default
53254
+ */
53255
+ scrapReasonCode: string;
53256
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
53257
+ /** Isintermediate */
53258
+ isIntermediate: boolean;
53259
+ status: components["schemas"]["ProductionOrderOperationOutputLineStatusEnum"];
53260
+ /** Catchweightqty */
53261
+ catchWeightQty?: number | string | null;
53262
+ /** Batchid */
53263
+ batchId?: string | null;
53264
+ };
53265
+ /**
53266
+ * ProductionOrderOperationOutputLineStatusEnum
53267
+ * @enum {string}
53268
+ */
53269
+ ProductionOrderOperationOutputLineStatusEnum: "pending" | "reported" | "received" | "consumed";
53098
53270
  /** ProductionOrderOperationSchema */
53099
53271
  ProductionOrderOperationSchema: {
53100
53272
  /**
@@ -53104,6 +53276,8 @@ export interface components {
53104
53276
  id: string;
53105
53277
  /** Sequence */
53106
53278
  sequence: number;
53279
+ /** Executionsequence */
53280
+ executionSequence: number | string;
53107
53281
  /** Operationcode */
53108
53282
  operationCode: string;
53109
53283
  workCenter: components["schemas"]["WorkCenterSummarySchema"];
@@ -53136,6 +53310,23 @@ export interface components {
53136
53310
  * @description BOM inputs linked to this operation via routing operation code.
53137
53311
  */
53138
53312
  materialLines?: components["schemas"]["ProductionOrderLineSchema"][];
53313
+ /**
53314
+ * Outputlines
53315
+ * @description BOM outputs the operator reports at this routing step.
53316
+ */
53317
+ outputLines?: components["schemas"]["ProductionOrderOperationOutputLineSchema"][];
53318
+ /**
53319
+ * Intermediateconsumptionlines
53320
+ * @description In-order intermediates produced on an earlier step and consumed when this operation runs (BOM consumingOperationCode).
53321
+ */
53322
+ intermediateConsumptionLines?: components["schemas"]["ProductionOrderOperationOutputLineSchema"][];
53323
+ /**
53324
+ * Depth
53325
+ * @default 0
53326
+ */
53327
+ depth: number;
53328
+ /** Parentoperationid */
53329
+ parentOperationId?: string | null;
53139
53330
  };
53140
53331
  /**
53141
53332
  * ProductionOrderOperationStatusEnum
@@ -53165,7 +53356,7 @@ export interface components {
53165
53356
  warehouse: components["schemas"]["ProductionOrderWarehouseSummarySchema"];
53166
53357
  /**
53167
53358
  * Tracking
53168
- * @description Batch lots received into stock when the order is ended (batch-tracked outputs only).
53359
+ * @description Inventory batches received into stock when the order is RAF (batch-tracked outputs only).
53169
53360
  */
53170
53361
  tracking?: components["schemas"]["ProductionOrderLineTrackingSchema"][];
53171
53362
  };
@@ -53217,6 +53408,15 @@ export interface components {
53217
53408
  */
53218
53409
  childPeggedDemands?: components["schemas"]["ProductionOrderPeggedDemandSchema"][];
53219
53410
  };
53411
+ /** ProductionOrderPhantomVersionSchema */
53412
+ ProductionOrderPhantomVersionSchema: {
53413
+ /**
53414
+ * Bominputlineid
53415
+ * Format: uuid
53416
+ */
53417
+ bomInputLineId: string;
53418
+ productionVersion: components["schemas"]["ProductionVersionOrderSummarySchema"];
53419
+ };
53220
53420
  /** ProductionOrderResponseSchema */
53221
53421
  ProductionOrderResponseSchema: {
53222
53422
  /** Message */
@@ -53247,7 +53447,7 @@ export interface components {
53247
53447
  */
53248
53448
  productionVersion?: string | null;
53249
53449
  /**
53250
- * @description Order classification (reporting and integrations). Does not change BOM explosion, routing, or shop-floor rules. batch: one production order for a planned quantity of the same finished item (lot / repetitive manufacturing; default). discrete: job-order style — a distinct manufacturing job, often a single unit or tracked separately from bulk lots. Pegged child production orders inherit the parent's order type.
53450
+ * @description Order classification (reporting and integrations). Does not change BOM explosion, routing, or shop-floor rules. batch: one production order for a planned quantity of the same finished item (repetitive / batch manufacturing; default). discrete: job-order style — a distinct manufacturing job, often a single unit or tracked separately from bulk batch runs. Pegged child production orders inherit the parent's order type.
53251
53451
  * @default batch
53252
53452
  */
53253
53453
  orderType: components["schemas"]["ProductionOrderTypeEnum"];
@@ -53275,6 +53475,104 @@ export interface components {
53275
53475
  * @description Attachment file paths from upload API.
53276
53476
  */
53277
53477
  attachments?: string[];
53478
+ /**
53479
+ * Phantomproductionversions
53480
+ * @description Required for every phantom BOM input line in the explosion tree (parent and nested). Each pick must be a valid production version for that line's item.
53481
+ */
53482
+ phantomProductionVersions?: components["schemas"]["PhantomProductionVersionPickSchema"][];
53483
+ /**
53484
+ * Peggedproductionversions
53485
+ * @description Optional production version per pegged-supply BOM line (root and nested). Omit to auto-select; use ids from explosion preview peggedDemands.
53486
+ */
53487
+ peggedProductionVersions?: components["schemas"]["PeggedProductionVersionPickSchema"][];
53488
+ };
53489
+ /** PeggedProductionVersionPickSchema */
53490
+ PeggedProductionVersionPickSchema: {
53491
+ /**
53492
+ * Bominputlineid
53493
+ * Format: uuid
53494
+ * @description BOM input line id from explosion preview peggedDemands (including nested subProductions).
53495
+ */
53496
+ bomInputLineId: string;
53497
+ /**
53498
+ * Productionversion
53499
+ * Format: uuid
53500
+ * @description Production version for the pegged child PO at create.
53501
+ */
53502
+ productionVersion: string;
53503
+ };
53504
+ /** PhantomProductionVersionPickSchema */
53505
+ PhantomProductionVersionPickSchema: {
53506
+ /**
53507
+ * Bominputlineid
53508
+ * Format: uuid
53509
+ * @description Phantom BOM input line on the parent (or nested) recipe.
53510
+ */
53511
+ bomInputLineId: string;
53512
+ /**
53513
+ * Productionversion
53514
+ * Format: uuid
53515
+ * @description Production version for the phantom line item (BOM + routing used at explosion).
53516
+ */
53517
+ productionVersion: string;
53518
+ };
53519
+ /** ProductionOrderExplosionPreviewLineSchema */
53520
+ ProductionOrderExplosionPreviewLineSchema: {
53521
+ /**
53522
+ * Bominputlineid
53523
+ * Format: uuid
53524
+ */
53525
+ bomInputLineId: string;
53526
+ item: components["schemas"]["ItemSummarySchema"];
53527
+ /** Plannedquantity */
53528
+ plannedQuantity: number | string;
53529
+ consumptionMethod: components["schemas"]["BOMConsumptionMethodEnum"];
53530
+ /**
53531
+ * Routingoperationcode
53532
+ * @default
53533
+ */
53534
+ routingOperationCode: string;
53535
+ /** Sequence */
53536
+ sequence: number;
53537
+ };
53538
+ /** ProductionOrderExplosionPreviewPeggedLineSchema */
53539
+ ProductionOrderExplosionPreviewPeggedLineSchema: {
53540
+ /**
53541
+ * Bominputlineid
53542
+ * Format: uuid
53543
+ */
53544
+ bomInputLineId: string;
53545
+ item: components["schemas"]["ItemSummarySchema"];
53546
+ /** Plannedquantity */
53547
+ plannedQuantity: number | string;
53548
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
53549
+ /**
53550
+ * Routingoperationcode
53551
+ * @default
53552
+ */
53553
+ routingOperationCode: string;
53554
+ /** Sequence */
53555
+ sequence: number;
53556
+ /**
53557
+ * Depth
53558
+ * @default 0
53559
+ */
53560
+ depth: number;
53561
+ /**
53562
+ * Subproductions
53563
+ * @description Nested pegged lines on the child BOM (child POs created when the parent is created).
53564
+ */
53565
+ subProductions?: components["schemas"]["ProductionOrderExplosionPreviewPeggedLineSchema"][];
53566
+ };
53567
+ /** ProductionOrderExplosionPreviewSchema */
53568
+ ProductionOrderExplosionPreviewSchema: {
53569
+ /** Lines */
53570
+ lines: components["schemas"]["ProductionOrderExplosionPreviewLineSchema"][];
53571
+ /**
53572
+ * Peggeddemands
53573
+ * @description Pegged-supply BOM lines; each may include nested subProductions for multi-level pegged chains.
53574
+ */
53575
+ peggedDemands?: components["schemas"]["ProductionOrderExplosionPreviewPeggedLineSchema"][];
53278
53576
  };
53279
53577
  /**
53280
53578
  * UpdateProductionOrderSchema
@@ -53313,6 +53611,11 @@ export interface components {
53313
53611
  description?: string | null;
53314
53612
  /** Notes */
53315
53613
  notes?: string | null;
53614
+ /**
53615
+ * Phantomproductionversions
53616
+ * @description When re-snapshotting, supply picks for all phantom lines (or omit to keep stored picks).
53617
+ */
53618
+ phantomProductionVersions?: components["schemas"]["PhantomProductionVersionPickSchema"][] | null;
53316
53619
  };
53317
53620
  /**
53318
53621
  * ScheduleProductionOrderSchema
@@ -53415,6 +53718,22 @@ export interface components {
53415
53718
  */
53416
53719
  actualRunMinutes?: number | string | null;
53417
53720
  };
53721
+ /** ReportProductionOrderOperationOutputLineSchema */
53722
+ ReportProductionOrderOperationOutputLineSchema: {
53723
+ /** Actualquantity */
53724
+ actualQuantity: number | string;
53725
+ /**
53726
+ * Scrapquantity
53727
+ * @default 0
53728
+ */
53729
+ scrapQuantity: number | string;
53730
+ /** Scrapreasoncode */
53731
+ scrapReasonCode?: string | null;
53732
+ /** Catchweightqty */
53733
+ catchWeightQty?: number | string | null;
53734
+ /** Batchid */
53735
+ batchId?: string | null;
53736
+ };
53418
53737
  /** ConsumeProductionOrderLineSchema */
53419
53738
  ConsumeProductionOrderLineSchema: {
53420
53739
  /**
@@ -53432,7 +53751,7 @@ export interface components {
53432
53751
  batch?: string | null;
53433
53752
  /**
53434
53753
  * Number
53435
- * @description New batch lot number when `batch` is omitted.
53754
+ * @description New batch number when `batch` is omitted.
53436
53755
  */
53437
53756
  number?: string | null;
53438
53757
  /**
@@ -53469,11 +53788,6 @@ export interface components {
53469
53788
  */
53470
53789
  outputQuantities?: components["schemas"]["ReportAsFinishedOutputQuantitySchema"][] | null;
53471
53790
  };
53472
- /**
53473
- * EndProductionOrderSchema
53474
- * @description Optional empty body for `POST /{id}/end/` (batch receipts happen at RAF).
53475
- */
53476
- EndProductionOrderSchema: Record<string, never>;
53477
53791
  /** PaymentVoucherCalculateTotalResponse */
53478
53792
  PaymentVoucherCalculateTotalResponse: {
53479
53793
  /**
@@ -93708,7 +94022,7 @@ export interface operations {
93708
94022
  parameters: {
93709
94023
  query?: {
93710
94024
  /** @description feasible if item type is product and u need to filter by specific usage */
93711
- itemUsage?: "goods" | "raw_material" | "works" | "service" | "wip" | "co_product" | "by_product" | "waste";
94025
+ itemUsage?: "goods" | "raw_material" | "works" | "service" | "semi_finished" | "co_product" | "by_product" | "waste";
93712
94026
  itemType?: "product" | "service";
93713
94027
  };
93714
94028
  header?: never;
@@ -104039,6 +104353,93 @@ export interface operations {
104039
104353
  };
104040
104354
  };
104041
104355
  };
104356
+ production_production_orders_views_preview_production_order_explosion_get: {
104357
+ parameters: {
104358
+ query: {
104359
+ item: string;
104360
+ plannedQuantity: number | string;
104361
+ unitOfMeasure: string;
104362
+ productionVersion?: string | null;
104363
+ orderType?: "batch" | "discrete";
104364
+ orderDate?: string | null;
104365
+ };
104366
+ header?: never;
104367
+ path?: never;
104368
+ cookie?: never;
104369
+ };
104370
+ requestBody?: never;
104371
+ responses: {
104372
+ /** @description OK */
104373
+ 200: {
104374
+ headers: {
104375
+ [name: string]: unknown;
104376
+ };
104377
+ content: {
104378
+ "application/json": components["schemas"]["ProductionOrderExplosionPreviewSchema"];
104379
+ };
104380
+ };
104381
+ /** @description Bad Request */
104382
+ 400: {
104383
+ headers: {
104384
+ [name: string]: unknown;
104385
+ };
104386
+ content: {
104387
+ "application/json": components["schemas"]["ErrorMessages"];
104388
+ };
104389
+ };
104390
+ /** @description Forbidden */
104391
+ 403: {
104392
+ headers: {
104393
+ [name: string]: unknown;
104394
+ };
104395
+ content: {
104396
+ "application/json": components["schemas"]["MessageResponse"];
104397
+ };
104398
+ };
104399
+ };
104400
+ };
104401
+ production_production_orders_views_preview_production_order_explosion_view: {
104402
+ parameters: {
104403
+ query?: never;
104404
+ header?: never;
104405
+ path?: never;
104406
+ cookie?: never;
104407
+ };
104408
+ requestBody: {
104409
+ content: {
104410
+ "application/json": components["schemas"]["CreateProductionOrderSchema"];
104411
+ };
104412
+ };
104413
+ responses: {
104414
+ /** @description OK */
104415
+ 200: {
104416
+ headers: {
104417
+ [name: string]: unknown;
104418
+ };
104419
+ content: {
104420
+ "application/json": components["schemas"]["ProductionOrderExplosionPreviewSchema"];
104421
+ };
104422
+ };
104423
+ /** @description Bad Request */
104424
+ 400: {
104425
+ headers: {
104426
+ [name: string]: unknown;
104427
+ };
104428
+ content: {
104429
+ "application/json": components["schemas"]["ErrorMessages"];
104430
+ };
104431
+ };
104432
+ /** @description Forbidden */
104433
+ 403: {
104434
+ headers: {
104435
+ [name: string]: unknown;
104436
+ };
104437
+ content: {
104438
+ "application/json": components["schemas"]["MessageResponse"];
104439
+ };
104440
+ };
104441
+ };
104442
+ };
104042
104443
  production_production_orders_views_get_production_order: {
104043
104444
  parameters: {
104044
104445
  query?: never;
@@ -104440,6 +104841,61 @@ export interface operations {
104440
104841
  };
104441
104842
  };
104442
104843
  };
104844
+ production_production_orders_views_report_production_order_operation_output_line_view: {
104845
+ parameters: {
104846
+ query?: never;
104847
+ header?: never;
104848
+ path: {
104849
+ id: string;
104850
+ operation_id: string;
104851
+ output_line_id: string;
104852
+ };
104853
+ cookie?: never;
104854
+ };
104855
+ requestBody: {
104856
+ content: {
104857
+ "application/json": components["schemas"]["ReportProductionOrderOperationOutputLineSchema"];
104858
+ };
104859
+ };
104860
+ responses: {
104861
+ /** @description OK */
104862
+ 200: {
104863
+ headers: {
104864
+ [name: string]: unknown;
104865
+ };
104866
+ content: {
104867
+ "application/json": components["schemas"]["ProductionOrderResponseSchema"];
104868
+ };
104869
+ };
104870
+ /** @description Bad Request */
104871
+ 400: {
104872
+ headers: {
104873
+ [name: string]: unknown;
104874
+ };
104875
+ content: {
104876
+ "application/json": components["schemas"]["ErrorMessages"];
104877
+ };
104878
+ };
104879
+ /** @description Forbidden */
104880
+ 403: {
104881
+ headers: {
104882
+ [name: string]: unknown;
104883
+ };
104884
+ content: {
104885
+ "application/json": components["schemas"]["MessageResponse"];
104886
+ };
104887
+ };
104888
+ /** @description Not Found */
104889
+ 404: {
104890
+ headers: {
104891
+ [name: string]: unknown;
104892
+ };
104893
+ content: {
104894
+ "application/json": components["schemas"]["MessageResponse"];
104895
+ };
104896
+ };
104897
+ };
104898
+ };
104443
104899
  production_production_orders_views_consume_production_order_material_view: {
104444
104900
  parameters: {
104445
104901
  query?: never;
@@ -104556,11 +105012,7 @@ export interface operations {
104556
105012
  };
104557
105013
  cookie?: never;
104558
105014
  };
104559
- requestBody: {
104560
- content: {
104561
- "application/json": components["schemas"]["EndProductionOrderSchema"];
104562
- };
104563
- };
105015
+ requestBody?: never;
104564
105016
  responses: {
104565
105017
  /** @description OK */
104566
105018
  200: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.2190",
3
+ "version": "1.0.2191",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": [