@feedmepos/mf-inventory-portal 1.8.0-dev.1 → 1.8.0-dev.3
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-DRXADP0k.js +1498 -0
- package/dist/{ApprovalView-C8_ax05b.js → ApprovalView-hV1msz5Y.js} +9 -9
- package/dist/{BindingsDialog-t0ZY9eh5.js → BindingsDialog-BX1Lopf0.js} +2 -2
- package/dist/{BindingsPicker-C0Qblmml.js → BindingsPicker-BNKW8-XY.js} +2 -2
- package/dist/{BindingsTable-CsqUBbRA.js → BindingsTable-DiLDsL83.js} +4 -4
- package/dist/{BulkReceiveRequestView-DAG-TMox.js → BulkReceiveRequestView-oQh6kFLc.js} +20 -20
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BaMcGU-x.js +151 -0
- package/dist/{ClosingDraftView-CdKp4Ny6.js → ClosingDraftView-sgLoaSf4.js} +20 -20
- package/dist/{ClosingHistoryView-Blyq9-BS.js → ClosingHistoryView-BnE9HrzA.js} +5 -5
- package/dist/{ClosingTemplateView-C326DL4q.js → ClosingTemplateView-BD3Pa11r.js} +302 -291
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DlbyxkMQ.js} +1 -1
- package/dist/{DefaultView-CsIMmQAY.js → DefaultView-CuzvVkfE.js} +5 -5
- package/dist/{DeliveryOrderPrintPreview-eTrMvJzA.js → DeliveryOrderPrintPreview-w-1aAOY1.js} +2 -2
- package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-Bp8bjDU1.js +58 -0
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js → EmailDialog.vue_vue_type_script_setup_true_lang-CxD12Qct.js} +1668 -1671
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CMoQKl_a.js +308 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BqCh_vTP.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAXnmdUy.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NhOdW33O.js +120 -0
- package/dist/{FmMultiselectDialog-BAw-gp5K.js → FmMultiselectDialog-BqZgHP8s.js} +1 -1
- package/dist/{FmMultiselectDialog-CYUxtxnS.js → FmMultiselectDialog-CULwA_hi.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CI3Y9kDl.js} +6 -6
- package/dist/{ImportView-BmotFC-3.js → ImportView-DqQG673_.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DfvNUu80.js} +1 -1
- package/dist/IngredientGroupView-CyngKxPo.js +1000 -0
- package/dist/{IngredientsView-CZ6E7cXf.js → IngredientsView-pzpP6oXT.js} +309 -296
- package/dist/{IntegrationExplorerView-B15ND4Fg.js → IntegrationExplorerView-C5aAhB6e.js} +4 -4
- package/dist/{IntegrationView-hkNhsqx2.js → IntegrationView-Bqun7nX0.js} +2403 -2408
- package/dist/{InventoryBindingForm-SfuUF0_O.js → InventoryBindingForm-r_Ua1C4a.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYDuu4kU.js} +5 -5
- package/dist/{InventoryBindingSummary-DUcukkyJ.js → InventoryBindingSummary-BQuZLohR.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7r-QcJdU.js} +1 -1
- package/dist/{ProductionRunDetailView-BwgRX-14.js → ProductionRunDetailView-95fu_CfH.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CdOca1tV.js} +7 -7
- package/dist/{ProductionRunView-CZU7LY9-.js → ProductionRunView-DIjor_Ix.js} +3 -3
- package/dist/{PublishView-DS2FZ66p.js → PublishView-DYObyHQq.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CZa0MVAs.js → PurchaseOrderPrintPreview-C0jCmI9L.js} +2 -2
- package/dist/{ReceiveRequestView-Bk5b3nVB.js → ReceiveRequestView-i7ibPfIE.js} +14 -14
- package/dist/{RecipeView-DvI6X-uN.js → RecipeView-C5VO7yr3.js} +18 -18
- package/dist/SettingsView-CdBloj9k.js +983 -0
- package/dist/{StockView-Z9wGihT7.js → StockView-g_6eJ62R.js} +327 -322
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C1rKc7MA.js} +1 -1
- package/dist/{SupplierView-D8q6siZW.js → SupplierView-DkYp_Frj.js} +451 -447
- package/dist/{SurchargeView-Db_5YFoR.js → SurchargeView-CfkV4Y3y.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-2MtN1p5t.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BtoP4XgE.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYMjKXq4.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js → TransferDetails.vue_vue_type_script_setup_true_lang-D0zNr_vQ.js} +21 -21
- package/dist/{TransferTemplateView-DtsJzmUr.js → TransferTemplateView-Ne2gYUSn.js} +21 -21
- package/dist/{UnitCostHistoryView-BqDiQ4IE.js → UnitCostHistoryView-Db0_otOb.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BzO1lq7j.js} +4 -4
- package/dist/{UnitView-CM695-VI.js → UnitView-CiCeQ63i.js} +8 -8
- package/dist/{WarehouseView-BdidU4p6.js → WarehouseView-BcuJSOMF.js} +193 -189
- package/dist/{WastageTemplateView-DdhwdXT6.js → WastageTemplateView-CPQmtOKQ.js} +15 -15
- package/dist/api/feature-flags.d.ts +10 -0
- package/dist/api/inventory.d.ts +9 -9
- package/dist/api/license.d.ts +9 -0
- package/dist/{app-Cb5s4jMu.js → app-DqJp3dcI.js} +146 -108
- package/dist/app.d.ts +36 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-DnqnpXxn.js → closing-template-BNlgZviN.js} +1 -1
- package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
- package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +29 -0
- package/dist/components/{PreviewBadge.vue.d.ts → FeatureCapabilityGate.vue.d.ts} +10 -7
- package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
- package/dist/components/{PremiumBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
- package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
- package/dist/composable/useNavigationMenu.d.ts +2 -1
- package/dist/{inventory-core-dart.default-DDRxXXnt.js → core-Js7d-3Pv.js} +121 -118
- package/dist/{date2-BPhD_1Of.js → date2-Ci7521dn.js} +1 -1
- package/dist/{dayjs.min-Zbd6-uVD.js → dayjs.min-Cyp32v4J.js} +1 -1
- package/dist/{decimal-Df6a50Ld.js → decimal-BGdm5R3A.js} +2 -2
- package/dist/{defineDeepModel-Brbsikbi.js → defineDeepModel-B2cJ-rtd.js} +1 -1
- package/dist/{duplicate-template-B9kuShaF.js → duplicate-template-By5WeKZ0.js} +1 -1
- package/dist/feature-fG7d73oi.js +371 -0
- package/dist/feature-flags/core.d.ts +27 -0
- package/dist/feature-flags/core.spec.d.ts +1 -0
- package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
- package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
- package/dist/feature-flags/plan-tier.d.ts +6 -0
- package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
- package/dist/feature-flags/portal-feature-catalog.d.ts +24 -0
- package/dist/feature-flags/vue.d.ts +14 -0
- package/dist/{format-time-from-id-DmUjUcVj.js → format-time-from-id-Q8C2P96H.js} +1 -1
- package/dist/{format-unit-display-CsQA0SQd.js → format-unit-display-CICrmm8r.js} +13 -13
- package/dist/id-to-date-DeN5x0LR.js +67 -0
- package/dist/{import-export.helper-DCQ6oX9s.js → import-export.helper-BOTQWxr6.js} +28 -28
- package/dist/{index-C-mazZwS.js → index-BbbqCCfp.js} +3 -3
- package/dist/{index-BXaIMGnI.js → index-Cxm3Sgfv.js} +1 -1
- package/dist/index-Dqf27vLH.js +841 -0
- package/dist/{index-UmM6gHJ1.js → index-tCYhLCKP.js} +1 -1
- package/dist/{lz-string-Bibw5D_6.js → lz-string-Dy4Pg8mh.js} +1 -1
- package/dist/{netsuite-Bev0OtQT.js → netsuite-BaJjkDM8.js} +2 -2
- package/dist/{number-y_W4pn_d.js → number-CB36d2PQ.js} +3 -3
- package/dist/{predefined-templates-BHvUnTk_.js → predefined-templates-DLm93Bpx.js} +1 -1
- package/dist/{purchase-order-template-DgOKEzhS.js → purchase-order-template-CDhn9ZIF.js} +1 -1
- package/dist/{recalculationUtils-Dv__DzZh.js → recalculationUtils-Cqvefakh.js} +1 -1
- package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-NTfVmGY8.js} +2 -2
- package/dist/{rules-CZTBvenw.js → rules-C8dfM84-.js} +2 -2
- package/dist/{stock-XINW8JOM.js → stock-BGB0Siue.js} +3 -3
- package/dist/{stock-CxCRZo_D.js → stock-Qu5IiN2_.js} +1 -1
- package/dist/stores/feature.d.ts +12 -0
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/location.d.ts +42 -42
- package/dist/stores/supplier.d.ts +48 -48
- package/dist/stores/warehouse.d.ts +1 -1
- package/dist/{supplier-CkZdeMcl.js → supplier-CZdNOSMN.js} +17 -17
- package/dist/{surcharge-FRSFqjGl.js → surcharge-Cm40oJvU.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Cm1styDr.js → uom-rules-L-IW4Nwk.js} +1 -1
- package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-B2TDVJM6.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DVIJO8Cl.js → use-inventory-binding-dialog-BJ00hl5f.js} +2 -2
- package/dist/{use-template-enabled-locations-CIZqw-Z8.js → use-template-enabled-locations-DYAPMvo9.js} +2 -2
- package/dist/{use-transfer-locations-CM5vNttA.js → use-transfer-locations-w-9tymYS.js} +2 -2
- package/dist/{useHrmPermission-CslLuBoP.js → useHrmPermission-BFCIo5sA.js} +1 -1
- package/dist/useNavigationMenu-BPHAH5sJ.js +352 -0
- package/dist/{useSseClient-CCV4mPzD.js → useSseClient-CWjRacRs.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
- package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
- package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +5 -5
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +39 -39
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +35 -35
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +34 -34
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
- package/dist/views/settings/FeatureFlagView.vue.d.ts +2 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
- package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -2
- package/dist/{vue-i18n-C5j4EQhi.js → vue-i18n-S4YQ9w6a.js} +295 -295
- package/dist/{xlsx.util-B50OvX4z.js → xlsx.util-CP8_VajN.js} +2 -2
- package/package.json +5 -5
- package/dist/App-BXgpGzGR.js +0 -1476
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +0 -243
- package/dist/IngredientGroupView-qrR9ksEn.js +0 -985
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js +0 -93
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
- package/dist/SettingsView-sThYErMz.js +0 -698
- package/dist/feature-Ckn5ra3z.js +0 -1136
- package/dist/useNavigationMenu-CSinmNCY.js +0 -172
- /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
|
@@ -8,9 +8,9 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
8
8
|
init(): Promise<void>;
|
|
9
9
|
suppliers: import("vue").ComputedRef<{
|
|
10
10
|
_rev?: string | null | undefined;
|
|
11
|
+
email?: string | null | undefined;
|
|
11
12
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
12
13
|
contactName?: string | null | undefined;
|
|
13
|
-
email?: string | null | undefined;
|
|
14
14
|
phoneNumber?: string | null | undefined;
|
|
15
15
|
supplyItems?: {
|
|
16
16
|
skuId: string;
|
|
@@ -37,7 +37,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
37
37
|
} | null | undefined;
|
|
38
38
|
_id: string;
|
|
39
39
|
name: string;
|
|
40
|
-
registrationNumber: string;
|
|
41
40
|
address: {
|
|
42
41
|
line2?: string | null | undefined;
|
|
43
42
|
line1: string;
|
|
@@ -46,12 +45,13 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
46
45
|
postcode: string;
|
|
47
46
|
country: string;
|
|
48
47
|
};
|
|
48
|
+
registrationNumber: string;
|
|
49
49
|
}[]>;
|
|
50
50
|
locationSuppliers: import("vue").Ref<{
|
|
51
51
|
_rev?: string | null | undefined;
|
|
52
|
+
email?: string | null | undefined;
|
|
52
53
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
53
54
|
contactName?: string | null | undefined;
|
|
54
|
-
email?: string | null | undefined;
|
|
55
55
|
phoneNumber?: string | null | undefined;
|
|
56
56
|
supplyItems?: {
|
|
57
57
|
skuId: string;
|
|
@@ -78,7 +78,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
78
78
|
} | null | undefined;
|
|
79
79
|
_id: string;
|
|
80
80
|
name: string;
|
|
81
|
-
registrationNumber: string;
|
|
82
81
|
address: {
|
|
83
82
|
line2?: string | null | undefined;
|
|
84
83
|
line1: string;
|
|
@@ -87,11 +86,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
87
86
|
postcode: string;
|
|
88
87
|
country: string;
|
|
89
88
|
};
|
|
89
|
+
registrationNumber: string;
|
|
90
90
|
}[], {
|
|
91
91
|
_rev?: string | null | undefined;
|
|
92
|
+
email?: string | null | undefined;
|
|
92
93
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
93
94
|
contactName?: string | null | undefined;
|
|
94
|
-
email?: string | null | undefined;
|
|
95
95
|
phoneNumber?: string | null | undefined;
|
|
96
96
|
supplyItems?: {
|
|
97
97
|
skuId: string;
|
|
@@ -118,7 +118,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
118
118
|
} | null | undefined;
|
|
119
119
|
_id: string;
|
|
120
120
|
name: string;
|
|
121
|
-
registrationNumber: string;
|
|
122
121
|
address: {
|
|
123
122
|
line2?: string | null | undefined;
|
|
124
123
|
line1: string;
|
|
@@ -127,11 +126,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
127
126
|
postcode: string;
|
|
128
127
|
country: string;
|
|
129
128
|
};
|
|
129
|
+
registrationNumber: string;
|
|
130
130
|
}[] | {
|
|
131
131
|
_rev?: string | null | undefined;
|
|
132
|
+
email?: string | null | undefined;
|
|
132
133
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
133
134
|
contactName?: string | null | undefined;
|
|
134
|
-
email?: string | null | undefined;
|
|
135
135
|
phoneNumber?: string | null | undefined;
|
|
136
136
|
supplyItems?: {
|
|
137
137
|
skuId: string;
|
|
@@ -158,7 +158,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
158
158
|
} | null | undefined;
|
|
159
159
|
_id: string;
|
|
160
160
|
name: string;
|
|
161
|
-
registrationNumber: string;
|
|
162
161
|
address: {
|
|
163
162
|
line2?: string | null | undefined;
|
|
164
163
|
line1: string;
|
|
@@ -167,12 +166,13 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
167
166
|
postcode: string;
|
|
168
167
|
country: string;
|
|
169
168
|
};
|
|
169
|
+
registrationNumber: string;
|
|
170
170
|
}[]>;
|
|
171
171
|
businessSuppliers: import("vue").Ref<{
|
|
172
172
|
_rev?: string | null | undefined;
|
|
173
|
+
email?: string | null | undefined;
|
|
173
174
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
174
175
|
contactName?: string | null | undefined;
|
|
175
|
-
email?: string | null | undefined;
|
|
176
176
|
phoneNumber?: string | null | undefined;
|
|
177
177
|
supplyItems?: {
|
|
178
178
|
skuId: string;
|
|
@@ -199,7 +199,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
199
199
|
} | null | undefined;
|
|
200
200
|
_id: string;
|
|
201
201
|
name: string;
|
|
202
|
-
registrationNumber: string;
|
|
203
202
|
address: {
|
|
204
203
|
line2?: string | null | undefined;
|
|
205
204
|
line1: string;
|
|
@@ -208,11 +207,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
208
207
|
postcode: string;
|
|
209
208
|
country: string;
|
|
210
209
|
};
|
|
210
|
+
registrationNumber: string;
|
|
211
211
|
}[], {
|
|
212
212
|
_rev?: string | null | undefined;
|
|
213
|
+
email?: string | null | undefined;
|
|
213
214
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
214
215
|
contactName?: string | null | undefined;
|
|
215
|
-
email?: string | null | undefined;
|
|
216
216
|
phoneNumber?: string | null | undefined;
|
|
217
217
|
supplyItems?: {
|
|
218
218
|
skuId: string;
|
|
@@ -239,7 +239,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
239
239
|
} | null | undefined;
|
|
240
240
|
_id: string;
|
|
241
241
|
name: string;
|
|
242
|
-
registrationNumber: string;
|
|
243
242
|
address: {
|
|
244
243
|
line2?: string | null | undefined;
|
|
245
244
|
line1: string;
|
|
@@ -248,11 +247,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
248
247
|
postcode: string;
|
|
249
248
|
country: string;
|
|
250
249
|
};
|
|
250
|
+
registrationNumber: string;
|
|
251
251
|
}[] | {
|
|
252
252
|
_rev?: string | null | undefined;
|
|
253
|
+
email?: string | null | undefined;
|
|
253
254
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
254
255
|
contactName?: string | null | undefined;
|
|
255
|
-
email?: string | null | undefined;
|
|
256
256
|
phoneNumber?: string | null | undefined;
|
|
257
257
|
supplyItems?: {
|
|
258
258
|
skuId: string;
|
|
@@ -279,7 +279,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
279
279
|
} | null | undefined;
|
|
280
280
|
_id: string;
|
|
281
281
|
name: string;
|
|
282
|
-
registrationNumber: string;
|
|
283
282
|
address: {
|
|
284
283
|
line2?: string | null | undefined;
|
|
285
284
|
line1: string;
|
|
@@ -288,13 +287,14 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
288
287
|
postcode: string;
|
|
289
288
|
country: string;
|
|
290
289
|
};
|
|
290
|
+
registrationNumber: string;
|
|
291
291
|
}[]>;
|
|
292
292
|
supplierById: import("vue").ComputedRef<{
|
|
293
293
|
[key: string]: {
|
|
294
294
|
_rev?: string | null | undefined;
|
|
295
|
+
email?: string | null | undefined;
|
|
295
296
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
296
297
|
contactName?: string | null | undefined;
|
|
297
|
-
email?: string | null | undefined;
|
|
298
298
|
phoneNumber?: string | null | undefined;
|
|
299
299
|
supplyItems?: {
|
|
300
300
|
skuId: string;
|
|
@@ -321,7 +321,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
321
321
|
} | null | undefined;
|
|
322
322
|
_id: string;
|
|
323
323
|
name: string;
|
|
324
|
-
registrationNumber: string;
|
|
325
324
|
address: {
|
|
326
325
|
line2?: string | null | undefined;
|
|
327
326
|
line1: string;
|
|
@@ -330,6 +329,7 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
330
329
|
postcode: string;
|
|
331
330
|
country: string;
|
|
332
331
|
};
|
|
332
|
+
registrationNumber: string;
|
|
333
333
|
};
|
|
334
334
|
}>;
|
|
335
335
|
}, "locationSuppliers" | "businessSuppliers">>, Pick<{
|
|
@@ -341,9 +341,9 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
341
341
|
init(): Promise<void>;
|
|
342
342
|
suppliers: import("vue").ComputedRef<{
|
|
343
343
|
_rev?: string | null | undefined;
|
|
344
|
+
email?: string | null | undefined;
|
|
344
345
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
345
346
|
contactName?: string | null | undefined;
|
|
346
|
-
email?: string | null | undefined;
|
|
347
347
|
phoneNumber?: string | null | undefined;
|
|
348
348
|
supplyItems?: {
|
|
349
349
|
skuId: string;
|
|
@@ -370,7 +370,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
370
370
|
} | null | undefined;
|
|
371
371
|
_id: string;
|
|
372
372
|
name: string;
|
|
373
|
-
registrationNumber: string;
|
|
374
373
|
address: {
|
|
375
374
|
line2?: string | null | undefined;
|
|
376
375
|
line1: string;
|
|
@@ -379,12 +378,13 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
379
378
|
postcode: string;
|
|
380
379
|
country: string;
|
|
381
380
|
};
|
|
381
|
+
registrationNumber: string;
|
|
382
382
|
}[]>;
|
|
383
383
|
locationSuppliers: import("vue").Ref<{
|
|
384
384
|
_rev?: string | null | undefined;
|
|
385
|
+
email?: string | null | undefined;
|
|
385
386
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
386
387
|
contactName?: string | null | undefined;
|
|
387
|
-
email?: string | null | undefined;
|
|
388
388
|
phoneNumber?: string | null | undefined;
|
|
389
389
|
supplyItems?: {
|
|
390
390
|
skuId: string;
|
|
@@ -411,7 +411,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
411
411
|
} | null | undefined;
|
|
412
412
|
_id: string;
|
|
413
413
|
name: string;
|
|
414
|
-
registrationNumber: string;
|
|
415
414
|
address: {
|
|
416
415
|
line2?: string | null | undefined;
|
|
417
416
|
line1: string;
|
|
@@ -420,11 +419,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
420
419
|
postcode: string;
|
|
421
420
|
country: string;
|
|
422
421
|
};
|
|
422
|
+
registrationNumber: string;
|
|
423
423
|
}[], {
|
|
424
424
|
_rev?: string | null | undefined;
|
|
425
|
+
email?: string | null | undefined;
|
|
425
426
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
426
427
|
contactName?: string | null | undefined;
|
|
427
|
-
email?: string | null | undefined;
|
|
428
428
|
phoneNumber?: string | null | undefined;
|
|
429
429
|
supplyItems?: {
|
|
430
430
|
skuId: string;
|
|
@@ -451,7 +451,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
451
451
|
} | null | undefined;
|
|
452
452
|
_id: string;
|
|
453
453
|
name: string;
|
|
454
|
-
registrationNumber: string;
|
|
455
454
|
address: {
|
|
456
455
|
line2?: string | null | undefined;
|
|
457
456
|
line1: string;
|
|
@@ -460,11 +459,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
460
459
|
postcode: string;
|
|
461
460
|
country: string;
|
|
462
461
|
};
|
|
462
|
+
registrationNumber: string;
|
|
463
463
|
}[] | {
|
|
464
464
|
_rev?: string | null | undefined;
|
|
465
|
+
email?: string | null | undefined;
|
|
465
466
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
466
467
|
contactName?: string | null | undefined;
|
|
467
|
-
email?: string | null | undefined;
|
|
468
468
|
phoneNumber?: string | null | undefined;
|
|
469
469
|
supplyItems?: {
|
|
470
470
|
skuId: string;
|
|
@@ -491,7 +491,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
491
491
|
} | null | undefined;
|
|
492
492
|
_id: string;
|
|
493
493
|
name: string;
|
|
494
|
-
registrationNumber: string;
|
|
495
494
|
address: {
|
|
496
495
|
line2?: string | null | undefined;
|
|
497
496
|
line1: string;
|
|
@@ -500,12 +499,13 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
500
499
|
postcode: string;
|
|
501
500
|
country: string;
|
|
502
501
|
};
|
|
502
|
+
registrationNumber: string;
|
|
503
503
|
}[]>;
|
|
504
504
|
businessSuppliers: import("vue").Ref<{
|
|
505
505
|
_rev?: string | null | undefined;
|
|
506
|
+
email?: string | null | undefined;
|
|
506
507
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
507
508
|
contactName?: string | null | undefined;
|
|
508
|
-
email?: string | null | undefined;
|
|
509
509
|
phoneNumber?: string | null | undefined;
|
|
510
510
|
supplyItems?: {
|
|
511
511
|
skuId: string;
|
|
@@ -532,7 +532,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
532
532
|
} | null | undefined;
|
|
533
533
|
_id: string;
|
|
534
534
|
name: string;
|
|
535
|
-
registrationNumber: string;
|
|
536
535
|
address: {
|
|
537
536
|
line2?: string | null | undefined;
|
|
538
537
|
line1: string;
|
|
@@ -541,11 +540,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
541
540
|
postcode: string;
|
|
542
541
|
country: string;
|
|
543
542
|
};
|
|
543
|
+
registrationNumber: string;
|
|
544
544
|
}[], {
|
|
545
545
|
_rev?: string | null | undefined;
|
|
546
|
+
email?: string | null | undefined;
|
|
546
547
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
547
548
|
contactName?: string | null | undefined;
|
|
548
|
-
email?: string | null | undefined;
|
|
549
549
|
phoneNumber?: string | null | undefined;
|
|
550
550
|
supplyItems?: {
|
|
551
551
|
skuId: string;
|
|
@@ -572,7 +572,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
572
572
|
} | null | undefined;
|
|
573
573
|
_id: string;
|
|
574
574
|
name: string;
|
|
575
|
-
registrationNumber: string;
|
|
576
575
|
address: {
|
|
577
576
|
line2?: string | null | undefined;
|
|
578
577
|
line1: string;
|
|
@@ -581,11 +580,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
581
580
|
postcode: string;
|
|
582
581
|
country: string;
|
|
583
582
|
};
|
|
583
|
+
registrationNumber: string;
|
|
584
584
|
}[] | {
|
|
585
585
|
_rev?: string | null | undefined;
|
|
586
|
+
email?: string | null | undefined;
|
|
586
587
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
587
588
|
contactName?: string | null | undefined;
|
|
588
|
-
email?: string | null | undefined;
|
|
589
589
|
phoneNumber?: string | null | undefined;
|
|
590
590
|
supplyItems?: {
|
|
591
591
|
skuId: string;
|
|
@@ -612,7 +612,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
612
612
|
} | null | undefined;
|
|
613
613
|
_id: string;
|
|
614
614
|
name: string;
|
|
615
|
-
registrationNumber: string;
|
|
616
615
|
address: {
|
|
617
616
|
line2?: string | null | undefined;
|
|
618
617
|
line1: string;
|
|
@@ -621,13 +620,14 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
621
620
|
postcode: string;
|
|
622
621
|
country: string;
|
|
623
622
|
};
|
|
623
|
+
registrationNumber: string;
|
|
624
624
|
}[]>;
|
|
625
625
|
supplierById: import("vue").ComputedRef<{
|
|
626
626
|
[key: string]: {
|
|
627
627
|
_rev?: string | null | undefined;
|
|
628
|
+
email?: string | null | undefined;
|
|
628
629
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
629
630
|
contactName?: string | null | undefined;
|
|
630
|
-
email?: string | null | undefined;
|
|
631
631
|
phoneNumber?: string | null | undefined;
|
|
632
632
|
supplyItems?: {
|
|
633
633
|
skuId: string;
|
|
@@ -654,7 +654,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
654
654
|
} | null | undefined;
|
|
655
655
|
_id: string;
|
|
656
656
|
name: string;
|
|
657
|
-
registrationNumber: string;
|
|
658
657
|
address: {
|
|
659
658
|
line2?: string | null | undefined;
|
|
660
659
|
line1: string;
|
|
@@ -663,6 +662,7 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
663
662
|
postcode: string;
|
|
664
663
|
country: string;
|
|
665
664
|
};
|
|
665
|
+
registrationNumber: string;
|
|
666
666
|
};
|
|
667
667
|
}>;
|
|
668
668
|
}, "suppliers" | "supplierById">, Pick<{
|
|
@@ -674,9 +674,9 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
674
674
|
init(): Promise<void>;
|
|
675
675
|
suppliers: import("vue").ComputedRef<{
|
|
676
676
|
_rev?: string | null | undefined;
|
|
677
|
+
email?: string | null | undefined;
|
|
677
678
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
678
679
|
contactName?: string | null | undefined;
|
|
679
|
-
email?: string | null | undefined;
|
|
680
680
|
phoneNumber?: string | null | undefined;
|
|
681
681
|
supplyItems?: {
|
|
682
682
|
skuId: string;
|
|
@@ -703,7 +703,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
703
703
|
} | null | undefined;
|
|
704
704
|
_id: string;
|
|
705
705
|
name: string;
|
|
706
|
-
registrationNumber: string;
|
|
707
706
|
address: {
|
|
708
707
|
line2?: string | null | undefined;
|
|
709
708
|
line1: string;
|
|
@@ -712,12 +711,13 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
712
711
|
postcode: string;
|
|
713
712
|
country: string;
|
|
714
713
|
};
|
|
714
|
+
registrationNumber: string;
|
|
715
715
|
}[]>;
|
|
716
716
|
locationSuppliers: import("vue").Ref<{
|
|
717
717
|
_rev?: string | null | undefined;
|
|
718
|
+
email?: string | null | undefined;
|
|
718
719
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
719
720
|
contactName?: string | null | undefined;
|
|
720
|
-
email?: string | null | undefined;
|
|
721
721
|
phoneNumber?: string | null | undefined;
|
|
722
722
|
supplyItems?: {
|
|
723
723
|
skuId: string;
|
|
@@ -744,7 +744,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
744
744
|
} | null | undefined;
|
|
745
745
|
_id: string;
|
|
746
746
|
name: string;
|
|
747
|
-
registrationNumber: string;
|
|
748
747
|
address: {
|
|
749
748
|
line2?: string | null | undefined;
|
|
750
749
|
line1: string;
|
|
@@ -753,11 +752,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
753
752
|
postcode: string;
|
|
754
753
|
country: string;
|
|
755
754
|
};
|
|
755
|
+
registrationNumber: string;
|
|
756
756
|
}[], {
|
|
757
757
|
_rev?: string | null | undefined;
|
|
758
|
+
email?: string | null | undefined;
|
|
758
759
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
759
760
|
contactName?: string | null | undefined;
|
|
760
|
-
email?: string | null | undefined;
|
|
761
761
|
phoneNumber?: string | null | undefined;
|
|
762
762
|
supplyItems?: {
|
|
763
763
|
skuId: string;
|
|
@@ -784,7 +784,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
784
784
|
} | null | undefined;
|
|
785
785
|
_id: string;
|
|
786
786
|
name: string;
|
|
787
|
-
registrationNumber: string;
|
|
788
787
|
address: {
|
|
789
788
|
line2?: string | null | undefined;
|
|
790
789
|
line1: string;
|
|
@@ -793,11 +792,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
793
792
|
postcode: string;
|
|
794
793
|
country: string;
|
|
795
794
|
};
|
|
795
|
+
registrationNumber: string;
|
|
796
796
|
}[] | {
|
|
797
797
|
_rev?: string | null | undefined;
|
|
798
|
+
email?: string | null | undefined;
|
|
798
799
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
799
800
|
contactName?: string | null | undefined;
|
|
800
|
-
email?: string | null | undefined;
|
|
801
801
|
phoneNumber?: string | null | undefined;
|
|
802
802
|
supplyItems?: {
|
|
803
803
|
skuId: string;
|
|
@@ -824,7 +824,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
824
824
|
} | null | undefined;
|
|
825
825
|
_id: string;
|
|
826
826
|
name: string;
|
|
827
|
-
registrationNumber: string;
|
|
828
827
|
address: {
|
|
829
828
|
line2?: string | null | undefined;
|
|
830
829
|
line1: string;
|
|
@@ -833,12 +832,13 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
833
832
|
postcode: string;
|
|
834
833
|
country: string;
|
|
835
834
|
};
|
|
835
|
+
registrationNumber: string;
|
|
836
836
|
}[]>;
|
|
837
837
|
businessSuppliers: import("vue").Ref<{
|
|
838
838
|
_rev?: string | null | undefined;
|
|
839
|
+
email?: string | null | undefined;
|
|
839
840
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
840
841
|
contactName?: string | null | undefined;
|
|
841
|
-
email?: string | null | undefined;
|
|
842
842
|
phoneNumber?: string | null | undefined;
|
|
843
843
|
supplyItems?: {
|
|
844
844
|
skuId: string;
|
|
@@ -865,7 +865,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
865
865
|
} | null | undefined;
|
|
866
866
|
_id: string;
|
|
867
867
|
name: string;
|
|
868
|
-
registrationNumber: string;
|
|
869
868
|
address: {
|
|
870
869
|
line2?: string | null | undefined;
|
|
871
870
|
line1: string;
|
|
@@ -874,11 +873,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
874
873
|
postcode: string;
|
|
875
874
|
country: string;
|
|
876
875
|
};
|
|
876
|
+
registrationNumber: string;
|
|
877
877
|
}[], {
|
|
878
878
|
_rev?: string | null | undefined;
|
|
879
|
+
email?: string | null | undefined;
|
|
879
880
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
880
881
|
contactName?: string | null | undefined;
|
|
881
|
-
email?: string | null | undefined;
|
|
882
882
|
phoneNumber?: string | null | undefined;
|
|
883
883
|
supplyItems?: {
|
|
884
884
|
skuId: string;
|
|
@@ -905,7 +905,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
905
905
|
} | null | undefined;
|
|
906
906
|
_id: string;
|
|
907
907
|
name: string;
|
|
908
|
-
registrationNumber: string;
|
|
909
908
|
address: {
|
|
910
909
|
line2?: string | null | undefined;
|
|
911
910
|
line1: string;
|
|
@@ -914,11 +913,12 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
914
913
|
postcode: string;
|
|
915
914
|
country: string;
|
|
916
915
|
};
|
|
916
|
+
registrationNumber: string;
|
|
917
917
|
}[] | {
|
|
918
918
|
_rev?: string | null | undefined;
|
|
919
|
+
email?: string | null | undefined;
|
|
919
920
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
920
921
|
contactName?: string | null | undefined;
|
|
921
|
-
email?: string | null | undefined;
|
|
922
922
|
phoneNumber?: string | null | undefined;
|
|
923
923
|
supplyItems?: {
|
|
924
924
|
skuId: string;
|
|
@@ -945,7 +945,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
945
945
|
} | null | undefined;
|
|
946
946
|
_id: string;
|
|
947
947
|
name: string;
|
|
948
|
-
registrationNumber: string;
|
|
949
948
|
address: {
|
|
950
949
|
line2?: string | null | undefined;
|
|
951
950
|
line1: string;
|
|
@@ -954,13 +953,14 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
954
953
|
postcode: string;
|
|
955
954
|
country: string;
|
|
956
955
|
};
|
|
956
|
+
registrationNumber: string;
|
|
957
957
|
}[]>;
|
|
958
958
|
supplierById: import("vue").ComputedRef<{
|
|
959
959
|
[key: string]: {
|
|
960
960
|
_rev?: string | null | undefined;
|
|
961
|
+
email?: string | null | undefined;
|
|
961
962
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
962
963
|
contactName?: string | null | undefined;
|
|
963
|
-
email?: string | null | undefined;
|
|
964
964
|
phoneNumber?: string | null | undefined;
|
|
965
965
|
supplyItems?: {
|
|
966
966
|
skuId: string;
|
|
@@ -987,7 +987,6 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
987
987
|
} | null | undefined;
|
|
988
988
|
_id: string;
|
|
989
989
|
name: string;
|
|
990
|
-
registrationNumber: string;
|
|
991
990
|
address: {
|
|
992
991
|
line2?: string | null | undefined;
|
|
993
992
|
line1: string;
|
|
@@ -996,6 +995,7 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
996
995
|
postcode: string;
|
|
997
996
|
country: string;
|
|
998
997
|
};
|
|
998
|
+
registrationNumber: string;
|
|
999
999
|
};
|
|
1000
1000
|
}>;
|
|
1001
1001
|
}, "init" | "readSuppliers" | "createSupplier" | "updateSupplier" | "deleteSupplier" | "importSuppliers">>;
|
|
@@ -80,8 +80,8 @@ export declare function useWarehouseStore(): {
|
|
|
80
80
|
_id: string;
|
|
81
81
|
businessId: string;
|
|
82
82
|
profile: {
|
|
83
|
-
email?: string | null | undefined;
|
|
84
83
|
phoneNo?: string | null | undefined;
|
|
84
|
+
email?: string | null | undefined;
|
|
85
85
|
name: string;
|
|
86
86
|
address: {
|
|
87
87
|
coordinates?: number[] | null | undefined;
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { d as b, u, m as v, n as w, o as $ } from "./app-
|
|
2
|
-
import {
|
|
1
|
+
import { d as b, u, m as v, n as w, o as $ } from "./app-DqJp3dcI.js";
|
|
2
|
+
import { useFeatureStore as S } from "./feature-fG7d73oi.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";
|
|
6
|
-
const i = b((
|
|
6
|
+
const i = b((a, s) => {
|
|
7
7
|
function n() {
|
|
8
8
|
var o;
|
|
9
|
-
const t = c(), r = u(),
|
|
10
|
-
return
|
|
9
|
+
const t = c(), r = u(), p = S().businessSupplierOnly, y = `business_${((o = t.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, m = r.currentLocation.dbName;
|
|
10
|
+
return p ? y : m;
|
|
11
11
|
}
|
|
12
12
|
return {
|
|
13
13
|
async readSuppliers() {
|
|
14
|
-
const t = n(), r = `${
|
|
14
|
+
const t = n(), r = `${a.inventoryBackendUrl}/${t}/supplier`;
|
|
15
15
|
return await s.get(r);
|
|
16
16
|
},
|
|
17
17
|
async readLocationSuppliers() {
|
|
18
|
-
const r = u().currentLocation.dbName, e = `${
|
|
18
|
+
const r = u().currentLocation.dbName, e = `${a.inventoryBackendUrl}/${r}/supplier`;
|
|
19
19
|
return await s.get(e);
|
|
20
20
|
},
|
|
21
21
|
async readSuppliersByDbName(t) {
|
|
22
|
-
const r = `${
|
|
22
|
+
const r = `${a.inventoryBackendUrl}/${t}/supplier`;
|
|
23
23
|
return await s.get(r);
|
|
24
24
|
},
|
|
25
25
|
async readBusinessSuppliers() {
|
|
26
|
-
var
|
|
27
|
-
const r = `business_${((
|
|
26
|
+
var p;
|
|
27
|
+
const r = `business_${((p = c().currentBusiness.value) == null ? void 0 : p._id) ?? ""}`, e = `${a.inventoryBackendUrl}/${r}/supplier`;
|
|
28
28
|
return await s.get(e);
|
|
29
29
|
},
|
|
30
30
|
async createSupplier(t) {
|
|
31
|
-
const r = n(), e = `${
|
|
31
|
+
const r = n(), e = `${a.inventoryBackendUrl}/${r}/supplier`;
|
|
32
32
|
return await s.post(e, t);
|
|
33
33
|
},
|
|
34
34
|
async importSuppliers(t) {
|
|
35
|
-
const r = n(), e = `${
|
|
35
|
+
const r = n(), e = `${a.inventoryBackendUrl}/${r}/supplier/import`;
|
|
36
36
|
return await s.post(e, t);
|
|
37
37
|
},
|
|
38
38
|
async updateSupplier(t) {
|
|
39
|
-
const r = n(), e = `${
|
|
39
|
+
const r = n(), e = `${a.inventoryBackendUrl}/${r}/supplier`;
|
|
40
40
|
return await s.put(e, t);
|
|
41
41
|
},
|
|
42
42
|
async deleteSupplier(t) {
|
|
43
|
-
const r = n(), e = `${
|
|
43
|
+
const r = n(), e = `${a.inventoryBackendUrl}/${r}/supplier`;
|
|
44
44
|
return await s.delete(e, t);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}), g = f("supplier", () => {
|
|
48
|
-
const
|
|
48
|
+
const a = S(), s = l(new Array()), n = l(new Array()), t = d(() => a.businessSupplierOnly ? n.value : [...s.value, ...n.value]), r = d(() => v(t.value, "_id"));
|
|
49
49
|
return {
|
|
50
50
|
async readSuppliers() {
|
|
51
51
|
const e = i();
|
|
@@ -67,8 +67,8 @@ const i = b((p, s) => {
|
|
|
67
67
|
const e = w();
|
|
68
68
|
try {
|
|
69
69
|
await this.readSuppliers();
|
|
70
|
-
} catch (
|
|
71
|
-
throw
|
|
70
|
+
} catch (p) {
|
|
71
|
+
throw p instanceof $ || e.error("Error at reading suppliers"), p;
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
suppliers: t,
|
|
@@ -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-DqJp3dcI.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) => {
|