@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.
Files changed (91) hide show
  1. package/dist/{App-CoKv0BFp.js → App-aWEH-ZEk.js} +9 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B14Q0hS_.js → ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js} +3 -3
  3. package/dist/{Catalog-BRovMtuI.js → Catalog-BoFfFdn8.js} +9 -8
  4. package/dist/{Category-DytZqgIt.js → Category-CWYbb3Jn.js} +4 -4
  5. package/dist/{Category-CT8-B4zh.js → Category-DZ45uikR.js} +6 -6
  6. package/dist/{CookingGuide-Ct5qRLG0.js → CookingGuide-BU0PRWIQ.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D3R3TCba.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js} +1 -1
  8. package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +50 -0
  9. package/dist/{Group-Dk1yQTTt.js → Group-BMQDeqiS.js} +1 -1
  10. package/dist/{Group-G_H8i5_8.js → Group-C0T_uknK.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-CoTdB2d5.js → Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js} +8 -8
  12. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +367 -0
  13. 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
  14. package/dist/{Ingredient-ChynYQq6.js → Ingredient-3lwDUQx_.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DyaUxnMx.js → InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js} +2 -2
  16. package/dist/LinkProductSideSheet-LDZjKX95.js +297 -0
  17. package/dist/{app-CiBqmBzO.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +2084 -2120
  18. package/dist/MenuSetting-AhutsCVy.js +185 -0
  19. package/dist/{PrintRoute-DwAZHUrQ.js → PrintRoute-DfJ-vUAb.js} +4 -4
  20. package/dist/{Product-Bx2NPQvC.js → Product-F4PoLm9v.js} +1 -1
  21. 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
  22. package/dist/{ProductInternalTools-BOguHh06.js → ProductInternalTools-DSGU-OqU.js} +6 -6
  23. package/dist/{Products-DA2hOsxr.js → Products-COzW2Z4g.js} +85 -88
  24. package/dist/{Publish-WATQWkjh.js → Publish-CDXVWCk2.js} +3 -3
  25. package/dist/{Recipe-WPwGgur3.js → Recipe-BZx4wrcP.js} +4 -4
  26. package/dist/{Scheduler-Djjggrh2.js → Scheduler-wHCWSeU2.js} +3 -3
  27. package/dist/{ServingSequence-CryZJTWA.js → ServingSequence-BbYEhDYh.js} +3 -3
  28. package/dist/{Setting-BtLsmoqY.js → Setting-C9Tlw1Iy.js} +45 -44
  29. package/dist/{Subcategory-BvlYDquD.js → Subcategory-C8AwfrKb.js} +4 -4
  30. package/dist/{Takeaway-8khxlcKQ.js → Takeaway-DaEUn-yM.js} +4 -4
  31. package/dist/{Takeaway-BBvFxAlx.js → Takeaway-t1053wg2.js} +1 -1
  32. 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
  33. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CA9RlNkt.js → Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js} +95 -97
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js +5998 -0
  35. package/dist/{Unit-Diu00sM2.js → Unit-CnqptGCz.js} +2 -2
  36. package/dist/{Variant-CO15W0wb.js → Variant-DiOYOwJs.js} +3 -3
  37. package/dist/{_id_-CxA_FzSG.js → _id_-BSfU16VO.js} +75 -78
  38. package/dist/{app-Blbof2Ga.js → app-Cou6qPF2.js} +1 -1
  39. package/dist/{app-5ESai6-B.js → app-Ddb81PNo.js} +278 -278
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/src/api/menu.d.ts +1 -2
  42. package/dist/apps/mf-menu/src/app.d.ts +0 -144
  43. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +0 -36
  44. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +3 -9
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +9 -2
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +4 -294
  47. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +0 -40
  48. package/dist/apps/mf-menu/src/helper/import-export.d.ts +0 -285
  49. package/dist/apps/mf-menu/src/helper/menu.d.ts +0 -285
  50. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +0 -285
  51. package/dist/apps/mf-menu/src/stores/menu.d.ts +3 -293
  52. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +0 -166
  53. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  54. package/dist/assets/linked-status-B_crHhZH.js +24 -0
  55. package/dist/assets/override-menu-BmlCEpHH.js +24 -0
  56. package/dist/assets/validate-menu-CF-psoB-.js +24 -0
  57. package/dist/{catalog-CXjEQ80k.js → catalog-DSuJhsUb.js} +1 -1
  58. package/dist/{catalogSetting-aJSUDY_z.js → catalogSetting-C3gEw9ov.js} +1 -1
  59. package/dist/{category-TqQULuHq.js → category-CwWq3KCE.js} +1 -1
  60. package/dist/{currency-CRjh8ne7.js → currency-g45Sh-t6.js} +1 -1
  61. package/dist/{dayjs.min-MBmYgyRY.js → dayjs.min-g3eN5z-V.js} +1 -1
  62. package/dist/index-0Q5T9VZV.js +214 -0
  63. package/dist/{index-dkHuztwB.js → index-0yRUi7LL.js} +1 -1
  64. package/dist/{index-CzjFGFvP.js → index-BLQCYEc6.js} +8 -7
  65. package/dist/{index-B1NS2hBa.js → index-QsLFbxyG.js} +4 -4
  66. package/dist/{item-Dj14On9a.js → item-BvvQ9urP.js} +386 -386
  67. package/dist/{jszip.min-Be1afVon.js → jszip.min-DzdUiaR4.js} +353 -353
  68. package/dist/{menu-C0Xu-iTb.js → menu-DFNvhoNQ.js} +31149 -31298
  69. package/dist/{menu-kRDoPBjm.js → menu-QrVg2Ph7.js} +7 -7
  70. package/dist/{menuV2-D6Gmxd9X.js → menuV2-Ezf_jW40.js} +137 -142
  71. package/dist/mf-menu.css +1 -1
  72. package/dist/{priceTier-CJlFGOpm.js → priceTier-zENsn3P_.js} +1 -1
  73. package/dist/{scheduler-B11d6fJr.js → scheduler-BuwGSv6A.js} +8 -8
  74. package/dist/{subcategory-D6hTbHP-.js → subcategory-O3L_zCJA.js} +2 -2
  75. package/dist/{toExcel-BedErXvS.js → toExcel-CpRy_4nG.js} +2 -2
  76. package/dist/{unit-D5jDzsM2.js → unit-Ct_7Hfa2.js} +41 -42
  77. package/package.json +3 -3
  78. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B_Yv8Thl.js +0 -399
  79. package/dist/LinkProductSideSheet-DsoPo7Q_.js +0 -361
  80. package/dist/MenuSetting-CDSc-56P.js +0 -618
  81. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-LVWB5CIa.js +0 -5994
  82. package/dist/apps/mf-menu/src/composable/attributes.d.ts +0 -26
  83. package/dist/apps/mf-menu/src/utils/array.d.ts +0 -1
  84. package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +0 -12
  85. package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +0 -2
  86. package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +0 -176
  87. package/dist/assets/linked-status-x1efKEih.js +0 -13
  88. package/dist/assets/override-menu-D8d9BWzy.js +0 -13
  89. package/dist/assets/validate-menu-DUJ20GHx.js +0 -13
  90. package/dist/customAttributes-32VmzFKZ.js +0 -177
  91. package/dist/index-FzHOAFSW.js +0 -246
@@ -1,6 +1,6 @@
1
1
  import { type ComputedRef, type Ref, type ShallowReactive, type ShallowRef } from "vue";
2
2
  import { F_MENU_VERSION, type FdoDecimal } from "@feedmepos/core-dart";
3
- import type { FdoMenuCookingGuide, FdoMenuPrintDepartment, FdoMenuServeSequence, FdoMenuUnit, FdoMenuV4, FdoMenuV4Catalog, FdoMenuV4Category, FdoMenuV4Group, FdoMenuV4Scheduler, FdoMenuV4Takeaway, FdoMenuV4VariantGroup, FdoProductTaxSetting, FdtoRestaurantWithMenuV4, FdtoV4Tax, FdoMenuV4Item, FdoMenuSubCategory, FdtoRestaurantInfo } from "@feedmepos/menu/entity";
3
+ import type { FdoMenuCookingGuide, FdoMenuPrintDepartment, FdoMenuServeSequence, FdoMenuUnit, FdoMenuV4, FdoMenuV4Catalog, FdoMenuV4Category, FdoMenuV4Group, FdoMenuV4Scheduler, FdoMenuV4Takeaway, FdoMenuV4VariantGroup, FdoProductTaxSetting, FdtoRestaurantWithMenuV4, FdtoV4Tax, FdoMenuV4Item, FdoMenuSubCategory } from "@feedmepos/menu/entity";
4
4
  import { type UpdateMenuModuleRequest } from "@feedmepos/menu/manager";
5
5
  import { type FdtoUpdateMenuRes, type MenuV4Doc, type UpdateMenuSettingReq } from "@/api";
6
6
  import { type CategorizedItem } from "@/helper/menu";
@@ -13,12 +13,7 @@ interface MenuState {
13
13
  currentCategoryIds: (string | null)[] | null;
14
14
  currentCatalogId: string | null;
15
15
  currentSchedulerId: string | null;
16
- currentRestaurantAttrParams: {
17
- restaurantCustomAttributes?: {
18
- [key: string]: any;
19
- } | null;
20
- restaurantAttributes?: FdtoRestaurantInfo | null;
21
- };
16
+ currentRestaurantCustomAttributes: any;
22
17
  }
23
18
  interface ITaxSetting {
24
19
  systemCode: string;
@@ -1457,82 +1452,25 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
1457
1452
  usePriceTiers: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1458
1453
  priceTierRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1459
1454
  priceTier: z.ZodString;
1460
- restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1461
- restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
1462
- restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
1463
- }, "strip", z.ZodTypeAny, {
1464
- restaurantAttributes?: any;
1465
- restaurantCustomAttributes?: any;
1466
- }, {
1467
- restaurantAttributes?: any;
1468
- restaurantCustomAttributes?: any;
1469
- }>>>;
1470
1455
  restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
1471
1456
  }, "strip", z.ZodTypeAny, {
1472
1457
  restaurantAttributes?: any;
1473
- restaurantRule?: {
1474
- restaurantAttributes?: any;
1475
- restaurantCustomAttributes?: any;
1476
- } | null | undefined;
1477
1458
  priceTier: string;
1478
1459
  }, {
1479
1460
  restaurantAttributes?: any;
1480
- restaurantRule?: {
1481
- restaurantAttributes?: any;
1482
- restaurantCustomAttributes?: any;
1483
- } | null | undefined;
1484
1461
  priceTier: string;
1485
1462
  }>, "many">>>;
1486
1463
  linkItemRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1487
1464
  orderFrom: z.ZodEnum<["ALL", "POS_ONLY", "NONE"]>;
1488
- ruleGroupIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1489
- restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1490
- restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
1491
- restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
1492
- }, "strip", z.ZodTypeAny, {
1493
- restaurantAttributes?: any;
1494
- restaurantCustomAttributes?: any;
1495
- }, {
1496
- restaurantAttributes?: any;
1497
- restaurantCustomAttributes?: any;
1498
- }>>>;
1499
- itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1500
- itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
1501
- itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
1502
- }, "strip", z.ZodTypeAny, {
1503
- itemAttributes?: any;
1504
- itemCustomAttributes?: any;
1505
- }, {
1506
- itemAttributes?: any;
1507
- itemCustomAttributes?: any;
1508
- }>>>;
1509
1465
  restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
1510
1466
  itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
1511
1467
  }, "strip", z.ZodTypeAny, {
1512
1468
  restaurantAttributes?: any;
1513
1469
  itemAttributes?: any;
1514
- restaurantRule?: {
1515
- restaurantAttributes?: any;
1516
- restaurantCustomAttributes?: any;
1517
- } | null | undefined;
1518
- ruleGroupIds?: string[] | null | undefined;
1519
- itemRule?: {
1520
- itemAttributes?: any;
1521
- itemCustomAttributes?: any;
1522
- } | null | undefined;
1523
1470
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
1524
1471
  }, {
1525
1472
  restaurantAttributes?: any;
1526
1473
  itemAttributes?: any;
1527
- restaurantRule?: {
1528
- restaurantAttributes?: any;
1529
- restaurantCustomAttributes?: any;
1530
- } | null | undefined;
1531
- ruleGroupIds?: string[] | null | undefined;
1532
- itemRule?: {
1533
- itemAttributes?: any;
1534
- itemCustomAttributes?: any;
1535
- } | null | undefined;
1536
1474
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
1537
1475
  }>, "many">>>;
1538
1476
  }, "strip", z.ZodTypeAny, {
@@ -1605,24 +1543,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
1605
1543
  usePriceTiers?: string[] | null | undefined;
1606
1544
  priceTierRules?: {
1607
1545
  restaurantAttributes?: any;
1608
- restaurantRule?: {
1609
- restaurantAttributes?: any;
1610
- restaurantCustomAttributes?: any;
1611
- } | null | undefined;
1612
1546
  priceTier: string;
1613
1547
  }[] | null | undefined;
1614
1548
  linkItemRules?: {
1615
1549
  restaurantAttributes?: any;
1616
1550
  itemAttributes?: any;
1617
- restaurantRule?: {
1618
- restaurantAttributes?: any;
1619
- restaurantCustomAttributes?: any;
1620
- } | null | undefined;
1621
- ruleGroupIds?: string[] | null | undefined;
1622
- itemRule?: {
1623
- itemAttributes?: any;
1624
- itemCustomAttributes?: any;
1625
- } | null | undefined;
1626
1551
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
1627
1552
  }[] | null | undefined;
1628
1553
  name: string;
@@ -1838,24 +1763,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
1838
1763
  usePriceTiers?: string[] | null | undefined;
1839
1764
  priceTierRules?: {
1840
1765
  restaurantAttributes?: any;
1841
- restaurantRule?: {
1842
- restaurantAttributes?: any;
1843
- restaurantCustomAttributes?: any;
1844
- } | null | undefined;
1845
1766
  priceTier: string;
1846
1767
  }[] | null | undefined;
1847
1768
  linkItemRules?: {
1848
1769
  restaurantAttributes?: any;
1849
1770
  itemAttributes?: any;
1850
- restaurantRule?: {
1851
- restaurantAttributes?: any;
1852
- restaurantCustomAttributes?: any;
1853
- } | null | undefined;
1854
- ruleGroupIds?: string[] | null | undefined;
1855
- itemRule?: {
1856
- itemAttributes?: any;
1857
- itemCustomAttributes?: any;
1858
- } | null | undefined;
1859
1771
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
1860
1772
  }[] | null | undefined;
1861
1773
  name: string;
@@ -5152,24 +5064,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
5152
5064
  usePriceTiers?: string[] | null | undefined;
5153
5065
  priceTierRules?: {
5154
5066
  restaurantAttributes?: any;
5155
- restaurantRule?: {
5156
- restaurantAttributes?: any;
5157
- restaurantCustomAttributes?: any;
5158
- } | null | undefined;
5159
5067
  priceTier: string;
5160
5068
  }[] | null | undefined;
5161
5069
  linkItemRules?: {
5162
5070
  restaurantAttributes?: any;
5163
5071
  itemAttributes?: any;
5164
- restaurantRule?: {
5165
- restaurantAttributes?: any;
5166
- restaurantCustomAttributes?: any;
5167
- } | null | undefined;
5168
- ruleGroupIds?: string[] | null | undefined;
5169
- itemRule?: {
5170
- itemAttributes?: any;
5171
- itemCustomAttributes?: any;
5172
- } | null | undefined;
5173
5072
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
5174
5073
  }[] | null | undefined;
5175
5074
  name: string;
@@ -5848,24 +5747,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
5848
5747
  usePriceTiers?: string[] | null | undefined;
5849
5748
  priceTierRules?: {
5850
5749
  restaurantAttributes?: any;
5851
- restaurantRule?: {
5852
- restaurantAttributes?: any;
5853
- restaurantCustomAttributes?: any;
5854
- } | null | undefined;
5855
5750
  priceTier: string;
5856
5751
  }[] | null | undefined;
5857
5752
  linkItemRules?: {
5858
5753
  restaurantAttributes?: any;
5859
5754
  itemAttributes?: any;
5860
- restaurantRule?: {
5861
- restaurantAttributes?: any;
5862
- restaurantCustomAttributes?: any;
5863
- } | null | undefined;
5864
- ruleGroupIds?: string[] | null | undefined;
5865
- itemRule?: {
5866
- itemAttributes?: any;
5867
- itemCustomAttributes?: any;
5868
- } | null | undefined;
5869
5755
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
5870
5756
  }[] | null | undefined;
5871
5757
  name: string;
@@ -6167,120 +6053,6 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
6167
6053
  }, {
6168
6054
  key: string;
6169
6055
  }>, "many">>>;
6170
- ruleGroupSettings: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6171
- groups: z.ZodArray<z.ZodObject<{
6172
- _id: z.ZodString;
6173
- name: z.ZodString;
6174
- description: z.ZodString;
6175
- rules: z.ZodArray<z.ZodObject<{
6176
- _id: z.ZodString;
6177
- restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6178
- restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
6179
- restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
6180
- }, "strip", z.ZodTypeAny, {
6181
- restaurantAttributes?: any;
6182
- restaurantCustomAttributes?: any;
6183
- }, {
6184
- restaurantAttributes?: any;
6185
- restaurantCustomAttributes?: any;
6186
- }>>>;
6187
- itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6188
- itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
6189
- itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
6190
- }, "strip", z.ZodTypeAny, {
6191
- itemAttributes?: any;
6192
- itemCustomAttributes?: any;
6193
- }, {
6194
- itemAttributes?: any;
6195
- itemCustomAttributes?: any;
6196
- }>>>;
6197
- }, "strip", z.ZodTypeAny, {
6198
- restaurantRule?: {
6199
- restaurantAttributes?: any;
6200
- restaurantCustomAttributes?: any;
6201
- } | null | undefined;
6202
- itemRule?: {
6203
- itemAttributes?: any;
6204
- itemCustomAttributes?: any;
6205
- } | null | undefined;
6206
- _id: string;
6207
- }, {
6208
- restaurantRule?: {
6209
- restaurantAttributes?: any;
6210
- restaurantCustomAttributes?: any;
6211
- } | null | undefined;
6212
- itemRule?: {
6213
- itemAttributes?: any;
6214
- itemCustomAttributes?: any;
6215
- } | null | undefined;
6216
- _id: string;
6217
- }>, "many">;
6218
- }, "strip", z.ZodTypeAny, {
6219
- name: string;
6220
- description: string;
6221
- _id: string;
6222
- rules: {
6223
- restaurantRule?: {
6224
- restaurantAttributes?: any;
6225
- restaurantCustomAttributes?: any;
6226
- } | null | undefined;
6227
- itemRule?: {
6228
- itemAttributes?: any;
6229
- itemCustomAttributes?: any;
6230
- } | null | undefined;
6231
- _id: string;
6232
- }[];
6233
- }, {
6234
- name: string;
6235
- description: string;
6236
- _id: string;
6237
- rules: {
6238
- restaurantRule?: {
6239
- restaurantAttributes?: any;
6240
- restaurantCustomAttributes?: any;
6241
- } | null | undefined;
6242
- itemRule?: {
6243
- itemAttributes?: any;
6244
- itemCustomAttributes?: any;
6245
- } | null | undefined;
6246
- _id: string;
6247
- }[];
6248
- }>, "many">;
6249
- }, "strip", z.ZodTypeAny, {
6250
- groups: {
6251
- name: string;
6252
- description: string;
6253
- _id: string;
6254
- rules: {
6255
- restaurantRule?: {
6256
- restaurantAttributes?: any;
6257
- restaurantCustomAttributes?: any;
6258
- } | null | undefined;
6259
- itemRule?: {
6260
- itemAttributes?: any;
6261
- itemCustomAttributes?: any;
6262
- } | null | undefined;
6263
- _id: string;
6264
- }[];
6265
- }[];
6266
- }, {
6267
- groups: {
6268
- name: string;
6269
- description: string;
6270
- _id: string;
6271
- rules: {
6272
- restaurantRule?: {
6273
- restaurantAttributes?: any;
6274
- restaurantCustomAttributes?: any;
6275
- } | null | undefined;
6276
- itemRule?: {
6277
- itemAttributes?: any;
6278
- itemCustomAttributes?: any;
6279
- } | null | undefined;
6280
- _id: string;
6281
- }[];
6282
- }[];
6283
- }>>>;
6284
6056
  lowStockThreshold: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
6285
6057
  }, "strip", z.ZodTypeAny, {
6286
6058
  updatedAt?: string | null | undefined;
@@ -6301,24 +6073,6 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
6301
6073
  priceTierSettings?: {
6302
6074
  key: string;
6303
6075
  }[] | null | undefined;
6304
- ruleGroupSettings?: {
6305
- groups: {
6306
- name: string;
6307
- description: string;
6308
- _id: string;
6309
- rules: {
6310
- restaurantRule?: {
6311
- restaurantAttributes?: any;
6312
- restaurantCustomAttributes?: any;
6313
- } | null | undefined;
6314
- itemRule?: {
6315
- itemAttributes?: any;
6316
- itemCustomAttributes?: any;
6317
- } | null | undefined;
6318
- _id: string;
6319
- }[];
6320
- }[];
6321
- } | null | undefined;
6322
6076
  _id: string;
6323
6077
  modules: {
6324
6078
  subCategory?: {
@@ -6747,24 +6501,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
6747
6501
  usePriceTiers?: string[] | null | undefined;
6748
6502
  priceTierRules?: {
6749
6503
  restaurantAttributes?: any;
6750
- restaurantRule?: {
6751
- restaurantAttributes?: any;
6752
- restaurantCustomAttributes?: any;
6753
- } | null | undefined;
6754
6504
  priceTier: string;
6755
6505
  }[] | null | undefined;
6756
6506
  linkItemRules?: {
6757
6507
  restaurantAttributes?: any;
6758
6508
  itemAttributes?: any;
6759
- restaurantRule?: {
6760
- restaurantAttributes?: any;
6761
- restaurantCustomAttributes?: any;
6762
- } | null | undefined;
6763
- ruleGroupIds?: string[] | null | undefined;
6764
- itemRule?: {
6765
- itemAttributes?: any;
6766
- itemCustomAttributes?: any;
6767
- } | null | undefined;
6768
6509
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
6769
6510
  }[] | null | undefined;
6770
6511
  name: string;
@@ -7036,24 +6777,6 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
7036
6777
  priceTierSettings?: {
7037
6778
  key: string;
7038
6779
  }[] | null | undefined;
7039
- ruleGroupSettings?: {
7040
- groups: {
7041
- name: string;
7042
- description: string;
7043
- _id: string;
7044
- rules: {
7045
- restaurantRule?: {
7046
- restaurantAttributes?: any;
7047
- restaurantCustomAttributes?: any;
7048
- } | null | undefined;
7049
- itemRule?: {
7050
- itemAttributes?: any;
7051
- itemCustomAttributes?: any;
7052
- } | null | undefined;
7053
- _id: string;
7054
- }[];
7055
- }[];
7056
- } | null | undefined;
7057
6780
  _id: string;
7058
6781
  modules: {
7059
6782
  subCategory?: {
@@ -7482,24 +7205,11 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
7482
7205
  usePriceTiers?: string[] | null | undefined;
7483
7206
  priceTierRules?: {
7484
7207
  restaurantAttributes?: any;
7485
- restaurantRule?: {
7486
- restaurantAttributes?: any;
7487
- restaurantCustomAttributes?: any;
7488
- } | null | undefined;
7489
7208
  priceTier: string;
7490
7209
  }[] | null | undefined;
7491
7210
  linkItemRules?: {
7492
7211
  restaurantAttributes?: any;
7493
7212
  itemAttributes?: any;
7494
- restaurantRule?: {
7495
- restaurantAttributes?: any;
7496
- restaurantCustomAttributes?: any;
7497
- } | null | undefined;
7498
- ruleGroupIds?: string[] | null | undefined;
7499
- itemRule?: {
7500
- itemAttributes?: any;
7501
- itemCustomAttributes?: any;
7502
- } | null | undefined;
7503
7213
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
7504
7214
  }[] | null | undefined;
7505
7215
  name: string;
@@ -7796,7 +7506,7 @@ interface MenuStoreType {
7796
7506
  selectCatalog: (id: string | null) => void;
7797
7507
  selectScheduler: (id: string | null) => void;
7798
7508
  selectCategory: (id: (string | null)[] | null) => void;
7799
- setRestaurantAttrParams: (attr?: any) => void;
7509
+ setRestaurantCustomAttributes: (attr?: any) => void;
7800
7510
  updateMenu: (data: UpdateMenuModuleRequest | UpdateMenuModuleRequest[], performValidate?: boolean) => Promise<FdtoUpdateMenuRes | void>;
7801
7511
  updateMenuSetting: (data: UpdateMenuSettingReq) => Promise<MenuV4Doc>;
7802
7512
  computeMergedMenu: () => Promise<FdoMenuV4>;
@@ -7815,5 +7525,5 @@ interface MenuStoreType {
7815
7525
  redoHistory: () => void;
7816
7526
  clearHistory: () => void;
7817
7527
  }
7818
- export declare const useMenuStore: import("pinia").StoreDefinition<"mf-menu-store-v2", Pick<MenuStoreType, "state" | "mergedMenu" | "workerIsComputing" | "mergedMenuChangeId">, Pick<MenuStoreType, "groups" | "categories" | "items" | "version" | "isV4" | "serveSequence" | "catalogs" | "currentCatalog" | "schedulers" | "currentScheduler" | "catalogOptions" | "subcategories" | "sortedItems" | "categorizedItems" | "categorizedRawMenuItems" | "variants" | "takeaways" | "printDepartments" | "units" | "recipes" | "cookingGuide" | "skus" | "rules" | "taxSetting" | "canUndoHistory" | "canRedoHistory">, Pick<MenuStoreType, "readMenu" | "readRestaurants" | "selectCatalog" | "selectScheduler" | "selectCategory" | "setRestaurantAttrParams" | "updateMenu" | "updateMenuSetting" | "encodeTax" | "decodeTax" | "getSelectedTax" | "mapVariant" | "setMenu" | "computeMergedMenu" | "undoHistory" | "redoHistory" | "clearHistory">>;
7528
+ export declare const useMenuStore: import("pinia").StoreDefinition<"mf-menu-store-v2", Pick<MenuStoreType, "state" | "mergedMenu" | "workerIsComputing" | "mergedMenuChangeId">, Pick<MenuStoreType, "groups" | "categories" | "items" | "version" | "isV4" | "serveSequence" | "catalogs" | "currentCatalog" | "schedulers" | "currentScheduler" | "catalogOptions" | "subcategories" | "sortedItems" | "categorizedItems" | "categorizedRawMenuItems" | "variants" | "takeaways" | "printDepartments" | "units" | "recipes" | "cookingGuide" | "skus" | "rules" | "taxSetting" | "canUndoHistory" | "canRedoHistory">, Pick<MenuStoreType, "readMenu" | "readRestaurants" | "selectCatalog" | "selectScheduler" | "selectCategory" | "setRestaurantCustomAttributes" | "updateMenu" | "updateMenuSetting" | "encodeTax" | "decodeTax" | "getSelectedTax" | "mapVariant" | "setMenu" | "computeMergedMenu" | "undoHistory" | "redoHistory" | "clearHistory">>;
7819
7529
  export {};
@@ -1,7 +1,6 @@
1
1
  import { type LinkProductSubmitPayload } from "@/types/linkProducts";
2
2
  export declare function useLinkProducts(isLocalOnly: boolean): {
3
3
  menuItems: import("vue").ComputedRef<any>;
4
- categories: any[];
5
4
  linkItemRules: import("vue").ComputedRef<any>;
6
5
  catalogManager: {
7
6
  linkableItems: import("vue").ComputedRef<import("../helper/menu").CategorizedItem[]>;
@@ -11,54 +10,15 @@ export declare function useLinkProducts(isLocalOnly: boolean): {
11
10
  applyProduct: (productIds: string[]) => Promise<void>;
12
11
  saveLinkItemRules: (linkItemRules: z.infer<z.ZodObject<{
13
12
  orderFrom: z.ZodEnum<["ALL", "POS_ONLY", "NONE"]>;
14
- ruleGroupIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
15
- restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
16
- restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
17
- restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
18
- }, "strip", z.ZodTypeAny, {
19
- restaurantAttributes?: any;
20
- restaurantCustomAttributes?: any;
21
- }, {
22
- restaurantAttributes?: any;
23
- restaurantCustomAttributes?: any;
24
- }>>>;
25
- itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
26
- itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
27
- itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
28
- }, "strip", z.ZodTypeAny, {
29
- itemAttributes?: any;
30
- itemCustomAttributes?: any;
31
- }, {
32
- itemAttributes?: any;
33
- itemCustomAttributes?: any;
34
- }>>>;
35
13
  restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
36
14
  itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
37
15
  }, "strip", z.ZodTypeAny, {
38
16
  restaurantAttributes?: any;
39
17
  itemAttributes?: any;
40
- restaurantRule?: {
41
- restaurantAttributes?: any;
42
- restaurantCustomAttributes?: any;
43
- } | null | undefined;
44
- ruleGroupIds?: string[] | null | undefined;
45
- itemRule?: {
46
- itemAttributes?: any;
47
- itemCustomAttributes?: any;
48
- } | null | undefined;
49
18
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
50
19
  }, {
51
20
  restaurantAttributes?: any;
52
21
  itemAttributes?: any;
53
- restaurantRule?: {
54
- restaurantAttributes?: any;
55
- restaurantCustomAttributes?: any;
56
- } | null | undefined;
57
- ruleGroupIds?: string[] | null | undefined;
58
- itemRule?: {
59
- itemAttributes?: any;
60
- itemCustomAttributes?: any;
61
- } | null | undefined;
62
22
  orderFrom: "ALL" | "POS_ONLY" | "NONE";
63
23
  }>>[] | null | undefined) => Promise<void>;
64
24
  };