@pisell/private-materials 6.3.71 → 6.3.72

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 (271) 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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +6 -6
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Cart/index.js +20 -3
  13. package/es/components/Sales/Cart/utils.d.ts +68 -0
  14. package/es/components/Sales/Cart/utils.js +16 -0
  15. package/es/components/Sales/Summary/utils.d.ts +51 -0
  16. package/es/components/Sales/Summary/utils.js +5 -4
  17. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/locales.d.ts +363 -0
  20. package/es/components/booking/components/tabPane/index.d.ts +4 -0
  21. package/es/components/booking/dashboard/serve.d.ts +1 -0
  22. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  23. package/es/components/booking/forms/serve.d.ts +18 -0
  24. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  25. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  26. package/es/components/booking/info/client/serve.d.ts +2 -0
  27. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  28. package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  29. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  30. package/es/components/booking/info/index.d.ts +0 -1
  31. package/es/components/booking/info/pet/serve.d.ts +1 -0
  32. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  33. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  34. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  35. package/es/components/booking/info/service/serve.d.ts +20 -0
  36. package/es/components/booking/info/service2/utils.d.ts +1 -1
  37. package/es/components/booking/info2/serve.d.ts +6 -0
  38. package/es/components/booking/locales.d.ts +843 -0
  39. package/es/components/booking/utils.d.ts +2 -2
  40. package/es/components/eftposPay/const.d.ts +184 -0
  41. package/es/components/eftposPay/hooks.d.ts +1 -1
  42. package/es/components/eftposPay/locales.d.ts +330 -0
  43. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  44. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  45. package/es/components/eftposPay/store/index.d.ts +4 -4
  46. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  47. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  48. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  49. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  50. package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  51. package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
  52. package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
  53. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  54. package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
  55. package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  56. package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
  57. package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
  58. package/es/components/eventBooking/components/Voucher/index.js +266 -0
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  62. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  63. package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  66. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  69. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  70. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  71. package/es/components/pay/toC/locales.d.ts +307 -0
  72. package/es/components/pay/toC/status.d.ts +13 -0
  73. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  74. package/es/components/ruleSetting/locales.d.ts +48 -0
  75. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  76. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  77. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  78. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  79. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  80. package/es/components/shoppingCart/locales.d.ts +33 -0
  81. package/es/components/shoppingCart/type.d.ts +48 -0
  82. package/es/components/subTotal/locales.d.ts +42 -0
  83. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  84. package/es/components/systemSettings/registry/services.d.ts +77 -0
  85. package/es/components/systemSettings/registry/types.d.ts +126 -0
  86. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  87. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  88. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  89. package/es/components/ticketBooking/locales.d.ts +174 -0
  90. package/es/components/wallet/utils.d.ts +48 -0
  91. package/es/components/walletList/locales.d.ts +27 -0
  92. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  93. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  94. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  95. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  96. package/es/hooks/useEngineContext.d.ts +10 -0
  97. package/es/hooks/useWindowSize.d.ts +5 -0
  98. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  99. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  100. package/es/plus/selectHolder/locales.d.ts +21 -0
  101. package/es/plus/selectHolder/types.d.ts +104 -0
  102. package/es/plus/selectHolder/utils.d.ts +9 -0
  103. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
  104. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  105. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  106. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  107. package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  108. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  109. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  110. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  111. package/es/plus/walletEditor/locales.d.ts +135 -0
  112. package/es/plus/walletPassGallery/components/passDetail/index.js +6 -5
  113. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  114. package/es/plus/walletPassGallery/components/timelineSection/index.js +9 -3
  115. package/es/plus/walletPassGallery/locales.d.ts +285 -0
  116. package/es/plus/walletPassGallery/serve.d.ts +8 -0
  117. package/es/plus/walletPassGallery/serve.js +78 -52
  118. package/es/plus/walletPassGallery/utils.d.ts +48 -0
  119. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  120. package/es/pro/NumericStepper/index.d.ts +43 -0
  121. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  122. package/es/pro/Selector/Item.d.ts +14 -0
  123. package/es/pro/Selector/Selector.d.ts +1 -1
  124. package/es/pro/Selector/Selector.stories.d.ts +78 -0
  125. package/es/pro/Selector/components/Card/index.d.ts +57 -0
  126. package/es/pro/Selector/components/Card/types.d.ts +1 -0
  127. package/es/pro/Selector/components/Indicator/index.d.ts +19 -0
  128. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  129. package/es/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
  130. package/es/pro/Selector/components/Media/index.d.ts +6 -0
  131. package/es/pro/Selector/components/Media/types.d.ts +47 -0
  132. package/es/pro/Selector/components/index.d.ts +4 -0
  133. package/es/pro/Selector/demo.d.ts +2 -0
  134. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  135. package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  136. package/es/pro/Selector/index.d.ts +11 -0
  137. package/es/pro/Selector/locales.d.ts +36 -0
  138. package/es/pro/Selector/types.d.ts +173 -0
  139. package/es/pro/Selector/utils/index.d.ts +49 -0
  140. package/es/test/setup.d.ts +1 -0
  141. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  142. package/lib/components/Sales/Cart/index.js +25 -7
  143. package/lib/components/Sales/Cart/utils.d.ts +68 -0
  144. package/lib/components/Sales/Cart/utils.js +13 -1
  145. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  146. package/lib/components/Sales/Summary/utils.js +2 -4
  147. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  148. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  149. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  150. package/lib/components/booking/components/tabPane/index.d.ts +4 -0
  151. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  152. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  153. package/lib/components/booking/forms/serve.d.ts +18 -0
  154. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  155. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  156. package/lib/components/booking/info/client/serve.d.ts +2 -0
  157. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  158. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  159. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  160. package/lib/components/booking/info/index.d.ts +0 -1
  161. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  162. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  163. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  164. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  165. package/lib/components/booking/info/service/serve.d.ts +20 -0
  166. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  167. package/lib/components/booking/info2/serve.d.ts +6 -0
  168. package/lib/components/booking/locales.d.ts +843 -0
  169. package/lib/components/booking/utils.d.ts +2 -2
  170. package/lib/components/eftposPay/const.d.ts +184 -0
  171. package/lib/components/eftposPay/hooks.d.ts +1 -1
  172. package/lib/components/eftposPay/locales.d.ts +330 -0
  173. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  174. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  175. package/lib/components/eftposPay/store/index.d.ts +4 -4
  176. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  177. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  178. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  179. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  180. package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  181. package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
  182. package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
  183. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  184. package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
  185. package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  186. package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
  187. package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
  188. package/lib/components/eventBooking/components/Voucher/index.js +197 -0
  189. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  190. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  191. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  192. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  193. package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
  194. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  195. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  196. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  197. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
  198. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  199. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  200. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  201. package/lib/components/pay/toC/locales.d.ts +307 -0
  202. package/lib/components/pay/toC/status.d.ts +13 -0
  203. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  204. package/lib/components/ruleSetting/locales.d.ts +48 -0
  205. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  206. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  207. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  208. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  209. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  210. package/lib/components/shoppingCart/locales.d.ts +33 -0
  211. package/lib/components/shoppingCart/type.d.ts +48 -0
  212. package/lib/components/subTotal/locales.d.ts +42 -0
  213. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  214. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  215. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  216. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  217. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  218. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  219. package/lib/components/ticketBooking/locales.d.ts +174 -0
  220. package/lib/components/wallet/utils.d.ts +48 -0
  221. package/lib/components/walletList/locales.d.ts +27 -0
  222. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  223. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  224. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  225. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  226. package/lib/hooks/useEngineContext.d.ts +10 -0
  227. package/lib/hooks/useWindowSize.d.ts +5 -0
  228. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  229. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  230. package/lib/plus/selectHolder/locales.d.ts +21 -0
  231. package/lib/plus/selectHolder/types.d.ts +104 -0
  232. package/lib/plus/selectHolder/utils.d.ts +9 -0
  233. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
  234. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  235. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  236. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  237. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  238. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  239. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  240. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  241. package/lib/plus/walletEditor/locales.d.ts +135 -0
  242. package/lib/plus/walletPassGallery/components/passDetail/index.js +24 -6
  243. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  244. package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -10
  245. package/lib/plus/walletPassGallery/locales.d.ts +285 -0
  246. package/lib/plus/walletPassGallery/serve.d.ts +8 -0
  247. package/lib/plus/walletPassGallery/serve.js +23 -10
  248. package/lib/plus/walletPassGallery/utils.d.ts +48 -0
  249. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  250. package/lib/pro/NumericStepper/index.d.ts +43 -0
  251. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  252. package/lib/pro/Selector/Item.d.ts +14 -0
  253. package/lib/pro/Selector/Selector.d.ts +1 -1
  254. package/lib/pro/Selector/Selector.stories.d.ts +78 -0
  255. package/lib/pro/Selector/components/Card/index.d.ts +57 -0
  256. package/lib/pro/Selector/components/Card/types.d.ts +1 -0
  257. package/lib/pro/Selector/components/Indicator/index.d.ts +19 -0
  258. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  259. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
  260. package/lib/pro/Selector/components/Media/index.d.ts +6 -0
  261. package/lib/pro/Selector/components/Media/types.d.ts +47 -0
  262. package/lib/pro/Selector/components/index.d.ts +4 -0
  263. package/lib/pro/Selector/demo.d.ts +2 -0
  264. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  265. package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  266. package/lib/pro/Selector/index.d.ts +11 -0
  267. package/lib/pro/Selector/locales.d.ts +36 -0
  268. package/lib/pro/Selector/types.d.ts +173 -0
  269. package/lib/pro/Selector/utils/index.d.ts +49 -0
  270. package/lib/test/setup.d.ts +1 -0
  271. package/package.json +4 -4
@@ -56,7 +56,7 @@ var PassDetail = function PassDetail(props) {
56
56
  },
57
57
  store = _ref.store;
58
58
  var _ref2 = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants) || {
59
- apiPrefix: "/h5"
59
+ apiPrefix: '/h5'
60
60
  },
61
61
  apiPrefix = _ref2.apiPrefix;
62
62
  var timezone = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.symbol) === null || _store$getState === void 0 || (_store$getState = _store$getState.shop) === null || _store$getState === void 0 ? void 0 : _store$getState.timezone) || 'Asia/Shanghai';
@@ -142,9 +142,9 @@ var PassDetail = function PassDetail(props) {
142
142
  var expireText = expire_date ? expire_date : locales.getText('wallet-pass-gallery.expireDate');
143
143
  if (scheduleList.length > 0) {
144
144
  // 换行展示
145
- var validityTexts = "";
146
- var excludedText = "";
147
- var includedText = "";
145
+ var validityTexts = '';
146
+ var excludedText = '';
147
+ var includedText = '';
148
148
  detail.forEach(function (item) {
149
149
  if (item.validityTexts.length > 0) {
150
150
  validityTexts = "".concat(validityTexts).concat(item.validityTexts.join('\n'), "\n");
@@ -246,7 +246,8 @@ var PassDetail = function PassDetail(props) {
246
246
  return /*#__PURE__*/React.createElement(TimelineSection, {
247
247
  code: code,
248
248
  tag: tag,
249
- timezone: timezone
249
+ timezone: timezone,
250
+ apiPrefix: apiPrefix
250
251
  });
251
252
  };
252
253
  if (!props.dataSource) return null;
@@ -3,6 +3,7 @@ interface TimelineSectionProps {
3
3
  code: string;
4
4
  tag: string;
5
5
  timezone: string;
6
+ apiPrefix?: '/shop' | '/h5';
6
7
  }
7
8
  declare const TimelineSection: (props: TimelineSectionProps) => JSX.Element;
8
9
  export default TimelineSection;
@@ -11,7 +11,7 @@ import timezonePlugin from 'dayjs/plugin/timezone';
11
11
  import utcPlugin from 'dayjs/plugin/utc';
12
12
  import { locales } from '@pisell/utils';
13
13
  import { Timeline, Skeleton, PisellEmpty, usePisellConfig, PisellModal, PisellStatisticList, Button } from '@pisell/materials';
14
- import { getAssetList } from "../../serve";
14
+ import { getAssetList, getActiveLogs } from "../../serve";
15
15
  import "./index.less";
16
16
  dayjs.extend(timezonePlugin);
17
17
  dayjs.extend(utcPlugin);
@@ -19,7 +19,8 @@ var stateTimeUnix = 1723255863; // 2024.8.10 时间戳
19
19
  var TimelineSection = function TimelineSection(props) {
20
20
  var code = props.code,
21
21
  tag = props.tag,
22
- timezone = props.timezone;
22
+ timezone = props.timezone,
23
+ apiPrefix = props.apiPrefix;
23
24
  var _usePisellConfig = usePisellConfig(),
24
25
  _usePisellConfig$symb = _usePisellConfig.symbol,
25
26
  symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
@@ -87,6 +88,11 @@ var TimelineSection = function TimelineSection(props) {
87
88
  }, amount && currency_symbol ? formatCurrencyAmount(amount, action === 'order_expend') : ''));
88
89
  }, [assetActionEnum, formatCurrencyAmount]);
89
90
  var assetListReq = useRequest(function () {
91
+ if (apiPrefix === '/shop') {
92
+ return getActiveLogs({
93
+ filter_card_id: code
94
+ });
95
+ }
90
96
  return getAssetList({
91
97
  num: '99',
92
98
  skip: '1',
@@ -165,7 +171,7 @@ var TimelineSection = function TimelineSection(props) {
165
171
  label: locales.getText('wallet-pass-gallery.viewOrder'),
166
172
  value: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_code ? "#".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_code) : timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.transaction_id ? "#".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.transaction_id) : '',
167
173
  isLink: !!(timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id),
168
- link: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id ? "/order/details?id=".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id) : undefined
174
+ link: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id ? apiPrefix === '/shop' ? "/admin/order/orders/detail?id=".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id) : "/order/details?id=".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id) : undefined
169
175
  }],
170
176
  labelColor: "#101828",
171
177
  valueColor: "#101828",
@@ -0,0 +1,285 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'wallet-pass-gallery.rechargeableCard': string;
4
+ 'wallet-pass-gallery.voucher': string;
5
+ 'wallet-pass-gallery.pointCard': string;
6
+ 'wallet-pass-gallery.discountCard': string;
7
+ 'wallet-pass-gallery.unavailable': string;
8
+ 'wallet-pass-gallery.available': string;
9
+ 'wallet-pass-gallery.confirm': string;
10
+ 'wallet-pass-gallery.addModalTitle': string;
11
+ 'wallet-pass-gallery.searchDescribe': string;
12
+ 'wallet-pass-gallery.scanBarQrCode': string;
13
+ 'wallet-pass-gallery.enterCodes': string;
14
+ 'wallet-pass-gallery.add': string;
15
+ 'wallet-pass-gallery.rechargeOptions': string;
16
+ 'wallet-pass-gallery.recharge': string;
17
+ 'wallet-pass-gallery.wallet': string;
18
+ 'wallet-pass-gallery.details': string;
19
+ 'wallet-pass-gallery.goodPass.usedCredit': (credit: number) => string;
20
+ 'wallet-pass-gallery.cardBalance': string;
21
+ 'wallet-pass-gallery.voucherBalance': string;
22
+ 'wallet-pass-gallery.points': string;
23
+ 'wallet-pass-gallery.goodPass': string;
24
+ 'wallet-pass-gallery.cardName': string;
25
+ 'wallet-pass-gallery.carNumber': string;
26
+ 'wallet-pass-gallery.balance': string;
27
+ 'wallet-pass-gallery.discount': string;
28
+ 'wallet-pass-gallery.validDate': string;
29
+ 'wallet-pass-gallery.addSuccess': string;
30
+ 'wallet-pass-gallery.addError': string;
31
+ 'wallet-pass-gallery.searchNoFound': string;
32
+ 'wallet-pass-gallery.log.updateCurrentDetail': string;
33
+ 'wallet-pass-gallery.log.getDetailFailed': string;
34
+ 'wallet-pass-gallery.log.rechargeOrderFailed': string;
35
+ 'wallet-pass-gallery.log.getWalletListFailed': string;
36
+ 'wallet-pass-gallery.log.bindCustomerFailed': string;
37
+ 'wallet-pass-gallery.log.getUnbindListFailed': string;
38
+ 'wallet-pass-gallery.log.orderFailed': string;
39
+ 'wallet-pass-gallery.log.unexpectedResponseFormat': string;
40
+ 'wallet-pass-gallery.button.add': string;
41
+ 'wallet-pass-gallery.button.addToAppleWallet': string;
42
+ 'wallet-pass-gallery.button.addToGoogleWallet': string;
43
+ 'wallet-pass-gallery.button.recharge': string;
44
+ 'wallet-pass-gallery.error.addFailed': string;
45
+ 'wallet-pass-gallery.copyTitle': string;
46
+ 'wallet-pass-gallery.copyButton': string;
47
+ 'wallet-pass-gallery.copySuccess': string;
48
+ 'wallet-pass-gallery.detail': string;
49
+ 'wallet-pass-gallery.activelog': string;
50
+ 'wallet-pass-gallery.copyText': string;
51
+ 'wallet-pass-gallery.spendingDetails': string;
52
+ 'wallet-pass-gallery.rechargeDetails': string;
53
+ 'wallet-pass-gallery.date': string;
54
+ 'wallet-pass-gallery.spending': string;
55
+ 'wallet-pass-gallery.pointsEarned': string;
56
+ 'wallet-pass-gallery.pointsRedeemed': string;
57
+ 'wallet-pass-gallery.refund': string;
58
+ 'wallet-pass-gallery.expire': string;
59
+ 'wallet-pass-gallery.viewOrder': string;
60
+ 'wallet-pass-gallery.done': string;
61
+ 'wallet-pass-gallery.addIos': string;
62
+ 'wallet-pass-gallery.addGoogle': string;
63
+ 'wallet-pass-gallery.viewDetails': string;
64
+ 'wallet-pass-gallery.expireDate': string;
65
+ 'wallet-pass-gallery.urlEmpty': string;
66
+ 'wallet-pass-gallery.notIOS': string;
67
+ 'wallet-pass-gallery.useAppleInstead': string;
68
+ 'wallet-pass-gallery.openedInBrowser': string;
69
+ 'wallet-pass-gallery.openFailed': string;
70
+ 'wallet-pass-gallery.loading': string;
71
+ 'wallet-pass-gallery.usageRules': string;
72
+ 'wallet-pass-gallery.usageRulesSubtitle': string;
73
+ 'wallet-pass-gallery.timeUsageLimits': string;
74
+ 'wallet-pass-gallery.totalQuantityControl': string;
75
+ 'wallet-pass-gallery.dailyLimit': string;
76
+ 'wallet-pass-gallery.weeklyLimit': string;
77
+ 'wallet-pass-gallery.monthlyLimit': string;
78
+ 'wallet-pass-gallery.personalLimit': string;
79
+ 'wallet-pass-gallery.dailyLimitDesc': string;
80
+ 'wallet-pass-gallery.weeklyLimitDesc': string;
81
+ 'wallet-pass-gallery.monthlyLimitDesc': string;
82
+ 'wallet-pass-gallery.monthlyLimitUnlimited': string;
83
+ 'wallet-pass-gallery.personalLimitDesc': string;
84
+ 'wallet-pass-gallery.dailyReset': string;
85
+ 'wallet-pass-gallery.weeklyReset': string;
86
+ 'wallet-pass-gallery.monthlyReset': string;
87
+ 'wallet-pass-gallery.voucherExpireNote': string;
88
+ 'wallet-pass-gallery.viewMore': string;
89
+ 'wallet-pass-gallery.allLoaded': string;
90
+ 'page.wallet.tempHolderSelector.title': string;
91
+ 'page.wallet.tempHolderSelector.create': string;
92
+ 'page.wallet.tempHolderSelector.confirm': string;
93
+ 'page.wallet.notValidDate': string;
94
+ 'page.wallet.includedDate': string;
95
+ };
96
+ 'zh-CN': {
97
+ 'wallet-pass-gallery.rechargeableCard': string;
98
+ 'wallet-pass-gallery.voucher': string;
99
+ 'wallet-pass-gallery.pointCard': string;
100
+ 'wallet-pass-gallery.discountCard': string;
101
+ 'wallet-pass-gallery.unavailable': string;
102
+ 'wallet-pass-gallery.available': string;
103
+ 'wallet-pass-gallery.confirm': string;
104
+ 'wallet-pass-gallery.addModalTitle': string;
105
+ 'wallet-pass-gallery.searchDescribe': string;
106
+ 'wallet-pass-gallery.scanBarQrCode': string;
107
+ 'wallet-pass-gallery.enterCodes': string;
108
+ 'wallet-pass-gallery.add': string;
109
+ 'wallet-pass-gallery.rechargeOptions': string;
110
+ 'wallet-pass-gallery.recharge': string;
111
+ 'wallet-pass-gallery.wallet': string;
112
+ 'wallet-pass-gallery.details': string;
113
+ 'wallet-pass-gallery.goodPass.usedCredit': (credit: number) => string;
114
+ 'wallet-pass-gallery.cardBalance': string;
115
+ 'wallet-pass-gallery.voucherBalance': string;
116
+ 'wallet-pass-gallery.points': string;
117
+ 'wallet-pass-gallery.goodPass': string;
118
+ 'wallet-pass-gallery.cardName': string;
119
+ 'wallet-pass-gallery.carNumber': string;
120
+ 'wallet-pass-gallery.balance': string;
121
+ 'wallet-pass-gallery.discount': string;
122
+ 'wallet-pass-gallery.validDate': string;
123
+ 'wallet-pass-gallery.addSuccess': string;
124
+ 'wallet-pass-gallery.addError': string;
125
+ 'wallet-pass-gallery.searchNoFound': string;
126
+ 'wallet-pass-gallery.log.updateCurrentDetail': string;
127
+ 'wallet-pass-gallery.log.getDetailFailed': string;
128
+ 'wallet-pass-gallery.log.rechargeOrderFailed': string;
129
+ 'wallet-pass-gallery.log.getWalletListFailed': string;
130
+ 'wallet-pass-gallery.log.bindCustomerFailed': string;
131
+ 'wallet-pass-gallery.log.getUnbindListFailed': string;
132
+ 'wallet-pass-gallery.log.orderFailed': string;
133
+ 'wallet-pass-gallery.log.unexpectedResponseFormat': string;
134
+ 'wallet-pass-gallery.button.add': string;
135
+ 'wallet-pass-gallery.button.addToAppleWallet': string;
136
+ 'wallet-pass-gallery.button.addToGoogleWallet': string;
137
+ 'wallet-pass-gallery.button.recharge': string;
138
+ 'wallet-pass-gallery.error.addFailed': string;
139
+ 'wallet-pass-gallery.copyTitle': string;
140
+ 'wallet-pass-gallery.copyButton': string;
141
+ 'wallet-pass-gallery.copySuccess': string;
142
+ 'wallet-pass-gallery.detail': string;
143
+ 'wallet-pass-gallery.activelog': string;
144
+ 'wallet-pass-gallery.copyText': string;
145
+ 'wallet-pass-gallery.spendingDetails': string;
146
+ 'wallet-pass-gallery.rechargeDetails': string;
147
+ 'wallet-pass-gallery.date': string;
148
+ 'wallet-pass-gallery.spending': string;
149
+ 'wallet-pass-gallery.pointsEarned': string;
150
+ 'wallet-pass-gallery.pointsRedeemed': string;
151
+ 'wallet-pass-gallery.refund': string;
152
+ 'wallet-pass-gallery.expire': string;
153
+ 'wallet-pass-gallery.viewOrder': string;
154
+ 'wallet-pass-gallery.done': string;
155
+ 'wallet-pass-gallery.addIos': string;
156
+ 'wallet-pass-gallery.addGoogle': string;
157
+ 'wallet-pass-gallery.viewDetails': string;
158
+ 'wallet-pass-gallery.expireDate': string;
159
+ 'wallet-pass-gallery.urlEmpty': string;
160
+ 'wallet-pass-gallery.notIOS': string;
161
+ 'wallet-pass-gallery.useAppleInstead': string;
162
+ 'wallet-pass-gallery.openedInBrowser': string;
163
+ 'wallet-pass-gallery.openFailed': string;
164
+ 'wallet-pass-gallery.loading': string;
165
+ 'wallet-pass-gallery.usageRules': string;
166
+ 'wallet-pass-gallery.usageRulesSubtitle': string;
167
+ 'wallet-pass-gallery.timeUsageLimits': string;
168
+ 'wallet-pass-gallery.totalQuantityControl': string;
169
+ 'wallet-pass-gallery.dailyLimit': string;
170
+ 'wallet-pass-gallery.weeklyLimit': string;
171
+ 'wallet-pass-gallery.monthlyLimit': string;
172
+ 'wallet-pass-gallery.personalLimit': string;
173
+ 'wallet-pass-gallery.dailyLimitDesc': string;
174
+ 'wallet-pass-gallery.weeklyLimitDesc': string;
175
+ 'wallet-pass-gallery.monthlyLimitDesc': string;
176
+ 'wallet-pass-gallery.monthlyLimitUnlimited': string;
177
+ 'wallet-pass-gallery.personalLimitDesc': string;
178
+ 'wallet-pass-gallery.dailyReset': string;
179
+ 'wallet-pass-gallery.weeklyReset': string;
180
+ 'wallet-pass-gallery.monthlyReset': string;
181
+ 'wallet-pass-gallery.voucherExpireNote': string;
182
+ 'wallet-pass-gallery.viewMore': string;
183
+ 'wallet-pass-gallery.allLoaded': string;
184
+ 'page.wallet.tempHolderSelector.title': string;
185
+ 'page.wallet.tempHolderSelector.create': string;
186
+ 'page.wallet.tempHolderSelector.confirm': string;
187
+ 'page.wallet.notValidDate': string;
188
+ 'page.wallet.includedDate': string;
189
+ };
190
+ 'zh-HK': {
191
+ 'wallet-pass-gallery.rechargeableCard': string;
192
+ 'wallet-pass-gallery.voucher': string;
193
+ 'wallet-pass-gallery.pointCard': string;
194
+ 'wallet-pass-gallery.discountCard': string;
195
+ 'wallet-pass-gallery.unavailable': string;
196
+ 'wallet-pass-gallery.available': string;
197
+ 'wallet-pass-gallery.confirm': string;
198
+ 'wallet-pass-gallery.addModalTitle': string;
199
+ 'wallet-pass-gallery.searchDescribe': string;
200
+ 'wallet-pass-gallery.scanBarQrCode': string;
201
+ 'wallet-pass-gallery.enterCodes': string;
202
+ 'wallet-pass-gallery.add': string;
203
+ 'wallet-pass-gallery.rechargeOptions': string;
204
+ 'wallet-pass-gallery.recharge': string;
205
+ 'wallet-pass-gallery.wallet': string;
206
+ 'wallet-pass-gallery.details': string;
207
+ 'wallet-pass-gallery.goodPass.usedCredit': (credit: number) => string;
208
+ 'wallet-pass-gallery.cardBalance': string;
209
+ 'wallet-pass-gallery.voucherBalance': string;
210
+ 'wallet-pass-gallery.points': string;
211
+ 'wallet-pass-gallery.goodPass': string;
212
+ 'wallet-pass-gallery.cardName': string;
213
+ 'wallet-pass-gallery.carNumber': string;
214
+ 'wallet-pass-gallery.balance': string;
215
+ 'wallet-pass-gallery.discount': string;
216
+ 'wallet-pass-gallery.validDate': string;
217
+ 'wallet-pass-gallery.addSuccess': string;
218
+ 'wallet-pass-gallery.addError': string;
219
+ 'wallet-pass-gallery.searchNoFound': string;
220
+ 'wallet-pass-gallery.log.updateCurrentDetail': string;
221
+ 'wallet-pass-gallery.log.getDetailFailed': string;
222
+ 'wallet-pass-gallery.log.rechargeOrderFailed': string;
223
+ 'wallet-pass-gallery.log.getWalletListFailed': string;
224
+ 'wallet-pass-gallery.log.bindCustomerFailed': string;
225
+ 'wallet-pass-gallery.log.getUnbindListFailed': string;
226
+ 'wallet-pass-gallery.log.orderFailed': string;
227
+ 'wallet-pass-gallery.log.unexpectedResponseFormat': string;
228
+ 'wallet-pass-gallery.button.add': string;
229
+ 'wallet-pass-gallery.button.addToAppleWallet': string;
230
+ 'wallet-pass-gallery.button.addToGoogleWallet': string;
231
+ 'wallet-pass-gallery.button.recharge': string;
232
+ 'wallet-pass-gallery.error.addFailed': string;
233
+ 'wallet-pass-gallery.copyTitle': string;
234
+ 'wallet-pass-gallery.copyButton': string;
235
+ 'wallet-pass-gallery.copySuccess': string;
236
+ 'wallet-pass-gallery.detail': string;
237
+ 'wallet-pass-gallery.activelog': string;
238
+ 'wallet-pass-gallery.copyText': string;
239
+ 'wallet-pass-gallery.spendingDetails': string;
240
+ 'wallet-pass-gallery.rechargeDetails': string;
241
+ 'wallet-pass-gallery.date': string;
242
+ 'wallet-pass-gallery.spending': string;
243
+ 'wallet-pass-gallery.pointsEarned': string;
244
+ 'wallet-pass-gallery.pointsRedeemed': string;
245
+ 'wallet-pass-gallery.refund': string;
246
+ 'wallet-pass-gallery.expire': string;
247
+ 'wallet-pass-gallery.viewOrder': string;
248
+ 'wallet-pass-gallery.done': string;
249
+ 'wallet-pass-gallery.addIos': string;
250
+ 'wallet-pass-gallery.addGoogle': string;
251
+ 'wallet-pass-gallery.viewDetails': string;
252
+ 'wallet-pass-gallery.expireDate': string;
253
+ 'wallet-pass-gallery.urlEmpty': string;
254
+ 'wallet-pass-gallery.notIOS': string;
255
+ 'wallet-pass-gallery.useAppleInstead': string;
256
+ 'wallet-pass-gallery.openedInBrowser': string;
257
+ 'wallet-pass-gallery.openFailed': string;
258
+ 'wallet-pass-gallery.loading': string;
259
+ 'wallet-pass-gallery.usageRules': string;
260
+ 'wallet-pass-gallery.usageRulesSubtitle': string;
261
+ 'wallet-pass-gallery.timeUsageLimits': string;
262
+ 'wallet-pass-gallery.totalQuantityControl': string;
263
+ 'wallet-pass-gallery.dailyLimit': string;
264
+ 'wallet-pass-gallery.weeklyLimit': string;
265
+ 'wallet-pass-gallery.monthlyLimit': string;
266
+ 'wallet-pass-gallery.personalLimit': string;
267
+ 'wallet-pass-gallery.dailyLimitDesc': string;
268
+ 'wallet-pass-gallery.weeklyLimitDesc': string;
269
+ 'wallet-pass-gallery.monthlyLimitDesc': string;
270
+ 'wallet-pass-gallery.monthlyLimitUnlimited': string;
271
+ 'wallet-pass-gallery.personalLimitDesc': string;
272
+ 'wallet-pass-gallery.dailyReset': string;
273
+ 'wallet-pass-gallery.weeklyReset': string;
274
+ 'wallet-pass-gallery.monthlyReset': string;
275
+ 'wallet-pass-gallery.voucherExpireNote': string;
276
+ 'wallet-pass-gallery.viewMore': string;
277
+ 'wallet-pass-gallery.allLoaded': string;
278
+ 'page.wallet.tempHolderSelector.title': string;
279
+ 'page.wallet.tempHolderSelector.create': string;
280
+ 'page.wallet.tempHolderSelector.confirm': string;
281
+ 'page.wallet.notValidDate': string;
282
+ 'page.wallet.includedDate': string;
283
+ };
284
+ };
285
+ export default _default;
@@ -166,6 +166,14 @@ export interface IAssetItem {
166
166
  export declare const getAssetList: (params: IAssetListProps) => Promise<{
167
167
  list: IAssetItem[];
168
168
  }>;
169
+ /**
170
+ * 资产明细(admin)
171
+ */
172
+ export declare const getActiveLogs: (params: {
173
+ filter_card_id: string;
174
+ }) => Promise<{
175
+ list: IAssetItem[];
176
+ }>;
169
177
  /**
170
178
  * 获取资产详情
171
179
  * @param params 接口请求参数
@@ -203,26 +203,16 @@ export var getAssetList = /*#__PURE__*/function () {
203
203
  }();
204
204
 
205
205
  /**
206
- * 获取资产详情
207
- * @param params 接口请求参数
208
- * @returns 资产详情
206
+ * 资产明细(admin)
209
207
  */
210
- export var getDetailApi = /*#__PURE__*/function () {
208
+ export var getActiveLogs = /*#__PURE__*/function () {
211
209
  var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(params) {
212
210
  var _yield$request$getReq6, data;
213
211
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
214
212
  while (1) switch (_context6.prev = _context6.next) {
215
213
  case 0:
216
214
  _context6.next = 2;
217
- return request.getRequest().get("".concat(params.apiPrefix || '/h5', "/machinecode/lowcode/detail/").concat(params.id), {
218
- order_behavior_count: 1,
219
- // 订单行为次数
220
- order_behavior_count_customer: 1,
221
- // 客户订单行为次数
222
- order_behavior_count_customer_id: params.apiPrefix === '/shop' ? params.order_behavior_count_customer_id : undefined
223
- }, {
224
- isOriginHost: true
225
- });
215
+ return request.getRequest().get("/shop/asset", params);
226
216
  case 2:
227
217
  _yield$request$getReq6 = _context6.sent;
228
218
  data = _yield$request$getReq6.data;
@@ -233,28 +223,32 @@ export var getDetailApi = /*#__PURE__*/function () {
233
223
  }
234
224
  }, _callee6);
235
225
  }));
236
- return function getDetailApi(_x6) {
226
+ return function getActiveLogs(_x6) {
237
227
  return _ref6.apply(this, arguments);
238
228
  };
239
229
  }();
240
230
 
241
231
  /**
242
- * 详情响应数据结构,供组件消费
243
- */
244
-
245
- /**
246
- * 下单接口
247
- * @param params - 订单参数
248
- * @returns 订单响应数据
232
+ * 获取资产详情
233
+ * @param params 接口请求参数
234
+ * @returns 资产详情
249
235
  */
250
- export var orderRechargeProduct = /*#__PURE__*/function () {
236
+ export var getDetailApi = /*#__PURE__*/function () {
251
237
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
252
238
  var _yield$request$getReq7, data;
253
239
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
254
240
  while (1) switch (_context7.prev = _context7.next) {
255
241
  case 0:
256
242
  _context7.next = 2;
257
- return request.getRequest().post("/h5/order/order", params);
243
+ return request.getRequest().get("".concat(params.apiPrefix || '/h5', "/machinecode/lowcode/detail/").concat(params.id), {
244
+ order_behavior_count: 1,
245
+ // 订单行为次数
246
+ order_behavior_count_customer: 1,
247
+ // 客户订单行为次数
248
+ order_behavior_count_customer_id: params.apiPrefix === '/shop' ? params.order_behavior_count_customer_id : undefined
249
+ }, {
250
+ isOriginHost: true
251
+ });
258
252
  case 2:
259
253
  _yield$request$getReq7 = _context7.sent;
260
254
  data = _yield$request$getReq7.data;
@@ -265,75 +259,79 @@ export var orderRechargeProduct = /*#__PURE__*/function () {
265
259
  }
266
260
  }, _callee7);
267
261
  }));
268
- return function orderRechargeProduct(_x7) {
262
+ return function getDetailApi(_x7) {
269
263
  return _ref7.apply(this, arguments);
270
264
  };
271
265
  }();
272
266
 
273
267
  /**
274
- * @desc: 获取钱包信息
275
- * @author: Arthur
276
- * @date: 2025-11-03 15:30
268
+ * 详情响应数据结构,供组件消费
277
269
  */
278
- export var getWalletDetail = /*#__PURE__*/function () {
279
- var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(id) {
270
+
271
+ /**
272
+ * 下单接口
273
+ * @param params - 订单参数
274
+ * @returns 订单响应数据
275
+ */
276
+ export var orderRechargeProduct = /*#__PURE__*/function () {
277
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params) {
278
+ var _yield$request$getReq8, data;
280
279
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
281
280
  while (1) switch (_context8.prev = _context8.next) {
282
281
  case 0:
283
- return _context8.abrupt("return", request.getRequest().get("/h5/wallet/".concat(id), {}));
284
- case 1:
282
+ _context8.next = 2;
283
+ return request.getRequest().post("/h5/order/order", params);
284
+ case 2:
285
+ _yield$request$getReq8 = _context8.sent;
286
+ data = _yield$request$getReq8.data;
287
+ return _context8.abrupt("return", data);
288
+ case 5:
285
289
  case "end":
286
290
  return _context8.stop();
287
291
  }
288
292
  }, _callee8);
289
293
  }));
290
- return function getWalletDetail(_x8) {
294
+ return function orderRechargeProduct(_x8) {
291
295
  return _ref8.apply(this, arguments);
292
296
  };
293
297
  }();
294
298
 
295
299
  /**
296
- * 更新卡券持有人
297
- * @param id 卡券ID
298
- * @param params 更新参数
299
- * @returns 更新结果
300
+ * @desc: 获取钱包信息
301
+ * @author: Arthur
302
+ * @date: 2025-11-03 15:30
300
303
  */
301
- export var updateWalletPassHolder = /*#__PURE__*/function () {
302
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(id, params) {
303
- var _yield$request$getReq8, data;
304
+ export var getWalletDetail = /*#__PURE__*/function () {
305
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(id) {
304
306
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
305
307
  while (1) switch (_context9.prev = _context9.next) {
306
308
  case 0:
307
- _context9.next = 2;
308
- return request.getRequest().post("/h5/machinecode/".concat(id, "/bind-holder"), params);
309
- case 2:
310
- _yield$request$getReq8 = _context9.sent;
311
- data = _yield$request$getReq8.data;
312
- return _context9.abrupt("return", data);
313
- case 5:
309
+ return _context9.abrupt("return", request.getRequest().get("/h5/wallet/".concat(id), {}));
310
+ case 1:
314
311
  case "end":
315
312
  return _context9.stop();
316
313
  }
317
314
  }, _callee9);
318
315
  }));
319
- return function updateWalletPassHolder(_x9, _x10) {
316
+ return function getWalletDetail(_x9) {
320
317
  return _ref9.apply(this, arguments);
321
318
  };
322
319
  }();
323
320
 
324
321
  /**
325
- * 获取卡券详情
322
+ * 更新卡券持有人
326
323
  * @param id 卡券ID
327
- * @returns 卡券详情
324
+ * @param params 更新参数
325
+ * @returns 更新结果
328
326
  */
329
- export var getWalletPassDetail = /*#__PURE__*/function () {
327
+ export var updateWalletPassHolder = /*#__PURE__*/function () {
330
328
  var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(id, params) {
331
329
  var _yield$request$getReq9, data;
332
330
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
333
331
  while (1) switch (_context10.prev = _context10.next) {
334
332
  case 0:
335
333
  _context10.next = 2;
336
- return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(id), params);
334
+ return request.getRequest().post("/h5/machinecode/".concat(id, "/bind-holder"), params);
337
335
  case 2:
338
336
  _yield$request$getReq9 = _context10.sent;
339
337
  data = _yield$request$getReq9.data;
@@ -344,7 +342,35 @@ export var getWalletPassDetail = /*#__PURE__*/function () {
344
342
  }
345
343
  }, _callee10);
346
344
  }));
347
- return function getWalletPassDetail(_x11, _x12) {
345
+ return function updateWalletPassHolder(_x10, _x11) {
348
346
  return _ref10.apply(this, arguments);
349
347
  };
348
+ }();
349
+
350
+ /**
351
+ * 获取卡券详情
352
+ * @param id 卡券ID
353
+ * @returns 卡券详情
354
+ */
355
+ export var getWalletPassDetail = /*#__PURE__*/function () {
356
+ var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(id, params) {
357
+ var _yield$request$getReq10, data;
358
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
359
+ while (1) switch (_context11.prev = _context11.next) {
360
+ case 0:
361
+ _context11.next = 2;
362
+ return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(id), params);
363
+ case 2:
364
+ _yield$request$getReq10 = _context11.sent;
365
+ data = _yield$request$getReq10.data;
366
+ return _context11.abrupt("return", data);
367
+ case 5:
368
+ case "end":
369
+ return _context11.stop();
370
+ }
371
+ }, _callee11);
372
+ }));
373
+ return function getWalletPassDetail(_x12, _x13) {
374
+ return _ref11.apply(this, arguments);
375
+ };
350
376
  }();
@@ -0,0 +1,48 @@
1
+ interface ScheduleTextResult {
2
+ validityTexts: string[];
3
+ excluded_date: string[];
4
+ included_date: string[];
5
+ }
6
+ declare type Locale = 'en' | 'zh-CN' | 'zh-HK';
7
+ interface ScheduleItem {
8
+ id: number;
9
+ name: string | {
10
+ [key: string]: string;
11
+ };
12
+ type: 'standard' | 'time-slots' | 'designation';
13
+ start_time: string | null;
14
+ end_time: string | null;
15
+ repeat_type: 'none' | 'daily' | 'weekly';
16
+ repeat_rule: {
17
+ end: {
18
+ type: 'never' | 'date' | 'occurrence';
19
+ end_date: string | null;
20
+ occurrence: number | null;
21
+ };
22
+ frequency: number;
23
+ excluded_date: Array<{
24
+ start: string;
25
+ end: string;
26
+ }>;
27
+ included_date: any[];
28
+ frequency_date: number[];
29
+ } | null;
30
+ designation: Array<{
31
+ start_date: string;
32
+ start_time: string;
33
+ end_date: string;
34
+ end_time: string;
35
+ }> | null;
36
+ is_all: number;
37
+ time_slot: Array<{
38
+ start_time: string;
39
+ end_time: string;
40
+ }>;
41
+ }
42
+ /**
43
+ * 根据scheduleList格式化文案展示
44
+ * @param scheduleList 日程列表
45
+ * @returns 格式化后的文案结果数组,每个日程对应一个结果
46
+ */
47
+ export declare function formatScheduleText(scheduleList: ScheduleItem[], locale?: Locale): ScheduleTextResult[];
48
+ export {};