@feedmepos/mf-inventory-portal 0.0.22-dev.3 → 0.0.22-dev.30

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 (79) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/{ApprovalView-BnkFRJgX.js → ApprovalView-BowcCo8d.js} +26 -26
  3. package/dist/{BindingsDialog-BDzmf8Wr.js → BindingsDialog-CmmLVQTN.js} +1 -1
  4. package/dist/{BindingsPicker-CRGFd-d8.js → BindingsPicker-BErHbcxb.js} +8 -8
  5. package/dist/{BindingsTable-BnHju77G.js → BindingsTable-hrfbN6tX.js} +1 -1
  6. package/dist/ClosingTemplateView-BVefCGpC.js +1072 -0
  7. package/dist/Entry.vue.d.ts +0 -2
  8. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BRV9dZhu.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js} +8 -8
  9. package/dist/IngredientsView-BqnUckSv.js +1817 -0
  10. package/dist/{IntegrationView-UySDEAnh.js → IntegrationView-BEdAKS1I.js} +120 -120
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cxy6vo9D.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-pr7Sb7Om.js} +1 -1
  12. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ChrCZc0C.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DsYwNO5N.js} +1 -1
  13. package/dist/{PurchaseOrderPrintPreview-CGxMILW0.js → PurchaseOrderPrintPreview-DzaS_c8R.js} +1 -1
  14. package/dist/{ReceiveRequestView-BHOC-ZLV.js → ReceiveRequestView-CU-bhIjl.js} +20 -21
  15. package/dist/RecipeView-CmETsz5e.js +590 -0
  16. package/dist/{StockView-BcXcQZpl.js → StockView-BgmjwPbh.js} +602 -585
  17. package/dist/{SupplierView-Bl13ZM-9.js → SupplierView-CDm5q1th.js} +108 -108
  18. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BZJyhJu4.js +858 -0
  19. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-lybenWiw.js +1678 -0
  20. package/dist/TransferTemplateView-CSQ2XxFU.js +1232 -0
  21. package/dist/{UnitView-DG8PGv5Y.js → UnitView-D7bcDkOX.js} +6 -6
  22. package/dist/{WarehouseView-CeS8jrgw.js → WarehouseView-BJAKVdRs.js} +17 -17
  23. package/dist/api/inventory.d.ts +72 -85
  24. package/dist/api/netsuite.d.ts +47 -0
  25. package/dist/api/purchase-order-template.d.ts +0 -4
  26. package/dist/{app-DYhspC_r.js → app-A8ykBdGf.js} +21877 -20978
  27. package/dist/app.d.ts +7 -0
  28. package/dist/app.js +3 -3
  29. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  30. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  31. package/dist/components/FmUnitInputRules.d.ts +2 -0
  32. package/dist/{decimal-DwEh3AcZ.js → decimal-BC4EGBAX.js} +1 -1
  33. package/dist/{defineDeepModel-htf7zxRR.js → defineDeepModel-Ckfkwau_.js} +3 -3
  34. package/dist/{format-time-from-id-1BxShIsX.js → format-time-from-id-o1plVFRH.js} +3 -3
  35. package/dist/helper/rules.d.ts +7 -0
  36. package/dist/helper/rules.spec.d.ts +1 -0
  37. package/dist/{id-to-date-CzSDsYm2.js → id-to-date-DyPIToei.js} +1 -1
  38. package/dist/purchase-order-transaction-type-skN4AmEj.js +678 -0
  39. package/dist/stores/api.d.ts +1 -0
  40. package/dist/stores/feature.d.ts +0 -1
  41. package/dist/stores/helper/core-store-proxy.d.ts +3 -0
  42. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  43. package/dist/stores/inventory.d.ts +22 -0
  44. package/dist/stores/location.d.ts +420 -504
  45. package/dist/stores/netsuite.d.ts +68 -0
  46. package/dist/stores/route.d.ts +0 -5
  47. package/dist/stores/warehouse.d.ts +4 -7
  48. package/dist/style.css +1 -1
  49. package/dist/{supplier-DegAxD_n.js → supplier-DV3Tg4TT.js} +1 -1
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/use-template-enabled-locations-2-u_kejm-N.js +85 -0
  52. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1080 -1020
  53. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1080 -1020
  54. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  55. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1854 -0
  56. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  57. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2329 -286
  58. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2213 -170
  59. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
  60. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
  61. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
  62. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1253 -1457
  63. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +420 -1474
  64. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +230 -0
  65. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
  66. package/dist/{xlsx-CSS2klUs.js → xlsx-CrHTSBmd.js} +1 -1
  67. package/dist/{xlsx.util-CeY18XxV.js → xlsx.util-hjzkZFnf.js} +2 -2
  68. package/package.json +5 -5
  69. package/dist/ClosingTemplateView-D2EIa9YG.js +0 -1030
  70. package/dist/IngredientsView-CiUpjKmC.js +0 -1759
  71. package/dist/RecipeView-lgrm1J9x.js +0 -581
  72. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-SXFiNrtm.js +0 -740
  73. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DSBEn-Mt.js +0 -1409
  74. package/dist/TransferTemplateView-C_eqQ9a8.js +0 -1230
  75. package/dist/array-ClJzD_Lt.js +0 -30
  76. package/dist/layout/InventoryLayout.vue.d.ts +0 -2
  77. package/dist/layout/layout-routes.d.ts +0 -6
  78. package/dist/purchase-order-transaction-type-lwIoC03T.js +0 -712
  79. package/dist/use-template-enabled-locations-B2ZtZAoX.js +0 -57
@@ -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 j, A as ce, a as J, l as pe, m as fe, e as ee, j as ve } from "./app-DYhspC_r.js";
2
+ import { u as G, S as me, c as oe, R as j, A as ce, a as J, m as pe, n as fe, e as ee, j as ve } from "./app-A8ykBdGf.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 N } 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-BRV9dZhu.js";
10
- import { F as Se } from "./decimal-DwEh3AcZ.js";
11
- import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cxy6vo9D.js";
9
+ import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js";
10
+ import { F as Se } from "./decimal-BC4EGBAX.js";
11
+ import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-pr7Sb7Om.js";
12
12
  const Ee = { class: "flex flex-col gap-8" }, Ie = {
13
13
  key: 0,
14
14
  class: "flex flex-col"
@@ -479,7 +479,7 @@ const Ne = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
479
479
  try {
480
480
  const t = oe(m.value);
481
481
  t.precision ?? (t.precision = 0), t.measurements ?? (t.measurements = []), await b.createUnit(t), o.value = !1, i.open({
482
- title: r("common.success"),
482
+ title: r("inventory.common.success"),
483
483
  message: r("inventory.unit.create.success", { name: m.value.name }),
484
484
  type: "success"
485
485
  });
@@ -497,7 +497,7 @@ const Ne = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
497
497
  n.value = !0;
498
498
  try {
499
499
  await b.updateUnit(m.value), o.value = !1, i.open({
500
- title: r("common.success"),
500
+ title: r("inventory.common.success"),
501
501
  message: r("inventory.unit.update.success", { name: m.value.name }),
502
502
  type: "success"
503
503
  });
@@ -1,9 +1,9 @@
1
1
  import { ref as W, defineComponent as j, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as z, 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 I, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
2
- import { n as Pe, T as Te, V as Ue, c as G, W as ae, X as le, Y as Ee, i as Le, R as E, j as Ne } from "./app-DYhspC_r.js";
2
+ import { o as Pe, V as Te, W as Ue, c as G, X as ae, Y as le, Z as Ee, i as Le, R as E, j as Ne } from "./app-A8ykBdGf.js";
3
3
  import { useCoreStore as Be, useI18n as q } from "@feedmepos/mf-common";
4
- import { D as Ve, R as Z, F as T } from "./row-action.enum-PMKMRrZR.js";
4
+ import { D as Ve, R as Y, 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-BRV9dZhu.js";
6
+ import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.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();
@@ -69,13 +69,13 @@ function Ce() {
69
69
  }
70
70
  };
71
71
  }
72
- function Xe(m, h) {
72
+ function Ze(m, h) {
73
73
  function y(p, r) {
74
- if (p === Z.Edit) {
74
+ if (p === Y.Edit) {
75
75
  m(G(r));
76
76
  return;
77
77
  }
78
- if (p === Z.Delete) {
78
+ if (p === Y.Delete) {
79
79
  h(G(r));
80
80
  return;
81
81
  }
@@ -106,7 +106,7 @@ function Xe(m, h) {
106
106
  header: "",
107
107
  cell(p) {
108
108
  return qe(
109
- [Ve[Z.Edit], Ve[Z.Delete]],
109
+ [Ve[Y.Edit], Ve[Y.Delete]],
110
110
  (r) => {
111
111
  y(r, p.row.original.original);
112
112
  }
@@ -141,7 +141,7 @@ function Xe(m, h) {
141
141
  }
142
142
  return { columnDefs: n, formatRowData: l };
143
143
  }
144
- const Ye = /* @__PURE__ */ j({
144
+ const Xe = /* @__PURE__ */ j({
145
145
  __name: "GoogleMap",
146
146
  props: {
147
147
  markers: {
@@ -267,7 +267,7 @@ const Ye = /* @__PURE__ */ j({
267
267
  class: "map app-map"
268
268
  }, null, 512));
269
269
  }
270
- }), Ze = { class: "flex flex-col gap-24" }, Je = { class: "flex flex-col gap-8" }, Qe = { 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__ */ j({
270
+ }), Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex flex-col gap-8" }, Qe = { 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__ */ j({
271
271
  __name: "CoordinateDialog",
272
272
  props: {
273
273
  address: {
@@ -295,7 +295,7 @@ const Ye = /* @__PURE__ */ j({
295
295
  l.lat = v.lat, l.lng = v.lng, y.emitData(G(l)), r();
296
296
  }
297
297
  const _ = W();
298
- return (v, M) => (S(), z("div", Ze, [
298
+ return (v, M) => (S(), z("div", Ye, [
299
299
  g("div", Je, [
300
300
  g("div", null, [
301
301
  g("span", Qe, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
@@ -310,7 +310,7 @@ const Ye = /* @__PURE__ */ j({
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]",
@@ -757,7 +757,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
757
757
  u.createWarehouse(C.value),
758
758
  new Promise((t) => setTimeout(t, 1e3))
759
759
  ]), p.open({
760
- title: r("common.success"),
760
+ title: r("inventory.common.success"),
761
761
  message: r("inventory.warehouse.create.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
762
762
  type: "success"
763
763
  }), n("update:show", !1), n("submitted");
@@ -787,7 +787,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
787
787
  u.updateWarehouse(C.value),
788
788
  new Promise((t) => setTimeout(t, 1e3))
789
789
  ]), p.open({
790
- title: r("common.success"),
790
+ title: r("inventory.common.success"),
791
791
  message: r("inventory.warehouse.update.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
792
792
  type: "success"
793
793
  }), n("update:show", !1), n("submitted");
@@ -895,7 +895,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
895
895
  n.close();
896
896
  }
897
897
  }
898
- const { columnDefs: C, formatRowData: R } = Xe(
898
+ const { columnDefs: C, formatRowData: R } = Ze(
899
899
  v,
900
900
  M
901
901
  );
@@ -963,7 +963,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
963
963
  onRowClick: (s) => v(s.original)
964
964
  }, {
965
965
  default: N((s) => {
966
- var f, b, x, D, K, re, ne, ue, H, ie, de, ce, pe, me, X, fe, he, ye, ve, Y, ge;
966
+ var f, b, x, D, K, re, ne, ue, H, ie, de, ce, pe, me, Z, fe, he, ye, ve, X, ge;
967
967
  return [
968
968
  g("div", Co, [
969
969
  g("div", Fo, [
@@ -981,13 +981,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
981
981
  (de = P.original) != null && de.email ? (S(), z("div", $o, [
982
982
  V(c(J), {
983
983
  render: (me = (pe = (ce = s.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
984
- props: (fe = (X = s.email) == null ? void 0 : X.getContext) == null ? void 0 : fe.call(X)
984
+ props: (fe = (Z = s.email) == null ? void 0 : Z.getContext) == null ? void 0 : fe.call(Z)
985
985
  }, null, 8, ["render", "props"])
986
986
  ])) : Ae("", !0),
987
987
  g("div", Wo, [
988
988
  V(c(J), {
989
989
  render: (ve = (ye = (he = s.address) == null ? void 0 : he.column) == null ? void 0 : ye.columnDef) == null ? void 0 : ve.cell,
990
- props: (ge = (Y = s.address) == null ? void 0 : Y.getContext) == null ? void 0 : ge.call(Y)
990
+ props: (ge = (X = s.address) == null ? void 0 : X.getContext) == null ? void 0 : ge.call(X)
991
991
  }, null, 8, ["render", "props"])
992
992
  ])
993
993
  ])
@@ -1,94 +1,18 @@
1
1
  import { type WithRev } from '@/api/type';
2
2
  export declare const useInventoryApi: () => {
3
- readInventoryLocations(): Promise<({
4
- doc?: any;
5
- type: "restaurant";
6
- name: string;
7
- acceptRequest: boolean;
8
- dbName: string;
9
- } | {
10
- type: "warehouse";
3
+ readInventoryLocations(): Promise<{
4
+ type: "restaurant" | "warehouse";
11
5
  name: string;
12
6
  acceptRequest: boolean;
13
7
  dbName: string;
14
8
  doc: {
15
- pf_business?: {
16
- internal?: boolean | null | undefined;
17
- url?: string | null | undefined;
18
- expiredAt?: string | null | undefined;
19
- agentId?: string | null | undefined;
20
- restaurantTagGroups?: {
21
- name: string;
22
- id: string;
23
- tags: {
24
- name: string;
25
- id: string;
26
- }[];
27
- }[] | null | undefined;
28
- pf_agent?: {
29
- clickupId?: string | null | undefined;
30
- members?: {
31
- pf_user?: {
32
- email?: string | null | undefined;
33
- phoneNumber?: string | null | undefined;
34
- birthday?: string | null | undefined;
35
- gender?: "MALE" | "FEMALE" | null | undefined;
36
- addresses?: {
37
- name: string;
38
- address: string;
39
- coordinates: number[];
40
- }[] | null | undefined;
41
- photoURL?: string | null | undefined;
42
- displayName?: string | null | undefined;
43
- imported?: {
44
- raw: Record<string, any>;
45
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
46
- } | null | undefined;
47
- _id: string;
48
- } | null | undefined;
49
- role: "ADMIN";
50
- userId: string;
51
- }[] | null | undefined;
52
- code: string;
53
- name: string;
54
- _id: string;
55
- isReseller: boolean;
56
- } | null | undefined;
57
- thumbnail?: string | null | undefined;
58
- billingInfos?: {
59
- _id?: string | null | undefined;
60
- name: string;
61
- address: {
62
- coordinates?: number[] | null | undefined;
63
- line2?: string | null | undefined;
64
- state: string;
65
- country: string;
66
- line1: string;
67
- city: string;
68
- postcode: string;
69
- };
70
- email: string;
71
- companyName: string;
72
- contact: string;
73
- }[] | null | undefined;
74
- customerDisplayImages?: {
75
- url: string;
76
- restaurantIds: string[];
77
- }[] | null | undefined;
78
- name: string;
79
- _id: string;
80
- ownerId: string;
81
- restaurantQuota: number;
82
- warehouseQuota: number;
83
- menuVersion: string;
84
- } | null | undefined;
85
9
  _id: string;
86
10
  businessId: string;
87
11
  profile: {
88
- email?: string | null | undefined;
89
- phoneNo?: string | null | undefined;
90
- name: string;
91
- address: {
12
+ code?: string | null | undefined;
13
+ _id?: string | null | undefined;
14
+ name?: string | undefined;
15
+ address?: {
92
16
  coordinates?: number[] | null | undefined;
93
17
  line2?: string | null | undefined;
94
18
  state: string;
@@ -96,11 +20,73 @@ export declare const useInventoryApi: () => {
96
20
  line1: string;
97
21
  city: string;
98
22
  postcode: string;
99
- };
100
- regNo: string;
23
+ } | undefined;
24
+ email?: string | undefined;
25
+ regNo?: string | undefined;
26
+ sstRegNo?: string | null | undefined;
27
+ phoneNo?: string | undefined;
28
+ legalName?: string | null | undefined;
29
+ discovery?: boolean | null | undefined;
30
+ coverPhoto?: string | null | undefined;
31
+ thumbnailPhoto?: string | null | undefined;
32
+ description?: string | null | undefined;
33
+ photos?: string[] | null | undefined;
34
+ operatingHours?: {
35
+ 0: {
36
+ hours: {
37
+ end: string;
38
+ start: string;
39
+ }[];
40
+ enable: boolean;
41
+ };
42
+ 2: {
43
+ hours: {
44
+ end: string;
45
+ start: string;
46
+ }[];
47
+ enable: boolean;
48
+ };
49
+ 1: {
50
+ hours: {
51
+ end: string;
52
+ start: string;
53
+ }[];
54
+ enable: boolean;
55
+ };
56
+ 3: {
57
+ hours: {
58
+ end: string;
59
+ start: string;
60
+ }[];
61
+ enable: boolean;
62
+ };
63
+ 4: {
64
+ hours: {
65
+ end: string;
66
+ start: string;
67
+ }[];
68
+ enable: boolean;
69
+ };
70
+ 5: {
71
+ hours: {
72
+ end: string;
73
+ start: string;
74
+ }[];
75
+ enable: boolean;
76
+ };
77
+ 6: {
78
+ hours: {
79
+ end: string;
80
+ start: string;
81
+ }[];
82
+ enable: boolean;
83
+ };
84
+ } | null | undefined;
85
+ tags?: string[] | null | undefined;
86
+ url?: string | null | undefined;
101
87
  };
102
88
  };
103
- })[]>;
89
+ }[]>;
104
90
  readInventory(): Promise<WithRev<{
105
91
  unit?: {
106
92
  _id: string;
@@ -412,6 +398,7 @@ export declare const useInventoryApi: () => {
412
398
  }>>;
413
399
  urls: {
414
400
  portalBackendUrl: string;
401
+ netSuiteBackendUrl: string;
415
402
  businessesBackendUrl: string;
416
403
  inventoryBackendUrl: string;
417
404
  foodMarketHubUrl: string;
@@ -0,0 +1,47 @@
1
+ export declare const useNetSuiteApi: () => {
2
+ readSetting(): Promise<{
3
+ accessToken?: string | null | undefined;
4
+ syncedAt?: string | null | undefined;
5
+ _id: string;
6
+ items: {
7
+ id: string;
8
+ netSuiteId: string;
9
+ unitTypeId: string;
10
+ unitOfMeasureId: string;
11
+ subsidiaryIds: string[];
12
+ }[];
13
+ enable: boolean;
14
+ locations: {
15
+ type: "restaurant" | "warehouse";
16
+ id: string;
17
+ name: string;
18
+ netSuiteId: string;
19
+ subsidiaryId: string;
20
+ }[];
21
+ units: {
22
+ id: string;
23
+ measurements: {
24
+ id: string;
25
+ netSuiteId: string;
26
+ }[];
27
+ netSuiteId: string;
28
+ }[];
29
+ subsidiaries: {
30
+ parentId?: string | undefined;
31
+ id: string;
32
+ name: string;
33
+ country: string;
34
+ currency: string;
35
+ }[];
36
+ realm: string;
37
+ }>;
38
+ urls: {
39
+ portalBackendUrl: string;
40
+ netSuiteBackendUrl: string;
41
+ businessesBackendUrl: string;
42
+ inventoryBackendUrl: string;
43
+ foodMarketHubUrl: string;
44
+ menuV4BackendUrl: string;
45
+ dataBackendUrl: string;
46
+ };
47
+ };
@@ -1,10 +1,6 @@
1
1
  export declare const usePurchaseOrderTemplateApi: () => {
2
2
  getTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
3
- getLocationTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
4
- getBusinessTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
5
3
  readTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
6
- readLocationTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
7
- readBusinessTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
8
4
  createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
9
5
  updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;
10
6
  deleteTemplate(template: FdoPurchaseOrderTemplate): Promise<any>;