@feedmepos/mf-inventory-portal 1.2.1 → 1.2.2-5.dev-1
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-DMkUg806.js +297 -0
- package/dist/{ApprovalView-DwRrbVDo.js → ApprovalView-DWJh2K6W.js} +65 -64
- package/dist/{BindingsDialog-DUVKv10-.js → BindingsDialog-EmHCvqJI.js} +2 -2
- package/dist/{BindingsPicker-Daib_iq4.js → BindingsPicker-h_9jm1s0.js} +3 -3
- package/dist/{BindingsTable-Bv9UmcJP.js → BindingsTable-BAVWGUoa.js} +1 -1
- package/dist/ClosingDraftView-Du4kOwIg.js +1899 -0
- package/dist/ClosingHistoryView-DuW2Vtrs.js +355 -0
- package/dist/ClosingTemplateView-CfPY8R5M.js +2001 -0
- package/dist/{DeliveryOrderPrintPreview-DZPcRAja.js → DeliveryOrderPrintPreview-C6Cj8mOp.js} +9 -9
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-WWIrybw_.js +230 -0
- package/dist/{FmMultiselectDialog-CZmwOkrb.js → FmMultiselectDialog-BzWrQOS4.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C-2V2bGc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DwqVRUFz.js} +36 -36
- package/dist/ImportView-lKlYeLay.js +1291 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BGnoF1Zz.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-_2WZMZU2.js} +5 -5
- package/dist/{IngredientGroupView-CAVYpEj3.js → IngredientGroupView-CrmwR2Xt.js} +34 -35
- package/dist/IngredientsView-1bAsyz-b.js +2254 -0
- package/dist/{IntegrationView-DdLFyZ4H.js → IntegrationView-D16qeEc_.js} +1773 -1635
- package/dist/{InventoryBindingForm-C7BdEDtM.js → InventoryBindingForm-BRwOXV_P.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7DND2dQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-NDbtbtqK.js} +28 -28
- package/dist/{InventoryBindingSummary-IZ7F-Lti.js → InventoryBindingSummary-DKM2gX8_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sgqVSlUB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdaiYTdf.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DeF32bHu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B0OKeK5O.js} +7 -7
- package/dist/{PublishView-DkgfYneI.js → PublishView-D0NnU22l.js} +73 -63
- package/dist/{PurchaseOrderPrintPreview-CltLC4o4.js → PurchaseOrderPrintPreview-BmuwNbeL.js} +4 -4
- package/dist/{ReceiveRequestView-Dj7ji0DY.js → ReceiveRequestView-j79m7TKk.js} +343 -333
- package/dist/RecipeView-D_fNQQ-C.js +636 -0
- package/dist/StockView-DX_xeFBT.js +2385 -0
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bg49isUy.js +172 -0
- package/dist/{SupplierView-DE_M_9kd.js → SupplierView-DuFTqbOg.js} +1193 -1073
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-c428GXwc.js +3233 -0
- package/dist/{TransferTemplateView-gWGBCF3u.js → TransferTemplateView-Ccsfcetz.js} +104 -103
- package/dist/UnitView-BklpNsFN.js +674 -0
- package/dist/WarehouseView-BrURbU67.js +1066 -0
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/bill.d.ts +140 -2
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/inventory.d.ts +405 -0
- package/dist/api/netsuite.d.ts +5 -1
- package/dist/api/purchase-order-template.d.ts +1 -0
- package/dist/api/purchase-order.d.ts +3 -0
- package/dist/api/shipment.d.ts +11 -0
- package/dist/api/stock.d.ts +2 -44
- package/dist/api/warehouse.d.ts +3 -1
- package/dist/{app-CruHLH1e.js → app-a9r50k3U.js} +68551 -67573
- package/dist/app.d.ts +643 -15
- package/dist/app.js +6 -6
- package/dist/components/FmAdminBadge.vue.d.ts +1 -4
- package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +16 -2
- package/dist/components/FmLockableField.vue.d.ts +3 -0
- package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
- package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/composable/useIframe.d.ts +2 -2
- package/dist/{decimal-izbvCC1j.js → decimal-AusUnA1W.js} +1 -1
- package/dist/{format-unit-display-4SAdfyZB.js → format-unit-display-BqkHL-ph.js} +397 -429
- package/dist/helper/array.d.ts +1 -0
- package/dist/helper/core/country/utils.d.ts +3 -4
- package/dist/helper/country.d.ts +6 -255
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-PIyNeHfa.js +238 -0
- package/dist/{index-B6GGthLw.js → index-CjxirPvn.js} +283 -268
- package/dist/{index-CnQloOEo.js → index-Dj9-pdT9.js} +1 -1
- package/dist/layout/SingleColumnLayout.vue.d.ts +6 -3
- package/dist/purchase-order-template-CQikvY1p.js +41 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-CDZ2uWSF.js +83 -0
- package/dist/stock-Dw908dIC.js +74 -0
- package/dist/stores/feature.d.ts +12 -0
- package/dist/stores/integration/netsuite.d.ts +42 -0
- package/dist/stores/inventory.d.ts +28 -199
- package/dist/stores/location.d.ts +331 -1
- package/dist/stores/supplier.d.ts +96 -0
- package/dist/stores/warehouse.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-CTVE1lHO.js → supplier-BPPBUudN.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CM80TfX0.js → use-ingredient-select-dialog-C_fSKN3_.js} +5 -5
- package/dist/{use-inventory-binding-dialog-D_omdhgn.js → use-inventory-binding-dialog-ClAkJ864.js} +8 -8
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +9 -2
- package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +4 -1
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +5 -0
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +181 -12
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +4 -1
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +21 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +420 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +99 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +644 -13
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +711 -14
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +70 -1
- package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
- package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
- package/dist/views/stock/components/dialog/StockAdjustmentSideSheet.vue.d.ts +20 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
- package/package.json +3 -3
- package/dist/App-BqaRC0Sb.js +0 -276
- package/dist/ClosingDraftView-sJ_zRPeo.js +0 -1687
- package/dist/ClosingTemplateView-cNgXHq1r.js +0 -1908
- package/dist/FmAdminBadge-oCnz8SW6.js +0 -34
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BKR8C4p_.js +0 -224
- package/dist/IngredientsView-CHHeAJH_.js +0 -1858
- package/dist/RecipeView-BukmKdVG.js +0 -621
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
- package/dist/StockView-wxRCw_w-.js +0 -2087
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eqUOnJoM.js +0 -2336
- package/dist/UnitView-BgwDmGZo.js +0 -667
- package/dist/WarehouseView-BdccenhO.js +0 -1034
- package/dist/array-Ca8T3f_G.js +0 -44
- package/dist/helper/core/country/codes.d.ts +0 -255
- package/dist/stock-BJP5BB5b.js +0 -146
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function chunkArray<T>(array: T[], chunkSize: number): T[][];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { FdoDinero } from '@feedmepos/core/entity';
|
|
2
|
-
import { CountryCode } from './codes';
|
|
1
|
+
import type { F_COUNTRY, FdoDinero } from '@feedmepos/core/entity';
|
|
3
2
|
export type CountryInfo = {
|
|
4
|
-
code:
|
|
3
|
+
code: F_COUNTRY;
|
|
5
4
|
name: string;
|
|
6
5
|
currency: FdoDinero['currency'];
|
|
7
6
|
};
|
|
8
|
-
export declare function getCodeAndName(country:
|
|
7
|
+
export declare function getCodeAndName(country: F_COUNTRY): CountryInfo | null;
|
package/dist/helper/country.d.ts
CHANGED
|
@@ -1,263 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CountryCode } from './core/country/codes';
|
|
1
|
+
import { F_COUNTRY, FdoDinero } from '@feedmepos/core/entity';
|
|
3
2
|
export interface Country {
|
|
4
3
|
name: string;
|
|
5
|
-
code:
|
|
4
|
+
code: F_COUNTRY;
|
|
6
5
|
currency: FdoDinero['currency'];
|
|
7
6
|
}
|
|
8
|
-
export declare
|
|
9
|
-
|
|
10
|
-
AX?: Country | undefined;
|
|
11
|
-
AL?: Country | undefined;
|
|
12
|
-
DZ?: Country | undefined;
|
|
13
|
-
AS?: Country | undefined;
|
|
14
|
-
AD?: Country | undefined;
|
|
15
|
-
AO?: Country | undefined;
|
|
16
|
-
AI?: Country | undefined;
|
|
17
|
-
AQ?: Country | undefined;
|
|
18
|
-
AG?: Country | undefined;
|
|
19
|
-
AR?: Country | undefined;
|
|
20
|
-
AM?: Country | undefined;
|
|
21
|
-
AW?: Country | undefined;
|
|
22
|
-
AU?: Country | undefined;
|
|
23
|
-
AT?: Country | undefined;
|
|
24
|
-
AZ?: Country | undefined;
|
|
25
|
-
BS?: Country | undefined;
|
|
26
|
-
BH?: Country | undefined;
|
|
27
|
-
BD?: Country | undefined;
|
|
28
|
-
BB?: Country | undefined;
|
|
29
|
-
BY?: Country | undefined;
|
|
30
|
-
BE?: Country | undefined;
|
|
31
|
-
BZ?: Country | undefined;
|
|
32
|
-
BJ?: Country | undefined;
|
|
33
|
-
BM?: Country | undefined;
|
|
34
|
-
BT?: Country | undefined;
|
|
35
|
-
BO?: Country | undefined;
|
|
36
|
-
BQ?: Country | undefined;
|
|
37
|
-
BA?: Country | undefined;
|
|
38
|
-
BW?: Country | undefined;
|
|
39
|
-
BV?: Country | undefined;
|
|
40
|
-
BR?: Country | undefined;
|
|
41
|
-
IO?: Country | undefined;
|
|
42
|
-
BN?: Country | undefined;
|
|
43
|
-
BG?: Country | undefined;
|
|
44
|
-
BF?: Country | undefined;
|
|
45
|
-
BI?: Country | undefined;
|
|
46
|
-
KH?: Country | undefined;
|
|
47
|
-
CM?: Country | undefined;
|
|
48
|
-
CA?: Country | undefined;
|
|
49
|
-
CV?: Country | undefined;
|
|
50
|
-
KY?: Country | undefined;
|
|
51
|
-
CF?: Country | undefined;
|
|
52
|
-
TD?: Country | undefined;
|
|
53
|
-
CL?: Country | undefined;
|
|
54
|
-
CN?: Country | undefined;
|
|
55
|
-
CX?: Country | undefined;
|
|
56
|
-
CC?: Country | undefined;
|
|
57
|
-
CO?: Country | undefined;
|
|
58
|
-
KM?: Country | undefined;
|
|
59
|
-
CG?: Country | undefined;
|
|
60
|
-
CD?: Country | undefined;
|
|
61
|
-
CK?: Country | undefined;
|
|
62
|
-
CR?: Country | undefined;
|
|
63
|
-
CI?: Country | undefined;
|
|
64
|
-
HR?: Country | undefined;
|
|
65
|
-
CU?: Country | undefined;
|
|
66
|
-
CW?: Country | undefined;
|
|
67
|
-
CY?: Country | undefined;
|
|
68
|
-
CZ?: Country | undefined;
|
|
69
|
-
DK?: Country | undefined;
|
|
70
|
-
DJ?: Country | undefined;
|
|
71
|
-
DM?: Country | undefined;
|
|
72
|
-
DO?: Country | undefined;
|
|
73
|
-
EC?: Country | undefined;
|
|
74
|
-
EG?: Country | undefined;
|
|
75
|
-
SV?: Country | undefined;
|
|
76
|
-
GQ?: Country | undefined;
|
|
77
|
-
ER?: Country | undefined;
|
|
78
|
-
EE?: Country | undefined;
|
|
79
|
-
ET?: Country | undefined;
|
|
80
|
-
FK?: Country | undefined;
|
|
81
|
-
FO?: Country | undefined;
|
|
82
|
-
FJ?: Country | undefined;
|
|
83
|
-
FI?: Country | undefined;
|
|
84
|
-
FR?: Country | undefined;
|
|
85
|
-
GF?: Country | undefined;
|
|
86
|
-
PF?: Country | undefined;
|
|
87
|
-
TF?: Country | undefined;
|
|
88
|
-
GA?: Country | undefined;
|
|
89
|
-
GM?: Country | undefined;
|
|
90
|
-
GE?: Country | undefined;
|
|
91
|
-
DE?: Country | undefined;
|
|
92
|
-
GH?: Country | undefined;
|
|
93
|
-
GI?: Country | undefined;
|
|
94
|
-
GR?: Country | undefined;
|
|
95
|
-
GL?: Country | undefined;
|
|
96
|
-
GD?: Country | undefined;
|
|
97
|
-
GP?: Country | undefined;
|
|
98
|
-
GU?: Country | undefined;
|
|
99
|
-
GT?: Country | undefined;
|
|
100
|
-
GG?: Country | undefined;
|
|
101
|
-
GN?: Country | undefined;
|
|
102
|
-
GW?: Country | undefined;
|
|
103
|
-
GY?: Country | undefined;
|
|
104
|
-
HT?: Country | undefined;
|
|
105
|
-
HM?: Country | undefined;
|
|
106
|
-
VA?: Country | undefined;
|
|
107
|
-
HN?: Country | undefined;
|
|
108
|
-
HK?: Country | undefined;
|
|
109
|
-
HU?: Country | undefined;
|
|
110
|
-
IS?: Country | undefined;
|
|
111
|
-
IN?: Country | undefined;
|
|
112
|
-
ID?: Country | undefined;
|
|
113
|
-
IR?: Country | undefined;
|
|
114
|
-
IQ?: Country | undefined;
|
|
115
|
-
IE?: Country | undefined;
|
|
116
|
-
IM?: Country | undefined;
|
|
117
|
-
IL?: Country | undefined;
|
|
118
|
-
IT?: Country | undefined;
|
|
119
|
-
JM?: Country | undefined;
|
|
120
|
-
JP?: Country | undefined;
|
|
121
|
-
JE?: Country | undefined;
|
|
122
|
-
JO?: Country | undefined;
|
|
123
|
-
KZ?: Country | undefined;
|
|
124
|
-
KE?: Country | undefined;
|
|
125
|
-
KI?: Country | undefined;
|
|
126
|
-
KR?: Country | undefined;
|
|
127
|
-
KP?: Country | undefined;
|
|
128
|
-
KW?: Country | undefined;
|
|
129
|
-
KG?: Country | undefined;
|
|
130
|
-
LA?: Country | undefined;
|
|
131
|
-
LV?: Country | undefined;
|
|
132
|
-
LB?: Country | undefined;
|
|
133
|
-
LS?: Country | undefined;
|
|
134
|
-
LR?: Country | undefined;
|
|
135
|
-
LY?: Country | undefined;
|
|
136
|
-
LI?: Country | undefined;
|
|
137
|
-
LT?: Country | undefined;
|
|
138
|
-
LU?: Country | undefined;
|
|
139
|
-
MO?: Country | undefined;
|
|
140
|
-
MK?: Country | undefined;
|
|
141
|
-
MG?: Country | undefined;
|
|
142
|
-
MW?: Country | undefined;
|
|
143
|
-
MY?: Country | undefined;
|
|
144
|
-
MV?: Country | undefined;
|
|
145
|
-
ML?: Country | undefined;
|
|
146
|
-
MT?: Country | undefined;
|
|
147
|
-
MH?: Country | undefined;
|
|
148
|
-
MQ?: Country | undefined;
|
|
149
|
-
MR?: Country | undefined;
|
|
150
|
-
MU?: Country | undefined;
|
|
151
|
-
YT?: Country | undefined;
|
|
152
|
-
MX?: Country | undefined;
|
|
153
|
-
FM?: Country | undefined;
|
|
154
|
-
MD?: Country | undefined;
|
|
155
|
-
MC?: Country | undefined;
|
|
156
|
-
MN?: Country | undefined;
|
|
157
|
-
ME?: Country | undefined;
|
|
158
|
-
MS?: Country | undefined;
|
|
159
|
-
MA?: Country | undefined;
|
|
160
|
-
MZ?: Country | undefined;
|
|
161
|
-
MM?: Country | undefined;
|
|
162
|
-
NA?: Country | undefined;
|
|
163
|
-
NR?: Country | undefined;
|
|
164
|
-
NP?: Country | undefined;
|
|
165
|
-
NL?: Country | undefined;
|
|
166
|
-
NC?: Country | undefined;
|
|
167
|
-
NZ?: Country | undefined;
|
|
168
|
-
NI?: Country | undefined;
|
|
169
|
-
NE?: Country | undefined;
|
|
170
|
-
NG?: Country | undefined;
|
|
171
|
-
NU?: Country | undefined;
|
|
172
|
-
NF?: Country | undefined;
|
|
173
|
-
MP?: Country | undefined;
|
|
174
|
-
NO?: Country | undefined;
|
|
175
|
-
OM?: Country | undefined;
|
|
176
|
-
PK?: Country | undefined;
|
|
177
|
-
PW?: Country | undefined;
|
|
178
|
-
PS?: Country | undefined;
|
|
179
|
-
PA?: Country | undefined;
|
|
180
|
-
PG?: Country | undefined;
|
|
181
|
-
PY?: Country | undefined;
|
|
182
|
-
PE?: Country | undefined;
|
|
183
|
-
PH?: Country | undefined;
|
|
184
|
-
PN?: Country | undefined;
|
|
185
|
-
PL?: Country | undefined;
|
|
186
|
-
PT?: Country | undefined;
|
|
187
|
-
PR?: Country | undefined;
|
|
188
|
-
QA?: Country | undefined;
|
|
189
|
-
RE?: Country | undefined;
|
|
190
|
-
RO?: Country | undefined;
|
|
191
|
-
RU?: Country | undefined;
|
|
192
|
-
RW?: Country | undefined;
|
|
193
|
-
BL?: Country | undefined;
|
|
194
|
-
SH?: Country | undefined;
|
|
195
|
-
KN?: Country | undefined;
|
|
196
|
-
LC?: Country | undefined;
|
|
197
|
-
MF?: Country | undefined;
|
|
198
|
-
PM?: Country | undefined;
|
|
199
|
-
VC?: Country | undefined;
|
|
200
|
-
WS?: Country | undefined;
|
|
201
|
-
SM?: Country | undefined;
|
|
202
|
-
ST?: Country | undefined;
|
|
203
|
-
SA?: Country | undefined;
|
|
204
|
-
SN?: Country | undefined;
|
|
205
|
-
RS?: Country | undefined;
|
|
206
|
-
SC?: Country | undefined;
|
|
207
|
-
SL?: Country | undefined;
|
|
208
|
-
SG?: Country | undefined;
|
|
209
|
-
SX?: Country | undefined;
|
|
210
|
-
SK?: Country | undefined;
|
|
211
|
-
SI?: Country | undefined;
|
|
212
|
-
SB?: Country | undefined;
|
|
213
|
-
SO?: Country | undefined;
|
|
214
|
-
ZA?: Country | undefined;
|
|
215
|
-
GS?: Country | undefined;
|
|
216
|
-
SS?: Country | undefined;
|
|
217
|
-
ES?: Country | undefined;
|
|
218
|
-
LK?: Country | undefined;
|
|
219
|
-
SD?: Country | undefined;
|
|
220
|
-
SR?: Country | undefined;
|
|
221
|
-
SJ?: Country | undefined;
|
|
222
|
-
SZ?: Country | undefined;
|
|
223
|
-
SE?: Country | undefined;
|
|
224
|
-
CH?: Country | undefined;
|
|
225
|
-
SY?: Country | undefined;
|
|
226
|
-
TW?: Country | undefined;
|
|
227
|
-
TJ?: Country | undefined;
|
|
228
|
-
TZ?: Country | undefined;
|
|
229
|
-
TH?: Country | undefined;
|
|
230
|
-
TL?: Country | undefined;
|
|
231
|
-
TG?: Country | undefined;
|
|
232
|
-
TK?: Country | undefined;
|
|
233
|
-
TO?: Country | undefined;
|
|
234
|
-
TT?: Country | undefined;
|
|
235
|
-
TN?: Country | undefined;
|
|
236
|
-
TR?: Country | undefined;
|
|
237
|
-
TM?: Country | undefined;
|
|
238
|
-
TC?: Country | undefined;
|
|
239
|
-
TV?: Country | undefined;
|
|
240
|
-
UG?: Country | undefined;
|
|
241
|
-
UA?: Country | undefined;
|
|
242
|
-
AE?: Country | undefined;
|
|
243
|
-
GB?: Country | undefined;
|
|
244
|
-
US?: Country | undefined;
|
|
245
|
-
UM?: Country | undefined;
|
|
246
|
-
UY?: Country | undefined;
|
|
247
|
-
UZ?: Country | undefined;
|
|
248
|
-
VU?: Country | undefined;
|
|
249
|
-
VE?: Country | undefined;
|
|
250
|
-
VN?: Country | undefined;
|
|
251
|
-
VG?: Country | undefined;
|
|
252
|
-
VI?: Country | undefined;
|
|
253
|
-
WF?: Country | undefined;
|
|
254
|
-
EH?: Country | undefined;
|
|
255
|
-
YE?: Country | undefined;
|
|
256
|
-
ZM?: Country | undefined;
|
|
257
|
-
ZW?: Country | undefined;
|
|
7
|
+
export declare function getSupportedCountries(): {
|
|
8
|
+
[x: string]: Country;
|
|
258
9
|
};
|
|
259
10
|
export declare function getCurrencyByCountry(country?: string): "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
260
|
-
export declare function getCountryByCode(code?:
|
|
261
|
-
export declare const defaultCountry
|
|
11
|
+
export declare function getCountryByCode(code?: F_COUNTRY): Country;
|
|
12
|
+
export declare const defaultCountry: string;
|
|
262
13
|
export declare function getCurrency(): "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
263
14
|
export declare function getFormattedCurrency(): "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL" | "RM";
|
package/dist/helper/number.d.ts
CHANGED
|
@@ -36,3 +36,4 @@ export declare function countDivisibleByTrailingZero(n: number | BigInt): number
|
|
|
36
36
|
* Documentation at: https://www.notion.so/feedmepos/Precision-Handling-Logic-8e2211106b4a4a0f9fae8ee9c1e897da?pvs=4
|
|
37
37
|
*/
|
|
38
38
|
export declare function getAllowedPrecision(unit: FdoInventoryUnit, measurement?: FdoUnitMeasurement | null): number;
|
|
39
|
+
export declare const isNumeric: (value: any) => boolean | 0;
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { a as y, W as k, Y as w, X as N, n as H, o as $, ar as P, c as T, as as j, q as S, t as _, a4 as I, P as O } from "./app-a9r50k3U.js";
|
|
2
|
+
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
3
|
+
function R() {
|
|
4
|
+
return {
|
|
5
|
+
low: 6,
|
|
6
|
+
mid: 14
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
const B = {
|
|
10
|
+
_id: "",
|
|
11
|
+
name: "",
|
|
12
|
+
abbrev: "",
|
|
13
|
+
precision: 0,
|
|
14
|
+
measurements: []
|
|
15
|
+
};
|
|
16
|
+
function D(e) {
|
|
17
|
+
return !e || Object.keys(e).length === 0 ? "" : Object.entries(e).map(([t, r]) => `${t}: ${r}`).join(", ");
|
|
18
|
+
}
|
|
19
|
+
function A(e) {
|
|
20
|
+
if (!e || e.trim() === "")
|
|
21
|
+
return;
|
|
22
|
+
const t = {}, r = e.split(",").map((n) => n.trim());
|
|
23
|
+
for (const n of r) {
|
|
24
|
+
const s = n.indexOf(":");
|
|
25
|
+
if (s > 0) {
|
|
26
|
+
const c = n.substring(0, s).trim(), a = n.substring(s + 1).trim();
|
|
27
|
+
c && a && (t[c] = a);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return Object.keys(t).length > 0 ? t : void 0;
|
|
31
|
+
}
|
|
32
|
+
function V(e) {
|
|
33
|
+
var r, n, s, c, a;
|
|
34
|
+
return {
|
|
35
|
+
code: e.code,
|
|
36
|
+
name: e.name,
|
|
37
|
+
unit: e.unit.name,
|
|
38
|
+
baseUnit: e.unit.abbrev,
|
|
39
|
+
measurementName: ((r = e.unit.measurements.find((m) => m.id === e.trackingMeasurement)) == null ? void 0 : r.abbrev) ?? e.unit.abbrev,
|
|
40
|
+
valuationMethod: e.valuation ?? "WAVG",
|
|
41
|
+
pricePerUnit: (n = e.defaultCost) != null && n.costPerUnit ? +H((s = e.defaultCost) == null ? void 0 : s.costPerUnit) : 0,
|
|
42
|
+
thresholdLow: ((c = e.thresholds) == null ? void 0 : c.low) ?? R().low,
|
|
43
|
+
thresholdMid: ((a = e.thresholds) == null ? void 0 : a.mid) ?? R().mid,
|
|
44
|
+
customAttributes: D(e.customAttributes)
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function E() {
|
|
48
|
+
var s;
|
|
49
|
+
const e = [
|
|
50
|
+
{
|
|
51
|
+
id: "code",
|
|
52
|
+
name: "Code"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "name",
|
|
56
|
+
name: "Name"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "unit",
|
|
60
|
+
name: "Unit"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "baseUnit",
|
|
64
|
+
name: "Base unit"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "measurementName",
|
|
68
|
+
name: "Measurement Name"
|
|
69
|
+
}
|
|
70
|
+
], t = T(), r = g(), n = $(r.currentCountry.value);
|
|
71
|
+
return t.enableTotalCost && e.push(
|
|
72
|
+
{
|
|
73
|
+
id: "valuationMethod",
|
|
74
|
+
name: "Valuation method"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "pricePerUnit",
|
|
78
|
+
name: `Price per unit (${n == null ? void 0 : n.currency})`
|
|
79
|
+
}
|
|
80
|
+
), ((s = r.currentBusiness.value) == null ? void 0 : s.menuVersion) === "v4" && e.push(
|
|
81
|
+
{
|
|
82
|
+
id: "thresholdLow",
|
|
83
|
+
name: "Show RED when remaining"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: "thresholdMid",
|
|
87
|
+
name: "Show YELLOW when remaining"
|
|
88
|
+
}
|
|
89
|
+
), e.push({
|
|
90
|
+
id: "customAttributes",
|
|
91
|
+
name: "Custom Attributes"
|
|
92
|
+
}), e;
|
|
93
|
+
}
|
|
94
|
+
function G() {
|
|
95
|
+
const t = y().skus.map(V), n = g().currentBusiness.value, s = E(), c = [
|
|
96
|
+
["Business name:", n == null ? void 0 : n.name],
|
|
97
|
+
["Business ID:", n == null ? void 0 : n._id],
|
|
98
|
+
["Menu version", n == null ? void 0 : n.menuVersion],
|
|
99
|
+
[],
|
|
100
|
+
s.map((o) => o.name),
|
|
101
|
+
...t.map((o) => s.map((u) => o[u.id]))
|
|
102
|
+
], a = s.map((o) => `system:${o.id}`), m = k(c, a), d = `${n == null ? void 0 : n.name} ingredients (${w(/* @__PURE__ */ new Date())}).xlsx`;
|
|
103
|
+
return N(m, d), d;
|
|
104
|
+
}
|
|
105
|
+
function X() {
|
|
106
|
+
const t = g().currentBusiness.value, r = E(), n = [
|
|
107
|
+
["Business name:", t == null ? void 0 : t.name],
|
|
108
|
+
["Business ID:", t == null ? void 0 : t._id],
|
|
109
|
+
["Menu version", t == null ? void 0 : t.menuVersion],
|
|
110
|
+
[],
|
|
111
|
+
r.map((m) => m.name)
|
|
112
|
+
], s = r.map((m) => `system:${m.id}`), c = k(n, s), a = "FeedMe ingredients template.xlsx";
|
|
113
|
+
return N(c, a), a;
|
|
114
|
+
}
|
|
115
|
+
function Y(e) {
|
|
116
|
+
const [
|
|
117
|
+
t,
|
|
118
|
+
r,
|
|
119
|
+
n,
|
|
120
|
+
s,
|
|
121
|
+
c,
|
|
122
|
+
a,
|
|
123
|
+
...m
|
|
124
|
+
] = j(e);
|
|
125
|
+
if (!t || !t.length || t.some((l) => l.length && !l.startsWith("system:")))
|
|
126
|
+
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
127
|
+
const d = t.map((l) => l.split(":")[1]), u = ["code", "name", "unit", "baseUnit", "measurementName"].filter((l) => !d.includes(l));
|
|
128
|
+
if (u.length)
|
|
129
|
+
throw new Error(
|
|
130
|
+
`Missing meta headers (${u.join()}). Excel file does not come from the template.`
|
|
131
|
+
);
|
|
132
|
+
return m.map((l, p) => {
|
|
133
|
+
const f = {};
|
|
134
|
+
for (const v in d) {
|
|
135
|
+
const b = d[v];
|
|
136
|
+
Object.assign(f, { [b]: l[v] });
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
index: p,
|
|
140
|
+
data: f
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function U(e, t, r, { ignoreErrors: n = !1 } = {}) {
|
|
145
|
+
var M;
|
|
146
|
+
const c = y().units, a = new Array(), m = r.filter((i) => i.data.code === e.code);
|
|
147
|
+
m.length > 1 && a.push(
|
|
148
|
+
`Code ${e.code} is already used in row ${m.map((i) => i.index + 6).join()}.`
|
|
149
|
+
);
|
|
150
|
+
const d = c.find((i) => {
|
|
151
|
+
var x, C;
|
|
152
|
+
return i.abbrev === e.baseUnit && ((x = i.name) == null ? void 0 : x.trim()) === ((C = e.unit) == null ? void 0 : C.trim());
|
|
153
|
+
}), o = d == null ? void 0 : d.measurements.find((i) => i.abbrev === e.measurementName);
|
|
154
|
+
if (!d)
|
|
155
|
+
a.push(`Cannot find base unit of symbol ${e.baseUnit}.`);
|
|
156
|
+
else if (e.baseUnit !== e.measurementName && !o) {
|
|
157
|
+
const i = `Cannot find unit conversion for ${e.baseUnit} with symbol ${e.measurementName || "[empty]"}.`;
|
|
158
|
+
a.push(i);
|
|
159
|
+
}
|
|
160
|
+
const u = S.options.find(
|
|
161
|
+
(i) => i === e.valuationMethod
|
|
162
|
+
);
|
|
163
|
+
e.valuationMethod && !u && a.push(
|
|
164
|
+
`Expected valuation method to be one of ${S.options.join()} but got ${e.valuationMethod} instead.`
|
|
165
|
+
);
|
|
166
|
+
const l = g().currentCountry.value, p = (i) => `${i}`.length && O()(i) === !0, f = p(`${e.pricePerUnit}`) === !0 ? {
|
|
167
|
+
costPerUnit: {
|
|
168
|
+
..._(Number(e.pricePerUnit) || 0, I(Number(e.pricePerUnit) || 0)),
|
|
169
|
+
currency: ((M = $(l)) == null ? void 0 : M.currency) ?? "MYR"
|
|
170
|
+
},
|
|
171
|
+
measurement: o
|
|
172
|
+
} : void 0, v = p(`${e.thresholdLow}`) && p(`${e.thresholdMid}`) ? {
|
|
173
|
+
low: Number(e.thresholdLow) || 0,
|
|
174
|
+
mid: Number(e.thresholdMid) || 0
|
|
175
|
+
} : void 0, b = "customAttributes" in e ? A(e.customAttributes) : null;
|
|
176
|
+
return {
|
|
177
|
+
type: "create",
|
|
178
|
+
sku: {
|
|
179
|
+
code: e.code,
|
|
180
|
+
name: e.name,
|
|
181
|
+
unit: d ?? c.find((i) => i) ?? B,
|
|
182
|
+
trackingMeasurement: o == null ? void 0 : o.id,
|
|
183
|
+
valuation: u,
|
|
184
|
+
defaultCost: f,
|
|
185
|
+
thresholds: v,
|
|
186
|
+
...b !== null && { customAttributes: b }
|
|
187
|
+
},
|
|
188
|
+
errors: a,
|
|
189
|
+
excelRowNumber: t + 6
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function z(e) {
|
|
193
|
+
try {
|
|
194
|
+
const t = Y(e).filter((o) => o.data.code), n = y().skus, s = P(n, "code"), c = t.filter((o) => !s[o.data.code]), a = t.filter((o) => s[o.data.code]), m = c.map(
|
|
195
|
+
(o) => U(o.data, o.index, t)
|
|
196
|
+
), d = a.map((o) => {
|
|
197
|
+
const u = U(o.data, o.index, t), h = s[o.data.code];
|
|
198
|
+
let l = h.customAttributes;
|
|
199
|
+
return "customAttributes" in o.data && (l = A(o.data.customAttributes)), {
|
|
200
|
+
...u,
|
|
201
|
+
type: "update",
|
|
202
|
+
original: h,
|
|
203
|
+
sku: {
|
|
204
|
+
// to maintain original props not in the import excel, e.g. inventory binding, etc...
|
|
205
|
+
...h,
|
|
206
|
+
code: u.sku.code || h.code,
|
|
207
|
+
name: u.sku.name || h.name,
|
|
208
|
+
unit: u.sku.unit || h.unit,
|
|
209
|
+
trackingMeasurement: u.sku.trackingMeasurement || h.trackingMeasurement,
|
|
210
|
+
valuation: u.sku.valuation || h.valuation,
|
|
211
|
+
defaultCost: u.sku.defaultCost || h.defaultCost,
|
|
212
|
+
thresholds: u.sku.thresholds || h.thresholds,
|
|
213
|
+
customAttributes: l
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
});
|
|
217
|
+
return {
|
|
218
|
+
invalidExcel: !1,
|
|
219
|
+
importCreateResult: m,
|
|
220
|
+
importUpdateResult: d
|
|
221
|
+
};
|
|
222
|
+
} catch (t) {
|
|
223
|
+
return {
|
|
224
|
+
invalidExcel: !0,
|
|
225
|
+
invalidExcelMessage: (t == null ? void 0 : t.message) ?? "Invalid excel",
|
|
226
|
+
importCreateResult: [],
|
|
227
|
+
importUpdateResult: []
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
export {
|
|
232
|
+
X as a,
|
|
233
|
+
E as b,
|
|
234
|
+
R as d,
|
|
235
|
+
G as e,
|
|
236
|
+
z as g,
|
|
237
|
+
A as s
|
|
238
|
+
};
|