@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,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
SOMETHING_WRONG: string;
|
|
3
|
+
FIELD_REQUIRED: string;
|
|
4
|
+
"Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60": string;
|
|
5
|
+
"Unsupported country code": string;
|
|
6
|
+
"Invalid OTP": string;
|
|
7
|
+
INVALID_OTP: string;
|
|
8
|
+
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
9
|
+
"Invalid Email Address": string;
|
|
10
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
11
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
13
|
+
COUNTRY_REQUIRED: string;
|
|
14
|
+
CITY_REQUIRED: string;
|
|
15
|
+
STREET_REQUIRED: string;
|
|
16
|
+
STREET_NUMBER_REQUIRED: string;
|
|
17
|
+
OUT_OF_DELIVERY_RANGE: string;
|
|
18
|
+
NO_ORDER_TYPE: string;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
error: {
|
|
3
|
+
SOMETHING_WRONG: string;
|
|
4
|
+
FIELD_REQUIRED: string;
|
|
5
|
+
"Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60": string;
|
|
6
|
+
"Unsupported country code": string;
|
|
7
|
+
"Invalid OTP": string;
|
|
8
|
+
INVALID_OTP: string;
|
|
9
|
+
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
10
|
+
"Invalid Email Address": string;
|
|
11
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
13
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
14
|
+
COUNTRY_REQUIRED: string;
|
|
15
|
+
CITY_REQUIRED: string;
|
|
16
|
+
STREET_REQUIRED: string;
|
|
17
|
+
STREET_NUMBER_REQUIRED: string;
|
|
18
|
+
OUT_OF_DELIVERY_RANGE: string;
|
|
19
|
+
NO_ORDER_TYPE: string;
|
|
20
|
+
};
|
|
21
|
+
common: {
|
|
22
|
+
Save: string;
|
|
23
|
+
Cancel: string;
|
|
24
|
+
Continue: string;
|
|
25
|
+
};
|
|
26
|
+
order: {
|
|
27
|
+
"View order": string;
|
|
28
|
+
"Remove from order": string;
|
|
29
|
+
"Update order": string;
|
|
30
|
+
"Add to order": string;
|
|
31
|
+
Add: string;
|
|
32
|
+
"Your order": string;
|
|
33
|
+
"Empty order": string;
|
|
34
|
+
"You don't have any items in your order": string;
|
|
35
|
+
"Add items": string;
|
|
36
|
+
Subtotal: string;
|
|
37
|
+
Events: string;
|
|
38
|
+
"Product choices": string;
|
|
39
|
+
"In order": string;
|
|
40
|
+
"Not available": string;
|
|
41
|
+
"Specify any allergies, special requests, or ingredients you want to add or remove": string;
|
|
42
|
+
"Thank you! We've received your order and it will be delivered shortly.": string;
|
|
43
|
+
"Go to checkout": string;
|
|
44
|
+
"Add an order note": string;
|
|
45
|
+
"Your Order is Completed!": string;
|
|
46
|
+
Delivery: string;
|
|
47
|
+
"Dine in": string;
|
|
48
|
+
Pickup: string;
|
|
49
|
+
Cash: string;
|
|
50
|
+
"POS Terminal": string;
|
|
51
|
+
"Order summary": string;
|
|
52
|
+
Items: string;
|
|
53
|
+
Tax: string;
|
|
54
|
+
Total: string;
|
|
55
|
+
"Special instructions, allergies, etc.": string;
|
|
56
|
+
"Place order": string;
|
|
57
|
+
Continue: string;
|
|
58
|
+
"Track order": string;
|
|
59
|
+
"Minimum order amount for delivery is {{amount}}": string;
|
|
60
|
+
"This field is required": string;
|
|
61
|
+
"Please select a table": string;
|
|
62
|
+
"Please enter an address": string;
|
|
63
|
+
"Please choose product": string;
|
|
64
|
+
Table: string;
|
|
65
|
+
"Select Table": string;
|
|
66
|
+
Card: string;
|
|
67
|
+
"Closed Now": string;
|
|
68
|
+
"Delivery Fee": string;
|
|
69
|
+
"Play video": string;
|
|
70
|
+
};
|
|
71
|
+
customer: {
|
|
72
|
+
"Unknown address": string;
|
|
73
|
+
"No address available": string;
|
|
74
|
+
"Update Delivery Address": string;
|
|
75
|
+
Country: string;
|
|
76
|
+
City: string;
|
|
77
|
+
"Baker Street": string;
|
|
78
|
+
Address: string;
|
|
79
|
+
"House number": string;
|
|
80
|
+
"Additional number": string;
|
|
81
|
+
"Example: Door code is 555": string;
|
|
82
|
+
"Delivery Instructions": string;
|
|
83
|
+
Azerbaijan: string;
|
|
84
|
+
Floor: string;
|
|
85
|
+
"Enter address": string;
|
|
86
|
+
};
|
|
87
|
+
auth: {
|
|
88
|
+
"Create an account or log in": string;
|
|
89
|
+
"Phone number": string;
|
|
90
|
+
"I don't have an email": string;
|
|
91
|
+
"We sent a confirmation code to {{address}}": string;
|
|
92
|
+
};
|
|
93
|
+
events: {
|
|
94
|
+
Events: string;
|
|
95
|
+
"Scrolled to Category": string;
|
|
96
|
+
"Category Selected": string;
|
|
97
|
+
"Product Details": string;
|
|
98
|
+
"Product Added to Order": string;
|
|
99
|
+
};
|
|
100
|
+
pricing: {
|
|
101
|
+
"Get Started": string;
|
|
102
|
+
"Choose Plan": string;
|
|
103
|
+
"Smart QR Menu": string;
|
|
104
|
+
"Link-in-bio": string;
|
|
105
|
+
"Menu Analytics": string;
|
|
106
|
+
"Unlimited Users": string;
|
|
107
|
+
"Unlimited Products": string;
|
|
108
|
+
"Unlimited Categories": string;
|
|
109
|
+
"Product variants": string;
|
|
110
|
+
"Product options": string;
|
|
111
|
+
"Sales reports": string;
|
|
112
|
+
"24/7 Support": string;
|
|
113
|
+
"Multiple Branches": string;
|
|
114
|
+
"Table Management": string;
|
|
115
|
+
"Order Management": string;
|
|
116
|
+
"Mobile App for Owners & Staff": string;
|
|
117
|
+
"Point of Sale (POS)": string;
|
|
118
|
+
"Delivery Management": string;
|
|
119
|
+
"Third-Party Delivery Integrations": string;
|
|
120
|
+
"TabresPay with Mobile": string;
|
|
121
|
+
"Event management": string;
|
|
122
|
+
"/ month": string;
|
|
123
|
+
monthly: string;
|
|
124
|
+
annually: string;
|
|
125
|
+
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
126
|
+
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
127
|
+
"Unlimited Languages": string;
|
|
128
|
+
"30-day money-back guarantee": string;
|
|
129
|
+
"Limited Time Only": string;
|
|
130
|
+
"/ lifetime": string;
|
|
131
|
+
"Try for free": string;
|
|
132
|
+
"No credit card needed": string;
|
|
133
|
+
};
|
|
134
|
+
branch: {
|
|
135
|
+
"WEEKDAY-0": string;
|
|
136
|
+
"WEEKDAY-1": string;
|
|
137
|
+
"WEEKDAY-2": string;
|
|
138
|
+
"WEEKDAY-3": string;
|
|
139
|
+
"WEEKDAY-4": string;
|
|
140
|
+
"WEEKDAY-5": string;
|
|
141
|
+
"WEEKDAY-6": string;
|
|
142
|
+
Closed: string;
|
|
143
|
+
"Opening Hours": string;
|
|
144
|
+
"Delivery Hours": string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"View order": string;
|
|
3
|
+
"Remove from order": string;
|
|
4
|
+
"Update order": string;
|
|
5
|
+
"Add to order": string;
|
|
6
|
+
Add: string;
|
|
7
|
+
"Your order": string;
|
|
8
|
+
"Empty order": string;
|
|
9
|
+
"You don't have any items in your order": string;
|
|
10
|
+
"Add items": string;
|
|
11
|
+
Subtotal: string;
|
|
12
|
+
Events: string;
|
|
13
|
+
"Product choices": string;
|
|
14
|
+
"In order": string;
|
|
15
|
+
"Not available": string;
|
|
16
|
+
"Specify any allergies, special requests, or ingredients you want to add or remove": string;
|
|
17
|
+
"Thank you! We've received your order and it will be delivered shortly.": string;
|
|
18
|
+
"Go to checkout": string;
|
|
19
|
+
"Add an order note": string;
|
|
20
|
+
"Your Order is Completed!": string;
|
|
21
|
+
Delivery: string;
|
|
22
|
+
"Dine in": string;
|
|
23
|
+
Pickup: string;
|
|
24
|
+
Cash: string;
|
|
25
|
+
"POS Terminal": string;
|
|
26
|
+
"Order summary": string;
|
|
27
|
+
Items: string;
|
|
28
|
+
Tax: string;
|
|
29
|
+
Total: string;
|
|
30
|
+
"Special instructions, allergies, etc.": string;
|
|
31
|
+
"Place order": string;
|
|
32
|
+
Continue: string;
|
|
33
|
+
"Track order": string;
|
|
34
|
+
"Minimum order amount for delivery is {{amount}}": string;
|
|
35
|
+
"This field is required": string;
|
|
36
|
+
"Please select a table": string;
|
|
37
|
+
"Please enter an address": string;
|
|
38
|
+
"Please choose product": string;
|
|
39
|
+
Table: string;
|
|
40
|
+
"Select Table": string;
|
|
41
|
+
Card: string;
|
|
42
|
+
"Closed Now": string;
|
|
43
|
+
"Delivery Fee": string;
|
|
44
|
+
"Play video": string;
|
|
45
|
+
};
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"Get Started": string;
|
|
3
|
+
"Choose Plan": string;
|
|
4
|
+
"Smart QR Menu": string;
|
|
5
|
+
"Link-in-bio": string;
|
|
6
|
+
"Menu Analytics": string;
|
|
7
|
+
"Unlimited Users": string;
|
|
8
|
+
"Unlimited Products": string;
|
|
9
|
+
"Unlimited Categories": string;
|
|
10
|
+
"Product variants": string;
|
|
11
|
+
"Product options": string;
|
|
12
|
+
"Sales reports": string;
|
|
13
|
+
"24/7 Support": string;
|
|
14
|
+
"Multiple Branches": string;
|
|
15
|
+
"Table Management": string;
|
|
16
|
+
"Order Management": string;
|
|
17
|
+
"Mobile App for Owners & Staff": string;
|
|
18
|
+
"Point of Sale (POS)": string;
|
|
19
|
+
"Delivery Management": string;
|
|
20
|
+
"Third-Party Delivery Integrations": string;
|
|
21
|
+
"TabresPay with Mobile": string;
|
|
22
|
+
"Event management": string;
|
|
23
|
+
"/ month": string;
|
|
24
|
+
monthly: string;
|
|
25
|
+
annually: string;
|
|
26
|
+
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
27
|
+
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
28
|
+
"Unlimited Languages": string;
|
|
29
|
+
"30-day money-back guarantee": string;
|
|
30
|
+
"Limited Time Only": string;
|
|
31
|
+
"/ lifetime": string;
|
|
32
|
+
"Try for free": string;
|
|
33
|
+
"No credit card needed": string;
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { models as menuModels } from "src/modules/menu";
|
|
3
|
+
export declare const StoreProvider: ({ children, value, }: {
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
value: menuModels.PublicMenuData;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const useStoreContext: () => menuModels.PublicMenuData;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
2
|
+
import { FormErrors } from "@sorocraft/ui";
|
|
3
|
+
import * as productModels from "src/modules/product/models";
|
|
4
|
+
import * as orderModels from "src/modules/order/models";
|
|
5
|
+
import * as customerModels from "src/modules/customer/models";
|
|
6
|
+
type UpdateOrderItemsParams = {
|
|
7
|
+
product: productModels.Product;
|
|
8
|
+
quantity?: number;
|
|
9
|
+
variantId?: number | null;
|
|
10
|
+
selectedAddons?: orderModels.SelectedAddons;
|
|
11
|
+
note?: string;
|
|
12
|
+
};
|
|
13
|
+
type OrderContent = {
|
|
14
|
+
order: Partial<orderModels.Order>;
|
|
15
|
+
orderStep: orderModels.OrderStep;
|
|
16
|
+
orderItems: orderModels.OrderItems;
|
|
17
|
+
isOrderOpen: boolean;
|
|
18
|
+
customer: customerModels.Customer;
|
|
19
|
+
trackingId: string;
|
|
20
|
+
errors?: FormErrors;
|
|
21
|
+
setOrderStep: Dispatch<SetStateAction<orderModels.OrderStep>>;
|
|
22
|
+
updateOrder: (updatedFields: Partial<orderModels.Order>) => void;
|
|
23
|
+
addProduct: (params: UpdateOrderItemsParams) => void;
|
|
24
|
+
updateProduct: (params: UpdateOrderItemsParams) => void;
|
|
25
|
+
removeAllProductVariants: (productId: number) => void;
|
|
26
|
+
setIsOrderOpen: Dispatch<SetStateAction<boolean>>;
|
|
27
|
+
getCustomer: () => void;
|
|
28
|
+
resetOrder: (force?: boolean, shouldClose?: boolean) => void;
|
|
29
|
+
setTrackingId: Dispatch<SetStateAction<string>>;
|
|
30
|
+
updateOrderErrors: (field: keyof orderModels.Order) => void;
|
|
31
|
+
resetErrors: () => void;
|
|
32
|
+
};
|
|
33
|
+
type OrderProviderProps = {
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
defaultOrderType?: orderModels.OrderType;
|
|
36
|
+
defaultPaymentMethod?: orderModels.PaymentMethod;
|
|
37
|
+
defaultBranchId?: number;
|
|
38
|
+
isOrderDefaultOpen?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export declare const OrderProvider: ({ children, defaultOrderType, defaultPaymentMethod, defaultBranchId, isOrderDefaultOpen, }: OrderProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const useOrderContext: () => OrderContent;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum MenuAddonSelectType {
|
|
2
|
+
SINGLE = "SINGLE",
|
|
3
|
+
MULTIPLE = "MULTIPLE"
|
|
4
|
+
}
|
|
5
|
+
export interface MenuAddonTranslation {
|
|
6
|
+
id?: number;
|
|
7
|
+
title: string;
|
|
8
|
+
language: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MenuAddonOptionTranslation {
|
|
11
|
+
id?: number;
|
|
12
|
+
title: string;
|
|
13
|
+
language: string;
|
|
14
|
+
}
|
|
15
|
+
export interface MenuAddonOption {
|
|
16
|
+
id?: number;
|
|
17
|
+
price: number;
|
|
18
|
+
translations: MenuAddonOptionTranslation[];
|
|
19
|
+
remove?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface MenuAddon {
|
|
22
|
+
id?: number;
|
|
23
|
+
selectType: MenuAddonSelectType;
|
|
24
|
+
translations: MenuAddonTranslation[];
|
|
25
|
+
options: MenuAddonOption[];
|
|
26
|
+
businessId?: number;
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MenuAddon, MenuAddonOption, MenuAddonOptionTranslation, MenuAddonTranslation } from "./models";
|
|
2
|
+
export declare const getAddonTranslation: (addon: MenuAddon, language: string) => MenuAddonTranslation;
|
|
3
|
+
export declare const getAddonOptionTranslation: (option: MenuAddonOption, language: string) => MenuAddonOptionTranslation;
|
|
4
|
+
export declare const getOptionPrice: ({ option, currency, language, }: {
|
|
5
|
+
option: MenuAddonOption;
|
|
6
|
+
currency?: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
}) => {
|
|
9
|
+
totalPrice: number;
|
|
10
|
+
formattedTotalPrice: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const getAddonOptionRawPrice: (addon: MenuAddon, optionId: number) => number;
|
|
13
|
+
export declare const getOptionTitles: (options: MenuAddonOption[], optionIds: number | number[], language: string) => string;
|
|
14
|
+
export declare const getAddonTitle: (addon: MenuAddon, language: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as viewModels from "src/modules/view/models";
|
|
2
|
+
import { Branch, BranchServes, BranchSettings } from "./models";
|
|
3
|
+
export declare const useHasSingleBranch: () => boolean;
|
|
4
|
+
export declare const useSelectedBranch: () => Branch;
|
|
5
|
+
export declare const useBranchCoordinates: () => viewModels.Coordinates;
|
|
6
|
+
export declare const useBranchAddress: () => string;
|
|
7
|
+
export declare const useBranchServes: () => BranchServes;
|
|
8
|
+
export declare const useBranchSettings: () => BranchSettings;
|
|
9
|
+
export declare const useMaxDeliveryDistance: () => number;
|
|
10
|
+
export declare const useMinDeliveryAmount: () => number;
|
|
11
|
+
export declare const useOrderEnabled: () => boolean;
|
|
12
|
+
export declare const useIsDeliveryEnabled: () => boolean;
|
|
13
|
+
export declare const useVenueName: () => string;
|
|
14
|
+
export declare const useBranchId: () => number | undefined;
|
|
15
|
+
export declare const useList: () => Branch[];
|
|
16
|
+
export declare const useOnBranchSelect: () => ((branchId: number) => void);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type BranchWorkHour = {
|
|
2
|
+
openAt: string;
|
|
3
|
+
closeAt: string;
|
|
4
|
+
};
|
|
5
|
+
export type BranchWorkDay = {
|
|
6
|
+
day: number;
|
|
7
|
+
hours: BranchWorkHour | null;
|
|
8
|
+
};
|
|
9
|
+
export type BranchWorkDays = {
|
|
10
|
+
days: BranchWorkDay[];
|
|
11
|
+
};
|
|
12
|
+
export interface BranchSettings {
|
|
13
|
+
deliveryOrderEnabled: boolean;
|
|
14
|
+
pickupOrderEnabled: boolean;
|
|
15
|
+
dineInOrderEnabled: boolean;
|
|
16
|
+
maxDeliveryDistance: number;
|
|
17
|
+
minDeliveryAmount: number;
|
|
18
|
+
deliveryFeeAmount: number;
|
|
19
|
+
}
|
|
20
|
+
export declare enum BranchSetting {
|
|
21
|
+
MAX_DELIVERY_DISTANCE = "maxDeliveryDistance",
|
|
22
|
+
DELIVERY_ORDER_ENABLED = "deliveryOrderEnabled",
|
|
23
|
+
PICKUP_ORDER_ENABLED = "pickupOrderEnabled",
|
|
24
|
+
DINE_IN_ORDER_ENABLED = "dineInOrderEnabled",
|
|
25
|
+
MIN_DELIVERY_AMOUNT = "minDeliveryAmount",
|
|
26
|
+
DELIVERY_FEE_AMOUNT = "deliveryFeeAmount"
|
|
27
|
+
}
|
|
28
|
+
export interface Branch {
|
|
29
|
+
id: number;
|
|
30
|
+
name: string;
|
|
31
|
+
businessId: number;
|
|
32
|
+
address: string;
|
|
33
|
+
longitude?: number;
|
|
34
|
+
latitude?: number;
|
|
35
|
+
phone?: string;
|
|
36
|
+
whatsApp?: string;
|
|
37
|
+
telegram?: string;
|
|
38
|
+
wifiPassword?: string;
|
|
39
|
+
createdAt?: number;
|
|
40
|
+
coverPhoto?: string;
|
|
41
|
+
settings?: BranchSettings;
|
|
42
|
+
openingHours?: BranchWorkDays;
|
|
43
|
+
deliveryHours?: BranchWorkDays;
|
|
44
|
+
}
|
|
45
|
+
export type BranchServes = {
|
|
46
|
+
isOpen: boolean;
|
|
47
|
+
isDelivering: boolean;
|
|
48
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BranchWorkDays } from "src/models";
|
|
2
|
+
export declare const getHoursForDay: (schedule: BranchWorkDays, weekDayIndex: number) => import("src/models").BranchWorkHour;
|
|
3
|
+
export declare const splitHours: (hours: string) => number[];
|
|
4
|
+
export declare const isWithinTimeRange: (timeRange?: {
|
|
5
|
+
openAt: string;
|
|
6
|
+
closeAt: string;
|
|
7
|
+
}) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Business, BusinessLanguage } from "./models";
|
|
2
|
+
export declare const useBusiness: () => Business;
|
|
3
|
+
export declare const useCurrency: () => string;
|
|
4
|
+
export declare const useBusinessId: () => number;
|
|
5
|
+
export declare const useBusinessUsername: () => string;
|
|
6
|
+
export declare const useLanguages: () => BusinessLanguage[];
|
|
7
|
+
export declare const useLanguage: () => string;
|
|
8
|
+
export declare const useOnLanguageSelect: () => ((code: string) => void);
|
|
9
|
+
export declare const useBusinessSegment: () => import("../feature/models").FeatureSegment;
|
|
10
|
+
export declare const useBusinessName: () => string;
|
|
11
|
+
export declare const useBaseUrl: () => {
|
|
12
|
+
url: string;
|
|
13
|
+
domain: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const useBusinessUrl: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as featureModels from "../feature/models";
|
|
2
|
+
import * as subscriptionModels from "../subscription/models";
|
|
3
|
+
export interface BusinessLanguage {
|
|
4
|
+
id: number;
|
|
5
|
+
code: string;
|
|
6
|
+
businessId: number;
|
|
7
|
+
}
|
|
8
|
+
export declare enum BusinessSetting {
|
|
9
|
+
MAX_DELIVERY_DISTANCE = "maxDeliveryDistance",
|
|
10
|
+
DELIVERY_ORDER_ENABLED = "deliveryOrderEnabled",
|
|
11
|
+
PICKUP_ORDER_ENABLED = "pickupOrderEnabled",
|
|
12
|
+
DINE_IN_ORDER_ENABLED = "dineInOrderEnabled",
|
|
13
|
+
MIN_DELIVERY_AMOUNT = "minDeliveryAmount"
|
|
14
|
+
}
|
|
15
|
+
export interface Business {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
username: string;
|
|
19
|
+
avatar64?: string;
|
|
20
|
+
avatar128?: string;
|
|
21
|
+
avatar256?: string;
|
|
22
|
+
coverPhoto?: string;
|
|
23
|
+
instagram?: string;
|
|
24
|
+
facebook?: string;
|
|
25
|
+
tiktok?: string;
|
|
26
|
+
createdAt?: number;
|
|
27
|
+
currency: string;
|
|
28
|
+
languages: BusinessLanguage[];
|
|
29
|
+
subscriptions?: subscriptionModels.Subscription[];
|
|
30
|
+
segment?: featureModels.FeatureSegment;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Category, CategoryTranslation } from "./models";
|
|
2
|
+
export declare const getCategoryTranslation: (category: Category, language: string) => CategoryTranslation;
|
|
3
|
+
export declare const getCategoryNameById: (categoryId: number, categories: Category[], language: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as services from "./services";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const logException: (error?: any, errorInfo?: {}) => Promise<Response>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Customer, CustomerAddress } from "./models";
|
|
2
|
+
export declare const useAvailableCustomer: () => Customer;
|
|
3
|
+
export declare const useCustomerAddress: () => CustomerAddress;
|
|
4
|
+
export declare const useCustomerId: () => number;
|
|
5
|
+
export declare const useCustomerEmail: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare enum CustomerAuthStep {
|
|
2
|
+
PHONE = "PHONE",
|
|
3
|
+
OTP = "OTP",
|
|
4
|
+
EMAIL = "EMAIL"
|
|
5
|
+
}
|
|
6
|
+
export declare enum CustomerAddressType {
|
|
7
|
+
HOME = "HOME",
|
|
8
|
+
WORK = "WORK",
|
|
9
|
+
TRAVEL = "TRAVEL"
|
|
10
|
+
}
|
|
11
|
+
export interface CustomerAddress {
|
|
12
|
+
id?: number;
|
|
13
|
+
addressId?: number;
|
|
14
|
+
countryCode: string;
|
|
15
|
+
cityName: string;
|
|
16
|
+
street: string;
|
|
17
|
+
houseNumber: string;
|
|
18
|
+
additionalNumber?: string;
|
|
19
|
+
postCode?: string;
|
|
20
|
+
instructions?: string;
|
|
21
|
+
floor?: number;
|
|
22
|
+
longitude?: number;
|
|
23
|
+
latitude?: number;
|
|
24
|
+
title?: string;
|
|
25
|
+
type?: CustomerAddressType;
|
|
26
|
+
}
|
|
27
|
+
export interface CustomerAuthForm {
|
|
28
|
+
phoneNumber: string;
|
|
29
|
+
otp: string;
|
|
30
|
+
email: string;
|
|
31
|
+
}
|
|
32
|
+
export interface CustomerAuthPhoneForm {
|
|
33
|
+
countryCode: string;
|
|
34
|
+
phoneNumber: string;
|
|
35
|
+
}
|
|
36
|
+
export interface AuthResponse {
|
|
37
|
+
accessToken: string;
|
|
38
|
+
refreshToken: string;
|
|
39
|
+
}
|
|
40
|
+
export interface Customer {
|
|
41
|
+
id?: number;
|
|
42
|
+
email: string;
|
|
43
|
+
phoneNumber: string;
|
|
44
|
+
fullName: string;
|
|
45
|
+
smsVerified?: boolean;
|
|
46
|
+
emailVerified?: boolean;
|
|
47
|
+
address?: CustomerAddress;
|
|
48
|
+
addresses?: CustomerAddress[];
|
|
49
|
+
}
|
|
50
|
+
export type CustomerUpdatePayload = Partial<Customer>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as viewModels from "../view/models";
|
|
2
|
+
import { AuthResponse, Customer, CustomerUpdatePayload } from "./models";
|
|
3
|
+
export declare const getCustomer: () => Promise<Customer>;
|
|
4
|
+
export declare const loginCustomer: (phoneNumber: string) => Promise<{
|
|
5
|
+
status: number;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const verifyOTP: (otp: string, phoneNumber: string) => Promise<AuthResponse>;
|
|
8
|
+
export declare const update: (payload: CustomerUpdatePayload) => Promise<any>;
|
|
9
|
+
export declare const getCustomerDistance: (branchCoordinates: viewModels.Coordinates, customerCoordinates: viewModels.Coordinates) => Promise<number>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormErrors } from "@sorocraft/ui";
|
|
2
|
+
import { CustomerAddress, CustomerAuthForm, CustomerAuthPhoneForm, CustomerAuthStep } from "./models";
|
|
3
|
+
export declare const preparePhoneNumber: (form: CustomerAuthPhoneForm) => string;
|
|
4
|
+
export declare const validateForm: (form: CustomerAuthForm, step: CustomerAuthStep) => FormErrors;
|
|
5
|
+
export declare const validateAddressForm: (form: CustomerAddress) => FormErrors;
|
|
6
|
+
export declare const formatCityLine: (fields: (string | undefined)[]) => string;
|
|
7
|
+
export declare const formatAddressLine: (street: string, houseNumber: string, additionalNumber: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|