@feedmepos/mf-menu 0.31.40-beta.2 → 0.31.40-prod
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-CoKv0BFp.js → App-aWEH-ZEk.js} +9 -9
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B14Q0hS_.js → ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js} +3 -3
- package/dist/{Catalog-BRovMtuI.js → Catalog-BoFfFdn8.js} +9 -8
- package/dist/{Category-DytZqgIt.js → Category-CWYbb3Jn.js} +4 -4
- package/dist/{Category-CT8-B4zh.js → Category-DZ45uikR.js} +6 -6
- package/dist/{CookingGuide-Ct5qRLG0.js → CookingGuide-BU0PRWIQ.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D3R3TCba.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js} +1 -1
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +50 -0
- package/dist/{Group-Dk1yQTTt.js → Group-BMQDeqiS.js} +1 -1
- package/dist/{Group-G_H8i5_8.js → Group-C0T_uknK.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CoTdB2d5.js → Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js} +8 -8
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +367 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BKx7uQtR.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js} +14 -13
- package/dist/{Ingredient-ChynYQq6.js → Ingredient-3lwDUQx_.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DyaUxnMx.js → InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js} +2 -2
- package/dist/LinkProductSideSheet-LDZjKX95.js +297 -0
- package/dist/{app-CiBqmBzO.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +2084 -2120
- package/dist/MenuSetting-AhutsCVy.js +185 -0
- package/dist/{PrintRoute-DwAZHUrQ.js → PrintRoute-DfJ-vUAb.js} +4 -4
- package/dist/{Product-Bx2NPQvC.js → Product-F4PoLm9v.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-od_O6x7E.js → Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js} +465 -468
- package/dist/{ProductInternalTools-BOguHh06.js → ProductInternalTools-DSGU-OqU.js} +6 -6
- package/dist/{Products-DA2hOsxr.js → Products-COzW2Z4g.js} +85 -88
- package/dist/{Publish-WATQWkjh.js → Publish-CDXVWCk2.js} +3 -3
- package/dist/{Recipe-WPwGgur3.js → Recipe-BZx4wrcP.js} +4 -4
- package/dist/{Scheduler-Djjggrh2.js → Scheduler-wHCWSeU2.js} +3 -3
- package/dist/{ServingSequence-CryZJTWA.js → ServingSequence-BbYEhDYh.js} +3 -3
- package/dist/{Setting-BtLsmoqY.js → Setting-C9Tlw1Iy.js} +45 -44
- package/dist/{Subcategory-BvlYDquD.js → Subcategory-C8AwfrKb.js} +4 -4
- package/dist/{Takeaway-8khxlcKQ.js → Takeaway-DaEUn-yM.js} +4 -4
- package/dist/{Takeaway-BBvFxAlx.js → Takeaway-t1053wg2.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-B8blN-yJ.js → Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CA9RlNkt.js → Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js} +95 -97
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js +5998 -0
- package/dist/{Unit-Diu00sM2.js → Unit-CnqptGCz.js} +2 -2
- package/dist/{Variant-CO15W0wb.js → Variant-DiOYOwJs.js} +3 -3
- package/dist/{_id_-CxA_FzSG.js → _id_-BSfU16VO.js} +75 -78
- package/dist/{app-Blbof2Ga.js → app-Cou6qPF2.js} +1 -1
- package/dist/{app-5ESai6-B.js → app-Ddb81PNo.js} +278 -278
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +1 -2
- package/dist/apps/mf-menu/src/app.d.ts +0 -144
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +0 -36
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +3 -9
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +9 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +4 -294
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +0 -40
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +0 -285
- package/dist/apps/mf-menu/src/helper/menu.d.ts +0 -285
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +0 -285
- package/dist/apps/mf-menu/src/stores/menu.d.ts +3 -293
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +0 -166
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-B_crHhZH.js +24 -0
- package/dist/assets/override-menu-BmlCEpHH.js +24 -0
- package/dist/assets/validate-menu-CF-psoB-.js +24 -0
- package/dist/{catalog-CXjEQ80k.js → catalog-DSuJhsUb.js} +1 -1
- package/dist/{catalogSetting-aJSUDY_z.js → catalogSetting-C3gEw9ov.js} +1 -1
- package/dist/{category-TqQULuHq.js → category-CwWq3KCE.js} +1 -1
- package/dist/{currency-CRjh8ne7.js → currency-g45Sh-t6.js} +1 -1
- package/dist/{dayjs.min-MBmYgyRY.js → dayjs.min-g3eN5z-V.js} +1 -1
- package/dist/index-0Q5T9VZV.js +214 -0
- package/dist/{index-dkHuztwB.js → index-0yRUi7LL.js} +1 -1
- package/dist/{index-CzjFGFvP.js → index-BLQCYEc6.js} +8 -7
- package/dist/{index-B1NS2hBa.js → index-QsLFbxyG.js} +4 -4
- package/dist/{item-Dj14On9a.js → item-BvvQ9urP.js} +386 -386
- package/dist/{jszip.min-Be1afVon.js → jszip.min-DzdUiaR4.js} +353 -353
- package/dist/{menu-C0Xu-iTb.js → menu-DFNvhoNQ.js} +31149 -31298
- package/dist/{menu-kRDoPBjm.js → menu-QrVg2Ph7.js} +7 -7
- package/dist/{menuV2-D6Gmxd9X.js → menuV2-Ezf_jW40.js} +137 -142
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CJlFGOpm.js → priceTier-zENsn3P_.js} +1 -1
- package/dist/{scheduler-B11d6fJr.js → scheduler-BuwGSv6A.js} +8 -8
- package/dist/{subcategory-D6hTbHP-.js → subcategory-O3L_zCJA.js} +2 -2
- package/dist/{toExcel-BedErXvS.js → toExcel-CpRy_4nG.js} +2 -2
- package/dist/{unit-D5jDzsM2.js → unit-Ct_7Hfa2.js} +41 -42
- package/package.json +3 -3
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B_Yv8Thl.js +0 -399
- package/dist/LinkProductSideSheet-DsoPo7Q_.js +0 -361
- package/dist/MenuSetting-CDSc-56P.js +0 -618
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-LVWB5CIa.js +0 -5994
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +0 -26
- package/dist/apps/mf-menu/src/utils/array.d.ts +0 -1
- package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +0 -12
- package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +0 -2
- package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +0 -176
- package/dist/assets/linked-status-x1efKEih.js +0 -13
- package/dist/assets/override-menu-D8d9BWzy.js +0 -13
- package/dist/assets/validate-menu-DUJ20GHx.js +0 -13
- package/dist/customAttributes-32VmzFKZ.js +0 -177
- package/dist/index-FzHOAFSW.js +0 -246
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type _ExtractActionsFromSetupStore, type _ExtractGettersFromSetupStore, type _ExtractStateFromSetupStore, type StoreDefinition } from "pinia";
|
|
2
2
|
import { type ComputedRef, type Ref } from "vue";
|
|
3
3
|
import { F_MENU_VERSION, type FdoDecimal, type PublishForRestaurantDto } from "@feedmepos/core-dart";
|
|
4
|
-
import type { FdoMasterCatalogSetting, FdoMenuCookingGuide, FdoMenuPrintDepartment, FdoMenuServeSequence, FdoMenuUnit, FdoMenuV4, FdoMenuV4Catalog, FdoMenuV4Category, FdoMenuV4Group, FdoMenuV4Item, FdoMenuV4Scheduler, FdoMenuV4Takeaway, FdoMenuV4VariantGroup, FdoProductTaxSetting,
|
|
4
|
+
import type { FdoMasterCatalogSetting, FdoMenuCookingGuide, FdoMenuPrintDepartment, FdoMenuServeSequence, FdoMenuUnit, FdoMenuV4, FdoMenuV4Catalog, FdoMenuV4Category, FdoMenuV4Group, FdoMenuV4Item, FdoMenuV4Scheduler, FdoMenuV4Takeaway, FdoMenuV4VariantGroup, FdoProductTaxSetting, FdtoRestaurantWithMenuV4, FdtoV4Tax } from "@feedmepos/menu/entity";
|
|
5
5
|
import { FdoMenuSubCategory } from "@feedmepos/menu/entity";
|
|
6
6
|
import { type UpdateMenuModuleRequest } from "@feedmepos/menu/manager";
|
|
7
7
|
import { type FdtoUpdateMenuRes, type MenuV4Doc, type UpdateMenuSettingReq } from "@/api";
|
|
@@ -15,12 +15,7 @@ interface MenuState {
|
|
|
15
15
|
currentCategoryIds: (string | null)[] | null;
|
|
16
16
|
currentCatalogId: string | null;
|
|
17
17
|
currentSchedulerId: string | null;
|
|
18
|
-
|
|
19
|
-
restaurantCustomAttributes?: {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
} | null;
|
|
22
|
-
restaurantAttributes?: FdtoRestaurantInfo | null;
|
|
23
|
-
};
|
|
18
|
+
currentRestaurantCustomAttributes: any;
|
|
24
19
|
}
|
|
25
20
|
interface ITaxSetting {
|
|
26
21
|
systemCode: string;
|
|
@@ -1459,82 +1454,25 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1459
1454
|
usePriceTiers: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1460
1455
|
priceTierRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1461
1456
|
priceTier: z.ZodString;
|
|
1462
|
-
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1463
|
-
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1464
|
-
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1465
|
-
}, "strip", z.ZodTypeAny, {
|
|
1466
|
-
restaurantAttributes?: any;
|
|
1467
|
-
restaurantCustomAttributes?: any;
|
|
1468
|
-
}, {
|
|
1469
|
-
restaurantAttributes?: any;
|
|
1470
|
-
restaurantCustomAttributes?: any;
|
|
1471
|
-
}>>>;
|
|
1472
1457
|
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1473
1458
|
}, "strip", z.ZodTypeAny, {
|
|
1474
1459
|
restaurantAttributes?: any;
|
|
1475
|
-
restaurantRule?: {
|
|
1476
|
-
restaurantAttributes?: any;
|
|
1477
|
-
restaurantCustomAttributes?: any;
|
|
1478
|
-
} | null | undefined;
|
|
1479
1460
|
priceTier: string;
|
|
1480
1461
|
}, {
|
|
1481
1462
|
restaurantAttributes?: any;
|
|
1482
|
-
restaurantRule?: {
|
|
1483
|
-
restaurantAttributes?: any;
|
|
1484
|
-
restaurantCustomAttributes?: any;
|
|
1485
|
-
} | null | undefined;
|
|
1486
1463
|
priceTier: string;
|
|
1487
1464
|
}>, "many">>>;
|
|
1488
1465
|
linkItemRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1489
1466
|
orderFrom: z.ZodEnum<["ALL", "POS_ONLY", "NONE"]>;
|
|
1490
|
-
ruleGroupIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1491
|
-
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1492
|
-
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1493
|
-
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1494
|
-
}, "strip", z.ZodTypeAny, {
|
|
1495
|
-
restaurantAttributes?: any;
|
|
1496
|
-
restaurantCustomAttributes?: any;
|
|
1497
|
-
}, {
|
|
1498
|
-
restaurantAttributes?: any;
|
|
1499
|
-
restaurantCustomAttributes?: any;
|
|
1500
|
-
}>>>;
|
|
1501
|
-
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1502
|
-
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1503
|
-
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1504
|
-
}, "strip", z.ZodTypeAny, {
|
|
1505
|
-
itemAttributes?: any;
|
|
1506
|
-
itemCustomAttributes?: any;
|
|
1507
|
-
}, {
|
|
1508
|
-
itemAttributes?: any;
|
|
1509
|
-
itemCustomAttributes?: any;
|
|
1510
|
-
}>>>;
|
|
1511
1467
|
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1512
1468
|
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1513
1469
|
}, "strip", z.ZodTypeAny, {
|
|
1514
1470
|
restaurantAttributes?: any;
|
|
1515
1471
|
itemAttributes?: any;
|
|
1516
|
-
restaurantRule?: {
|
|
1517
|
-
restaurantAttributes?: any;
|
|
1518
|
-
restaurantCustomAttributes?: any;
|
|
1519
|
-
} | null | undefined;
|
|
1520
|
-
ruleGroupIds?: string[] | null | undefined;
|
|
1521
|
-
itemRule?: {
|
|
1522
|
-
itemAttributes?: any;
|
|
1523
|
-
itemCustomAttributes?: any;
|
|
1524
|
-
} | null | undefined;
|
|
1525
1472
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1526
1473
|
}, {
|
|
1527
1474
|
restaurantAttributes?: any;
|
|
1528
1475
|
itemAttributes?: any;
|
|
1529
|
-
restaurantRule?: {
|
|
1530
|
-
restaurantAttributes?: any;
|
|
1531
|
-
restaurantCustomAttributes?: any;
|
|
1532
|
-
} | null | undefined;
|
|
1533
|
-
ruleGroupIds?: string[] | null | undefined;
|
|
1534
|
-
itemRule?: {
|
|
1535
|
-
itemAttributes?: any;
|
|
1536
|
-
itemCustomAttributes?: any;
|
|
1537
|
-
} | null | undefined;
|
|
1538
1476
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1539
1477
|
}>, "many">>>;
|
|
1540
1478
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1607,24 +1545,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1607
1545
|
usePriceTiers?: string[] | null | undefined;
|
|
1608
1546
|
priceTierRules?: {
|
|
1609
1547
|
restaurantAttributes?: any;
|
|
1610
|
-
restaurantRule?: {
|
|
1611
|
-
restaurantAttributes?: any;
|
|
1612
|
-
restaurantCustomAttributes?: any;
|
|
1613
|
-
} | null | undefined;
|
|
1614
1548
|
priceTier: string;
|
|
1615
1549
|
}[] | null | undefined;
|
|
1616
1550
|
linkItemRules?: {
|
|
1617
1551
|
restaurantAttributes?: any;
|
|
1618
1552
|
itemAttributes?: any;
|
|
1619
|
-
restaurantRule?: {
|
|
1620
|
-
restaurantAttributes?: any;
|
|
1621
|
-
restaurantCustomAttributes?: any;
|
|
1622
|
-
} | null | undefined;
|
|
1623
|
-
ruleGroupIds?: string[] | null | undefined;
|
|
1624
|
-
itemRule?: {
|
|
1625
|
-
itemAttributes?: any;
|
|
1626
|
-
itemCustomAttributes?: any;
|
|
1627
|
-
} | null | undefined;
|
|
1628
1553
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1629
1554
|
}[] | null | undefined;
|
|
1630
1555
|
name: string;
|
|
@@ -1840,24 +1765,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1840
1765
|
usePriceTiers?: string[] | null | undefined;
|
|
1841
1766
|
priceTierRules?: {
|
|
1842
1767
|
restaurantAttributes?: any;
|
|
1843
|
-
restaurantRule?: {
|
|
1844
|
-
restaurantAttributes?: any;
|
|
1845
|
-
restaurantCustomAttributes?: any;
|
|
1846
|
-
} | null | undefined;
|
|
1847
1768
|
priceTier: string;
|
|
1848
1769
|
}[] | null | undefined;
|
|
1849
1770
|
linkItemRules?: {
|
|
1850
1771
|
restaurantAttributes?: any;
|
|
1851
1772
|
itemAttributes?: any;
|
|
1852
|
-
restaurantRule?: {
|
|
1853
|
-
restaurantAttributes?: any;
|
|
1854
|
-
restaurantCustomAttributes?: any;
|
|
1855
|
-
} | null | undefined;
|
|
1856
|
-
ruleGroupIds?: string[] | null | undefined;
|
|
1857
|
-
itemRule?: {
|
|
1858
|
-
itemAttributes?: any;
|
|
1859
|
-
itemCustomAttributes?: any;
|
|
1860
|
-
} | null | undefined;
|
|
1861
1773
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1862
1774
|
}[] | null | undefined;
|
|
1863
1775
|
name: string;
|
|
@@ -5154,24 +5066,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
5154
5066
|
usePriceTiers?: string[] | null | undefined;
|
|
5155
5067
|
priceTierRules?: {
|
|
5156
5068
|
restaurantAttributes?: any;
|
|
5157
|
-
restaurantRule?: {
|
|
5158
|
-
restaurantAttributes?: any;
|
|
5159
|
-
restaurantCustomAttributes?: any;
|
|
5160
|
-
} | null | undefined;
|
|
5161
5069
|
priceTier: string;
|
|
5162
5070
|
}[] | null | undefined;
|
|
5163
5071
|
linkItemRules?: {
|
|
5164
5072
|
restaurantAttributes?: any;
|
|
5165
5073
|
itemAttributes?: any;
|
|
5166
|
-
restaurantRule?: {
|
|
5167
|
-
restaurantAttributes?: any;
|
|
5168
|
-
restaurantCustomAttributes?: any;
|
|
5169
|
-
} | null | undefined;
|
|
5170
|
-
ruleGroupIds?: string[] | null | undefined;
|
|
5171
|
-
itemRule?: {
|
|
5172
|
-
itemAttributes?: any;
|
|
5173
|
-
itemCustomAttributes?: any;
|
|
5174
|
-
} | null | undefined;
|
|
5175
5074
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
5176
5075
|
}[] | null | undefined;
|
|
5177
5076
|
name: string;
|
|
@@ -5850,24 +5749,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
5850
5749
|
usePriceTiers?: string[] | null | undefined;
|
|
5851
5750
|
priceTierRules?: {
|
|
5852
5751
|
restaurantAttributes?: any;
|
|
5853
|
-
restaurantRule?: {
|
|
5854
|
-
restaurantAttributes?: any;
|
|
5855
|
-
restaurantCustomAttributes?: any;
|
|
5856
|
-
} | null | undefined;
|
|
5857
5752
|
priceTier: string;
|
|
5858
5753
|
}[] | null | undefined;
|
|
5859
5754
|
linkItemRules?: {
|
|
5860
5755
|
restaurantAttributes?: any;
|
|
5861
5756
|
itemAttributes?: any;
|
|
5862
|
-
restaurantRule?: {
|
|
5863
|
-
restaurantAttributes?: any;
|
|
5864
|
-
restaurantCustomAttributes?: any;
|
|
5865
|
-
} | null | undefined;
|
|
5866
|
-
ruleGroupIds?: string[] | null | undefined;
|
|
5867
|
-
itemRule?: {
|
|
5868
|
-
itemAttributes?: any;
|
|
5869
|
-
itemCustomAttributes?: any;
|
|
5870
|
-
} | null | undefined;
|
|
5871
5757
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
5872
5758
|
}[] | null | undefined;
|
|
5873
5759
|
name: string;
|
|
@@ -6169,120 +6055,6 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
6169
6055
|
}, {
|
|
6170
6056
|
key: string;
|
|
6171
6057
|
}>, "many">>>;
|
|
6172
|
-
ruleGroupSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6173
|
-
groups: z.ZodArray<z.ZodObject<{
|
|
6174
|
-
_id: z.ZodString;
|
|
6175
|
-
name: z.ZodString;
|
|
6176
|
-
description: z.ZodString;
|
|
6177
|
-
rules: z.ZodArray<z.ZodObject<{
|
|
6178
|
-
_id: z.ZodString;
|
|
6179
|
-
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6180
|
-
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
6181
|
-
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
6182
|
-
}, "strip", z.ZodTypeAny, {
|
|
6183
|
-
restaurantAttributes?: any;
|
|
6184
|
-
restaurantCustomAttributes?: any;
|
|
6185
|
-
}, {
|
|
6186
|
-
restaurantAttributes?: any;
|
|
6187
|
-
restaurantCustomAttributes?: any;
|
|
6188
|
-
}>>>;
|
|
6189
|
-
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6190
|
-
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
6191
|
-
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
6192
|
-
}, "strip", z.ZodTypeAny, {
|
|
6193
|
-
itemAttributes?: any;
|
|
6194
|
-
itemCustomAttributes?: any;
|
|
6195
|
-
}, {
|
|
6196
|
-
itemAttributes?: any;
|
|
6197
|
-
itemCustomAttributes?: any;
|
|
6198
|
-
}>>>;
|
|
6199
|
-
}, "strip", z.ZodTypeAny, {
|
|
6200
|
-
restaurantRule?: {
|
|
6201
|
-
restaurantAttributes?: any;
|
|
6202
|
-
restaurantCustomAttributes?: any;
|
|
6203
|
-
} | null | undefined;
|
|
6204
|
-
itemRule?: {
|
|
6205
|
-
itemAttributes?: any;
|
|
6206
|
-
itemCustomAttributes?: any;
|
|
6207
|
-
} | null | undefined;
|
|
6208
|
-
_id: string;
|
|
6209
|
-
}, {
|
|
6210
|
-
restaurantRule?: {
|
|
6211
|
-
restaurantAttributes?: any;
|
|
6212
|
-
restaurantCustomAttributes?: any;
|
|
6213
|
-
} | null | undefined;
|
|
6214
|
-
itemRule?: {
|
|
6215
|
-
itemAttributes?: any;
|
|
6216
|
-
itemCustomAttributes?: any;
|
|
6217
|
-
} | null | undefined;
|
|
6218
|
-
_id: string;
|
|
6219
|
-
}>, "many">;
|
|
6220
|
-
}, "strip", z.ZodTypeAny, {
|
|
6221
|
-
name: string;
|
|
6222
|
-
description: string;
|
|
6223
|
-
_id: string;
|
|
6224
|
-
rules: {
|
|
6225
|
-
restaurantRule?: {
|
|
6226
|
-
restaurantAttributes?: any;
|
|
6227
|
-
restaurantCustomAttributes?: any;
|
|
6228
|
-
} | null | undefined;
|
|
6229
|
-
itemRule?: {
|
|
6230
|
-
itemAttributes?: any;
|
|
6231
|
-
itemCustomAttributes?: any;
|
|
6232
|
-
} | null | undefined;
|
|
6233
|
-
_id: string;
|
|
6234
|
-
}[];
|
|
6235
|
-
}, {
|
|
6236
|
-
name: string;
|
|
6237
|
-
description: string;
|
|
6238
|
-
_id: string;
|
|
6239
|
-
rules: {
|
|
6240
|
-
restaurantRule?: {
|
|
6241
|
-
restaurantAttributes?: any;
|
|
6242
|
-
restaurantCustomAttributes?: any;
|
|
6243
|
-
} | null | undefined;
|
|
6244
|
-
itemRule?: {
|
|
6245
|
-
itemAttributes?: any;
|
|
6246
|
-
itemCustomAttributes?: any;
|
|
6247
|
-
} | null | undefined;
|
|
6248
|
-
_id: string;
|
|
6249
|
-
}[];
|
|
6250
|
-
}>, "many">;
|
|
6251
|
-
}, "strip", z.ZodTypeAny, {
|
|
6252
|
-
groups: {
|
|
6253
|
-
name: string;
|
|
6254
|
-
description: string;
|
|
6255
|
-
_id: string;
|
|
6256
|
-
rules: {
|
|
6257
|
-
restaurantRule?: {
|
|
6258
|
-
restaurantAttributes?: any;
|
|
6259
|
-
restaurantCustomAttributes?: any;
|
|
6260
|
-
} | null | undefined;
|
|
6261
|
-
itemRule?: {
|
|
6262
|
-
itemAttributes?: any;
|
|
6263
|
-
itemCustomAttributes?: any;
|
|
6264
|
-
} | null | undefined;
|
|
6265
|
-
_id: string;
|
|
6266
|
-
}[];
|
|
6267
|
-
}[];
|
|
6268
|
-
}, {
|
|
6269
|
-
groups: {
|
|
6270
|
-
name: string;
|
|
6271
|
-
description: string;
|
|
6272
|
-
_id: string;
|
|
6273
|
-
rules: {
|
|
6274
|
-
restaurantRule?: {
|
|
6275
|
-
restaurantAttributes?: any;
|
|
6276
|
-
restaurantCustomAttributes?: any;
|
|
6277
|
-
} | null | undefined;
|
|
6278
|
-
itemRule?: {
|
|
6279
|
-
itemAttributes?: any;
|
|
6280
|
-
itemCustomAttributes?: any;
|
|
6281
|
-
} | null | undefined;
|
|
6282
|
-
_id: string;
|
|
6283
|
-
}[];
|
|
6284
|
-
}[];
|
|
6285
|
-
}>>>;
|
|
6286
6058
|
lowStockThreshold: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
6287
6059
|
}, "strip", z.ZodTypeAny, {
|
|
6288
6060
|
updatedAt?: string | null | undefined;
|
|
@@ -6303,24 +6075,6 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
6303
6075
|
priceTierSettings?: {
|
|
6304
6076
|
key: string;
|
|
6305
6077
|
}[] | null | undefined;
|
|
6306
|
-
ruleGroupSettings?: {
|
|
6307
|
-
groups: {
|
|
6308
|
-
name: string;
|
|
6309
|
-
description: string;
|
|
6310
|
-
_id: string;
|
|
6311
|
-
rules: {
|
|
6312
|
-
restaurantRule?: {
|
|
6313
|
-
restaurantAttributes?: any;
|
|
6314
|
-
restaurantCustomAttributes?: any;
|
|
6315
|
-
} | null | undefined;
|
|
6316
|
-
itemRule?: {
|
|
6317
|
-
itemAttributes?: any;
|
|
6318
|
-
itemCustomAttributes?: any;
|
|
6319
|
-
} | null | undefined;
|
|
6320
|
-
_id: string;
|
|
6321
|
-
}[];
|
|
6322
|
-
}[];
|
|
6323
|
-
} | null | undefined;
|
|
6324
6078
|
_id: string;
|
|
6325
6079
|
modules: {
|
|
6326
6080
|
subCategory?: {
|
|
@@ -6749,24 +6503,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
6749
6503
|
usePriceTiers?: string[] | null | undefined;
|
|
6750
6504
|
priceTierRules?: {
|
|
6751
6505
|
restaurantAttributes?: any;
|
|
6752
|
-
restaurantRule?: {
|
|
6753
|
-
restaurantAttributes?: any;
|
|
6754
|
-
restaurantCustomAttributes?: any;
|
|
6755
|
-
} | null | undefined;
|
|
6756
6506
|
priceTier: string;
|
|
6757
6507
|
}[] | null | undefined;
|
|
6758
6508
|
linkItemRules?: {
|
|
6759
6509
|
restaurantAttributes?: any;
|
|
6760
6510
|
itemAttributes?: any;
|
|
6761
|
-
restaurantRule?: {
|
|
6762
|
-
restaurantAttributes?: any;
|
|
6763
|
-
restaurantCustomAttributes?: any;
|
|
6764
|
-
} | null | undefined;
|
|
6765
|
-
ruleGroupIds?: string[] | null | undefined;
|
|
6766
|
-
itemRule?: {
|
|
6767
|
-
itemAttributes?: any;
|
|
6768
|
-
itemCustomAttributes?: any;
|
|
6769
|
-
} | null | undefined;
|
|
6770
6511
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
6771
6512
|
}[] | null | undefined;
|
|
6772
6513
|
name: string;
|
|
@@ -7038,24 +6779,6 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
7038
6779
|
priceTierSettings?: {
|
|
7039
6780
|
key: string;
|
|
7040
6781
|
}[] | null | undefined;
|
|
7041
|
-
ruleGroupSettings?: {
|
|
7042
|
-
groups: {
|
|
7043
|
-
name: string;
|
|
7044
|
-
description: string;
|
|
7045
|
-
_id: string;
|
|
7046
|
-
rules: {
|
|
7047
|
-
restaurantRule?: {
|
|
7048
|
-
restaurantAttributes?: any;
|
|
7049
|
-
restaurantCustomAttributes?: any;
|
|
7050
|
-
} | null | undefined;
|
|
7051
|
-
itemRule?: {
|
|
7052
|
-
itemAttributes?: any;
|
|
7053
|
-
itemCustomAttributes?: any;
|
|
7054
|
-
} | null | undefined;
|
|
7055
|
-
_id: string;
|
|
7056
|
-
}[];
|
|
7057
|
-
}[];
|
|
7058
|
-
} | null | undefined;
|
|
7059
6782
|
_id: string;
|
|
7060
6783
|
modules: {
|
|
7061
6784
|
subCategory?: {
|
|
@@ -7484,24 +7207,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
7484
7207
|
usePriceTiers?: string[] | null | undefined;
|
|
7485
7208
|
priceTierRules?: {
|
|
7486
7209
|
restaurantAttributes?: any;
|
|
7487
|
-
restaurantRule?: {
|
|
7488
|
-
restaurantAttributes?: any;
|
|
7489
|
-
restaurantCustomAttributes?: any;
|
|
7490
|
-
} | null | undefined;
|
|
7491
7210
|
priceTier: string;
|
|
7492
7211
|
}[] | null | undefined;
|
|
7493
7212
|
linkItemRules?: {
|
|
7494
7213
|
restaurantAttributes?: any;
|
|
7495
7214
|
itemAttributes?: any;
|
|
7496
|
-
restaurantRule?: {
|
|
7497
|
-
restaurantAttributes?: any;
|
|
7498
|
-
restaurantCustomAttributes?: any;
|
|
7499
|
-
} | null | undefined;
|
|
7500
|
-
ruleGroupIds?: string[] | null | undefined;
|
|
7501
|
-
itemRule?: {
|
|
7502
|
-
itemAttributes?: any;
|
|
7503
|
-
itemCustomAttributes?: any;
|
|
7504
|
-
} | null | undefined;
|
|
7505
7215
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
7506
7216
|
}[] | null | undefined;
|
|
7507
7217
|
name: string;
|
|
@@ -7795,7 +7505,7 @@ interface MenuStore {
|
|
|
7795
7505
|
selectCatalog: (id: string | null) => void;
|
|
7796
7506
|
selectScheduler: (id: string | null) => void;
|
|
7797
7507
|
selectCategory: (id: (string | null)[] | null) => void;
|
|
7798
|
-
|
|
7508
|
+
setRestaurantCustomAttributes: (attr?: any) => void;
|
|
7799
7509
|
migrate: () => Promise<void>;
|
|
7800
7510
|
updateMenu: (data: UpdateMenuModuleRequest | UpdateMenuModuleRequest[], performValidate?: boolean) => Promise<FdtoUpdateMenuRes | void>;
|
|
7801
7511
|
publishMenu: (dto: PublishForRestaurantDto, shouldRefreshData?: boolean) => Promise<void>;
|