@erp-galoper/types 1.0.2132 → 1.0.2134

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 +296 -211
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -12955,7 +12955,7 @@ export interface paths {
12955
12955
  * @description **Permission key:** `routing = [ add ]`
12956
12956
  *
12957
12957
  * ### Common 400 error codes
12958
- * - itemDoesNotExist, ROUTING_ITEM_TYPE_INVALID, ROUTING_VERSION_DUPLICATE, ROUTING_LOT_SIZE_INVALID
12958
+ * - ROUTING_NAME_REQUIRED, ROUTING_VERSION_DUPLICATE, ROUTING_LOT_SIZE_INVALID
12959
12959
  * - ROUTE_OP_NUMBER_DUPLICATE, ROUTE_TIME_INVALID, ROUTE_SCRAP_INVALID
12960
12960
  * - ROUTE_EXTERNAL_NO_SUPPLIER, ROUTE_RUNTIME_INVALID, ROUTE_RATE_INVALID
12961
12961
  * - workCenterDoesNotExist, integrityError
@@ -13228,20 +13228,37 @@ export interface paths {
13228
13228
  cookie?: never;
13229
13229
  };
13230
13230
  /**
13231
- * List Production Orders
13232
- * @description List production orders.
13231
+ * List production orders
13232
+ * @description **UI:** Production orders list / tree view.
13233
13233
  *
13234
- * Use `tree=true` for pegged child orders nested under each parent; default is a flat list.
13234
+ * **Route:** `GET /api/v1/production/production-orders/`
13235
13235
  *
13236
- * **Permission key:** `productionorder = [ view ]`
13236
+ * **Query:** `search`, `itemId`, `status`, `sortBy`, `order`, filters, pagination (`page`, `pageSize`).
13237
+ * Set `tree=true` to return root orders only with pegged children nested in each row's `children`.
13238
+ *
13239
+ * **Response:** `{ info, results[] }` of `ProductionOrderSummarySchema` (no `lines`/`operations` — load detail per row).
13240
+ *
13241
+ * **Next:** `GET /{id}/` for detail; `POST /` to create.
13242
+ *
13243
+ * **Permission:** `production_orders.view_productionorder`
13237
13244
  */
13238
13245
  get: operations["production_production_orders_views_list_production_orders"];
13239
13246
  put?: never;
13240
13247
  /**
13241
- * Create Production Order View
13242
- * @description Create a production order: select version, explode BOM, snapshot lines/outputs.
13248
+ * Create production order
13249
+ * @description **UI:** Create production order form (item, qty, UOM, production version, order type/date, notes, attachments).
13250
+ *
13251
+ * **Route:** `POST /api/v1/production/production-orders/`
13243
13252
  *
13244
- * **Permission key:** `productionorder = [ add ]`
13253
+ * **Body:** `CreateProductionOrderSchema`. Omit `productionVersionId` to auto-select lowest-priority active version
13254
+ * valid on `orderDate` and matching planned quantity lot size. Pegged-supply BOM lines become `peggedDemands` with
13255
+ * child POs created in the same request (versions auto-selected per child).
13256
+ *
13257
+ * **Response:** `201` + full detail in `data`.
13258
+ *
13259
+ * **Next:** Navigate to detail; optional `PATCH` then `estimate` → `schedule` → `release`.
13260
+ *
13261
+ * **Permission:** `production_orders.add_productionorder`
13245
13262
  */
13246
13263
  post: operations["production_production_orders_views_create_production_order_view"];
13247
13264
  delete?: never;
@@ -13250,31 +13267,6 @@ export interface paths {
13250
13267
  patch?: never;
13251
13268
  trace?: never;
13252
13269
  };
13253
- "/api/v1/production/production-orders/explosion-preview/": {
13254
- parameters: {
13255
- query?: never;
13256
- header?: never;
13257
- path?: never;
13258
- cookie?: never;
13259
- };
13260
- /**
13261
- * Preview Production Order Explosion Get
13262
- * @description Same as `POST .../explosion-preview/` with a JSON body; query params for tooling and GET clients.
13263
- */
13264
- get: operations["production_production_orders_views_preview_production_order_explosion_get"];
13265
- put?: never;
13266
- /**
13267
- * Preview Production Order Explosion View
13268
- * @description Explode the BOM for the same inputs as create (no order saved). Returns material lines with
13269
- * default consumption methods from the BOM; send overrides on create via `lineConsumptionOverrides`.
13270
- */
13271
- post: operations["production_production_orders_views_preview_production_order_explosion_view"];
13272
- delete?: never;
13273
- options?: never;
13274
- head?: never;
13275
- patch?: never;
13276
- trace?: never;
13277
- };
13278
13270
  "/api/v1/production/production-orders/{id}/": {
13279
13271
  parameters: {
13280
13272
  query?: never;
@@ -13283,8 +13275,17 @@ export interface paths {
13283
13275
  cookie?: never;
13284
13276
  };
13285
13277
  /**
13286
- * Get Production Order
13287
- * @description **Permission key:** `productionorder = [ view ]`
13278
+ * Get production order detail
13279
+ * @description **UI:** Production order detail page (header, shop floor, materials, pegged sub-jobs, lifecycle actions).
13280
+ *
13281
+ * **Route:** `GET /api/v1/production/production-orders/{id}/`
13282
+ *
13283
+ * **Response:** `ProductionOrderDetailSchema` — use `operations` + `peggedDemands` for shop-floor layout;
13284
+ * `lines` for material issue; gate parent operation buttons using child status on matching `routingOperationCode`.
13285
+ *
13286
+ * **Next:** Lifecycle `POST` actions below; `PATCH /{id}/` to edit before start.
13287
+ *
13288
+ * **Permission:** `production_orders.view_productionorder`
13288
13289
  */
13289
13290
  get: operations["production_production_orders_views_get_production_order"];
13290
13291
  put?: never;
@@ -13292,7 +13293,24 @@ export interface paths {
13292
13293
  delete?: never;
13293
13294
  options?: never;
13294
13295
  head?: never;
13295
- patch?: never;
13296
+ /**
13297
+ * Update production order (before shop floor)
13298
+ * @description **UI:** Edit order dialog on detail (version, planned qty/UOM on root orders only, dates, type, description, notes).
13299
+ *
13300
+ * **Route:** `PATCH /api/v1/production/production-orders/{id}/`
13301
+ *
13302
+ * **Allowed when:** Status `created`, `estimated`, `scheduled`, or `released`; header `actualQuantity` is 0;
13303
+ * no material line has `isConsumed`; every operation is still `pending`.
13304
+ *
13305
+ * **Body:** Partial `UpdateProductionOrderSchema`. Changing `productionVersionId` and/or planned quantity re-snapshots
13306
+ * lines, outputs, and operations and resets status to `created` if it was past `created`. Pegged child orders sync when
13307
+ * still updatable; child planned qty is read-only (driven by parent BOM).
13308
+ *
13309
+ * **Response:** `200` + updated detail in `data`.
13310
+ *
13311
+ * **Permission:** `production_orders.change_productionorder`
13312
+ */
13313
+ patch: operations["production_production_orders_views_update_production_order_view"];
13296
13314
  trace?: never;
13297
13315
  };
13298
13316
  "/api/v1/production/production-orders/{id}/estimate/": {
@@ -13305,10 +13323,16 @@ export interface paths {
13305
13323
  get?: never;
13306
13324
  put?: never;
13307
13325
  /**
13308
- * Estimate Production Order View
13309
- * @description Roll up estimated material and routing costs; status `created` → `estimated`.
13326
+ * Estimate production order costs
13327
+ * @description **UI:** “Estimate” action on detail.
13310
13328
  *
13311
- * **Permission key:** `productionorder = [ estimate ]`
13329
+ * **Route:** `POST /api/v1/production/production-orders/{id}/estimate/`
13330
+ *
13331
+ * **Precondition:** Status `created`; order has material lines.
13332
+ *
13333
+ * **Effect:** Status → `estimated`; rolls up `estimatedCost` from materials and routing.
13334
+ *
13335
+ * **Permission:** `production_orders.estimate_productionorder`
13312
13336
  */
13313
13337
  post: operations["production_production_orders_views_estimate_production_order_view"];
13314
13338
  delete?: never;
@@ -13327,8 +13351,18 @@ export interface paths {
13327
13351
  get?: never;
13328
13352
  put?: never;
13329
13353
  /**
13330
- * Schedule Production Order View
13331
- * @description `estimated` → `scheduled`. **Permission:** `schedule`
13354
+ * Schedule production order
13355
+ * @description **UI:** Schedule dialog (start/end datetime).
13356
+ *
13357
+ * **Route:** `POST /api/v1/production/production-orders/{id}/schedule/`
13358
+ *
13359
+ * **Precondition:** Status `estimated`.
13360
+ *
13361
+ * **Body:** `scheduledStart` (required), `scheduledEnd` (optional). Back-schedules pegged child POs per routing step.
13362
+ *
13363
+ * **Effect:** Status → `scheduled`; stores schedule on header.
13364
+ *
13365
+ * **Permission:** `production_orders.schedule_productionorder`
13332
13366
  */
13333
13367
  post: operations["production_production_orders_views_schedule_production_order_view"];
13334
13368
  delete?: never;
@@ -13347,8 +13381,16 @@ export interface paths {
13347
13381
  get?: never;
13348
13382
  put?: never;
13349
13383
  /**
13350
- * Release Production Order View
13351
- * @description `scheduled` → `released`. **Permission:** `release`
13384
+ * Release production order
13385
+ * @description **UI:** “Release” action.
13386
+ *
13387
+ * **Route:** `POST /api/v1/production/production-orders/{id}/release/`
13388
+ *
13389
+ * **Precondition:** Status `scheduled`; `scheduledStart` must be set on the order.
13390
+ *
13391
+ * **Effect:** Status → `released`. Manual material issue is allowed after release.
13392
+ *
13393
+ * **Permission:** `production_orders.release_productionorder`
13352
13394
  */
13353
13395
  post: operations["production_production_orders_views_release_production_order_view"];
13354
13396
  delete?: never;
@@ -13367,8 +13409,19 @@ export interface paths {
13367
13409
  get?: never;
13368
13410
  put?: never;
13369
13411
  /**
13370
- * Start Production Order View
13371
- * @description `released` → `started` (material lines marked picked). **Permission:** `start`
13412
+ * Start production order
13413
+ * @description **UI:** “Start production” on detail (distinct from starting a single operation).
13414
+ *
13415
+ * **Route:** `POST /api/v1/production/production-orders/{id}/start/`
13416
+ *
13417
+ * **Precondition:** Status `released`.
13418
+ *
13419
+ * **Effect:** Status → `started`; sets `actualStart`. Lines with `consumptionMethod: forward` are marked consumed at
13420
+ * planned quantity. Manual lines still require `consume-production-material`.
13421
+ *
13422
+ * **Next:** Start/complete operations on shop floor.
13423
+ *
13424
+ * **Permission:** `production_orders.start_productionorder`
13372
13425
  */
13373
13426
  post: operations["production_production_orders_views_start_production_order_view"];
13374
13427
  delete?: never;
@@ -13387,10 +13440,17 @@ export interface paths {
13387
13440
  get?: never;
13388
13441
  put?: never;
13389
13442
  /**
13390
- * Start Production Order Operation View
13391
- * @description Start a single routing operation on a started order (serial: prior steps must be completed).
13443
+ * Start production order operation
13444
+ * @description **UI:** “Start operation” on a shop-floor step.
13445
+ *
13446
+ * **Route:** `POST /api/v1/production/production-orders/{id}/operations/{operationId}/start/`
13447
+ *
13448
+ * **Precondition:** Order status `started`; operation `pending`. Serial routing: all lower `sequence` operations `completed`.
13449
+ * Pegged gate: for demands with the same `routingOperationCode`, child PO must be at least `raf`.
13450
+ *
13451
+ * **Effect:** Operation → `in_progress`; sets `actualStart`.
13392
13452
  *
13393
- * **Permission:** `productionorder = [ change ]`
13453
+ * **Permission:** `production_orders.change_productionorder`
13394
13454
  */
13395
13455
  post: operations["production_production_orders_views_start_production_order_operation_view"];
13396
13456
  delete?: never;
@@ -13409,10 +13469,20 @@ export interface paths {
13409
13469
  get?: never;
13410
13470
  put?: never;
13411
13471
  /**
13412
- * Complete Production Order Operation View
13413
- * @description Complete an in-progress operation; records actual times.
13472
+ * Complete production order operation
13473
+ * @description **UI:** “Complete operation” dialog (optional actual setup minutes).
13414
13474
  *
13415
- * **Permission:** `productionorder = [ change ]`
13475
+ * **Route:** `POST /api/v1/production/production-orders/{id}/operations/{operationId}/complete/`
13476
+ *
13477
+ * **Precondition:** Operation `in_progress`; same pegged child gate as start for this operation code.
13478
+ *
13479
+ * **Body:** Optional `actualSetupMinutes` and `actualRunMinutes`. When run is omitted, it is computed from
13480
+ * `actualStart` to completion minus setup (setup treated as 0 when omitted). Backflush lines for this operation
13481
+ * may be consumed automatically.
13482
+ *
13483
+ * **Effect:** Operation → `completed`; sets `actualEnd` and actual minutes (reported or derived).
13484
+ *
13485
+ * **Permission:** `production_orders.change_productionorder`
13416
13486
  */
13417
13487
  post: operations["production_production_orders_views_complete_production_order_operation_view"];
13418
13488
  delete?: never;
@@ -13431,10 +13501,18 @@ export interface paths {
13431
13501
  get?: never;
13432
13502
  put?: never;
13433
13503
  /**
13434
- * Consume Production Order Material View
13435
- * @description Consume material on a released or started order: set `actualQuantity` and `isConsumed`.
13504
+ * Consume manual production material
13505
+ * @description **UI:** Manual material issue — quantity input per line on operation material rows or orphan components card.
13506
+ *
13507
+ * **Route:** `POST /api/v1/production/production-orders/{id}/lines/{lineId}/consume-production-material/`
13508
+ *
13509
+ * **Precondition:** Order `released` or `started`; line `consumptionMethod: manual`; `isConsumed: false`.
13510
+ *
13511
+ * **Body:** `{ "actualQuantity": <decimal> }` in the line's UOM (`gt: 0`; may differ from `plannedQuantity`).
13436
13512
  *
13437
- * **Permission:** `productionorder = [ change ]`
13513
+ * **Effect:** Sets `lines[].actualQuantity` and `isConsumed: true`. Required before `raf` for all manual lines.
13514
+ *
13515
+ * **Permission:** `production_orders.change_productionorder`
13438
13516
  */
13439
13517
  post: operations["production_production_orders_views_consume_production_order_material_view"];
13440
13518
  delete?: never;
@@ -13453,8 +13531,20 @@ export interface paths {
13453
13531
  get?: never;
13454
13532
  put?: never;
13455
13533
  /**
13456
- * Report Production Order Finished View
13457
- * @description `started` → `raf` (finish qty + backflush). **Permission:** `change`
13534
+ * Report production order as finished (RAF)
13535
+ * @description **UI:** “Report as finished” (RAF) dialog — header finished qty and/or per-output quantities.
13536
+ *
13537
+ * **Route:** `POST /api/v1/production/production-orders/{id}/raf/`
13538
+ *
13539
+ * **Precondition:** Status `started`; all manual lines consumed; all operations `completed` when operations exist;
13540
+ * all pegged child orders `ended`.
13541
+ *
13542
+ * **Body:** `ReportAsFinishedProductionOrderSchema` — `actualQuantity` and/or `outputQuantities` per output line.
13543
+ * Backflush materials scale from primary output yield.
13544
+ *
13545
+ * **Effect:** Status → `raf`; updates output actual quantities and material backflush.
13546
+ *
13547
+ * **Permission:** `production_orders.change_productionorder`
13458
13548
  */
13459
13549
  post: operations["production_production_orders_views_report_production_order_finished_view"];
13460
13550
  delete?: never;
@@ -13473,8 +13563,16 @@ export interface paths {
13473
13563
  get?: never;
13474
13564
  put?: never;
13475
13565
  /**
13476
- * End Production Order View
13477
- * @description `raf` → `ended`. **Permission:** `end`
13566
+ * End production order
13567
+ * @description **UI:** “End” / close order after RAF.
13568
+ *
13569
+ * **Route:** `POST /api/v1/production/production-orders/{id}/end/`
13570
+ *
13571
+ * **Precondition:** Status `raf`.
13572
+ *
13573
+ * **Effect:** Status → `ended`; sets `actualEnd` when applicable.
13574
+ *
13575
+ * **Permission:** `production_orders.end_productionorder`
13478
13576
  */
13479
13577
  post: operations["production_production_orders_views_end_production_order_view"];
13480
13578
  delete?: never;
@@ -13493,8 +13591,16 @@ export interface paths {
13493
13591
  get?: never;
13494
13592
  put?: never;
13495
13593
  /**
13496
- * Cancel Production Order View
13497
- * @description Cancel before production starts. **Permission:** `cancel`
13594
+ * Cancel production order
13595
+ * @description **UI:** Cancel action on detail.
13596
+ *
13597
+ * **Route:** `POST /api/v1/production/production-orders/{id}/cancel/`
13598
+ *
13599
+ * **Precondition:** Status `created`, `estimated`, `scheduled`, or `released` (not started).
13600
+ *
13601
+ * **Effect:** Status → `cancelled`. Does not auto-cancel pegged child orders.
13602
+ *
13603
+ * **Permission:** `production_orders.cancel_productionorder`
13498
13604
  */
13499
13605
  post: operations["production_production_orders_views_cancel_production_order_view"];
13500
13606
  delete?: never;
@@ -50621,7 +50727,7 @@ export interface components {
50621
50727
  * RoutingSortBy
50622
50728
  * @enum {string}
50623
50729
  */
50624
- RoutingSortBy: "dateCreated" | "dateModified" | "version" | "status" | "approvalStatus" | "routingType" | "lotSize" | "itemName";
50730
+ RoutingSortBy: "dateCreated" | "dateModified" | "name" | "version" | "status" | "approvalStatus" | "routingType" | "lotSize";
50625
50731
  /**
50626
50732
  * RoutingTypeEnum
50627
50733
  * @description `serial` — step-by-step routing; `parallel` — reserved for parallel scheduling.
@@ -50648,13 +50754,21 @@ export interface components {
50648
50754
  * @description Routing id.
50649
50755
  */
50650
50756
  id: string;
50651
- /** @description Finished item. */
50652
- item: components["schemas"]["ItemSummarySchema"];
50757
+ /**
50758
+ * Name
50759
+ * @description Routing name (required).
50760
+ */
50761
+ name: string;
50653
50762
  /**
50654
50763
  * Version
50655
50764
  * @description Routing version.
50656
50765
  */
50657
50766
  version: number | string;
50767
+ /**
50768
+ * Description
50769
+ * @description Optional header description (MetaDataMixin).
50770
+ */
50771
+ description?: string | null;
50658
50772
  /** @description Lifecycle status (see detail schema for UI mapping). */
50659
50773
  status: components["schemas"]["RetrieveInternalStatusChoices"];
50660
50774
  /** @description Approval workflow state. */
@@ -50708,11 +50822,14 @@ export interface components {
50708
50822
  * @description Routing id.
50709
50823
  */
50710
50824
  id: string;
50711
- /** @description Finished item this routing produces. */
50712
- item: components["schemas"]["ItemSummarySchema"];
50825
+ /**
50826
+ * Name
50827
+ * @description Routing name (required).
50828
+ */
50829
+ name: string;
50713
50830
  /**
50714
50831
  * Version
50715
- * @description Version number for this item.
50832
+ * @description Routing version number.
50716
50833
  */
50717
50834
  version: number | string;
50718
50835
  /** @description Routing lifecycle: draft (UI Draft), submitted (UI Certified), canceled (UI Closed). Changed via certify/close/cancel actions, not PUT. */
@@ -50883,18 +51000,17 @@ export interface components {
50883
51000
  * CreateRoutingSchema
50884
51001
  * @description Create a routing (header + all operations in one request).
50885
51002
  *
50886
- * Header item must be `goods` or `co_product`. At least one operation is required before certify.
51003
+ * At least one operation is required before certify.
50887
51004
  */
50888
51005
  CreateRoutingSchema: {
50889
51006
  /**
50890
- * Item
50891
- * Format: uuid
50892
- * @description Finished or co-product item id (`usage` must be `goods` or `co_product`).
51007
+ * Name
51008
+ * @description Routing name; unique together with `version`.
50893
51009
  */
50894
- item: string;
51010
+ name: string;
50895
51011
  /**
50896
51012
  * Version
50897
- * @description Routing version; unique per `item` (e.g. 1, 1.001).
51013
+ * @description Routing version; unique per `name` (e.g. 1, 1.001).
50898
51014
  */
50899
51015
  version: number | string;
50900
51016
  /**
@@ -50904,7 +51020,7 @@ export interface components {
50904
51020
  routingType: components["schemas"]["RoutingTypeEnum"];
50905
51021
  /**
50906
51022
  * Lotsize
50907
- * @description Reference batch quantity for `runTimePerUom` (same UOM as the item's production UOM).
51023
+ * @description Reference batch quantity for `runTimePerUom` on operations.
50908
51024
  * @default 1
50909
51025
  */
50910
51026
  lotSize: number | string;
@@ -50974,7 +51090,7 @@ export interface components {
50974
51090
  setupTime: number | string;
50975
51091
  /**
50976
51092
  * Runtimeperuom
50977
- * @description Run minutes per unit of the routing header `lotSize` (same UOM as the finished item). Required > 0 for `internal` control key.
51093
+ * @description Run minutes per unit of the routing header `lotSize`. Required > 0 for `internal` control key.
50978
51094
  * @default 0
50979
51095
  */
50980
51096
  runTimePerUom: number | string;
@@ -51027,14 +51143,19 @@ export interface components {
51027
51143
  * UpdateRoutingSchema
51028
51144
  * @description Full replace of editable header fields and **all** operations (PUT).
51029
51145
  *
51030
- * `item` is fixed after create. `version` may change while `status` is `draft` unless this routing
51031
- * is referenced by a production version (`ROUTING_VERSION_LOCKED`). Certified or closed routings are locked
51146
+ * `name` and `version` may change while `status` is `draft` unless this routing
51147
+ * is referenced by a production version (`ROUTING_VERSION_LOCKED` on version). Certified or closed routings are locked
51032
51148
  * (`ROUTING_CERTIFIED_LOCKED`).
51033
51149
  */
51034
51150
  UpdateRoutingSchema: {
51151
+ /**
51152
+ * Name
51153
+ * @description Routing name; unique together with `version`.
51154
+ */
51155
+ name: string;
51035
51156
  /**
51036
51157
  * Version
51037
- * @description Routing version; unique per item. Locked when linked to a production version.
51158
+ * @description Routing version; unique per `name`. Version locked when linked to a production version.
51038
51159
  */
51039
51160
  version: number | string;
51040
51161
  /** @description `serial` or `parallel`. */
@@ -51150,6 +51271,11 @@ export interface components {
51150
51271
  * @description Routing id.
51151
51272
  */
51152
51273
  id: string;
51274
+ /**
51275
+ * Name
51276
+ * @description Routing name (required).
51277
+ */
51278
+ name: string;
51153
51279
  /**
51154
51280
  * Version
51155
51281
  * @description Routing version number.
@@ -51247,7 +51373,7 @@ export interface components {
51247
51373
  bom: string;
51248
51374
  /**
51249
51375
  * Routing
51250
- * @description Optional routing for the same item; null for material-only production. List candidates with `GET /api/v1/production/routings/?itemId={itemId}&certifiedOnly=true`.
51376
+ * @description Optional item-agnostic routing; null for material-only production. List candidates with `GET /api/v1/production/routings/?certifiedOnly=true`.
51251
51377
  */
51252
51378
  routing?: string | null;
51253
51379
  /**
@@ -51323,7 +51449,7 @@ export interface components {
51323
51449
  bom: string;
51324
51450
  /**
51325
51451
  * Routing
51326
- * @description Optional routing for the same item; null for material-only production. List candidates with `GET /api/v1/production/routings/?itemId={itemId}&certifiedOnly=true`.
51452
+ * @description Optional item-agnostic routing; null for material-only production. List candidates with `GET /api/v1/production/routings/?certifiedOnly=true`.
51327
51453
  */
51328
51454
  routing?: string | null;
51329
51455
  /**
@@ -51428,6 +51554,7 @@ export interface components {
51428
51554
  id: string;
51429
51555
  /** Serialnumber */
51430
51556
  serialNumber: string;
51557
+ /** @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. */
51431
51558
  orderType: components["schemas"]["ProductionOrderTypeEnum"];
51432
51559
  status: components["schemas"]["ProductionOrderStatusEnum"];
51433
51560
  item: components["schemas"]["ItemSummarySchema"];
@@ -51458,6 +51585,7 @@ export interface components {
51458
51585
  };
51459
51586
  /**
51460
51587
  * ProductionOrderTypeEnum
51588
+ * @description `batch` = quantity lot on one order; `discrete` = distinct job order (see create `orderType` description).
51461
51589
  * @enum {string}
51462
51590
  */
51463
51591
  ProductionOrderTypeEnum: "batch" | "discrete";
@@ -51491,6 +51619,7 @@ export interface components {
51491
51619
  id: string;
51492
51620
  /** Serialnumber */
51493
51621
  serialNumber: string;
51622
+ /** @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. */
51494
51623
  orderType: components["schemas"]["ProductionOrderTypeEnum"];
51495
51624
  status: components["schemas"]["ProductionOrderStatusEnum"];
51496
51625
  item: components["schemas"]["ItemSummarySchema"];
@@ -51557,7 +51686,10 @@ export interface components {
51557
51686
  */
51558
51687
  peggedBomInputLineId?: string | null;
51559
51688
  };
51560
- /** ProductionOrderLineSchema */
51689
+ /**
51690
+ * ProductionOrderLineSchema
51691
+ * @description Material component line. Manual issue via `consume-production-material`; other methods are system-driven.
51692
+ */
51561
51693
  ProductionOrderLineSchema: {
51562
51694
  /**
51563
51695
  * Id
@@ -51574,8 +51706,12 @@ export interface components {
51574
51706
  unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
51575
51707
  /** Conversionfactor */
51576
51708
  conversionFactor: number | string;
51709
+ /** @description From BOM at create: manual (user issue), forward (at order start), backward/pick_backflush (at op/RAF). */
51577
51710
  consumptionMethod: components["schemas"]["BOMConsumptionMethodEnum"];
51578
- /** Isconsumed */
51711
+ /**
51712
+ * Isconsumed
51713
+ * @description True after consumption; manual lines require this before RAF.
51714
+ */
51579
51715
  isConsumed: boolean;
51580
51716
  /** Sequence */
51581
51717
  sequence: number;
@@ -51607,9 +51743,15 @@ export interface components {
51607
51743
  plannedRunMinutes: number | string;
51608
51744
  /** Plannedtotalminutes */
51609
51745
  plannedTotalMinutes: number | string;
51610
- /** Actualsetupminutes */
51746
+ /**
51747
+ * Actualsetupminutes
51748
+ * @description Reported setup minutes (entered on complete).
51749
+ */
51611
51750
  actualSetupMinutes?: number | string | null;
51612
- /** Actualrunminutes */
51751
+ /**
51752
+ * Actualrunminutes
51753
+ * @description Derived on complete as elapsed time from actualStart to actualEnd minus setup.
51754
+ */
51613
51755
  actualRunMinutes?: number | string | null;
51614
51756
  /** Actualstart */
51615
51757
  actualStart?: string | null;
@@ -51679,6 +51821,16 @@ export interface components {
51679
51821
  * @description Child PO routing steps (populated on parent detail for shop-floor control from parent).
51680
51822
  */
51681
51823
  childOperations?: components["schemas"]["ProductionOrderOperationSchema"][];
51824
+ /**
51825
+ * Childmateriallines
51826
+ * @description Child PO material lines (components to issue on the sub-job).
51827
+ */
51828
+ childMaterialLines?: components["schemas"]["ProductionOrderLineSchema"][];
51829
+ /**
51830
+ * Childpeggeddemands
51831
+ * @description Nested pegged-supply lines on the child production order.
51832
+ */
51833
+ childPeggedDemands?: components["schemas"]["ProductionOrderPeggedDemandSchema"][];
51682
51834
  };
51683
51835
  /** ProductionOrderResponseSchema */
51684
51836
  ProductionOrderResponseSchema: {
@@ -51708,7 +51860,10 @@ export interface components {
51708
51860
  * @description Optional explicit production version for this item. When omitted, the lowest-priority active version applies (ties: highest version number), matching orderDate and plannedQuantity. List candidates with `GET /api/v1/production/production-versions/?itemId={item}&isActive=true&validOn={orderDate}`.
51709
51861
  */
51710
51862
  productionVersionId?: string | null;
51711
- /** @default batch */
51863
+ /**
51864
+ * @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.
51865
+ * @default batch
51866
+ */
51712
51867
  orderType: components["schemas"]["ProductionOrderTypeEnum"];
51713
51868
  /**
51714
51869
  * Orderdate
@@ -51734,109 +51889,72 @@ export interface components {
51734
51889
  * @description Attachment file paths from upload API.
51735
51890
  */
51736
51891
  attachments?: string[];
51737
- /**
51738
- * Lineconsumptionoverrides
51739
- * @description Optional per BOM input line consumption method overrides applied when snapshotting material lines. Use `POST .../explosion-preview/` with the same header fields to list `bomInputLineId` values.
51740
- */
51741
- lineConsumptionOverrides?: components["schemas"]["ProductionOrderLineConsumptionOverrideSchema"][] | null;
51742
- /**
51743
- * Peggedproductionversionoverrides
51744
- * @description Optional production version per pegged-supply BOM line (child PO). Use `peggedDemands` from explosion preview for `bomInputLineId` values.
51745
- */
51746
- peggedProductionVersionOverrides?: components["schemas"]["ProductionOrderPeggedProductionVersionOverrideSchema"][] | null;
51747
- };
51748
- /** ProductionOrderLineConsumptionOverrideSchema */
51749
- ProductionOrderLineConsumptionOverrideSchema: {
51750
- /**
51751
- * Bominputlineid
51752
- * Format: uuid
51753
- */
51754
- bomInputLineId: string;
51755
- consumptionMethod: components["schemas"]["BOMConsumptionMethodEnum"];
51756
51892
  };
51757
- /** ProductionOrderPeggedProductionVersionOverrideSchema */
51758
- ProductionOrderPeggedProductionVersionOverrideSchema: {
51759
- /**
51760
- * Bominputlineid
51761
- * Format: uuid
51762
- * @description BOM input line id from explosion preview peggedDemands.
51763
- */
51764
- bomInputLineId: string;
51893
+ /**
51894
+ * UpdateProductionOrderSchema
51895
+ * @description Partial update before shop floor starts. See `PATCH /{id}/` route description in views.
51896
+ */
51897
+ UpdateProductionOrderSchema: {
51765
51898
  /**
51766
51899
  * Productionversionid
51767
- * Format: uuid
51768
- * @description Production version for the pegged item (child PO). Must be active, match the pegged item, order date, and pegged line quantity. Omit overrides to auto-select at create.
51900
+ * @description New production version; re-snapshots lines, outputs, operations, and pegged children when allowed. Required on PATCH for pegged child orders when changing snapshot-driving fields.
51769
51901
  */
51770
- productionVersionId: string;
51771
- };
51772
- /** ProductionOrderExplosionPreviewLineSchema */
51773
- ProductionOrderExplosionPreviewLineSchema: {
51902
+ productionVersionId?: string | null;
51774
51903
  /**
51775
- * Bominputlineid
51776
- * Format: uuid
51904
+ * Plannedquantity
51905
+ * @description Root orders only; pegged child qty is derived from the parent BOM.
51777
51906
  */
51778
- bomInputLineId: string;
51779
- item: components["schemas"]["ItemSummarySchema"];
51780
- /** Plannedquantity */
51781
- plannedQuantity: number | string;
51782
- consumptionMethod: components["schemas"]["BOMConsumptionMethodEnum"];
51907
+ plannedQuantity?: (number | string) | null;
51783
51908
  /**
51784
- * Routingoperationcode
51785
- * @default
51786
- */
51787
- routingOperationCode: string;
51788
- /** Sequence */
51789
- sequence: number;
51790
- };
51791
- /** ProductionOrderExplosionPreviewPeggedLineSchema */
51792
- ProductionOrderExplosionPreviewPeggedLineSchema: {
51793
- /**
51794
- * Bominputlineid
51795
- * Format: uuid
51909
+ * Plannedunitofmeasureid
51910
+ * @description Must accompany `plannedQuantity` when changing quantity on a root order.
51796
51911
  */
51797
- bomInputLineId: string;
51798
- item: components["schemas"]["ItemSummarySchema"];
51799
- /** Plannedquantity */
51800
- plannedQuantity: number | string;
51801
- unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
51912
+ plannedUnitOfMeasureId?: string | null;
51913
+ orderType?: components["schemas"]["ProductionOrderTypeEnum"] | null;
51802
51914
  /**
51803
- * Routingoperationcode
51804
- * @default
51915
+ * Orderdate
51916
+ * @description Affects production version validity when re-snapshotting.
51805
51917
  */
51806
- routingOperationCode: string;
51807
- /** Sequence */
51808
- sequence: number;
51809
- };
51810
- /** ProductionOrderExplosionPreviewSchema */
51811
- ProductionOrderExplosionPreviewSchema: {
51812
- /** Lines */
51813
- lines: components["schemas"]["ProductionOrderExplosionPreviewLineSchema"][];
51918
+ orderDate?: string | null;
51814
51919
  /**
51815
- * Peggeddemands
51816
- * @description Pegged-supply BOM lines: child production orders are created with the parent order.
51920
+ * Scheduledstart
51921
+ * @description May be set before schedule action; schedule POST still required for `scheduled` status.
51817
51922
  */
51818
- peggedDemands?: components["schemas"]["ProductionOrderExplosionPreviewPeggedLineSchema"][];
51923
+ scheduledStart?: string | null;
51924
+ /** Scheduledend */
51925
+ scheduledEnd?: string | null;
51926
+ /** Description */
51927
+ description?: string | null;
51928
+ /** Notes */
51929
+ notes?: string | null;
51819
51930
  };
51820
- /** ScheduleProductionOrderSchema */
51931
+ /**
51932
+ * ScheduleProductionOrderSchema
51933
+ * @description Schedule window for `POST /{id}/schedule/` (`estimated` → `scheduled`).
51934
+ */
51821
51935
  ScheduleProductionOrderSchema: {
51822
51936
  /**
51823
51937
  * Scheduledstart
51824
51938
  * Format: date-time
51939
+ * @description Required; also required on the order before release.
51825
51940
  */
51826
51941
  scheduledStart: string;
51827
- /** Scheduledend */
51942
+ /**
51943
+ * Scheduledend
51944
+ * @description Optional end; must be after `scheduledStart` when both are set.
51945
+ */
51828
51946
  scheduledEnd?: string | null;
51829
51947
  };
51830
51948
  /** CompleteProductionOrderOperationSchema */
51831
51949
  CompleteProductionOrderOperationSchema: {
51832
51950
  /**
51833
51951
  * Actualsetupminutes
51834
- * @description Reported setup minutes; defaults from wall-clock if omitted.
51952
+ * @description Optional setup minutes reported when completing.
51835
51953
  */
51836
51954
  actualSetupMinutes?: number | string | null;
51837
51955
  /**
51838
51956
  * Actualrunminutes
51839
- * @description Reported run minutes; defaults from wall-clock minus setup if omitted.
51957
+ * @description Optional run minutes. When omitted, computed from actualStart to actualEnd minus setup (0 if setup omitted).
51840
51958
  */
51841
51959
  actualRunMinutes?: number | string | null;
51842
51960
  };
@@ -51844,7 +51962,7 @@ export interface components {
51844
51962
  ConsumeProductionOrderLineSchema: {
51845
51963
  /**
51846
51964
  * Actualquantity
51847
- * @description Quantity consumed in the line UOM while the order is `released` or `started`. Sets `isConsumed`.
51965
+ * @description Actual quantity used in the line UOM (`gt: 0`). Order must be `released` or `started`; line must be `consumptionMethod: manual` and not yet consumed. May differ from `plannedQuantity`. Sets `isConsumed`.
51848
51966
  */
51849
51967
  actualQuantity: number | string;
51850
51968
  };
@@ -54639,6 +54757,8 @@ export interface components {
54639
54757
  lastName: string;
54640
54758
  /** Name */
54641
54759
  name: string;
54760
+ /** Accountnumber */
54761
+ accountNumber: string;
54642
54762
  /** Phone */
54643
54763
  phone: string | null;
54644
54764
  /** Mobile */
@@ -100623,7 +100743,6 @@ export interface operations {
100623
100743
  parameters: {
100624
100744
  query?: {
100625
100745
  search?: string | null;
100626
- itemId?: string | null;
100627
100746
  /** @description Filter by document status. */
100628
100747
  status?: components["schemas"]["InternalStatusChoices"] | null;
100629
100748
  routingType?: components["schemas"]["RoutingTypeEnum"] | null;
@@ -101469,18 +101588,13 @@ export interface operations {
101469
101588
  };
101470
101589
  };
101471
101590
  };
101472
- production_production_orders_views_preview_production_order_explosion_get: {
101591
+ production_production_orders_views_get_production_order: {
101473
101592
  parameters: {
101474
- query: {
101475
- item: string;
101476
- plannedQuantity: number | string;
101477
- plannedUnitOfMeasureId: string;
101478
- productionVersionId?: string | null;
101479
- orderType?: "batch" | "discrete";
101480
- orderDate?: string | null;
101481
- };
101593
+ query?: never;
101482
101594
  header?: never;
101483
- path?: never;
101595
+ path: {
101596
+ id: string;
101597
+ };
101484
101598
  cookie?: never;
101485
101599
  };
101486
101600
  requestBody?: never;
@@ -101491,20 +101605,20 @@ export interface operations {
101491
101605
  [name: string]: unknown;
101492
101606
  };
101493
101607
  content: {
101494
- "application/json": components["schemas"]["ProductionOrderExplosionPreviewSchema"];
101608
+ "application/json": components["schemas"]["ProductionOrderDetailSchema"];
101495
101609
  };
101496
101610
  };
101497
- /** @description Bad Request */
101498
- 400: {
101611
+ /** @description Forbidden */
101612
+ 403: {
101499
101613
  headers: {
101500
101614
  [name: string]: unknown;
101501
101615
  };
101502
101616
  content: {
101503
- "application/json": components["schemas"]["ErrorMessages"];
101617
+ "application/json": components["schemas"]["MessageResponse"];
101504
101618
  };
101505
101619
  };
101506
- /** @description Forbidden */
101507
- 403: {
101620
+ /** @description Not Found */
101621
+ 404: {
101508
101622
  headers: {
101509
101623
  [name: string]: unknown;
101510
101624
  };
@@ -101514,16 +101628,18 @@ export interface operations {
101514
101628
  };
101515
101629
  };
101516
101630
  };
101517
- production_production_orders_views_preview_production_order_explosion_view: {
101631
+ production_production_orders_views_update_production_order_view: {
101518
101632
  parameters: {
101519
101633
  query?: never;
101520
101634
  header?: never;
101521
- path?: never;
101635
+ path: {
101636
+ id: string;
101637
+ };
101522
101638
  cookie?: never;
101523
101639
  };
101524
101640
  requestBody: {
101525
101641
  content: {
101526
- "application/json": components["schemas"]["CreateProductionOrderSchema"];
101642
+ "application/json": components["schemas"]["UpdateProductionOrderSchema"];
101527
101643
  };
101528
101644
  };
101529
101645
  responses: {
@@ -101533,7 +101649,7 @@ export interface operations {
101533
101649
  [name: string]: unknown;
101534
101650
  };
101535
101651
  content: {
101536
- "application/json": components["schemas"]["ProductionOrderExplosionPreviewSchema"];
101652
+ "application/json": components["schemas"]["ProductionOrderResponseSchema"];
101537
101653
  };
101538
101654
  };
101539
101655
  /** @description Bad Request */
@@ -101554,37 +101670,6 @@ export interface operations {
101554
101670
  "application/json": components["schemas"]["MessageResponse"];
101555
101671
  };
101556
101672
  };
101557
- };
101558
- };
101559
- production_production_orders_views_get_production_order: {
101560
- parameters: {
101561
- query?: never;
101562
- header?: never;
101563
- path: {
101564
- id: string;
101565
- };
101566
- cookie?: never;
101567
- };
101568
- requestBody?: never;
101569
- responses: {
101570
- /** @description OK */
101571
- 200: {
101572
- headers: {
101573
- [name: string]: unknown;
101574
- };
101575
- content: {
101576
- "application/json": components["schemas"]["ProductionOrderDetailSchema"];
101577
- };
101578
- };
101579
- /** @description Forbidden */
101580
- 403: {
101581
- headers: {
101582
- [name: string]: unknown;
101583
- };
101584
- content: {
101585
- "application/json": components["schemas"]["MessageResponse"];
101586
- };
101587
- };
101588
101673
  /** @description Not Found */
101589
101674
  404: {
101590
101675
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.2132",
3
+ "version": "1.0.2134",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": [