@restaround/react 1.4.42 → 1.4.45

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 (179) hide show
  1. package/dist/components/PublicMenu/Branches/BranchCard/BranchCard.d.ts +6 -0
  2. package/dist/components/PublicMenu/Branches/BranchCard/Parent.d.ts +7 -0
  3. package/dist/components/PublicMenu/Branches/BranchCard/index.d.ts +1 -0
  4. package/dist/components/PublicMenu/Branches/Branches.d.ts +1 -7
  5. package/dist/components/PublicMenu/{Categories.d.ts → Categories/Categories.d.ts} +1 -1
  6. package/dist/components/PublicMenu/Categories/index.d.ts +1 -0
  7. package/dist/components/PublicMenu/Header/BranchHeader/BranchHeader.d.ts +2 -0
  8. package/dist/components/PublicMenu/Header/BranchHeader/HeaderLinks/HeaderLinks.d.ts +2 -0
  9. package/dist/components/PublicMenu/Header/BranchHeader/HeaderLinks/index.d.ts +1 -0
  10. package/dist/components/PublicMenu/Header/BranchHeader/index.d.ts +1 -0
  11. package/dist/components/PublicMenu/Header/BusinessHeader/BusinessHeader.d.ts +2 -0
  12. package/dist/components/PublicMenu/Header/BusinessHeader/index.d.ts +1 -0
  13. package/dist/components/PublicMenu/Header/Header.d.ts +1 -7
  14. package/dist/components/PublicMenu/MenuContent/MenuContent.d.ts +6 -0
  15. package/dist/components/PublicMenu/MenuContent/index.d.ts +1 -0
  16. package/dist/components/PublicMenu/Products/Products.d.ts +1 -1
  17. package/dist/components/PublicMenu/PublicMenu.d.ts +1 -1
  18. package/dist/constants/index.esm.js +1 -1
  19. package/dist/constants/index.esm.js.map +1 -1
  20. package/dist/constants/index.js +1 -1
  21. package/dist/constants/index.js.map +1 -1
  22. package/dist/constants/modules/view/constants.d.ts +8 -2
  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/index.d.ts +2 -2
  28. package/dist/models/index.esm.js +1 -1
  29. package/dist/models/index.esm.js.map +1 -1
  30. package/dist/models/index.js +1 -1
  31. package/dist/models/index.js.map +1 -1
  32. package/dist/models/models/index.d.ts +2 -2
  33. package/dist/models/modules/branch/hooks.d.ts +9 -1
  34. package/dist/models/modules/branch/models.d.ts +2 -0
  35. package/dist/models/modules/business/constants.d.ts +2 -0
  36. package/dist/models/modules/business/hooks.d.ts +9 -0
  37. package/dist/models/modules/menu/index.d.ts +2 -0
  38. package/dist/models/{menu.d.ts → modules/menu/models.d.ts} +7 -21
  39. package/dist/models/modules/menu/utils.d.ts +4 -0
  40. package/dist/models/modules/product/hooks.d.ts +3 -0
  41. package/dist/models/modules/product/utils.d.ts +1 -0
  42. package/dist/models/modules/table/hooks.d.ts +4 -0
  43. package/dist/models/modules/user/models.d.ts +3 -1
  44. package/dist/models/modules/view/constants.d.ts +8 -2
  45. package/dist/models/store/index.d.ts +3 -3
  46. package/dist/modules/branch/hooks.d.ts +9 -1
  47. package/dist/modules/branch/models.d.ts +2 -0
  48. package/dist/modules/business/constants.d.ts +2 -0
  49. package/dist/modules/business/hooks.d.ts +9 -0
  50. package/dist/modules/business/index.d.ts +1 -0
  51. package/dist/modules/category/hooks.d.ts +3 -0
  52. package/dist/{utils/category.d.ts → modules/category/utils.d.ts} +1 -1
  53. package/dist/modules/menu/index.d.ts +2 -0
  54. package/dist/{models/models/menu.d.ts → modules/menu/models.d.ts} +7 -21
  55. package/dist/modules/menu/utils.d.ts +4 -0
  56. package/dist/modules/product/hooks.d.ts +3 -0
  57. package/dist/modules/product/utils.d.ts +1 -0
  58. package/dist/modules/user/models.d.ts +3 -1
  59. package/dist/modules/view/constants.d.ts +8 -2
  60. package/dist/modules/view/hooks.d.ts +2 -0
  61. package/dist/modules/view/index.d.ts +1 -0
  62. package/dist/modules/view/utils.d.ts +10 -0
  63. package/dist/store/index.d.ts +3 -3
  64. package/dist/styles/ui.css +1 -1
  65. package/dist/styles/ui.css.map +1 -1
  66. package/dist/utils/index.d.ts +2 -5
  67. package/dist/utils/index.esm.js +1 -1
  68. package/dist/utils/index.esm.js.map +1 -1
  69. package/dist/utils/index.js +1 -1
  70. package/dist/utils/index.js.map +1 -1
  71. package/dist/utils/modules/branch/models.d.ts +2 -0
  72. package/dist/utils/{utils/category.d.ts → modules/category/utils.d.ts} +1 -1
  73. package/dist/utils/{models/menu.d.ts → modules/menu/models.d.ts} +7 -21
  74. package/dist/utils/modules/menu/utils.d.ts +4 -0
  75. package/dist/utils/modules/product/utils.d.ts +1 -0
  76. package/dist/utils/modules/view/constants.d.ts +8 -2
  77. package/dist/utils/modules/view/utils.d.ts +10 -0
  78. package/dist/utils/utils/index.d.ts +2 -5
  79. package/package.json +6 -6
  80. package/dist/components/Image/Image.d.ts +0 -9
  81. package/dist/components/Image/index.d.ts +0 -1
  82. package/dist/components/PublicMenu/Header/BranchInfo/BranchInfo.d.ts +0 -10
  83. package/dist/components/PublicMenu/Header/BranchInfo/index.d.ts +0 -1
  84. package/dist/components/PublicMenu/Header/BusinessInfo/BusinessInfo.d.ts +0 -7
  85. package/dist/components/PublicMenu/Header/BusinessInfo/index.d.ts +0 -1
  86. package/dist/hooks/category.d.ts +0 -1
  87. package/dist/hooks/product.d.ts +0 -2
  88. package/dist/models/utils/common.d.ts +0 -1
  89. package/dist/utils/common.d.ts +0 -1
  90. package/dist/utils/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +0 -9
  91. package/dist/utils/components/PublicMenu/ProductsGridItem/ProductsGridItem.types.d.ts +0 -12
  92. package/dist/utils/constants/env.d.ts +0 -1
  93. package/dist/utils/constants.d.ts +0 -5
  94. package/dist/utils/hooks/translation.d.ts +0 -5
  95. package/dist/utils/image.d.ts +0 -5
  96. package/dist/utils/menu.d.ts +0 -2
  97. package/dist/utils/models/index.d.ts +0 -15
  98. package/dist/utils/modules/branch/hooks.d.ts +0 -9
  99. package/dist/utils/modules/branch/utils.d.ts +0 -9
  100. package/dist/utils/modules/common/services.d.ts +0 -1
  101. package/dist/utils/modules/customer/hooks.d.ts +0 -5
  102. package/dist/utils/modules/customer/services.d.ts +0 -9
  103. package/dist/utils/modules/order/hooks.d.ts +0 -18
  104. package/dist/utils/modules/order/index.d.ts +0 -5
  105. package/dist/utils/modules/order/services.d.ts +0 -4
  106. package/dist/utils/modules/product/hooks.d.ts +0 -6
  107. package/dist/utils/modules/store/hooks.d.ts +0 -6
  108. package/dist/utils/modules/user/models.d.ts +0 -54
  109. package/dist/utils/modules/view/models.d.ts +0 -7
  110. package/dist/utils/modules/view/services.d.ts +0 -2
  111. package/dist/utils/services/api/index.d.ts +0 -5
  112. package/dist/utils/services/translation/index.d.ts +0 -3
  113. package/dist/utils/services/translation/locales/az/auth.d.ts +0 -7
  114. package/dist/utils/services/translation/locales/az/branch.d.ts +0 -13
  115. package/dist/utils/services/translation/locales/az/common.d.ts +0 -6
  116. package/dist/utils/services/translation/locales/az/customer.d.ts +0 -17
  117. package/dist/utils/services/translation/locales/az/error.d.ts +0 -20
  118. package/dist/utils/services/translation/locales/az/events.d.ts +0 -8
  119. package/dist/utils/services/translation/locales/az/index.d.ts +0 -147
  120. package/dist/utils/services/translation/locales/az/order.d.ts +0 -44
  121. package/dist/utils/services/translation/locales/az/pricing.d.ts +0 -37
  122. package/dist/utils/services/translation/locales/en/auth.d.ts +0 -2
  123. package/dist/utils/services/translation/locales/en/branch.d.ts +0 -10
  124. package/dist/utils/services/translation/locales/en/common.d.ts +0 -2
  125. package/dist/utils/services/translation/locales/en/customer.d.ts +0 -2
  126. package/dist/utils/services/translation/locales/en/error.d.ts +0 -16
  127. package/dist/utils/services/translation/locales/en/events.d.ts +0 -2
  128. package/dist/utils/services/translation/locales/en/index.d.ts +0 -33
  129. package/dist/utils/services/translation/locales/en/order.d.ts +0 -2
  130. package/dist/utils/services/translation/locales/en/pricing.d.ts +0 -2
  131. package/dist/utils/services/translation/locales/et/auth.d.ts +0 -7
  132. package/dist/utils/services/translation/locales/et/branch.d.ts +0 -13
  133. package/dist/utils/services/translation/locales/et/common.d.ts +0 -6
  134. package/dist/utils/services/translation/locales/et/customer.d.ts +0 -17
  135. package/dist/utils/services/translation/locales/et/error.d.ts +0 -20
  136. package/dist/utils/services/translation/locales/et/events.d.ts +0 -8
  137. package/dist/utils/services/translation/locales/et/index.d.ts +0 -146
  138. package/dist/utils/services/translation/locales/et/order.d.ts +0 -45
  139. package/dist/utils/services/translation/locales/et/pricing.d.ts +0 -35
  140. package/dist/utils/services/translation/locales/index.d.ts +0 -761
  141. package/dist/utils/services/translation/locales/nl/auth.d.ts +0 -7
  142. package/dist/utils/services/translation/locales/nl/branch.d.ts +0 -13
  143. package/dist/utils/services/translation/locales/nl/common.d.ts +0 -6
  144. package/dist/utils/services/translation/locales/nl/customer.d.ts +0 -17
  145. package/dist/utils/services/translation/locales/nl/error.d.ts +0 -20
  146. package/dist/utils/services/translation/locales/nl/events.d.ts +0 -8
  147. package/dist/utils/services/translation/locales/nl/index.d.ts +0 -146
  148. package/dist/utils/services/translation/locales/nl/order.d.ts +0 -45
  149. package/dist/utils/services/translation/locales/nl/pricing.d.ts +0 -35
  150. package/dist/utils/services/translation/locales/ru/auth.d.ts +0 -7
  151. package/dist/utils/services/translation/locales/ru/branch.d.ts +0 -13
  152. package/dist/utils/services/translation/locales/ru/common.d.ts +0 -6
  153. package/dist/utils/services/translation/locales/ru/customer.d.ts +0 -17
  154. package/dist/utils/services/translation/locales/ru/error.d.ts +0 -20
  155. package/dist/utils/services/translation/locales/ru/events.d.ts +0 -8
  156. package/dist/utils/services/translation/locales/ru/index.d.ts +0 -146
  157. package/dist/utils/services/translation/locales/ru/order.d.ts +0 -45
  158. package/dist/utils/services/translation/locales/ru/pricing.d.ts +0 -35
  159. package/dist/utils/services/translation/locales/tr/auth.d.ts +0 -7
  160. package/dist/utils/services/translation/locales/tr/branch.d.ts +0 -13
  161. package/dist/utils/services/translation/locales/tr/common.d.ts +0 -6
  162. package/dist/utils/services/translation/locales/tr/customer.d.ts +0 -17
  163. package/dist/utils/services/translation/locales/tr/error.d.ts +0 -20
  164. package/dist/utils/services/translation/locales/tr/events.d.ts +0 -8
  165. package/dist/utils/services/translation/locales/tr/index.d.ts +0 -146
  166. package/dist/utils/services/translation/locales/tr/order.d.ts +0 -45
  167. package/dist/utils/services/translation/locales/tr/pricing.d.ts +0 -35
  168. package/dist/utils/store/index.d.ts +0 -7
  169. package/dist/utils/store/order.d.ts +0 -42
  170. package/dist/utils/url.d.ts +0 -6
  171. package/dist/utils/utils/common.d.ts +0 -1
  172. package/dist/utils/utils/constants.d.ts +0 -5
  173. package/dist/utils/utils/image.d.ts +0 -5
  174. package/dist/utils/utils/menu.d.ts +0 -2
  175. package/dist/utils/utils/url.d.ts +0 -6
  176. package/dist/models/{category.d.ts → modules/category/models.d.ts} +0 -0
  177. package/dist/{utils/modules/product → modules/category}/index.d.ts +1 -1
  178. /package/dist/{models/models/category.d.ts → modules/category/models.d.ts} +0 -0
  179. /package/dist/utils/{models/category.d.ts → modules/category/models.d.ts} +0 -0
@@ -9,7 +9,7 @@ export * from "../modules/view/models";
9
9
  export * from "../modules/subscription/models";
10
10
  export * from "../modules/table/models";
11
11
  export * from "../modules/user/models";
12
- export * from "./category";
13
- export * from "./menu";
12
+ export * from "../modules/category/models";
13
+ export * from "../modules/menu/models";
14
14
  export * from "../components/PublicMenu/ProductsGridItem/ProductsGridItem.types";
15
15
  export * from "../components/PublicMenu/OrderMethods/OrderMethods.types";
@@ -1,2 +1,2 @@
1
- var E,A,_,R,I,T,N,D,O,L,C,P,S,U,V,M,n,B,W;!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",E.DELIVERY_FEE_AMOUNT="deliveryFeeAmount"}(A||(A={})),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"}(_||(_={})),function(E){E.PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL"}(R||(R={})),function(E){E.HOME="HOME",E.WORK="WORK",E.TRAVEL="TRAVEL"}(I||(I={})),function(E){E.ORDER="feature_order"}(T||(T={})),function(E){E.ALPHA="ALPHA",E.BETA="BETA",E.ALL="ALL"}(N||(N={})),function(E){E.DINE_IN="DINE_IN",E.PICK_UP="PICK_UP",E.DELIVERY="DELIVERY"}(D||(D={})),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"}(O||(O={})),function(E){E.PENDING="PENDING",E.PREPARING="PREPARING",E.READY="READY",E.SERVED="SERVED"}(L||(L={})),function(E){E.CASH="CASH",E.CARD="CARD",E.WALLET="WALLET",E.TERMINAL="TERMINAL"}(C||(C={})),function(E){E.CART="CART",E.DETAILS="DETAILS",E.COMPLETED="COMPLETED"}(P||(P={})),function(E){E.LIST="list",E.GRID="grid"}(S||(S={})),function(E){E.APPETIZER="appetizer",E.MAIN_COURSE="mainCourse",E.CHEFS_SPECIAL="chefsSpecial",E.LIFETIME="lifeTime"}(U||(U={})),function(E){E.ACTIVE="ACTIVE",E.EXPIRED="EXPIRED",E.CANCELLED="CANCELLED"}(V||(V={})),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"}(M||(M={})),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"}(n||(n={})),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"}(B||(B={})),function(E){E.VIEW_BUSINESS="VIEW_BUSINESS",E.UPDATE_BUSINESS="UPDATE_BUSINESS",E.VIEW_ORDERS="VIEW_ORDERS",E.UPDATE_ORDER="UPDATE_ORDER",E.CREATE_ORDER="CREATE_ORDER",E.VIEW_QR_MENU="VIEW_QR_MENU",E.VIEW_MENU="VIEW_MENU",E.VIEW_MENU_ITEMS="VIEW_MENU_ITEMS",E.CREATE_MENU_ITEM="CREATE_MENU_ITEM",E.UPDATE_MENU_ITEM="UPDATE_MENU_ITEM",E.DELETE_MENU_ITEM="DELETE_MENU_ITEM",E.VIEW_CATEGORIES="VIEW_CATEGORIES",E.UPDATE_CATEGORY="UPDATE_CATEGORY",E.CREATE_CATEGORY="CREATE_CATEGORY",E.DELETE_CATEGORY="DELETE_CATEGORY",E.VIEW_ADDONS="VIEW_ADDONS",E.UPDATE_ADDON="UPDATE_ADDON",E.CREATE_ADDON="CREATE_ADDON",E.DELETE_ADDON="DELETE_ADDON",E.VIEW_TABLES="VIEW_TABLES",E.UPDATE_TABLE="UPDATE_TABLE",E.UPDATE_TABLE_STATUS="UPDATE_TABLE_STATUS",E.CREATE_TABLE="CREATE_TABLE",E.DELETE_TABLE="DELETE_TABLE",E.VIEW_BRANCHES="VIEW_BRANCHES",E.UPDATE_BRANCH="UPDATE_BRANCH",E.CREATE_BRANCH="CREATE_BRANCH",E.DELETE_BRANCH="DELETE_BRANCH",E.VIEW_EMPLOYEES="VIEW_EMPLOYEES",E.UPDATE_EMPLOYEE="UPDATE_EMPLOYEE",E.CREATE_EMPLOYEE="CREATE_EMPLOYEE",E.DELETE_EMPLOYEE="DELETE_EMPLOYEE",E.VIEW_ANALYTICS="VIEW_ANALYTICS",E.VIEW_SALES_REPORTS="VIEW_SALES_REPORTS",E.VIEW_SUBSCRIPTION="VIEW_SUBSCRIPTION",E.UPDATE_SUBSCRIPTION="UPDATE_SUBSCRIPTION",E.VIEW_QR_CODES="VIEW_QR_CODES",E.CREATE_QR_CODE="CREATE_QR_CODE",E.DELETE_QR_CODE="DELETE_QR_CODE",E.ALL="ALL",E.VIEW_INVENTORY="VIEW_INVENTORY",E.VIEW_PURCHASES="VIEW_PURCHASES",E.VIEW_PURCHASE_DETAIL="VIEW_PURCHASE_DETAIL",E.CREATE_PURCHASE="CREATE_PURCHASE",E.UPDATE_PURCHASE="UPDATE_PURCHASE",E.DELETE_PURCHASE="DELETE_PURCHASE",E.VIEW_INVENTORY_PRODUCTS="VIEW_INVENTORY_PRODUCTS",E.CREATE_INVENTORY_PRODUCT="CREATE_INVENTORY_PRODUCT",E.UPDATE_INVENTORY_PRODUCT="UPDATE_INVENTORY_PRODUCT",E.DELETE_INVENTORY_PRODUCT="DELETE_INVENTORY_PRODUCT",E.VIEW_BUSINESS_BALANCE="VIEW_BUSINESS_BALANCE",E.VIEW_BRANCH_BALANCE="VIEW_BRANCH_BALANCE"}(W||(W={}));export{A as BranchSetting,_ as BusinessSetting,I as CustomerAddressType,R as CustomerAuthStep,W as EmployeePermission,T as Feature,N as FeatureSegment,E as MenuAddonSelectType,L as OrderItemStatus,O as OrderStatus,P as OrderStep,D as OrderType,C as PaymentMethod,U as PlanType,S as ProductView,V as SubscriptionStatus,B as TableLocation,M as TableShape,n as TableStatus};
1
+ var E,A,_,R,I,T,D,N,O,L,C,P,S,U,V,M,n,B,W;!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",E.DELIVERY_FEE_AMOUNT="deliveryFeeAmount"}(A||(A={})),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"}(_||(_={})),function(E){E.PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL"}(R||(R={})),function(E){E.HOME="HOME",E.WORK="WORK",E.TRAVEL="TRAVEL"}(I||(I={})),function(E){E.ORDER="feature_order"}(T||(T={})),function(E){E.ALPHA="ALPHA",E.BETA="BETA",E.ALL="ALL"}(D||(D={})),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"}(O||(O={})),function(E){E.PENDING="PENDING",E.PREPARING="PREPARING",E.READY="READY",E.SERVED="SERVED"}(L||(L={})),function(E){E.CASH="CASH",E.CARD="CARD",E.WALLET="WALLET",E.TERMINAL="TERMINAL"}(C||(C={})),function(E){E.CART="CART",E.DETAILS="DETAILS",E.COMPLETED="COMPLETED"}(P||(P={})),function(E){E.LIST="list",E.GRID="grid"}(S||(S={})),function(E){E.APPETIZER="appetizer",E.MAIN_COURSE="mainCourse",E.CHEFS_SPECIAL="chefsSpecial",E.LIFETIME="lifeTime"}(U||(U={})),function(E){E.ACTIVE="ACTIVE",E.EXPIRED="EXPIRED",E.CANCELLED="CANCELLED"}(V||(V={})),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"}(M||(M={})),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"}(n||(n={})),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"}(B||(B={})),function(E){E.VIEW_BUSINESS="VIEW_BUSINESS",E.UPDATE_BUSINESS="UPDATE_BUSINESS",E.VIEW_ORDERS="VIEW_ORDERS",E.UPDATE_ORDER="UPDATE_ORDER",E.CREATE_ORDER="CREATE_ORDER",E.VIEW_QR_MENU="VIEW_QR_MENU",E.VIEW_MENU="VIEW_MENU",E.VIEW_MENU_ITEMS="VIEW_MENU_ITEMS",E.CREATE_MENU_ITEM="CREATE_MENU_ITEM",E.UPDATE_MENU_ITEM="UPDATE_MENU_ITEM",E.DELETE_MENU_ITEM="DELETE_MENU_ITEM",E.VIEW_CATEGORIES="VIEW_CATEGORIES",E.UPDATE_CATEGORY="UPDATE_CATEGORY",E.CREATE_CATEGORY="CREATE_CATEGORY",E.DELETE_CATEGORY="DELETE_CATEGORY",E.VIEW_ADDONS="VIEW_ADDONS",E.UPDATE_ADDON="UPDATE_ADDON",E.CREATE_ADDON="CREATE_ADDON",E.DELETE_ADDON="DELETE_ADDON",E.VIEW_TABLES="VIEW_TABLES",E.UPDATE_TABLE="UPDATE_TABLE",E.UPDATE_TABLE_STATUS="UPDATE_TABLE_STATUS",E.CREATE_TABLE="CREATE_TABLE",E.DELETE_TABLE="DELETE_TABLE",E.VIEW_BRANCHES="VIEW_BRANCHES",E.UPDATE_BRANCH="UPDATE_BRANCH",E.CREATE_BRANCH="CREATE_BRANCH",E.DELETE_BRANCH="DELETE_BRANCH",E.VIEW_EMPLOYEES="VIEW_EMPLOYEES",E.UPDATE_EMPLOYEE="UPDATE_EMPLOYEE",E.CREATE_EMPLOYEE="CREATE_EMPLOYEE",E.DELETE_EMPLOYEE="DELETE_EMPLOYEE",E.VIEW_ANALYTICS="VIEW_ANALYTICS",E.VIEW_SALES_REPORTS="VIEW_SALES_REPORTS",E.VIEW_SUBSCRIPTION="VIEW_SUBSCRIPTION",E.UPDATE_SUBSCRIPTION="UPDATE_SUBSCRIPTION",E.VIEW_QR_CODES="VIEW_QR_CODES",E.CREATE_QR_CODE="CREATE_QR_CODE",E.DELETE_QR_CODE="DELETE_QR_CODE",E.ALL="ALL",E.VIEW_INVENTORY="VIEW_INVENTORY",E.VIEW_PURCHASES="VIEW_PURCHASES",E.VIEW_PURCHASE_DETAIL="VIEW_PURCHASE_DETAIL",E.CREATE_PURCHASE="CREATE_PURCHASE",E.UPDATE_PURCHASE="UPDATE_PURCHASE",E.DELETE_PURCHASE="DELETE_PURCHASE",E.VIEW_INVENTORY_PRODUCTS="VIEW_INVENTORY_PRODUCTS",E.CREATE_INVENTORY_PRODUCT="CREATE_INVENTORY_PRODUCT",E.UPDATE_INVENTORY_PRODUCT="UPDATE_INVENTORY_PRODUCT",E.DELETE_INVENTORY_PRODUCT="DELETE_INVENTORY_PRODUCT",E.VIEW_BUSINESS_BALANCE="VIEW_BUSINESS_BALANCE",E.VIEW_BRANCH_BALANCE="VIEW_BRANCH_BALANCE",E.UPDATE_PRODUCT_INGREDIENTS="UPDATE_PRODUCT_INGREDIENTS",E.DELETE_PRODUCT_INGREDIENTS="DELETE_PRODUCT_INGREDIENTS"}(W||(W={}));export{A as BranchSetting,_ as BusinessSetting,I as CustomerAddressType,R as CustomerAuthStep,W as EmployeePermission,T as Feature,D as FeatureSegment,E as MenuAddonSelectType,L as OrderItemStatus,O as OrderStatus,P as OrderStep,N as OrderType,C as PaymentMethod,U as PlanType,S as ProductView,V as SubscriptionStatus,B as TableLocation,M as TableShape,n 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/branch/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","../../../src/modules/user/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","export type BranchWorkHour = {\n\topenAt: string;\n\tcloseAt: string;\n};\n\nexport type BranchWorkDay = {\n\tday: number;\n\thours: BranchWorkHour | null;\n};\n\nexport type BranchWorkDays = {\n\tdays: BranchWorkDay[];\n};\n\nexport interface BranchSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n\tdeliveryFeeAmount: number;\n}\n\nexport enum BranchSetting {\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\tDELIVERY_FEE_AMOUNT = \"deliveryFeeAmount\",\n}\n\nexport interface Branch {\n\tid: number;\n\tname: string;\n\tbusinessId: number;\n\taddress: string;\n\tlongitude?: number;\n\tlatitude?: number;\n\tphone?: string;\n\twifiPassword?: string;\n\tcreatedAt?: number;\n\tcoverPhoto?: string;\n\tsettings?: BranchSettings;\n\topeningHours?: BranchWorkDays;\n\tdeliveryHours?: BranchWorkDays;\n}\n\nexport type BranchServes = {\n\tisOpen: boolean;\n\tisDelivering: boolean;\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 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}\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\ttotalPriceWithTaxAndFees?: 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\tdeliveryFee?: number;\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\nexport type OrderPriceDetails = {\n\ttotalPriceWithTax: number;\n\ttotalPriceWithTaxAndFees: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n};\n\nexport type OrderFormattedPriceDetails = {\n\ttotalPriceWithTax: string;\n\ttotalPriceWithTaxAndFees: string;\n\ttotalPriceWithoutTax: string;\n\ttotalTax: string;\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","// TODO: move it lib that we can use in mobile app too\nexport enum EmployeePermission {\n\tVIEW_BUSINESS = \"VIEW_BUSINESS\",\n\tUPDATE_BUSINESS = \"UPDATE_BUSINESS\",\n\tVIEW_ORDERS = \"VIEW_ORDERS\",\n\tUPDATE_ORDER = \"UPDATE_ORDER\",\n\tCREATE_ORDER = \"CREATE_ORDER\",\n\tVIEW_QR_MENU = \"VIEW_QR_MENU\",\n\tVIEW_MENU = \"VIEW_MENU\",\n\tVIEW_MENU_ITEMS = \"VIEW_MENU_ITEMS\",\n\tCREATE_MENU_ITEM = \"CREATE_MENU_ITEM\",\n\tUPDATE_MENU_ITEM = \"UPDATE_MENU_ITEM\",\n\tDELETE_MENU_ITEM = \"DELETE_MENU_ITEM\",\n\tVIEW_CATEGORIES = \"VIEW_CATEGORIES\",\n\tUPDATE_CATEGORY = \"UPDATE_CATEGORY\",\n\tCREATE_CATEGORY = \"CREATE_CATEGORY\",\n\tDELETE_CATEGORY = \"DELETE_CATEGORY\",\n\tVIEW_ADDONS = \"VIEW_ADDONS\",\n\tUPDATE_ADDON = \"UPDATE_ADDON\",\n\tCREATE_ADDON = \"CREATE_ADDON\",\n\tDELETE_ADDON = \"DELETE_ADDON\",\n\tVIEW_TABLES = \"VIEW_TABLES\",\n\tUPDATE_TABLE = \"UPDATE_TABLE\",\n\tUPDATE_TABLE_STATUS = \"UPDATE_TABLE_STATUS\",\n\tCREATE_TABLE = \"CREATE_TABLE\",\n\tDELETE_TABLE = \"DELETE_TABLE\",\n\tVIEW_BRANCHES = \"VIEW_BRANCHES\",\n\tUPDATE_BRANCH = \"UPDATE_BRANCH\",\n\tCREATE_BRANCH = \"CREATE_BRANCH\",\n\tDELETE_BRANCH = \"DELETE_BRANCH\",\n\tVIEW_EMPLOYEES = \"VIEW_EMPLOYEES\",\n\tUPDATE_EMPLOYEE = \"UPDATE_EMPLOYEE\",\n\tCREATE_EMPLOYEE = \"CREATE_EMPLOYEE\",\n\tDELETE_EMPLOYEE = \"DELETE_EMPLOYEE\",\n\tVIEW_ANALYTICS = \"VIEW_ANALYTICS\",\n\tVIEW_SALES_REPORTS = \"VIEW_SALES_REPORTS\",\n\tVIEW_SUBSCRIPTION = \"VIEW_SUBSCRIPTION\",\n\tUPDATE_SUBSCRIPTION = \"UPDATE_SUBSCRIPTION\",\n\tVIEW_QR_CODES = \"VIEW_QR_CODES\",\n\tCREATE_QR_CODE = \"CREATE_QR_CODE\",\n\tDELETE_QR_CODE = \"DELETE_QR_CODE\",\n\tALL = \"ALL\",\n\t// Inventory\n\tVIEW_INVENTORY = \"VIEW_INVENTORY\",\n\tVIEW_PURCHASES = \"VIEW_PURCHASES\",\n\tVIEW_PURCHASE_DETAIL = \"VIEW_PURCHASE_DETAIL\",\n\tCREATE_PURCHASE = \"CREATE_PURCHASE\",\n\tUPDATE_PURCHASE = \"UPDATE_PURCHASE\",\n\tDELETE_PURCHASE = \"DELETE_PURCHASE\",\n\tVIEW_INVENTORY_PRODUCTS = \"VIEW_INVENTORY_PRODUCTS\",\n\tCREATE_INVENTORY_PRODUCT = \"CREATE_INVENTORY_PRODUCT\",\n\tUPDATE_INVENTORY_PRODUCT = \"UPDATE_INVENTORY_PRODUCT\",\n\tDELETE_INVENTORY_PRODUCT = \"DELETE_INVENTORY_PRODUCT\",\n\tVIEW_BUSINESS_BALANCE = \"VIEW_BUSINESS_BALANCE\",\n\tVIEW_BRANCH_BALANCE = \"VIEW_BRANCH_BALANCE\",\n}\n"],"names":["MenuAddonSelectType","BranchSetting","BusinessSetting","CustomerAuthStep","CustomerAddressType","Feature","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation","EmployeePermission"],"mappings":"IAAYA,ECuBAC,ECdAC,ECTAC,EAMAC,ECNAC,EAGAC,ECDAC,EAMAC,EAaAC,EAOAC,EAqEAC,ECxDAC,ECzCAC,EAuBAC,ECvBAC,EASAC,EAWAC,ECnBAC,GTDZ,SAAYlB,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CAHD,CAAYA,IAAAA,EAAmB,CAAA,ICuB/B,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBACAA,EAAA,oBAAA,mBACA,CAPD,CAAYA,IAAAA,EAAa,CAAA,ICdzB,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,mBACA,CAND,CAAYA,IAAAA,EAAe,CAAA,ICT3B,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,MAAA,OACA,CAJD,CAAYA,IAAAA,EAAgB,CAAA,IAM5B,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,QACA,CAJD,CAAYA,IAAAA,EAAmB,CAAA,ICN/B,SAAYC,GACXA,EAAA,MAAA,eACA,CAFD,CAAYA,IAAAA,EAAO,CAAA,IAGnB,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,KACA,CAJD,CAAYA,IAAAA,EAAc,CAAA,ICD1B,SAAYC,GACXA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,UACA,CAJD,CAAYA,IAAAA,EAAS,CAAA,IAMrB,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAA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AAA,MAEAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,qBAAA,uBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,wBAAA,0BACAA,EAAA,yBAAA,2BACAA,EAAA,yBAAA,2BACAA,EAAA,yBAAA,2BACAA,EAAA,sBAAA,wBACAA,EAAA,oBAAA,qBACA,CAtDD,CAAYA,IAAAA,EAAkB,CAAA"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/branch/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","../../../src/modules/user/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","export type BranchWorkHour = {\n\topenAt: string;\n\tcloseAt: string;\n};\n\nexport type BranchWorkDay = {\n\tday: number;\n\thours: BranchWorkHour | null;\n};\n\nexport type BranchWorkDays = {\n\tdays: BranchWorkDay[];\n};\n\nexport interface BranchSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n\tdeliveryFeeAmount: number;\n}\n\nexport enum BranchSetting {\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\tDELIVERY_FEE_AMOUNT = \"deliveryFeeAmount\",\n}\n\nexport interface Branch {\n\tid: number;\n\tname: string;\n\tbusinessId: number;\n\taddress: string;\n\tlongitude?: number;\n\tlatitude?: number;\n\tphone?: string;\n\twhatsApp?: string;\n\ttelegram?: string;\n\twifiPassword?: string;\n\tcreatedAt?: number;\n\tcoverPhoto?: string;\n\tsettings?: BranchSettings;\n\topeningHours?: BranchWorkDays;\n\tdeliveryHours?: BranchWorkDays;\n}\n\nexport type BranchServes = {\n\tisOpen: boolean;\n\tisDelivering: boolean;\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 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}\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\ttotalPriceWithTaxAndFees?: 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\tdeliveryFee?: number;\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\nexport type OrderPriceDetails = {\n\ttotalPriceWithTax: number;\n\ttotalPriceWithTaxAndFees: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n};\n\nexport type OrderFormattedPriceDetails = {\n\ttotalPriceWithTax: string;\n\ttotalPriceWithTaxAndFees: string;\n\ttotalPriceWithoutTax: string;\n\ttotalTax: string;\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","// TODO: move it lib that we can use in mobile app too\nexport enum EmployeePermission {\n\tVIEW_BUSINESS = \"VIEW_BUSINESS\",\n\tUPDATE_BUSINESS = \"UPDATE_BUSINESS\",\n\tVIEW_ORDERS = \"VIEW_ORDERS\",\n\tUPDATE_ORDER = \"UPDATE_ORDER\",\n\tCREATE_ORDER = \"CREATE_ORDER\",\n\tVIEW_QR_MENU = \"VIEW_QR_MENU\",\n\tVIEW_MENU = \"VIEW_MENU\",\n\tVIEW_MENU_ITEMS = \"VIEW_MENU_ITEMS\",\n\tCREATE_MENU_ITEM = \"CREATE_MENU_ITEM\",\n\tUPDATE_MENU_ITEM = \"UPDATE_MENU_ITEM\",\n\tDELETE_MENU_ITEM = \"DELETE_MENU_ITEM\",\n\tVIEW_CATEGORIES = \"VIEW_CATEGORIES\",\n\tUPDATE_CATEGORY = \"UPDATE_CATEGORY\",\n\tCREATE_CATEGORY = \"CREATE_CATEGORY\",\n\tDELETE_CATEGORY = \"DELETE_CATEGORY\",\n\tVIEW_ADDONS = \"VIEW_ADDONS\",\n\tUPDATE_ADDON = \"UPDATE_ADDON\",\n\tCREATE_ADDON = \"CREATE_ADDON\",\n\tDELETE_ADDON = \"DELETE_ADDON\",\n\tVIEW_TABLES = \"VIEW_TABLES\",\n\tUPDATE_TABLE = \"UPDATE_TABLE\",\n\tUPDATE_TABLE_STATUS = \"UPDATE_TABLE_STATUS\",\n\tCREATE_TABLE = \"CREATE_TABLE\",\n\tDELETE_TABLE = \"DELETE_TABLE\",\n\tVIEW_BRANCHES = \"VIEW_BRANCHES\",\n\tUPDATE_BRANCH = \"UPDATE_BRANCH\",\n\tCREATE_BRANCH = \"CREATE_BRANCH\",\n\tDELETE_BRANCH = \"DELETE_BRANCH\",\n\tVIEW_EMPLOYEES = \"VIEW_EMPLOYEES\",\n\tUPDATE_EMPLOYEE = \"UPDATE_EMPLOYEE\",\n\tCREATE_EMPLOYEE = \"CREATE_EMPLOYEE\",\n\tDELETE_EMPLOYEE = \"DELETE_EMPLOYEE\",\n\tVIEW_ANALYTICS = \"VIEW_ANALYTICS\",\n\tVIEW_SALES_REPORTS = \"VIEW_SALES_REPORTS\",\n\tVIEW_SUBSCRIPTION = \"VIEW_SUBSCRIPTION\",\n\tUPDATE_SUBSCRIPTION = \"UPDATE_SUBSCRIPTION\",\n\tVIEW_QR_CODES = \"VIEW_QR_CODES\",\n\tCREATE_QR_CODE = \"CREATE_QR_CODE\",\n\tDELETE_QR_CODE = \"DELETE_QR_CODE\",\n\tALL = \"ALL\",\n\t// Inventory\n\tVIEW_INVENTORY = \"VIEW_INVENTORY\",\n\tVIEW_PURCHASES = \"VIEW_PURCHASES\",\n\tVIEW_PURCHASE_DETAIL = \"VIEW_PURCHASE_DETAIL\",\n\tCREATE_PURCHASE = \"CREATE_PURCHASE\",\n\tUPDATE_PURCHASE = \"UPDATE_PURCHASE\",\n\tDELETE_PURCHASE = \"DELETE_PURCHASE\",\n\tVIEW_INVENTORY_PRODUCTS = \"VIEW_INVENTORY_PRODUCTS\",\n\tCREATE_INVENTORY_PRODUCT = \"CREATE_INVENTORY_PRODUCT\",\n\tUPDATE_INVENTORY_PRODUCT = \"UPDATE_INVENTORY_PRODUCT\",\n\tDELETE_INVENTORY_PRODUCT = \"DELETE_INVENTORY_PRODUCT\",\n\tVIEW_BUSINESS_BALANCE = \"VIEW_BUSINESS_BALANCE\",\n\tVIEW_BRANCH_BALANCE = \"VIEW_BRANCH_BALANCE\",\n\tUPDATE_PRODUCT_INGREDIENTS = \"UPDATE_PRODUCT_INGREDIENTS\",\n\tDELETE_PRODUCT_INGREDIENTS = \"DELETE_PRODUCT_INGREDIENTS\",\n}\n"],"names":["MenuAddonSelectType","BranchSetting","BusinessSetting","CustomerAuthStep","CustomerAddressType","Feature","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation","EmployeePermission"],"mappings":"IAAYA,ECuBAC,ECdAC,ECTAC,EAMAC,ECNAC,EAGAC,ECDAC,EAMAC,EAaAC,EAOAC,EAqEAC,ECxDAC,ECzCAC,EAuBAC,ECvBAC,EASAC,EAWAC,ECnBAC,GTDZ,SAAYlB,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CAHD,CAAYA,IAAAA,EAAmB,CAAA,ICuB/B,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBACAA,EAAA,oBAAA,mBACA,CAPD,CAAYA,IAAAA,EAAa,CAAA,ICdzB,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,mBACA,CAND,CAAYA,IAAAA,EAAe,CAAA,ICT3B,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,MAAA,OACA,CAJD,CAAYA,IAAA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EAAA,gBAAA,kBACAA,EAAA,YAAA,cACAA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,YAAA,cACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,eAAA,iBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,eAAA,iBACAA,EAAA,mBAAA,qBACAA,EAAA,kBAAA,oBACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,IAAA,MAEAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,qBAAA,uBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,wBAAA,0BACAA,EAAA,yBAAA,2BACAA,EAAA,yBAAA,2BACAA,EAAA,yBAAA,2BACAA,EAAA,sBAAA,wBACAA,EAAA,oBAAA,sBACAA,EAAA,2BAAA,6BACAA,EAAA,2BAAA,4BACA,CAxDD,CAAYA,IAAAA,EAAkB,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var E,A,_,T,e,R,I,N,D,O,L,C,t,S,r,P,o,s;exports.MenuAddonSelectType=void 0,(E=exports.MenuAddonSelectType||(exports.MenuAddonSelectType={})).SINGLE="SINGLE",E.MULTIPLE="MULTIPLE",exports.BranchSetting=void 0,(A=exports.BranchSetting||(exports.BranchSetting={})).MAX_DELIVERY_DISTANCE="maxDeliveryDistance",A.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",A.PICKUP_ORDER_ENABLED="pickupOrderEnabled",A.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",A.MIN_DELIVERY_AMOUNT="minDeliveryAmount",A.DELIVERY_FEE_AMOUNT="deliveryFeeAmount",exports.BusinessSetting=void 0,(_=exports.BusinessSetting||(exports.BusinessSetting={})).MAX_DELIVERY_DISTANCE="maxDeliveryDistance",_.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",_.PICKUP_ORDER_ENABLED="pickupOrderEnabled",_.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",_.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,(e=exports.CustomerAddressType||(exports.CustomerAddressType={})).HOME="HOME",e.WORK="WORK",e.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,(N=exports.OrderStatus||(exports.OrderStatus={})).DRAFT="DRAFT",N.PENDING="PENDING",N.CONFIRMED="CONFIRMED",N.PREPARING="PREPARING",N.READY="READY",N.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",N.DELIVERED="DELIVERED",N.COMPLETED="COMPLETED",N.CANCELLED="CANCELLED",N.FAILED="FAILED",exports.OrderItemStatus=void 0,(D=exports.OrderItemStatus||(exports.OrderItemStatus={})).PENDING="PENDING",D.PREPARING="PREPARING",D.READY="READY",D.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,(L=exports.OrderStep||(exports.OrderStep={})).CART="CART",L.DETAILS="DETAILS",L.COMPLETED="COMPLETED",exports.ProductView=void 0,(C=exports.ProductView||(exports.ProductView={})).LIST="list",C.GRID="grid",exports.PlanType=void 0,(t=exports.PlanType||(exports.PlanType={})).APPETIZER="appetizer",t.MAIN_COURSE="mainCourse",t.CHEFS_SPECIAL="chefsSpecial",t.LIFETIME="lifeTime",exports.SubscriptionStatus=void 0,(S=exports.SubscriptionStatus||(exports.SubscriptionStatus={})).ACTIVE="ACTIVE",S.EXPIRED="EXPIRED",S.CANCELLED="CANCELLED",exports.TableShape=void 0,(r=exports.TableShape||(exports.TableShape={})).SQUARE="SQUARE",r.CIRCLE="CIRCLE",r.RECTANGLE="RECTANGLE",r.RECTANGLE_VERTICAL="RECTANGLE_VERTICAL",r.SINGLE_AT_BAR="SINGLE_AT_BAR",r.OTHER="OTHER",exports.TableStatus=void 0,(P=exports.TableStatus||(exports.TableStatus={})).VACANT="VACANT",P.RESERVED="RESERVED",P.OCCUPIED="OCCUPIED",P.BLOCKED="BLOCKED",P.NEEDS_CLEANING="NEEDS_CLEANING",P.OUT_OF_SERVICE="OUT_OF_SERVICE",P.PENDING_CONFIRMATION="PENDING_CONFIRMATION",P.NO_SHOW="NO_SHOW",exports.TableLocation=void 0,(o=exports.TableLocation||(exports.TableLocation={})).MAIN_HALL="MAIN_HALL",o.PRIVATE_DINING="PRIVATE_DINING",o.VIP_ROOM="VIP_ROOM",o.BANQUET_HALL="BANQUET_HALL",o.BAR_AREA="BAR_AREA",o.LOUNGE="LOUNGE",o.OPEN_KITCHEN="OPEN_KITCHEN",o.BOOTH_SECTION="BOOTH_SECTION",o.MEZZANINE="MEZZANINE",o.WINE_CELLAR="WINE_CELLAR",o.TERRACE="TERRACE",o.PATIO="PATIO",o.GARDEN="GARDEN",o.COURTYARD="COURTYARD",o.ROOFTOP="ROOFTOP",o.BALCONY="BALCONY",o.SIDEWALK="SIDEWALK",o.POOLSIDE="POOLSIDE",o.SMOKING_AREA="SMOKING_AREA",o.NON_SMOKING="NON_SMOKING",o.FAMILY_SECTION="FAMILY_SECTION",o.KIDS_AREA="KIDS_AREA",o.WAITING_AREA="WAITING_AREA",o.DANCE_FLOOR="DANCE_FLOOR",exports.EmployeePermission=void 0,(s=exports.EmployeePermission||(exports.EmployeePermission={})).VIEW_BUSINESS="VIEW_BUSINESS",s.UPDATE_BUSINESS="UPDATE_BUSINESS",s.VIEW_ORDERS="VIEW_ORDERS",s.UPDATE_ORDER="UPDATE_ORDER",s.CREATE_ORDER="CREATE_ORDER",s.VIEW_QR_MENU="VIEW_QR_MENU",s.VIEW_MENU="VIEW_MENU",s.VIEW_MENU_ITEMS="VIEW_MENU_ITEMS",s.CREATE_MENU_ITEM="CREATE_MENU_ITEM",s.UPDATE_MENU_ITEM="UPDATE_MENU_ITEM",s.DELETE_MENU_ITEM="DELETE_MENU_ITEM",s.VIEW_CATEGORIES="VIEW_CATEGORIES",s.UPDATE_CATEGORY="UPDATE_CATEGORY",s.CREATE_CATEGORY="CREATE_CATEGORY",s.DELETE_CATEGORY="DELETE_CATEGORY",s.VIEW_ADDONS="VIEW_ADDONS",s.UPDATE_ADDON="UPDATE_ADDON",s.CREATE_ADDON="CREATE_ADDON",s.DELETE_ADDON="DELETE_ADDON",s.VIEW_TABLES="VIEW_TABLES",s.UPDATE_TABLE="UPDATE_TABLE",s.UPDATE_TABLE_STATUS="UPDATE_TABLE_STATUS",s.CREATE_TABLE="CREATE_TABLE",s.DELETE_TABLE="DELETE_TABLE",s.VIEW_BRANCHES="VIEW_BRANCHES",s.UPDATE_BRANCH="UPDATE_BRANCH",s.CREATE_BRANCH="CREATE_BRANCH",s.DELETE_BRANCH="DELETE_BRANCH",s.VIEW_EMPLOYEES="VIEW_EMPLOYEES",s.UPDATE_EMPLOYEE="UPDATE_EMPLOYEE",s.CREATE_EMPLOYEE="CREATE_EMPLOYEE",s.DELETE_EMPLOYEE="DELETE_EMPLOYEE",s.VIEW_ANALYTICS="VIEW_ANALYTICS",s.VIEW_SALES_REPORTS="VIEW_SALES_REPORTS",s.VIEW_SUBSCRIPTION="VIEW_SUBSCRIPTION",s.UPDATE_SUBSCRIPTION="UPDATE_SUBSCRIPTION",s.VIEW_QR_CODES="VIEW_QR_CODES",s.CREATE_QR_CODE="CREATE_QR_CODE",s.DELETE_QR_CODE="DELETE_QR_CODE",s.ALL="ALL",s.VIEW_INVENTORY="VIEW_INVENTORY",s.VIEW_PURCHASES="VIEW_PURCHASES",s.VIEW_PURCHASE_DETAIL="VIEW_PURCHASE_DETAIL",s.CREATE_PURCHASE="CREATE_PURCHASE",s.UPDATE_PURCHASE="UPDATE_PURCHASE",s.DELETE_PURCHASE="DELETE_PURCHASE",s.VIEW_INVENTORY_PRODUCTS="VIEW_INVENTORY_PRODUCTS",s.CREATE_INVENTORY_PRODUCT="CREATE_INVENTORY_PRODUCT",s.UPDATE_INVENTORY_PRODUCT="UPDATE_INVENTORY_PRODUCT",s.DELETE_INVENTORY_PRODUCT="DELETE_INVENTORY_PRODUCT",s.VIEW_BUSINESS_BALANCE="VIEW_BUSINESS_BALANCE",s.VIEW_BRANCH_BALANCE="VIEW_BRANCH_BALANCE";
1
+ "use strict";var E,A,T,_,R,I,e,D,N,O,C,L,S,t,r,P,o,s;exports.MenuAddonSelectType=void 0,(E=exports.MenuAddonSelectType||(exports.MenuAddonSelectType={})).SINGLE="SINGLE",E.MULTIPLE="MULTIPLE",exports.BranchSetting=void 0,(A=exports.BranchSetting||(exports.BranchSetting={})).MAX_DELIVERY_DISTANCE="maxDeliveryDistance",A.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",A.PICKUP_ORDER_ENABLED="pickupOrderEnabled",A.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",A.MIN_DELIVERY_AMOUNT="minDeliveryAmount",A.DELIVERY_FEE_AMOUNT="deliveryFeeAmount",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,(_=exports.CustomerAuthStep||(exports.CustomerAuthStep={})).PHONE="PHONE",_.OTP="OTP",_.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,(I=exports.FeatureSegment||(exports.FeatureSegment={})).ALPHA="ALPHA",I.BETA="BETA",I.ALL="ALL",exports.OrderType=void 0,(e=exports.OrderType||(exports.OrderType={})).DINE_IN="DINE_IN",e.PICK_UP="PICK_UP",e.DELIVERY="DELIVERY",exports.OrderStatus=void 0,(D=exports.OrderStatus||(exports.OrderStatus={})).DRAFT="DRAFT",D.PENDING="PENDING",D.CONFIRMED="CONFIRMED",D.PREPARING="PREPARING",D.READY="READY",D.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",D.DELIVERED="DELIVERED",D.COMPLETED="COMPLETED",D.CANCELLED="CANCELLED",D.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,(C=exports.OrderStep||(exports.OrderStep={})).CART="CART",C.DETAILS="DETAILS",C.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,(r=exports.TableShape||(exports.TableShape={})).SQUARE="SQUARE",r.CIRCLE="CIRCLE",r.RECTANGLE="RECTANGLE",r.RECTANGLE_VERTICAL="RECTANGLE_VERTICAL",r.SINGLE_AT_BAR="SINGLE_AT_BAR",r.OTHER="OTHER",exports.TableStatus=void 0,(P=exports.TableStatus||(exports.TableStatus={})).VACANT="VACANT",P.RESERVED="RESERVED",P.OCCUPIED="OCCUPIED",P.BLOCKED="BLOCKED",P.NEEDS_CLEANING="NEEDS_CLEANING",P.OUT_OF_SERVICE="OUT_OF_SERVICE",P.PENDING_CONFIRMATION="PENDING_CONFIRMATION",P.NO_SHOW="NO_SHOW",exports.TableLocation=void 0,(o=exports.TableLocation||(exports.TableLocation={})).MAIN_HALL="MAIN_HALL",o.PRIVATE_DINING="PRIVATE_DINING",o.VIP_ROOM="VIP_ROOM",o.BANQUET_HALL="BANQUET_HALL",o.BAR_AREA="BAR_AREA",o.LOUNGE="LOUNGE",o.OPEN_KITCHEN="OPEN_KITCHEN",o.BOOTH_SECTION="BOOTH_SECTION",o.MEZZANINE="MEZZANINE",o.WINE_CELLAR="WINE_CELLAR",o.TERRACE="TERRACE",o.PATIO="PATIO",o.GARDEN="GARDEN",o.COURTYARD="COURTYARD",o.ROOFTOP="ROOFTOP",o.BALCONY="BALCONY",o.SIDEWALK="SIDEWALK",o.POOLSIDE="POOLSIDE",o.SMOKING_AREA="SMOKING_AREA",o.NON_SMOKING="NON_SMOKING",o.FAMILY_SECTION="FAMILY_SECTION",o.KIDS_AREA="KIDS_AREA",o.WAITING_AREA="WAITING_AREA",o.DANCE_FLOOR="DANCE_FLOOR",exports.EmployeePermission=void 0,(s=exports.EmployeePermission||(exports.EmployeePermission={})).VIEW_BUSINESS="VIEW_BUSINESS",s.UPDATE_BUSINESS="UPDATE_BUSINESS",s.VIEW_ORDERS="VIEW_ORDERS",s.UPDATE_ORDER="UPDATE_ORDER",s.CREATE_ORDER="CREATE_ORDER",s.VIEW_QR_MENU="VIEW_QR_MENU",s.VIEW_MENU="VIEW_MENU",s.VIEW_MENU_ITEMS="VIEW_MENU_ITEMS",s.CREATE_MENU_ITEM="CREATE_MENU_ITEM",s.UPDATE_MENU_ITEM="UPDATE_MENU_ITEM",s.DELETE_MENU_ITEM="DELETE_MENU_ITEM",s.VIEW_CATEGORIES="VIEW_CATEGORIES",s.UPDATE_CATEGORY="UPDATE_CATEGORY",s.CREATE_CATEGORY="CREATE_CATEGORY",s.DELETE_CATEGORY="DELETE_CATEGORY",s.VIEW_ADDONS="VIEW_ADDONS",s.UPDATE_ADDON="UPDATE_ADDON",s.CREATE_ADDON="CREATE_ADDON",s.DELETE_ADDON="DELETE_ADDON",s.VIEW_TABLES="VIEW_TABLES",s.UPDATE_TABLE="UPDATE_TABLE",s.UPDATE_TABLE_STATUS="UPDATE_TABLE_STATUS",s.CREATE_TABLE="CREATE_TABLE",s.DELETE_TABLE="DELETE_TABLE",s.VIEW_BRANCHES="VIEW_BRANCHES",s.UPDATE_BRANCH="UPDATE_BRANCH",s.CREATE_BRANCH="CREATE_BRANCH",s.DELETE_BRANCH="DELETE_BRANCH",s.VIEW_EMPLOYEES="VIEW_EMPLOYEES",s.UPDATE_EMPLOYEE="UPDATE_EMPLOYEE",s.CREATE_EMPLOYEE="CREATE_EMPLOYEE",s.DELETE_EMPLOYEE="DELETE_EMPLOYEE",s.VIEW_ANALYTICS="VIEW_ANALYTICS",s.VIEW_SALES_REPORTS="VIEW_SALES_REPORTS",s.VIEW_SUBSCRIPTION="VIEW_SUBSCRIPTION",s.UPDATE_SUBSCRIPTION="UPDATE_SUBSCRIPTION",s.VIEW_QR_CODES="VIEW_QR_CODES",s.CREATE_QR_CODE="CREATE_QR_CODE",s.DELETE_QR_CODE="DELETE_QR_CODE",s.ALL="ALL",s.VIEW_INVENTORY="VIEW_INVENTORY",s.VIEW_PURCHASES="VIEW_PURCHASES",s.VIEW_PURCHASE_DETAIL="VIEW_PURCHASE_DETAIL",s.CREATE_PURCHASE="CREATE_PURCHASE",s.UPDATE_PURCHASE="UPDATE_PURCHASE",s.DELETE_PURCHASE="DELETE_PURCHASE",s.VIEW_INVENTORY_PRODUCTS="VIEW_INVENTORY_PRODUCTS",s.CREATE_INVENTORY_PRODUCT="CREATE_INVENTORY_PRODUCT",s.UPDATE_INVENTORY_PRODUCT="UPDATE_INVENTORY_PRODUCT",s.DELETE_INVENTORY_PRODUCT="DELETE_INVENTORY_PRODUCT",s.VIEW_BUSINESS_BALANCE="VIEW_BUSINESS_BALANCE",s.VIEW_BRANCH_BALANCE="VIEW_BRANCH_BALANCE",s.UPDATE_PRODUCT_INGREDIENTS="UPDATE_PRODUCT_INGREDIENTS",s.DELETE_PRODUCT_INGREDIENTS="DELETE_PRODUCT_INGREDIENTS";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/branch/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","../../../src/modules/user/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","export type BranchWorkHour = {\n\topenAt: string;\n\tcloseAt: string;\n};\n\nexport type BranchWorkDay = {\n\tday: number;\n\thours: BranchWorkHour | null;\n};\n\nexport type BranchWorkDays = {\n\tdays: BranchWorkDay[];\n};\n\nexport interface BranchSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n\tdeliveryFeeAmount: number;\n}\n\nexport enum BranchSetting {\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\tDELIVERY_FEE_AMOUNT = \"deliveryFeeAmount\",\n}\n\nexport interface Branch {\n\tid: number;\n\tname: string;\n\tbusinessId: number;\n\taddress: string;\n\tlongitude?: number;\n\tlatitude?: number;\n\tphone?: string;\n\twifiPassword?: string;\n\tcreatedAt?: number;\n\tcoverPhoto?: string;\n\tsettings?: BranchSettings;\n\topeningHours?: BranchWorkDays;\n\tdeliveryHours?: BranchWorkDays;\n}\n\nexport type BranchServes = {\n\tisOpen: boolean;\n\tisDelivering: boolean;\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 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}\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\ttotalPriceWithTaxAndFees?: 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\tdeliveryFee?: number;\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\nexport type OrderPriceDetails = {\n\ttotalPriceWithTax: number;\n\ttotalPriceWithTaxAndFees: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n};\n\nexport type OrderFormattedPriceDetails = {\n\ttotalPriceWithTax: string;\n\ttotalPriceWithTaxAndFees: string;\n\ttotalPriceWithoutTax: string;\n\ttotalTax: string;\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","// TODO: move it lib that we can use in mobile app too\nexport enum EmployeePermission {\n\tVIEW_BUSINESS = \"VIEW_BUSINESS\",\n\tUPDATE_BUSINESS = \"UPDATE_BUSINESS\",\n\tVIEW_ORDERS = \"VIEW_ORDERS\",\n\tUPDATE_ORDER = \"UPDATE_ORDER\",\n\tCREATE_ORDER = \"CREATE_ORDER\",\n\tVIEW_QR_MENU = \"VIEW_QR_MENU\",\n\tVIEW_MENU = \"VIEW_MENU\",\n\tVIEW_MENU_ITEMS = \"VIEW_MENU_ITEMS\",\n\tCREATE_MENU_ITEM = \"CREATE_MENU_ITEM\",\n\tUPDATE_MENU_ITEM = \"UPDATE_MENU_ITEM\",\n\tDELETE_MENU_ITEM = \"DELETE_MENU_ITEM\",\n\tVIEW_CATEGORIES = \"VIEW_CATEGORIES\",\n\tUPDATE_CATEGORY = \"UPDATE_CATEGORY\",\n\tCREATE_CATEGORY = \"CREATE_CATEGORY\",\n\tDELETE_CATEGORY = \"DELETE_CATEGORY\",\n\tVIEW_ADDONS = \"VIEW_ADDONS\",\n\tUPDATE_ADDON = \"UPDATE_ADDON\",\n\tCREATE_ADDON = \"CREATE_ADDON\",\n\tDELETE_ADDON = \"DELETE_ADDON\",\n\tVIEW_TABLES = \"VIEW_TABLES\",\n\tUPDATE_TABLE = \"UPDATE_TABLE\",\n\tUPDATE_TABLE_STATUS = \"UPDATE_TABLE_STATUS\",\n\tCREATE_TABLE = \"CREATE_TABLE\",\n\tDELETE_TABLE = \"DELETE_TABLE\",\n\tVIEW_BRANCHES = \"VIEW_BRANCHES\",\n\tUPDATE_BRANCH = \"UPDATE_BRANCH\",\n\tCREATE_BRANCH = \"CREATE_BRANCH\",\n\tDELETE_BRANCH = \"DELETE_BRANCH\",\n\tVIEW_EMPLOYEES = \"VIEW_EMPLOYEES\",\n\tUPDATE_EMPLOYEE = \"UPDATE_EMPLOYEE\",\n\tCREATE_EMPLOYEE = \"CREATE_EMPLOYEE\",\n\tDELETE_EMPLOYEE = \"DELETE_EMPLOYEE\",\n\tVIEW_ANALYTICS = \"VIEW_ANALYTICS\",\n\tVIEW_SALES_REPORTS = \"VIEW_SALES_REPORTS\",\n\tVIEW_SUBSCRIPTION = \"VIEW_SUBSCRIPTION\",\n\tUPDATE_SUBSCRIPTION = \"UPDATE_SUBSCRIPTION\",\n\tVIEW_QR_CODES = \"VIEW_QR_CODES\",\n\tCREATE_QR_CODE = \"CREATE_QR_CODE\",\n\tDELETE_QR_CODE = \"DELETE_QR_CODE\",\n\tALL = \"ALL\",\n\t// Inventory\n\tVIEW_INVENTORY = \"VIEW_INVENTORY\",\n\tVIEW_PURCHASES = \"VIEW_PURCHASES\",\n\tVIEW_PURCHASE_DETAIL = \"VIEW_PURCHASE_DETAIL\",\n\tCREATE_PURCHASE = \"CREATE_PURCHASE\",\n\tUPDATE_PURCHASE = \"UPDATE_PURCHASE\",\n\tDELETE_PURCHASE = \"DELETE_PURCHASE\",\n\tVIEW_INVENTORY_PRODUCTS = \"VIEW_INVENTORY_PRODUCTS\",\n\tCREATE_INVENTORY_PRODUCT = \"CREATE_INVENTORY_PRODUCT\",\n\tUPDATE_INVENTORY_PRODUCT = \"UPDATE_INVENTORY_PRODUCT\",\n\tDELETE_INVENTORY_PRODUCT = \"DELETE_INVENTORY_PRODUCT\",\n\tVIEW_BUSINESS_BALANCE = \"VIEW_BUSINESS_BALANCE\",\n\tVIEW_BRANCH_BALANCE = \"VIEW_BRANCH_BALANCE\",\n}\n"],"names":["MenuAddonSelectType","BranchSetting","BusinessSetting","CustomerAuthStep","CustomerAddressType","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation","EmployeePermission","Feature"],"mappings":"aAAA,IAAYA,ECuBAC,ECdAC,ECTAC,EAMAC,ECHAC,ECDAC,EAMAC,EAaAC,EAOAC,EAqEAC,ECxDAC,ECzCAC,EAuBAC,ECvBAC,EASAC,EAWAC,ECnBAC,ETDAjB,QAAAA,yBAAAA,GAAAA,EAAAA,QAAAA,sBAAAA,4BAAmB,CAAA,IAC9B,OAAA,SACAA,EAAA,SAAA,WCqBWC,QAAAA,mBAAAA,GAAAA,EAAAA,QAAAA,gBAAAA,sBAAa,CAAA,IACxB,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBACAA,EAAA,oBAAA,oBCpBWC,QAAAA,qBAAAA,GAAAA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AAA,UAAA,YACAA,EAAA,aAAA,eACAA,EAAA,YAAA,cChDWC,QAAAA,wBAAAA,GAAAA,EAAAA,QAAAA,qBAAAA,2BAAkB,CAAA,IAC7B,cAAA,gBACAA,EAAA,gBAAA,kBACAA,EAAA,YAAA,cACAA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,UAAA,YACAA,EAAA,gBAAA,kBACAA,EAAA,iBAAA,mBACAA,EAAA,iBAAA,mBACAA,EAAA,iBAAA,mBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,YAAA,cACAA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,YAAA,cACAA,EAAA,aAAA,eACAA,EAAA,oBAAA,sBACAA,EAAA,aAAA,eACAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,eAAA,iBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,eAAA,iBACAA,EAAA,mBAAA,qBACAA,EAAA,kBAAA,oBACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,IAAA,MAEAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,qBAAA,uBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,wBAAA,0BACAA,EAAA,yBAAA,2BACAA,EAAA,yBAAA,2BACAA,EAAA,yBAAA,2BACAA,EAAA,sBAAA,wBACAA,EAAA,oBAAA"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/branch/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","../../../src/modules/user/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","export type BranchWorkHour = {\n\topenAt: string;\n\tcloseAt: string;\n};\n\nexport type BranchWorkDay = {\n\tday: number;\n\thours: BranchWorkHour | null;\n};\n\nexport type BranchWorkDays = {\n\tdays: BranchWorkDay[];\n};\n\nexport interface BranchSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n\tdeliveryFeeAmount: number;\n}\n\nexport enum BranchSetting {\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\tDELIVERY_FEE_AMOUNT = \"deliveryFeeAmount\",\n}\n\nexport interface Branch {\n\tid: number;\n\tname: string;\n\tbusinessId: number;\n\taddress: string;\n\tlongitude?: number;\n\tlatitude?: number;\n\tphone?: string;\n\twhatsApp?: string;\n\ttelegram?: string;\n\twifiPassword?: string;\n\tcreatedAt?: number;\n\tcoverPhoto?: string;\n\tsettings?: BranchSettings;\n\topeningHours?: BranchWorkDays;\n\tdeliveryHours?: BranchWorkDays;\n}\n\nexport type BranchServes = {\n\tisOpen: boolean;\n\tisDelivering: boolean;\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 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}\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\ttotalPriceWithTaxAndFees?: 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\tdeliveryFee?: number;\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\nexport type OrderPriceDetails = {\n\ttotalPriceWithTax: number;\n\ttotalPriceWithTaxAndFees: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n};\n\nexport type OrderFormattedPriceDetails = {\n\ttotalPriceWithTax: string;\n\ttotalPriceWithTaxAndFees: string;\n\ttotalPriceWithoutTax: string;\n\ttotalTax: string;\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","// TODO: move it lib that we can use in mobile app too\nexport enum EmployeePermission {\n\tVIEW_BUSINESS = \"VIEW_BUSINESS\",\n\tUPDATE_BUSINESS = \"UPDATE_BUSINESS\",\n\tVIEW_ORDERS = \"VIEW_ORDERS\",\n\tUPDATE_ORDER = \"UPDATE_ORDER\",\n\tCREATE_ORDER = \"CREATE_ORDER\",\n\tVIEW_QR_MENU = \"VIEW_QR_MENU\",\n\tVIEW_MENU = \"VIEW_MENU\",\n\tVIEW_MENU_ITEMS = \"VIEW_MENU_ITEMS\",\n\tCREATE_MENU_ITEM = \"CREATE_MENU_ITEM\",\n\tUPDATE_MENU_ITEM = \"UPDATE_MENU_ITEM\",\n\tDELETE_MENU_ITEM = \"DELETE_MENU_ITEM\",\n\tVIEW_CATEGORIES = \"VIEW_CATEGORIES\",\n\tUPDATE_CATEGORY = \"UPDATE_CATEGORY\",\n\tCREATE_CATEGORY = \"CREATE_CATEGORY\",\n\tDELETE_CATEGORY = \"DELETE_CATEGORY\",\n\tVIEW_ADDONS = \"VIEW_ADDONS\",\n\tUPDATE_ADDON = \"UPDATE_ADDON\",\n\tCREATE_ADDON = \"CREATE_ADDON\",\n\tDELETE_ADDON = \"DELETE_ADDON\",\n\tVIEW_TABLES = \"VIEW_TABLES\",\n\tUPDATE_TABLE = \"UPDATE_TABLE\",\n\tUPDATE_TABLE_STATUS = \"UPDATE_TABLE_STATUS\",\n\tCREATE_TABLE = \"CREATE_TABLE\",\n\tDELETE_TABLE = \"DELETE_TABLE\",\n\tVIEW_BRANCHES = \"VIEW_BRANCHES\",\n\tUPDATE_BRANCH = \"UPDATE_BRANCH\",\n\tCREATE_BRANCH = \"CREATE_BRANCH\",\n\tDELETE_BRANCH = \"DELETE_BRANCH\",\n\tVIEW_EMPLOYEES = \"VIEW_EMPLOYEES\",\n\tUPDATE_EMPLOYEE = \"UPDATE_EMPLOYEE\",\n\tCREATE_EMPLOYEE = \"CREATE_EMPLOYEE\",\n\tDELETE_EMPLOYEE = \"DELETE_EMPLOYEE\",\n\tVIEW_ANALYTICS = \"VIEW_ANALYTICS\",\n\tVIEW_SALES_REPORTS = \"VIEW_SALES_REPORTS\",\n\tVIEW_SUBSCRIPTION = \"VIEW_SUBSCRIPTION\",\n\tUPDATE_SUBSCRIPTION = \"UPDATE_SUBSCRIPTION\",\n\tVIEW_QR_CODES = \"VIEW_QR_CODES\",\n\tCREATE_QR_CODE = \"CREATE_QR_CODE\",\n\tDELETE_QR_CODE = \"DELETE_QR_CODE\",\n\tALL = \"ALL\",\n\t// Inventory\n\tVIEW_INVENTORY = \"VIEW_INVENTORY\",\n\tVIEW_PURCHASES = \"VIEW_PURCHASES\",\n\tVIEW_PURCHASE_DETAIL = \"VIEW_PURCHASE_DETAIL\",\n\tCREATE_PURCHASE = \"CREATE_PURCHASE\",\n\tUPDATE_PURCHASE = \"UPDATE_PURCHASE\",\n\tDELETE_PURCHASE = \"DELETE_PURCHASE\",\n\tVIEW_INVENTORY_PRODUCTS = \"VIEW_INVENTORY_PRODUCTS\",\n\tCREATE_INVENTORY_PRODUCT = \"CREATE_INVENTORY_PRODUCT\",\n\tUPDATE_INVENTORY_PRODUCT = \"UPDATE_INVENTORY_PRODUCT\",\n\tDELETE_INVENTORY_PRODUCT = \"DELETE_INVENTORY_PRODUCT\",\n\tVIEW_BUSINESS_BALANCE = \"VIEW_BUSINESS_BALANCE\",\n\tVIEW_BRANCH_BALANCE = \"VIEW_BRANCH_BALANCE\",\n\tUPDATE_PRODUCT_INGREDIENTS = \"UPDATE_PRODUCT_INGREDIENTS\",\n\tDELETE_PRODUCT_INGREDIENTS = \"DELETE_PRODUCT_INGREDIENTS\",\n}\n"],"names":["MenuAddonSelectType","BranchSetting","BusinessSetting","CustomerAuthStep","CustomerAddressType","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation","EmployeePermission","Feature"],"mappings":"aAAA,IAAYA,ECuBAC,ECdAC,ECTAC,EAMAC,ECHAC,ECDAC,EAMAC,EAaAC,EAOAC,EAqEAC,ECxDAC,ECzCAC,EAuBAC,ECvBAC,EASAC,EAWAC,ECnBAC,ETDAjB,QAAAA,yBAAAA,GAAAA,EAAAA,QAAAA,sBAAAA,4BAAmB,CAAA,IAC9B,OAAA,SACAA,EAAA,SAAA,WCqBWC,QAAAA,mBAAAA,GAAAA,EAAAA,QAAAA,gBAAAA,sBAAa,CAAA,IACxB,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBACAA,EAAA,oBAAA,oBCpBWC,QAAAA,qBAAAA,GAAAA,EAAAA,QAAAA,kBAAAA,wBAAe,CAAA,IAC1B,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBCdWC,QAAAA,sBAAAA,GAAAA,EAAAA,QAAAA,mBAAAA,yBAAgB,CAAA,IAC3B,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,MAAA,QAGWC,QAAAA,yBAAAA,GAAAA,EAAAA,QAAAA,sBAAAA,4BAAmB,CAAA,IAC9B,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SCTWc,QAAAA,aAAAA,GAAAA,QAAAA,UAAAA,gBAAO,CAAA,IAClB,MAAA,gBAEWb,QAAAA,oBAAAA,GAAAA,EAAAA,QAAAA,iBAAAA,uBAAc,CAAA,IACzB,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MCJWC,QAAAA,eAAAA,GAAAA,EAAAA,QAAAA,Y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A,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,eAAA,iBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,eAAA,iBACAA,EAAA,mBAAA,qBACAA,EAAA,kBAAA,oBACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,gBACAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,IAAA,MAEAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,qBAAA,uBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,gBAAA,kBACAA,EAAA,wBAAA,0BACAA,EAAA,yBAAA,2BACAA,EAAA,yBAAA,2BACAA,EAAA,yBAAA,2BACAA,EAAA,sBAAA,wBACAA,EAAA,oBAAA,sBACAA,EAAA,2BAAA,6BACAA,EAAA,2BAAA"}
@@ -9,7 +9,7 @@ export * from "../modules/view/models";
9
9
  export * from "../modules/subscription/models";
10
10
  export * from "../modules/table/models";
11
11
  export * from "../modules/user/models";
12
- export * from "./category";
13
- export * from "./menu";
12
+ export * from "../modules/category/models";
13
+ export * from "../modules/menu/models";
14
14
  export * from "../components/PublicMenu/ProductsGridItem/ProductsGridItem.types";
15
15
  export * from "../components/PublicMenu/OrderMethods/OrderMethods.types";
@@ -1,9 +1,17 @@
1
1
  import * as viewModels from "../view/models";
2
- import { BranchServes, BranchSettings } from "./models";
2
+ import { Branch, BranchServes, BranchSettings } from "./models";
3
+ export declare const useHasSingleBranch: () => boolean;
4
+ export declare const useSelectedBranch: () => Branch;
3
5
  export declare const useBranchCoordinates: () => viewModels.Coordinates;
6
+ export declare const useBranchAddress: () => string;
4
7
  export declare const useBranchServes: () => BranchServes;
5
8
  export declare const useBranchSettings: () => BranchSettings;
6
9
  export declare const useMaxDeliveryDistance: () => number;
7
10
  export declare const useMinDeliveryAmount: () => number;
8
11
  export declare const useOrderEnabled: () => boolean;
9
12
  export declare const useIsDeliveryEnabled: () => boolean;
13
+ export declare const useVenueName: () => string;
14
+ export declare const useBranchId: () => number | undefined;
15
+ export declare const useNormalizedRootPath: () => string;
16
+ export declare const useList: () => Branch[];
17
+ export declare const useOnBranchSelect: () => ((branchId: number) => void);
@@ -33,6 +33,8 @@ export interface Branch {
33
33
  longitude?: number;
34
34
  latitude?: number;
35
35
  phone?: string;
36
+ whatsApp?: string;
37
+ telegram?: string;
36
38
  wifiPassword?: string;
37
39
  createdAt?: number;
38
40
  coverPhoto?: string;
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_LANGUAGE = "en";
2
+ export declare const DEFAULT_CURRENCY = "AZN";
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,2 @@
1
+ export * as models from "./models";
2
+ export * as utils from "./utils";
@@ -1,37 +1,23 @@
1
1
  import * as productModels from "src/modules/product/models";
2
2
  import * as branchModels from "src/modules/branch/models";
3
- import * as categoryModels from "./category";
3
+ import * as categoryModels from "src/modules/category/models";
4
4
  import * as businessModels from "src/modules/business/models";
5
- import * as featureModels from "src/modules/feature/models";
6
5
  import * as tableModels from "src/modules/table/models";
6
+ export interface CategoryProductMap extends categoryModels.Category {
7
+ products: productModels.Product[];
8
+ }
7
9
  export interface PublicMenuData {
8
- businessId: number;
9
- branches: branchModels.Branch[];
10
+ business: businessModels.Business;
10
11
  branchId: number | null | undefined;
11
- selectedBranch?: branchModels.Branch;
12
- coverPhoto?: string;
13
- logoImage?: string;
14
- name: string;
15
- currency: string;
12
+ branches: branchModels.Branch[];
16
13
  products: productModels.Product[];
17
14
  categories: categoryModels.Category[];
18
15
  language: string;
19
- languages?: businessModels.BusinessLanguage[];
20
- instagram?: string;
21
- facebook?: string;
22
- whatsapp?: string;
23
- telegram?: string;
24
- tiktok?: string;
25
16
  rootPath?: string;
26
17
  hostname?: string | null;
27
- imageTag?: any;
28
- businessSegment?: featureModels.FeatureSegment;
29
- business: businessModels.Business;
30
18
  tableId?: string | null;
31
19
  tables?: tableModels.Table[];
20
+ isInDashboard?: boolean;
32
21
  onBranchSelect?: (branchId: number) => void;
33
22
  onLanguageSelect?: (code: string) => void;
34
23
  }
35
- export interface CategoryProductMap extends categoryModels.Category {
36
- products: productModels.Product[];
37
- }
@@ -0,0 +1,4 @@
1
+ import * as categoryModels from "src/modules/category/models";
2
+ import * as productModels from "src/modules/product/models";
3
+ import { CategoryProductMap } from "./models";
4
+ export declare const prepareCategoryAndProductMap: (categories: categoryModels.Category[], products: productModels.Product[]) => CategoryProductMap[];
@@ -1,6 +1,9 @@
1
1
  import * as orderModels from "src/modules/order/models";
2
+ import { Product } from "./models";
2
3
  export declare const useProductQuantity: ({ productId, variantId, selectedAddons, }: {
3
4
  productId: number;
4
5
  variantId?: number;
5
6
  selectedAddons: orderModels.SelectedAddons;
6
7
  }) => number;
8
+ export declare const useList: () => Product[];
9
+ export declare const useProductById: (productId: number) => Product;
@@ -1,6 +1,7 @@
1
1
  import { Product, ProductTranslation, ProductVariant, ProductVariantTranslation } from "./models";
2
2
  import { MenuAddon } from "src/modules/addon/models";
3
3
  import * as orderModels from "src/modules/order/models";
4
+ export declare const calculateTotalPrice: (price?: number, quantity?: number, vat?: number) => number;
4
5
  export declare const getProductTranslation: (product: Pick<Product, "translations">, language: string) => ProductTranslation;
5
6
  export declare const getProductRawPrice: (product: Pick<Product, "price" | "vat">, quantity?: number) => number;
6
7
  export declare const getProductPrice: (product: Pick<Product, "price" | "vat">, currency: string, language: string, quantity?: number) => {
@@ -0,0 +1,4 @@
1
+ import { Table } from "./models";
2
+ export declare const useList: () => Table[];
3
+ export declare const usePreDefinedTable: () => Table;
4
+ export declare const usePreDefinedTableId: () => string;
@@ -50,5 +50,7 @@ export declare enum EmployeePermission {
50
50
  UPDATE_INVENTORY_PRODUCT = "UPDATE_INVENTORY_PRODUCT",
51
51
  DELETE_INVENTORY_PRODUCT = "DELETE_INVENTORY_PRODUCT",
52
52
  VIEW_BUSINESS_BALANCE = "VIEW_BUSINESS_BALANCE",
53
- VIEW_BRANCH_BALANCE = "VIEW_BRANCH_BALANCE"
53
+ VIEW_BRANCH_BALANCE = "VIEW_BRANCH_BALANCE",
54
+ UPDATE_PRODUCT_INGREDIENTS = "UPDATE_PRODUCT_INGREDIENTS",
55
+ DELETE_PRODUCT_INGREDIENTS = "DELETE_PRODUCT_INGREDIENTS"
54
56
  }
@@ -3,12 +3,18 @@ export declare const MODALS: {
3
3
  AUTH: string;
4
4
  ADD_UPDATE_ADDRESS: string;
5
5
  BRANCH_BUSINESS_HOURS: string;
6
+ PRODUCT_DETAILS: string;
6
7
  };
7
8
  export declare const SUPPORTED_LOCALES: string[];
8
- export declare const DEFAULT_LANGUAGE = "en";
9
- export declare const DEFAULT_CURRENCY = "AZN";
10
9
  export declare const SUPPORTED_COUNTRIES: {
11
10
  name: string;
12
11
  code: string;
13
12
  phoneCode: string;
14
13
  }[];
14
+ export declare const CO_DOMAIN = "restaround.co";
15
+ export declare const AZ_DOMAIN = "restaround.az";
16
+ export declare const EE_DOMAIN = "restaround.ee";
17
+ export declare const NL_DOMAIN = "restaround.nl";
18
+ export declare const DEFAULT_HOSTNAME = "restaround.co";
19
+ export declare const DOMAINS: string[];
20
+ export declare const IMAGE_BASE_URL = "https://images.restaround.co";
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from "react";
2
- import { PublicMenuData } from "src/models/menu";
2
+ import { models as menuModels } from "src/modules/menu";
3
3
  export declare const StoreProvider: ({ children, value, }: {
4
4
  children: ReactElement;
5
- value: PublicMenuData;
5
+ value: menuModels.PublicMenuData;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
7
- export declare const useStoreContext: () => PublicMenuData;
7
+ export declare const useStoreContext: () => menuModels.PublicMenuData;
@@ -1,9 +1,17 @@
1
1
  import * as viewModels from "../view/models";
2
- import { BranchServes, BranchSettings } from "./models";
2
+ import { Branch, BranchServes, BranchSettings } from "./models";
3
+ export declare const useHasSingleBranch: () => boolean;
4
+ export declare const useSelectedBranch: () => Branch;
3
5
  export declare const useBranchCoordinates: () => viewModels.Coordinates;
6
+ export declare const useBranchAddress: () => string;
4
7
  export declare const useBranchServes: () => BranchServes;
5
8
  export declare const useBranchSettings: () => BranchSettings;
6
9
  export declare const useMaxDeliveryDistance: () => number;
7
10
  export declare const useMinDeliveryAmount: () => number;
8
11
  export declare const useOrderEnabled: () => boolean;
9
12
  export declare const useIsDeliveryEnabled: () => boolean;
13
+ export declare const useVenueName: () => string;
14
+ export declare const useBranchId: () => number | undefined;
15
+ export declare const useNormalizedRootPath: () => string;
16
+ export declare const useList: () => Branch[];
17
+ export declare const useOnBranchSelect: () => ((branchId: number) => void);
@@ -33,6 +33,8 @@ export interface Branch {
33
33
  longitude?: number;
34
34
  latitude?: number;
35
35
  phone?: string;
36
+ whatsApp?: string;
37
+ telegram?: string;
36
38
  wifiPassword?: string;
37
39
  createdAt?: number;
38
40
  coverPhoto?: string;
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_LANGUAGE = "en";
2
+ export declare const DEFAULT_CURRENCY = "AZN";
@@ -0,0 +1,9 @@
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;
@@ -1 +1,2 @@
1
1
  export * as models from "./models";
2
+ export * as hooks from "./hooks";
@@ -0,0 +1,3 @@
1
+ import { Category } from "./models";
2
+ export declare const useList: () => Category[];
3
+ export declare const useCategoryNameById: (categoryId: number) => string;
@@ -1,3 +1,3 @@
1
- import { Category, CategoryTranslation } from "../models/category";
1
+ import { Category, CategoryTranslation } from "./models";
2
2
  export declare const getCategoryTranslation: (category: Category, language: string) => CategoryTranslation;
3
3
  export declare const getCategoryNameById: (categoryId: number, categories: Category[], language: string) => string;
@@ -0,0 +1,2 @@
1
+ export * as models from "./models";
2
+ export * as utils from "./utils";
@@ -1,37 +1,23 @@
1
1
  import * as productModels from "src/modules/product/models";
2
2
  import * as branchModels from "src/modules/branch/models";
3
- import * as categoryModels from "./category";
3
+ import * as categoryModels from "src/modules/category/models";
4
4
  import * as businessModels from "src/modules/business/models";
5
- import * as featureModels from "src/modules/feature/models";
6
5
  import * as tableModels from "src/modules/table/models";
6
+ export interface CategoryProductMap extends categoryModels.Category {
7
+ products: productModels.Product[];
8
+ }
7
9
  export interface PublicMenuData {
8
- businessId: number;
9
- branches: branchModels.Branch[];
10
+ business: businessModels.Business;
10
11
  branchId: number | null | undefined;
11
- selectedBranch?: branchModels.Branch;
12
- coverPhoto?: string;
13
- logoImage?: string;
14
- name: string;
15
- currency: string;
12
+ branches: branchModels.Branch[];
16
13
  products: productModels.Product[];
17
14
  categories: categoryModels.Category[];
18
15
  language: string;
19
- languages?: businessModels.BusinessLanguage[];
20
- instagram?: string;
21
- facebook?: string;
22
- whatsapp?: string;
23
- telegram?: string;
24
- tiktok?: string;
25
16
  rootPath?: string;
26
17
  hostname?: string | null;
27
- imageTag?: any;
28
- businessSegment?: featureModels.FeatureSegment;
29
- business: businessModels.Business;
30
18
  tableId?: string | null;
31
19
  tables?: tableModels.Table[];
20
+ isInDashboard?: boolean;
32
21
  onBranchSelect?: (branchId: number) => void;
33
22
  onLanguageSelect?: (code: string) => void;
34
23
  }
35
- export interface CategoryProductMap extends categoryModels.Category {
36
- products: productModels.Product[];
37
- }
@@ -0,0 +1,4 @@
1
+ import * as categoryModels from "src/modules/category/models";
2
+ import * as productModels from "src/modules/product/models";
3
+ import { CategoryProductMap } from "./models";
4
+ export declare const prepareCategoryAndProductMap: (categories: categoryModels.Category[], products: productModels.Product[]) => CategoryProductMap[];
@@ -1,6 +1,9 @@
1
1
  import * as orderModels from "src/modules/order/models";
2
+ import { Product } from "./models";
2
3
  export declare const useProductQuantity: ({ productId, variantId, selectedAddons, }: {
3
4
  productId: number;
4
5
  variantId?: number;
5
6
  selectedAddons: orderModels.SelectedAddons;
6
7
  }) => number;
8
+ export declare const useList: () => Product[];
9
+ export declare const useProductById: (productId: number) => Product;
@@ -1,6 +1,7 @@
1
1
  import { Product, ProductTranslation, ProductVariant, ProductVariantTranslation } from "./models";
2
2
  import { MenuAddon } from "src/modules/addon/models";
3
3
  import * as orderModels from "src/modules/order/models";
4
+ export declare const calculateTotalPrice: (price?: number, quantity?: number, vat?: number) => number;
4
5
  export declare const getProductTranslation: (product: Pick<Product, "translations">, language: string) => ProductTranslation;
5
6
  export declare const getProductRawPrice: (product: Pick<Product, "price" | "vat">, quantity?: number) => number;
6
7
  export declare const getProductPrice: (product: Pick<Product, "price" | "vat">, currency: string, language: string, quantity?: number) => {
@@ -50,5 +50,7 @@ export declare enum EmployeePermission {
50
50
  UPDATE_INVENTORY_PRODUCT = "UPDATE_INVENTORY_PRODUCT",
51
51
  DELETE_INVENTORY_PRODUCT = "DELETE_INVENTORY_PRODUCT",
52
52
  VIEW_BUSINESS_BALANCE = "VIEW_BUSINESS_BALANCE",
53
- VIEW_BRANCH_BALANCE = "VIEW_BRANCH_BALANCE"
53
+ VIEW_BRANCH_BALANCE = "VIEW_BRANCH_BALANCE",
54
+ UPDATE_PRODUCT_INGREDIENTS = "UPDATE_PRODUCT_INGREDIENTS",
55
+ DELETE_PRODUCT_INGREDIENTS = "DELETE_PRODUCT_INGREDIENTS"
54
56
  }