@feedmepos/mf-inventory-portal 0.0.22-dev.44 → 0.0.22-dev.46

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 (61) hide show
  1. package/dist/{ApprovalView-DJhk8ORX.js → ApprovalView-CjK-fcvU.js} +3 -3
  2. package/dist/{BindingsDialog-CNY83IzG.js → BindingsDialog-DWRDuKnY.js} +4 -4
  3. package/dist/{BindingsPicker-BCeGBlTl.js → BindingsPicker-DtgCTWo5.js} +4 -4
  4. package/dist/{BindingsTable-DwN0rUr_.js → BindingsTable-QevLem81.js} +4 -4
  5. package/dist/ClosingTemplateView-Cdbp7nYn.js +1812 -0
  6. package/dist/{FmDroppableField-DeZRIGOb.js → FmDroppableField-DHF0MZls.js} +13 -13
  7. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CptHxbFO.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CPhXgsQD.js} +3 -3
  8. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BGYVXLcj.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bl-BsJNP.js} +1 -1
  9. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C0liaZ9Y.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B7dq1XS-.js} +1 -1
  10. package/dist/{IngredientsView-B6BPG_MN.js → IngredientsView-9xhWEl17.js} +5 -5
  11. package/dist/{IntegrationView-CXurxj5t.js → IntegrationView-D7916Kg2.js} +2 -2
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4np_znK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ZBxeayIl.js} +1 -1
  13. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CvSRvT_i.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dp_JLw2L.js} +2 -2
  14. package/dist/{PurchaseOrderPrintPreview-BYSkl_zL.js → PurchaseOrderPrintPreview-U-M3r5H9.js} +3 -3
  15. package/dist/{ReceiveRequestView-DWKEL17S.js → ReceiveRequestView-BzChY8ca.js} +288 -288
  16. package/dist/{RecipeView-DEZblbQT.js → RecipeView-GrwiLQkW.js} +4 -4
  17. package/dist/{StockView-hijQ7wQL.js → StockView-CMvG-CIC.js} +5 -5
  18. package/dist/{SupplierView-B2xKGKCF.js → SupplierView-BmqzK7D6.js} +774 -2320
  19. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CBwT8yGC.js → TransferDetails.vue_vue_type_script_setup_true_lang-CE1aYr3I.js} +212 -208
  20. package/dist/{TransferTemplateView--2vvQWBW.js → TransferTemplateView-CBPSaIJs.js} +8 -8
  21. package/dist/{UnitView-B30FwZGg.js → UnitView-4JKlaXtj.js} +4 -4
  22. package/dist/{WarehouseView-BwbqpKwn.js → WarehouseView-B5qLIIAQ.js} +14 -14
  23. package/dist/api/inventory.d.ts +210 -6
  24. package/dist/api/netsuite.d.ts +14 -1
  25. package/dist/{app-DXZpbt33.js → app-B0BJjpJ5.js} +13618 -13426
  26. package/dist/app.js +1 -1
  27. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  28. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  29. package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
  30. package/dist/{decimal-BVO6jH4l.js → decimal-CDTaG5jr.js} +1 -1
  31. package/dist/{defineDeepModel-DlkycC_t.js → defineDeepModel-9-wLB59o.js} +1 -1
  32. package/dist/extensions/array.d.ts +1 -0
  33. package/dist/{format-time-from-id-Dhgv47T9.js → format-time-from-id-Bwq0tn09.js} +1 -1
  34. package/dist/{format-unit-display-D4D1b9F7.js → format-unit-display-BImgcRNp.js} +5 -5
  35. package/dist/stores/inventory.d.ts +146 -10
  36. package/dist/stores/netsuite.d.ts +16 -1
  37. package/dist/{supplier-Beauc4QC.js → supplier-D9s1N_M7.js} +1 -1
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/{use-template-enabled-locations-2-DbnvkOM9.js → use-template-enabled-locations-2-BQSfU_U_.js} +1 -1
  40. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  41. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -12
  42. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -12
  43. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  44. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  45. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  46. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  47. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -0
  48. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +23 -17
  49. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  50. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  51. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +33 -24
  52. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +33 -24
  53. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  54. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  55. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  56. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +12 -12
  57. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -12
  58. package/dist/{xlsx-DXqCVrb5.js → xlsx-A9JiF_qH.js} +1 -1
  59. package/dist/{xlsx.util-7VhQushh.js → xlsx.util-J1g7CG7t.js} +1 -1
  60. package/package.json +3 -3
  61. package/dist/ClosingTemplateView-BE1JMBGd.js +0 -1768
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as Z, onMounted as ce, computed as R, ref as B, watch as pe, inject as We, resolveComponent as O, openBlock as D, createElementBlock as Q, createElementVNode as t, createVNode as p, withCtx as E, renderSlot as Ie, withDirectives as Ve, normalizeClass as ie, vModelText as De, reactive as Ze, h as W, toDisplayString as C, unref as e, createBlock as K, mergeProps as Ue, isRef as Ee, createCommentVNode as Y, Fragment as qe, renderList as Je, normalizeStyle as Xe, Teleport as Ye, normalizeProps as et, guardReactiveProps as tt } from "vue";
2
- import { u as ot, _ as st, a as lt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BGYVXLcj.js";
2
+ import { u as ot, _ as st, a as lt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bl-BsJNP.js";
3
3
  import { useI18n as J } from "@feedmepos/mf-common";
4
- import { P as N, a as nt, f as rt, t as at, b as Re, u as it } from "./format-unit-display-D4D1b9F7.js";
4
+ import { P as N, a as nt, f as rt, t as at, b as Re, u as it } from "./format-unit-display-BImgcRNp.js";
5
5
  import { F as ee, R as Ae } from "./row-action.enum-PMKMRrZR.js";
6
- import { ah as ue, t as Pe, I as ut, ai as mt, aj as dt, a as G, ak as ct, D as Le, R as me, u as Ne, a2 as pt, a5 as ft, a3 as yt, r as ae, a4 as vt, l as bt, A as de, M as _t, b as ze, i as je, y as xt, k as ht, al as ne, G as gt } from "./app-DXZpbt33.js";
6
+ import { ah as ue, t as Pe, I as ut, ai as mt, aj as dt, a as G, ak as ct, D as Le, R as me, u as Ne, a3 as pt, a6 as ft, a4 as yt, r as ae, a5 as vt, l as bt, A as de, M as _t, b as ze, i as je, y as xt, k as ht, al as ne, G as gt } from "./app-B0BJjpJ5.js";
7
7
  import { components as re, useDialog as Ft, useSnackbar as Tt, useProxiedModel as He, useBreakpoints as wt } from "@feedmepos/ui-library";
8
8
  import { storeToRefs as Be } from "pinia";
9
9
  import "vue-router";
10
- import { d as Qe } from "./defineDeepModel-DlkycC_t.js";
11
- import { c as kt, u as Mt, _ as St } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CptHxbFO.js";
12
- import { u as $t } from "./supplier-Beauc4QC.js";
10
+ import { d as Qe } from "./defineDeepModel-9-wLB59o.js";
11
+ import { c as kt, u as Mt, _ as St } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CPhXgsQD.js";
12
+ import { u as $t } from "./supplier-D9s1N_M7.js";
13
13
  import { F as j, _ as Ge } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
14
- import { u as Ct } from "./use-template-enabled-locations-2-DbnvkOM9.js";
15
- import { f as Ot } from "./format-time-from-id-Dhgv47T9.js";
14
+ import { u as Ct } from "./use-template-enabled-locations-2-BQSfU_U_.js";
15
+ import { f as Ot } from "./format-time-from-id-Bwq0tn09.js";
16
16
  const It = { class: "flex flex-col" }, Vt = { class: "flex flex-col" }, Dt = { class: "flex-1" }, Rt = { class: "flex items-center" }, At = { class: "flex-1" }, Pt = { class: "flex-1" }, Lt = /* @__PURE__ */ Z({
17
17
  __name: "FmMinMaxInput",
18
18
  props: {
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as K, computed as _, openBlock as v, createElementBlock as w, createElementVNode as l, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as I, createBlock as T, withCtx as R, createVNode as y, unref as a, isRef as Z, normalizeClass as ae, normalizeStyle as re, Teleport as ie, normalizeProps as ue, guardReactiveProps as de } from "vue";
2
- import { u as G, S as me, c as oe, R as N, A as ce, a as J, l as pe, m as fe, e as ee, i as ve } from "./app-DXZpbt33.js";
2
+ import { u as G, S as me, c as oe, R as N, A as ce, a as J, l as pe, m as fe, e as ee, i as ve } from "./app-B0BJjpJ5.js";
3
3
  import { useDialog as ye, useSnackbar as le, useProxiedModel as te, useBreakpoints as be } from "@feedmepos/ui-library";
4
4
  import { i as ge, _ as xe } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as U, D as ne, R as j } from "./row-action.enum-PMKMRrZR.js";
6
6
  import { defineStore as _e, storeToRefs as he } from "pinia";
7
7
  import { c as Ve, _ as Ue, F as we } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
8
8
  import { useI18n as O } from "@feedmepos/mf-common";
9
- import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BGYVXLcj.js";
10
- import { F as Se } from "./decimal-BVO6jH4l.js";
11
- import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4np_znK.js";
9
+ import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bl-BsJNP.js";
10
+ import { F as Se } from "./decimal-CDTaG5jr.js";
11
+ import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ZBxeayIl.js";
12
12
  const Ee = { class: "flex flex-col gap-8" }, Ie = {
13
13
  key: 0,
14
14
  class: "flex flex-col"
@@ -1,9 +1,9 @@
1
1
  import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as q, toRaw as be, reactive as xe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
2
- import { n as Pe, Y as Te, Z as Ue, c as O, $ as ae, a0 as le, a1 as Ee, W as Le, R as E, i as Ne } from "./app-DXZpbt33.js";
2
+ import { n as Pe, Z as Te, $ as Ue, c as O, a0 as ae, a1 as le, a2 as Ee, X as Le, R as E, i as Ne } from "./app-B0BJjpJ5.js";
3
3
  import { useCoreStore as Be, useI18n as j } from "@feedmepos/mf-common";
4
- import { D as Ve, R as Y, F as T } from "./row-action.enum-PMKMRrZR.js";
4
+ import { D as Ve, R as X, F as T } from "./row-action.enum-PMKMRrZR.js";
5
5
  import { c as qe, _ as ze, F as J } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
- import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BGYVXLcj.js";
6
+ import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bl-BsJNP.js";
7
7
  import { useDialogChild as Ge, useDialog as Me, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
8
8
  const Q = Pe((m, h) => {
9
9
  const y = Be();
@@ -71,11 +71,11 @@ function Ce() {
71
71
  }
72
72
  function Ze(m, h) {
73
73
  function y(p, s) {
74
- if (p === Y.Edit) {
74
+ if (p === X.Edit) {
75
75
  m(O(s));
76
76
  return;
77
77
  }
78
- if (p === Y.Delete) {
78
+ if (p === X.Delete) {
79
79
  h(O(s));
80
80
  return;
81
81
  }
@@ -106,7 +106,7 @@ function Ze(m, h) {
106
106
  header: "",
107
107
  cell(p) {
108
108
  return qe(
109
- [Ve[Y.Edit], Ve[Y.Delete]],
109
+ [Ve[X.Edit], Ve[X.Delete]],
110
110
  (s) => {
111
111
  y(s, p.row.original.original);
112
112
  }
@@ -141,7 +141,7 @@ function Ze(m, h) {
141
141
  }
142
142
  return { columnDefs: n, formatRowData: l };
143
143
  }
144
- const Ye = /* @__PURE__ */ I({
144
+ const Xe = /* @__PURE__ */ I({
145
145
  __name: "GoogleMap",
146
146
  props: {
147
147
  markers: {
@@ -244,7 +244,7 @@ const Ye = /* @__PURE__ */ I({
244
244
  function d(r) {
245
245
  i.value.map((f) => be(f).setMap(r));
246
246
  }
247
- function X(r, f, b) {
247
+ function Y(r, f, b) {
248
248
  v(r, f, b);
249
249
  }
250
250
  function P() {
@@ -255,7 +255,7 @@ const Ye = /* @__PURE__ */ I({
255
255
  streetViewControl: !1,
256
256
  draggable: !0,
257
257
  scrollwheel: !0
258
- }), X(s.value, "click", (r) => n("map-click", _(r)));
258
+ }), Y(s.value, "click", (r) => n("map-click", _(r)));
259
259
  }
260
260
  return ee(() => a.markers, C, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
261
261
  !p.value || !l || (P(), C(a.markers), w(a.polygons));
@@ -267,7 +267,7 @@ const Ye = /* @__PURE__ */ I({
267
267
  class: "map app-map"
268
268
  }, null, 512));
269
269
  }
270
- }), Je = { class: "flex flex-col gap-24" }, Qe = { class: "flex flex-col gap-8" }, Xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
270
+ }), Je = { class: "flex flex-col gap-24" }, Qe = { class: "flex flex-col gap-8" }, Ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
271
271
  __name: "CoordinateDialog",
272
272
  props: {
273
273
  address: {
@@ -298,7 +298,7 @@ const Ye = /* @__PURE__ */ I({
298
298
  return (v, M) => (S(), q("div", Je, [
299
299
  g("div", Qe, [
300
300
  g("div", null, [
301
- g("span", Xe, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
301
+ g("span", Ye, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
302
302
  g("span", eo, U(p.value), 1)
303
303
  ]),
304
304
  g("div", null, [
@@ -310,7 +310,7 @@ const Ye = /* @__PURE__ */ I({
310
310
  g("span", lo, U(l.lat), 1)
311
311
  ])
312
312
  ]),
313
- V(Ye, {
313
+ V(Xe, {
314
314
  ref_key: "gmapRef",
315
315
  ref: _,
316
316
  class: "h-[272px] sm:h-[240px] xs:h-[240px]",
@@ -917,7 +917,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
917
917
  }
918
918
  const { breakpoints: o } = Ke(), e = F(() => o.value.xs || o.value.sm), t = F(() => e.value ? 10 : 20), B = Ie();
919
919
  return (w, d) => {
920
- const X = L("FmTable");
920
+ const Y = L("FmTable");
921
921
  return S(), z(je, {
922
922
  title: c(s)("inventory.warehouse.title"),
923
923
  actions: [
@@ -946,7 +946,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
946
946
  search: k.value,
947
947
  "onUpdate:search": d[0] || (d[0] = (P) => k.value = P)
948
948
  }, null, 8, ["search"]),
949
- (S(), z(X, {
949
+ (S(), z(Y, {
950
950
  style: Re(c(B).tableHeight),
951
951
  "column-defs": c(C),
952
952
  "row-data": c(R)(a.value),
@@ -117,7 +117,7 @@ export declare const useInventoryApi: () => {
117
117
  precision: number;
118
118
  };
119
119
  } | null | undefined;
120
- type: "RECIPE" | "SKU";
120
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
121
121
  amount: {
122
122
  amount: number;
123
123
  precision: number;
@@ -179,7 +179,7 @@ export declare const useInventoryApi: () => {
179
179
  precision: number;
180
180
  };
181
181
  } | null | undefined;
182
- type: "RECIPE" | "SKU";
182
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
183
183
  amount: {
184
184
  amount: number;
185
185
  precision: number;
@@ -187,6 +187,74 @@ export declare const useInventoryApi: () => {
187
187
  id: string;
188
188
  }[];
189
189
  }[] | null | undefined;
190
+ skuGroup?: {
191
+ ref?: string | null | undefined;
192
+ unit: {
193
+ _id: string;
194
+ name: string;
195
+ abbrev: string;
196
+ precision: number;
197
+ measurements: {
198
+ id: string;
199
+ name: string;
200
+ abbrev: string;
201
+ conversion: {
202
+ amount: number;
203
+ precision: number;
204
+ };
205
+ }[];
206
+ };
207
+ _id: string;
208
+ name: string;
209
+ skus: {
210
+ trackingMeasurement?: string | null | undefined;
211
+ convert?: {
212
+ measurement?: string | null | undefined;
213
+ inventoryBindings?: {
214
+ measurement?: {
215
+ id: string;
216
+ name: string;
217
+ abbrev: string;
218
+ conversion: {
219
+ amount: number;
220
+ precision: number;
221
+ };
222
+ } | null | undefined;
223
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
224
+ amount: {
225
+ amount: number;
226
+ precision: number;
227
+ };
228
+ id: string;
229
+ }[] | null | undefined;
230
+ } | null | undefined;
231
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
232
+ defaultCost?: {
233
+ measurement?: {
234
+ id: string;
235
+ name: string;
236
+ abbrev: string;
237
+ conversion: {
238
+ amount: number;
239
+ precision: number;
240
+ };
241
+ } | null | undefined;
242
+ costPerUnit: {
243
+ 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";
244
+ amount: number;
245
+ precision: number;
246
+ };
247
+ } | null | undefined;
248
+ thresholds?: {
249
+ low: number;
250
+ mid: number;
251
+ } | null | undefined;
252
+ operationalGroup?: string | null | undefined;
253
+ code: string;
254
+ _id: string;
255
+ name: string;
256
+ }[];
257
+ }[] | null | undefined;
190
258
  updatedAt?: string | null | undefined;
191
259
  _id: string;
192
260
  }>>;
@@ -220,7 +288,7 @@ export declare const useInventoryApi: () => {
220
288
  precision: number;
221
289
  };
222
290
  } | null | undefined;
223
- type: "RECIPE" | "SKU";
291
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
224
292
  amount: {
225
293
  amount: number;
226
294
  precision: number;
@@ -282,7 +350,7 @@ export declare const useInventoryApi: () => {
282
350
  precision: number;
283
351
  };
284
352
  } | null | undefined;
285
- type: "RECIPE" | "SKU";
353
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
286
354
  amount: {
287
355
  amount: number;
288
356
  precision: number;
@@ -290,6 +358,74 @@ export declare const useInventoryApi: () => {
290
358
  id: string;
291
359
  }[];
292
360
  }[] | null | undefined;
361
+ skuGroup?: {
362
+ ref?: string | null | undefined;
363
+ unit: {
364
+ _id: string;
365
+ name: string;
366
+ abbrev: string;
367
+ precision: number;
368
+ measurements: {
369
+ id: string;
370
+ name: string;
371
+ abbrev: string;
372
+ conversion: {
373
+ amount: number;
374
+ precision: number;
375
+ };
376
+ }[];
377
+ };
378
+ _id: string;
379
+ name: string;
380
+ skus: {
381
+ trackingMeasurement?: string | null | undefined;
382
+ convert?: {
383
+ measurement?: string | null | undefined;
384
+ inventoryBindings?: {
385
+ measurement?: {
386
+ id: string;
387
+ name: string;
388
+ abbrev: string;
389
+ conversion: {
390
+ amount: number;
391
+ precision: number;
392
+ };
393
+ } | null | undefined;
394
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
395
+ amount: {
396
+ amount: number;
397
+ precision: number;
398
+ };
399
+ id: string;
400
+ }[] | null | undefined;
401
+ } | null | undefined;
402
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
403
+ defaultCost?: {
404
+ measurement?: {
405
+ id: string;
406
+ name: string;
407
+ abbrev: string;
408
+ conversion: {
409
+ amount: number;
410
+ precision: number;
411
+ };
412
+ } | null | undefined;
413
+ costPerUnit: {
414
+ 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";
415
+ amount: number;
416
+ precision: number;
417
+ };
418
+ } | null | undefined;
419
+ thresholds?: {
420
+ low: number;
421
+ mid: number;
422
+ } | null | undefined;
423
+ operationalGroup?: string | null | undefined;
424
+ code: string;
425
+ _id: string;
426
+ name: string;
427
+ }[];
428
+ }[] | null | undefined;
293
429
  updatedAt?: string | null | undefined;
294
430
  _id: string;
295
431
  }>>;
@@ -323,7 +459,7 @@ export declare const useInventoryApi: () => {
323
459
  precision: number;
324
460
  };
325
461
  } | null | undefined;
326
- type: "RECIPE" | "SKU";
462
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
327
463
  amount: {
328
464
  amount: number;
329
465
  precision: number;
@@ -385,7 +521,7 @@ export declare const useInventoryApi: () => {
385
521
  precision: number;
386
522
  };
387
523
  } | null | undefined;
388
- type: "RECIPE" | "SKU";
524
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
389
525
  amount: {
390
526
  amount: number;
391
527
  precision: number;
@@ -393,6 +529,74 @@ export declare const useInventoryApi: () => {
393
529
  id: string;
394
530
  }[];
395
531
  }[] | null | undefined;
532
+ skuGroup?: {
533
+ ref?: string | null | undefined;
534
+ unit: {
535
+ _id: string;
536
+ name: string;
537
+ abbrev: string;
538
+ precision: number;
539
+ measurements: {
540
+ id: string;
541
+ name: string;
542
+ abbrev: string;
543
+ conversion: {
544
+ amount: number;
545
+ precision: number;
546
+ };
547
+ }[];
548
+ };
549
+ _id: string;
550
+ name: string;
551
+ skus: {
552
+ trackingMeasurement?: string | null | undefined;
553
+ convert?: {
554
+ measurement?: string | null | undefined;
555
+ inventoryBindings?: {
556
+ measurement?: {
557
+ id: string;
558
+ name: string;
559
+ abbrev: string;
560
+ conversion: {
561
+ amount: number;
562
+ precision: number;
563
+ };
564
+ } | null | undefined;
565
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
566
+ amount: {
567
+ amount: number;
568
+ precision: number;
569
+ };
570
+ id: string;
571
+ }[] | null | undefined;
572
+ } | null | undefined;
573
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
574
+ defaultCost?: {
575
+ measurement?: {
576
+ id: string;
577
+ name: string;
578
+ abbrev: string;
579
+ conversion: {
580
+ amount: number;
581
+ precision: number;
582
+ };
583
+ } | null | undefined;
584
+ costPerUnit: {
585
+ 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";
586
+ amount: number;
587
+ precision: number;
588
+ };
589
+ } | null | undefined;
590
+ thresholds?: {
591
+ low: number;
592
+ mid: number;
593
+ } | null | undefined;
594
+ operationalGroup?: string | null | undefined;
595
+ code: string;
596
+ _id: string;
597
+ name: string;
598
+ }[];
599
+ }[] | null | undefined;
396
600
  updatedAt?: string | null | undefined;
397
601
  _id: string;
398
602
  }>>;
@@ -2,12 +2,17 @@ export declare const useNetSuiteApi: () => {
2
2
  readSetting(): Promise<{
3
3
  accessToken?: string | null | undefined;
4
4
  syncedAt?: string | null | undefined;
5
+ restlet?: {
6
+ type: "createItemReceipt";
7
+ scriptId: string;
8
+ deploymentId: string;
9
+ }[] | null | undefined;
5
10
  _id: string;
6
11
  items: {
7
12
  id: string;
8
13
  netSuiteId: string;
9
- unitTypeId: string;
10
14
  unitOfMeasureId: string;
15
+ unitTypeId: string;
11
16
  subsidiaryIds: string[];
12
17
  }[];
13
18
  enable: boolean;
@@ -18,6 +23,14 @@ export declare const useNetSuiteApi: () => {
18
23
  netSuiteId: string;
19
24
  subsidiaryId: string;
20
25
  }[];
26
+ childItems: {
27
+ pktName?: string | null | undefined;
28
+ externalId?: string | null | undefined;
29
+ netSuiteId: string;
30
+ parentNetSuiteId: string;
31
+ unitOfMeasureId: string;
32
+ pktCode: string;
33
+ }[];
21
34
  units: {
22
35
  id: string;
23
36
  measurements: {