@feedmepos/mf-menu 0.31.40-prod → 0.31.41-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-aWEH-ZEk.js → App-5Lzy8zHZ.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BnKXsQH-.js} +3 -3
- package/dist/{Catalog-BoFfFdn8.js → Catalog-s5b8V8nw.js} +8 -9
- package/dist/{Category-CWYbb3Jn.js → Category-BJzScJEY.js} +4 -4
- package/dist/{Category-DZ45uikR.js → Category-DZ-xqIMI.js} +6 -6
- package/dist/{CookingGuide-BU0PRWIQ.js → CookingGuide-Bkd6GPww.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B8tIjKOW.js} +1 -1
- package/dist/{Group-BMQDeqiS.js → Group-0b2Qiov3.js} +1 -1
- package/dist/{Group-C0T_uknK.js → Group-BOaCcKiI.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js → Group.vue_vue_type_script_setup_true_lang-DUlUfMAs.js} +8 -8
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CouimeC4.js +399 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js} +13 -14
- package/dist/{Ingredient-3lwDUQx_.js → Ingredient-ChcYUvOg.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DE1HkipX.js} +2 -2
- package/dist/LinkProductSideSheet-BdzBGYxG.js +361 -0
- package/dist/MenuSetting-zAAttaoA.js +618 -0
- package/dist/{PrintRoute-DfJ-vUAb.js → PrintRoute-T-vuO5N8.js} +4 -4
- package/dist/{Product-F4PoLm9v.js → Product-B5q291VF.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js → Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js} +468 -465
- package/dist/{ProductInternalTools-DSGU-OqU.js → ProductInternalTools-BOlc0VUR.js} +5 -5
- package/dist/{Products-COzW2Z4g.js → Products-Cd4Mqhm3.js} +88 -85
- package/dist/{Publish-CDXVWCk2.js → Publish-SuRzt-_D.js} +3 -3
- package/dist/{Recipe-BZx4wrcP.js → Recipe-BKrjNs5g.js} +4 -4
- package/dist/{Scheduler-wHCWSeU2.js → Scheduler-DnDgImLC.js} +3 -3
- package/dist/{ServingSequence-BbYEhDYh.js → ServingSequence-D602bVnm.js} +3 -3
- package/dist/{Setting-C9Tlw1Iy.js → Setting-FMT4oBYH.js} +44 -45
- package/dist/{Subcategory-C8AwfrKb.js → Subcategory-CpYmjAvA.js} +4 -4
- package/dist/{Takeaway-t1053wg2.js → Takeaway-BXh3iuME.js} +1 -1
- package/dist/{Takeaway-DaEUn-yM.js → Takeaway-D4hjN5z5.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js → Takeaway.vue_vue_type_script_setup_true_lang-By1f-FCO.js} +5 -5
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-CZUwa5C_.js +440 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DfjtfcCh.js} +604 -600
- package/dist/{Unit-CnqptGCz.js → Unit-CsjHkV-h.js} +2 -2
- package/dist/{Variant-DiOYOwJs.js → Variant-Djra14ZX.js} +3 -3
- package/dist/{_id_-BSfU16VO.js → _id_-BXkqoCzB.js} +78 -75
- package/dist/{app-Ddb81PNo.js → app-CVqWWV4x.js} +278 -278
- package/dist/{LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js → app-CiBqmBzO.js} +2120 -2084
- package/dist/{app-Cou6qPF2.js → app-PhBJNss_.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +2 -1
- package/dist/apps/mf-menu/src/app.d.ts +144 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +9 -3
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +294 -4
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +26 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +40 -0
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +285 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +285 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +285 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +293 -3
- package/dist/apps/mf-menu/src/utils/array.d.ts +1 -0
- package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +12 -0
- package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +176 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +166 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-WlVAcpRn.js +13 -0
- package/dist/assets/override-menu-__h4D7ac.js +13 -0
- package/dist/assets/validate-menu-DyPuzLRg.js +13 -0
- package/dist/{catalog-DSuJhsUb.js → catalog-C_TuQLxq.js} +1 -1
- package/dist/{catalogSetting-C3gEw9ov.js → catalogSetting-BUlJu6hG.js} +1 -1
- package/dist/{category-CwWq3KCE.js → category-CmVw1Kj-.js} +1 -1
- package/dist/{currency-g45Sh-t6.js → currency-OhOTnAqk.js} +1 -1
- package/dist/customAttributes-fpOfmGnw.js +180 -0
- package/dist/{dayjs.min-g3eN5z-V.js → dayjs.min-CDhP-7L5.js} +1 -1
- package/dist/{index-QsLFbxyG.js → index-BJZEWB5C.js} +4 -4
- package/dist/{index-BLQCYEc6.js → index-DHAYGEPp.js} +7 -8
- package/dist/{index-0yRUi7LL.js → index-DtwHmS38.js} +1 -1
- package/dist/index-N3cGc8ex.js +245 -0
- package/dist/{item-BvvQ9urP.js → item-BELLphR0.js} +16 -16
- package/dist/{jszip.min-DzdUiaR4.js → jszip.min-CZtcGb7A.js} +353 -353
- package/dist/{menu-QrVg2Ph7.js → menu-Csyr6W9A.js} +7 -7
- package/dist/{menu-DFNvhoNQ.js → menu-DS_ERmBf.js} +23355 -23206
- package/dist/{menuV2-Ezf_jW40.js → menuV2-DKzAZ4Ss.js} +151 -146
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-zENsn3P_.js → priceTier-CYWS5lDS.js} +1 -1
- package/dist/{scheduler-BuwGSv6A.js → scheduler-DI5dXC7Y.js} +8 -8
- package/dist/{subcategory-O3L_zCJA.js → subcategory-D_ao-IV9.js} +2 -2
- package/dist/{toExcel-CpRy_4nG.js → toExcel-Cml-rkJQ.js} +2 -2
- package/dist/{unit-Ct_7Hfa2.js → unit-BWDp2LkV.js} +42 -41
- package/package.json +3 -3
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +0 -50
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +0 -367
- package/dist/LinkProductSideSheet-LDZjKX95.js +0 -297
- package/dist/MenuSetting-AhutsCVy.js +0 -185
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js +0 -431
- package/dist/assets/linked-status-B_crHhZH.js +0 -24
- package/dist/assets/override-menu-BmlCEpHH.js +0 -24
- package/dist/assets/validate-menu-CF-psoB-.js +0 -24
- package/dist/index-0Q5T9VZV.js +0 -214
|
@@ -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, FdtoRestaurantWithMenuV4, FdtoV4Tax } from "@feedmepos/menu/entity";
|
|
4
|
+
import type { FdoMasterCatalogSetting, FdoMenuCookingGuide, FdoMenuPrintDepartment, FdoMenuServeSequence, FdoMenuUnit, FdoMenuV4, FdoMenuV4Catalog, FdoMenuV4Category, FdoMenuV4Group, FdoMenuV4Item, FdoMenuV4Scheduler, FdoMenuV4Takeaway, FdoMenuV4VariantGroup, FdoProductTaxSetting, FdtoRestaurantInfo, 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,7 +15,12 @@ interface MenuState {
|
|
|
15
15
|
currentCategoryIds: (string | null)[] | null;
|
|
16
16
|
currentCatalogId: string | null;
|
|
17
17
|
currentSchedulerId: string | null;
|
|
18
|
-
|
|
18
|
+
currentRestaurantAttrParams: {
|
|
19
|
+
restaurantCustomAttributes?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
} | null;
|
|
22
|
+
restaurantAttributes?: FdtoRestaurantInfo | null;
|
|
23
|
+
};
|
|
19
24
|
}
|
|
20
25
|
interface ITaxSetting {
|
|
21
26
|
systemCode: string;
|
|
@@ -1454,25 +1459,82 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1454
1459
|
usePriceTiers: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1455
1460
|
priceTierRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1456
1461
|
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
|
+
}>>>;
|
|
1457
1472
|
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1458
1473
|
}, "strip", z.ZodTypeAny, {
|
|
1459
1474
|
restaurantAttributes?: any;
|
|
1475
|
+
restaurantRule?: {
|
|
1476
|
+
restaurantAttributes?: any;
|
|
1477
|
+
restaurantCustomAttributes?: any;
|
|
1478
|
+
} | null | undefined;
|
|
1460
1479
|
priceTier: string;
|
|
1461
1480
|
}, {
|
|
1462
1481
|
restaurantAttributes?: any;
|
|
1482
|
+
restaurantRule?: {
|
|
1483
|
+
restaurantAttributes?: any;
|
|
1484
|
+
restaurantCustomAttributes?: any;
|
|
1485
|
+
} | null | undefined;
|
|
1463
1486
|
priceTier: string;
|
|
1464
1487
|
}>, "many">>>;
|
|
1465
1488
|
linkItemRules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1466
1489
|
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
|
+
}>>>;
|
|
1467
1511
|
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1468
1512
|
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1469
1513
|
}, "strip", z.ZodTypeAny, {
|
|
1470
1514
|
restaurantAttributes?: any;
|
|
1471
1515
|
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;
|
|
1472
1525
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1473
1526
|
}, {
|
|
1474
1527
|
restaurantAttributes?: any;
|
|
1475
1528
|
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;
|
|
1476
1538
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1477
1539
|
}>, "many">>>;
|
|
1478
1540
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1545,11 +1607,24 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1545
1607
|
usePriceTiers?: string[] | null | undefined;
|
|
1546
1608
|
priceTierRules?: {
|
|
1547
1609
|
restaurantAttributes?: any;
|
|
1610
|
+
restaurantRule?: {
|
|
1611
|
+
restaurantAttributes?: any;
|
|
1612
|
+
restaurantCustomAttributes?: any;
|
|
1613
|
+
} | null | undefined;
|
|
1548
1614
|
priceTier: string;
|
|
1549
1615
|
}[] | null | undefined;
|
|
1550
1616
|
linkItemRules?: {
|
|
1551
1617
|
restaurantAttributes?: any;
|
|
1552
1618
|
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;
|
|
1553
1628
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1554
1629
|
}[] | null | undefined;
|
|
1555
1630
|
name: string;
|
|
@@ -1765,11 +1840,24 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
1765
1840
|
usePriceTiers?: string[] | null | undefined;
|
|
1766
1841
|
priceTierRules?: {
|
|
1767
1842
|
restaurantAttributes?: any;
|
|
1843
|
+
restaurantRule?: {
|
|
1844
|
+
restaurantAttributes?: any;
|
|
1845
|
+
restaurantCustomAttributes?: any;
|
|
1846
|
+
} | null | undefined;
|
|
1768
1847
|
priceTier: string;
|
|
1769
1848
|
}[] | null | undefined;
|
|
1770
1849
|
linkItemRules?: {
|
|
1771
1850
|
restaurantAttributes?: any;
|
|
1772
1851
|
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;
|
|
1773
1861
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
1774
1862
|
}[] | null | undefined;
|
|
1775
1863
|
name: string;
|
|
@@ -5066,11 +5154,24 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
5066
5154
|
usePriceTiers?: string[] | null | undefined;
|
|
5067
5155
|
priceTierRules?: {
|
|
5068
5156
|
restaurantAttributes?: any;
|
|
5157
|
+
restaurantRule?: {
|
|
5158
|
+
restaurantAttributes?: any;
|
|
5159
|
+
restaurantCustomAttributes?: any;
|
|
5160
|
+
} | null | undefined;
|
|
5069
5161
|
priceTier: string;
|
|
5070
5162
|
}[] | null | undefined;
|
|
5071
5163
|
linkItemRules?: {
|
|
5072
5164
|
restaurantAttributes?: any;
|
|
5073
5165
|
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;
|
|
5074
5175
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
5075
5176
|
}[] | null | undefined;
|
|
5076
5177
|
name: string;
|
|
@@ -5749,11 +5850,24 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
5749
5850
|
usePriceTiers?: string[] | null | undefined;
|
|
5750
5851
|
priceTierRules?: {
|
|
5751
5852
|
restaurantAttributes?: any;
|
|
5853
|
+
restaurantRule?: {
|
|
5854
|
+
restaurantAttributes?: any;
|
|
5855
|
+
restaurantCustomAttributes?: any;
|
|
5856
|
+
} | null | undefined;
|
|
5752
5857
|
priceTier: string;
|
|
5753
5858
|
}[] | null | undefined;
|
|
5754
5859
|
linkItemRules?: {
|
|
5755
5860
|
restaurantAttributes?: any;
|
|
5756
5861
|
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;
|
|
5757
5871
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
5758
5872
|
}[] | null | undefined;
|
|
5759
5873
|
name: string;
|
|
@@ -6055,6 +6169,120 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
6055
6169
|
}, {
|
|
6056
6170
|
key: string;
|
|
6057
6171
|
}>, "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
|
+
}>>>;
|
|
6058
6286
|
lowStockThreshold: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
6059
6287
|
}, "strip", z.ZodTypeAny, {
|
|
6060
6288
|
updatedAt?: string | null | undefined;
|
|
@@ -6075,6 +6303,24 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
6075
6303
|
priceTierSettings?: {
|
|
6076
6304
|
key: string;
|
|
6077
6305
|
}[] | 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;
|
|
6078
6324
|
_id: string;
|
|
6079
6325
|
modules: {
|
|
6080
6326
|
subCategory?: {
|
|
@@ -6503,11 +6749,24 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
6503
6749
|
usePriceTiers?: string[] | null | undefined;
|
|
6504
6750
|
priceTierRules?: {
|
|
6505
6751
|
restaurantAttributes?: any;
|
|
6752
|
+
restaurantRule?: {
|
|
6753
|
+
restaurantAttributes?: any;
|
|
6754
|
+
restaurantCustomAttributes?: any;
|
|
6755
|
+
} | null | undefined;
|
|
6506
6756
|
priceTier: string;
|
|
6507
6757
|
}[] | null | undefined;
|
|
6508
6758
|
linkItemRules?: {
|
|
6509
6759
|
restaurantAttributes?: any;
|
|
6510
6760
|
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;
|
|
6511
6770
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
6512
6771
|
}[] | null | undefined;
|
|
6513
6772
|
name: string;
|
|
@@ -6779,6 +7038,24 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
6779
7038
|
priceTierSettings?: {
|
|
6780
7039
|
key: string;
|
|
6781
7040
|
}[] | 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;
|
|
6782
7059
|
_id: string;
|
|
6783
7060
|
modules: {
|
|
6784
7061
|
subCategory?: {
|
|
@@ -7207,11 +7484,24 @@ export declare function initMenuV4(): z.infer<z.ZodObject<{
|
|
|
7207
7484
|
usePriceTiers?: string[] | null | undefined;
|
|
7208
7485
|
priceTierRules?: {
|
|
7209
7486
|
restaurantAttributes?: any;
|
|
7487
|
+
restaurantRule?: {
|
|
7488
|
+
restaurantAttributes?: any;
|
|
7489
|
+
restaurantCustomAttributes?: any;
|
|
7490
|
+
} | null | undefined;
|
|
7210
7491
|
priceTier: string;
|
|
7211
7492
|
}[] | null | undefined;
|
|
7212
7493
|
linkItemRules?: {
|
|
7213
7494
|
restaurantAttributes?: any;
|
|
7214
7495
|
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;
|
|
7215
7505
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
7216
7506
|
}[] | null | undefined;
|
|
7217
7507
|
name: string;
|
|
@@ -7505,7 +7795,7 @@ interface MenuStore {
|
|
|
7505
7795
|
selectCatalog: (id: string | null) => void;
|
|
7506
7796
|
selectScheduler: (id: string | null) => void;
|
|
7507
7797
|
selectCategory: (id: (string | null)[] | null) => void;
|
|
7508
|
-
|
|
7798
|
+
setRestaurantAttrParams: (attr?: any) => void;
|
|
7509
7799
|
migrate: () => Promise<void>;
|
|
7510
7800
|
updateMenu: (data: UpdateMenuModuleRequest | UpdateMenuModuleRequest[], performValidate?: boolean) => Promise<FdtoUpdateMenuRes | void>;
|
|
7511
7801
|
publishMenu: (dto: PublishForRestaurantDto, shouldRefreshData?: boolean) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function removeDuplicates<T>(toBeDeduped: T[]): T[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a MongoDB query to an FDO rule object
|
|
3
|
+
* @param query - The MongoDB query to convert
|
|
4
|
+
* @returns FDO rule object or EMPTY_RULE if query is empty
|
|
5
|
+
*/
|
|
6
|
+
export declare function mongoQueryToFdoRule(query: any): any;
|
|
7
|
+
/**
|
|
8
|
+
* Converts an FDO rule object to a MongoDB query
|
|
9
|
+
* @param query - The FDO rule object to convert
|
|
10
|
+
* @returns MongoDB query or null if rule is empty
|
|
11
|
+
*/
|
|
12
|
+
export declare function fdoRuleToMongoQuery(query: any): any;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { FdoMenuRuleGroup } from "@feedmepos/menu/entity";
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
editingGroup: FdoMenuRuleGroup | null;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: boolean) => void;
|
|
8
|
+
submit: (groupData: z.infer<z.ZodObject<{
|
|
9
|
+
_id: z.ZodString;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
description: z.ZodString;
|
|
12
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
13
|
+
_id: z.ZodString;
|
|
14
|
+
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
15
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
16
|
+
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
restaurantAttributes?: any;
|
|
19
|
+
restaurantCustomAttributes?: any;
|
|
20
|
+
}, {
|
|
21
|
+
restaurantAttributes?: any;
|
|
22
|
+
restaurantCustomAttributes?: any;
|
|
23
|
+
}>>>;
|
|
24
|
+
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
25
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
26
|
+
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
itemAttributes?: any;
|
|
29
|
+
itemCustomAttributes?: any;
|
|
30
|
+
}, {
|
|
31
|
+
itemAttributes?: any;
|
|
32
|
+
itemCustomAttributes?: any;
|
|
33
|
+
}>>>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
restaurantRule?: {
|
|
36
|
+
restaurantAttributes?: any;
|
|
37
|
+
restaurantCustomAttributes?: any;
|
|
38
|
+
} | null | undefined;
|
|
39
|
+
itemRule?: {
|
|
40
|
+
itemAttributes?: any;
|
|
41
|
+
itemCustomAttributes?: any;
|
|
42
|
+
} | null | undefined;
|
|
43
|
+
_id: string;
|
|
44
|
+
}, {
|
|
45
|
+
restaurantRule?: {
|
|
46
|
+
restaurantAttributes?: any;
|
|
47
|
+
restaurantCustomAttributes?: any;
|
|
48
|
+
} | null | undefined;
|
|
49
|
+
itemRule?: {
|
|
50
|
+
itemAttributes?: any;
|
|
51
|
+
itemCustomAttributes?: any;
|
|
52
|
+
} | null | undefined;
|
|
53
|
+
_id: string;
|
|
54
|
+
}>, "many">;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
name: string;
|
|
57
|
+
description: string;
|
|
58
|
+
_id: string;
|
|
59
|
+
rules: {
|
|
60
|
+
restaurantRule?: {
|
|
61
|
+
restaurantAttributes?: any;
|
|
62
|
+
restaurantCustomAttributes?: any;
|
|
63
|
+
} | null | undefined;
|
|
64
|
+
itemRule?: {
|
|
65
|
+
itemAttributes?: any;
|
|
66
|
+
itemCustomAttributes?: any;
|
|
67
|
+
} | null | undefined;
|
|
68
|
+
_id: string;
|
|
69
|
+
}[];
|
|
70
|
+
}, {
|
|
71
|
+
name: string;
|
|
72
|
+
description: string;
|
|
73
|
+
_id: string;
|
|
74
|
+
rules: {
|
|
75
|
+
restaurantRule?: {
|
|
76
|
+
restaurantAttributes?: any;
|
|
77
|
+
restaurantCustomAttributes?: any;
|
|
78
|
+
} | null | undefined;
|
|
79
|
+
itemRule?: {
|
|
80
|
+
itemAttributes?: any;
|
|
81
|
+
itemCustomAttributes?: any;
|
|
82
|
+
} | null | undefined;
|
|
83
|
+
_id: string;
|
|
84
|
+
}[];
|
|
85
|
+
}>>) => void;
|
|
86
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
87
|
+
onSubmit?: ((groupData: z.infer<z.ZodObject<{
|
|
88
|
+
_id: z.ZodString;
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
description: z.ZodString;
|
|
91
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
92
|
+
_id: z.ZodString;
|
|
93
|
+
restaurantRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
94
|
+
restaurantAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
95
|
+
restaurantCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
restaurantAttributes?: any;
|
|
98
|
+
restaurantCustomAttributes?: any;
|
|
99
|
+
}, {
|
|
100
|
+
restaurantAttributes?: any;
|
|
101
|
+
restaurantCustomAttributes?: any;
|
|
102
|
+
}>>>;
|
|
103
|
+
itemRule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
104
|
+
itemAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
105
|
+
itemCustomAttributes: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
itemAttributes?: any;
|
|
108
|
+
itemCustomAttributes?: any;
|
|
109
|
+
}, {
|
|
110
|
+
itemAttributes?: any;
|
|
111
|
+
itemCustomAttributes?: any;
|
|
112
|
+
}>>>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
restaurantRule?: {
|
|
115
|
+
restaurantAttributes?: any;
|
|
116
|
+
restaurantCustomAttributes?: any;
|
|
117
|
+
} | null | undefined;
|
|
118
|
+
itemRule?: {
|
|
119
|
+
itemAttributes?: any;
|
|
120
|
+
itemCustomAttributes?: any;
|
|
121
|
+
} | null | undefined;
|
|
122
|
+
_id: string;
|
|
123
|
+
}, {
|
|
124
|
+
restaurantRule?: {
|
|
125
|
+
restaurantAttributes?: any;
|
|
126
|
+
restaurantCustomAttributes?: any;
|
|
127
|
+
} | null | undefined;
|
|
128
|
+
itemRule?: {
|
|
129
|
+
itemAttributes?: any;
|
|
130
|
+
itemCustomAttributes?: any;
|
|
131
|
+
} | null | undefined;
|
|
132
|
+
_id: string;
|
|
133
|
+
}>, "many">;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
name: string;
|
|
136
|
+
description: string;
|
|
137
|
+
_id: string;
|
|
138
|
+
rules: {
|
|
139
|
+
restaurantRule?: {
|
|
140
|
+
restaurantAttributes?: any;
|
|
141
|
+
restaurantCustomAttributes?: any;
|
|
142
|
+
} | null | undefined;
|
|
143
|
+
itemRule?: {
|
|
144
|
+
itemAttributes?: any;
|
|
145
|
+
itemCustomAttributes?: any;
|
|
146
|
+
} | null | undefined;
|
|
147
|
+
_id: string;
|
|
148
|
+
}[];
|
|
149
|
+
}, {
|
|
150
|
+
name: string;
|
|
151
|
+
description: string;
|
|
152
|
+
_id: string;
|
|
153
|
+
rules: {
|
|
154
|
+
restaurantRule?: {
|
|
155
|
+
restaurantAttributes?: any;
|
|
156
|
+
restaurantCustomAttributes?: any;
|
|
157
|
+
} | null | undefined;
|
|
158
|
+
itemRule?: {
|
|
159
|
+
itemAttributes?: any;
|
|
160
|
+
itemCustomAttributes?: any;
|
|
161
|
+
} | null | undefined;
|
|
162
|
+
_id: string;
|
|
163
|
+
}[];
|
|
164
|
+
}>>) => any) | undefined;
|
|
165
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
166
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
167
|
+
export default _default;
|
|
168
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
169
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
170
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
171
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
172
|
+
} : {
|
|
173
|
+
type: import('vue').PropType<T[K]>;
|
|
174
|
+
required: true;
|
|
175
|
+
};
|
|
176
|
+
};
|