@feedmepos/mf-inventory-portal 1.9.0-dev.1 → 1.9.0-dev.5
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.
- package/dist/{App-OAKZ4Qdf.js → App-DDALXIcF.js} +500 -499
- package/dist/{ApprovalView-DN0rWMUh.js → ApprovalView-BJVCW2q7.js} +9 -9
- package/dist/{BindingsDialog-BWpIeq6j.js → BindingsDialog-DDMJjWjv.js} +2 -2
- package/dist/{BindingsPicker-DRROpR8i.js → BindingsPicker-twbdYEAL.js} +2 -2
- package/dist/{BindingsTable-BFEoUCIT.js → BindingsTable-Cpx3vSvk.js} +4 -4
- package/dist/{BulkReceiveRequestPage-wnXszulg.js → BulkReceiveRequestPage-DD33ulSC.js} +21 -21
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BtEblqcM.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CtHsMnkV.js} +1 -1
- package/dist/{ClosingDraftView-BRNRWXnj.js → ClosingDraftView-BUc5bGIU.js} +19 -19
- package/dist/{ClosingHistoryView-DWPINMVP.js → ClosingHistoryView-DPz6D5S2.js} +7 -7
- package/dist/ClosingTemplateView-DabFVZCc.js +2392 -0
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-cxhbnvht.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-izGh8Myj.js} +1 -1
- package/dist/{DefaultView-CTQ0-HzQ.js → DefaultView-DURO6g6_.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-gReWM4vq.js → DeliveryOrderPrintPreview-BJBheF-Y.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-IYcE8OSG.js → EmailDialog.vue_vue_type_script_setup_true_lang-BDZaoowM.js} +8430 -8430
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CGkF-JhJ.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-lABO5UTH.js} +1 -1
- package/dist/{FeatureCapabilityGate-Ce4_ozRL.js → FeatureCapabilityGate-4YBofjM5.js} +2 -2
- package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-DViz4hgB.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-VwGbsXYy.js} +1 -1
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B6f-p8K7.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CrYonFQ4.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C-6cGWEV.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D0cZr3AO.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BALpSufj.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvIVLMp-.js} +28 -24
- package/dist/{FmMultiselectDialog-CJLfLql2.js → FmMultiselectDialog-Cwd47xa5.js} +2 -2
- package/dist/{FmMultiselectDialog-B4Diosc4.js → FmMultiselectDialog-lXXaY5lK.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DuNzft4K.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CqqOESle.js} +5 -5
- package/dist/{ImportView-DnYVbQ6I.js → ImportView-hEJUxq3v.js} +7 -7
- package/dist/{IngredientsView-COUJUWAb.js → IngredientsView-DEhTu1Jk.js} +15 -15
- package/dist/{IntegrationExplorerView-CgE2WN-x.js → IntegrationExplorerView-KpAJ2V3E.js} +6 -6
- package/dist/{IntegrationPlatformView-BtTv4P3n.js → IntegrationPlatformView-qrPYWqT5.js} +4472 -4425
- package/dist/{IntegrationView-D_YkXYOW.js → IntegrationView-BcZjB2Df.js} +15 -15
- package/dist/{InventoryBindingForm-B4HvjUs9.js → InventoryBindingForm-BVW5nyBI.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CjVc2mCE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ClC9JScP.js} +4 -4
- package/dist/{InventoryBindingSummary-CCFW8rw_.js → InventoryBindingSummary-karaxDWz.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-PJMjcN03.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DC-dWx9K.js} +2 -2
- package/dist/{ProductionRunDetailPage-ChNKrpyj.js → ProductionRunDetailPage-CRoWs8GL.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-536rtKru.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-lzagKc6P.js} +8 -8
- package/dist/{ProductionRunPage-FIUKUyDB.js → ProductionRunPage-DeEzvebS.js} +4 -4
- package/dist/PublishView-BG0YVyQ_.js +282 -0
- package/dist/{PurchaseOrderPrintPreview-C8-zlH52.js → PurchaseOrderPrintPreview-DZs6nzcB.js} +2 -2
- package/dist/{ReceiveRequestView-DIuftfMU.js → ReceiveRequestView-B5jmw3_m.js} +16 -16
- package/dist/{RecipeView-BKYAdx6j.js → RecipeView-D-u82Imb.js} +16 -16
- package/dist/{SettingsView-CZR-ELPO.js → SettingsView-CavH72Zf.js} +7 -7
- package/dist/{StockView-C-9o5zUV.js → StockView-Mbbag4gi.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Db4DrwQJ.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-I8S3lE8n.js} +1 -1
- package/dist/{SupplierView-CHX-eb1W.js → SupplierView-BKjQQMUB.js} +13 -13
- package/dist/{SurchargeView-D1y5BUvB.js → SurchargeView-tG9jxSHT.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DU2wYI2T.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-f3MH8VXz.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DKTWIz-E.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CVPc0HNQ.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BzJkA7ub.js +5002 -0
- package/dist/{TransferTemplateView-Bq7Euggq.js → TransferTemplateView-DUvgcoFR.js} +19 -19
- package/dist/{UnitCostHistoryView-CLpnjeEP.js → UnitCostHistoryView-DXFlnpzI.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CiWUAHMw.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-T4rShFa9.js} +4 -4
- package/dist/{UnitView-RxPdbO_C.js → UnitView-ChPy6-nH.js} +7 -7
- package/dist/{WarehouseView-Ba_77-lL.js → WarehouseView-B4rRtSI3.js} +8 -8
- package/dist/{WastageTemplateView-DRB3J1CD.js → WastageTemplateView-BWvFXjS6.js} +15 -15
- package/dist/api/inventory.d.ts +22 -91
- package/dist/api/purchase-order-template.d.ts +1 -1
- package/dist/{app-B2FciWDu.js → app-DMflhu6b.js} +7841 -7235
- package/dist/app.js +1 -1
- package/dist/{bulk-edit-simulation.helper-gZPNWgS7.js → bulk-edit-simulation.helper-DezcOq8o.js} +2 -2
- package/dist/{closing-template-L7d2nmhr.js → closing-template-BGERrbIQ.js} +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +7 -0
- package/dist/{date2--N7dpGRR.js → date2-DIxf2HSS.js} +1 -1
- package/dist/{dayjs.min-CFhuhXoi.js → dayjs.min-W80OrMgJ.js} +1 -1
- package/dist/{decimal-gywux_Ld.js → decimal-BTK7NAET.js} +2 -2
- package/dist/{defineDeepModel-B2EkoePs.js → defineDeepModel-DJ9LqqzR.js} +1 -1
- package/dist/{duplicate-template-t-iu60N3.js → duplicate-template-BC7pMF-s.js} +1 -1
- package/dist/feature-flags/plan-tier.d.ts +0 -2
- package/dist/{feature-CvQ6eKvB.js → feature-h3MFKUcz.js} +3 -3
- package/dist/{format-time-from-id-BVk3iOfV.js → format-time-from-id-DSAFHO8d.js} +1 -1
- package/dist/{format-unit-display-CLmFpKSI.js → format-unit-display-wiLcRFDI.js} +99 -101
- package/dist/{id-to-date-DKmIZp6I.js → id-to-date-Di8Eschw.js} +1 -1
- package/dist/{import-export.helper-qShUWqck.js → import-export.helper-avwvLBKD.js} +5 -5
- package/dist/{index-CJ1pZPwZ.js → index-C-uWBaU4.js} +3 -3
- package/dist/{index-CrUvC9l4.js → index-CXhgWYdX.js} +1 -1
- package/dist/{index-CoGFfqOs.js → index-CcmysfjG.js} +1 -1
- package/dist/{lz-string-mHxrGSbY.js → lz-string-MCnthIwP.js} +1 -1
- package/dist/{netsuite-BDcapEOO.js → netsuite-CsMFS8uH.js} +2522 -2505
- package/dist/{netsuite-explorer-FeiogpVF.js → netsuite-explorer-CLsdKVZp.js} +1 -1
- package/dist/{predefined-templates-CVAkYLi5.js → predefined-templates-B4URhizE.js} +1 -1
- package/dist/publish-versions-BGoX_gD4.js +87 -0
- package/dist/purchase-order-template-Cn2JQYD0.js +41 -0
- package/dist/{recalculationUtils-BuhlMBRB.js → recalculationUtils-sCuVobBd.js} +1 -1
- package/dist/{row-action.enum-b--87Y19.js → row-action.enum-BM2HgD4R.js} +1 -1
- package/dist/{rules-CFEKk1zY.js → rules-BaYKzbRv.js} +3 -3
- package/dist/{stock-Bet2VY1l.js → stock-B4uI5_D4.js} +2 -2
- package/dist/{stock-B4FZa2Ci.js → stock-BZMbxbyg.js} +1 -1
- package/dist/stores/inventory.in-flight.spec.d.ts +1 -0
- package/dist/stores/location.d.ts +0 -289
- package/dist/stores/publish-versions.d.ts +19 -0
- package/dist/stores/publish-versions.spec.d.ts +1 -0
- package/dist/{supplier-DX_LR2LR.js → supplier-B0dtsWm4.js} +2 -2
- package/dist/{surcharge-gnQZF_xQ.js → surcharge-Djbv5SzM.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-B4qbIOqA.js → uom-rules-jR6owpw7.js} +1 -1
- package/dist/{use-ingredient-select-dialog-BE5IHSwH.js → use-ingredient-select-dialog-VfIKtgzP.js} +2 -2
- package/dist/{use-inventory-binding-dialog-B0xEQiLV.js → use-inventory-binding-dialog-BdgHGwC_.js} +2 -2
- package/dist/{use-template-enabled-locations-BvAG1cJF.js → use-template-enabled-locations-B1xMD71z.js} +2 -2
- package/dist/{use-transfer-locations-pyDvqZxC.js → use-transfer-locations-NrMDt6DD.js} +2 -2
- package/dist/{useHrmPermission-kFc2vRek.js → useHrmPermission-DT0o2-yP.js} +1 -1
- package/dist/{useNavigationMenu-C9-LqWKt.js → useNavigationMenu-CMjxTTiM.js} +86 -66
- package/dist/{useSseClient-CoafBOe-.js → useSseClient-D4n-A1ST.js} +1 -1
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +5 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.spec.d.ts +1 -0
- package/dist/views/publish/PublishView.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-total-cost.d.ts +24 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-total-cost.spec.d.ts +1 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +3 -3
- package/dist/{vue-BMDdrHy_.js → vue-BOcyAWzp.js} +37 -30
- package/dist/{vue-i18n-Bkodg08l.js → vue-i18n-69kj_U4j.js} +261 -261
- package/dist/{xlsx.util-DOCqFSat.js → xlsx.util-CJm8uh4D.js} +2 -2
- package/package.json +4 -6
- package/dist/ClosingTemplateView-gqjNm3Wi.js +0 -2358
- package/dist/PublishView-JDX28AHk.js +0 -213
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eSgt3P6r.js +0 -4961
- package/dist/purchase-order-template-CrRp6r28.js +0 -41
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as qn, j as Wn, y as zn } from "./app-
|
|
1
|
+
import { d as qn, j as Wn, y as zn } from "./app-DMflhu6b.js";
|
|
2
2
|
import { defineStore as Vn } from "pinia";
|
|
3
3
|
import { ref as mt, computed as Kn } from "vue";
|
|
4
4
|
import { useCoreStore as Yn } from "@feedmepos/mf-common";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ref as A } from "vue";
|
|
2
|
+
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
3
|
+
import { x as h } from "./app-DMflhu6b.js";
|
|
4
|
+
const c = 100, n = A({
|
|
5
|
+
versions: {},
|
|
6
|
+
loadingAll: !1,
|
|
7
|
+
loadedAt: null,
|
|
8
|
+
businessId: ""
|
|
9
|
+
});
|
|
10
|
+
let a = null, o = null;
|
|
11
|
+
function v() {
|
|
12
|
+
var e;
|
|
13
|
+
const t = ((e = g().currentBusiness.value) == null ? void 0 : e._id) ?? "";
|
|
14
|
+
n.value.businessId !== t && (n.value = { versions: {}, loadingAll: !1, loadedAt: null, businessId: t });
|
|
15
|
+
}
|
|
16
|
+
async function b(t, e) {
|
|
17
|
+
var f;
|
|
18
|
+
const r = h();
|
|
19
|
+
let l = null, u = !1, d;
|
|
20
|
+
do {
|
|
21
|
+
const s = await r.readInventoryLocationVersions({ cursor: l, ...t }, e);
|
|
22
|
+
if (e.aborted) return null;
|
|
23
|
+
for (const i of s.data)
|
|
24
|
+
i.inventory !== void 0 && (n.value.versions[i.dbName] = i.inventory);
|
|
25
|
+
u = s.hasNext, d = (f = s.data[s.data.length - 1]) == null ? void 0 : f.dbName, l = s.cursor;
|
|
26
|
+
} while (l !== null);
|
|
27
|
+
return { hasNext: u, lastDbName: d };
|
|
28
|
+
}
|
|
29
|
+
function p() {
|
|
30
|
+
return {
|
|
31
|
+
get versions() {
|
|
32
|
+
return n.value.versions;
|
|
33
|
+
},
|
|
34
|
+
get loadingAll() {
|
|
35
|
+
return n.value.loadingAll;
|
|
36
|
+
},
|
|
37
|
+
get loadedAt() {
|
|
38
|
+
return n.value.loadedAt;
|
|
39
|
+
},
|
|
40
|
+
/** Locations whose version is loaded and differs from `latestVersion`; no doc (null) counts. */
|
|
41
|
+
outdatedCount(t) {
|
|
42
|
+
return t ? Object.values(n.value.versions).filter(
|
|
43
|
+
(e) => (e == null ? void 0 : e.updatedAt) !== t
|
|
44
|
+
).length : 0;
|
|
45
|
+
},
|
|
46
|
+
forget(t) {
|
|
47
|
+
for (const e of t) delete n.value.versions[e];
|
|
48
|
+
},
|
|
49
|
+
async loadAll() {
|
|
50
|
+
v(), a == null || a.abort();
|
|
51
|
+
const t = new AbortController();
|
|
52
|
+
a = t, n.value.loadingAll = !0;
|
|
53
|
+
try {
|
|
54
|
+
let e;
|
|
55
|
+
for (let r = 0; ; r += c) {
|
|
56
|
+
const l = await b(
|
|
57
|
+
{ offset: r, limit: c, startkey: e },
|
|
58
|
+
t.signal
|
|
59
|
+
);
|
|
60
|
+
if (!l) return;
|
|
61
|
+
if (!l.hasNext) break;
|
|
62
|
+
e = l.lastDbName;
|
|
63
|
+
}
|
|
64
|
+
n.value.loadedAt = Date.now();
|
|
65
|
+
} catch (e) {
|
|
66
|
+
if (!t.signal.aborted) throw e;
|
|
67
|
+
} finally {
|
|
68
|
+
a === t && (a = null, n.value.loadingAll = !1);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
async loadPage(t) {
|
|
72
|
+
v(), o == null || o.abort();
|
|
73
|
+
const e = new AbortController();
|
|
74
|
+
o = e;
|
|
75
|
+
try {
|
|
76
|
+
await b(t, e.signal);
|
|
77
|
+
} catch (r) {
|
|
78
|
+
if (!e.signal.aborted) throw r;
|
|
79
|
+
} finally {
|
|
80
|
+
o === e && (o = null);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
p as u
|
|
87
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { d as s } from "./app-DMflhu6b.js";
|
|
2
|
+
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
|
+
const u = s((n, a) => {
|
|
4
|
+
function o() {
|
|
5
|
+
var e;
|
|
6
|
+
return `business_${((e = c().currentBusiness.value) == null ? void 0 : e._id) ?? ""}`;
|
|
7
|
+
}
|
|
8
|
+
return {
|
|
9
|
+
async getTemplate(r) {
|
|
10
|
+
const t = o(), e = `${n.inventoryBackendUrl}/${t}/purchase-order-template/${r}`;
|
|
11
|
+
return a.get(e);
|
|
12
|
+
},
|
|
13
|
+
async getTemplateBySupplierId(r) {
|
|
14
|
+
const t = o(), e = `${n.inventoryBackendUrl}/${t}/purchase-order-template?supplierId=${r}`;
|
|
15
|
+
return a.get(e);
|
|
16
|
+
},
|
|
17
|
+
async readTemplates(r) {
|
|
18
|
+
const t = o(), e = `${n.inventoryBackendUrl}/${t}/purchase-order-template`;
|
|
19
|
+
return a.get(e, r);
|
|
20
|
+
},
|
|
21
|
+
async createTemplate(r) {
|
|
22
|
+
const t = o(), e = `${n.inventoryBackendUrl}/${t}/purchase-order-template`;
|
|
23
|
+
return a.post(e, r);
|
|
24
|
+
},
|
|
25
|
+
async updateTemplate(r) {
|
|
26
|
+
const t = o(), e = `${n.inventoryBackendUrl}/${t}/purchase-order-template`;
|
|
27
|
+
return a.put(e, r);
|
|
28
|
+
},
|
|
29
|
+
async deleteTemplate(r) {
|
|
30
|
+
const t = o(), e = `${n.inventoryBackendUrl}/${t}/purchase-order-template`;
|
|
31
|
+
return a.delete(e, { _id: r._id, _rev: r._rev });
|
|
32
|
+
},
|
|
33
|
+
async importTemplates(r) {
|
|
34
|
+
const t = o(), e = `${n.inventoryBackendUrl}/${t}/purchase-order-template/import`;
|
|
35
|
+
return a.post(e, r);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
u
|
|
41
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as r } from "vue";
|
|
2
|
-
import { _ as o } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as o } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-lABO5UTH.js";
|
|
3
3
|
var e = /* @__PURE__ */ ((t) => (t.Add = "Add", t.Create = "Create", t.Print = "Print", t.PrintCustom = "PrintCustom", t.PrintPdf = "PrintPdf", t.Export = "Export", t.Update = "Update", t.Details = "Details", t.Edit = "Edit", t.Delete = "Delete", t.Publish = "Publish", t.Duplicate = "Duplicate", t.Email = "Email", t))(e || {});
|
|
4
4
|
const i = {
|
|
5
5
|
Add: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as u } from "./app-
|
|
2
|
-
import { c as l, d as h } from "./date2
|
|
3
|
-
import { F as $ } from "./decimal-
|
|
1
|
+
import { s as u } from "./app-DMflhu6b.js";
|
|
2
|
+
import { c as l, d as h } from "./date2-DIxf2HSS.js";
|
|
3
|
+
import { F as $ } from "./decimal-BTK7NAET.js";
|
|
4
4
|
function F(t, n) {
|
|
5
5
|
return u.convertPrecision({
|
|
6
6
|
value: t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as p } from "./stock-
|
|
2
|
-
import { a as r, s as B, u as d, Z as k, _ as m } from "./app-
|
|
1
|
+
import { u as p } from "./stock-BZMbxbyg.js";
|
|
2
|
+
import { a as r, s as B, u as d, Z as k, _ as m } from "./app-DMflhu6b.js";
|
|
3
3
|
import { computed as f, ref as v } from "vue";
|
|
4
4
|
function y() {
|
|
5
5
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -296,102 +296,6 @@ export declare function useLocationStore(): {
|
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
298
|
}[] | null;
|
|
299
|
-
_locationWithInventory: {
|
|
300
|
-
inventory?: {
|
|
301
|
-
_id: string;
|
|
302
|
-
updatedAt: string;
|
|
303
|
-
} | null | undefined;
|
|
304
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
305
|
-
preparationTime?: {
|
|
306
|
-
unit: "year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond";
|
|
307
|
-
value: number;
|
|
308
|
-
} | null | undefined;
|
|
309
|
-
type: "restaurant" | "warehouse";
|
|
310
|
-
name: string;
|
|
311
|
-
acceptRequest: boolean;
|
|
312
|
-
dbName: string;
|
|
313
|
-
doc: {
|
|
314
|
-
_id: string;
|
|
315
|
-
businessId: string;
|
|
316
|
-
profile: {
|
|
317
|
-
code?: string | null | undefined;
|
|
318
|
-
url?: string | null | undefined;
|
|
319
|
-
description?: string | null | undefined;
|
|
320
|
-
_id?: string | null | undefined;
|
|
321
|
-
legalName?: string | null | undefined;
|
|
322
|
-
sstRegNo?: string | null | undefined;
|
|
323
|
-
discovery?: boolean | null | undefined;
|
|
324
|
-
coverPhoto?: string | null | undefined;
|
|
325
|
-
thumbnailPhoto?: string | null | undefined;
|
|
326
|
-
photos?: string[] | null | undefined;
|
|
327
|
-
operatingHours?: {
|
|
328
|
-
0: {
|
|
329
|
-
hours: {
|
|
330
|
-
end: string;
|
|
331
|
-
start: string;
|
|
332
|
-
}[];
|
|
333
|
-
enable: boolean;
|
|
334
|
-
};
|
|
335
|
-
2: {
|
|
336
|
-
hours: {
|
|
337
|
-
end: string;
|
|
338
|
-
start: string;
|
|
339
|
-
}[];
|
|
340
|
-
enable: boolean;
|
|
341
|
-
};
|
|
342
|
-
1: {
|
|
343
|
-
hours: {
|
|
344
|
-
end: string;
|
|
345
|
-
start: string;
|
|
346
|
-
}[];
|
|
347
|
-
enable: boolean;
|
|
348
|
-
};
|
|
349
|
-
3: {
|
|
350
|
-
hours: {
|
|
351
|
-
end: string;
|
|
352
|
-
start: string;
|
|
353
|
-
}[];
|
|
354
|
-
enable: boolean;
|
|
355
|
-
};
|
|
356
|
-
4: {
|
|
357
|
-
hours: {
|
|
358
|
-
end: string;
|
|
359
|
-
start: string;
|
|
360
|
-
}[];
|
|
361
|
-
enable: boolean;
|
|
362
|
-
};
|
|
363
|
-
5: {
|
|
364
|
-
hours: {
|
|
365
|
-
end: string;
|
|
366
|
-
start: string;
|
|
367
|
-
}[];
|
|
368
|
-
enable: boolean;
|
|
369
|
-
};
|
|
370
|
-
6: {
|
|
371
|
-
hours: {
|
|
372
|
-
end: string;
|
|
373
|
-
start: string;
|
|
374
|
-
}[];
|
|
375
|
-
enable: boolean;
|
|
376
|
-
};
|
|
377
|
-
} | null | undefined;
|
|
378
|
-
tags?: string[] | null | undefined;
|
|
379
|
-
name: string;
|
|
380
|
-
address: {
|
|
381
|
-
coordinates?: number[] | null | undefined;
|
|
382
|
-
line2?: string | null | undefined;
|
|
383
|
-
state: string;
|
|
384
|
-
country: string;
|
|
385
|
-
line1: string;
|
|
386
|
-
city: string;
|
|
387
|
-
postcode: string;
|
|
388
|
-
};
|
|
389
|
-
email: string;
|
|
390
|
-
phoneNo: string;
|
|
391
|
-
regNo: string;
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
}[] | null;
|
|
395
299
|
locationRestaurantFromCore(locationId: string): FdoRestaurant | null;
|
|
396
300
|
readonly state: {
|
|
397
301
|
_currentLocation: {
|
|
@@ -682,102 +586,6 @@ export declare function useLocationStore(): {
|
|
|
682
586
|
};
|
|
683
587
|
};
|
|
684
588
|
}[] | null;
|
|
685
|
-
_locationWithInventory: {
|
|
686
|
-
inventory?: {
|
|
687
|
-
_id: string;
|
|
688
|
-
updatedAt: string;
|
|
689
|
-
} | null | undefined;
|
|
690
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
691
|
-
preparationTime?: {
|
|
692
|
-
unit: "year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond";
|
|
693
|
-
value: number;
|
|
694
|
-
} | null | undefined;
|
|
695
|
-
type: "restaurant" | "warehouse";
|
|
696
|
-
name: string;
|
|
697
|
-
acceptRequest: boolean;
|
|
698
|
-
dbName: string;
|
|
699
|
-
doc: {
|
|
700
|
-
_id: string;
|
|
701
|
-
businessId: string;
|
|
702
|
-
profile: {
|
|
703
|
-
code?: string | null | undefined;
|
|
704
|
-
url?: string | null | undefined;
|
|
705
|
-
description?: string | null | undefined;
|
|
706
|
-
_id?: string | null | undefined;
|
|
707
|
-
legalName?: string | null | undefined;
|
|
708
|
-
sstRegNo?: string | null | undefined;
|
|
709
|
-
discovery?: boolean | null | undefined;
|
|
710
|
-
coverPhoto?: string | null | undefined;
|
|
711
|
-
thumbnailPhoto?: string | null | undefined;
|
|
712
|
-
photos?: string[] | null | undefined;
|
|
713
|
-
operatingHours?: {
|
|
714
|
-
0: {
|
|
715
|
-
hours: {
|
|
716
|
-
end: string;
|
|
717
|
-
start: string;
|
|
718
|
-
}[];
|
|
719
|
-
enable: boolean;
|
|
720
|
-
};
|
|
721
|
-
2: {
|
|
722
|
-
hours: {
|
|
723
|
-
end: string;
|
|
724
|
-
start: string;
|
|
725
|
-
}[];
|
|
726
|
-
enable: boolean;
|
|
727
|
-
};
|
|
728
|
-
1: {
|
|
729
|
-
hours: {
|
|
730
|
-
end: string;
|
|
731
|
-
start: string;
|
|
732
|
-
}[];
|
|
733
|
-
enable: boolean;
|
|
734
|
-
};
|
|
735
|
-
3: {
|
|
736
|
-
hours: {
|
|
737
|
-
end: string;
|
|
738
|
-
start: string;
|
|
739
|
-
}[];
|
|
740
|
-
enable: boolean;
|
|
741
|
-
};
|
|
742
|
-
4: {
|
|
743
|
-
hours: {
|
|
744
|
-
end: string;
|
|
745
|
-
start: string;
|
|
746
|
-
}[];
|
|
747
|
-
enable: boolean;
|
|
748
|
-
};
|
|
749
|
-
5: {
|
|
750
|
-
hours: {
|
|
751
|
-
end: string;
|
|
752
|
-
start: string;
|
|
753
|
-
}[];
|
|
754
|
-
enable: boolean;
|
|
755
|
-
};
|
|
756
|
-
6: {
|
|
757
|
-
hours: {
|
|
758
|
-
end: string;
|
|
759
|
-
start: string;
|
|
760
|
-
}[];
|
|
761
|
-
enable: boolean;
|
|
762
|
-
};
|
|
763
|
-
} | null | undefined;
|
|
764
|
-
tags?: string[] | null | undefined;
|
|
765
|
-
name: string;
|
|
766
|
-
address: {
|
|
767
|
-
coordinates?: number[] | null | undefined;
|
|
768
|
-
line2?: string | null | undefined;
|
|
769
|
-
state: string;
|
|
770
|
-
country: string;
|
|
771
|
-
line1: string;
|
|
772
|
-
city: string;
|
|
773
|
-
postcode: string;
|
|
774
|
-
};
|
|
775
|
-
email: string;
|
|
776
|
-
phoneNo: string;
|
|
777
|
-
regNo: string;
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
|
-
}[] | null;
|
|
781
589
|
};
|
|
782
590
|
readonly locationById: Record<string, {
|
|
783
591
|
inventory?: {
|
|
@@ -1166,102 +974,6 @@ export declare function useLocationStore(): {
|
|
|
1166
974
|
};
|
|
1167
975
|
};
|
|
1168
976
|
}[];
|
|
1169
|
-
readonly locationsWithInventory: {
|
|
1170
|
-
inventory?: {
|
|
1171
|
-
_id: string;
|
|
1172
|
-
updatedAt: string;
|
|
1173
|
-
} | null | undefined;
|
|
1174
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
1175
|
-
preparationTime?: {
|
|
1176
|
-
unit: "year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond";
|
|
1177
|
-
value: number;
|
|
1178
|
-
} | null | undefined;
|
|
1179
|
-
type: "restaurant" | "warehouse";
|
|
1180
|
-
name: string;
|
|
1181
|
-
acceptRequest: boolean;
|
|
1182
|
-
dbName: string;
|
|
1183
|
-
doc: {
|
|
1184
|
-
_id: string;
|
|
1185
|
-
businessId: string;
|
|
1186
|
-
profile: {
|
|
1187
|
-
code?: string | null | undefined;
|
|
1188
|
-
url?: string | null | undefined;
|
|
1189
|
-
description?: string | null | undefined;
|
|
1190
|
-
_id?: string | null | undefined;
|
|
1191
|
-
legalName?: string | null | undefined;
|
|
1192
|
-
sstRegNo?: string | null | undefined;
|
|
1193
|
-
discovery?: boolean | null | undefined;
|
|
1194
|
-
coverPhoto?: string | null | undefined;
|
|
1195
|
-
thumbnailPhoto?: string | null | undefined;
|
|
1196
|
-
photos?: string[] | null | undefined;
|
|
1197
|
-
operatingHours?: {
|
|
1198
|
-
0: {
|
|
1199
|
-
hours: {
|
|
1200
|
-
end: string;
|
|
1201
|
-
start: string;
|
|
1202
|
-
}[];
|
|
1203
|
-
enable: boolean;
|
|
1204
|
-
};
|
|
1205
|
-
2: {
|
|
1206
|
-
hours: {
|
|
1207
|
-
end: string;
|
|
1208
|
-
start: string;
|
|
1209
|
-
}[];
|
|
1210
|
-
enable: boolean;
|
|
1211
|
-
};
|
|
1212
|
-
1: {
|
|
1213
|
-
hours: {
|
|
1214
|
-
end: string;
|
|
1215
|
-
start: string;
|
|
1216
|
-
}[];
|
|
1217
|
-
enable: boolean;
|
|
1218
|
-
};
|
|
1219
|
-
3: {
|
|
1220
|
-
hours: {
|
|
1221
|
-
end: string;
|
|
1222
|
-
start: string;
|
|
1223
|
-
}[];
|
|
1224
|
-
enable: boolean;
|
|
1225
|
-
};
|
|
1226
|
-
4: {
|
|
1227
|
-
hours: {
|
|
1228
|
-
end: string;
|
|
1229
|
-
start: string;
|
|
1230
|
-
}[];
|
|
1231
|
-
enable: boolean;
|
|
1232
|
-
};
|
|
1233
|
-
5: {
|
|
1234
|
-
hours: {
|
|
1235
|
-
end: string;
|
|
1236
|
-
start: string;
|
|
1237
|
-
}[];
|
|
1238
|
-
enable: boolean;
|
|
1239
|
-
};
|
|
1240
|
-
6: {
|
|
1241
|
-
hours: {
|
|
1242
|
-
end: string;
|
|
1243
|
-
start: string;
|
|
1244
|
-
}[];
|
|
1245
|
-
enable: boolean;
|
|
1246
|
-
};
|
|
1247
|
-
} | null | undefined;
|
|
1248
|
-
tags?: string[] | null | undefined;
|
|
1249
|
-
name: string;
|
|
1250
|
-
address: {
|
|
1251
|
-
coordinates?: number[] | null | undefined;
|
|
1252
|
-
line2?: string | null | undefined;
|
|
1253
|
-
state: string;
|
|
1254
|
-
country: string;
|
|
1255
|
-
line1: string;
|
|
1256
|
-
city: string;
|
|
1257
|
-
postcode: string;
|
|
1258
|
-
};
|
|
1259
|
-
email: string;
|
|
1260
|
-
phoneNo: string;
|
|
1261
|
-
regNo: string;
|
|
1262
|
-
};
|
|
1263
|
-
};
|
|
1264
|
-
}[];
|
|
1265
977
|
readonly locationByDbName: {
|
|
1266
978
|
[key: string]: {
|
|
1267
979
|
inventory?: {
|
|
@@ -1364,7 +1076,6 @@ export declare function useLocationStore(): {
|
|
|
1364
1076
|
watchLocation(callback: (location?: InventoryLocation | null) => Promise<void>, persistentKey?: string): void;
|
|
1365
1077
|
unwatchLocation(persistentKey: string): void;
|
|
1366
1078
|
readLocations(): Promise<void>;
|
|
1367
|
-
readLocationsWithInventory(): Promise<void>;
|
|
1368
1079
|
setLocations(resp: InventoryLocation[]): void;
|
|
1369
1080
|
selectLocation(location?: InventoryLocation, skipStorage?: boolean): void;
|
|
1370
1081
|
init(): Promise<void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type LocationVersion = {
|
|
2
|
+
_id: string;
|
|
3
|
+
updatedAt?: string;
|
|
4
|
+
} | null;
|
|
5
|
+
export type VersionPageRequest = {
|
|
6
|
+
offset: number;
|
|
7
|
+
limit: number;
|
|
8
|
+
startkey?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function usePublishVersionsStore(): {
|
|
11
|
+
readonly versions: Record<string, LocationVersion>;
|
|
12
|
+
readonly loadingAll: boolean;
|
|
13
|
+
readonly loadedAt: number | null;
|
|
14
|
+
/** Locations whose version is loaded and differs from `latestVersion`; no doc (null) counts. */
|
|
15
|
+
outdatedCount(latestVersion?: string | null): number;
|
|
16
|
+
forget(dbNames: string[]): void;
|
|
17
|
+
loadAll(): Promise<void>;
|
|
18
|
+
loadPage(request: VersionPageRequest): Promise<void>;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as b, u, m as v, n as w, o as $ } from "./app-
|
|
2
|
-
import { u as S } from "./feature-
|
|
1
|
+
import { d as b, u, m as v, n as w, o as $ } from "./app-DMflhu6b.js";
|
|
2
|
+
import { u as S } from "./feature-h3MFKUcz.js";
|
|
3
3
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
4
4
|
import { defineStore as f } from "pinia";
|
|
5
5
|
import { ref as l, computed as d } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as d } from "vue";
|
|
2
|
-
import { d as w, j as g } from "./app-
|
|
2
|
+
import { d as w, j as g } from "./app-DMflhu6b.js";
|
|
3
3
|
import { useCoreStore as h } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as y } from "@feedmepos/ui-library";
|
|
5
5
|
const p = w((s, r) => {
|