@pisell/private-materials 6.3.143 → 6.3.145

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 (343) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +145 -153
  7. package/build/lowcode/render/default/view.js +10 -10
  8. package/build/lowcode/view.js +10 -10
  9. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  16. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  17. package/es/components/appointmentBooking/hooks.d.ts +107 -0
  18. package/es/components/appointmentBooking/utils.d.ts +227 -0
  19. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  20. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  21. package/es/components/booking/components/footer/utils.d.ts +47 -0
  22. package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  23. package/es/components/booking/components/voucher/index.d.ts +3 -0
  24. package/es/components/booking/forms/footer.d.ts +0 -1
  25. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  26. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  27. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  28. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  29. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  30. package/es/components/booking/info/service2/utils.d.ts +248 -0
  31. package/es/components/booking/info2/index.d.ts +12 -0
  32. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  33. package/es/components/booking/locales.d.ts +1489 -0
  34. package/es/components/booking/model.d.ts +120 -0
  35. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  36. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
  37. package/es/components/ecocup/components/CupActionList/index.d.ts +0 -1
  38. package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -1
  39. package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -1
  40. package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
  41. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
  42. package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -1
  43. package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
  44. package/es/components/ecocup/components/SearchBar/index.d.ts +0 -1
  45. package/es/components/ecocup/components/SettingModal/index.d.ts +0 -1
  46. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
  47. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
  48. package/es/components/ecocup/cupList/index.d.ts +0 -1
  49. package/es/components/eftpos/hooks.d.ts +1 -0
  50. package/es/components/eftpos/index.d.ts +1 -0
  51. package/es/components/eftposPay/amount.d.ts +20 -0
  52. package/es/components/eftposPay/app.d.ts +10 -0
  53. package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  54. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  55. package/es/components/eftposPay/component/fail/network.d.ts +8 -0
  56. package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
  57. package/es/components/eftposPay/component/manual/index.d.ts +9 -0
  58. package/es/components/eftposPay/component/signature/index.d.ts +8 -0
  59. package/es/components/eftposPay/device.d.ts +23 -0
  60. package/es/components/eftposPay/index.d.ts +4 -0
  61. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  62. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  63. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  64. package/es/components/eftposPay/pay.d.ts +20 -0
  65. package/es/components/eftposPay/payo/config.d.ts +12 -0
  66. package/es/components/eftposPay/payo/hooks.d.ts +10 -0
  67. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  68. package/es/components/eftposPay/tip.d.ts +9 -0
  69. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  70. package/es/components/eftposPay/utils/payLog.d.ts +81 -0
  71. package/es/components/eftposPay/windcave/receiptAction.d.ts +22 -0
  72. package/es/components/eftposPay/windcave/windcave.d.ts +6 -0
  73. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  74. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  77. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  78. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  79. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  81. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  83. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  86. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  87. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  88. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  89. package/es/components/kioskSkuDetail/locales.d.ts +48 -0
  90. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  91. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  92. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  93. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
  94. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
  95. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  97. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  98. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  99. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
  100. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
  101. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
  102. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  103. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  104. package/es/components/pay/toC/index.d.ts +3 -0
  105. package/es/components/pay/toC/locales.d.ts +631 -0
  106. package/es/components/pay/toC/payGroup.d.ts +59 -0
  107. package/es/components/pay/toC/serve.d.ts +87 -0
  108. package/es/components/pay/toC/utils.d.ts +65 -0
  109. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  110. package/es/components/ruleSetting/locales.d.ts +78 -0
  111. package/es/components/scanOrder/components/Cart/index.d.ts +16 -0
  112. package/es/components/scanOrder/components/Footer/index.d.ts +12 -0
  113. package/es/components/scanOrder/components/Menu/index.d.ts +18 -0
  114. package/es/components/scanOrder/context.d.ts +4 -0
  115. package/es/components/scanOrder/context.js +16 -8
  116. package/es/components/scanOrder/types.d.ts +79 -0
  117. package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +21 -0
  118. package/es/components/scanOrder/utils/transformProductDetail.d.ts +59 -0
  119. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  120. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  121. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  122. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  123. package/es/components/systemSettings/registry/index.d.ts +5 -0
  124. package/es/components/systemSettings/registry/services.d.ts +99 -0
  125. package/es/components/systemSettings/registry/types.d.ts +143 -0
  126. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  127. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  128. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  129. package/es/components/ticketBooking/index.d.ts +7 -0
  130. package/es/components/venueBooking/components/Addons/index.d.ts +3 -0
  131. package/es/components/venueBooking/components/Cart/index.d.ts +28 -0
  132. package/es/components/venueBooking/components/Checkout/index.d.ts +2 -0
  133. package/es/components/venueBooking/components/Footer/index.d.ts +3 -0
  134. package/es/components/venueBooking/components/Header/index.d.ts +2 -0
  135. package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.d.ts +2 -0
  136. package/es/components/venueBooking/context.d.ts +9 -0
  137. package/es/components/venueBooking/hooks.d.ts +72 -0
  138. package/es/components/venueBooking/index.d.ts +6 -0
  139. package/es/components/venueBooking/locales.d.ts +627 -0
  140. package/es/components/venueBooking/types.d.ts +204 -0
  141. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  142. package/es/index.d.ts +87 -0
  143. package/es/plus/orderList/components/HandleActions.d.ts +0 -1
  144. package/es/plus/orderList/components/QuickFilter.d.ts +0 -1
  145. package/es/plus/orderList/components/Reset.d.ts +0 -1
  146. package/es/plus/orderList/components/Toolbar.d.ts +0 -1
  147. package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
  148. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
  149. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
  150. package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
  151. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  152. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  153. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
  154. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  155. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  156. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  157. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  158. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  159. package/es/plus/skuOptionsSelection/index.d.ts +5 -0
  160. package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
  161. package/es/plus/skuOptionsSelection/types.d.ts +458 -0
  162. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  163. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  164. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  165. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  166. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  167. package/es/plus/walletPassGallery/components/passDetail/index.js +8 -1
  168. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  169. package/es/plus/walletPassGallery/locales.d.ts +5 -0
  170. package/es/plus/walletPassGallery/locales.js +14 -5
  171. package/es/pro/Cards/components/SKUCard/index.d.ts +5 -0
  172. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  173. package/es/pro/Selector/demo.d.ts +0 -1
  174. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  175. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  176. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  177. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  178. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  179. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  180. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  181. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  182. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  183. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  184. package/lib/components/appointmentBooking/hooks.d.ts +107 -0
  185. package/lib/components/appointmentBooking/utils.d.ts +227 -0
  186. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  187. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  188. package/lib/components/booking/components/footer/utils.d.ts +47 -0
  189. package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  190. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  191. package/lib/components/booking/forms/footer.d.ts +0 -1
  192. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  193. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  194. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  195. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  196. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  197. package/lib/components/booking/info/service2/utils.d.ts +248 -0
  198. package/lib/components/booking/info2/index.d.ts +12 -0
  199. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  200. package/lib/components/booking/locales.d.ts +1489 -0
  201. package/lib/components/booking/model.d.ts +120 -0
  202. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  203. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
  204. package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -1
  205. package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -1
  206. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -1
  207. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
  208. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
  209. package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -1
  210. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
  211. package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -1
  212. package/lib/components/ecocup/components/SettingModal/index.d.ts +0 -1
  213. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
  214. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
  215. package/lib/components/ecocup/cupList/index.d.ts +0 -1
  216. package/lib/components/eftpos/hooks.d.ts +1 -0
  217. package/lib/components/eftpos/index.d.ts +1 -0
  218. package/lib/components/eftposPay/amount.d.ts +20 -0
  219. package/lib/components/eftposPay/app.d.ts +10 -0
  220. package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  221. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  222. package/lib/components/eftposPay/component/fail/network.d.ts +8 -0
  223. package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
  224. package/lib/components/eftposPay/component/manual/index.d.ts +9 -0
  225. package/lib/components/eftposPay/component/signature/index.d.ts +8 -0
  226. package/lib/components/eftposPay/device.d.ts +23 -0
  227. package/lib/components/eftposPay/index.d.ts +4 -0
  228. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  229. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  230. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  231. package/lib/components/eftposPay/pay.d.ts +20 -0
  232. package/lib/components/eftposPay/payo/config.d.ts +12 -0
  233. package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
  234. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  235. package/lib/components/eftposPay/tip.d.ts +9 -0
  236. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  237. package/lib/components/eftposPay/utils/payLog.d.ts +81 -0
  238. package/lib/components/eftposPay/windcave/receiptAction.d.ts +22 -0
  239. package/lib/components/eftposPay/windcave/windcave.d.ts +6 -0
  240. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  241. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  242. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  243. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  244. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  245. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  246. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  247. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  248. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  249. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  250. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  251. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  252. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  253. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  254. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  255. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  256. package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
  257. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  258. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  259. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  260. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
  261. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
  262. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
  263. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  264. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  265. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  266. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
  267. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
  268. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
  269. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  270. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  271. package/lib/components/pay/toC/index.d.ts +3 -0
  272. package/lib/components/pay/toC/locales.d.ts +631 -0
  273. package/lib/components/pay/toC/payGroup.d.ts +59 -0
  274. package/lib/components/pay/toC/serve.d.ts +87 -0
  275. package/lib/components/pay/toC/utils.d.ts +65 -0
  276. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  277. package/lib/components/ruleSetting/locales.d.ts +78 -0
  278. package/lib/components/scanOrder/components/Cart/index.d.ts +16 -0
  279. package/lib/components/scanOrder/components/Footer/index.d.ts +12 -0
  280. package/lib/components/scanOrder/components/Menu/index.d.ts +18 -0
  281. package/lib/components/scanOrder/context.d.ts +4 -0
  282. package/lib/components/scanOrder/context.js +6 -0
  283. package/lib/components/scanOrder/types.d.ts +79 -0
  284. package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +21 -0
  285. package/lib/components/scanOrder/utils/transformProductDetail.d.ts +59 -0
  286. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  287. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  288. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  289. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  290. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  291. package/lib/components/systemSettings/registry/services.d.ts +99 -0
  292. package/lib/components/systemSettings/registry/types.d.ts +143 -0
  293. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  294. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  295. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  296. package/lib/components/ticketBooking/index.d.ts +7 -0
  297. package/lib/components/venueBooking/components/Addons/index.d.ts +3 -0
  298. package/lib/components/venueBooking/components/Cart/index.d.ts +28 -0
  299. package/lib/components/venueBooking/components/Checkout/index.d.ts +2 -0
  300. package/lib/components/venueBooking/components/Footer/index.d.ts +3 -0
  301. package/lib/components/venueBooking/components/Header/index.d.ts +2 -0
  302. package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.d.ts +2 -0
  303. package/lib/components/venueBooking/context.d.ts +9 -0
  304. package/lib/components/venueBooking/hooks.d.ts +72 -0
  305. package/lib/components/venueBooking/index.d.ts +6 -0
  306. package/lib/components/venueBooking/locales.d.ts +627 -0
  307. package/lib/components/venueBooking/types.d.ts +204 -0
  308. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  309. package/lib/index.d.ts +87 -0
  310. package/lib/plus/orderList/components/HandleActions.d.ts +0 -1
  311. package/lib/plus/orderList/components/QuickFilter.d.ts +0 -1
  312. package/lib/plus/orderList/components/Reset.d.ts +0 -1
  313. package/lib/plus/orderList/components/Toolbar.d.ts +0 -1
  314. package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
  315. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
  316. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
  317. package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
  318. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  319. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  320. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
  321. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
  322. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  323. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
  324. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  325. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  326. package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
  327. package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
  328. package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
  329. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  330. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  331. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  332. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  333. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  334. package/lib/plus/walletPassGallery/components/passDetail/index.js +4 -0
  335. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  336. package/lib/plus/walletPassGallery/locales.d.ts +5 -0
  337. package/lib/plus/walletPassGallery/locales.js +14 -5
  338. package/lib/pro/Cards/components/SKUCard/index.d.ts +5 -0
  339. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  340. package/lib/pro/Selector/demo.d.ts +0 -1
  341. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  342. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  343. package/package.json +1 -1
@@ -0,0 +1,59 @@
1
+ import { PayGroup } from './model';
2
+ /**
3
+ * 生成 `/h5/core/stash` 的 token:前缀 + 订单号
4
+ */
5
+ export declare const buildPayGroupStashToken: (orderId: string) => string;
6
+ /**
7
+ * @title: 同步交易组到storage
8
+ * @description:
9
+ * @param {PayGroup} payGroup
10
+ * @return {*}
11
+ * @Author: zhiwei.Wang
12
+ * @Date: 2024-08-16 10:40
13
+ */
14
+ export declare const syncPayGroupToStorage: (payGroup: PayGroup) => void;
15
+ /**
16
+ * @title: 通过订单id获取交易组
17
+ * @description:
18
+ * @param {string} orderId
19
+ * @return {*}
20
+ * @Author: zhiwei.Wang
21
+ * @Date: 2024-08-16 10:40
22
+ */
23
+ export declare const getPayGroupFromStorage: (orderId: string) => PayGroup | null;
24
+ /**
25
+ * @title: 删除交易组
26
+ * @description:
27
+ * @param {string} orderId
28
+ * @return {*}
29
+ * @Author: zhiwei.Wang
30
+ * @Date: 2024-08-16 10:40
31
+ */
32
+ export declare const removePayGroupFromStorage: (orderId: string) => void;
33
+ /**
34
+ * @title: 获取交易组参数
35
+ * @description:
36
+ * @param {string} orderId
37
+ * @param {any} rest
38
+ * @return {*}
39
+ * @Author: zhiwei.Wang
40
+ * @Date: 2024-08-16 10:40
41
+ */
42
+ export declare const getPayGroupParamsFromStorage: (orderId: string, rest?: any) => any;
43
+ /**
44
+ * @title: 通过订单id设置交易号
45
+ * @description: 合并 pay_number 后调用 `/h5/core/stash` 最多 3 次;无论 stash 成败均写入 localStorage
46
+ * @param {string} orderId
47
+ * @param {string} payNumber
48
+ * @param {string} [token] 引擎 utils.token.get(),写入 stash 的 data.token
49
+ * @Author: zhiwei.Wang
50
+ * @Date: 2024-08-16 10:41
51
+ */
52
+ export declare const setPayNumber: (orderId: string, payNumber: string, token?: string) => Promise<void>;
53
+ /**
54
+ * @title: 清除服务端暂存
55
+ * @description:
56
+ * @param {string} orderId
57
+ * @return {*}
58
+ */
59
+ export declare const clearStashPayGroup: (orderId: string) => Promise<void>;
@@ -0,0 +1,87 @@
1
+ export declare const getPaymentList: (values: any) => Promise<{
2
+ message: string;
3
+ status: string;
4
+ paymentList?: undefined;
5
+ } | {
6
+ message: string;
7
+ status: string;
8
+ paymentList: any;
9
+ }>;
10
+ /**
11
+ * @title: 聚合接口, 根据订单 返回支付列表和钱包
12
+ * @description:
13
+ * @param {object} values
14
+ * @return {*}
15
+ * @Author: zhiwei.Wang
16
+ * @Date: 2024-08-15 11:52
17
+ */
18
+ export declare const getPaymentsAndWalletPass: (values: {
19
+ order_id: string;
20
+ total_amount: number;
21
+ sale_channel: string;
22
+ }) => Promise<any>;
23
+ /**
24
+ * @title: 初始化交易组
25
+ * @description:
26
+ * @param {object} values
27
+ * @return {*}
28
+ * @Author: zhiwei.Wang
29
+ * @Date: 2024-08-16 10:42
30
+ */
31
+ export declare const getPaymentInit: (values: {
32
+ order_id?: string;
33
+ amount?: number;
34
+ }) => Promise<any>;
35
+ /**
36
+ * @title: 获取钱包名称和弹窗状态
37
+ * @description:
38
+ * @param {object} values
39
+ * @return {*}
40
+ * @Author: shengjie.zuo
41
+ * @member: 马天宇
42
+ * @Date: 2025-02-21 10:42
43
+ */
44
+ export declare const getWalletNameAndPopupStatus: (values: {
45
+ setting_type?: string;
46
+ }) => Promise<{
47
+ wallet: {
48
+ name?: {
49
+ en: string;
50
+ 'zh-CN': string;
51
+ 'zh-HK': string;
52
+ 'ja': string;
53
+ 'pt': string;
54
+ };
55
+ };
56
+ wallet_setting: {
57
+ popup_status?: 1 | 0;
58
+ };
59
+ }>;
60
+ /**
61
+ * @title: 获取支付结果
62
+ * @description: 获取支付结果
63
+ */
64
+ export declare const getPaymentResult: (values: any) => Promise<any>;
65
+ /**
66
+ * @title: 检测订单是否有正在处理中的交易
67
+ * @param {object} values - { order_id: string }
68
+ * @return {Promise<{ has_pending: boolean }>}
69
+ */
70
+ export declare const checkPendingPayment: (values: {
71
+ order_id: string;
72
+ }) => Promise<{
73
+ has_pending: boolean;
74
+ }>;
75
+ /** `/h5/core/stash` 请求体 */
76
+ export interface CoreStashParams {
77
+ /** 缓存 key,由前端生成 */
78
+ token: string;
79
+ /** 暂存数据,如完整 PayGroup */
80
+ data: unknown;
81
+ /** 生命周期(秒),默认 86400(1 天) */
82
+ ttl?: number;
83
+ }
84
+ /**
85
+ * 调用服务端暂存接口,写入 payGroup 等数据。
86
+ */
87
+ export declare const postCoreStash: (params: CoreStashParams) => Promise<void>;
@@ -0,0 +1,65 @@
1
+ import { PayGroup } from "./model";
2
+ import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
3
+ /**
4
+ * 计算walletPass列表数据的总金额
5
+ * @param list
6
+ */
7
+ export declare const calcWalletPassListAmount: (list: any[]) => any;
8
+ /**
9
+ * 将walletPass列表数据转换为prepare_payments需要的数据格式
10
+ * @param list
11
+ */
12
+ export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
13
+ voucher_id: any;
14
+ amount: number;
15
+ tag: any;
16
+ }[];
17
+ /**
18
+ * walletPass支付params
19
+ * @param payGroup
20
+ */
21
+ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
22
+ order_id: string;
23
+ payment_group_id: number;
24
+ payments: {
25
+ amount: string;
26
+ wallet_pass_use_value: any;
27
+ voucher_id: any;
28
+ tag: any;
29
+ wallet_pass_usage_unit: any;
30
+ metadata: {
31
+ unique_payment_number: any;
32
+ };
33
+ }[];
34
+ };
35
+ /**
36
+ * @title: 获取是否walletPass和三方支付的组合支付
37
+ * @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
38
+ * @return: *
39
+ * @Author: shengjie.zuo
40
+ * @Date: 2024-08-30 10:06:17
41
+ */
42
+ export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
43
+ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
44
+ /**
45
+ * @title: 获取当前连锁加盟店铺shopid
46
+ * @description:
47
+ * @param {any} param1
48
+ * @return {*}
49
+ * @Author: chensheng.gu
50
+ * @Date: 2024-08-07 10:04
51
+ */
52
+ export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
53
+ export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
54
+ export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
55
+ export declare const clientPayment: (params: {
56
+ order_id: number;
57
+ type: "aliPay" | "wxPay" | 'google_pay';
58
+ values: any;
59
+ interaction?: any;
60
+ }) => void;
61
+ /**
62
+ * 获取唯一幂等token
63
+ * @returns
64
+ */
65
+ export declare const getUniqueIdempotencyToken: () => string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface CustomerListProps {
4
3
  value: any;
@@ -0,0 +1,78 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.satisfy_any_condition': string;
4
+ 'pisell2.text.add': string;
5
+ 'pisell2.text.and': string;
6
+ 'pisell2.text.or': string;
7
+ 'pisell2.text.all': string;
8
+ 'pisell2.text.rule-setting.Contain': string;
9
+ 'pisell2.text.rule-setting.Exclude': string;
10
+ 'pisell2.text.rule-setting.order_type': string;
11
+ 'pisell2.text.rule-setting.sales_channel': string;
12
+ 'pisell2.text.rule-setting.staff': string;
13
+ 'pisell2.text.rule-setting.payment_method': string;
14
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
15
+ 'pisell2.text.rule-setting.current_device': string;
16
+ };
17
+ 'zh-CN': {
18
+ 'pisell2.text.satisfy_any_condition': string;
19
+ 'pisell2.text.and': string;
20
+ 'pisell2.text.or': string;
21
+ 'pisell2.text.all': string;
22
+ 'pisell2.text.add': string;
23
+ 'pisell2.text.rule-setting.Contain': string;
24
+ 'pisell2.text.rule-setting.Exclude': string;
25
+ 'pisell2.text.rule-setting.order_type': string;
26
+ 'pisell2.text.rule-setting.sales_channel': string;
27
+ 'pisell2.text.rule-setting.staff': string;
28
+ 'pisell2.text.rule-setting.payment_method': string;
29
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
30
+ 'pisell2.text.rule-setting.current_device': string;
31
+ };
32
+ 'zh-HK': {
33
+ 'pisell2.text.satisfy_any_condition': string;
34
+ 'pisell2.text.and': string;
35
+ 'pisell2.text.or': string;
36
+ 'pisell2.text.all': string;
37
+ 'pisell2.text.add': string;
38
+ 'pisell2.text.rule-setting.Contain': string;
39
+ 'pisell2.text.rule-setting.Exclude': string;
40
+ 'pisell2.text.rule-setting.order_type': string;
41
+ 'pisell2.text.rule-setting.sales_channel': string;
42
+ 'pisell2.text.rule-setting.staff': string;
43
+ 'pisell2.text.rule-setting.payment_method': string;
44
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
45
+ 'pisell2.text.rule-setting.current_device': string;
46
+ };
47
+ ja: {
48
+ 'pisell2.text.satisfy_any_condition': string;
49
+ 'pisell2.text.add': string;
50
+ 'pisell2.text.and': string;
51
+ 'pisell2.text.or': string;
52
+ 'pisell2.text.all': string;
53
+ 'pisell2.text.rule-setting.Contain': string;
54
+ 'pisell2.text.rule-setting.Exclude': string;
55
+ 'pisell2.text.rule-setting.order_type': string;
56
+ 'pisell2.text.rule-setting.sales_channel': string;
57
+ 'pisell2.text.rule-setting.staff': string;
58
+ 'pisell2.text.rule-setting.payment_method': string;
59
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
60
+ 'pisell2.text.rule-setting.current_device': string;
61
+ };
62
+ pt: {
63
+ 'pisell2.text.satisfy_any_condition': string;
64
+ 'pisell2.text.add': string;
65
+ 'pisell2.text.and': string;
66
+ 'pisell2.text.or': string;
67
+ 'pisell2.text.all': string;
68
+ 'pisell2.text.rule-setting.Contain': string;
69
+ 'pisell2.text.rule-setting.Exclude': string;
70
+ 'pisell2.text.rule-setting.order_type': string;
71
+ 'pisell2.text.rule-setting.sales_channel': string;
72
+ 'pisell2.text.rule-setting.staff': string;
73
+ 'pisell2.text.rule-setting.payment_method': string;
74
+ 'pisell2.text.rule-setting.pisell_terminal_device': string;
75
+ 'pisell2.text.rule-setting.current_device': string;
76
+ };
77
+ };
78
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CartProps {
4
+ open: boolean;
5
+ onCancel: () => void;
6
+ onNext: () => void;
7
+ items: any[];
8
+ summary: Record<string, any>;
9
+ embedded?: boolean;
10
+ confirmLoading?: boolean;
11
+ extraContent?: React.ReactNode;
12
+ /** 视觉禁用:按钮仍会触发 onNext,由父级自行拦截(用于弹 toast 等反馈) */
13
+ disabled?: boolean;
14
+ }
15
+ export default function Cart(props: CartProps): JSX.Element | null;
16
+ export {};
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ interface FooterProps {
4
+ cartItems: any[];
5
+ summary: Record<string, any>;
6
+ actionText: string;
7
+ onAction: () => void;
8
+ /** 视觉禁用:按钮仍会触发 onAction,由父级自行拦截(用于弹 toast 等反馈) */
9
+ disabled?: boolean;
10
+ }
11
+ export default function Footer(props: FooterProps): JSX.Element;
12
+ export {};
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ interface MenuProps {
3
+ onCheckout: () => void;
4
+ /**
5
+ * 商品列表(由上层 ReadyState 持有,配合 onEnsureProductList 做幂等拉取与持久化:
6
+ * 切 step 回到 product 时 Menu 会 remount,但 productList 在 ReadyState 不会丢)
7
+ */
8
+ productList: any[];
9
+ /**
10
+ * 幂等触发商品列表拉取。Menu mount 时调用:
11
+ * - 首次:真发请求
12
+ * - 后续(如从 check 返回 product):命中缓存,直接短路,不重复发请求
13
+ */
14
+ isProductListLoading: boolean;
15
+ onEnsureProductList: () => Promise<void>;
16
+ }
17
+ export default function Menu(props: MenuProps): JSX.Element;
18
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ScanOrderContextValue, ScanOrderProviderProps } from './types';
3
+ export declare function ScanOrderProvider({ entryContext, children, }: ScanOrderProviderProps): JSX.Element;
4
+ export declare function useScanOrderContext(): ScanOrderContextValue;
@@ -72,14 +72,18 @@ export function ScanOrderProvider(_ref) {
72
72
  _useState18 = _slicedToArray(_useState17, 2),
73
73
  submitDisabledTips = _useState18[0],
74
74
  setSubmitDisabledTips = _useState18[1];
75
- var _useState19 = useState(false),
75
+ var _useState19 = useState([]),
76
76
  _useState20 = _slicedToArray(_useState19, 2),
77
- isCacheHydrated = _useState20[0],
78
- setIsCacheHydrated = _useState20[1];
79
- var _useState21 = useState(null),
77
+ discountList = _useState20[0],
78
+ setDiscountList = _useState20[1];
79
+ var _useState21 = useState(false),
80
80
  _useState22 = _slicedToArray(_useState21, 2),
81
- resumeStep = _useState22[0],
82
- setResumeStep = _useState22[1];
81
+ isCacheHydrated = _useState22[0],
82
+ setIsCacheHydrated = _useState22[1];
83
+ var _useState23 = useState(null),
84
+ _useState24 = _slicedToArray(_useState23, 2),
85
+ resumeStep = _useState24[0],
86
+ setResumeStep = _useState24[1];
83
87
  var hydratedRef = useRef(false);
84
88
  var stepList = _toConsumableArray(SCAN_ORDER_STEPS);
85
89
 
@@ -124,7 +128,10 @@ export function ScanOrderProvider(_ref) {
124
128
  console.warn('[scanOrder] getSummary failed during refreshViewModel', _context.t0);
125
129
  case 9:
126
130
  setViewModel(createScanOrderViewModel(scanOrderModule));
127
- case 10:
131
+ if (scanOrderModule && typeof scanOrderModule.getDiscountList === 'function') {
132
+ setDiscountList(scanOrderModule.getDiscountList() || []);
133
+ }
134
+ case 11:
128
135
  case "end":
129
136
  return _context.stop();
130
137
  }
@@ -403,6 +410,7 @@ export function ScanOrderProvider(_ref) {
403
410
  tableName: tableName,
404
411
  entryMode: entryMode,
405
412
  submitDisabledTips: submitDisabledTips,
413
+ discountList: discountList,
406
414
  isReady: !isLoading && !errorMessage,
407
415
  setCurrentStep: setCurrentStep,
408
416
  goToStep: goToStep,
@@ -422,7 +430,7 @@ export function ScanOrderProvider(_ref) {
422
430
  resumeStep: resumeStep,
423
431
  consumeResumeStep: consumeResumeStep
424
432
  };
425
- }, [entryContext, scanOrderModule, cartValidation, isLoading, errorMessage, currentStep, stepList, viewModel, footerActionText, tableName, entryMode, submitDisabledTips, isCacheHydrated, markGate, isGatePassed, clearStepCache, resumeStep, consumeResumeStep]);
433
+ }, [entryContext, scanOrderModule, cartValidation, isLoading, errorMessage, currentStep, stepList, viewModel, footerActionText, tableName, entryMode, submitDisabledTips, discountList, isCacheHydrated, markGate, isGatePassed, clearStepCache, resumeStep, consumeResumeStep]);
426
434
  return /*#__PURE__*/React.createElement(ScanOrderContext.Provider, {
427
435
  value: value
428
436
  }, children);
@@ -0,0 +1,79 @@
1
+ import React from 'react';
2
+ export interface ScanOrderEntryContext {
3
+ biz: string;
4
+ resource_id?: string;
5
+ order_id?: string;
6
+ }
7
+ export interface ScanOrderProps {
8
+ biz?: string;
9
+ resource_id?: string;
10
+ order_id?: string;
11
+ entryContext?: ScanOrderEntryContext;
12
+ }
13
+ export declare type ScanOrderStepKey = 'init' | 'product' | 'check' | 'error';
14
+ export declare type ScanOrderEntryMode = 'default' | 'additional_order';
15
+ /** 步骤缓存中记录的 gate 标记(对应协议 / 表单 / 人数 modal 是否已走过) */
16
+ export declare type ScanOrderGateKey = 'policyAccepted' | 'formSubmitted' | 'paxEntered';
17
+ /** 存入 sessionStorage 桶内的 entryContext 快照(用于校验是否同一扫码场景) */
18
+ export interface ScanOrderCachedEntryContext {
19
+ resourceId?: string;
20
+ hasOrderId?: boolean;
21
+ biz?: string;
22
+ }
23
+ export interface ScanOrderViewModel {
24
+ menuItems: any[];
25
+ cartItems: any[];
26
+ summary: Record<string, any>;
27
+ note: string;
28
+ }
29
+ export interface ScanOrderContextValue {
30
+ entryContext: ScanOrderEntryContext;
31
+ scanOrderModule: any;
32
+ cartValidation: {
33
+ passed: boolean | null;
34
+ failures: any[];
35
+ };
36
+ isLoading: boolean;
37
+ errorMessage: string;
38
+ currentStep: ScanOrderStepKey;
39
+ stepList: ScanOrderStepKey[];
40
+ viewModel: ScanOrderViewModel;
41
+ footerActionText: string;
42
+ tableName: string;
43
+ entryMode: ScanOrderEntryMode;
44
+ submitDisabledTips: string;
45
+ /** 折扣/优惠券列表(来自 scanOrder 模块 getDiscountList) */
46
+ discountList: any[];
47
+ isReady: boolean;
48
+ setCurrentStep: (step: ScanOrderStepKey) => void;
49
+ setTableName: (name: string) => void;
50
+ setEntryMode: (mode: ScanOrderEntryMode) => void;
51
+ setSubmitDisabledTips: (tips: string) => void;
52
+ goToStep: (step: ScanOrderStepKey) => void;
53
+ nextStep: () => void;
54
+ prevStep: () => void;
55
+ refreshViewModel: () => Promise<void>;
56
+ runModuleAction: (actionName: string, ...args: any[]) => Promise<any>;
57
+ setFooterActionText: (text: string) => void;
58
+ updateOrderNote: (note: string) => Promise<void>;
59
+ /** 步骤缓存 hydrate 是否已完成(未完成时不建议写入 step,避免覆盖缓存) */
60
+ isCacheHydrated: boolean;
61
+ /** 将 gate 标记为已完成(写入 sessionStorage 桶) */
62
+ markGate: (flag: ScanOrderGateKey) => void;
63
+ /** 查询某个 gate 是否已完成 */
64
+ isGatePassed: (flag: ScanOrderGateKey) => boolean;
65
+ /** 整桶清空(提交成功 / restoreOrder 等场景) */
66
+ clearStepCache: () => void;
67
+ /**
68
+ * bootstrap 结束后要恢复到的目标 step(仅记录 `'product' | 'check'`)。
69
+ * hydrate 阶段不直接 `setCurrentStep`,避免在 checkResourceAvailable 之前让
70
+ * `<Menu>` / `<Check>` mount、提前发出缺 menu_list_ids 的请求。
71
+ */
72
+ resumeStep: ScanOrderStepKey | null;
73
+ /** 消费并清空 resumeStep;建议在完成 goToStep 后立刻调用 */
74
+ consumeResumeStep: () => void;
75
+ }
76
+ export interface ScanOrderProviderProps {
77
+ entryContext: ScanOrderEntryContext;
78
+ children: React.ReactNode;
79
+ }
@@ -0,0 +1,21 @@
1
+ interface ScanOrderOrderProduct {
2
+ product_id: number | null;
3
+ product_variant_id: number;
4
+ num?: number;
5
+ /** 券后单品单价(订单域成交单价)。 */
6
+ selling_price?: string | number;
7
+ /** 券前单品单价(店铺售价)。 */
8
+ original_price?: string | number;
9
+ product_option_item?: any[];
10
+ product_bundle?: any[];
11
+ identity_key?: string;
12
+ note?: string;
13
+ metadata?: Record<string, any>;
14
+ _origin?: Record<string, any>;
15
+ [key: string]: any;
16
+ }
17
+ export declare function toShoppingCartProducts(params: {
18
+ orderProducts: ScanOrderOrderProduct[];
19
+ amountSymbol?: string;
20
+ }): Record<string, any>[];
21
+ export {};
@@ -0,0 +1,59 @@
1
+ export interface ProductDetailOptionItem {
2
+ product_option_item_id?: number | string;
3
+ option_group_item_id?: number | string;
4
+ option_group_id?: number | string;
5
+ num?: number;
6
+ price?: number | string;
7
+ }
8
+ export interface ProductDetailBundleItem {
9
+ option?: ProductDetailOptionItem[];
10
+ [key: string]: any;
11
+ }
12
+ export interface ProductDetailCallbackPayload {
13
+ id?: number | string | null;
14
+ product_id?: number | string | null;
15
+ variant_id?: number | string;
16
+ product_variant_id?: number | string;
17
+ quantity?: number;
18
+ num?: number;
19
+ option?: ProductDetailOptionItem[];
20
+ product_option_item?: ProductDetailOptionItem[];
21
+ bundle?: ProductDetailBundleItem[];
22
+ product_bundle?: ProductDetailBundleItem[];
23
+ unique?: string;
24
+ session?: any;
25
+ form?: any;
26
+ service_times?: number;
27
+ machine_code?: string;
28
+ schedule_id?: number[];
29
+ duration?: number;
30
+ policy_id?: number;
31
+ source_shop_id?: number;
32
+ origin?: any;
33
+ [key: string]: any;
34
+ }
35
+ export interface ScanOrderOrderProductInput {
36
+ product_id: number | null;
37
+ product_variant_id: number;
38
+ num: number;
39
+ product_option_item: Array<{
40
+ product_option_item_id: number;
41
+ option_group_id: number;
42
+ num: number;
43
+ price: number;
44
+ }>;
45
+ product_bundle: ProductDetailBundleItem[];
46
+ /** 券后单品单价;初次加购由入口置为 selling_price,之后由 SDK Rules 引擎维护。 */
47
+ selling_price: string;
48
+ /** 券前单品单价(店铺售价)。 */
49
+ original_price: string;
50
+ tax_fee: string;
51
+ is_charge_tax: number;
52
+ metadata: Record<string, any>;
53
+ _origin: Record<string, any>;
54
+ }
55
+ export declare function transformProductDetailToOrderProduct(params: {
56
+ payload: ProductDetailCallbackPayload;
57
+ fallbackProductId?: number | string | null;
58
+ sourceItem?: Record<string, any>;
59
+ }): ScanOrderOrderProductInput | null;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
3
2
  export default useAddService;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (key?: number | undefined) => JSX.Element;
3
2
  export default useClearCart;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { GroupModalProps } from '../types';
3
+ declare const GroupModal: React.FC<GroupModalProps>;
4
+ export default GroupModal;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ItemModalProps } from '../types';
3
+ declare const ItemModal: React.FC<ItemModalProps>;
4
+ export default ItemModal;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { RegistryProps } from './types';
3
+ import './index.less';
4
+ declare const Registry: React.FC<RegistryProps>;
5
+ export default Registry;