@feedmepos/mf-inventory-portal 0.0.17-dev.1 → 0.0.17-dev.2

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 (53) hide show
  1. package/dist/{ApprovalView-NJ4FogNu.js → ApprovalView-DuDqkTeC.js} +9 -9
  2. package/dist/{BindingsDialog-B-j1k1SE.js → BindingsDialog-0Q6o47Up.js} +5 -5
  3. package/dist/{BindingsPicker-CEi3jyh0.js → BindingsPicker-k4drpC9m.js} +6 -6
  4. package/dist/{BindingsTable-DHYJ2Eqm.js → BindingsTable-B5hZHvuD.js} +26 -26
  5. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-1XPAzm5R.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CoiUbqV-.js} +1 -1
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-DL98UqsQ.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C1TGiM-x.js} +9 -9
  7. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DqD-jNxc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DsjnPaTj.js} +3 -3
  8. package/dist/IngredientsView-D3uTxXqO.js +1637 -0
  9. package/dist/{IntegrationView-DxqyRxVR.js → IntegrationView-B1iYpADR.js} +4 -4
  10. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang--KLpvU2e.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-GinKxaoG.js} +6 -6
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-HpuL5QhV.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BDznyTkG.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-BGbCA7Al.js → PurchaseOrderPrintPreview-BJ4uktza.js} +4 -4
  13. package/dist/{ReceiveRequestView-C1ae5dRi.js → ReceiveRequestView-BOvNswDa.js} +13 -13
  14. package/dist/RecipeView-4I-OWCb6.js +581 -0
  15. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js +64 -0
  16. package/dist/{StockView-Pyk4MBIQ.js → StockView-D2cS56Qi.js} +13 -13
  17. package/dist/{SupplierView-CVZ7bOgA.js → SupplierView-CZPwQkMt.js} +8 -8
  18. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Ctqjw3f1.js → TransferDetails.vue_vue_type_script_setup_true_lang-CqKi2NMD.js} +5 -5
  19. package/dist/{UnitView-DVauPXKw.js → UnitView-CV7Od1Jw.js} +7 -7
  20. package/dist/{WarehouseView-BYivsQgQ.js → WarehouseView-BtQJYBl0.js} +4 -4
  21. package/dist/api/inventory.d.ts +102 -0
  22. package/dist/{app-DXqS7qYg.js → app-B4nF7QvC.js} +1037 -1019
  23. package/dist/app.js +1 -1
  24. package/dist/components/FmDroppableField.vue.d.ts +75 -0
  25. package/dist/{date2-B96h4mWb.js → date2-BwR5G9qy.js} +1 -1
  26. package/dist/{dayjs.min-CQkpEWlm.js → dayjs.min-DGsqRPL2.js} +2 -2
  27. package/dist/{decimal-DQOX97fs.js → decimal-DGwTROX2.js} +1 -1
  28. package/dist/{fuzzy-Dr-kBYFA.js → fuzzy-D903uHSq.js} +1 -1
  29. package/dist/helper/random.d.ts +2 -0
  30. package/dist/helper/xlsx.util.d.ts +1 -0
  31. package/dist/{init-date-range-6CJBD0GL.js → init-date-range-CWbgpQ8e.js} +1 -1
  32. package/dist/{layout-CVjYEZxq.js → layout-8DgajRcn.js} +12 -12
  33. package/dist/{rules-B_-yQn9M.js → rules-Dq4Ee_PT.js} +1 -1
  34. package/dist/{stock-estimate-DoU-A7bG.js → stock-estimate-4jgl53Nk.js} +2 -2
  35. package/dist/stores/inventory.d.ts +1 -0
  36. package/dist/style.css +1 -1
  37. package/dist/{supplier-D2Wuv0oV.js → supplier-Bv4RiUno.js} +1 -1
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/{use-inventory-binding-dialog-Bc0Yx1fK.js → use-inventory-binding-dialog-h8HlGzcz.js} +2 -2
  40. package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +12 -0
  41. package/dist/views/ingredients/components/import-ingredients/ImportIngredientItemProps.d.ts +6 -0
  42. package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +2 -0
  43. package/dist/views/ingredients/components/import-ingredients/ImportIngredientsProps.d.ts +5 -0
  44. package/dist/views/ingredients/helper/import-export.helper.d.ts +45 -0
  45. package/dist/views/ingredients/helper/sku-id.helper.d.ts +1 -0
  46. package/dist/xlsx-wBLs03H5.js +24004 -0
  47. package/dist/xlsx.util-DxDZloWT.js +107 -0
  48. package/package.json +2 -2
  49. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYi6BUwT.js +0 -49
  50. package/dist/IngredientsView-DNbppADe.js +0 -973
  51. package/dist/RecipeView-BwP8jlG0.js +0 -596
  52. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js +0 -53
  53. package/dist/xlsx-Vw9D2Jo4.js +0 -15510
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as K, mergeModels as ge, computed as b, useModel as Ve, resolveComponent as M, openBlock as k, createElementBlock as E, createElementVNode as a, createVNode as m, withCtx as U, Fragment as _e, renderList as xe, toDisplayString as G, unref as c, ref as P, createBlock as N, createCommentVNode as fe, isRef as ie, normalizeStyle as Se, Teleport as he } from "vue";
2
- import { u as ve } from "./supplier-D2Wuv0oV.js";
2
+ import { u as ve } from "./supplier-Bv4RiUno.js";
3
3
  import { D as me, R as L, F as h } from "./row-action.enum-BwQbURNh.js";
4
- import { c as we, _ as Ce, F as Y, u as ke } from "./layout-CVjYEZxq.js";
5
- import { c as O, u as $e, d as ce, g as Me, C as H, a as De, e as Ie } from "./app-DXqS7qYg.js";
4
+ import { c as we, _ as Ce, F as Y, u as ke } from "./layout-8DgajRcn.js";
5
+ import { c as O, u as $e, d as ce, g as Me, C as H, a as De, f as Ie } from "./app-B4nF7QvC.js";
6
6
  import { useDialog as be, useSnackbar as ye, useProxiedModel as pe, useBreakpoints as Ae } from "@feedmepos/ui-library";
7
- import { _ as Fe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
8
- import { _ as Ue } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-1XPAzm5R.js";
9
- import { R as $ } from "./rules-B_-yQn9M.js";
10
- import { _ as Pe } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-DL98UqsQ.js";
7
+ import { _ as Fe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js";
8
+ import { _ as Ue } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CoiUbqV-.js";
9
+ import { R as $ } from "./rules-Dq4Ee_PT.js";
10
+ import { _ as Pe } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C1TGiM-x.js";
11
11
  import { useCoreStore as Re } from "@feedmepos/mf-common";
12
12
  import { _ as Ee } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js";
13
- import { _ as Ne } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DqD-jNxc.js";
13
+ import { _ as Ne } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DsjnPaTj.js";
14
14
  function Te(D, S) {
15
15
  function g(r, n) {
16
16
  if (r === L.Edit) {
@@ -1,11 +1,11 @@
1
1
  import { ref as F, computed as re, h as Se, defineComponent as Ue, resolveComponent as H, openBlock as f, createBlock as I, unref as y, isRef as Me, withCtx as se, createElementVNode as e, createVNode as G, createElementBlock as x, Fragment as ee, normalizeClass as ae, toDisplayString as O, createCommentVNode as S, renderList as me } from "vue";
2
- import { i as Fe } from "./init-date-range-6CJBD0GL.js";
3
- import { f as Le, e as oe, t as v, v as je, c as Ce, p as M, s as Y, a as xe } from "./app-DXqS7qYg.js";
4
- import { r as ne, m as Be, n as Ie, i as Pe, c as pe, a as ce, l as Ve, k as Ge, j as Ke } from "./date2-B96h4mWb.js";
2
+ import { i as Fe } from "./init-date-range-CWbgpQ8e.js";
3
+ import { h as Le, f as oe, v, w as je, c as Ce, q as M, s as Y, a as xe } from "./app-B4nF7QvC.js";
4
+ import { r as ne, m as Be, n as Ie, i as Pe, c as pe, a as ce, l as Ve, k as Ge, j as Ke } from "./date2-BwR5G9qy.js";
5
5
  import { F as ke, D as N, R as k } from "./row-action.enum-BwQbURNh.js";
6
6
  import { useDialog as Ne, useSnackbar as Ee, components as Ae, useProxiedModel as ze } from "@feedmepos/ui-library";
7
- import { c as Re } from "./layout-CVjYEZxq.js";
8
- import { F as He } from "./decimal-DQOX97fs.js";
7
+ import { c as Re } from "./layout-8DgajRcn.js";
8
+ import { F as He } from "./decimal-DGwTROX2.js";
9
9
  import { E as Qe } from "./empty-placeholder-wf6-BWE8.js";
10
10
  const Te = Le((a, i) => {
11
11
  const d = oe();
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as q, computed as x, openBlock as c, createElementBlock as U, Fragment as z, renderList as j, createElementVNode as l, toDisplayString as g, createCommentVNode as G, ref as R, resolveComponent as A, createBlock as T, withCtx as I, createVNode as m, unref as d, isRef as W, normalizeStyle as se, Teleport as ae, normalizeProps as ne, guardReactiveProps as re } from "vue";
2
- import { u as H, S as ie, c as te, b as X, e as de } from "./app-DXqS7qYg.js";
2
+ import { u as H, S as ie, c as te, b as X, f as de } from "./app-B4nF7QvC.js";
3
3
  import { useDialog as ue, useSnackbar as oe, useProxiedModel as Z, useBreakpoints as ce } from "@feedmepos/ui-library";
4
4
  import { i as me, _ as pe } from "./is-linked-ingredient-error-C6AghEwR.js";
5
5
  import { F as w, D as ee, R as N } from "./row-action.enum-BwQbURNh.js";
6
- import { c as fe, _ as ve, F as be, u as ye } from "./layout-CVjYEZxq.js";
7
- import { _ as _e } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
8
- import { R as L, A as ge, a as xe } from "./rules-B_-yQn9M.js";
9
- import { a as O, c as he } from "./date2-B96h4mWb.js";
10
- import { F as Ve } from "./decimal-DQOX97fs.js";
11
- import { _ as we } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-HpuL5QhV.js";
6
+ import { c as fe, _ as ve, F as be, u as ye } from "./layout-8DgajRcn.js";
7
+ import { _ as _e } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js";
8
+ import { R as L, A as ge, a as xe } from "./rules-Dq4Ee_PT.js";
9
+ import { a as O, c as he } from "./date2-BwR5G9qy.js";
10
+ import { F as Ve } from "./decimal-DGwTROX2.js";
11
+ import { _ as we } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BDznyTkG.js";
12
12
  const Ue = { class: "flex flex-col gap-8" }, Ce = /* @__PURE__ */ l("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1), $e = {
13
13
  key: 0,
14
14
  class: "flex flex-col"
@@ -1,11 +1,11 @@
1
1
  import { ref as D, defineComponent as q, watch as Y, onMounted as oe, onUnmounted as Me, openBlock as T, createElementBlock as B, toRaw as be, reactive as Se, createElementVNode as g, toDisplayString as X, createVNode as k, pushScopeId as Fe, popScopeId as De, resolveComponent as U, unref as C, createSlots as Pe, withCtx as I, createTextVNode as Te, renderSlot as Ee, createBlock as N, createCommentVNode as xe, computed as F, isRef as we, normalizeStyle as Re } from "vue";
2
- import { f as We, j as Ue, k as Le, c as z, l as te, m as ae, n as Ie, _ as Be, e as Ne } from "./app-DXqS7qYg.js";
2
+ import { h as We, k as Ue, l as Le, c as z, m as te, n as ae, o as Ie, _ as Be, f as Ne } from "./app-B4nF7QvC.js";
3
3
  import { useCoreStore as qe } from "@feedmepos/mf-common";
4
4
  import { D as Ve, R as Z, F as R } from "./row-action.enum-BwQbURNh.js";
5
- import { c as ze, _ as je, F as J, u as Oe } from "./layout-CVjYEZxq.js";
6
- import { _ as Ge } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
5
+ import { c as ze, _ as je, F as J, u as Oe } from "./layout-8DgajRcn.js";
6
+ import { _ as Ge } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js";
7
7
  import { useDialogChild as Ke, useDialog as Ce, useSnackbar as le, useProxiedModel as ee, useBreakpoints as He } from "@feedmepos/ui-library";
8
- import { R as L } from "./rules-B_-yQn9M.js";
8
+ import { R as L } from "./rules-Dq4Ee_PT.js";
9
9
  const Q = We((u, c) => {
10
10
  const p = qe();
11
11
  return {
@@ -206,6 +206,108 @@ export declare const useInventoryApi: () => {
206
206
  updatedAt?: string | null | undefined;
207
207
  _id: string;
208
208
  }>>;
209
+ importSkus(skus: FdtoBulkSkuRequest): Promise<WithRev<{
210
+ unit?: {
211
+ _id: string;
212
+ name: string;
213
+ abbrev: string;
214
+ precision: number;
215
+ measurements: {
216
+ id: string;
217
+ name: string;
218
+ abbrev: string;
219
+ conversion: {
220
+ amount: number;
221
+ precision: number;
222
+ };
223
+ }[];
224
+ }[] | null | undefined;
225
+ sku?: {
226
+ trackingMeasurement?: string | null | undefined;
227
+ convert?: {
228
+ measurement?: string | null | undefined;
229
+ inventoryBindings?: {
230
+ measurement?: {
231
+ id: string;
232
+ name: string;
233
+ abbrev: string;
234
+ conversion: {
235
+ amount: number;
236
+ precision: number;
237
+ };
238
+ } | null | undefined;
239
+ type: "RECIPE" | "SKU";
240
+ amount: {
241
+ amount: number;
242
+ precision: number;
243
+ };
244
+ id: string;
245
+ }[] | null | undefined;
246
+ } | null | undefined;
247
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
248
+ defaultCost?: {
249
+ measurement?: {
250
+ id: string;
251
+ name: string;
252
+ abbrev: string;
253
+ conversion: {
254
+ amount: number;
255
+ precision: number;
256
+ };
257
+ } | null | undefined;
258
+ costPerUnit: {
259
+ 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";
260
+ amount: number;
261
+ precision: number;
262
+ };
263
+ } | null | undefined;
264
+ thresholds?: {
265
+ low: number;
266
+ mid: number;
267
+ } | null | undefined;
268
+ unit: {
269
+ _id: string;
270
+ name: string;
271
+ abbrev: string;
272
+ precision: number;
273
+ measurements: {
274
+ id: string;
275
+ name: string;
276
+ abbrev: string;
277
+ conversion: {
278
+ amount: number;
279
+ precision: number;
280
+ };
281
+ }[];
282
+ };
283
+ code: string;
284
+ _id: string;
285
+ name: string;
286
+ }[] | null | undefined;
287
+ recipe?: {
288
+ _id: string;
289
+ name: string;
290
+ contains: {
291
+ measurement?: {
292
+ id: string;
293
+ name: string;
294
+ abbrev: string;
295
+ conversion: {
296
+ amount: number;
297
+ precision: number;
298
+ };
299
+ } | null | undefined;
300
+ type: "RECIPE" | "SKU";
301
+ amount: {
302
+ amount: number;
303
+ precision: number;
304
+ };
305
+ id: string;
306
+ }[];
307
+ }[] | null | undefined;
308
+ updatedAt?: string | null | undefined;
309
+ _id: string;
310
+ }>>;
209
311
  urls: {
210
312
  portalBackendUrl: string;
211
313
  businessesBackendUrl: string;