@restaround/react 1.3.41 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/components/PublicMenu/Categories.d.ts +2 -1
  2. package/dist/components/PublicMenu/OrderDrawer/OrderTable/OrderTable.d.ts +2 -0
  3. package/dist/components/PublicMenu/OrderDrawer/OrderTable/OrderTableUI.d.ts +13 -0
  4. package/dist/components/PublicMenu/OrderDrawer/OrderTable/index.d.ts +1 -0
  5. package/dist/components/PublicMenu/OrderMethods/OrderMethods.d.ts +11 -0
  6. package/dist/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +8 -0
  7. package/dist/components/PublicMenu/OrderMethods/index.d.ts +1 -0
  8. package/dist/components/PublicMenu/OrderPaymentSummary/OrderPaymentSummary.d.ts +11 -0
  9. package/dist/components/PublicMenu/OrderPaymentSummary/index.d.ts +1 -0
  10. package/dist/components/PublicMenu/ProductAddons/ProductAddons.d.ts +4 -2
  11. package/dist/components/PublicMenu/ProductDetails/ProductDetailsUI.d.ts +28 -0
  12. package/dist/components/PublicMenu/ProductInOrder/ProductInOrder.d.ts +5 -1
  13. package/dist/components/PublicMenu/ProductVariants/ProductVariants.d.ts +4 -2
  14. package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItem.d.ts +2 -8
  15. package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItem.types.d.ts +10 -0
  16. package/dist/components/PublicMenu/ProductsGridItem/ProductsGridItemContainer.d.ts +4 -0
  17. package/dist/components/PublicMenu/ProductsGridItem/index.d.ts +1 -0
  18. package/dist/components/ScrollToTop/ScrollToTop.d.ts +7 -0
  19. package/dist/components/ScrollToTop/index.d.ts +1 -0
  20. package/dist/hooks/index.d.ts +1 -0
  21. package/dist/hooks/product.d.ts +0 -6
  22. package/dist/index.d.ts +8 -0
  23. package/dist/index.esm.js +1 -1
  24. package/dist/index.esm.js.map +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/models/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +8 -0
  28. package/dist/models/components/PublicMenu/ProductsGridItem/ProductsGridItem.types.d.ts +10 -0
  29. package/dist/models/constants/env.d.ts +1 -0
  30. package/dist/models/hooks/translation.d.ts +5 -0
  31. package/dist/models/index.d.ts +3 -0
  32. package/dist/models/index.esm.js +1 -1
  33. package/dist/models/index.esm.js.map +1 -1
  34. package/dist/models/index.js +1 -1
  35. package/dist/models/index.js.map +1 -1
  36. package/dist/models/menu.d.ts +3 -0
  37. package/dist/models/models/index.d.ts +3 -0
  38. package/dist/models/models/menu.d.ts +3 -0
  39. package/dist/models/modules/addon/utils.d.ts +14 -0
  40. package/dist/models/modules/branch/hooks.d.ts +2 -0
  41. package/dist/models/modules/business/hooks.d.ts +2 -0
  42. package/dist/models/modules/common/services.d.ts +1 -0
  43. package/dist/models/modules/customer/hooks.d.ts +4 -0
  44. package/dist/models/modules/customer/services.d.ts +9 -0
  45. package/dist/models/modules/feature/constants.d.ts +4 -0
  46. package/dist/models/modules/feature/hooks.d.ts +2 -0
  47. package/dist/models/modules/feature/utils.d.ts +2 -0
  48. package/dist/models/modules/order/constants.d.ts +17 -0
  49. package/dist/models/modules/order/hooks.d.ts +31 -0
  50. package/dist/models/modules/order/index.d.ts +5 -0
  51. package/dist/models/modules/order/services.d.ts +4 -0
  52. package/dist/models/modules/order/utils.d.ts +29 -0
  53. package/dist/models/modules/product/hooks.d.ts +6 -0
  54. package/dist/models/modules/product/index.d.ts +3 -0
  55. package/dist/models/modules/product/utils.d.ts +47 -0
  56. package/dist/models/modules/table/models.d.ts +66 -0
  57. package/dist/models/modules/view/constants.d.ts +13 -0
  58. package/dist/models/modules/view/services.d.ts +2 -0
  59. package/dist/models/services/api/index.d.ts +5 -0
  60. package/dist/models/services/translation/index.d.ts +3 -0
  61. package/dist/models/services/translation/locales/az/auth.d.ts +7 -0
  62. package/dist/models/services/translation/locales/az/common.d.ts +6 -0
  63. package/dist/models/services/translation/locales/az/customer.d.ts +17 -0
  64. package/dist/models/services/translation/locales/az/error.d.ts +19 -0
  65. package/dist/models/services/translation/locales/az/events.d.ts +8 -0
  66. package/dist/models/services/translation/locales/az/index.d.ts +129 -0
  67. package/dist/models/services/translation/locales/az/order.d.ts +41 -0
  68. package/dist/models/services/translation/locales/az/pricing.d.ts +35 -0
  69. package/dist/models/services/translation/locales/en/auth.d.ts +2 -0
  70. package/dist/models/services/translation/locales/en/common.d.ts +2 -0
  71. package/dist/models/services/translation/locales/en/customer.d.ts +2 -0
  72. package/dist/models/services/translation/locales/en/error.d.ts +15 -0
  73. package/dist/models/services/translation/locales/en/events.d.ts +2 -0
  74. package/dist/models/services/translation/locales/en/index.d.ts +23 -0
  75. package/dist/models/services/translation/locales/en/order.d.ts +2 -0
  76. package/dist/models/services/translation/locales/en/pricing.d.ts +2 -0
  77. package/dist/models/services/translation/locales/et/auth.d.ts +7 -0
  78. package/dist/models/services/translation/locales/et/common.d.ts +6 -0
  79. package/dist/models/services/translation/locales/et/customer.d.ts +17 -0
  80. package/dist/models/services/translation/locales/et/error.d.ts +19 -0
  81. package/dist/models/services/translation/locales/et/events.d.ts +8 -0
  82. package/dist/models/services/translation/locales/et/index.d.ts +128 -0
  83. package/dist/models/services/translation/locales/et/order.d.ts +42 -0
  84. package/dist/models/services/translation/locales/et/pricing.d.ts +33 -0
  85. package/dist/models/services/translation/locales/index.d.ts +661 -0
  86. package/dist/models/services/translation/locales/nl/auth.d.ts +7 -0
  87. package/dist/models/services/translation/locales/nl/common.d.ts +6 -0
  88. package/dist/models/services/translation/locales/nl/customer.d.ts +17 -0
  89. package/dist/models/services/translation/locales/nl/error.d.ts +19 -0
  90. package/dist/models/services/translation/locales/nl/events.d.ts +8 -0
  91. package/dist/models/services/translation/locales/nl/index.d.ts +128 -0
  92. package/dist/models/services/translation/locales/nl/order.d.ts +42 -0
  93. package/dist/models/services/translation/locales/nl/pricing.d.ts +33 -0
  94. package/dist/models/services/translation/locales/ru/auth.d.ts +7 -0
  95. package/dist/models/services/translation/locales/ru/common.d.ts +6 -0
  96. package/dist/models/services/translation/locales/ru/customer.d.ts +17 -0
  97. package/dist/models/services/translation/locales/ru/error.d.ts +19 -0
  98. package/dist/models/services/translation/locales/ru/events.d.ts +8 -0
  99. package/dist/models/services/translation/locales/ru/index.d.ts +128 -0
  100. package/dist/models/services/translation/locales/ru/order.d.ts +42 -0
  101. package/dist/models/services/translation/locales/ru/pricing.d.ts +33 -0
  102. package/dist/models/services/translation/locales/tr/auth.d.ts +7 -0
  103. package/dist/models/services/translation/locales/tr/common.d.ts +6 -0
  104. package/dist/models/services/translation/locales/tr/customer.d.ts +17 -0
  105. package/dist/models/services/translation/locales/tr/error.d.ts +19 -0
  106. package/dist/models/services/translation/locales/tr/events.d.ts +8 -0
  107. package/dist/models/services/translation/locales/tr/index.d.ts +128 -0
  108. package/dist/models/services/translation/locales/tr/order.d.ts +42 -0
  109. package/dist/models/services/translation/locales/tr/pricing.d.ts +33 -0
  110. package/dist/models/store/index.d.ts +7 -0
  111. package/dist/models/store/order.d.ts +41 -0
  112. package/dist/models/utils/common.d.ts +1 -0
  113. package/dist/modules/order/constants.d.ts +7 -0
  114. package/dist/modules/order/hooks.d.ts +6 -1
  115. package/dist/modules/order/utils.d.ts +6 -2
  116. package/dist/modules/product/hooks.d.ts +6 -0
  117. package/dist/modules/product/index.d.ts +1 -0
  118. package/dist/modules/product/utils.d.ts +6 -6
  119. package/dist/modules/table/hooks.d.ts +4 -0
  120. package/dist/modules/table/index.d.ts +2 -0
  121. package/dist/modules/table/models.d.ts +66 -0
  122. package/dist/services/translation/locales/az/index.d.ts +6 -0
  123. package/dist/services/translation/locales/az/order.d.ts +6 -0
  124. package/dist/services/translation/locales/et/index.d.ts +6 -0
  125. package/dist/services/translation/locales/et/order.d.ts +6 -0
  126. package/dist/services/translation/locales/index.d.ts +30 -0
  127. package/dist/services/translation/locales/nl/index.d.ts +6 -0
  128. package/dist/services/translation/locales/nl/order.d.ts +6 -0
  129. package/dist/services/translation/locales/ru/index.d.ts +6 -0
  130. package/dist/services/translation/locales/ru/order.d.ts +6 -0
  131. package/dist/services/translation/locales/tr/index.d.ts +6 -0
  132. package/dist/services/translation/locales/tr/order.d.ts +6 -0
  133. package/dist/store/order.d.ts +11 -3
  134. package/dist/styles/ui.css +1 -1
  135. package/dist/styles/ui.css.map +1 -1
  136. package/dist/utils/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +8 -0
  137. package/dist/utils/components/PublicMenu/ProductsGridItem/ProductsGridItem.types.d.ts +10 -0
  138. package/dist/utils/constants/env.d.ts +1 -0
  139. package/dist/utils/hooks/translation.d.ts +5 -0
  140. package/dist/utils/index.esm.js +1 -1
  141. package/dist/utils/index.esm.js.map +1 -1
  142. package/dist/utils/index.js +1 -1
  143. package/dist/utils/index.js.map +1 -1
  144. package/dist/utils/models/index.d.ts +3 -0
  145. package/dist/utils/models/menu.d.ts +3 -0
  146. package/dist/utils/modules/branch/hooks.d.ts +2 -0
  147. package/dist/utils/modules/business/hooks.d.ts +2 -0
  148. package/dist/utils/modules/common/services.d.ts +1 -0
  149. package/dist/utils/modules/customer/hooks.d.ts +4 -0
  150. package/dist/utils/modules/customer/services.d.ts +9 -0
  151. package/dist/utils/modules/feature/hooks.d.ts +2 -0
  152. package/dist/utils/modules/order/constants.d.ts +17 -0
  153. package/dist/utils/modules/order/hooks.d.ts +31 -0
  154. package/dist/utils/modules/order/index.d.ts +5 -0
  155. package/dist/utils/modules/order/services.d.ts +4 -0
  156. package/dist/utils/modules/order/utils.d.ts +6 -2
  157. package/dist/utils/modules/product/hooks.d.ts +6 -0
  158. package/dist/utils/modules/product/index.d.ts +3 -0
  159. package/dist/utils/modules/product/utils.d.ts +6 -6
  160. package/dist/utils/modules/table/models.d.ts +66 -0
  161. package/dist/utils/modules/view/constants.d.ts +13 -0
  162. package/dist/utils/modules/view/services.d.ts +2 -0
  163. package/dist/utils/services/api/index.d.ts +5 -0
  164. package/dist/utils/services/translation/index.d.ts +3 -0
  165. package/dist/utils/services/translation/locales/az/auth.d.ts +7 -0
  166. package/dist/utils/services/translation/locales/az/common.d.ts +6 -0
  167. package/dist/utils/services/translation/locales/az/customer.d.ts +17 -0
  168. package/dist/utils/services/translation/locales/az/error.d.ts +19 -0
  169. package/dist/utils/services/translation/locales/az/events.d.ts +8 -0
  170. package/dist/utils/services/translation/locales/az/index.d.ts +129 -0
  171. package/dist/utils/services/translation/locales/az/order.d.ts +41 -0
  172. package/dist/utils/services/translation/locales/az/pricing.d.ts +35 -0
  173. package/dist/utils/services/translation/locales/en/auth.d.ts +2 -0
  174. package/dist/utils/services/translation/locales/en/common.d.ts +2 -0
  175. package/dist/utils/services/translation/locales/en/customer.d.ts +2 -0
  176. package/dist/utils/services/translation/locales/en/error.d.ts +15 -0
  177. package/dist/utils/services/translation/locales/en/events.d.ts +2 -0
  178. package/dist/utils/services/translation/locales/en/index.d.ts +23 -0
  179. package/dist/utils/services/translation/locales/en/order.d.ts +2 -0
  180. package/dist/utils/services/translation/locales/en/pricing.d.ts +2 -0
  181. package/dist/utils/services/translation/locales/et/auth.d.ts +7 -0
  182. package/dist/utils/services/translation/locales/et/common.d.ts +6 -0
  183. package/dist/utils/services/translation/locales/et/customer.d.ts +17 -0
  184. package/dist/utils/services/translation/locales/et/error.d.ts +19 -0
  185. package/dist/utils/services/translation/locales/et/events.d.ts +8 -0
  186. package/dist/utils/services/translation/locales/et/index.d.ts +128 -0
  187. package/dist/utils/services/translation/locales/et/order.d.ts +42 -0
  188. package/dist/utils/services/translation/locales/et/pricing.d.ts +33 -0
  189. package/dist/utils/services/translation/locales/index.d.ts +661 -0
  190. package/dist/utils/services/translation/locales/nl/auth.d.ts +7 -0
  191. package/dist/utils/services/translation/locales/nl/common.d.ts +6 -0
  192. package/dist/utils/services/translation/locales/nl/customer.d.ts +17 -0
  193. package/dist/utils/services/translation/locales/nl/error.d.ts +19 -0
  194. package/dist/utils/services/translation/locales/nl/events.d.ts +8 -0
  195. package/dist/utils/services/translation/locales/nl/index.d.ts +128 -0
  196. package/dist/utils/services/translation/locales/nl/order.d.ts +42 -0
  197. package/dist/utils/services/translation/locales/nl/pricing.d.ts +33 -0
  198. package/dist/utils/services/translation/locales/ru/auth.d.ts +7 -0
  199. package/dist/utils/services/translation/locales/ru/common.d.ts +6 -0
  200. package/dist/utils/services/translation/locales/ru/customer.d.ts +17 -0
  201. package/dist/utils/services/translation/locales/ru/error.d.ts +19 -0
  202. package/dist/utils/services/translation/locales/ru/events.d.ts +8 -0
  203. package/dist/utils/services/translation/locales/ru/index.d.ts +128 -0
  204. package/dist/utils/services/translation/locales/ru/order.d.ts +42 -0
  205. package/dist/utils/services/translation/locales/ru/pricing.d.ts +33 -0
  206. package/dist/utils/services/translation/locales/tr/auth.d.ts +7 -0
  207. package/dist/utils/services/translation/locales/tr/common.d.ts +6 -0
  208. package/dist/utils/services/translation/locales/tr/customer.d.ts +17 -0
  209. package/dist/utils/services/translation/locales/tr/error.d.ts +19 -0
  210. package/dist/utils/services/translation/locales/tr/events.d.ts +8 -0
  211. package/dist/utils/services/translation/locales/tr/index.d.ts +128 -0
  212. package/dist/utils/services/translation/locales/tr/order.d.ts +42 -0
  213. package/dist/utils/services/translation/locales/tr/pricing.d.ts +33 -0
  214. package/dist/utils/store/index.d.ts +7 -0
  215. package/dist/utils/store/order.d.ts +41 -0
  216. package/package.json +8 -8
@@ -0,0 +1,8 @@
1
+ import { IconType } from "@sorocraft/ui";
2
+ import { models as orderModels } from "src/modules/order";
3
+ export interface OrderTypeForMethods {
4
+ type: orderModels.OrderType;
5
+ icon: IconType;
6
+ title: string;
7
+ isDisabled: boolean;
8
+ }
@@ -0,0 +1,10 @@
1
+ import { models as productModels } from "src/modules/product";
2
+ export interface ProductsGridItemProps {
3
+ product: productModels.Product;
4
+ currency: string;
5
+ language: string;
6
+ onClick?: () => void;
7
+ onAddProduct?: ({ product }: {
8
+ product: productModels.Product;
9
+ }) => void;
10
+ }
@@ -0,0 +1 @@
1
+ export declare const BASE_API_URL = "https://api.restaround.co/api/v1";
@@ -0,0 +1,5 @@
1
+ export declare const useTranslation: (ns?: string, params?: {
2
+ language?: string;
3
+ }) => {
4
+ t: (key: string, options?: Record<string, string>) => string;
5
+ };
@@ -7,5 +7,8 @@ export * from "../modules/order/models";
7
7
  export * from "../modules/product/models";
8
8
  export * from "../modules/view/models";
9
9
  export * from "../modules/subscription/models";
10
+ export * from "../modules/table/models";
10
11
  export * from "./category";
11
12
  export * from "./menu";
13
+ export * from "../components/PublicMenu/ProductsGridItem/ProductsGridItem.types";
14
+ export * from "../components/PublicMenu/OrderMethods/OrderMethods.types";
@@ -1,2 +1,2 @@
1
- var E,D,I,L,A,R,n,N,P,T,C,i,O,e;!function(E){E.SINGLE="SINGLE",E.MULTIPLE="MULTIPLE"}(E||(E={})),function(E){E.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",E.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",E.PICKUP_ORDER_ENABLED="pickupOrderEnabled",E.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",E.MIN_DELIVERY_AMOUNT="minDeliveryAmount"}(D||(D={})),function(E){E.PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL"}(I||(I={})),function(E){E.HOME="HOME",E.WORK="WORK",E.TRAVEL="TRAVEL"}(L||(L={})),function(E){E.ORDER="feature_order"}(A||(A={})),function(E){E.ALPHA="ALPHA",E.BETA="BETA",E.ALL="ALL"}(R||(R={})),function(E){E.DINE_IN="DINE_IN",E.PICK_UP="PICK_UP",E.DELIVERY="DELIVERY"}(n||(n={})),function(E){E.DRAFT="DRAFT",E.PENDING="PENDING",E.CONFIRMED="CONFIRMED",E.PREPARING="PREPARING",E.READY="READY",E.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",E.DELIVERED="DELIVERED",E.COMPLETED="COMPLETED",E.CANCELLED="CANCELLED",E.FAILED="FAILED"}(N||(N={})),function(E){E.PENDING="PENDING",E.PREPARING="PREPARING",E.READY="READY",E.SERVED="SERVED"}(P||(P={})),function(E){E.CASH="CASH",E.CARD="CARD",E.WALLET="WALLET",E.TERMINAL="TERMINAL"}(T||(T={})),function(E){E.CART="CART",E.DETAILS="DETAILS",E.COMPLETED="COMPLETED"}(C||(C={})),function(E){E.LIST="list",E.GRID="grid"}(i||(i={})),function(E){E.APPETIZER="appetizer",E.MAIN_COURSE="mainCourse",E.CHEFS_SPECIAL="chefsSpecial",E.LIFETIME="lifeTime"}(O||(O={})),function(E){E.ACTIVE="ACTIVE",E.EXPIRED="EXPIRED",E.CANCELLED="CANCELLED"}(e||(e={}));export{D as BusinessSetting,L as CustomerAddressType,I as CustomerAuthStep,A as Feature,R as FeatureSegment,E as MenuAddonSelectType,P as OrderItemStatus,N as OrderStatus,C as OrderStep,n as OrderType,T as PaymentMethod,O as PlanType,i as ProductView,e as SubscriptionStatus};
1
+ var E,A,I,R,N,L,O,D,C,T,_,P,n,S,G,M,i;!function(E){E.SINGLE="SINGLE",E.MULTIPLE="MULTIPLE"}(E||(E={})),function(E){E.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",E.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",E.PICKUP_ORDER_ENABLED="pickupOrderEnabled",E.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",E.MIN_DELIVERY_AMOUNT="minDeliveryAmount"}(A||(A={})),function(E){E.PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL"}(I||(I={})),function(E){E.HOME="HOME",E.WORK="WORK",E.TRAVEL="TRAVEL"}(R||(R={})),function(E){E.ORDER="feature_order"}(N||(N={})),function(E){E.ALPHA="ALPHA",E.BETA="BETA",E.ALL="ALL"}(L||(L={})),function(E){E.DINE_IN="DINE_IN",E.PICK_UP="PICK_UP",E.DELIVERY="DELIVERY"}(O||(O={})),function(E){E.DRAFT="DRAFT",E.PENDING="PENDING",E.CONFIRMED="CONFIRMED",E.PREPARING="PREPARING",E.READY="READY",E.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",E.DELIVERED="DELIVERED",E.COMPLETED="COMPLETED",E.CANCELLED="CANCELLED",E.FAILED="FAILED"}(D||(D={})),function(E){E.PENDING="PENDING",E.PREPARING="PREPARING",E.READY="READY",E.SERVED="SERVED"}(C||(C={})),function(E){E.CASH="CASH",E.CARD="CARD",E.WALLET="WALLET",E.TERMINAL="TERMINAL"}(T||(T={})),function(E){E.CART="CART",E.DETAILS="DETAILS",E.COMPLETED="COMPLETED"}(_||(_={})),function(E){E.LIST="list",E.GRID="grid"}(P||(P={})),function(E){E.APPETIZER="appetizer",E.MAIN_COURSE="mainCourse",E.CHEFS_SPECIAL="chefsSpecial",E.LIFETIME="lifeTime"}(n||(n={})),function(E){E.ACTIVE="ACTIVE",E.EXPIRED="EXPIRED",E.CANCELLED="CANCELLED"}(S||(S={})),function(E){E.SQUARE="SQUARE",E.CIRCLE="CIRCLE",E.RECTANGLE="RECTANGLE",E.RECTANGLE_VERTICAL="RECTANGLE_VERTICAL",E.SINGLE_AT_BAR="SINGLE_AT_BAR",E.OTHER="OTHER"}(G||(G={})),function(E){E.VACANT="VACANT",E.RESERVED="RESERVED",E.OCCUPIED="OCCUPIED",E.BLOCKED="BLOCKED",E.NEEDS_CLEANING="NEEDS_CLEANING",E.OUT_OF_SERVICE="OUT_OF_SERVICE",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.NO_SHOW="NO_SHOW"}(M||(M={})),function(E){E.MAIN_HALL="MAIN_HALL",E.PRIVATE_DINING="PRIVATE_DINING",E.VIP_ROOM="VIP_ROOM",E.BANQUET_HALL="BANQUET_HALL",E.BAR_AREA="BAR_AREA",E.LOUNGE="LOUNGE",E.OPEN_KITCHEN="OPEN_KITCHEN",E.BOOTH_SECTION="BOOTH_SECTION",E.MEZZANINE="MEZZANINE",E.WINE_CELLAR="WINE_CELLAR",E.TERRACE="TERRACE",E.PATIO="PATIO",E.GARDEN="GARDEN",E.COURTYARD="COURTYARD",E.ROOFTOP="ROOFTOP",E.BALCONY="BALCONY",E.SIDEWALK="SIDEWALK",E.POOLSIDE="POOLSIDE",E.SMOKING_AREA="SMOKING_AREA",E.NON_SMOKING="NON_SMOKING",E.FAMILY_SECTION="FAMILY_SECTION",E.KIDS_AREA="KIDS_AREA",E.WAITING_AREA="WAITING_AREA",E.DANCE_FLOOR="DANCE_FLOOR"}(i||(i={}));export{A as BusinessSetting,R as CustomerAddressType,I as CustomerAuthStep,N as Feature,L as FeatureSegment,E as MenuAddonSelectType,C as OrderItemStatus,D as OrderStatus,_ as OrderStep,O as OrderType,T as PaymentMethod,n as PlanType,P as ProductView,S as SubscriptionStatus,i as TableLocation,G as TableShape,M as TableStatus};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/business/models.ts","../../../src/modules/customer/models.ts","../../../src/modules/feature/models.ts","../../../src/modules/order/models.ts","../../../src/modules/product/models.ts","../../../src/modules/subscription/models.ts"],"sourcesContent":["export enum MenuAddonSelectType {\n\tSINGLE = \"SINGLE\",\n\tMULTIPLE = \"MULTIPLE\",\n}\n\nexport interface MenuAddonTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOptionTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOption {\n\tid?: number;\n\tprice: number;\n\ttranslations: MenuAddonOptionTranslation[];\n\tremove?: boolean;\n}\n\nexport interface MenuAddon {\n\tid?: number;\n\tselectType: MenuAddonSelectType;\n\ttranslations: MenuAddonTranslation[];\n\toptions: MenuAddonOption[];\n\tbusinessId?: number;\n}\n","import * as featureModels from \"../feature/models\";\nimport * as subscriptionModels from \"../subscription/models\";\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n}\n\nexport enum BusinessSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\n}\n\nexport interface Business {\n\tid: number;\n\tname: string;\n\tusername: string;\n\tavatar64?: string;\n\tavatar128?: string;\n\tavatar256?: string;\n\tcoverPhoto?: string;\n\tinstagram?: string;\n\tfacebook?: string;\n\ttiktok?: string;\n\tcreatedAt?: number;\n\tcurrency: string;\n\tlanguages: BusinessLanguage[];\n\tsubscriptions?: subscriptionModels.Subscription[];\n\tsegment?: featureModels.FeatureSegment;\n\tsettings?: BusinessSettings;\n}\n","export enum CustomerAuthStep {\n\tPHONE = \"PHONE\",\n\tOTP = \"OTP\",\n\tEMAIL = \"EMAIL\",\n}\n\nexport enum CustomerAddressType {\n\tHOME = \"HOME\",\n\tWORK = \"WORK\",\n\tTRAVEL = \"TRAVEL\",\n}\n\nexport interface CustomerAddress {\n\tid?: number;\n\taddressId?: number; // Update address temporary\n\tcountryCode: string;\n\tcityName: string;\n\tstreet: string;\n\thouseNumber: string;\n\tadditionalNumber?: string;\n\tpostCode?: string;\n\tinstructions?: string;\n\tfloor?: number;\n\tlongitude?: number;\n\tlatitude?: number;\n\ttitle?: string;\n\ttype?: CustomerAddressType;\n}\n\nexport interface CustomerAuthForm {\n\tphoneNumber: string;\n\totp: string;\n\temail: string;\n}\n\nexport interface CustomerAuthPhoneForm {\n\tcountryCode: string;\n\tphoneNumber: string;\n}\n\nexport interface AuthResponse {\n\taccessToken: string;\n\trefreshToken: string;\n}\n\nexport interface Customer {\n\tid?: number;\n\temail: string;\n\tphoneNumber: string;\n\tfullName: string;\n\tsmsVerified?: boolean;\n\temailVerified?: boolean;\n\taddress?: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import * as customerModels from \"../customer/models\";\n\nexport enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tDRAFT = \"DRAFT\",\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tOUT_FOR_DELIVERY = \"OUT_FOR_DELIVERY\",\n\tDELIVERED = \"DELIVERED\",\n\tCOMPLETED = \"COMPLETED\",\n\tCANCELLED = \"CANCELLED\",\n\tFAILED = \"FAILED\",\n}\n\nexport enum OrderItemStatus {\n\tPENDING = \"PENDING\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tSERVED = \"SERVED\",\n}\n\nexport enum PaymentMethod {\n\tCASH = \"CASH\",\n\tCARD = \"CARD\",\n\tWALLET = \"WALLET\",\n\tTERMINAL = \"TERMINAL\",\n}\n\nexport interface OrderAddonOption {\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptions: OrderAddonOption[];\n}\n\nexport interface SelectedAddons {\n\t[key: number]: number | number[];\n}\n\nexport interface OrderItemVariant {\n\tid?: number;\n\tvariantId: number;\n\tprice: number;\n}\n\nexport interface OrderItem {\n\tid?: number;\n\tproductId: number;\n\torderId?: number;\n\tquantity: number;\n\tprice: number;\n\tvariant?: OrderItemVariant;\n\taddons: OrderAddon[];\n\tnote?: string;\n\tstatus?: OrderItemStatus;\n\tvat?: number;\n\tisPaid?: boolean;\n}\n\nexport interface Order {\n\tid?: number;\n\tbusinessId?: number;\n\tbranchId?: number;\n\tworkingDayId?: number;\n\ttableId?: number;\n\temployeeId?: number;\n\torderType: OrderType;\n\ttotalPriceWithTax: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n\titems: OrderItem[];\n\tstatus?: OrderStatus;\n\tvat?: number;\n\tpaymentMethod?: PaymentMethod;\n\tnote?: string;\n\tcreatedAt?: number;\n\tupdatedAt?: number;\n\tcustomer?: customerModels.Customer;\n}\n\nexport interface OrderItems {\n\t[key: string]: OrderItem;\n}\n\nexport enum OrderStep {\n\tCART = \"CART\",\n\tDETAILS = \"DETAILS\",\n\tCOMPLETED = \"COMPLETED\",\n}\n\nexport interface OrderPayload extends Order {\n\tcustomerAddressId: number;\n\tcustomerId: number;\n}\n","import { MenuAddon } from \"../addon/models\";\n\nexport interface ProductTranslation {\n\tid: number;\n\tname: string;\n\tdescription?: string;\n\tlanguage: string;\n\tproductId?: number;\n}\n\nexport interface ProductVariantTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface ProductVariant {\n\tid?: number;\n\tprice: number;\n\ttranslations: ProductVariantTranslation[];\n\tproductId?: number;\n\tremove?: boolean;\n}\n\nexport interface Product {\n\tid: number;\n\tcategoryId: number;\n\tvat?: number;\n\tprice: number;\n\tvolume?: string; // 100qr/250ml/1kq\n\timage160?: string;\n\timage580?: string;\n\timage1024?: string;\n\ttranslations: ProductTranslation[];\n\tvariants: ProductVariant[];\n\taddons: MenuAddon[];\n\tavailable?: boolean;\n\tvisible?: boolean;\n\tposition?: number;\n}\n\nexport enum ProductView {\n\tLIST = \"list\",\n\tGRID = \"grid\",\n}\n\nexport interface DashboardProduct extends Omit<Product, \"addons\"> {\n\taddons: number[];\n}\n","export enum PlanType {\n\tAPPETIZER = \"appetizer\",\n\tMAIN_COURSE = \"mainCourse\",\n\tCHEFS_SPECIAL = \"chefsSpecial\",\n\tLIFETIME = \"lifeTime\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n\tribbonText?: string;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\n\nexport enum SubscriptionStatus {\n\tACTIVE = \"ACTIVE\",\n\tEXPIRED = \"EXPIRED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport type BillingInterval = \"MONTH\" | \"YEAR\";\n\nexport interface Subscription {\n\tid: number;\n\tbillingInterval: BillingInterval;\n\tbillingIntervalCount: number;\n\tstartDate: string;\n\tendDate: string;\n\tinterval: PricingInterval;\n\tstatus: SubscriptionStatus;\n\tbusiness_id?: number;\n\tplanName: string;\n}\n"],"names":["MenuAddonSelectType","BusinessSetting","CustomerAuthStep","CustomerAddressType","Feature","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus"],"mappings":"IAAYA,ECiBAC,ECjBAC,EAMAC,ECNAC,EAGAC,ECDAC,EAMAC,EAaAC,EAOAC,EAmEAC,ECtDAC,ECzCAC,EAuBAC,GNvBZ,SAAYb,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,ICcD,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,mBACA,CAND,CAAYA,IAAAA,EAMX,CAAA,ICvBD,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,MAAA,OACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IAED,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,QACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICVD,SAAYC,GACXA,EAAA,MAAA,eACA,CAFD,CAAYA,IAAAA,EAEX,CAAA,IACD,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,KACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICLD,SAAYC,GACXA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,UACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IAED,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,OAAA,QACA,CAXD,CAAYA,IAAAA,EAWX,CAAA,IAED,SAAYC,GACXA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,OAAA,QACA,CALD,CAAYA,IAAAA,EAKX,CAAA,IAED,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CALD,CAAYA,IAAAA,EAKX,CAAA,IA8DD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,UAAA,WACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IC1DD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,MACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,IC5CD,SAAYC,GACXA,EAAA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA,eACAA,EAAA,SAAA,UACA,CALD,CAAYA,IAAAA,EAKX,CAAA,IAkBD,SAAYC,GACXA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA,WACA,CAJD,CAAYA,IAAAA,EAIX,CAAA"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/business/models.ts","../../../src/modules/customer/models.ts","../../../src/modules/feature/models.ts","../../../src/modules/order/models.ts","../../../src/modules/product/models.ts","../../../src/modules/subscription/models.ts","../../../src/modules/table/models.ts"],"sourcesContent":["export enum MenuAddonSelectType {\n\tSINGLE = \"SINGLE\",\n\tMULTIPLE = \"MULTIPLE\",\n}\n\nexport interface MenuAddonTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOptionTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOption {\n\tid?: number;\n\tprice: number;\n\ttranslations: MenuAddonOptionTranslation[];\n\tremove?: boolean;\n}\n\nexport interface MenuAddon {\n\tid?: number;\n\tselectType: MenuAddonSelectType;\n\ttranslations: MenuAddonTranslation[];\n\toptions: MenuAddonOption[];\n\tbusinessId?: number;\n}\n","import * as featureModels from \"../feature/models\";\nimport * as subscriptionModels from \"../subscription/models\";\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n}\n\nexport enum BusinessSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\n}\n\nexport interface Business {\n\tid: number;\n\tname: string;\n\tusername: string;\n\tavatar64?: string;\n\tavatar128?: string;\n\tavatar256?: string;\n\tcoverPhoto?: string;\n\tinstagram?: string;\n\tfacebook?: string;\n\ttiktok?: string;\n\tcreatedAt?: number;\n\tcurrency: string;\n\tlanguages: BusinessLanguage[];\n\tsubscriptions?: subscriptionModels.Subscription[];\n\tsegment?: featureModels.FeatureSegment;\n\tsettings?: BusinessSettings;\n}\n","export enum CustomerAuthStep {\n\tPHONE = \"PHONE\",\n\tOTP = \"OTP\",\n\tEMAIL = \"EMAIL\",\n}\n\nexport enum CustomerAddressType {\n\tHOME = \"HOME\",\n\tWORK = \"WORK\",\n\tTRAVEL = \"TRAVEL\",\n}\n\nexport interface CustomerAddress {\n\tid?: number;\n\taddressId?: number; // Update address temporary\n\tcountryCode: string;\n\tcityName: string;\n\tstreet: string;\n\thouseNumber: string;\n\tadditionalNumber?: string;\n\tpostCode?: string;\n\tinstructions?: string;\n\tfloor?: number;\n\tlongitude?: number;\n\tlatitude?: number;\n\ttitle?: string;\n\ttype?: CustomerAddressType;\n}\n\nexport interface CustomerAuthForm {\n\tphoneNumber: string;\n\totp: string;\n\temail: string;\n}\n\nexport interface CustomerAuthPhoneForm {\n\tcountryCode: string;\n\tphoneNumber: string;\n}\n\nexport interface AuthResponse {\n\taccessToken: string;\n\trefreshToken: string;\n}\n\nexport interface Customer {\n\tid?: number;\n\temail: string;\n\tphoneNumber: string;\n\tfullName: string;\n\tsmsVerified?: boolean;\n\temailVerified?: boolean;\n\taddress?: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import * as customerModels from \"../customer/models\";\n\nexport enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tDRAFT = \"DRAFT\",\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tOUT_FOR_DELIVERY = \"OUT_FOR_DELIVERY\",\n\tDELIVERED = \"DELIVERED\",\n\tCOMPLETED = \"COMPLETED\",\n\tCANCELLED = \"CANCELLED\",\n\tFAILED = \"FAILED\",\n}\n\nexport enum OrderItemStatus {\n\tPENDING = \"PENDING\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tSERVED = \"SERVED\",\n}\n\nexport enum PaymentMethod {\n\tCASH = \"CASH\",\n\tCARD = \"CARD\",\n\tWALLET = \"WALLET\",\n\tTERMINAL = \"TERMINAL\",\n}\n\nexport interface OrderAddonOption {\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptions: OrderAddonOption[];\n}\n\nexport interface SelectedAddons {\n\t[key: number]: number | number[];\n}\n\nexport interface OrderItemVariant {\n\tid?: number;\n\tvariantId: number;\n\tprice: number;\n}\n\nexport interface OrderItem {\n\tid?: number;\n\tproductId: number;\n\torderId?: number;\n\tquantity: number;\n\tprice: number;\n\tvariant?: OrderItemVariant;\n\taddons: OrderAddon[];\n\tnote?: string;\n\tstatus?: OrderItemStatus;\n\tvat?: number;\n\tisPaid?: boolean;\n}\n\nexport interface Order {\n\tid?: number;\n\tbusinessId?: number;\n\tbranchId?: number;\n\tworkingDayId?: number;\n\ttableId?: number;\n\temployeeId?: number;\n\torderType: OrderType;\n\ttotalPriceWithTax: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n\titems: OrderItem[];\n\tstatus?: OrderStatus;\n\tvat?: number;\n\tpaymentMethod?: PaymentMethod;\n\tnote?: string;\n\tcreatedAt?: number;\n\tupdatedAt?: number;\n\tcustomer?: customerModels.Customer;\n}\n\nexport interface OrderItems {\n\t[key: string]: OrderItem;\n}\n\nexport enum OrderStep {\n\tCART = \"CART\",\n\tDETAILS = \"DETAILS\",\n\tCOMPLETED = \"COMPLETED\",\n}\n\nexport interface OrderPayload extends Order {\n\tcustomerAddressId: number;\n\tcustomerId: number;\n}\n","import { MenuAddon } from \"../addon/models\";\n\nexport interface ProductTranslation {\n\tid: number;\n\tname: string;\n\tdescription?: string;\n\tlanguage: string;\n\tproductId?: number;\n}\n\nexport interface ProductVariantTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface ProductVariant {\n\tid?: number;\n\tprice: number;\n\ttranslations: ProductVariantTranslation[];\n\tproductId?: number;\n\tremove?: boolean;\n}\n\nexport interface Product {\n\tid: number;\n\tcategoryId: number;\n\tvat?: number;\n\tprice: number;\n\tvolume?: string; // 100qr/250ml/1kq\n\timage160?: string;\n\timage580?: string;\n\timage1024?: string;\n\ttranslations: ProductTranslation[];\n\tvariants: ProductVariant[];\n\taddons: MenuAddon[];\n\tavailable?: boolean;\n\tvisible?: boolean;\n\tposition?: number;\n}\n\nexport enum ProductView {\n\tLIST = \"list\",\n\tGRID = \"grid\",\n}\n\nexport interface DashboardProduct extends Omit<Product, \"addons\"> {\n\taddons: number[];\n}\n","export enum PlanType {\n\tAPPETIZER = \"appetizer\",\n\tMAIN_COURSE = \"mainCourse\",\n\tCHEFS_SPECIAL = \"chefsSpecial\",\n\tLIFETIME = \"lifeTime\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n\tribbonText?: string;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\n\nexport enum SubscriptionStatus {\n\tACTIVE = \"ACTIVE\",\n\tEXPIRED = \"EXPIRED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport type BillingInterval = \"MONTH\" | \"YEAR\";\n\nexport interface Subscription {\n\tid: number;\n\tbillingInterval: BillingInterval;\n\tbillingIntervalCount: number;\n\tstartDate: string;\n\tendDate: string;\n\tinterval: PricingInterval;\n\tstatus: SubscriptionStatus;\n\tbusiness_id?: number;\n\tplanName: string;\n}\n","export enum TableShape {\n\tSQUARE = \"SQUARE\",\n\tCIRCLE = \"CIRCLE\",\n\tRECTANGLE = \"RECTANGLE\",\n\tRECTANGLE_VERTICAL = \"RECTANGLE_VERTICAL\",\n\tSINGLE_AT_BAR = \"SINGLE_AT_BAR\",\n\tOTHER = \"OTHER\",\n}\n\nexport enum TableStatus {\n\tVACANT = \"VACANT\", // Free and available\n\tRESERVED = \"RESERVED\", // Booked but not yet seated\n\tOCCUPIED = \"OCCUPIED\", // Currently in use\n\tBLOCKED = \"BLOCKED\", // Temporarily blocked/unavailable\n\tNEEDS_CLEANING = \"NEEDS_CLEANING\", // Dirty, awaiting cleanup\n\tOUT_OF_SERVICE = \"OUT_OF_SERVICE\", // Permanently unavailable repair/maintenance\n\tPENDING_CONFIRMATION = \"PENDING_CONFIRMATION\", // Reservation not yet confirmed\n\tNO_SHOW = \"NO_SHOW\", // Reserved but guest didn’t arrive\n}\n\nexport enum TableLocation {\n\t// Indoor\n\tMAIN_HALL = \"MAIN_HALL\",\n\tPRIVATE_DINING = \"PRIVATE_DINING\",\n\tVIP_ROOM = \"VIP_ROOM\",\n\tBANQUET_HALL = \"BANQUET_HALL\",\n\tBAR_AREA = \"BAR_AREA\",\n\tLOUNGE = \"LOUNGE\",\n\tOPEN_KITCHEN = \"OPEN_KITCHEN\",\n\tBOOTH_SECTION = \"BOOTH_SECTION\",\n\tMEZZANINE = \"MEZZANINE\",\n\tWINE_CELLAR = \"WINE_CELLAR\",\n\n\t// Outdoor\n\tTERRACE = \"TERRACE\",\n\tPATIO = \"PATIO\",\n\tGARDEN = \"GARDEN\",\n\tCOURTYARD = \"COURTYARD\",\n\tROOFTOP = \"ROOFTOP\",\n\tBALCONY = \"BALCONY\",\n\tSIDEWALK = \"SIDEWALK\",\n\tPOOLSIDE = \"POOLSIDE\",\n\n\t// Special Sections\n\tSMOKING_AREA = \"SMOKING_AREA\",\n\tNON_SMOKING = \"NON_SMOKING\",\n\tFAMILY_SECTION = \"FAMILY_SECTION\",\n\tKIDS_AREA = \"KIDS_AREA\",\n\tWAITING_AREA = \"WAITING_AREA\",\n\tDANCE_FLOOR = \"DANCE_FLOOR\",\n}\n\nexport interface Table {\n\tid: number;\n\tbusinessId: number;\n\tbranchId: number;\n\tname: string;\n\tseatCount: number;\n\tshape: TableShape;\n\tlocation: TableLocation;\n\tstatus: TableStatus;\n}\n\nexport interface TableState {\n\ttables: Table[];\n}\n\nexport type TableForm = Omit<Table, \"id\" | \"businessId\" | \"branchId\"> & {\n\tbranchId: string | number;\n};\n\nexport type TableUpdate = Partial<Omit<Table, \"id\" | \"businessId\">>;\n\nexport type TableFilter = Partial<Pick<Table, \"branchId\" | \"shape\" | \"location\" | \"status\">>;\n\nexport type TableFilterParams = { field: keyof TableFilter; value: TableFilter[keyof TableFilter] };\n"],"names":["MenuAddonSelectType","BusinessSetting","CustomerAuthStep","CustomerAddressType","Feature","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation"],"mappings":"IAAYA,ECiBAC,ECjBAC,EAMAC,ECNAC,EAGAC,ECDAC,EAMAC,EAaAC,EAOAC,EAmEAC,ECtDAC,ECzCAC,EAuBAC,ECvBAC,EASAC,EAWAC,GPpBZ,SAAYhB,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,ICcD,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,mBACA,CAND,CAAYA,IAAAA,EAMX,CAAA,ICvBD,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,MAAA,OACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IAED,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,QACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICVD,SAAYC,GACXA,EAAA,MAAA,eACA,CAFD,CAAYA,IAAAA,EAEX,CAAA,IACD,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,KACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICLD,SAAYC,GACXA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,UACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IAED,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,OAAA,QACA,CAXD,CAAYA,IAAAA,EAWX,CAAA,IAED,SAAYC,GACXA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,OAAA,QACA,CALD,CAAYA,IAAAA,EAKX,CAAA,IAED,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CALD,CAAYA,IAAAA,EAKX,CAAA,IA8DD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,UAAA,WACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IC1DD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,MACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,IC5CD,SAAYC,GACXA,EAAA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA,eACAA,EAAA,SAAA,UACA,CALD,CAAYA,IAAAA,EAKX,CAAA,IAkBD,SAAYC,GACXA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA,WACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IC3BD,SAAYC,GACXA,EAAA,OAAA,SACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,mBAAA,qBACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,OACA,CAPD,CAAYA,IAAAA,EAOX,CAAA,IAED,SAAYC,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WACAA,EAAA,QAAA,UACAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,qBAAA,uBACAA,EAAA,QAAA,SACA,CATD,CAAYA,IAAAA,EASX,CAAA,IAED,SAAYC,GAEXA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,SAAA,WACAA,EAAA,aAAA,eACAA,EAAA,SAAA,WACAA,EAAA,OAAA,SACAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,YAAA,cAGAA,EAAA,QAAA,UACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WAGAA,EAAA,aAAA,eACAA,EAAA,YAAA,cACAA,EAAA,eAAA,iBACAA,EAAA,UAAA,YACAA,EAAA,aAAA,eACAA,EAAA,YAAA,aACA,CA9BD,CAAYA,IAAAA,EA8BX,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var e,t,E,r,s,o,p,A,I,D,d,L,R;exports.MenuAddonSelectType=void 0,(e=exports.MenuAddonSelectType||(exports.MenuAddonSelectType={})).SINGLE="SINGLE",e.MULTIPLE="MULTIPLE",exports.BusinessSetting=void 0,(t=exports.BusinessSetting||(exports.BusinessSetting={})).MAX_DELIVERY_DISTANCE="maxDeliveryDistance",t.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",t.PICKUP_ORDER_ENABLED="pickupOrderEnabled",t.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",t.MIN_DELIVERY_AMOUNT="minDeliveryAmount",exports.CustomerAuthStep=void 0,(E=exports.CustomerAuthStep||(exports.CustomerAuthStep={})).PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL",exports.CustomerAddressType=void 0,(r=exports.CustomerAddressType||(exports.CustomerAddressType={})).HOME="HOME",r.WORK="WORK",r.TRAVEL="TRAVEL",exports.Feature=void 0,(exports.Feature||(exports.Feature={})).ORDER="feature_order",exports.FeatureSegment=void 0,(s=exports.FeatureSegment||(exports.FeatureSegment={})).ALPHA="ALPHA",s.BETA="BETA",s.ALL="ALL",exports.OrderType=void 0,(o=exports.OrderType||(exports.OrderType={})).DINE_IN="DINE_IN",o.PICK_UP="PICK_UP",o.DELIVERY="DELIVERY",exports.OrderStatus=void 0,(p=exports.OrderStatus||(exports.OrderStatus={})).DRAFT="DRAFT",p.PENDING="PENDING",p.CONFIRMED="CONFIRMED",p.PREPARING="PREPARING",p.READY="READY",p.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",p.DELIVERED="DELIVERED",p.COMPLETED="COMPLETED",p.CANCELLED="CANCELLED",p.FAILED="FAILED",exports.OrderItemStatus=void 0,(A=exports.OrderItemStatus||(exports.OrderItemStatus={})).PENDING="PENDING",A.PREPARING="PREPARING",A.READY="READY",A.SERVED="SERVED",exports.PaymentMethod=void 0,(I=exports.PaymentMethod||(exports.PaymentMethod={})).CASH="CASH",I.CARD="CARD",I.WALLET="WALLET",I.TERMINAL="TERMINAL",exports.OrderStep=void 0,(D=exports.OrderStep||(exports.OrderStep={})).CART="CART",D.DETAILS="DETAILS",D.COMPLETED="COMPLETED",exports.ProductView=void 0,(d=exports.ProductView||(exports.ProductView={})).LIST="list",d.GRID="grid",exports.PlanType=void 0,(L=exports.PlanType||(exports.PlanType={})).APPETIZER="appetizer",L.MAIN_COURSE="mainCourse",L.CHEFS_SPECIAL="chefsSpecial",L.LIFETIME="lifeTime",exports.SubscriptionStatus=void 0,(R=exports.SubscriptionStatus||(exports.SubscriptionStatus={})).ACTIVE="ACTIVE",R.EXPIRED="EXPIRED",R.CANCELLED="CANCELLED";
1
+ "use strict";var E,e,t,A,r,I,R,N,O,o,L,s,T,p,D,C;exports.MenuAddonSelectType=void 0,(E=exports.MenuAddonSelectType||(exports.MenuAddonSelectType={})).SINGLE="SINGLE",E.MULTIPLE="MULTIPLE",exports.BusinessSetting=void 0,(e=exports.BusinessSetting||(exports.BusinessSetting={})).MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",e.MIN_DELIVERY_AMOUNT="minDeliveryAmount",exports.CustomerAuthStep=void 0,(t=exports.CustomerAuthStep||(exports.CustomerAuthStep={})).PHONE="PHONE",t.OTP="OTP",t.EMAIL="EMAIL",exports.CustomerAddressType=void 0,(A=exports.CustomerAddressType||(exports.CustomerAddressType={})).HOME="HOME",A.WORK="WORK",A.TRAVEL="TRAVEL",exports.Feature=void 0,(exports.Feature||(exports.Feature={})).ORDER="feature_order",exports.FeatureSegment=void 0,(r=exports.FeatureSegment||(exports.FeatureSegment={})).ALPHA="ALPHA",r.BETA="BETA",r.ALL="ALL",exports.OrderType=void 0,(I=exports.OrderType||(exports.OrderType={})).DINE_IN="DINE_IN",I.PICK_UP="PICK_UP",I.DELIVERY="DELIVERY",exports.OrderStatus=void 0,(R=exports.OrderStatus||(exports.OrderStatus={})).DRAFT="DRAFT",R.PENDING="PENDING",R.CONFIRMED="CONFIRMED",R.PREPARING="PREPARING",R.READY="READY",R.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",R.DELIVERED="DELIVERED",R.COMPLETED="COMPLETED",R.CANCELLED="CANCELLED",R.FAILED="FAILED",exports.OrderItemStatus=void 0,(N=exports.OrderItemStatus||(exports.OrderItemStatus={})).PENDING="PENDING",N.PREPARING="PREPARING",N.READY="READY",N.SERVED="SERVED",exports.PaymentMethod=void 0,(O=exports.PaymentMethod||(exports.PaymentMethod={})).CASH="CASH",O.CARD="CARD",O.WALLET="WALLET",O.TERMINAL="TERMINAL",exports.OrderStep=void 0,(o=exports.OrderStep||(exports.OrderStep={})).CART="CART",o.DETAILS="DETAILS",o.COMPLETED="COMPLETED",exports.ProductView=void 0,(L=exports.ProductView||(exports.ProductView={})).LIST="list",L.GRID="grid",exports.PlanType=void 0,(s=exports.PlanType||(exports.PlanType={})).APPETIZER="appetizer",s.MAIN_COURSE="mainCourse",s.CHEFS_SPECIAL="chefsSpecial",s.LIFETIME="lifeTime",exports.SubscriptionStatus=void 0,(T=exports.SubscriptionStatus||(exports.SubscriptionStatus={})).ACTIVE="ACTIVE",T.EXPIRED="EXPIRED",T.CANCELLED="CANCELLED",exports.TableShape=void 0,(p=exports.TableShape||(exports.TableShape={})).SQUARE="SQUARE",p.CIRCLE="CIRCLE",p.RECTANGLE="RECTANGLE",p.RECTANGLE_VERTICAL="RECTANGLE_VERTICAL",p.SINGLE_AT_BAR="SINGLE_AT_BAR",p.OTHER="OTHER",exports.TableStatus=void 0,(D=exports.TableStatus||(exports.TableStatus={})).VACANT="VACANT",D.RESERVED="RESERVED",D.OCCUPIED="OCCUPIED",D.BLOCKED="BLOCKED",D.NEEDS_CLEANING="NEEDS_CLEANING",D.OUT_OF_SERVICE="OUT_OF_SERVICE",D.PENDING_CONFIRMATION="PENDING_CONFIRMATION",D.NO_SHOW="NO_SHOW",exports.TableLocation=void 0,(C=exports.TableLocation||(exports.TableLocation={})).MAIN_HALL="MAIN_HALL",C.PRIVATE_DINING="PRIVATE_DINING",C.VIP_ROOM="VIP_ROOM",C.BANQUET_HALL="BANQUET_HALL",C.BAR_AREA="BAR_AREA",C.LOUNGE="LOUNGE",C.OPEN_KITCHEN="OPEN_KITCHEN",C.BOOTH_SECTION="BOOTH_SECTION",C.MEZZANINE="MEZZANINE",C.WINE_CELLAR="WINE_CELLAR",C.TERRACE="TERRACE",C.PATIO="PATIO",C.GARDEN="GARDEN",C.COURTYARD="COURTYARD",C.ROOFTOP="ROOFTOP",C.BALCONY="BALCONY",C.SIDEWALK="SIDEWALK",C.POOLSIDE="POOLSIDE",C.SMOKING_AREA="SMOKING_AREA",C.NON_SMOKING="NON_SMOKING",C.FAMILY_SECTION="FAMILY_SECTION",C.KIDS_AREA="KIDS_AREA",C.WAITING_AREA="WAITING_AREA",C.DANCE_FLOOR="DANCE_FLOOR";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/business/models.ts","../../../src/modules/customer/models.ts","../../../src/modules/feature/models.ts","../../../src/modules/order/models.ts","../../../src/modules/product/models.ts","../../../src/modules/subscription/models.ts"],"sourcesContent":["export enum MenuAddonSelectType {\n\tSINGLE = \"SINGLE\",\n\tMULTIPLE = \"MULTIPLE\",\n}\n\nexport interface MenuAddonTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOptionTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOption {\n\tid?: number;\n\tprice: number;\n\ttranslations: MenuAddonOptionTranslation[];\n\tremove?: boolean;\n}\n\nexport interface MenuAddon {\n\tid?: number;\n\tselectType: MenuAddonSelectType;\n\ttranslations: MenuAddonTranslation[];\n\toptions: MenuAddonOption[];\n\tbusinessId?: number;\n}\n","import * as featureModels from \"../feature/models\";\nimport * as subscriptionModels from \"../subscription/models\";\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n}\n\nexport enum BusinessSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\n}\n\nexport interface Business {\n\tid: number;\n\tname: string;\n\tusername: string;\n\tavatar64?: string;\n\tavatar128?: string;\n\tavatar256?: string;\n\tcoverPhoto?: string;\n\tinstagram?: string;\n\tfacebook?: string;\n\ttiktok?: string;\n\tcreatedAt?: number;\n\tcurrency: string;\n\tlanguages: BusinessLanguage[];\n\tsubscriptions?: subscriptionModels.Subscription[];\n\tsegment?: featureModels.FeatureSegment;\n\tsettings?: BusinessSettings;\n}\n","export enum CustomerAuthStep {\n\tPHONE = \"PHONE\",\n\tOTP = \"OTP\",\n\tEMAIL = \"EMAIL\",\n}\n\nexport enum CustomerAddressType {\n\tHOME = \"HOME\",\n\tWORK = \"WORK\",\n\tTRAVEL = \"TRAVEL\",\n}\n\nexport interface CustomerAddress {\n\tid?: number;\n\taddressId?: number; // Update address temporary\n\tcountryCode: string;\n\tcityName: string;\n\tstreet: string;\n\thouseNumber: string;\n\tadditionalNumber?: string;\n\tpostCode?: string;\n\tinstructions?: string;\n\tfloor?: number;\n\tlongitude?: number;\n\tlatitude?: number;\n\ttitle?: string;\n\ttype?: CustomerAddressType;\n}\n\nexport interface CustomerAuthForm {\n\tphoneNumber: string;\n\totp: string;\n\temail: string;\n}\n\nexport interface CustomerAuthPhoneForm {\n\tcountryCode: string;\n\tphoneNumber: string;\n}\n\nexport interface AuthResponse {\n\taccessToken: string;\n\trefreshToken: string;\n}\n\nexport interface Customer {\n\tid?: number;\n\temail: string;\n\tphoneNumber: string;\n\tfullName: string;\n\tsmsVerified?: boolean;\n\temailVerified?: boolean;\n\taddress?: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import * as customerModels from \"../customer/models\";\n\nexport enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tDRAFT = \"DRAFT\",\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tOUT_FOR_DELIVERY = \"OUT_FOR_DELIVERY\",\n\tDELIVERED = \"DELIVERED\",\n\tCOMPLETED = \"COMPLETED\",\n\tCANCELLED = \"CANCELLED\",\n\tFAILED = \"FAILED\",\n}\n\nexport enum OrderItemStatus {\n\tPENDING = \"PENDING\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tSERVED = \"SERVED\",\n}\n\nexport enum PaymentMethod {\n\tCASH = \"CASH\",\n\tCARD = \"CARD\",\n\tWALLET = \"WALLET\",\n\tTERMINAL = \"TERMINAL\",\n}\n\nexport interface OrderAddonOption {\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptions: OrderAddonOption[];\n}\n\nexport interface SelectedAddons {\n\t[key: number]: number | number[];\n}\n\nexport interface OrderItemVariant {\n\tid?: number;\n\tvariantId: number;\n\tprice: number;\n}\n\nexport interface OrderItem {\n\tid?: number;\n\tproductId: number;\n\torderId?: number;\n\tquantity: number;\n\tprice: number;\n\tvariant?: OrderItemVariant;\n\taddons: OrderAddon[];\n\tnote?: string;\n\tstatus?: OrderItemStatus;\n\tvat?: number;\n\tisPaid?: boolean;\n}\n\nexport interface Order {\n\tid?: number;\n\tbusinessId?: number;\n\tbranchId?: number;\n\tworkingDayId?: number;\n\ttableId?: number;\n\temployeeId?: number;\n\torderType: OrderType;\n\ttotalPriceWithTax: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n\titems: OrderItem[];\n\tstatus?: OrderStatus;\n\tvat?: number;\n\tpaymentMethod?: PaymentMethod;\n\tnote?: string;\n\tcreatedAt?: number;\n\tupdatedAt?: number;\n\tcustomer?: customerModels.Customer;\n}\n\nexport interface OrderItems {\n\t[key: string]: OrderItem;\n}\n\nexport enum OrderStep {\n\tCART = \"CART\",\n\tDETAILS = \"DETAILS\",\n\tCOMPLETED = \"COMPLETED\",\n}\n\nexport interface OrderPayload extends Order {\n\tcustomerAddressId: number;\n\tcustomerId: number;\n}\n","import { MenuAddon } from \"../addon/models\";\n\nexport interface ProductTranslation {\n\tid: number;\n\tname: string;\n\tdescription?: string;\n\tlanguage: string;\n\tproductId?: number;\n}\n\nexport interface ProductVariantTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface ProductVariant {\n\tid?: number;\n\tprice: number;\n\ttranslations: ProductVariantTranslation[];\n\tproductId?: number;\n\tremove?: boolean;\n}\n\nexport interface Product {\n\tid: number;\n\tcategoryId: number;\n\tvat?: number;\n\tprice: number;\n\tvolume?: string; // 100qr/250ml/1kq\n\timage160?: string;\n\timage580?: string;\n\timage1024?: string;\n\ttranslations: ProductTranslation[];\n\tvariants: ProductVariant[];\n\taddons: MenuAddon[];\n\tavailable?: boolean;\n\tvisible?: boolean;\n\tposition?: number;\n}\n\nexport enum ProductView {\n\tLIST = \"list\",\n\tGRID = \"grid\",\n}\n\nexport interface DashboardProduct extends Omit<Product, \"addons\"> {\n\taddons: number[];\n}\n","export enum PlanType {\n\tAPPETIZER = \"appetizer\",\n\tMAIN_COURSE = \"mainCourse\",\n\tCHEFS_SPECIAL = \"chefsSpecial\",\n\tLIFETIME = \"lifeTime\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n\tribbonText?: string;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\n\nexport enum SubscriptionStatus {\n\tACTIVE = \"ACTIVE\",\n\tEXPIRED = \"EXPIRED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport type BillingInterval = \"MONTH\" | \"YEAR\";\n\nexport interface Subscription {\n\tid: number;\n\tbillingInterval: BillingInterval;\n\tbillingIntervalCount: number;\n\tstartDate: string;\n\tendDate: string;\n\tinterval: PricingInterval;\n\tstatus: SubscriptionStatus;\n\tbusiness_id?: number;\n\tplanName: string;\n}\n"],"names":["MenuAddonSelectType","BusinessSetting","CustomerAuthStep","CustomerAddressType","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","Feature"],"mappings":"aAAA,IAAYA,ECiBAC,ECjBAC,EAMAC,ECHAC,ECDAC,EAMAC,EAaAC,EAOAC,EAmEAC,ECtDAC,ECzCAC,EAuBAC,ENvBAZ,QAAAA,yBAAAA,GAAAA,EAAAA,QAAmBA,sBAAnBA,4BAGX,CAAA,IAFA,OAAA,SACAA,EAAA,SAAA,WCeWC,QAAAA,qBAAAA,GAAAA,EAAAA,QAAeA,kBAAfA,wBAMX,CAAA,IALA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBCtBWC,QAAAA,sBAAAA,GAAAA,EAAAA,QAAgBA,mBAAhBA,yBAIX,CAAA,IAHA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,MAAA,QAGWC,QAAAA,yBAAAA,GAAAA,EAAAA,QAAmBA,sBAAnBA,4BAIX,CAAA,IAHA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SCTWU,QAAAA,aAAAA,GAAAA,QAAOA,UAAPA,gBAEX,CAAA,IADA,MAAA,gBAEWT,QAAAA,oBAAAA,GAAAA,EAAAA,QAAcA,iBAAdA,uBAIX,CAAA,IAHA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MCJWC,QAAAA,eAAAA,GAAAA,EAAAA,QAASA,YAATA,kBAIX,CAAA,IAHA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WAGWC,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBAWX,CAAA,IAVA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SAGWC,QAAAA,qBAAAA,GAAAA,EAAAA,QAAeA,kBAAfA,wBAKX,CAAA,IAJA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SAGWC,QAAAA,mBAAAA,GAAAA,EAAAA,QAAaA,gBAAbA,sBAKX,CAAA,IAJA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,SAAA,WA+DWC,QAAAA,eAAAA,GAAAA,EAAAA,QAASA,YAATA,kBAIX,CAAA,IAHA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YCzDWC,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBAGX,CAAA,IAFA,KAAA,OACAA,EAAA,KAAA,OC3CWC,QAAAA,cAAAA,GAAAA,EAAAA,QAAQA,WAARA,iBAKX,CAAA,IAJA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA,eACAA,EAAA,SAAA,WAmBWC,QAAAA,wBAAAA,GAAAA,EAAAA,QAAkBA,qBAAlBA,2BAIX,CAAA,IAHA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/business/models.ts","../../../src/modules/customer/models.ts","../../../src/modules/feature/models.ts","../../../src/modules/order/models.ts","../../../src/modules/product/models.ts","../../../src/modules/subscription/models.ts","../../../src/modules/table/models.ts"],"sourcesContent":["export enum MenuAddonSelectType {\n\tSINGLE = \"SINGLE\",\n\tMULTIPLE = \"MULTIPLE\",\n}\n\nexport interface MenuAddonTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOptionTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOption {\n\tid?: number;\n\tprice: number;\n\ttranslations: MenuAddonOptionTranslation[];\n\tremove?: boolean;\n}\n\nexport interface MenuAddon {\n\tid?: number;\n\tselectType: MenuAddonSelectType;\n\ttranslations: MenuAddonTranslation[];\n\toptions: MenuAddonOption[];\n\tbusinessId?: number;\n}\n","import * as featureModels from \"../feature/models\";\nimport * as subscriptionModels from \"../subscription/models\";\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n}\n\nexport enum BusinessSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\n}\n\nexport interface Business {\n\tid: number;\n\tname: string;\n\tusername: string;\n\tavatar64?: string;\n\tavatar128?: string;\n\tavatar256?: string;\n\tcoverPhoto?: string;\n\tinstagram?: string;\n\tfacebook?: string;\n\ttiktok?: string;\n\tcreatedAt?: number;\n\tcurrency: string;\n\tlanguages: BusinessLanguage[];\n\tsubscriptions?: subscriptionModels.Subscription[];\n\tsegment?: featureModels.FeatureSegment;\n\tsettings?: BusinessSettings;\n}\n","export enum CustomerAuthStep {\n\tPHONE = \"PHONE\",\n\tOTP = \"OTP\",\n\tEMAIL = \"EMAIL\",\n}\n\nexport enum CustomerAddressType {\n\tHOME = \"HOME\",\n\tWORK = \"WORK\",\n\tTRAVEL = \"TRAVEL\",\n}\n\nexport interface CustomerAddress {\n\tid?: number;\n\taddressId?: number; // Update address temporary\n\tcountryCode: string;\n\tcityName: string;\n\tstreet: string;\n\thouseNumber: string;\n\tadditionalNumber?: string;\n\tpostCode?: string;\n\tinstructions?: string;\n\tfloor?: number;\n\tlongitude?: number;\n\tlatitude?: number;\n\ttitle?: string;\n\ttype?: CustomerAddressType;\n}\n\nexport interface CustomerAuthForm {\n\tphoneNumber: string;\n\totp: string;\n\temail: string;\n}\n\nexport interface CustomerAuthPhoneForm {\n\tcountryCode: string;\n\tphoneNumber: string;\n}\n\nexport interface AuthResponse {\n\taccessToken: string;\n\trefreshToken: string;\n}\n\nexport interface Customer {\n\tid?: number;\n\temail: string;\n\tphoneNumber: string;\n\tfullName: string;\n\tsmsVerified?: boolean;\n\temailVerified?: boolean;\n\taddress?: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import * as customerModels from \"../customer/models\";\n\nexport enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tDRAFT = \"DRAFT\",\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tOUT_FOR_DELIVERY = \"OUT_FOR_DELIVERY\",\n\tDELIVERED = \"DELIVERED\",\n\tCOMPLETED = \"COMPLETED\",\n\tCANCELLED = \"CANCELLED\",\n\tFAILED = \"FAILED\",\n}\n\nexport enum OrderItemStatus {\n\tPENDING = \"PENDING\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tSERVED = \"SERVED\",\n}\n\nexport enum PaymentMethod {\n\tCASH = \"CASH\",\n\tCARD = \"CARD\",\n\tWALLET = \"WALLET\",\n\tTERMINAL = \"TERMINAL\",\n}\n\nexport interface OrderAddonOption {\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptions: OrderAddonOption[];\n}\n\nexport interface SelectedAddons {\n\t[key: number]: number | number[];\n}\n\nexport interface OrderItemVariant {\n\tid?: number;\n\tvariantId: number;\n\tprice: number;\n}\n\nexport interface OrderItem {\n\tid?: number;\n\tproductId: number;\n\torderId?: number;\n\tquantity: number;\n\tprice: number;\n\tvariant?: OrderItemVariant;\n\taddons: OrderAddon[];\n\tnote?: string;\n\tstatus?: OrderItemStatus;\n\tvat?: number;\n\tisPaid?: boolean;\n}\n\nexport interface Order {\n\tid?: number;\n\tbusinessId?: number;\n\tbranchId?: number;\n\tworkingDayId?: number;\n\ttableId?: number;\n\temployeeId?: number;\n\torderType: OrderType;\n\ttotalPriceWithTax: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n\titems: OrderItem[];\n\tstatus?: OrderStatus;\n\tvat?: number;\n\tpaymentMethod?: PaymentMethod;\n\tnote?: string;\n\tcreatedAt?: number;\n\tupdatedAt?: number;\n\tcustomer?: customerModels.Customer;\n}\n\nexport interface OrderItems {\n\t[key: string]: OrderItem;\n}\n\nexport enum OrderStep {\n\tCART = \"CART\",\n\tDETAILS = \"DETAILS\",\n\tCOMPLETED = \"COMPLETED\",\n}\n\nexport interface OrderPayload extends Order {\n\tcustomerAddressId: number;\n\tcustomerId: number;\n}\n","import { MenuAddon } from \"../addon/models\";\n\nexport interface ProductTranslation {\n\tid: number;\n\tname: string;\n\tdescription?: string;\n\tlanguage: string;\n\tproductId?: number;\n}\n\nexport interface ProductVariantTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface ProductVariant {\n\tid?: number;\n\tprice: number;\n\ttranslations: ProductVariantTranslation[];\n\tproductId?: number;\n\tremove?: boolean;\n}\n\nexport interface Product {\n\tid: number;\n\tcategoryId: number;\n\tvat?: number;\n\tprice: number;\n\tvolume?: string; // 100qr/250ml/1kq\n\timage160?: string;\n\timage580?: string;\n\timage1024?: string;\n\ttranslations: ProductTranslation[];\n\tvariants: ProductVariant[];\n\taddons: MenuAddon[];\n\tavailable?: boolean;\n\tvisible?: boolean;\n\tposition?: number;\n}\n\nexport enum ProductView {\n\tLIST = \"list\",\n\tGRID = \"grid\",\n}\n\nexport interface DashboardProduct extends Omit<Product, \"addons\"> {\n\taddons: number[];\n}\n","export enum PlanType {\n\tAPPETIZER = \"appetizer\",\n\tMAIN_COURSE = \"mainCourse\",\n\tCHEFS_SPECIAL = \"chefsSpecial\",\n\tLIFETIME = \"lifeTime\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n\tribbonText?: string;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\n\nexport enum SubscriptionStatus {\n\tACTIVE = \"ACTIVE\",\n\tEXPIRED = \"EXPIRED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport type BillingInterval = \"MONTH\" | \"YEAR\";\n\nexport interface Subscription {\n\tid: number;\n\tbillingInterval: BillingInterval;\n\tbillingIntervalCount: number;\n\tstartDate: string;\n\tendDate: string;\n\tinterval: PricingInterval;\n\tstatus: SubscriptionStatus;\n\tbusiness_id?: number;\n\tplanName: string;\n}\n","export enum TableShape {\n\tSQUARE = \"SQUARE\",\n\tCIRCLE = \"CIRCLE\",\n\tRECTANGLE = \"RECTANGLE\",\n\tRECTANGLE_VERTICAL = \"RECTANGLE_VERTICAL\",\n\tSINGLE_AT_BAR = \"SINGLE_AT_BAR\",\n\tOTHER = \"OTHER\",\n}\n\nexport enum TableStatus {\n\tVACANT = \"VACANT\", // Free and available\n\tRESERVED = \"RESERVED\", // Booked but not yet seated\n\tOCCUPIED = \"OCCUPIED\", // Currently in use\n\tBLOCKED = \"BLOCKED\", // Temporarily blocked/unavailable\n\tNEEDS_CLEANING = \"NEEDS_CLEANING\", // Dirty, awaiting cleanup\n\tOUT_OF_SERVICE = \"OUT_OF_SERVICE\", // Permanently unavailable repair/maintenance\n\tPENDING_CONFIRMATION = \"PENDING_CONFIRMATION\", // Reservation not yet confirmed\n\tNO_SHOW = \"NO_SHOW\", // Reserved but guest didn’t arrive\n}\n\nexport enum TableLocation {\n\t// Indoor\n\tMAIN_HALL = \"MAIN_HALL\",\n\tPRIVATE_DINING = \"PRIVATE_DINING\",\n\tVIP_ROOM = \"VIP_ROOM\",\n\tBANQUET_HALL = \"BANQUET_HALL\",\n\tBAR_AREA = \"BAR_AREA\",\n\tLOUNGE = \"LOUNGE\",\n\tOPEN_KITCHEN = \"OPEN_KITCHEN\",\n\tBOOTH_SECTION = \"BOOTH_SECTION\",\n\tMEZZANINE = \"MEZZANINE\",\n\tWINE_CELLAR = \"WINE_CELLAR\",\n\n\t// Outdoor\n\tTERRACE = \"TERRACE\",\n\tPATIO = \"PATIO\",\n\tGARDEN = \"GARDEN\",\n\tCOURTYARD = \"COURTYARD\",\n\tROOFTOP = \"ROOFTOP\",\n\tBALCONY = \"BALCONY\",\n\tSIDEWALK = \"SIDEWALK\",\n\tPOOLSIDE = \"POOLSIDE\",\n\n\t// Special Sections\n\tSMOKING_AREA = \"SMOKING_AREA\",\n\tNON_SMOKING = \"NON_SMOKING\",\n\tFAMILY_SECTION = \"FAMILY_SECTION\",\n\tKIDS_AREA = \"KIDS_AREA\",\n\tWAITING_AREA = \"WAITING_AREA\",\n\tDANCE_FLOOR = \"DANCE_FLOOR\",\n}\n\nexport interface Table {\n\tid: number;\n\tbusinessId: number;\n\tbranchId: number;\n\tname: string;\n\tseatCount: number;\n\tshape: TableShape;\n\tlocation: TableLocation;\n\tstatus: TableStatus;\n}\n\nexport interface TableState {\n\ttables: Table[];\n}\n\nexport type TableForm = Omit<Table, \"id\" | \"businessId\" | \"branchId\"> & {\n\tbranchId: string | number;\n};\n\nexport type TableUpdate = Partial<Omit<Table, \"id\" | \"businessId\">>;\n\nexport type TableFilter = Partial<Pick<Table, \"branchId\" | \"shape\" | \"location\" | \"status\">>;\n\nexport type TableFilterParams = { field: keyof TableFilter; value: TableFilter[keyof TableFilter] };\n"],"names":["MenuAddonSelectType","BusinessSetting","CustomerAuthStep","CustomerAddressType","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation","Feature"],"mappings":"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"}
@@ -3,6 +3,7 @@ import * as branchModels from "src/modules/branch/models";
3
3
  import * as categoryModels from "./category";
4
4
  import * as businessModels from "src/modules/business/models";
5
5
  import * as featureModels from "src/modules/feature/models";
6
+ import * as tableModels from "src/modules/table/models";
6
7
  export interface PublicMenuData {
7
8
  businessId: number;
8
9
  branches: branchModels.Branch[];
@@ -27,6 +28,8 @@ export interface PublicMenuData {
27
28
  businessSegment?: featureModels.FeatureSegment;
28
29
  businessSettings?: businessModels.BusinessSettings;
29
30
  business: businessModels.Business;
31
+ tableId?: string | null;
32
+ tables?: tableModels.Table[];
30
33
  onBranchSelect?: (branchId: number) => void;
31
34
  onLanguageSelect?: (code: string) => void;
32
35
  }
@@ -7,5 +7,8 @@ export * from "../modules/order/models";
7
7
  export * from "../modules/product/models";
8
8
  export * from "../modules/view/models";
9
9
  export * from "../modules/subscription/models";
10
+ export * from "../modules/table/models";
10
11
  export * from "./category";
11
12
  export * from "./menu";
13
+ export * from "../components/PublicMenu/ProductsGridItem/ProductsGridItem.types";
14
+ export * from "../components/PublicMenu/OrderMethods/OrderMethods.types";
@@ -3,6 +3,7 @@ import * as branchModels from "src/modules/branch/models";
3
3
  import * as categoryModels from "./category";
4
4
  import * as businessModels from "src/modules/business/models";
5
5
  import * as featureModels from "src/modules/feature/models";
6
+ import * as tableModels from "src/modules/table/models";
6
7
  export interface PublicMenuData {
7
8
  businessId: number;
8
9
  branches: branchModels.Branch[];
@@ -27,6 +28,8 @@ export interface PublicMenuData {
27
28
  businessSegment?: featureModels.FeatureSegment;
28
29
  businessSettings?: businessModels.BusinessSettings;
29
30
  business: businessModels.Business;
31
+ tableId?: string | null;
32
+ tables?: tableModels.Table[];
30
33
  onBranchSelect?: (branchId: number) => void;
31
34
  onLanguageSelect?: (code: string) => void;
32
35
  }
@@ -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,2 @@
1
+ import * as viewModels from "../view/models";
2
+ export declare const useBranchCoordinates: () => viewModels.Coordinates;
@@ -0,0 +1,2 @@
1
+ export declare const useMaxDeliveryDistance: () => number;
2
+ export declare const useMinDeliveryAmount: () => number;
@@ -0,0 +1 @@
1
+ export declare const logException: (error?: any, errorInfo?: {}) => Promise<Response>;
@@ -0,0 +1,4 @@
1
+ import { Customer, CustomerAddress } from "./models";
2
+ export declare const useAvailableCustomer: () => Customer;
3
+ export declare const useCustomerAddress: () => CustomerAddress;
4
+ export declare const useCustomerId: () => number;
@@ -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,4 @@
1
+ import { Feature, FeatureSegment } from "./models";
2
+ export declare const FEATURES_LIST: {
3
+ [key in FeatureSegment]: Feature[];
4
+ };
@@ -0,0 +1,2 @@
1
+ import { type Feature } from "./models";
2
+ export declare const useFeatureActive: (feature: Feature) => boolean;
@@ -0,0 +1,2 @@
1
+ import { FeatureSegment, type Feature } from "./models";
2
+ export declare const getIsFeatureActive: (feature: Feature, businessSegment: FeatureSegment) => boolean;
@@ -0,0 +1,17 @@
1
+ import { OrderStep, PaymentMethod } from "./models";
2
+ export declare const initialOrder: {
3
+ orderType: any;
4
+ totalPriceWithTax: number;
5
+ totalPriceWithoutTax: number;
6
+ totalTax: number;
7
+ vat: number;
8
+ paymentMethod: PaymentMethod;
9
+ };
10
+ export declare const ORDER_STEPS: OrderStep[];
11
+ export declare enum OrderErrors {
12
+ FIELD_REQUIRED_ERROR = "This field is required",
13
+ TABLE_NOT_SELECTED = "Please select a table",
14
+ ADDRESS_IS_EMPTY = "Please enter an address",
15
+ EMPTY_ITEMS = "Please choose product",
16
+ BRANCH_NOT_SELECTED = "Please select a branch"
17
+ }
@@ -0,0 +1,31 @@
1
+ import { Order, OrderItem, OrderPayload, OrderType, PaymentMethod, SelectedAddons } from "./models";
2
+ export declare const useOrderPriceDetails: () => {
3
+ totalPriceWithTax: number;
4
+ totalPriceWithoutTax: number;
5
+ totalTax: number;
6
+ };
7
+ export declare const usePrepareOrder: (existingOrderData?: Partial<Order>) => OrderPayload;
8
+ export declare const useTotalOrderItemsCount: () => number;
9
+ export declare const useOrderItemsTotalPrice: () => {
10
+ totalPrice: number;
11
+ formattedTotalPrice: string;
12
+ };
13
+ export declare const useProductQuantityInOrder: ({ productId, variantId, selectedAddons, }: {
14
+ productId: number;
15
+ variantId?: number | null;
16
+ selectedAddons: SelectedAddons;
17
+ }) => number;
18
+ export declare const useProductQuantityInOrderWithAllVariants: (productId: number) => number;
19
+ export declare const useOrderItemPrice: (item: OrderItem) => {
20
+ totalPrice: number;
21
+ formattedTotalPrice: string;
22
+ };
23
+ export declare const useOrderActiveForBusiness: () => boolean;
24
+ export declare const useDeliveryDistanceError: () => string | null;
25
+ export declare const useDeliveryAmountError: () => string | null;
26
+ export declare const useOrderErrorInDetails: () => string | null;
27
+ export declare const useInitialOrder: ({ defaultOrderType, defaultPaymentMethod, defaultBranchId, }: {
28
+ defaultOrderType: OrderType;
29
+ defaultPaymentMethod: PaymentMethod;
30
+ defaultBranchId: number;
31
+ }) => Partial<Order>;
@@ -0,0 +1,5 @@
1
+ export * as models from "./models";
2
+ export * as utils from "./utils";
3
+ export * as hooks from "./hooks";
4
+ export * as constants from "./constants";
5
+ export * as services from "./services";
@@ -0,0 +1,4 @@
1
+ import { OrderPayload } from "./models";
2
+ export declare const createOrder: (order: OrderPayload) => Promise<{
3
+ trackingId: string;
4
+ }>;
@@ -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 businessModels from "../business/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: businessModels.BusinessSettings) => OrderType;
29
+ export declare const getOrderErrorMessages: (field: keyof Order) => OrderErrors;
@@ -0,0 +1,6 @@
1
+ import * as orderModels from "src/modules/order/models";
2
+ export declare const useProductQuantity: ({ productId, variantId, selectedAddons, }: {
3
+ productId: number;
4
+ variantId?: number;
5
+ selectedAddons: orderModels.SelectedAddons;
6
+ }) => number;
@@ -0,0 +1,3 @@
1
+ export * as models from "./models";
2
+ export * as utils from "./utils";
3
+ export * as hooks from "./hooks";
@@ -0,0 +1,47 @@
1
+ import { Product, ProductTranslation, ProductVariant, ProductVariantTranslation } from "./models";
2
+ import { MenuAddon } from "src/modules/addon/models";
3
+ import * as orderModels from "src/modules/order/models";
4
+ export declare const getProductTranslation: (product: Pick<Product, "translations">, language: string) => ProductTranslation;
5
+ export declare const getProductRawPrice: (product: Pick<Product, "price" | "vat">, quantity?: number) => number;
6
+ export declare const getProductPrice: (product: Pick<Product, "price" | "vat">, currency: string, language: string, quantity?: number) => {
7
+ totalPrice: number;
8
+ formattedTotalPrice: string;
9
+ };
10
+ export declare const getProductVariant: (product: Pick<Product, "variants">, variantId: number) => ProductVariant;
11
+ export declare const getSelectedOptionsTotalPrice: (product: Product, selectedAddons: orderModels.SelectedAddons, quantity: number) => number;
12
+ export declare const getProductVariantRawPrice: (variantId: number, product: Pick<Product, "variants" | "vat">, quantity?: number) => number;
13
+ export declare const getProductVariantPrice: ({ variantId, currency, language, product, quantity, }: {
14
+ variantId: number;
15
+ currency?: string;
16
+ language?: string;
17
+ product: Pick<Product, "variants" | "vat">;
18
+ quantity?: number;
19
+ }) => {
20
+ totalPrice: number;
21
+ formattedTotalPrice: string;
22
+ };
23
+ export declare const getProductVariantTranslation: (variant: ProductVariant, language: string) => ProductVariantTranslation;
24
+ export declare const getProductOrderRawPrice: ({ product, variantId, quantity, selectedAddons, noVat, }: {
25
+ product: Product;
26
+ variantId: number | null;
27
+ quantity: number;
28
+ selectedAddons: orderModels.SelectedAddons;
29
+ noVat?: boolean;
30
+ }) => {
31
+ price: number;
32
+ optionsPrice: number;
33
+ total: number;
34
+ };
35
+ export declare const getProductOrderPrice: ({ product, variantId, quantity, currency, language, selectedAddons, noVat, }: {
36
+ product: Product;
37
+ variantId: number | null;
38
+ quantity: number;
39
+ currency: string;
40
+ language: string;
41
+ selectedAddons: orderModels.SelectedAddons;
42
+ noVat?: boolean;
43
+ }) => {
44
+ totalPrice: number;
45
+ formattedTotalPrice: string;
46
+ };
47
+ export declare const getProductAddon: (product: Product, addonId: number) => MenuAddon;
@@ -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,13 @@
1
+ export declare const MODALS: {
2
+ ADD_UPDATE_NOTES: string;
3
+ AUTH: string;
4
+ ADD_UPDATE_ADDRESS: string;
5
+ };
6
+ export declare const SUPPORTED_LOCALES: string[];
7
+ export declare const DEFAULT_LANGUAGE = "en";
8
+ export declare const DEFAULT_CURRENCY = "AZN";
9
+ export declare const SUPPORTED_COUNTRIES: {
10
+ name: string;
11
+ code: string;
12
+ phoneCode: string;
13
+ }[];
@@ -0,0 +1,2 @@
1
+ import { Storage } from "@sorocraft/js-utils";
2
+ export declare const storage: Storage;
@@ -0,0 +1,5 @@
1
+ export declare const API: {
2
+ post: (endpoint: string, body: any) => Promise<any>;
3
+ patch: (endpoint: string, body: any) => Promise<any>;
4
+ get: (endpoint: string) => Promise<any>;
5
+ };
@@ -0,0 +1,3 @@
1
+ export declare const getTranslations: (locale: string, ns: string) => {
2
+ t: (key: string, options?: Record<string, string>) => string;
3
+ };
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ "Create an account or log in": string;
3
+ "Phone number": string;
4
+ "I don't have an email": string;
5
+ "We sent a confirmation code to {{address}}": string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ Save: string;
3
+ Cancel: string;
4
+ Continue: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ "Unknown address": string;
3
+ "No address available": string;
4
+ "Update Delivery Address": string;
5
+ Country: string;
6
+ City: string;
7
+ "Baker Street": string;
8
+ Address: string;
9
+ "House number": string;
10
+ "Additional number": string;
11
+ "Example: Door code is 555": string;
12
+ "Delivery Instructions": string;
13
+ Azerbaijan: string;
14
+ Floor: string;
15
+ "Enter address": string;
16
+ };
17
+ export default _default;
@@ -0,0 +1,19 @@
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
+ COUNTRY_REQUIRED: string;
13
+ CITY_REQUIRED: string;
14
+ STREET_REQUIRED: string;
15
+ STREET_NUMBER_REQUIRED: string;
16
+ OUT_OF_DELIVERY_RANGE: string;
17
+ NO_ORDER_TYPE: string;
18
+ };
19
+ export default _default;