@tabres/react 1.0.0
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/Readme.md +49 -0
- package/dist/components/BackIcon/BackIcon.d.ts +8 -0
- package/dist/components/BackIcon/index.d.ts +1 -0
- package/dist/components/Events/Events.d.ts +10 -0
- package/dist/components/Events/EventsToolbar.d.ts +7 -0
- package/dist/components/Events/index.d.ts +1 -0
- package/dist/components/Pricing/Pricing.d.ts +11 -0
- package/dist/components/Pricing/PricingPlanAmount.d.ts +9 -0
- package/dist/components/Pricing/index.d.ts +1 -0
- package/dist/components/PublicMenu/Branches/BranchCard/BranchCard.d.ts +6 -0
- package/dist/components/PublicMenu/Branches/BranchCard/Parent.d.ts +7 -0
- package/dist/components/PublicMenu/Branches/BranchCard/index.d.ts +1 -0
- package/dist/components/PublicMenu/Branches/Branches.d.ts +2 -0
- package/dist/components/PublicMenu/Branches/index.d.ts +1 -0
- package/dist/components/PublicMenu/Categories/Categories.d.ts +10 -0
- package/dist/components/PublicMenu/Categories/index.d.ts +1 -0
- package/dist/components/PublicMenu/Customer/CustomerAddress/AddressContent/AddressContent.d.ts +2 -0
- package/dist/components/PublicMenu/Customer/CustomerAddress/AddressContent/index.d.ts +1 -0
- package/dist/components/PublicMenu/Customer/CustomerAddress/CustomerAddress.d.ts +2 -0
- package/dist/components/PublicMenu/Customer/CustomerAddress/NoAddressContent/NoAddressContent.d.ts +2 -0
- package/dist/components/PublicMenu/Customer/CustomerAddress/NoAddressContent/index.d.ts +1 -0
- package/dist/components/PublicMenu/Customer/CustomerAddress/index.d.ts +1 -0
- package/dist/components/PublicMenu/Header/BranchBusinessHours/BranchBusinessHours.d.ts +7 -0
- package/dist/components/PublicMenu/Header/BranchBusinessHours/HoursList/HoursList.d.ts +7 -0
- package/dist/components/PublicMenu/Header/BranchBusinessHours/HoursList/index.d.ts +1 -0
- package/dist/components/PublicMenu/Header/BranchBusinessHours/index.d.ts +1 -0
- package/dist/components/PublicMenu/Header/BranchHeader/BranchHeader.d.ts +2 -0
- package/dist/components/PublicMenu/Header/BranchHeader/HeaderLinks/HeaderLinks.d.ts +2 -0
- package/dist/components/PublicMenu/Header/BranchHeader/HeaderLinks/index.d.ts +1 -0
- package/dist/components/PublicMenu/Header/BranchHeader/index.d.ts +1 -0
- package/dist/components/PublicMenu/Header/BusinessHeader/BusinessHeader.d.ts +2 -0
- package/dist/components/PublicMenu/Header/BusinessHeader/index.d.ts +1 -0
- package/dist/components/PublicMenu/Header/Header.d.ts +2 -0
- package/dist/components/PublicMenu/Header/Languages/Languages.d.ts +2 -0
- package/dist/components/PublicMenu/Header/Languages/index.d.ts +1 -0
- package/dist/components/PublicMenu/Header/index.d.ts +1 -0
- package/dist/components/PublicMenu/MenuContent/MenuContent.d.ts +6 -0
- package/dist/components/PublicMenu/MenuContent/index.d.ts +1 -0
- package/dist/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/AddUpdateAddress/index.d.ts +1 -0
- package/dist/components/PublicMenu/Modals/AddUpdateNote/AddUpdateNote.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/AddUpdateNote/index.d.ts +1 -0
- package/dist/components/PublicMenu/Modals/Auth/Auth.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/Auth/EmailStep.d.ts +8 -0
- package/dist/components/PublicMenu/Modals/Auth/OTPStep.d.ts +7 -0
- package/dist/components/PublicMenu/Modals/Auth/PhoneStep.d.ts +7 -0
- package/dist/components/PublicMenu/Modals/Auth/index.d.ts +1 -0
- package/dist/components/PublicMenu/Modals/BranchBusinessHours/BranchBusinessHours.d.ts +3 -0
- package/dist/components/PublicMenu/Modals/BranchBusinessHours/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawer.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerCart.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerCompleted.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerDetails.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderDrawerFooter.d.ts +6 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderTable/OrderTable.d.ts +2 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderTable/OrderTableUI.d.ts +13 -0
- package/dist/components/PublicMenu/OrderDrawer/OrderTable/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderDrawer/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderFAB/OrderFAB.d.ts +8 -0
- package/dist/components/PublicMenu/OrderFAB/OrderFABContainer.d.ts +6 -0
- package/dist/components/PublicMenu/OrderFAB/index.d.ts +2 -0
- package/dist/components/PublicMenu/OrderItemsList/OrderItemsList.d.ts +5 -0
- package/dist/components/PublicMenu/OrderItemsList/OrderNoItems.d.ts +2 -0
- package/dist/components/PublicMenu/OrderItemsList/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderListItem/OptionsInfo/OptionsInfo.d.ts +10 -0
- package/dist/components/PublicMenu/OrderListItem/OptionsInfo/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderListItem/OrderListItem.d.ts +7 -0
- package/dist/components/PublicMenu/OrderListItem/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderMethods/OrderMethods.d.ts +11 -0
- package/dist/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +9 -0
- package/dist/components/PublicMenu/OrderMethods/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderPaymentSummary/OrderPaymentSummary.d.ts +14 -0
- package/dist/components/PublicMenu/OrderPaymentSummary/index.d.ts +1 -0
- package/dist/components/PublicMenu/OrderStepper/OrderStepper.d.ts +8 -0
- package/dist/components/PublicMenu/OrderStepper/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductAddons/ProductAddons.d.ts +16 -0
- package/dist/components/PublicMenu/ProductAddons/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductDetails/ProductDetails.d.ts +3 -0
- package/dist/components/PublicMenu/ProductDetails/ProductDetailsUI.d.ts +32 -0
- package/dist/components/PublicMenu/ProductDetails/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductInOrder/ProductInOrder.d.ts +10 -0
- package/dist/components/PublicMenu/ProductInOrder/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductQuantity/ProductQuantity.d.ts +12 -0
- package/dist/components/PublicMenu/ProductQuantity/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductVariants/ProductVariants.d.ts +11 -0
- package/dist/components/PublicMenu/ProductVariants/index.d.ts +1 -0
- package/dist/components/PublicMenu/Products/Products.d.ts +13 -0
- package/dist/components/PublicMenu/Products/index.d.ts +1 -0
- package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItem.d.ts +3 -0
- package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItem.types.d.ts +13 -0
- package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItemContainer.d.ts +4 -0
- package/dist/components/PublicMenu/ProductsGridItem/index.d.ts +2 -0
- package/dist/components/PublicMenu/ProductsListItem/ProductsListItem.d.ts +9 -0
- package/dist/components/PublicMenu/ProductsListItem/index.d.ts +1 -0
- package/dist/components/PublicMenu/PublicMenu.d.ts +6 -0
- package/dist/components/PublicMenu/Videos/Video/Actions/Actions.d.ts +6 -0
- package/dist/components/PublicMenu/Videos/Video/Actions/index.d.ts +1 -0
- package/dist/components/PublicMenu/Videos/Video/Video.d.ts +11 -0
- package/dist/components/PublicMenu/Videos/Video/Video.test.d.ts +1 -0
- package/dist/components/PublicMenu/Videos/Video/VideoData/VideoData.d.ts +6 -0
- package/dist/components/PublicMenu/Videos/Video/VideoData/index.d.ts +1 -0
- package/dist/components/PublicMenu/Videos/Video/index.d.ts +1 -0
- package/dist/components/PublicMenu/Videos/VideoFeed/VideoFeed.d.ts +2 -0
- package/dist/components/PublicMenu/Videos/VideoFeed/index.d.ts +1 -0
- package/dist/components/PublicMenu/index.d.ts +1 -0
- package/dist/components/Quantity/Quantity.d.ts +11 -0
- package/dist/components/Quantity/index.d.ts +1 -0
- package/dist/components/ScrollToTop/ScrollToTop.d.ts +7 -0
- package/dist/components/ScrollToTop/index.d.ts +1 -0
- package/dist/constants/analytics.d.ts +6 -0
- package/dist/constants/constants/analytics.d.ts +6 -0
- package/dist/constants/constants/env.d.ts +1 -0
- package/dist/constants/constants/index.d.ts +4 -0
- package/dist/constants/env.d.ts +1 -0
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.esm.js +2 -0
- package/dist/constants/index.esm.js.map +1 -0
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/modules/feature/constants.d.ts +4 -0
- package/dist/constants/modules/feature/models.d.ts +8 -0
- package/dist/constants/modules/subscription/constants.d.ts +10 -0
- package/dist/constants/modules/subscription/models.d.ts +36 -0
- package/dist/constants/modules/view/constants.d.ts +16 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/translation.d.ts +5 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/models/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +9 -0
- package/dist/models/components/PublicMenu/ProductsGridItem/ProductsGridItem.types.d.ts +13 -0
- package/dist/models/constants/env.d.ts +1 -0
- package/dist/models/hooks/translation.d.ts +5 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/index.esm.js +2 -0
- package/dist/models/index.esm.js.map +1 -0
- package/dist/models/index.js +2 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/models/index.d.ts +16 -0
- package/dist/models/modules/addon/models.d.ts +27 -0
- package/dist/models/modules/addon/utils.d.ts +14 -0
- package/dist/models/modules/branch/hooks.d.ts +16 -0
- package/dist/models/modules/branch/models.d.ts +48 -0
- package/dist/models/modules/branch/utils.d.ts +7 -0
- package/dist/models/modules/business/constants.d.ts +2 -0
- package/dist/models/modules/business/hooks.d.ts +15 -0
- package/dist/models/modules/business/models.d.ts +31 -0
- package/dist/models/modules/category/models.d.ts +10 -0
- package/dist/models/modules/common/services.d.ts +1 -0
- package/dist/models/modules/customer/hooks.d.ts +5 -0
- package/dist/models/modules/customer/models.d.ts +50 -0
- package/dist/models/modules/customer/services.d.ts +9 -0
- package/dist/models/modules/feature/models.d.ts +8 -0
- package/dist/models/modules/menu/hooks.d.ts +1 -0
- package/dist/models/modules/menu/index.d.ts +3 -0
- package/dist/models/modules/menu/models.d.ts +25 -0
- package/dist/models/modules/menu/utils.d.ts +4 -0
- package/dist/models/modules/order/constants.d.ts +17 -0
- package/dist/models/modules/order/hooks.d.ts +18 -0
- package/dist/models/modules/order/index.d.ts +5 -0
- package/dist/models/modules/order/models.d.ts +108 -0
- package/dist/models/modules/order/services.d.ts +4 -0
- package/dist/models/modules/order/utils.d.ts +29 -0
- package/dist/models/modules/product/hooks.d.ts +9 -0
- package/dist/models/modules/product/index.d.ts +3 -0
- package/dist/models/modules/product/models.d.ts +50 -0
- package/dist/models/modules/product/utils.d.ts +185 -0
- package/dist/models/modules/store/hooks.d.ts +6 -0
- package/dist/models/modules/subscription/models.d.ts +36 -0
- package/dist/models/modules/table/hooks.d.ts +4 -0
- package/dist/models/modules/table/models.d.ts +66 -0
- package/dist/models/modules/user/models.d.ts +95 -0
- package/dist/models/modules/video/models.d.ts +11 -0
- package/dist/models/modules/view/constants.d.ts +16 -0
- package/dist/models/modules/view/hooks.d.ts +2 -0
- package/dist/models/modules/view/models.d.ts +7 -0
- package/dist/models/modules/view/services.d.ts +2 -0
- package/dist/models/modules/view/utils.d.ts +16 -0
- package/dist/models/services/api/index.d.ts +5 -0
- package/dist/models/services/translation/index.d.ts +3 -0
- package/dist/models/services/translation/locales/az/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/az/branch.d.ts +14 -0
- package/dist/models/services/translation/locales/az/common.d.ts +6 -0
- package/dist/models/services/translation/locales/az/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/az/error.d.ts +20 -0
- package/dist/models/services/translation/locales/az/events.d.ts +8 -0
- package/dist/models/services/translation/locales/az/index.d.ts +151 -0
- package/dist/models/services/translation/locales/az/order.d.ts +47 -0
- package/dist/models/services/translation/locales/az/pricing.d.ts +37 -0
- package/dist/models/services/translation/locales/en/auth.d.ts +2 -0
- package/dist/models/services/translation/locales/en/branch.d.ts +10 -0
- package/dist/models/services/translation/locales/en/common.d.ts +2 -0
- package/dist/models/services/translation/locales/en/customer.d.ts +2 -0
- package/dist/models/services/translation/locales/en/error.d.ts +16 -0
- package/dist/models/services/translation/locales/en/events.d.ts +2 -0
- package/dist/models/services/translation/locales/en/index.d.ts +33 -0
- package/dist/models/services/translation/locales/en/order.d.ts +2 -0
- package/dist/models/services/translation/locales/en/pricing.d.ts +2 -0
- package/dist/models/services/translation/locales/et/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/et/branch.d.ts +13 -0
- package/dist/models/services/translation/locales/et/common.d.ts +6 -0
- package/dist/models/services/translation/locales/et/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/et/error.d.ts +20 -0
- package/dist/models/services/translation/locales/et/events.d.ts +8 -0
- package/dist/models/services/translation/locales/et/index.d.ts +147 -0
- package/dist/models/services/translation/locales/et/order.d.ts +46 -0
- package/dist/models/services/translation/locales/et/pricing.d.ts +35 -0
- package/dist/models/services/translation/locales/index.d.ts +769 -0
- package/dist/models/services/translation/locales/nl/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/nl/branch.d.ts +13 -0
- package/dist/models/services/translation/locales/nl/common.d.ts +6 -0
- package/dist/models/services/translation/locales/nl/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/nl/error.d.ts +20 -0
- package/dist/models/services/translation/locales/nl/events.d.ts +8 -0
- package/dist/models/services/translation/locales/nl/index.d.ts +147 -0
- package/dist/models/services/translation/locales/nl/order.d.ts +46 -0
- package/dist/models/services/translation/locales/nl/pricing.d.ts +35 -0
- package/dist/models/services/translation/locales/ru/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/ru/branch.d.ts +13 -0
- package/dist/models/services/translation/locales/ru/common.d.ts +6 -0
- package/dist/models/services/translation/locales/ru/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/ru/error.d.ts +20 -0
- package/dist/models/services/translation/locales/ru/events.d.ts +8 -0
- package/dist/models/services/translation/locales/ru/index.d.ts +147 -0
- package/dist/models/services/translation/locales/ru/order.d.ts +46 -0
- package/dist/models/services/translation/locales/ru/pricing.d.ts +35 -0
- package/dist/models/services/translation/locales/tr/auth.d.ts +7 -0
- package/dist/models/services/translation/locales/tr/branch.d.ts +13 -0
- package/dist/models/services/translation/locales/tr/common.d.ts +6 -0
- package/dist/models/services/translation/locales/tr/customer.d.ts +17 -0
- package/dist/models/services/translation/locales/tr/error.d.ts +20 -0
- package/dist/models/services/translation/locales/tr/events.d.ts +8 -0
- package/dist/models/services/translation/locales/tr/index.d.ts +147 -0
- package/dist/models/services/translation/locales/tr/order.d.ts +46 -0
- package/dist/models/services/translation/locales/tr/pricing.d.ts +35 -0
- package/dist/models/store/index.d.ts +7 -0
- package/dist/models/store/order.d.ts +42 -0
- package/dist/modules/addon/index.d.ts +2 -0
- package/dist/modules/addon/models.d.ts +27 -0
- package/dist/modules/addon/utils.d.ts +14 -0
- package/dist/modules/addon/utils.test.d.ts +1 -0
- package/dist/modules/branch/hooks.d.ts +16 -0
- package/dist/modules/branch/hooks.test.d.ts +1 -0
- package/dist/modules/branch/index.d.ts +3 -0
- package/dist/modules/branch/models.d.ts +48 -0
- package/dist/modules/branch/utils.d.ts +7 -0
- package/dist/modules/branch/utils.test.d.ts +1 -0
- package/dist/modules/business/constants.d.ts +2 -0
- package/dist/modules/business/hooks.d.ts +15 -0
- package/dist/modules/business/hooks.test.d.ts +1 -0
- package/dist/modules/business/index.d.ts +2 -0
- package/dist/modules/business/models.d.ts +31 -0
- package/dist/modules/category/hooks.d.ts +3 -0
- package/dist/modules/category/hooks.test.d.ts +1 -0
- package/dist/modules/category/index.d.ts +3 -0
- package/dist/modules/category/models.d.ts +10 -0
- package/dist/modules/category/utils.d.ts +3 -0
- package/dist/modules/category/utils.test.d.ts +1 -0
- package/dist/modules/common/index.d.ts +1 -0
- package/dist/modules/common/services.d.ts +1 -0
- package/dist/modules/customer/hooks.d.ts +5 -0
- package/dist/modules/customer/hooks.test.d.ts +1 -0
- package/dist/modules/customer/index.d.ts +4 -0
- package/dist/modules/customer/models.d.ts +50 -0
- package/dist/modules/customer/services.d.ts +9 -0
- package/dist/modules/customer/utils.d.ts +7 -0
- package/dist/modules/customer/utils.test.d.ts +1 -0
- package/dist/modules/feature/constants.d.ts +4 -0
- package/dist/modules/feature/hooks.d.ts +2 -0
- package/dist/modules/feature/hooks.test.d.ts +1 -0
- package/dist/modules/feature/index.d.ts +3 -0
- package/dist/modules/feature/models.d.ts +8 -0
- package/dist/modules/feature/util.test.d.ts +1 -0
- package/dist/modules/feature/utils.d.ts +2 -0
- package/dist/modules/menu/hooks.d.ts +1 -0
- package/dist/modules/menu/index.d.ts +3 -0
- package/dist/modules/menu/models.d.ts +25 -0
- package/dist/modules/menu/utils.d.ts +4 -0
- package/dist/modules/menu/utils.test.d.ts +1 -0
- package/dist/modules/order/constants.d.ts +17 -0
- package/dist/modules/order/hooks.d.ts +18 -0
- package/dist/modules/order/hooks.test.d.ts +1 -0
- package/dist/modules/order/index.d.ts +5 -0
- package/dist/modules/order/models.d.ts +108 -0
- package/dist/modules/order/services.d.ts +4 -0
- package/dist/modules/order/utils.d.ts +29 -0
- package/dist/modules/order/utils.test.d.ts +1 -0
- package/dist/modules/product/hooks.d.ts +9 -0
- package/dist/modules/product/index.d.ts +3 -0
- package/dist/modules/product/models.d.ts +50 -0
- package/dist/modules/product/utils.d.ts +185 -0
- package/dist/modules/store/hooks.d.ts +6 -0
- package/dist/modules/subscription/constants.d.ts +10 -0
- package/dist/modules/subscription/index.d.ts +3 -0
- package/dist/modules/subscription/models.d.ts +36 -0
- package/dist/modules/subscription/utils.d.ts +1 -0
- package/dist/modules/table/hooks.d.ts +4 -0
- package/dist/modules/table/index.d.ts +2 -0
- package/dist/modules/table/models.d.ts +66 -0
- package/dist/modules/user/index.d.ts +2 -0
- package/dist/modules/user/models.d.ts +95 -0
- package/dist/modules/user/utils.d.ts +3 -0
- package/dist/modules/user/utils.test.d.ts +1 -0
- package/dist/modules/video/__mocks.d.ts +7 -0
- package/dist/modules/video/hooks.d.ts +13 -0
- package/dist/modules/video/hooks.test.d.ts +1 -0
- package/dist/modules/video/index.d.ts +2 -0
- package/dist/modules/video/models.d.ts +11 -0
- package/dist/modules/view/constants.d.ts +16 -0
- package/dist/modules/view/hooks.d.ts +2 -0
- package/dist/modules/view/index.d.ts +4 -0
- package/dist/modules/view/models.d.ts +7 -0
- package/dist/modules/view/services.d.ts +2 -0
- package/dist/modules/view/utils.d.ts +16 -0
- package/dist/modules/view/utils.test.d.ts +1 -0
- package/dist/services/api/index.d.ts +5 -0
- package/dist/services/translation/index.d.ts +3 -0
- package/dist/services/translation/locales/az/auth.d.ts +7 -0
- package/dist/services/translation/locales/az/branch.d.ts +14 -0
- package/dist/services/translation/locales/az/common.d.ts +6 -0
- package/dist/services/translation/locales/az/customer.d.ts +17 -0
- package/dist/services/translation/locales/az/error.d.ts +20 -0
- package/dist/services/translation/locales/az/events.d.ts +8 -0
- package/dist/services/translation/locales/az/index.d.ts +151 -0
- package/dist/services/translation/locales/az/order.d.ts +47 -0
- package/dist/services/translation/locales/az/pricing.d.ts +37 -0
- package/dist/services/translation/locales/en/auth.d.ts +2 -0
- package/dist/services/translation/locales/en/branch.d.ts +10 -0
- package/dist/services/translation/locales/en/common.d.ts +2 -0
- package/dist/services/translation/locales/en/customer.d.ts +2 -0
- package/dist/services/translation/locales/en/error.d.ts +16 -0
- package/dist/services/translation/locales/en/events.d.ts +2 -0
- package/dist/services/translation/locales/en/index.d.ts +33 -0
- package/dist/services/translation/locales/en/order.d.ts +2 -0
- package/dist/services/translation/locales/en/pricing.d.ts +2 -0
- package/dist/services/translation/locales/et/auth.d.ts +7 -0
- package/dist/services/translation/locales/et/branch.d.ts +13 -0
- package/dist/services/translation/locales/et/common.d.ts +6 -0
- package/dist/services/translation/locales/et/customer.d.ts +17 -0
- package/dist/services/translation/locales/et/error.d.ts +20 -0
- package/dist/services/translation/locales/et/events.d.ts +8 -0
- package/dist/services/translation/locales/et/index.d.ts +147 -0
- package/dist/services/translation/locales/et/order.d.ts +46 -0
- package/dist/services/translation/locales/et/pricing.d.ts +35 -0
- package/dist/services/translation/locales/index.d.ts +769 -0
- package/dist/services/translation/locales/nl/auth.d.ts +7 -0
- package/dist/services/translation/locales/nl/branch.d.ts +13 -0
- package/dist/services/translation/locales/nl/common.d.ts +6 -0
- package/dist/services/translation/locales/nl/customer.d.ts +17 -0
- package/dist/services/translation/locales/nl/error.d.ts +20 -0
- package/dist/services/translation/locales/nl/events.d.ts +8 -0
- package/dist/services/translation/locales/nl/index.d.ts +147 -0
- package/dist/services/translation/locales/nl/order.d.ts +46 -0
- package/dist/services/translation/locales/nl/pricing.d.ts +35 -0
- package/dist/services/translation/locales/ru/auth.d.ts +7 -0
- package/dist/services/translation/locales/ru/branch.d.ts +13 -0
- package/dist/services/translation/locales/ru/common.d.ts +6 -0
- package/dist/services/translation/locales/ru/customer.d.ts +17 -0
- package/dist/services/translation/locales/ru/error.d.ts +20 -0
- package/dist/services/translation/locales/ru/events.d.ts +8 -0
- package/dist/services/translation/locales/ru/index.d.ts +147 -0
- package/dist/services/translation/locales/ru/order.d.ts +46 -0
- package/dist/services/translation/locales/ru/pricing.d.ts +35 -0
- package/dist/services/translation/locales/tr/auth.d.ts +7 -0
- package/dist/services/translation/locales/tr/branch.d.ts +13 -0
- package/dist/services/translation/locales/tr/common.d.ts +6 -0
- package/dist/services/translation/locales/tr/customer.d.ts +17 -0
- package/dist/services/translation/locales/tr/error.d.ts +20 -0
- package/dist/services/translation/locales/tr/events.d.ts +8 -0
- package/dist/services/translation/locales/tr/index.d.ts +147 -0
- package/dist/services/translation/locales/tr/order.d.ts +46 -0
- package/dist/services/translation/locales/tr/pricing.d.ts +35 -0
- package/dist/store/index.d.ts +7 -0
- package/dist/store/order.d.ts +42 -0
- package/dist/store/order.test.d.ts +1 -0
- package/dist/styles/ui.css +2 -0
- package/dist/styles/ui.css.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.esm.js +2 -0
- package/dist/utils/index.esm.js.map +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/modules/addon/models.d.ts +27 -0
- package/dist/utils/modules/addon/utils.d.ts +14 -0
- package/dist/utils/modules/branch/models.d.ts +48 -0
- package/dist/utils/modules/business/models.d.ts +31 -0
- package/dist/utils/modules/category/models.d.ts +10 -0
- package/dist/utils/modules/category/utils.d.ts +3 -0
- package/dist/utils/modules/customer/models.d.ts +50 -0
- package/dist/utils/modules/customer/utils.d.ts +7 -0
- package/dist/utils/modules/feature/constants.d.ts +4 -0
- package/dist/utils/modules/feature/models.d.ts +8 -0
- package/dist/utils/modules/feature/utils.d.ts +2 -0
- package/dist/utils/modules/menu/models.d.ts +25 -0
- package/dist/utils/modules/menu/utils.d.ts +4 -0
- package/dist/utils/modules/order/constants.d.ts +17 -0
- package/dist/utils/modules/order/models.d.ts +108 -0
- package/dist/utils/modules/order/utils.d.ts +29 -0
- package/dist/utils/modules/product/models.d.ts +50 -0
- package/dist/utils/modules/product/utils.d.ts +185 -0
- package/dist/utils/modules/subscription/models.d.ts +36 -0
- package/dist/utils/modules/table/models.d.ts +66 -0
- package/dist/utils/modules/user/models.d.ts +95 -0
- package/dist/utils/modules/user/utils.d.ts +3 -0
- package/dist/utils/modules/video/models.d.ts +11 -0
- package/dist/utils/modules/view/constants.d.ts +16 -0
- package/dist/utils/modules/view/utils.d.ts +16 -0
- package/dist/utils/utils/index.d.ts +9 -0
- package/package.json +97 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as customerModels from "../customer/models";
|
|
2
|
+
import * as productModels from "../product/models";
|
|
3
|
+
export declare enum OrderType {
|
|
4
|
+
DINE_IN = "DINE_IN",
|
|
5
|
+
PICK_UP = "PICK_UP",
|
|
6
|
+
DELIVERY = "DELIVERY"
|
|
7
|
+
}
|
|
8
|
+
export declare enum OrderStatus {
|
|
9
|
+
DRAFT = "DRAFT",
|
|
10
|
+
PENDING = "PENDING",
|
|
11
|
+
CONFIRMED = "CONFIRMED",
|
|
12
|
+
PREPARING = "PREPARING",
|
|
13
|
+
READY = "READY",
|
|
14
|
+
OUT_FOR_DELIVERY = "OUT_FOR_DELIVERY",
|
|
15
|
+
DELIVERED = "DELIVERED",
|
|
16
|
+
COMPLETED = "COMPLETED",
|
|
17
|
+
CANCELLED = "CANCELLED",
|
|
18
|
+
FAILED = "FAILED"
|
|
19
|
+
}
|
|
20
|
+
export declare enum OrderItemStatus {
|
|
21
|
+
PENDING = "PENDING",
|
|
22
|
+
PREPARING = "PREPARING",
|
|
23
|
+
READY = "READY",
|
|
24
|
+
SERVED = "SERVED"
|
|
25
|
+
}
|
|
26
|
+
export declare enum PaymentMethod {
|
|
27
|
+
CASH = "CASH",
|
|
28
|
+
CARD = "CARD",
|
|
29
|
+
WALLET = "WALLET",
|
|
30
|
+
TERMINAL = "TERMINAL"
|
|
31
|
+
}
|
|
32
|
+
export interface OrderAddonOption {
|
|
33
|
+
optionId: number;
|
|
34
|
+
price: number;
|
|
35
|
+
}
|
|
36
|
+
export interface OrderAddon {
|
|
37
|
+
id?: number;
|
|
38
|
+
addonId: number;
|
|
39
|
+
options: OrderAddonOption[];
|
|
40
|
+
}
|
|
41
|
+
export interface SelectedAddons {
|
|
42
|
+
[key: number]: number | number[];
|
|
43
|
+
}
|
|
44
|
+
export interface OrderItemVariant {
|
|
45
|
+
id?: number;
|
|
46
|
+
variantId: number;
|
|
47
|
+
price: number;
|
|
48
|
+
}
|
|
49
|
+
export interface OrderItem {
|
|
50
|
+
id?: number;
|
|
51
|
+
productId: number;
|
|
52
|
+
orderId?: number;
|
|
53
|
+
quantity: number;
|
|
54
|
+
price: number;
|
|
55
|
+
variant?: OrderItemVariant;
|
|
56
|
+
addons: OrderAddon[];
|
|
57
|
+
note?: string;
|
|
58
|
+
status?: OrderItemStatus;
|
|
59
|
+
vat?: number;
|
|
60
|
+
isPaid?: boolean;
|
|
61
|
+
sellUnitType: productModels.SellUnitType;
|
|
62
|
+
}
|
|
63
|
+
export interface Order {
|
|
64
|
+
id?: number;
|
|
65
|
+
businessId?: number;
|
|
66
|
+
branchId?: number;
|
|
67
|
+
workingDayId?: number;
|
|
68
|
+
tableId?: number;
|
|
69
|
+
employeeId?: number;
|
|
70
|
+
orderType: OrderType;
|
|
71
|
+
totalPriceWithTax: number;
|
|
72
|
+
totalPriceWithTaxAndFees?: number;
|
|
73
|
+
totalPriceWithoutTax: number;
|
|
74
|
+
totalTax: number;
|
|
75
|
+
items: OrderItem[];
|
|
76
|
+
status?: OrderStatus;
|
|
77
|
+
vat?: number;
|
|
78
|
+
paymentMethod?: PaymentMethod;
|
|
79
|
+
note?: string;
|
|
80
|
+
createdAt?: number;
|
|
81
|
+
updatedAt?: number;
|
|
82
|
+
customer?: customerModels.Customer;
|
|
83
|
+
deliveryFee?: number;
|
|
84
|
+
}
|
|
85
|
+
export interface OrderItems {
|
|
86
|
+
[key: string]: OrderItem;
|
|
87
|
+
}
|
|
88
|
+
export declare enum OrderStep {
|
|
89
|
+
CART = "CART",
|
|
90
|
+
DETAILS = "DETAILS",
|
|
91
|
+
COMPLETED = "COMPLETED"
|
|
92
|
+
}
|
|
93
|
+
export interface OrderPayload extends Order {
|
|
94
|
+
customerAddressId: number;
|
|
95
|
+
customerId: number;
|
|
96
|
+
}
|
|
97
|
+
export type OrderPriceDetails = {
|
|
98
|
+
totalPriceWithTax: number;
|
|
99
|
+
totalPriceWithTaxAndFees: number;
|
|
100
|
+
totalPriceWithoutTax: number;
|
|
101
|
+
totalTax: number;
|
|
102
|
+
};
|
|
103
|
+
export type OrderFormattedPriceDetails = {
|
|
104
|
+
totalPriceWithTax: string;
|
|
105
|
+
totalPriceWithTaxAndFees: string;
|
|
106
|
+
totalPriceWithoutTax: string;
|
|
107
|
+
totalTax: string;
|
|
108
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IconType } from "@sorocraft/ui";
|
|
2
|
+
import { Order, OrderAddon, OrderItem, OrderStatus, OrderType, SelectedAddons } from "./models";
|
|
3
|
+
import * as addonModels from "../addon/models";
|
|
4
|
+
import * as branchModels from "../branch/models";
|
|
5
|
+
import { OrderErrors } from "./constants";
|
|
6
|
+
export declare const calculatSingleAddonTotalPrice: (addon: OrderAddon) => number;
|
|
7
|
+
export declare function calculateTotalAddonPrice(addons?: OrderAddon[], quantity?: number): number;
|
|
8
|
+
export declare const getOrderPrice: (order: Order, currency: string, language: string) => {
|
|
9
|
+
totalWithoutTax: number;
|
|
10
|
+
totalWithoutTaxFormatted: string;
|
|
11
|
+
totalTax: number;
|
|
12
|
+
totalTaxFormatted: string;
|
|
13
|
+
totalWithTax: number;
|
|
14
|
+
totalWithTaxFormatted: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const generateOrderItemsId: (productId: number, variantId: number | null, selectedAddons?: SelectedAddons) => string;
|
|
17
|
+
export declare const getOrderItemPrice: (orderItem: OrderItem) => {
|
|
18
|
+
totalGross: number;
|
|
19
|
+
totalNet: number;
|
|
20
|
+
totalTax: number;
|
|
21
|
+
itemGrossPrice: number;
|
|
22
|
+
itemNetPrice: number;
|
|
23
|
+
itemTax: number;
|
|
24
|
+
};
|
|
25
|
+
export declare const getSelectedAddonsFromOrderItems: (item: OrderItem) => SelectedAddons;
|
|
26
|
+
export declare const getStatusIcon: (status: OrderStatus) => IconType;
|
|
27
|
+
export declare const buildSelectedAddonsPayload: (productAddons?: addonModels.MenuAddon[], selectedAddons?: SelectedAddons) => OrderAddon[];
|
|
28
|
+
export declare const getDefaultOrderType: (settings: branchModels.BranchSettings, isOpen: boolean, isDelivering: boolean) => OrderType | null;
|
|
29
|
+
export declare const getOrderErrorMessages: (field: keyof Order) => OrderErrors;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as orderModels from "src/modules/order/models";
|
|
2
|
+
import { Product } from "./models";
|
|
3
|
+
export declare const useProductQuantity: ({ productId, variantId, selectedAddons, }: {
|
|
4
|
+
productId: number;
|
|
5
|
+
variantId?: number;
|
|
6
|
+
selectedAddons: orderModels.SelectedAddons;
|
|
7
|
+
}) => number;
|
|
8
|
+
export declare const useList: () => Product[];
|
|
9
|
+
export declare const useProductById: (productId: number) => Product;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { MenuAddon } from "../addon/models";
|
|
2
|
+
export interface ProductTranslation {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
language: string;
|
|
7
|
+
productId?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ProductVariantTranslation {
|
|
10
|
+
id?: number;
|
|
11
|
+
title: string;
|
|
12
|
+
language: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ProductVariant {
|
|
15
|
+
id?: number;
|
|
16
|
+
price: number;
|
|
17
|
+
translations: ProductVariantTranslation[];
|
|
18
|
+
productId?: number;
|
|
19
|
+
remove?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface Product {
|
|
22
|
+
id: number;
|
|
23
|
+
categoryId: number;
|
|
24
|
+
vat?: number;
|
|
25
|
+
price: number;
|
|
26
|
+
volume?: string;
|
|
27
|
+
image160?: string;
|
|
28
|
+
image580?: string;
|
|
29
|
+
image1024?: string;
|
|
30
|
+
translations: ProductTranslation[];
|
|
31
|
+
variants: ProductVariant[];
|
|
32
|
+
addons: MenuAddon[];
|
|
33
|
+
available?: boolean;
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
position?: number;
|
|
36
|
+
videoUrl?: string;
|
|
37
|
+
sellUnitType?: SellUnitType;
|
|
38
|
+
}
|
|
39
|
+
export declare enum ProductView {
|
|
40
|
+
LIST = "list",
|
|
41
|
+
GRID = "grid"
|
|
42
|
+
}
|
|
43
|
+
export interface DashboardProduct extends Omit<Product, "addons"> {
|
|
44
|
+
addons: number[];
|
|
45
|
+
}
|
|
46
|
+
export declare enum SellUnitType {
|
|
47
|
+
PIECE = "PIECE",
|
|
48
|
+
WEIGHT = "WEIGHT",
|
|
49
|
+
VOLUME = "VOLUME"
|
|
50
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Product, ProductTranslation, ProductVariant, ProductVariantTranslation, SellUnitType } from "./models";
|
|
2
|
+
import { MenuAddon } from "src/modules/addon/models";
|
|
3
|
+
import * as orderModels from "src/modules/order/models";
|
|
4
|
+
export declare const calculateTotalPrice: (price?: number, quantity?: number, vat?: number) => number;
|
|
5
|
+
export declare const getProductTranslation: (product: Pick<Product, "translations">, language: string) => ProductTranslation;
|
|
6
|
+
export declare const getProductRawPrice: (product: Pick<Product, "price" | "vat">, quantity?: number) => number;
|
|
7
|
+
export declare const getProductPrice: (product: Pick<Product, "price" | "vat">, currency: string, language: string, quantity?: number) => {
|
|
8
|
+
totalPrice: number;
|
|
9
|
+
formattedTotalPrice: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const getProductVariant: (product: Pick<Product, "variants">, variantId: number) => ProductVariant;
|
|
12
|
+
export declare const getSelectedOptionsTotalPrice: (product: Product, selectedAddons: orderModels.SelectedAddons, quantity: number) => number;
|
|
13
|
+
export declare const getProductVariantRawPrice: (variantId: number, product: Pick<Product, "variants" | "vat">, quantity?: number) => number;
|
|
14
|
+
export declare const getProductVariantPrice: ({ variantId, currency, language, product, quantity, }: {
|
|
15
|
+
variantId: number;
|
|
16
|
+
currency?: string;
|
|
17
|
+
language?: string;
|
|
18
|
+
product: Pick<Product, "variants" | "vat">;
|
|
19
|
+
quantity?: number;
|
|
20
|
+
}) => {
|
|
21
|
+
totalPrice: number;
|
|
22
|
+
formattedTotalPrice: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const getProductVariantTranslation: (variant: ProductVariant, language: string) => ProductVariantTranslation;
|
|
25
|
+
export declare const getProductOrderRawPrice: ({ product, variantId, quantity, selectedAddons, noVat, }: {
|
|
26
|
+
product: Product;
|
|
27
|
+
variantId: number | null;
|
|
28
|
+
quantity: number;
|
|
29
|
+
selectedAddons: orderModels.SelectedAddons;
|
|
30
|
+
noVat?: boolean;
|
|
31
|
+
}) => {
|
|
32
|
+
price: number;
|
|
33
|
+
optionsPrice: number;
|
|
34
|
+
total: number;
|
|
35
|
+
};
|
|
36
|
+
export declare const getProductOrderPrice: ({ product, variantId, quantity, currency, language, selectedAddons, noVat, }: {
|
|
37
|
+
product: Product;
|
|
38
|
+
variantId: number | null;
|
|
39
|
+
quantity: number;
|
|
40
|
+
currency: string;
|
|
41
|
+
language: string;
|
|
42
|
+
selectedAddons: orderModels.SelectedAddons;
|
|
43
|
+
noVat?: boolean;
|
|
44
|
+
}) => {
|
|
45
|
+
totalPrice: number;
|
|
46
|
+
formattedTotalPrice: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const getProductAddon: (product: Product, addonId: number) => MenuAddon;
|
|
49
|
+
export declare const getPriceSuffix: (sellUnitType: SellUnitType) => "" | " / kg" | " / l";
|
|
50
|
+
export declare const getProductSellUnitShortCuts: (sellUnitType: SellUnitType) => {
|
|
51
|
+
"50gr": number;
|
|
52
|
+
"100gr": number;
|
|
53
|
+
"150gr": number;
|
|
54
|
+
"200gr": number;
|
|
55
|
+
"250gr": number;
|
|
56
|
+
"300gr": number;
|
|
57
|
+
"350gr": number;
|
|
58
|
+
"400gr": number;
|
|
59
|
+
"450gr": number;
|
|
60
|
+
"500gr": number;
|
|
61
|
+
"600gr": number;
|
|
62
|
+
"700gr": number;
|
|
63
|
+
"750gr": number;
|
|
64
|
+
"800gr": number;
|
|
65
|
+
"850gr": number;
|
|
66
|
+
"900gr": number;
|
|
67
|
+
"950gr": number;
|
|
68
|
+
"1kg": number;
|
|
69
|
+
"2kg": number;
|
|
70
|
+
"5kg": number;
|
|
71
|
+
"10kg": number;
|
|
72
|
+
"20kg": number;
|
|
73
|
+
"50ml"?: undefined;
|
|
74
|
+
"100ml"?: undefined;
|
|
75
|
+
"150ml"?: undefined;
|
|
76
|
+
"200ml"?: undefined;
|
|
77
|
+
"250ml"?: undefined;
|
|
78
|
+
"300ml"?: undefined;
|
|
79
|
+
"350ml"?: undefined;
|
|
80
|
+
"400ml"?: undefined;
|
|
81
|
+
"450ml"?: undefined;
|
|
82
|
+
"500ml"?: undefined;
|
|
83
|
+
"600ml"?: undefined;
|
|
84
|
+
"700ml"?: undefined;
|
|
85
|
+
"750ml"?: undefined;
|
|
86
|
+
"800ml"?: undefined;
|
|
87
|
+
"850ml"?: undefined;
|
|
88
|
+
"900ml"?: undefined;
|
|
89
|
+
"950ml"?: undefined;
|
|
90
|
+
"1l"?: undefined;
|
|
91
|
+
"2l"?: undefined;
|
|
92
|
+
"5l"?: undefined;
|
|
93
|
+
"10l"?: undefined;
|
|
94
|
+
"20l"?: undefined;
|
|
95
|
+
} | {
|
|
96
|
+
"50ml": number;
|
|
97
|
+
"100ml": number;
|
|
98
|
+
"150ml": number;
|
|
99
|
+
"200ml": number;
|
|
100
|
+
"250ml": number;
|
|
101
|
+
"300ml": number;
|
|
102
|
+
"350ml": number;
|
|
103
|
+
"400ml": number;
|
|
104
|
+
"450ml": number;
|
|
105
|
+
"500ml": number;
|
|
106
|
+
"600ml": number;
|
|
107
|
+
"700ml": number;
|
|
108
|
+
"750ml": number;
|
|
109
|
+
"800ml": number;
|
|
110
|
+
"850ml": number;
|
|
111
|
+
"900ml": number;
|
|
112
|
+
"950ml": number;
|
|
113
|
+
"1l": number;
|
|
114
|
+
"2l": number;
|
|
115
|
+
"5l": number;
|
|
116
|
+
"10l": number;
|
|
117
|
+
"20l": number;
|
|
118
|
+
"50gr"?: undefined;
|
|
119
|
+
"100gr"?: undefined;
|
|
120
|
+
"150gr"?: undefined;
|
|
121
|
+
"200gr"?: undefined;
|
|
122
|
+
"250gr"?: undefined;
|
|
123
|
+
"300gr"?: undefined;
|
|
124
|
+
"350gr"?: undefined;
|
|
125
|
+
"400gr"?: undefined;
|
|
126
|
+
"450gr"?: undefined;
|
|
127
|
+
"500gr"?: undefined;
|
|
128
|
+
"600gr"?: undefined;
|
|
129
|
+
"700gr"?: undefined;
|
|
130
|
+
"750gr"?: undefined;
|
|
131
|
+
"800gr"?: undefined;
|
|
132
|
+
"850gr"?: undefined;
|
|
133
|
+
"900gr"?: undefined;
|
|
134
|
+
"950gr"?: undefined;
|
|
135
|
+
"1kg"?: undefined;
|
|
136
|
+
"2kg"?: undefined;
|
|
137
|
+
"5kg"?: undefined;
|
|
138
|
+
"10kg"?: undefined;
|
|
139
|
+
"20kg"?: undefined;
|
|
140
|
+
} | {
|
|
141
|
+
"50gr"?: undefined;
|
|
142
|
+
"100gr"?: undefined;
|
|
143
|
+
"150gr"?: undefined;
|
|
144
|
+
"200gr"?: undefined;
|
|
145
|
+
"250gr"?: undefined;
|
|
146
|
+
"300gr"?: undefined;
|
|
147
|
+
"350gr"?: undefined;
|
|
148
|
+
"400gr"?: undefined;
|
|
149
|
+
"450gr"?: undefined;
|
|
150
|
+
"500gr"?: undefined;
|
|
151
|
+
"600gr"?: undefined;
|
|
152
|
+
"700gr"?: undefined;
|
|
153
|
+
"750gr"?: undefined;
|
|
154
|
+
"800gr"?: undefined;
|
|
155
|
+
"850gr"?: undefined;
|
|
156
|
+
"900gr"?: undefined;
|
|
157
|
+
"950gr"?: undefined;
|
|
158
|
+
"1kg"?: undefined;
|
|
159
|
+
"2kg"?: undefined;
|
|
160
|
+
"5kg"?: undefined;
|
|
161
|
+
"10kg"?: undefined;
|
|
162
|
+
"20kg"?: undefined;
|
|
163
|
+
"50ml"?: undefined;
|
|
164
|
+
"100ml"?: undefined;
|
|
165
|
+
"150ml"?: undefined;
|
|
166
|
+
"200ml"?: undefined;
|
|
167
|
+
"250ml"?: undefined;
|
|
168
|
+
"300ml"?: undefined;
|
|
169
|
+
"350ml"?: undefined;
|
|
170
|
+
"400ml"?: undefined;
|
|
171
|
+
"450ml"?: undefined;
|
|
172
|
+
"500ml"?: undefined;
|
|
173
|
+
"600ml"?: undefined;
|
|
174
|
+
"700ml"?: undefined;
|
|
175
|
+
"750ml"?: undefined;
|
|
176
|
+
"800ml"?: undefined;
|
|
177
|
+
"850ml"?: undefined;
|
|
178
|
+
"900ml"?: undefined;
|
|
179
|
+
"950ml"?: undefined;
|
|
180
|
+
"1l"?: undefined;
|
|
181
|
+
"2l"?: undefined;
|
|
182
|
+
"5l"?: undefined;
|
|
183
|
+
"10l"?: undefined;
|
|
184
|
+
"20l"?: undefined;
|
|
185
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as orderModels from "src/modules/order/models";
|
|
2
|
+
export declare const useInitialOrder: ({ defaultOrderType, defaultPaymentMethod, defaultBranchId, }: {
|
|
3
|
+
defaultOrderType: orderModels.OrderType;
|
|
4
|
+
defaultPaymentMethod: orderModels.PaymentMethod;
|
|
5
|
+
defaultBranchId: number;
|
|
6
|
+
}) => Partial<orderModels.Order>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare enum PlanType {
|
|
2
|
+
APPETIZER = "appetizer",
|
|
3
|
+
MAIN_COURSE = "mainCourse",
|
|
4
|
+
CHEFS_SPECIAL = "chefsSpecial",
|
|
5
|
+
LIFETIME = "lifeTime"
|
|
6
|
+
}
|
|
7
|
+
export interface PricingPlan {
|
|
8
|
+
title: string;
|
|
9
|
+
price: {
|
|
10
|
+
monthly: number;
|
|
11
|
+
annually: number;
|
|
12
|
+
};
|
|
13
|
+
discountedPrice?: number;
|
|
14
|
+
ribbonText?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface PricingPlans {
|
|
17
|
+
[key: string]: PricingPlan;
|
|
18
|
+
}
|
|
19
|
+
export type PricingInterval = "monthly" | "annually";
|
|
20
|
+
export declare enum SubscriptionStatus {
|
|
21
|
+
ACTIVE = "ACTIVE",
|
|
22
|
+
EXPIRED = "EXPIRED",
|
|
23
|
+
CANCELLED = "CANCELLED"
|
|
24
|
+
}
|
|
25
|
+
export type BillingInterval = "MONTH" | "YEAR";
|
|
26
|
+
export interface Subscription {
|
|
27
|
+
id: number;
|
|
28
|
+
billingInterval: BillingInterval;
|
|
29
|
+
billingIntervalCount: number;
|
|
30
|
+
startDate: string;
|
|
31
|
+
endDate: string;
|
|
32
|
+
interval: PricingInterval;
|
|
33
|
+
status: SubscriptionStatus;
|
|
34
|
+
business_id?: number;
|
|
35
|
+
planName: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare enum TableShape {
|
|
2
|
+
SQUARE = "SQUARE",
|
|
3
|
+
CIRCLE = "CIRCLE",
|
|
4
|
+
RECTANGLE = "RECTANGLE",
|
|
5
|
+
RECTANGLE_VERTICAL = "RECTANGLE_VERTICAL",
|
|
6
|
+
SINGLE_AT_BAR = "SINGLE_AT_BAR",
|
|
7
|
+
OTHER = "OTHER"
|
|
8
|
+
}
|
|
9
|
+
export declare enum TableStatus {
|
|
10
|
+
VACANT = "VACANT",// Free and available
|
|
11
|
+
RESERVED = "RESERVED",// Booked but not yet seated
|
|
12
|
+
OCCUPIED = "OCCUPIED",// Currently in use
|
|
13
|
+
BLOCKED = "BLOCKED",// Temporarily blocked/unavailable
|
|
14
|
+
NEEDS_CLEANING = "NEEDS_CLEANING",// Dirty, awaiting cleanup
|
|
15
|
+
OUT_OF_SERVICE = "OUT_OF_SERVICE",// Permanently unavailable repair/maintenance
|
|
16
|
+
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",// Reservation not yet confirmed
|
|
17
|
+
NO_SHOW = "NO_SHOW"
|
|
18
|
+
}
|
|
19
|
+
export declare enum TableLocation {
|
|
20
|
+
MAIN_HALL = "MAIN_HALL",
|
|
21
|
+
PRIVATE_DINING = "PRIVATE_DINING",
|
|
22
|
+
VIP_ROOM = "VIP_ROOM",
|
|
23
|
+
BANQUET_HALL = "BANQUET_HALL",
|
|
24
|
+
BAR_AREA = "BAR_AREA",
|
|
25
|
+
LOUNGE = "LOUNGE",
|
|
26
|
+
OPEN_KITCHEN = "OPEN_KITCHEN",
|
|
27
|
+
BOOTH_SECTION = "BOOTH_SECTION",
|
|
28
|
+
MEZZANINE = "MEZZANINE",
|
|
29
|
+
WINE_CELLAR = "WINE_CELLAR",
|
|
30
|
+
TERRACE = "TERRACE",
|
|
31
|
+
PATIO = "PATIO",
|
|
32
|
+
GARDEN = "GARDEN",
|
|
33
|
+
COURTYARD = "COURTYARD",
|
|
34
|
+
ROOFTOP = "ROOFTOP",
|
|
35
|
+
BALCONY = "BALCONY",
|
|
36
|
+
SIDEWALK = "SIDEWALK",
|
|
37
|
+
POOLSIDE = "POOLSIDE",
|
|
38
|
+
SMOKING_AREA = "SMOKING_AREA",
|
|
39
|
+
NON_SMOKING = "NON_SMOKING",
|
|
40
|
+
FAMILY_SECTION = "FAMILY_SECTION",
|
|
41
|
+
KIDS_AREA = "KIDS_AREA",
|
|
42
|
+
WAITING_AREA = "WAITING_AREA",
|
|
43
|
+
DANCE_FLOOR = "DANCE_FLOOR"
|
|
44
|
+
}
|
|
45
|
+
export interface Table {
|
|
46
|
+
id: number;
|
|
47
|
+
businessId: number;
|
|
48
|
+
branchId: number;
|
|
49
|
+
name: string;
|
|
50
|
+
seatCount: number;
|
|
51
|
+
shape: TableShape;
|
|
52
|
+
location: TableLocation;
|
|
53
|
+
status: TableStatus;
|
|
54
|
+
}
|
|
55
|
+
export interface TableState {
|
|
56
|
+
tables: Table[];
|
|
57
|
+
}
|
|
58
|
+
export type TableForm = Omit<Table, "id" | "businessId" | "branchId"> & {
|
|
59
|
+
branchId: string | number;
|
|
60
|
+
};
|
|
61
|
+
export type TableUpdate = Partial<Omit<Table, "id" | "businessId">>;
|
|
62
|
+
export type TableFilter = Partial<Pick<Table, "branchId" | "shape" | "location" | "status">>;
|
|
63
|
+
export type TableFilterParams = {
|
|
64
|
+
field: keyof TableFilter;
|
|
65
|
+
value: TableFilter[keyof TableFilter];
|
|
66
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare enum EmployeePermission {
|
|
2
|
+
VIEW_BUSINESS = "VIEW_BUSINESS",
|
|
3
|
+
UPDATE_BUSINESS = "UPDATE_BUSINESS",
|
|
4
|
+
VIEW_ORDERS = "VIEW_ORDERS",
|
|
5
|
+
UPDATE_ORDER = "UPDATE_ORDER",
|
|
6
|
+
CREATE_ORDER = "CREATE_ORDER",
|
|
7
|
+
VIEW_QR_MENU = "VIEW_QR_MENU",
|
|
8
|
+
VIEW_MENU = "VIEW_MENU",
|
|
9
|
+
VIEW_MENU_ITEMS = "VIEW_MENU_ITEMS",
|
|
10
|
+
CREATE_MENU_ITEM = "CREATE_MENU_ITEM",
|
|
11
|
+
UPDATE_MENU_ITEM = "UPDATE_MENU_ITEM",
|
|
12
|
+
DELETE_MENU_ITEM = "DELETE_MENU_ITEM",
|
|
13
|
+
VIEW_CATEGORIES = "VIEW_CATEGORIES",
|
|
14
|
+
UPDATE_CATEGORY = "UPDATE_CATEGORY",
|
|
15
|
+
CREATE_CATEGORY = "CREATE_CATEGORY",
|
|
16
|
+
DELETE_CATEGORY = "DELETE_CATEGORY",
|
|
17
|
+
VIEW_ADDONS = "VIEW_ADDONS",
|
|
18
|
+
UPDATE_ADDON = "UPDATE_ADDON",
|
|
19
|
+
CREATE_ADDON = "CREATE_ADDON",
|
|
20
|
+
DELETE_ADDON = "DELETE_ADDON",
|
|
21
|
+
VIEW_TABLES = "VIEW_TABLES",
|
|
22
|
+
UPDATE_TABLE = "UPDATE_TABLE",
|
|
23
|
+
UPDATE_TABLE_STATUS = "UPDATE_TABLE_STATUS",
|
|
24
|
+
CREATE_TABLE = "CREATE_TABLE",
|
|
25
|
+
DELETE_TABLE = "DELETE_TABLE",
|
|
26
|
+
VIEW_BRANCHES = "VIEW_BRANCHES",
|
|
27
|
+
UPDATE_BRANCH = "UPDATE_BRANCH",
|
|
28
|
+
CREATE_BRANCH = "CREATE_BRANCH",
|
|
29
|
+
DELETE_BRANCH = "DELETE_BRANCH",
|
|
30
|
+
VIEW_EMPLOYEES = "VIEW_EMPLOYEES",
|
|
31
|
+
UPDATE_EMPLOYEE = "UPDATE_EMPLOYEE",
|
|
32
|
+
CREATE_EMPLOYEE = "CREATE_EMPLOYEE",
|
|
33
|
+
DELETE_EMPLOYEE = "DELETE_EMPLOYEE",
|
|
34
|
+
VIEW_ANALYTICS = "VIEW_ANALYTICS",
|
|
35
|
+
VIEW_SALES_REPORTS = "VIEW_SALES_REPORTS",
|
|
36
|
+
VIEW_SUBSCRIPTION = "VIEW_SUBSCRIPTION",
|
|
37
|
+
UPDATE_SUBSCRIPTION = "UPDATE_SUBSCRIPTION",
|
|
38
|
+
VIEW_QR_CODES = "VIEW_QR_CODES",
|
|
39
|
+
CREATE_QR_CODE = "CREATE_QR_CODE",
|
|
40
|
+
DELETE_QR_CODE = "DELETE_QR_CODE",
|
|
41
|
+
ALL = "ALL",
|
|
42
|
+
VIEW_INVENTORY = "VIEW_INVENTORY",
|
|
43
|
+
VIEW_PURCHASES = "VIEW_PURCHASES",
|
|
44
|
+
VIEW_PURCHASE_DETAIL = "VIEW_PURCHASE_DETAIL",
|
|
45
|
+
CREATE_PURCHASE = "CREATE_PURCHASE",
|
|
46
|
+
UPDATE_PURCHASE = "UPDATE_PURCHASE",
|
|
47
|
+
DELETE_PURCHASE = "DELETE_PURCHASE",
|
|
48
|
+
VIEW_INVENTORY_PRODUCTS = "VIEW_INVENTORY_PRODUCTS",
|
|
49
|
+
CREATE_INVENTORY_PRODUCT = "CREATE_INVENTORY_PRODUCT",
|
|
50
|
+
UPDATE_INVENTORY_PRODUCT = "UPDATE_INVENTORY_PRODUCT",
|
|
51
|
+
DELETE_INVENTORY_PRODUCT = "DELETE_INVENTORY_PRODUCT",
|
|
52
|
+
VIEW_BUSINESS_BALANCE = "VIEW_BUSINESS_BALANCE",
|
|
53
|
+
VIEW_BRANCH_BALANCE = "VIEW_BRANCH_BALANCE",
|
|
54
|
+
UPDATE_PRODUCT_INGREDIENTS = "UPDATE_PRODUCT_INGREDIENTS",
|
|
55
|
+
DELETE_PRODUCT_INGREDIENTS = "DELETE_PRODUCT_INGREDIENTS",
|
|
56
|
+
AI_ASSISTANT = "AI_ASSISTANT"
|
|
57
|
+
}
|
|
58
|
+
export declare enum UserRole {
|
|
59
|
+
OWNER = "OWNER",
|
|
60
|
+
BRANCH_MANAGER = "BRANCH_MANAGER",
|
|
61
|
+
GENERAL_MANAGER = "GENERAL_MANAGER",
|
|
62
|
+
CHEF = "CHEF",
|
|
63
|
+
SOUS_CHEF = "SOUS_CHEF",
|
|
64
|
+
PASTRY_CHEF = "PASTRY_CHEF",
|
|
65
|
+
LINE_COOK = "LINE_COOK",
|
|
66
|
+
PREP_COOK = "PREP_COOK",
|
|
67
|
+
KITCHEN_ASSISTANT = "KITCHEN_ASSISTANT",
|
|
68
|
+
DISHWASHER = "DISHWASHER",
|
|
69
|
+
HEAD_WAITER = "HEAD_WAITER",
|
|
70
|
+
WAITER = "WAITER",
|
|
71
|
+
RUNNER = "RUNNER",
|
|
72
|
+
BARISTA = "BARISTA",
|
|
73
|
+
BARTENDER = "BARTENDER",
|
|
74
|
+
SOMMELIER = "SOMMELIER",
|
|
75
|
+
ACCOUNTANT = "ACCOUNTANT",
|
|
76
|
+
ROOM_SERVICE_STAFF = "ROOM_SERVICE_STAFF",
|
|
77
|
+
DELIVERY_DRIVER = "DELIVERY_DRIVER",
|
|
78
|
+
INVENTORY_MANAGER = "INVENTORY_MANAGER",
|
|
79
|
+
PURCHASING_MANAGER = "PURCHASING_MANAGER",
|
|
80
|
+
WAREHOUSE_STAFF = "WAREHOUSE_STAFF"
|
|
81
|
+
}
|
|
82
|
+
export interface User {
|
|
83
|
+
id?: number;
|
|
84
|
+
email: string;
|
|
85
|
+
fullName: string;
|
|
86
|
+
role?: UserRole;
|
|
87
|
+
avatar64?: string | null;
|
|
88
|
+
avatar128?: string | null;
|
|
89
|
+
avatar256?: string | null;
|
|
90
|
+
businessId?: number;
|
|
91
|
+
branchId?: number | null;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
emailVerified?: boolean;
|
|
94
|
+
permissions?: EmployeePermission[];
|
|
95
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const MODALS: {
|
|
2
|
+
ADD_UPDATE_NOTES: string;
|
|
3
|
+
AUTH: string;
|
|
4
|
+
ADD_UPDATE_ADDRESS: string;
|
|
5
|
+
BRANCH_BUSINESS_HOURS: string;
|
|
6
|
+
PRODUCT_DETAILS: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const SUPPORTED_LOCALES: string[];
|
|
9
|
+
export declare const SUPPORTED_COUNTRIES: {
|
|
10
|
+
name: string;
|
|
11
|
+
code: string;
|
|
12
|
+
phoneCode: string;
|
|
13
|
+
}[];
|
|
14
|
+
export declare const DOMAIN = "tabres.com";
|
|
15
|
+
export declare const DEFAULT_HOSTNAME = "tabres.com";
|
|
16
|
+
export declare const IMAGE_BASE_URL = "https://images.tabres.com";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface ValidationResult {
|
|
2
|
+
isValid: boolean;
|
|
3
|
+
error?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function validatePhoneNumber(phoneNumber: string): ValidationResult;
|
|
6
|
+
export declare const getBaseUrl: (hostname: string, language: string) => {
|
|
7
|
+
url: string;
|
|
8
|
+
domain: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const getRegisterUrl: (language: string, source: string) => string;
|
|
11
|
+
export declare const getImageSource: (image?: string) => string;
|
|
12
|
+
export declare const getLogoImageSource: (logoImage?: string) => string;
|
|
13
|
+
export declare const getCoverPhotoSource: (coverPhoto?: string) => string;
|
|
14
|
+
export declare const rgbDataURL: (r: number, g: number, b: number) => string;
|
|
15
|
+
export declare const getVideoSource: (video?: string) => string;
|
|
16
|
+
export {};
|