@feedmepos/mf-inventory-portal 1.7.16 → 1.8.0-dev.1

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 (304) hide show
  1. package/dist/{App-B4emWPzG.js → App-BXgpGzGR.js} +7 -7
  2. package/dist/{ApprovalView-DK92htkN.js → ApprovalView-C8_ax05b.js} +9 -9
  3. package/dist/{BindingsDialog-Cm6EyERk.js → BindingsDialog-t0ZY9eh5.js} +2 -2
  4. package/dist/{BindingsPicker-Dqgpg9Tg.js → BindingsPicker-C0Qblmml.js} +2 -2
  5. package/dist/{BindingsTable-CFhc3o-0.js → BindingsTable-CsqUBbRA.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-De_Gfe74.js → BulkReceiveRequestView-DAG-TMox.js} +19 -19
  7. package/dist/{ClosingDraftView-CmPAxBdA.js → ClosingDraftView-CdKp4Ny6.js} +19 -19
  8. package/dist/{ClosingHistoryView-IpulrnKA.js → ClosingHistoryView-Blyq9-BS.js} +5 -5
  9. package/dist/{ClosingTemplateView-OfsdZ_0K.js → ClosingTemplateView-C326DL4q.js} +16 -16
  10. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-tAJLuDO6.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js} +1 -1
  11. package/dist/{DefaultView-BHh4qute.js → DefaultView-CsIMmQAY.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-C-4NXoF6.js → DeliveryOrderPrintPreview-eTrMvJzA.js} +12 -12
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CjMENWEw.js → EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js} +6988 -7093
  14. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-2XAyKove.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js} +1 -1
  15. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9ZZ45U8.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js} +2 -2
  16. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +243 -0
  17. package/dist/{FmMultiselectDialog-BDdObapU.js → FmMultiselectDialog-BAw-gp5K.js} +1 -1
  18. package/dist/{FmMultiselectDialog-H1tFhTfx.js → FmMultiselectDialog-CYUxtxnS.js} +2 -2
  19. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BMVN1Mtz.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js} +132 -136
  20. package/dist/{ImportView-TWWf3Ylj.js → ImportView-BmotFC-3.js} +6 -6
  21. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DP4dVR4F.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js} +1 -1
  22. package/dist/{IngredientGroupView-BVLY9TZa.js → IngredientGroupView-qrR9ksEn.js} +5 -5
  23. package/dist/{IngredientsView-CWol9-A0.js → IngredientsView-CZ6E7cXf.js} +15 -15
  24. package/dist/{IntegrationExplorerView-DoHyQtGY.js → IntegrationExplorerView-B15ND4Fg.js} +4 -4
  25. package/dist/{IntegrationView-DWeid2ZB.js → IntegrationView-hkNhsqx2.js} +14 -14
  26. package/dist/{InventoryBindingForm-DnUDQvcr.js → InventoryBindingForm-SfuUF0_O.js} +1 -1
  27. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-3OCFpD4a.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js} +5 -5
  28. package/dist/{InventoryBindingSummary-Boe2MJCu.js → InventoryBindingSummary-DUcukkyJ.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RF62oUjn.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js} +1 -1
  30. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DppLj3C5.js → PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js} +1 -1
  31. package/dist/ProductionRunDetailView-BwgRX-14.js +2312 -0
  32. package/dist/ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js +24789 -0
  33. package/dist/ProductionRunView-CZU7LY9-.js +930 -0
  34. package/dist/{PublishView-D60CmZZ5.js → PublishView-DS2FZ66p.js} +3 -3
  35. package/dist/{PurchaseOrderPrintPreview-BaL5qJUa.js → PurchaseOrderPrintPreview-CZa0MVAs.js} +7 -7
  36. package/dist/{ReceiveRequestView-CqUQHs-M.js → ReceiveRequestView-Bk5b3nVB.js} +14 -14
  37. package/dist/{RecipeView-CticYc7S.js → RecipeView-DvI6X-uN.js} +17 -17
  38. package/dist/{SettingsView-CFRUTaJe.js → SettingsView-sThYErMz.js} +4 -4
  39. package/dist/{StockView-CbVc1mcX.js → StockView-Z9wGihT7.js} +363 -363
  40. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CppXhk4E.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js} +1 -1
  41. package/dist/{SupplierView-DgNYiPI8.js → SupplierView-D8q6siZW.js} +13 -14
  42. package/dist/{SurchargeView-mNeMs_1T.js → SurchargeView-Db_5YFoR.js} +6 -6
  43. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-o3RcEtM9.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js} +2 -2
  44. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BEZmJBAc.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BtoP4XgE.js} +1 -1
  45. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BNw1W23J.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js} +120 -120
  46. package/dist/{TransferTemplateView-BmOGX7FI.js → TransferTemplateView-DtsJzmUr.js} +20 -20
  47. package/dist/{UnitCostHistoryView-DQOr_wX7.js → UnitCostHistoryView-BqDiQ4IE.js} +4 -4
  48. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DVLaA1ZA.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js} +4 -4
  49. package/dist/{UnitView-BGrGPUHA.js → UnitView-CM695-VI.js} +7 -7
  50. package/dist/{WarehouseView-DafgiJVu.js → WarehouseView-BdidU4p6.js} +6 -6
  51. package/dist/{WastageTemplateView-BXemAjAM.js → WastageTemplateView-DdhwdXT6.js} +14 -14
  52. package/dist/api/bill.d.ts +144 -88
  53. package/dist/api/food-market-hub.d.ts +2 -2
  54. package/dist/api/netsuite.d.ts +14 -8
  55. package/dist/api/production-run-error.d.ts +36 -0
  56. package/dist/api/production-run-error.spec.d.ts +1 -0
  57. package/dist/api/production-run.d.ts +80 -0
  58. package/dist/api/production-run.spec.d.ts +1 -0
  59. package/dist/{app-VWFXZ7dF.js → app-Cb5s4jMu.js} +30415 -26297
  60. package/dist/app.d.ts +3048 -100
  61. package/dist/app.js +1 -1
  62. package/dist/{closing-template-Dxu8tjVE.js → closing-template-DnqnpXxn.js} +1 -1
  63. package/dist/components/FmUnitInput.spec.d.ts +1 -0
  64. package/dist/components/FmUnitInputProps.d.ts +2 -1
  65. package/dist/composable/useNavigationMenu.production.spec.d.ts +1 -0
  66. package/dist/{date2-B7qVMfEK.js → date2-BPhD_1Of.js} +1 -1
  67. package/dist/{dayjs.min-BIGL1WMx.js → dayjs.min-Zbd6-uVD.js} +1 -1
  68. package/dist/{decimal-wJRuStYp.js → decimal-Df6a50Ld.js} +2 -2
  69. package/dist/{defineDeepModel-B-N4q6D_.js → defineDeepModel-Brbsikbi.js} +5 -5
  70. package/dist/{duplicate-template-Dc3AP8z8.js → duplicate-template-B9kuShaF.js} +1 -1
  71. package/dist/{feature-Bj408URk.js → feature-Ckn5ra3z.js} +28 -28
  72. package/dist/{format-time-from-id-COQRbS3v.js → format-time-from-id-DmUjUcVj.js} +1 -1
  73. package/dist/{format-unit-display-Byg_gJEi.js → format-unit-display-CsQA0SQd.js} +12 -12
  74. package/dist/{import-export.helper-CmO5mh9c.js → import-export.helper-DCQ6oX9s.js} +6 -6
  75. package/dist/{index-l0UKme3O.js → index-BXaIMGnI.js} +1 -1
  76. package/dist/{index-B6Y1HGgl.js → index-C-mazZwS.js} +3 -3
  77. package/dist/{index-B39d3fcS.js → index-UmM6gHJ1.js} +1 -1
  78. package/dist/{inventory-core-dart.default-BgoHhCBy.js → inventory-core-dart.default-DDRxXXnt.js} +2928 -6981
  79. package/dist/{lz-string-dF-T74Ve.js → lz-string-Bibw5D_6.js} +1 -1
  80. package/dist/{netsuite-vxswdJAv.js → netsuite-Bev0OtQT.js} +5 -3
  81. package/dist/{number-B2hvDkgC.js → number-y_W4pn_d.js} +6 -7
  82. package/dist/{predefined-templates-BZeAQ_96.js → predefined-templates-BHvUnTk_.js} +1 -1
  83. package/dist/{purchase-order-template-D8-2QkSS.js → purchase-order-template-DgOKEzhS.js} +1 -1
  84. package/dist/{recalculationUtils-CtJ3CDdI.js → recalculationUtils-Dv__DzZh.js} +1 -1
  85. package/dist/router/name.d.ts +2 -1
  86. package/dist/router/shared.production.spec.d.ts +1 -0
  87. package/dist/{rules-CaNiIfda.js → rules-CZTBvenw.js} +2 -2
  88. package/dist/{stock-7sjLxL9-.js → stock-CxCRZo_D.js} +1 -1
  89. package/dist/{stock-BxBkb1H4.js → stock-XINW8JOM.js} +3 -3
  90. package/dist/stores/feature.d.ts +1 -1
  91. package/dist/stores/integration/codemax.d.ts +3 -3
  92. package/dist/stores/integration/foodmarkethub.d.ts +2 -2
  93. package/dist/stores/inventory.d.ts +10 -8
  94. package/dist/stores/stock.d.ts +10 -8
  95. package/dist/stores/warehouse.d.ts +2 -1
  96. package/dist/style.css +1 -1
  97. package/dist/{supplier-DVDpK8GC.js → supplier-CkZdeMcl.js} +2 -2
  98. package/dist/{surcharge-iyoTwxxJ.js → surcharge-FRSFqjGl.js} +1 -1
  99. package/dist/tsconfig.app.tsbuildinfo +1 -1
  100. package/dist/{uom-rules-K8delv4L.js → uom-rules-Cm1styDr.js} +1 -1
  101. package/dist/{use-ingredient-select-dialog-wMb7I-1I.js → use-ingredient-select-dialog-ntAqHX04.js} +2 -2
  102. package/dist/{use-inventory-binding-dialog-B9zBF8jQ.js → use-inventory-binding-dialog-DVIJO8Cl.js} +2 -2
  103. package/dist/{use-template-enabled-locations-DAzUQpt2.js → use-template-enabled-locations-CIZqw-Z8.js} +2 -2
  104. package/dist/{use-transfer-locations-DlPwFbxy.js → use-transfer-locations-CM5vNttA.js} +2 -2
  105. package/dist/{useHrmPermission-CewYScjQ.js → useHrmPermission-CslLuBoP.js} +1 -1
  106. package/dist/{useNavigationMenu-CHp8gtOD.js → useNavigationMenu-CSinmNCY.js} +17 -17
  107. package/dist/{useSseClient-BoACuw50.js → useSseClient-CCV4mPzD.js} +1 -1
  108. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +20 -16
  109. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -32
  110. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +20 -16
  111. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +60 -48
  112. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +10 -8
  113. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
  114. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +4 -4
  115. package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +6 -6
  116. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +4 -4
  117. package/dist/views/integration/components/CodemaxDialog.vue.d.ts +6 -6
  118. package/dist/views/production-run/ProductionRunDetailView.spec.d.ts +1 -0
  119. package/dist/views/production-run/ProductionRunDetailView.vue.d.ts +15 -0
  120. package/dist/views/production-run/ProductionRunView.spec.d.ts +1 -0
  121. package/dist/views/production-run/features/detail/ProductionRunActivityTab.spec.d.ts +1 -0
  122. package/dist/views/production-run/features/detail/ProductionRunActivityTab.vue.d.ts +15 -0
  123. package/dist/views/production-run/features/detail/ProductionRunDetailTabs.spec.d.ts +1 -0
  124. package/dist/views/production-run/features/detail/ProductionRunDetailTabs.vue.d.ts +43 -0
  125. package/dist/views/production-run/features/detail/ProductionRunHeader.spec.d.ts +1 -0
  126. package/dist/views/production-run/features/detail/ProductionRunHeader.vue.d.ts +67 -0
  127. package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.spec.d.ts +1 -0
  128. package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.vue.d.ts +52 -0
  129. package/dist/views/production-run/features/detail/ProductionRunItemsTable.spec.d.ts +1 -0
  130. package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +80 -0
  131. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.spec.d.ts +1 -0
  132. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +1066 -0
  133. package/dist/views/production-run/features/detail/ProductionRunResultTable.spec.d.ts +1 -0
  134. package/dist/views/{production/ProductionBindingsCell.vue.d.ts → production-run/features/detail/ProductionRunResultTable.vue.d.ts} +10 -14
  135. package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.spec.d.ts +1 -0
  136. package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.vue.d.ts +15 -0
  137. package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +2098 -0
  138. package/dist/views/production-run/features/detail/use-production-run-detail.spec.d.ts +1 -0
  139. package/dist/views/production-run/features/lifecycle/CancelRunDialog.spec.d.ts +1 -0
  140. package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +1020 -0
  141. package/dist/views/production-run/features/lifecycle/CancelRunDialogProps.d.ts +9 -0
  142. package/dist/views/production-run/features/lifecycle/CloseRunDialog.spec.d.ts +1 -0
  143. package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +1020 -0
  144. package/dist/views/production-run/features/lifecycle/CloseRunDialogProps.d.ts +9 -0
  145. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.spec.d.ts +1 -0
  146. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +3573 -0
  147. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.spec.d.ts +1 -0
  148. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +1026 -0
  149. package/dist/views/production-run/features/list/ProductionRunActionMenu.vue.d.ts +56 -0
  150. package/dist/views/production-run/features/list/ProductionRunActionMenuItem.spec.d.ts +1 -0
  151. package/dist/views/{production/ProductionCompletionDialog.vue.d.ts → production-run/features/list/ProductionRunActionMenuItem.vue.d.ts} +8 -21
  152. package/dist/views/production-run/features/list/ProductionRunActionsCell.spec.d.ts +1 -0
  153. package/dist/views/production-run/features/list/ProductionRunActionsCell.vue.d.ts +20 -0
  154. package/dist/views/production-run/features/list/ProductionRunItemsCell.spec.d.ts +1 -0
  155. package/dist/views/production-run/features/list/ProductionRunItemsCell.vue.d.ts +40 -0
  156. package/dist/views/production-run/features/list/ProductionRunNameCell.spec.d.ts +1 -0
  157. package/dist/views/production-run/features/list/ProductionRunNameCell.vue.d.ts +43 -0
  158. package/dist/views/production-run/features/list/ProductionRunSortHeader.spec.d.ts +1 -0
  159. package/dist/views/production-run/features/list/ProductionRunSortHeader.vue.d.ts +25 -0
  160. package/dist/views/production-run/features/list/use-production-run-table.d.ts +18 -0
  161. package/dist/views/production-run/features/list/use-production-run-table.spec.d.ts +1 -0
  162. package/dist/views/production-run/features/output/ProductionRunBatchCard.spec.d.ts +1 -0
  163. package/dist/views/production-run/features/output/ProductionRunBatchCard.vue.d.ts +70 -0
  164. package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.spec.d.ts +1 -0
  165. package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.vue.d.ts +33 -0
  166. package/dist/views/production-run/features/output/ProductionRunOutputTab.spec.d.ts +1 -0
  167. package/dist/views/production-run/features/output/ProductionRunOutputTab.vue.d.ts +26 -0
  168. package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.spec.d.ts +1 -0
  169. package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.vue.d.ts +43 -0
  170. package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.spec.d.ts +1 -0
  171. package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.vue.d.ts +31 -0
  172. package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.spec.d.ts +1 -0
  173. package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.vue.d.ts +23 -0
  174. package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.spec.d.ts +1 -0
  175. package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.vue.d.ts +33 -0
  176. package/dist/views/production-run/features/output/RecordOutputDialog.spec.d.ts +1 -0
  177. package/dist/views/production-run/features/output/RecordOutputDialog.vue.d.ts +20 -0
  178. package/dist/views/production-run/features/output/RecordOutputDialogProps.d.ts +28 -0
  179. package/dist/views/production-run/features/output/use-production-run-record-output.d.ts +245 -0
  180. package/dist/views/production-run/features/output/use-production-run-record-output.spec.d.ts +1 -0
  181. package/dist/views/production-run/features/planning/ProductionRunContributorBranch.spec.d.ts +1 -0
  182. package/dist/views/production-run/features/planning/ProductionRunContributorBranch.vue.d.ts +25 -0
  183. package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.spec.d.ts +1 -0
  184. package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.vue.d.ts +21 -0
  185. package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.spec.d.ts +1 -0
  186. package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.vue.d.ts +61 -0
  187. package/dist/views/production-run/features/planning/ProductionRunFormDialog.spec.d.ts +1 -0
  188. package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +1022 -0
  189. package/dist/views/production-run/features/planning/ProductionRunFormDialogProps.d.ts +25 -0
  190. package/dist/views/production-run/features/planning/ProductionRunIngredientTree.spec.d.ts +1 -0
  191. package/dist/views/production-run/features/planning/ProductionRunIngredientTree.vue.d.ts +65 -0
  192. package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.spec.d.ts +1 -0
  193. package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.vue.d.ts +15 -0
  194. package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.spec.d.ts +1 -0
  195. package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.vue.d.ts +30 -0
  196. package/dist/views/production-run/features/planning/ProductionRunPlanCard.spec.d.ts +1 -0
  197. package/dist/views/production-run/features/planning/ProductionRunPlanCard.vue.d.ts +67 -0
  198. package/dist/views/production-run/features/planning/ProductionRunPlanner.spec.d.ts +1 -0
  199. package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +85 -0
  200. package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.spec.d.ts +1 -0
  201. package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.vue.d.ts +78 -0
  202. package/dist/views/production-run/features/planning/production-run-frozen-ingredients.d.ts +49 -0
  203. package/dist/views/production-run/features/planning/production-run-frozen-ingredients.spec.d.ts +1 -0
  204. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +1525 -0
  205. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.spec.d.ts +1 -0
  206. package/dist/views/production-run/features/planning/use-production-run-form.d.ts +275 -0
  207. package/dist/views/production-run/features/planning/use-production-run-form.spec.d.ts +1 -0
  208. package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.spec.d.ts +1 -0
  209. package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.vue.d.ts +32 -0
  210. package/dist/views/production-run/features/prepare/PrepareRunDialog.spec.d.ts +1 -0
  211. package/dist/views/production-run/features/prepare/PrepareRunDialog.vue.d.ts +18 -0
  212. package/dist/views/production-run/features/prepare/PrepareRunDialogProps.d.ts +29 -0
  213. package/dist/views/production-run/features/prepare/PrepareSheetDialog.spec.d.ts +1 -0
  214. package/dist/views/production-run/features/prepare/PrepareSheetDialog.vue.d.ts +26 -0
  215. package/dist/views/production-run/features/prepare/ProductionRunPrepareSheet.vue.d.ts +16 -0
  216. package/dist/views/production-run/features/prepare/production-run-prepare-sheet.d.ts +9 -0
  217. package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +4 -0
  218. package/dist/views/production-run/shared/helpers/production-run-navigation.spec.d.ts +1 -0
  219. package/dist/views/production-run/shared/helpers/production-run-precision.helper.d.ts +31 -0
  220. package/dist/views/production-run/shared/helpers/production-run-quantity.helper.d.ts +57 -0
  221. package/dist/views/production-run/shared/helpers/production-run-quantity.helper.spec.d.ts +1 -0
  222. package/dist/views/production-run/shared/model/production-run-display.d.ts +187 -0
  223. package/dist/views/production-run/shared/model/production-run-display.spec.d.ts +1 -0
  224. package/dist/views/production-run/shared/model/production-run-item-ingredients.d.ts +22 -0
  225. package/dist/views/production-run/shared/model/production-run-list.d.ts +45 -0
  226. package/dist/views/production-run/shared/model/production-run-list.spec.d.ts +1 -0
  227. package/dist/views/production-run/shared/model/production-run-request-confirmation.d.ts +20 -0
  228. package/dist/views/production-run/shared/model/production-run-text-limit.d.ts +22 -0
  229. package/dist/views/production-run/shared/model/production-run-text-limit.spec.d.ts +1 -0
  230. package/dist/views/production-run/shared/model/production-run-unit-snapshot.d.ts +39 -0
  231. package/dist/views/production-run/shared/model/use-production-run-actions.d.ts +39 -0
  232. package/dist/views/production-run/shared/model/use-production-run-actions.spec.d.ts +1 -0
  233. package/dist/views/production-run/shared/model/use-production-run-ingredients.d.ts +658 -0
  234. package/dist/views/production-run/shared/model/use-production-run-ingredients.spec.d.ts +1 -0
  235. package/dist/views/production-run/shared/ui/ProductionRunBanner.vue.d.ts +39 -0
  236. package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.spec.d.ts +1 -0
  237. package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.vue.d.ts +25 -0
  238. package/dist/views/production-run/shared/ui/ProductionRunBindingsList.vue.d.ts +51 -0
  239. package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.spec.d.ts +1 -0
  240. package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.vue.d.ts +23 -0
  241. package/dist/views/production-run/shared/ui/ProductionRunCompactDisclosure.vue.d.ts +25 -0
  242. package/dist/views/production-run/shared/ui/ProductionRunCostingUnavailable.vue.d.ts +2 -0
  243. package/dist/views/production-run/shared/ui/ProductionRunDialog.spec.d.ts +1 -0
  244. package/dist/views/production-run/shared/ui/ProductionRunDialog.vue.d.ts +24 -0
  245. package/dist/views/production-run/shared/ui/ProductionRunDialogProps.d.ts +15 -0
  246. package/dist/views/production-run/shared/ui/ProductionRunDialogSurface.vue.d.ts +33 -0
  247. package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.spec.d.ts +1 -0
  248. package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.vue.d.ts +67 -0
  249. package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.spec.d.ts +1 -0
  250. package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +70 -0
  251. package/dist/views/production-run/shared/ui/ProductionRunInfoText.spec.d.ts +1 -0
  252. package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +71 -0
  253. package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.spec.d.ts +1 -0
  254. package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.vue.d.ts +15 -0
  255. package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.spec.d.ts +1 -0
  256. package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.vue.d.ts +46 -0
  257. package/dist/views/production-run/shared/ui/ProductionRunScrollHint.spec.d.ts +1 -0
  258. package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +41 -0
  259. package/dist/views/production-run/shared/ui/ProductionRunSelectionCheckbox.vue.d.ts +31 -0
  260. package/dist/views/production-run/shared/ui/ProductionRunSelectionControls.spec.d.ts +1 -0
  261. package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.spec.d.ts +1 -0
  262. package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.vue.d.ts +37 -0
  263. package/dist/views/production-run/shared/ui/ProductionRunSideSheet.spec.d.ts +1 -0
  264. package/dist/views/production-run/shared/ui/ProductionRunSideSheet.vue.d.ts +77 -0
  265. package/dist/views/production-run/shared/ui/ProductionRunSideSheetSurface.vue.d.ts +52 -0
  266. package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.spec.d.ts +1 -0
  267. package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.vue.d.ts +21 -0
  268. package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.spec.d.ts +1 -0
  269. package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.vue.d.ts +23 -0
  270. package/dist/views/production-run/shared/ui/ProductionRunTextarea.spec.d.ts +1 -0
  271. package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +62 -0
  272. package/dist/views/production-run/shared/ui/ProductionRunUnitInput.spec.d.ts +1 -0
  273. package/dist/views/production-run/shared/ui/ProductionRunUnitInput.vue.d.ts +34 -0
  274. package/dist/views/production-run/shared/ui/production-run-info.types.d.ts +11 -0
  275. package/dist/views/production-run/shared/ui/use-production-run-disclosure.d.ts +15 -0
  276. package/dist/views/production-run/shared/ui/use-production-run-disclosure.spec.d.ts +1 -0
  277. package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.d.ts +17 -0
  278. package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.spec.d.ts +1 -0
  279. package/dist/views/production-run/shared/ui/use-production-run-scroll-hint.d.ts +9 -0
  280. package/dist/views/production-run/test-support/production-run.fixture.d.ts +88 -0
  281. package/dist/views/production-run/test-support/production-run.fixture.spec.d.ts +1 -0
  282. package/dist/views/production-run/tests/contracts/ProductionRunLoadBannerContract.spec.d.ts +1 -0
  283. package/dist/views/production-run/tests/contracts/production-run-deduction-parity.spec.d.ts +1 -0
  284. package/dist/views/production-run/tests/contracts/production-run-typography-contract.spec.d.ts +1 -0
  285. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
  286. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +9 -9
  287. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
  288. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +8 -8
  289. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +2 -2
  290. package/dist/views/stock/components/StockRecordCard.vue.d.ts +72 -44
  291. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +12 -8
  292. package/dist/views/stock/components/dialog/AmendAdjustmentForm.vue.d.ts +2 -0
  293. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +4 -2
  294. package/dist/{vue-i18n-BYzrWQxg.js → vue-i18n-C5j4EQhi.js} +536 -536
  295. package/dist/{xlsx.util-Fz9b_www.js → xlsx.util-B50OvX4z.js} +2 -2
  296. package/package.json +5 -4
  297. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D-3CL62z.js +0 -130
  298. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CwV6Hlut.js +0 -120
  299. package/dist/ProductionView-CUQW-it2.js +0 -1441
  300. package/dist/api/production.d.ts +0 -30
  301. package/dist/views/production/ProductionDetailSheet.vue.d.ts +0 -42
  302. package/dist/views/production/ProductionDuplicateDialog.vue.d.ts +0 -282
  303. package/dist/views/production/ProductionPrepareBuilder.vue.d.ts +0 -282
  304. /package/dist/views/{production/ProductionView.vue.d.ts → production-run/ProductionRunView.vue.d.ts} +0 -0
@@ -4,7 +4,7 @@ export declare const useFMHApi: () => {
4
4
  readSetting(): Promise<FdoFMHSetting>;
5
5
  updateSetting(setting: FdoFMHSetting): Promise<{
6
6
  _id: string;
7
- enable: boolean;
7
+ branchCode: string;
8
8
  bindings: {
9
9
  combinationKey?: string | null | undefined;
10
10
  code: string;
@@ -16,8 +16,8 @@ export declare const useFMHApi: () => {
16
16
  selection: string;
17
17
  }[];
18
18
  exportAsJson: boolean;
19
+ enable: boolean;
19
20
  uniqueCode: string;
20
- branchCode: string;
21
21
  server: {
22
22
  host: string;
23
23
  username: string;
@@ -374,12 +374,13 @@ export declare const useNetSuiteApi: () => {
374
374
  skus?: {
375
375
  fromCostBalances?: {
376
376
  adjustmentId?: string | null | undefined;
377
- amount: {
377
+ cost?: {
378
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
378
379
  amount: number;
379
380
  precision: number;
380
- };
381
- cost: {
382
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
381
+ } | null | undefined;
382
+ costPending?: boolean | null | undefined;
383
+ amount: {
383
384
  amount: number;
384
385
  precision: number;
385
386
  };
@@ -402,6 +403,7 @@ export declare const useNetSuiteApi: () => {
402
403
  amount: number;
403
404
  precision: number;
404
405
  } | null | undefined;
406
+ costPending?: boolean | null | undefined;
405
407
  ref?: string | null | undefined;
406
408
  remark?: string | null | undefined;
407
409
  physicalAmounts?: {
@@ -428,12 +430,13 @@ export declare const useNetSuiteApi: () => {
428
430
  }[] | null | undefined;
429
431
  toCostBalances?: {
430
432
  adjustmentId?: string | null | undefined;
431
- amount: {
433
+ cost?: {
434
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
432
435
  amount: number;
433
436
  precision: number;
434
- };
435
- cost: {
436
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
437
+ } | null | undefined;
438
+ costPending?: boolean | null | undefined;
439
+ amount: {
437
440
  amount: number;
438
441
  precision: number;
439
442
  };
@@ -526,6 +529,7 @@ export declare const useNetSuiteApi: () => {
526
529
  amount: number;
527
530
  precision: number;
528
531
  } | null | undefined;
532
+ costPending?: boolean | null | undefined;
529
533
  ref?: string | null | undefined;
530
534
  remark?: string | null | undefined;
531
535
  physicalAmounts?: {
@@ -559,6 +563,8 @@ export declare const useNetSuiteApi: () => {
559
563
  };
560
564
  }[] | null | undefined;
561
565
  salesAdjustmentId?: string | null | undefined;
566
+ productionRunBatchId?: string | null | undefined;
567
+ productionRunIssuanceAdjustmentId?: string | null | undefined;
562
568
  _id: string;
563
569
  }>;
564
570
  getInventoryTransferHistory(locationId: string, startDate?: Date, endDate?: Date): Promise<FdtoNetSuiteInventoryTransferRecord[]>;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Classification of a failed production-run write.
3
+ *
4
+ * Generic lifecycle actions must reload after ambiguous writes. Recording
5
+ * output holds its exact request in memory and reconciles server batch
6
+ * evidence before deciding whether that same operation can be resent.
7
+ */
8
+ export type ProductionRunFailureKind = 'shortageAcknowledgementRequired'
9
+ /** 400 — the action is not legal on the run's current status and data. */
10
+ | 'illegalAction'
11
+ /** 409 — the run moved under us, or a claimed document is occupied. */
12
+ | 'conflict' | 'notFound'
13
+ /** The request may never have reached the server. */
14
+ | 'timeout' | 'badRequest' | 'unknown';
15
+ export interface ProductionRunFailure {
16
+ kind: ProductionRunFailureKind;
17
+ message: string;
18
+ /**
19
+ * Classification alone never authorizes retransmission. Output recovery
20
+ * may resend its durable request only after reconciling the current run.
21
+ */
22
+ retrySameKey: boolean;
23
+ /** The client's copy of the run is stale — re-read before offering actions. */
24
+ mustReload: boolean;
25
+ shortages: FdoProductionRunIngredientShortage[];
26
+ }
27
+ /**
28
+ * Turn whatever `defineApi` threw into a decision the UI can act on.
29
+ *
30
+ * `defineApi` wraps a failed response into `SvcCompanyApiError(message, body)`
31
+ * — the body is the Nest error payload, so the status code is
32
+ * `errorResponse.statusCode`, never a field on the error itself. A transport
33
+ * failure produces the same class with no status code at all, which is why
34
+ * everything unrecognised lands on `unknown` and requires a reload.
35
+ */
36
+ export declare function classifyProductionRunError(e: unknown): ProductionRunFailure;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,80 @@
1
+ import type { FdoDecimal } from '@feedmepos/core/entity';
2
+ import type { WithRev } from '@/api/type';
3
+ export interface CreateProductionRunInput {
4
+ /**
5
+ * Client-minted timestamp-shaped run id for this create INTENT — not this attempt. Every
6
+ * retry of the same intent (for example, a timeout before the operator has
7
+ * seen a result) must resend the same key so the server can
8
+ * recognise it as the same create rather than a second run; a genuinely new
9
+ * or reset draft mints a new one. See `useProductionRunApi`'s create caller.
10
+ */
11
+ operationKey: string;
12
+ items: FdoProductionRunItem[];
13
+ /**
14
+ * Optional label expressed explicitly: null means the operator left it
15
+ * blank. `runNo` remains the durable display fallback.
16
+ */
17
+ runName: string | null;
18
+ /**
19
+ * The requester's handoff note for the whole run. Distinct from `remark`,
20
+ * which describes this write and lands on an activity-log entry.
21
+ */
22
+ instructions: string | null;
23
+ }
24
+ export interface UpdateProductionRunInput {
25
+ _rev: string;
26
+ items: FdoProductionRunItem[];
27
+ /** Pass `null` to clear the name. Updates replace the complete draft form. */
28
+ runName: string | null;
29
+ /** Same contract as `runName`, and editable only while the run is a DRAFT. */
30
+ instructions: string | null;
31
+ }
32
+ export interface PrepareProductionRunInput {
33
+ committed: {
34
+ skuId: string;
35
+ amount: FdoDecimal;
36
+ measurement: FdoProductionUnitSnapshot;
37
+ }[];
38
+ acknowledgeShortages: boolean;
39
+ remark: string | null;
40
+ }
41
+ export interface RecordProductionOutputInput {
42
+ /** Client-minted identity for this ordinary write attempt. */
43
+ operationKey: string;
44
+ /** The actual production datetime, entered by the user. */
45
+ producedAt: string;
46
+ items: FdoProductionRunBatchItem[];
47
+ wastages: RecordProductionOutputWastageInput[];
48
+ /** Product-optional batch note. Blank input is explicit null; never omitted. */
49
+ remark: string | null;
50
+ }
51
+ /** The generated durable wastage line used by the Record Output request. */
52
+ export type RecordProductionOutputWastageInput = FdoProductionWastageLine;
53
+ /** The persisted run shape returned by every Production Run API operation. */
54
+ export type ProductionRunDocument = WithRev<FdoProductionRun>;
55
+ export interface ProductionRunListOptions {
56
+ status?: F_PRODUCTION_RUN_STATUS;
57
+ limit?: number;
58
+ cursor?: string;
59
+ }
60
+ export interface ProductionRunPage {
61
+ items: ProductionRunDocument[];
62
+ nextCursor: string | null;
63
+ }
64
+ export interface ProductionRunPlanningContext {
65
+ ruleContext: Record<string, unknown>;
66
+ }
67
+ export type PrepareProductionRunResult = ProductionRunDocument;
68
+ export type RecordProductionOutputResult = ProductionRunDocument;
69
+ export declare const useProductionRunApi: () => {
70
+ list(options?: ProductionRunListOptions): Promise<ProductionRunPage>;
71
+ planningContext(): Promise<ProductionRunPlanningContext>;
72
+ read(id: string): Promise<ProductionRunDocument>;
73
+ create(dto: CreateProductionRunInput): Promise<ProductionRunDocument>;
74
+ update(id: string, dto: UpdateProductionRunInput): Promise<ProductionRunDocument>;
75
+ request(id: string, remark?: string | null): Promise<ProductionRunDocument>;
76
+ prepare(id: string, dto: PrepareProductionRunInput): Promise<PrepareProductionRunResult>;
77
+ complete(id: string, dto: RecordProductionOutputInput): Promise<RecordProductionOutputResult>;
78
+ close(id: string, remark?: string | null): Promise<ProductionRunDocument>;
79
+ cancel(id: string, reason?: string | null): Promise<ProductionRunDocument>;
80
+ };
@@ -0,0 +1 @@
1
+ export {};