@feedmepos/mf-inventory-portal 0.0.25-dev.4 → 0.0.25-dev.42

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 (112) hide show
  1. package/dist/{App-DavuRdR4.js → App-BgLyTa3Z.js} +35 -34
  2. package/dist/ApprovalView-UC31qsPD.js +143 -0
  3. package/dist/{BindingsDialog-Ckbhr9x3.js → BindingsDialog-h9el4EvX.js} +6 -6
  4. package/dist/{BindingsPicker-B63gIPVJ.js → BindingsPicker-Cw5AT6xO.js} +8 -8
  5. package/dist/{BindingsTable-5w7_8JzF.js → BindingsTable-Boj3hZup.js} +6 -6
  6. package/dist/ClosingDraftView-DOH7FmkH.js +1348 -0
  7. package/dist/ClosingTemplateView-CG7qArA8.js +1859 -0
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-k1J8dWcK.js +211 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-M5pWGm8D.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C5qp_p1A.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBYsiV9t.js +51 -0
  12. package/dist/{IngredientGroupView-D_1gJl4X.js → IngredientGroupView-CWEw3I3i.js} +14 -14
  13. package/dist/{IngredientsView-Xzt0_AP8.js → IngredientsView-B6EDjPTe.js} +577 -551
  14. package/dist/{IntegrationView-BcF7Qhvw.js → IntegrationView-DiSoM1K8.js} +660 -623
  15. package/dist/{InventoryBindingForm-Cm49VDtA.js → InventoryBindingForm-nKWx-EUW.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-EJ0U2gdF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMMD4hwX.js} +96 -96
  17. package/dist/{InventoryBindingSummary-D821YZ-3.js → InventoryBindingSummary-CQnCjIY4.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6jGlkOx.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cr8DwdOC.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-TMYgOcbh.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DnZI3Gfj.js} +15 -15
  20. package/dist/PublishView-DvHW27pI.js +222 -0
  21. package/dist/{PurchaseOrderPrintPreview-DiCTMEY4.js → PurchaseOrderPrintPreview-DSTbRKyh.js} +1 -1
  22. package/dist/ReceiveRequestView-BKRHqSU-.js +2577 -0
  23. package/dist/{RecipeView-k5yiAPop.js → RecipeView-CFTrf0YF.js} +47 -46
  24. package/dist/{index-DhAsCP14.js → StockView-CAPLd29m.js} +3564 -1764
  25. package/dist/{SupplierView-De4_YCtR.js → SupplierView-C_CrS9FM.js} +446 -457
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BWuWB95v.js +1564 -0
  27. package/dist/TransferTemplateView-BaJaiaO9.js +1526 -0
  28. package/dist/{UnitView-DouWNXFf.js → UnitView-DY9nZs1y.js} +14 -14
  29. package/dist/{WarehouseView-RQN-XBeO.js → WarehouseView-CAFxl8K4.js} +332 -314
  30. package/dist/api/closing-draft.d.ts +1 -0
  31. package/dist/api/inventory.d.ts +9 -6
  32. package/dist/api/netsuite.d.ts +21 -4
  33. package/dist/api/purchase-order.d.ts +6 -1
  34. package/dist/api/stock.d.ts +1 -0
  35. package/dist/{app-Bmmin1VX.js → app-Jh5wwLsF.js} +28968 -28906
  36. package/dist/app.js +1 -1
  37. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  38. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  39. package/dist/components/FmLockableField.vue.d.ts +3 -0
  40. package/dist/components/FmMultiselectDialog.d.ts +23 -0
  41. package/dist/components/FmMultiselectDialog.vue.d.ts +20 -3
  42. package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
  43. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  44. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  45. package/dist/{decimal-CZhBTty7.js → decimal-0_acpDRy.js} +1 -1
  46. package/dist/feature-CqX_LtOl.js +1007 -0
  47. package/dist/{format-unit-display-CijRcRSo.js → format-unit-display-CYPC8_oX.js} +335 -328
  48. package/dist/helper/country.d.ts +1 -0
  49. package/dist/helper/fuzzy.d.ts +10 -0
  50. package/dist/index-QcOk4LDU.js +35546 -0
  51. package/dist/{stock-D5lxPBQG.js → stock-BpWEKDoQ.js} +29 -25
  52. package/dist/stores/feature.d.ts +4 -5
  53. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  54. package/dist/stores/integration/netsuite.d.ts +21 -4
  55. package/dist/stores/inventory.d.ts +135 -8
  56. package/dist/stores/location.d.ts +100 -0
  57. package/dist/stores/warehouse.d.ts +1 -0
  58. package/dist/style.css +1 -1
  59. package/dist/{supplier-BU1WhNTR.js → supplier-By3gzRHW.js} +1 -1
  60. package/dist/tsconfig.app.tsbuildinfo +1 -1
  61. package/dist/use-ingredient-select-dialog-hkbfGnB9.js +51 -0
  62. package/dist/{use-inventory-binding-dialog-ZneYylve.js → use-inventory-binding-dialog-BFG04MUx.js} +1 -1
  63. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  64. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  65. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  66. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  67. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  68. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
  69. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  70. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  71. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  72. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  73. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  74. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  75. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
  76. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  77. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
  78. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
  79. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +411 -17
  80. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +6 -2
  81. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
  82. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +6 -3
  83. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +822 -29
  84. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +650 -48
  85. package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
  86. package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
  87. package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
  88. package/dist/views/receive-request/import/export.d.ts +12 -0
  89. package/dist/views/receive-request/import/props.d.ts +7 -0
  90. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
  91. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
  92. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  93. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  94. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +9 -4
  95. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +60 -12
  96. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +60 -12
  97. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
  98. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
  99. package/dist/{vue-i18n-BQNx5sCM.js → vue-i18n-D57Xfcpf.js} +226 -226
  100. package/package.json +3 -3
  101. package/dist/ApprovalView-DjDzZmVI.js +0 -138
  102. package/dist/ClosingDraftView-BwV3uiYC.js +0 -1225
  103. package/dist/ClosingTemplateView-vaAj0Y-0.js +0 -1819
  104. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dy1BXu1R.js +0 -142
  105. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZ_Q-3lU.js +0 -286
  106. package/dist/PublishView-CYdu5jl4.js +0 -192
  107. package/dist/ReceiveRequestView-DGqs1rpr.js +0 -1876
  108. package/dist/StockView-DX0RjayP.js +0 -1817
  109. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DhdMwHAA.js +0 -1327
  110. package/dist/TransferTemplateView-DEwJaqYB.js +0 -1284
  111. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  112. package/dist/index-DbE8p73U.js +0 -29202
@@ -1,41 +1,45 @@
1
- import { X as m, u as k, a as d, ak as B, L as p } from "./app-Bmmin1VX.js";
2
- import { useCoreStore as v } from "@feedmepos/mf-common";
1
+ import { W as m, u as B, a as l, an as k, K as v } from "./app-Jh5wwLsF.js";
2
+ import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as y } from "@feedmepos/ui-library";
4
4
  import { ref as $, computed as S } from "vue";
5
5
  const b = m((r, o) => {
6
- const u = k(), a = v(), c = y();
6
+ const c = B(), a = p(), u = y();
7
7
  return o.onError(async (t) => {
8
- t.name === "SvcForbiddenError" && (c == null || c.open({
8
+ t.name === "SvcForbiddenError" && (u == null || u.open({
9
9
  title: t.title,
10
10
  message: t.message,
11
11
  type: "error"
12
12
  }));
13
13
  }), {
14
14
  async readStockBalance() {
15
- const t = u.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/stock-balance`;
15
+ const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/stock-balance`;
16
16
  return await o.get(e);
17
17
  },
18
18
  async readSkuBalance() {
19
19
  var s;
20
- const t = u.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/sku/balance`;
20
+ const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/sku/balance`;
21
21
  return (((s = a.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await o.get(e) : await o.get(`${e}?useInventoryDoc=true`);
22
22
  },
23
23
  async readSingleAdjustment(t) {
24
- const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
24
+ const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
25
25
  return await o.get(`${n}?adjustmentId=${t}`);
26
26
  },
27
27
  async readStockAdjustment(t, e, n) {
28
- const s = u.currentLocationDBName, i = `${r.inventoryBackendUrl}/${s}/sku`;
28
+ const s = c.currentLocationDBName, i = `${r.inventoryBackendUrl}/${s}/sku`;
29
29
  return await o.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
30
30
  },
31
+ async readAdjustmentById(t) {
32
+ const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
33
+ return await o.get(`${n}?adjustmentId=${t}`);
34
+ },
31
35
  async convertSku(t) {
32
36
  var i;
33
- const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/convert`;
37
+ const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/convert`;
34
38
  return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
35
39
  },
36
40
  async adjustSku(t) {
37
41
  var i;
38
- const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/adjust`;
42
+ const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/adjust`;
39
43
  return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
40
44
  },
41
45
  recalculation: {
@@ -61,44 +65,44 @@ function g() {
61
65
  productBalance: []
62
66
  };
63
67
  }
64
- const f = p(0), w = {
68
+ const f = v(0), w = {
65
69
  id: "",
66
70
  balance: f,
67
71
  closing: null,
68
72
  costs: null
69
- }, l = $(g()), A = () => {
70
- const r = d(), o = S(() => {
73
+ }, d = $(g()), A = () => {
74
+ const r = l(), o = S(() => {
71
75
  var t;
72
- const a = (t = l.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), c = (e) => {
76
+ const a = (t = d.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), u = (e) => {
73
77
  var n;
74
78
  return ((n = a == null ? void 0 : a.get(e)) == null ? void 0 : n[0]) ?? { ...w, id: e };
75
79
  };
76
- return r.skus.map((e) => c(e._id));
77
- }), u = b();
80
+ return r.skus.map((e) => u(e._id));
81
+ }), c = b();
78
82
  return {
79
83
  // state
80
84
  get stockBalance() {
81
85
  return {
82
- ...l.value.stockBalance,
86
+ ...d.value.stockBalance,
83
87
  skus: o.value
84
88
  };
85
89
  },
86
90
  set stockBalance(a) {
87
- l.value.stockBalance = a;
91
+ d.value.stockBalance = a;
88
92
  },
89
93
  get productBalance() {
90
- return l.value.productBalance;
94
+ return d.value.productBalance;
91
95
  },
92
96
  set productBalance(a) {
93
- l.value.productBalance = a;
97
+ d.value.productBalance = a;
94
98
  },
95
99
  // actions
96
100
  async readStockBalance() {
97
- this.stockBalance = await u.readStockBalance();
101
+ this.stockBalance = await c.readStockBalance();
98
102
  },
99
103
  async readProductBalance() {
100
104
  this.productBalance = [];
101
- const a = d(), c = B({
105
+ const a = l(), u = k({
102
106
  recipes: a.recipes,
103
107
  skus: a.skus,
104
108
  inventoryBindingMapping: {},
@@ -108,9 +112,9 @@ const f = p(0), w = {
108
112
  function t(e, n) {
109
113
  return Object.prototype.hasOwnProperty.call(e, n);
110
114
  }
111
- for (const e in c.convertCountdown)
112
- if (t(c.convertCountdown, e)) {
113
- const n = c.convertCountdown[e];
115
+ for (const e in u.convertCountdown)
116
+ if (t(u.convertCountdown, e)) {
117
+ const n = u.convertCountdown[e];
114
118
  this.productBalance.push({
115
119
  id: e,
116
120
  count: n
@@ -11,7 +11,8 @@ export declare enum InventoryFeature {
11
11
  inventory_pos_costing = "inventory_pos_costing",
12
12
  inventory_pos_stock_return = "inventory_pos_stock_return",
13
13
  inventory_pos_transfer_require_fulfillment = "inventory_pos_transfer_require_fulfillment",
14
- inventory_purchase_order_approval = "inventory_purchase_order_approval"
14
+ inventory_purchase_order_approval = "inventory_purchase_order_approval",
15
+ inventory_portal_xilnex_transfer_note = "inventory_portal_xilnex_transfer_note"
15
16
  }
16
17
  export interface FeatureState {
17
18
  enableTotalCost: boolean;
@@ -25,10 +26,9 @@ export interface FeatureState {
25
26
  enableWastageTemplate: boolean;
26
27
  enableIngredientGroup: boolean;
27
28
  mustUsePoTemplate: boolean;
28
- /** @deprecated TODO: remove */
29
- mustUseDefaultCost: boolean;
30
29
  enableSupplierMasterList: boolean;
31
30
  businessSupplierOnly: boolean;
31
+ enableXilnexTransferNote: boolean;
32
32
  }
33
33
  export declare const useFeatureStore: () => {
34
34
  readonly businessDbName: string;
@@ -45,10 +45,9 @@ export declare const useFeatureStore: () => {
45
45
  readonly enableWastageTemplate: boolean;
46
46
  readonly enableIngredientGroup: boolean;
47
47
  readonly mustUsePoTemplate: boolean;
48
- /** @deprecated TODO: remove */
49
- readonly mustUseDefaultCost: boolean;
50
48
  readonly enableSupplierMasterList: boolean;
51
49
  readonly businessSupplierOnly: boolean;
50
+ readonly enableXilnexTransferNote: boolean;
52
51
  init(): Promise<void>;
53
52
  setUser(location: FdoInventoryLocation): Promise<void>;
54
53
  };
@@ -1,4 +1,3 @@
1
- export declare const otherServers: string[];
2
1
  export declare function generateBackendUrl(country: string): {
3
2
  portalBackendUrl: string;
4
3
  netSuiteBackendUrl: string;
@@ -12,9 +12,13 @@ export declare function useNetSuiteStore(): {
12
12
  _id: string;
13
13
  enable: boolean;
14
14
  items: {
15
+ externalId?: string | null | undefined;
16
+ cogsAccount?: {
17
+ id: string;
18
+ refName: string;
19
+ } | null | undefined;
15
20
  pktCode?: string | null | undefined;
16
21
  pktName?: string | null | undefined;
17
- externalId?: string | null | undefined;
18
22
  id: string;
19
23
  netSuiteId: string;
20
24
  unitTypeId: string;
@@ -36,9 +40,13 @@ export declare function useNetSuiteStore(): {
36
40
  deploymentId: string;
37
41
  }[] | null | undefined;
38
42
  childItems: {
43
+ externalId?: string | null | undefined;
44
+ cogsAccount?: {
45
+ id: string;
46
+ refName: string;
47
+ } | null | undefined;
39
48
  pktCode?: string | null | undefined;
40
49
  pktName?: string | null | undefined;
41
- externalId?: string | null | undefined;
42
50
  netSuiteId: string;
43
51
  parentNetSuiteId: string;
44
52
  unitTypeId: string;
@@ -77,9 +85,13 @@ export declare function useNetSuiteStore(): {
77
85
  readonly netSuiteItemIdToSkuId: Map<unknown, [string, ...string[]]>;
78
86
  readonly netSuiteMeasurementIdToMeasurementId: Map<unknown, [string, ...string[]]>;
79
87
  readonly netSuiteItemBySkuId: Map<unknown, [{
88
+ externalId?: string | null | undefined;
89
+ cogsAccount?: {
90
+ id: string;
91
+ refName: string;
92
+ } | null | undefined;
80
93
  pktCode?: string | null | undefined;
81
94
  pktName?: string | null | undefined;
82
- externalId?: string | null | undefined;
83
95
  id: string;
84
96
  netSuiteId: string;
85
97
  unitTypeId: string;
@@ -87,9 +99,13 @@ export declare function useNetSuiteStore(): {
87
99
  subsidiaryIds: string[];
88
100
  includeChildren: boolean;
89
101
  }, ...{
102
+ externalId?: string | null | undefined;
103
+ cogsAccount?: {
104
+ id: string;
105
+ refName: string;
106
+ } | null | undefined;
90
107
  pktCode?: string | null | undefined;
91
108
  pktName?: string | null | undefined;
92
- externalId?: string | null | undefined;
93
109
  id: string;
94
110
  netSuiteId: string;
95
111
  unitTypeId: string;
@@ -172,6 +188,7 @@ export declare function useNetSuiteStore(): {
172
188
  getAvailableItems(subsidiaryId?: string | null): string[];
173
189
  getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
174
190
  readSetting(): Promise<void>;
191
+ getNetSuiteLocations(): Promise<any>;
175
192
  getVendorSubsidiaryName(supplierId: string): string;
176
193
  syncTransferOrder(type: string, poId: string, porId?: string): Promise<void>;
177
194
  getItemPKTCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
@@ -50,6 +50,7 @@ export declare function useInventoryStore(): {
50
50
  }[];
51
51
  }[] | null | undefined;
52
52
  sku?: {
53
+ customAttributes?: Record<string, any> | null | undefined;
53
54
  trackingMeasurement?: string | null | undefined;
54
55
  convert?: {
55
56
  measurement?: string | null | undefined;
@@ -93,7 +94,6 @@ export declare function useInventoryStore(): {
93
94
  low: number;
94
95
  mid: number;
95
96
  } | null | undefined;
96
- customAttributes?: Record<string, any> | null | undefined;
97
97
  unit: {
98
98
  _id: string;
99
99
  name: string;
@@ -155,6 +155,7 @@ export declare function useInventoryStore(): {
155
155
  _id: string;
156
156
  name: string;
157
157
  skus: {
158
+ customAttributes?: Record<string, any> | null | undefined;
158
159
  trackingMeasurement?: string | null | undefined;
159
160
  convert?: {
160
161
  measurement?: string | null | undefined;
@@ -198,7 +199,6 @@ export declare function useInventoryStore(): {
198
199
  low: number;
199
200
  mid: number;
200
201
  } | null | undefined;
201
- customAttributes?: Record<string, any> | null | undefined;
202
202
  code: string;
203
203
  _id: string;
204
204
  name: string;
@@ -826,6 +826,7 @@ export declare function useInventoryStore(): {
826
826
  }[];
827
827
  }[] | null | undefined;
828
828
  sku?: {
829
+ customAttributes?: Record<string, any> | null | undefined;
829
830
  trackingMeasurement?: string | null | undefined;
830
831
  convert?: {
831
832
  measurement?: string | null | undefined;
@@ -869,7 +870,6 @@ export declare function useInventoryStore(): {
869
870
  low: number;
870
871
  mid: number;
871
872
  } | null | undefined;
872
- customAttributes?: Record<string, any> | null | undefined;
873
873
  unit: {
874
874
  _id: string;
875
875
  name: string;
@@ -931,6 +931,7 @@ export declare function useInventoryStore(): {
931
931
  _id: string;
932
932
  name: string;
933
933
  skus: {
934
+ customAttributes?: Record<string, any> | null | undefined;
934
935
  trackingMeasurement?: string | null | undefined;
935
936
  convert?: {
936
937
  measurement?: string | null | undefined;
@@ -974,7 +975,6 @@ export declare function useInventoryStore(): {
974
975
  low: number;
975
976
  mid: number;
976
977
  } | null | undefined;
977
- customAttributes?: Record<string, any> | null | undefined;
978
978
  code: string;
979
979
  _id: string;
980
980
  name: string;
@@ -2085,6 +2085,7 @@ export declare function useInventoryStore(): {
2085
2085
  }[];
2086
2086
  }>;
2087
2087
  readonly skus: {
2088
+ customAttributes?: Record<string, any> | null | undefined;
2088
2089
  trackingMeasurement?: string | null | undefined;
2089
2090
  convert?: {
2090
2091
  measurement?: string | null | undefined;
@@ -2128,7 +2129,6 @@ export declare function useInventoryStore(): {
2128
2129
  low: number;
2129
2130
  mid: number;
2130
2131
  } | null | undefined;
2131
- customAttributes?: Record<string, any> | null | undefined;
2132
2132
  unit: {
2133
2133
  _id: string;
2134
2134
  name: string;
@@ -2149,6 +2149,7 @@ export declare function useInventoryStore(): {
2149
2149
  name: string;
2150
2150
  }[];
2151
2151
  readonly skuById: Record<string, {
2152
+ customAttributes?: Record<string, any> | null | undefined;
2152
2153
  trackingMeasurement?: string | null | undefined;
2153
2154
  convert?: {
2154
2155
  measurement?: string | null | undefined;
@@ -2192,7 +2193,6 @@ export declare function useInventoryStore(): {
2192
2193
  low: number;
2193
2194
  mid: number;
2194
2195
  } | null | undefined;
2195
- customAttributes?: Record<string, any> | null | undefined;
2196
2196
  unit: {
2197
2197
  _id: string;
2198
2198
  name: string;
@@ -2213,6 +2213,7 @@ export declare function useInventoryStore(): {
2213
2213
  name: string;
2214
2214
  }>;
2215
2215
  readonly skuByCode: Record<string, {
2216
+ customAttributes?: Record<string, any> | null | undefined;
2216
2217
  trackingMeasurement?: string | null | undefined;
2217
2218
  convert?: {
2218
2219
  measurement?: string | null | undefined;
@@ -2256,7 +2257,6 @@ export declare function useInventoryStore(): {
2256
2257
  low: number;
2257
2258
  mid: number;
2258
2259
  } | null | undefined;
2259
- customAttributes?: Record<string, any> | null | undefined;
2260
2260
  unit: {
2261
2261
  _id: string;
2262
2262
  name: string;
@@ -2296,6 +2296,7 @@ export declare function useInventoryStore(): {
2296
2296
  _id: string;
2297
2297
  name: string;
2298
2298
  skus: {
2299
+ customAttributes?: Record<string, any> | null | undefined;
2299
2300
  trackingMeasurement?: string | null | undefined;
2300
2301
  convert?: {
2301
2302
  measurement?: string | null | undefined;
@@ -2339,12 +2340,138 @@ export declare function useInventoryStore(): {
2339
2340
  low: number;
2340
2341
  mid: number;
2341
2342
  } | null | undefined;
2342
- customAttributes?: Record<string, any> | null | undefined;
2343
2343
  code: string;
2344
2344
  _id: string;
2345
2345
  name: string;
2346
2346
  }[];
2347
2347
  }[];
2348
+ readonly skuTags: Map<unknown, [{
2349
+ customAttributes?: Record<string, any> | null | undefined;
2350
+ trackingMeasurement?: string | null | undefined;
2351
+ convert?: {
2352
+ measurement?: string | null | undefined;
2353
+ inventoryBindings?: {
2354
+ measurement?: {
2355
+ id: string;
2356
+ name: string;
2357
+ abbrev: string;
2358
+ conversion: {
2359
+ amount: number;
2360
+ precision: number;
2361
+ };
2362
+ } | null | undefined;
2363
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2364
+ amount: {
2365
+ amount: number;
2366
+ precision: number;
2367
+ };
2368
+ id: string;
2369
+ }[] | null | undefined;
2370
+ } | null | undefined;
2371
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2372
+ defaultCost?: {
2373
+ measurement?: {
2374
+ id: string;
2375
+ name: string;
2376
+ abbrev: string;
2377
+ conversion: {
2378
+ amount: number;
2379
+ precision: number;
2380
+ };
2381
+ } | null | undefined;
2382
+ costPerUnit: {
2383
+ 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";
2384
+ amount: number;
2385
+ precision: number;
2386
+ };
2387
+ } | null | undefined;
2388
+ operationalGroup?: string | null | undefined;
2389
+ thresholds?: {
2390
+ low: number;
2391
+ mid: number;
2392
+ } | null | undefined;
2393
+ unit: {
2394
+ _id: string;
2395
+ name: string;
2396
+ abbrev: string;
2397
+ precision: number;
2398
+ measurements: {
2399
+ id: string;
2400
+ name: string;
2401
+ abbrev: string;
2402
+ conversion: {
2403
+ amount: number;
2404
+ precision: number;
2405
+ };
2406
+ }[];
2407
+ };
2408
+ code: string;
2409
+ _id: string;
2410
+ name: string;
2411
+ }, ...{
2412
+ customAttributes?: Record<string, any> | null | undefined;
2413
+ trackingMeasurement?: string | null | undefined;
2414
+ convert?: {
2415
+ measurement?: string | null | undefined;
2416
+ inventoryBindings?: {
2417
+ measurement?: {
2418
+ id: string;
2419
+ name: string;
2420
+ abbrev: string;
2421
+ conversion: {
2422
+ amount: number;
2423
+ precision: number;
2424
+ };
2425
+ } | null | undefined;
2426
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2427
+ amount: {
2428
+ amount: number;
2429
+ precision: number;
2430
+ };
2431
+ id: string;
2432
+ }[] | null | undefined;
2433
+ } | null | undefined;
2434
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2435
+ defaultCost?: {
2436
+ measurement?: {
2437
+ id: string;
2438
+ name: string;
2439
+ abbrev: string;
2440
+ conversion: {
2441
+ amount: number;
2442
+ precision: number;
2443
+ };
2444
+ } | null | undefined;
2445
+ costPerUnit: {
2446
+ 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";
2447
+ amount: number;
2448
+ precision: number;
2449
+ };
2450
+ } | null | undefined;
2451
+ operationalGroup?: string | null | undefined;
2452
+ thresholds?: {
2453
+ low: number;
2454
+ mid: number;
2455
+ } | null | undefined;
2456
+ unit: {
2457
+ _id: string;
2458
+ name: string;
2459
+ abbrev: string;
2460
+ precision: number;
2461
+ measurements: {
2462
+ id: string;
2463
+ name: string;
2464
+ abbrev: string;
2465
+ conversion: {
2466
+ amount: number;
2467
+ precision: number;
2468
+ };
2469
+ }[];
2470
+ };
2471
+ code: string;
2472
+ _id: string;
2473
+ name: string;
2474
+ }[]]>;
2348
2475
  init(): Promise<void>;
2349
2476
  readClosing(): Promise<void>;
2350
2477
  getAffectedMenu(id: string): Promise<BindedWithRecipeId[]>;
@@ -17,6 +17,7 @@ export declare function useLocationStore(): {
17
17
  acceptRequest: boolean;
18
18
  dbName: string;
19
19
  doc: {
20
+ customAttributes?: Record<string, any> | null | undefined;
20
21
  _id: string;
21
22
  businessId: string;
22
23
  profile: {
@@ -108,6 +109,7 @@ export declare function useLocationStore(): {
108
109
  acceptRequest: boolean;
109
110
  dbName: string;
110
111
  doc: {
112
+ customAttributes?: Record<string, any> | null | undefined;
111
113
  _id: string;
112
114
  businessId: string;
113
115
  profile: {
@@ -200,6 +202,7 @@ export declare function useLocationStore(): {
200
202
  acceptRequest: boolean;
201
203
  dbName: string;
202
204
  doc: {
205
+ customAttributes?: Record<string, any> | null | undefined;
203
206
  _id: string;
204
207
  businessId: string;
205
208
  profile: {
@@ -291,6 +294,7 @@ export declare function useLocationStore(): {
291
294
  acceptRequest: boolean;
292
295
  dbName: string;
293
296
  doc: {
297
+ customAttributes?: Record<string, any> | null | undefined;
294
298
  _id: string;
295
299
  businessId: string;
296
300
  profile: {
@@ -373,6 +377,98 @@ export declare function useLocationStore(): {
373
377
  };
374
378
  }[] | null;
375
379
  };
380
+ readonly locationById: Record<string, {
381
+ inventory?: {
382
+ _id: string;
383
+ updatedAt: string;
384
+ } | null | undefined;
385
+ type: "restaurant" | "warehouse";
386
+ name: string;
387
+ acceptRequest: boolean;
388
+ dbName: string;
389
+ doc: {
390
+ customAttributes?: Record<string, any> | null | undefined;
391
+ _id: string;
392
+ businessId: string;
393
+ profile: {
394
+ code?: string | null | undefined;
395
+ _id?: string | null | undefined;
396
+ name?: string | undefined;
397
+ address?: {
398
+ coordinates?: number[] | null | undefined;
399
+ line2?: string | null | undefined;
400
+ state: string;
401
+ country: string;
402
+ line1: string;
403
+ city: string;
404
+ postcode: string;
405
+ } | undefined;
406
+ email?: string | undefined;
407
+ regNo?: string | undefined;
408
+ sstRegNo?: string | null | undefined;
409
+ phoneNo?: string | undefined;
410
+ legalName?: string | null | undefined;
411
+ discovery?: boolean | null | undefined;
412
+ coverPhoto?: string | null | undefined;
413
+ thumbnailPhoto?: string | null | undefined;
414
+ description?: string | null | undefined;
415
+ photos?: string[] | null | undefined;
416
+ operatingHours?: {
417
+ 0: {
418
+ hours: {
419
+ end: string;
420
+ start: string;
421
+ }[];
422
+ enable: boolean;
423
+ };
424
+ 2: {
425
+ hours: {
426
+ end: string;
427
+ start: string;
428
+ }[];
429
+ enable: boolean;
430
+ };
431
+ 1: {
432
+ hours: {
433
+ end: string;
434
+ start: string;
435
+ }[];
436
+ enable: boolean;
437
+ };
438
+ 3: {
439
+ hours: {
440
+ end: string;
441
+ start: string;
442
+ }[];
443
+ enable: boolean;
444
+ };
445
+ 4: {
446
+ hours: {
447
+ end: string;
448
+ start: string;
449
+ }[];
450
+ enable: boolean;
451
+ };
452
+ 5: {
453
+ hours: {
454
+ end: string;
455
+ start: string;
456
+ }[];
457
+ enable: boolean;
458
+ };
459
+ 6: {
460
+ hours: {
461
+ end: string;
462
+ start: string;
463
+ }[];
464
+ enable: boolean;
465
+ };
466
+ } | null | undefined;
467
+ tags?: string[] | null | undefined;
468
+ url?: string | null | undefined;
469
+ };
470
+ };
471
+ }>;
376
472
  readonly currentLocation: {
377
473
  inventory?: {
378
474
  _id: string;
@@ -383,6 +479,7 @@ export declare function useLocationStore(): {
383
479
  acceptRequest: boolean;
384
480
  dbName: string;
385
481
  doc: {
482
+ customAttributes?: Record<string, any> | null | undefined;
386
483
  _id: string;
387
484
  businessId: string;
388
485
  profile: {
@@ -477,6 +574,7 @@ export declare function useLocationStore(): {
477
574
  acceptRequest: boolean;
478
575
  dbName: string;
479
576
  doc: {
577
+ customAttributes?: Record<string, any> | null | undefined;
480
578
  _id: string;
481
579
  businessId: string;
482
580
  profile: {
@@ -569,6 +667,7 @@ export declare function useLocationStore(): {
569
667
  acceptRequest: boolean;
570
668
  dbName: string;
571
669
  doc: {
670
+ customAttributes?: Record<string, any> | null | undefined;
572
671
  _id: string;
573
672
  businessId: string;
574
673
  profile: {
@@ -657,4 +756,5 @@ export declare function useLocationStore(): {
657
756
  setLocations(resp: InventoryLocation[]): void;
658
757
  selectLocation(location?: InventoryLocation, skipStorage?: boolean): void;
659
758
  init(): Promise<void>;
759
+ readonly locationCustomTags: string[];
660
760
  };
@@ -74,6 +74,7 @@ export declare function useWarehouseStore(): {
74
74
  warehouseQuota: number;
75
75
  menuVersion: string;
76
76
  } | null | undefined;
77
+ customAttributes?: Record<string, any> | null | undefined;
77
78
  _id: string;
78
79
  businessId: string;
79
80
  profile: {