@feedmepos/mf-inventory-portal 1.2.12-dev.3 → 1.2.13

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 (74) hide show
  1. package/dist/{App-D5hXQpVn.js → App-ZoXow3DD.js} +40 -44
  2. package/dist/{ApprovalView-B__WDklZ.js → ApprovalView-BWX6xBQs.js} +30 -30
  3. package/dist/{BindingsDialog-DXdwRSnn.js → BindingsDialog-CuwkcDKX.js} +2 -2
  4. package/dist/{BindingsPicker-CqAD3aHc.js → BindingsPicker-BibFsY0g.js} +1 -1
  5. package/dist/{BindingsTable-DVNjpusl.js → BindingsTable-AdjKwSPH.js} +1 -1
  6. package/dist/{ClosingDraftView-DL678GBB.js → ClosingDraftView-DWFHP9nE.js} +129 -129
  7. package/dist/{ClosingTemplateView-DThiXLtp.js → ClosingTemplateView-DOCF5f_u.js} +28 -28
  8. package/dist/{DeliveryOrderPrintPreview-B2MB9S6a.js → DeliveryOrderPrintPreview-DNDtL_Vo.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BNxs6Bcr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BWhINOE8.js} +3 -3
  10. package/dist/{FmMultiselectDialog-B45ZLjVp.js → FmMultiselectDialog-Dfo04ak5.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8ks6AEM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DGVs4zLl.js} +45 -45
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C5zIvG2h.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BESx2u4Y.js} +1 -1
  13. package/dist/{IngredientGroupView-D95dFXIZ.js → IngredientGroupView-M9sXlnE0.js} +32 -31
  14. package/dist/IngredientsView-DUwhH3j1.js +2475 -0
  15. package/dist/{IntegrationView-9m3N_9lW.js → IntegrationView-BlUNz1yc.js} +57 -57
  16. package/dist/{InventoryBindingForm-kLoQskao.js → InventoryBindingForm-CvQ5zh6v.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BytErBcK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BEAEmPsU.js} +31 -31
  18. package/dist/{InventoryBindingSummary-Dg0FH7ad.js → InventoryBindingSummary-CsJ-6G2P.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKrUNLuG.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjN_ktl1.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BL1f817e.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BN_e7k7U.js} +1 -1
  21. package/dist/{PublishView-BcOHSAj3.js → PublishView-DZgCyLK2.js} +15 -15
  22. package/dist/{PurchaseOrderPrintPreview-UfF8RVkv.js → PurchaseOrderPrintPreview-CB2xvQ33.js} +1 -1
  23. package/dist/{ReceiveRequestView-D_y_xNUb.js → ReceiveRequestView-DgDHOS-Y.js} +63 -62
  24. package/dist/RecipeView-DQDfwCJd.js +621 -0
  25. package/dist/{StockView-ciU6aAV7.js → StockView-eJOngk08.js} +166 -165
  26. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-XwDTGpR-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BMFfegsk.js} +1 -1
  27. package/dist/{SupplierView-DFwtALPg.js → SupplierView-BS8rBAKC.js} +492 -490
  28. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-w98ibfql.js +3060 -0
  29. package/dist/{TransferTemplateView-BXr_GqTi.js → TransferTemplateView-By5Ci4Yg.js} +48 -48
  30. package/dist/UnitView-DmuWMFlA.js +667 -0
  31. package/dist/{WarehouseView-BYd0bPhi.js → WarehouseView-4ZLSJXYc.js} +32 -32
  32. package/dist/api/inventory.d.ts +0 -306
  33. package/dist/api/purchase-order.d.ts +0 -1
  34. package/dist/{app-Bb0-8bRg.js → app-D2lun71R.js} +11108 -11723
  35. package/dist/app.d.ts +0 -421
  36. package/dist/app.js +1 -1
  37. package/dist/array-Ca8T3f_G.js +44 -0
  38. package/dist/{closing-template-DPVNEyI7.js → closing-template-Cm1TtVzm.js} +1 -1
  39. package/dist/{decimal-BdBZYISm.js → decimal-eeicE4jp.js} +1 -1
  40. package/dist/{format-unit-display-DlmCwWo_.js → format-unit-display-vHKazw0l.js} +25 -25
  41. package/dist/helper/number.d.ts +0 -1
  42. package/dist/{index-CqBKFj1B.js → index-C5s-1g7c.js} +1 -1
  43. package/dist/{index-CKFmV1Pk.js → index-DvX9cMJV.js} +1 -1
  44. package/dist/{purchase-order-template-CLtEYr5E.js → purchase-order-template-uTs7bR89.js} +1 -1
  45. package/dist/router/name.d.ts +0 -1
  46. package/dist/{stock-nHQhfe2W.js → stock-CL2LNdXp.js} +1 -1
  47. package/dist/stores/feature.d.ts +0 -2
  48. package/dist/stores/inventory.d.ts +199 -26
  49. package/dist/{supplier-DuOjLpOa.js → supplier-CuzoW2k4.js} +1 -1
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/{use-ingredient-select-dialog-B-11Eqlm.js → use-ingredient-select-dialog-Cpg4lHHC.js} +1 -1
  52. package/dist/{use-inventory-binding-dialog-DhLSdRtp.js → use-inventory-binding-dialog-h4M4ICQK.js} +1 -1
  53. package/dist/views/ingredients/helper/import-export.helper.d.ts +1 -3
  54. package/dist/views/recipe/RecipeView.vue.d.ts +0 -1
  55. package/dist/views/unit/UnitView.vue.d.ts +0 -1
  56. package/package.json +2 -2
  57. package/dist/ImportView-EXm_g_jD.js +0 -1303
  58. package/dist/IngredientsView-MF1USuZI.js +0 -2240
  59. package/dist/RecipeView-DOaU9GIF.js +0 -636
  60. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdA5_lEz.js +0 -3221
  61. package/dist/UnitView-CAXHvh3n.js +0 -674
  62. package/dist/import-export.helper-B04wszRI.js +0 -243
  63. package/dist/views/import/ImportView.vue.d.ts +0 -3
  64. package/dist/views/import/components/ImportDialog.vue.d.ts +0 -2
  65. package/dist/views/import/helper/import-export.helper.d.ts +0 -4
  66. package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +0 -17
  67. package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +0 -16
  68. package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +0 -2
  69. package/dist/views/recipe/helper/import-recipe.d.ts +0 -48
  70. package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +0 -12
  71. package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +0 -6
  72. package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +0 -9
  73. package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +0 -5
  74. package/dist/views/unit/helper/import-export.helper.d.ts +0 -40
@@ -1,11 +1,11 @@
1
- import { a as q, Z as Ie, an as U, W as Ne, ao as ye, V as he, u as Z, l as L, ap as De, y as le, aq as ve, b as te, t as G, x as J, aS as Oe, aK as Fe, a4 as Pe, z as Me, B as Ue, ar as Le, e as ce, f as re, R as me, v as Be, al as Qe, D as j, j as N, i as He } from "./app-Bb0-8bRg.js";
1
+ import { a as q, a1 as Ie, ap as U, B as Ne, aq as ye, C as he, u as J, l as L, E as De, y as le, G as ve, b as te, t as G, x as Z, aS as Oe, aK as Fe, a6 as Pe, J as Me, K as Ue, ar as Le, e as ce, f as re, R as me, v as Be, an as Qe, D as j, j as N, i as He } from "./app-D2lun71R.js";
2
2
  import { useCoreStore as ge, useI18n as ne } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as Ve, useSnackbar as be, useDialog as qe, FmButtonVariant as z, components as X } from "@feedmepos/ui-library";
4
4
  import { defineStore as xe } from "pinia";
5
- import { u as Se } from "./purchase-order-template-CLtEYr5E.js";
6
- import { defineComponent as oe, resolveComponent as Q, openBlock as _, createElementBlock as E, createElementVNode as C, normalizeClass as H, createTextVNode as je, toDisplayString as D, unref as I, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as B, renderList as W, ref as k, onMounted as ze, computed as ue, watch as Ke, createSlots as We, createBlock as K, h as Y } from "vue";
7
- import { useRouter as Ye } from "vue-router";
8
- import { u as ae } from "./supplier-DuOjLpOa.js";
5
+ import { u as Se } from "./purchase-order-template-uTs7bR89.js";
6
+ import { defineComponent as oe, resolveComponent as Q, openBlock as _, createElementBlock as E, createElementVNode as C, normalizeClass as H, createTextVNode as je, toDisplayString as D, unref as I, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as B, renderList as Y, ref as k, onMounted as ze, computed as ue, watch as Ke, createSlots as Ye, createBlock as K, h as W } from "vue";
7
+ import { useRouter as We } from "vue-router";
8
+ import { u as ae } from "./supplier-CuzoW2k4.js";
9
9
  function Te(e) {
10
10
  const t = q(), a = e.sku, u = t.skuById[a._id];
11
11
  if (u.unit._id !== a.unit._id) return !0;
@@ -109,8 +109,8 @@ function Ge(e) {
109
109
  )) == null ? void 0 : l.sheets, s = `${a == null ? void 0 : a.name} transfer templates (${Ne(/* @__PURE__ */ new Date())}).xlsx`, f = ye(i);
110
110
  return he(f, s), s;
111
111
  }
112
- function Ze() {
113
- const e = ge(), t = ae(), a = Z(), u = q(), i = e.currentBusiness.value, s = _e({
112
+ function Je() {
113
+ const e = ge(), t = ae(), a = J(), u = q(), i = e.currentBusiness.value, s = _e({
114
114
  sku: {
115
115
  unit: {
116
116
  _id: "",
@@ -220,8 +220,8 @@ function Ze() {
220
220
  }), b = `${i == null ? void 0 : i.name} transfer templates import.xlsx`;
221
221
  return he(v, b), b;
222
222
  }
223
- function Je(e, t) {
224
- const a = new Array(), u = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, s = Z().locationByDbName, l = ae().supplierById, o = e.trim(), c = u.exec(o);
223
+ function Ze(e, t) {
224
+ const a = new Array(), u = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, s = J().locationByDbName, l = ae().supplierById, o = e.trim(), c = u.exec(o);
225
225
  if (!c)
226
226
  return a.push(`Transfer from location value of ${o} cannot be read.`), {
227
227
  errors: a
@@ -265,7 +265,7 @@ function Je(e, t) {
265
265
  function Xe(e) {
266
266
  if (!e.length || `${e[0]}`.toLocaleLowerCase() === "all")
267
267
  return [];
268
- const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, u = Z().locationByDbName;
268
+ const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, u = J().locationByDbName;
269
269
  return e.map((i) => {
270
270
  const s = new Array(), f = i.trim(), l = t.exec(f);
271
271
  if (!l)
@@ -397,18 +397,18 @@ function nt(e, t, a) {
397
397
  }
398
398
  const c = G(
399
399
  e.quantityStep,
400
- J(l, o)
400
+ Z(l, o)
401
401
  );
402
402
  (Number.isNaN(Number(e.quantityStep)) || Number(e.quantityStep) <= 0) && f.push("Amount step must be more than 0");
403
403
  const h = Oe(c), d = rt(
404
404
  e.minimumQuantity,
405
405
  e.maximumQuantity,
406
- J(l, o)
406
+ Z(l, o)
407
407
  ), m = d.min, v = d.max;
408
408
  d.compareError && f.push(d.compareError);
409
409
  const b = Fe(+e.minimumQuantity, +e.maximumQuantity), r = G(
410
410
  e.defaultQuantity,
411
- J(l, o)
411
+ Z(l, o)
412
412
  ), x = h(r);
413
413
  typeof x == "string" && f.push(`Default amount: ${x}`);
414
414
  const w = d.min && d.max ? b(`${e.defaultQuantity}`) : null;
@@ -437,7 +437,7 @@ function ot(e) {
437
437
  return t.reduce(
438
438
  (s, f) => {
439
439
  var p;
440
- const l = new Array(), o = e.Sheets[f], c = et(o), h = Je(c.transferFrom, c.type);
440
+ const l = new Array(), o = e.Sheets[f], c = et(o), h = Ze(c.transferFrom, c.type);
441
441
  l.push(...h.errors);
442
442
  const d = h.from, m = Xe(c.locations), v = m.filter((n) => n.location).map((n) => n.location);
443
443
  l.push(...m.flatMap((n) => n.errors));
@@ -575,7 +575,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
575
575
  P(i, { "z-index": 50 }, {
576
576
  content: ee(() => [
577
577
  C("ol", null, [
578
- (_(!0), E(B, null, W(t.errors, (o, c) => (_(), E("li", { key: c }, D(o), 1))), 128))
578
+ (_(!0), E(B, null, Y(t.errors, (o, c) => (_(), E("li", { key: c }, D(o), 1))), 128))
579
579
  ])
580
580
  ]),
581
581
  default: ee(() => [
@@ -701,7 +701,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
701
701
  onFileUpload: r[0] || (r[0] = (p) => t.value = p),
702
702
  label: I(m)("inventory.ingredient.import.uploadTemplate"),
703
703
  "button-label": I(m)("inventory.ingredient.import.selectFile")
704
- }, We({ _: 2 }, [
704
+ }, Ye({ _: 2 }, [
705
705
  t.value ? {
706
706
  name: "default",
707
707
  fn: ee(({ openFileDialog: p }) => [
@@ -747,7 +747,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
747
747
  ]))
748
748
  ], 2),
749
749
  l.value.length ? (_(), E("div", vt, [
750
- (_(!0), E(B, null, W(l.value, (n, y) => (_(), E("div", {
750
+ (_(!0), E(B, null, Y(l.value, (n, y) => (_(), E("div", {
751
751
  key: y,
752
752
  class: "flex gap-8 items-center"
753
753
  }, [
@@ -766,7 +766,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
766
766
  ]), 1032, ["class", "label", "button-label"]),
767
767
  d.value ? (_(), E("div", bt, [
768
768
  C("div", xt, D(I(m)("inventory.ingredient.import.summary")), 1),
769
- (_(!0), E(B, null, W(o.value, (p, n) => (_(), K(pe, {
769
+ (_(!0), E(B, null, Y(o.value, (p, n) => (_(), K(pe, {
770
770
  key: n,
771
771
  name: p.template.name,
772
772
  "transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
@@ -775,7 +775,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
775
775
  errors: p.errors,
776
776
  type: "create"
777
777
  }, null, 8, ["name", "transfer-type", "locations", "items", "errors"]))), 128)),
778
- (_(!0), E(B, null, W(c.value, (p) => (_(), K(pe, {
778
+ (_(!0), E(B, null, Y(c.value, (p) => (_(), K(pe, {
779
779
  key: p.template._id,
780
780
  name: p.template.name,
781
781
  "transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
@@ -802,7 +802,7 @@ function Tt(e) {
802
802
  return u && u == i;
803
803
  }
804
804
  const _t = xe("transferTemplateActions", () => {
805
- const e = qe(), t = be(), a = Z(), u = Ce(), i = Le(), s = Se(), f = te(), l = Ye(), { t: o } = ne(), c = k({});
805
+ const e = qe(), t = be(), a = J(), u = Ce(), i = Le(), s = Se(), f = te(), l = We(), { t: o } = ne(), c = k({});
806
806
  function h() {
807
807
  c.value = {
808
808
  mode: ce.CREATE,
@@ -882,7 +882,7 @@ const _t = xe("transferTemplateActions", () => {
882
882
  props: ["modelValue"],
883
883
  emits: ["update:modelValue"],
884
884
  setup(R) {
885
- return () => Y(X.FmTextField, {
885
+ return () => W(X.FmTextField, {
886
886
  modelValue: R.modelValue,
887
887
  "onUpdate:modelValue": (g) => $ = g,
888
888
  label: "New Template Name",
@@ -1033,7 +1033,7 @@ const _t = xe("transferTemplateActions", () => {
1033
1033
  return;
1034
1034
  }
1035
1035
  e.close(), S(n);
1036
- }).onTertiary(Ze);
1036
+ }).onTertiary(Je);
1037
1037
  }
1038
1038
  async function S(n) {
1039
1039
  try {
@@ -1175,8 +1175,8 @@ const Ce = xe(
1175
1175
  },
1176
1176
  cell(d) {
1177
1177
  const m = Number(d.getValue()) || 0, v = d.row.original.purchaseOrder.items.some(Te);
1178
- return m === 0 || v ? Y("div", { class: "flex justify-end gap-4 items-center" }, [
1179
- Y(
1178
+ return m === 0 || v ? W("div", { class: "flex justify-end gap-4 items-center" }, [
1179
+ W(
1180
1180
  X.FmTooltip,
1181
1181
  {},
1182
1182
  {
@@ -1184,7 +1184,7 @@ const Ce = xe(
1184
1184
  return v ? "The template is invalid due to invalid unit on some of the items. Please update this template." : "The template is invalid due to deleted ingredients. Please update this template.";
1185
1185
  },
1186
1186
  default() {
1187
- return Y(X.FmIcon, {
1187
+ return W(X.FmIcon, {
1188
1188
  name: "error",
1189
1189
  color: "system-error-300",
1190
1190
  size: "sm"
@@ -36,4 +36,3 @@ export declare function countDivisibleByTrailingZero(n: number | BigInt): number
36
36
  * Documentation at: https://www.notion.so/feedmepos/Precision-Handling-Logic-8e2211106b4a4a0f9fae8ee9c1e897da?pvs=4
37
37
  */
38
38
  export declare function getAllowedPrecision(unit: FdoInventoryUnit, measurement?: FdoUnitMeasurement | null): number;
39
- export declare const isNumeric: (value: any) => boolean | 0;
@@ -1,4 +1,4 @@
1
- import { b6 as x, be as V, bf as q, bg as Ne, bh as cl, bi as sr, bj as Lt, bk as fl, bl as $l } from "./app-Bb0-8bRg.js";
1
+ import { b5 as x, bd as V, be as q, bf as Ne, bg as cl, bh as sr, bi as Lt, bj as fl, bk as $l } from "./app-D2lun71R.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,5 +1,5 @@
1
1
  import { ref as b, computed as u } from "vue";
2
- import { u as d, b7 as p, aY as v, c as m, b as h } from "./app-Bb0-8bRg.js";
2
+ import { u as d, b6 as p, aY as v, c as m, b as h } from "./app-D2lun71R.js";
3
3
  import { useSnackbar as E } from "@feedmepos/ui-library";
4
4
  function I() {
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { a6 as s } from "./app-Bb0-8bRg.js";
1
+ import { a8 as s } from "./app-D2lun71R.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  const u = s((n, a) => {
4
4
  function o() {
@@ -15,7 +15,6 @@ export declare enum RouteName {
15
15
  APPROVAL = "APPROVAL",
16
16
  SUPPLIER = "SUPPLIER",
17
17
  PUBLISH = "PUBLISH",
18
- IMPORT = "IMPORT",
19
18
  INTEGRATION = "INTEGRATION",
20
19
  DEV = "DEV",
21
20
  IFRAME_INVENTORY_BINDINGS_TABLE = "IFRAME_INVENTORY_BINDINGS_TABLE",
@@ -1,4 +1,4 @@
1
- import { a6 as m, u as k, a as l, az as B, Z as p } from "./app-Bb0-8bRg.js";
1
+ import { a8 as m, u as k, a as l, az as B, a1 as p } from "./app-D2lun71R.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $ } from "@feedmepos/ui-library";
4
4
  import { ref as y, computed as b } from "vue";
@@ -27,7 +27,6 @@ export interface FeatureState {
27
27
  inventory_pos_transfer_require_fulfillment: boolean;
28
28
  inventory_backdate_receive: boolean;
29
29
  inventory_purchase_order_custom_cost: boolean;
30
- inventory_bulk_import: boolean;
31
30
  }
32
31
  export declare const useFeatureStore: () => {
33
32
  readonly businessDbName: string;
@@ -59,7 +58,6 @@ export declare const useFeatureStore: () => {
59
58
  readonly enablePOSTransferRequireFulfillment: boolean;
60
59
  readonly enableBackdateReceive: boolean;
61
60
  readonly enablePurchaseOrderReceiveWithCustomCost: boolean;
62
- readonly enableBulkImport: boolean;
63
61
  init(): Promise<void>;
64
62
  awaitFeatureLoaded(callback: () => boolean): Promise<boolean>;
65
63
  };
@@ -1,7 +1,6 @@
1
1
  import type { CreateType } from '@/api/type';
2
2
  import type { FdoMenuV4 } from '@feedmepos/menu/entity';
3
3
  import { type FlattenInventoryBindingResult } from '@feedmepos/inventory-core';
4
- import '@/extensions/array';
5
4
  export type BindingType = 'INGREDIENT' | 'RECIPE' | 'MENU';
6
5
  export type BindedBySkuId = FdoInventoryBinding & {
7
6
  from: BindingType;
@@ -2189,28 +2188,6 @@ export declare function useInventoryStore(): {
2189
2188
  };
2190
2189
  }[];
2191
2190
  }>;
2192
- readonly recipeByName: Record<string, {
2193
- customAttributes?: Record<string, any> | null | undefined;
2194
- _id: string;
2195
- name: string;
2196
- contains: {
2197
- measurement?: {
2198
- id: string;
2199
- name: string;
2200
- abbrev: string;
2201
- conversion: {
2202
- amount: number;
2203
- precision: number;
2204
- };
2205
- } | null | undefined;
2206
- id: string;
2207
- type: "RECIPE" | "SKU" | "SKU_GROUP";
2208
- amount: {
2209
- amount: number;
2210
- precision: number;
2211
- };
2212
- }[];
2213
- }>;
2214
2191
  readonly skus: {
2215
2192
  isInactive?: boolean | null | undefined;
2216
2193
  trackingMeasurement?: string | null | undefined;
@@ -3266,9 +3243,205 @@ export declare function useInventoryStore(): {
3266
3243
  deleteRecipe({ _id }: FdoInventoryRecipe): Promise<void>;
3267
3244
  createSku(sku: FdoInventorySku): Promise<void>;
3268
3245
  updateSku(sku: FdoInventorySku): Promise<void>;
3269
- importUnits(bulkImport: Omit<FdtoBulkUnitsRequest, '_rev'>): Promise<any>;
3270
- importRecipes(recipes: Omit<FdtoBulkRecipeRequest, '_rev'>): Promise<any>;
3271
- importSkus(skus: Omit<FdtoBulkSkuRequest, '_rev'>): Promise<any>;
3246
+ importSkus(skus: Omit<FdtoBulkSkuRequest, '_rev'>): Promise<{
3247
+ inventory: {
3248
+ unit?: {
3249
+ _id: string;
3250
+ name: string;
3251
+ abbrev: string;
3252
+ precision: number;
3253
+ measurements: {
3254
+ id: string;
3255
+ name: string;
3256
+ abbrev: string;
3257
+ conversion: {
3258
+ amount: number;
3259
+ precision: number;
3260
+ };
3261
+ }[];
3262
+ }[] | null | undefined;
3263
+ recipe?: {
3264
+ customAttributes?: Record<string, any> | null | undefined;
3265
+ _id: string;
3266
+ name: string;
3267
+ contains: {
3268
+ measurement?: {
3269
+ id: string;
3270
+ name: string;
3271
+ abbrev: string;
3272
+ conversion: {
3273
+ amount: number;
3274
+ precision: number;
3275
+ };
3276
+ } | null | undefined;
3277
+ id: string;
3278
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
3279
+ amount: {
3280
+ amount: number;
3281
+ precision: number;
3282
+ };
3283
+ }[];
3284
+ }[] | null | undefined;
3285
+ sku?: {
3286
+ isInactive?: boolean | null | undefined;
3287
+ trackingMeasurement?: string | null | undefined;
3288
+ convert?: {
3289
+ measurement?: string | null | undefined;
3290
+ inventoryBindings?: {
3291
+ measurement?: {
3292
+ id: string;
3293
+ name: string;
3294
+ abbrev: string;
3295
+ conversion: {
3296
+ amount: number;
3297
+ precision: number;
3298
+ };
3299
+ } | null | undefined;
3300
+ id: string;
3301
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
3302
+ amount: {
3303
+ amount: number;
3304
+ precision: number;
3305
+ };
3306
+ }[] | null | undefined;
3307
+ } | null | undefined;
3308
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
3309
+ defaultCost?: {
3310
+ measurement?: {
3311
+ id: string;
3312
+ name: string;
3313
+ abbrev: string;
3314
+ conversion: {
3315
+ amount: number;
3316
+ precision: number;
3317
+ };
3318
+ } | null | undefined;
3319
+ costPerUnit: {
3320
+ 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";
3321
+ amount: number;
3322
+ precision: number;
3323
+ };
3324
+ } | null | undefined;
3325
+ operationalGroup?: string | null | undefined;
3326
+ thresholds?: {
3327
+ low: number;
3328
+ mid: number;
3329
+ } | null | undefined;
3330
+ customAttributes?: Record<string, any> | null | undefined;
3331
+ _id: string;
3332
+ name: string;
3333
+ code: string;
3334
+ unit: {
3335
+ _id: string;
3336
+ name: string;
3337
+ abbrev: string;
3338
+ precision: number;
3339
+ measurements: {
3340
+ id: string;
3341
+ name: string;
3342
+ abbrev: string;
3343
+ conversion: {
3344
+ amount: number;
3345
+ precision: number;
3346
+ };
3347
+ }[];
3348
+ };
3349
+ }[] | null | undefined;
3350
+ skuGroup?: {
3351
+ ref?: string | null | undefined;
3352
+ defaultSkuRefs?: {
3353
+ priority?: number | null | undefined;
3354
+ trackingMeasurement?: string | null | undefined;
3355
+ default?: boolean | null | undefined;
3356
+ _id: string;
3357
+ }[] | null | undefined;
3358
+ rules?: {
3359
+ rule?: any;
3360
+ _id: string;
3361
+ name: string;
3362
+ skuRefs: {
3363
+ priority?: number | null | undefined;
3364
+ trackingMeasurement?: string | null | undefined;
3365
+ default?: boolean | null | undefined;
3366
+ _id: string;
3367
+ }[];
3368
+ }[] | null | undefined;
3369
+ _id: string;
3370
+ name: string;
3371
+ }[] | null | undefined;
3372
+ updatedAt?: string | null | undefined;
3373
+ _id: string;
3374
+ _rev: string;
3375
+ };
3376
+ errors: {
3377
+ error?: any;
3378
+ data: {
3379
+ isInactive?: boolean | null | undefined;
3380
+ trackingMeasurement?: string | null | undefined;
3381
+ convert?: {
3382
+ measurement?: string | null | undefined;
3383
+ inventoryBindings?: {
3384
+ measurement?: {
3385
+ id: string;
3386
+ name: string;
3387
+ abbrev: string;
3388
+ conversion: {
3389
+ amount: number;
3390
+ precision: number;
3391
+ };
3392
+ } | null | undefined;
3393
+ id: string;
3394
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
3395
+ amount: {
3396
+ amount: number;
3397
+ precision: number;
3398
+ };
3399
+ }[] | null | undefined;
3400
+ } | null | undefined;
3401
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
3402
+ defaultCost?: {
3403
+ measurement?: {
3404
+ id: string;
3405
+ name: string;
3406
+ abbrev: string;
3407
+ conversion: {
3408
+ amount: number;
3409
+ precision: number;
3410
+ };
3411
+ } | null | undefined;
3412
+ costPerUnit: {
3413
+ 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";
3414
+ amount: number;
3415
+ precision: number;
3416
+ };
3417
+ } | null | undefined;
3418
+ operationalGroup?: string | null | undefined;
3419
+ thresholds?: {
3420
+ low: number;
3421
+ mid: number;
3422
+ } | null | undefined;
3423
+ customAttributes?: Record<string, any> | null | undefined;
3424
+ _id: string;
3425
+ name: string;
3426
+ code: string;
3427
+ unit: {
3428
+ _id: string;
3429
+ name: string;
3430
+ abbrev: string;
3431
+ precision: number;
3432
+ measurements: {
3433
+ id: string;
3434
+ name: string;
3435
+ abbrev: string;
3436
+ conversion: {
3437
+ amount: number;
3438
+ precision: number;
3439
+ };
3440
+ }[];
3441
+ };
3442
+ };
3443
+ }[];
3444
+ }>;
3272
3445
  deleteSku({ _id }: FdoInventorySku): Promise<void>;
3273
3446
  createSkuGroup(skuGroup: CreateType<FdoInventorySkuGroup>): Promise<void>;
3274
3447
  updateSkuGroup(skuGroup: FdoInventorySkuGroup): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { a6 as m, u, c as b, ap as w, aA as v, aB as $ } from "./app-Bb0-8bRg.js";
1
+ import { a8 as m, u, c as b, E as w, aA as v, aB as $ } from "./app-D2lun71R.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as A } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";