@pisell/private-materials 6.8.83 → 6.8.85

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 (396) 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 +150 -164
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  12. package/es/components/booking/addons/model.d.ts +10 -1
  13. package/es/components/booking/dashboard/serve.d.ts +1 -0
  14. package/es/components/booking/forms/model.d.ts +10 -1
  15. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  16. package/es/components/booking/forms/serve.d.ts +18 -0
  17. package/es/components/booking/info/client/serve.d.ts +2 -0
  18. package/es/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
  19. package/es/components/booking/info/index.d.ts +1 -0
  20. package/es/components/booking/info/model.d.ts +10 -1
  21. package/es/components/booking/info/pet/serve.d.ts +1 -0
  22. package/es/components/booking/info/service/Lists.d.ts +3 -0
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  25. package/es/components/booking/info/service/serve.d.ts +34 -0
  26. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  27. package/es/components/booking/info/service2/utils.d.ts +219 -0
  28. package/es/components/booking/info2/serve.d.ts +6 -0
  29. package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
  30. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  31. package/es/components/booking/info2/service/editService/utils.d.ts +28 -0
  32. package/es/components/booking/info2/service/openNormalService.d.ts +34 -0
  33. package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
  34. package/es/components/booking/model.d.ts +121 -0
  35. package/es/components/booking/notes/model.d.ts +10 -1
  36. package/es/components/booking/payments/model.d.ts +10 -1
  37. package/es/components/booking/utils.d.ts +182 -0
  38. package/es/components/checkout/PaymentModal.js +4 -2
  39. package/es/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  40. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  41. package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -1
  42. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  43. package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
  44. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  45. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  46. package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
  47. package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
  48. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  49. package/es/components/eftposPay/aggregatePayment/index.js +3 -0
  50. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  51. package/es/components/eftposPay/aggregatePayment/service.js +69 -0
  52. package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  53. package/es/components/eftposPay/aggregatePayment/types.js +65 -0
  54. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  55. package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
  56. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  57. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
  58. package/es/components/eftposPay/amount.d.ts +2 -1
  59. package/es/components/eftposPay/app.d.ts +1 -0
  60. package/es/components/eftposPay/app.js +5 -0
  61. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  62. package/es/components/eftposPay/component/fail/failCustom.js +16 -12
  63. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  64. package/es/components/eftposPay/component/fail/index.js +12 -5
  65. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  66. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  67. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  68. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  69. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  70. package/es/components/eftposPay/const.d.ts +6 -1
  71. package/es/components/eftposPay/const.js +3 -0
  72. package/es/components/eftposPay/device.d.ts +1 -1
  73. package/es/components/eftposPay/hooks.d.ts +3 -2
  74. package/es/components/eftposPay/hooks.js +12 -0
  75. package/es/components/eftposPay/huifu/Action.d.ts +8 -0
  76. package/es/components/eftposPay/huifu/Action.js +146 -0
  77. package/es/components/eftposPay/huifu/const.d.ts +5 -0
  78. package/es/components/eftposPay/huifu/const.js +70 -0
  79. package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
  80. package/es/components/eftposPay/huifu/hooks.js +184 -0
  81. package/es/components/eftposPay/huifu/index.d.ts +5 -0
  82. package/es/components/eftposPay/huifu/index.js +196 -0
  83. package/es/components/eftposPay/huifu/index.less +180 -0
  84. package/es/components/eftposPay/huifu/types.d.ts +14 -0
  85. package/es/components/eftposPay/huifu/types.js +1 -0
  86. package/es/components/eftposPay/index.d.ts +1 -0
  87. package/es/components/eftposPay/index.js +5 -1
  88. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  89. package/es/components/eftposPay/locales.d.ts +36 -0
  90. package/es/components/eftposPay/locales.js +42 -3
  91. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  92. package/es/components/eftposPay/manufacturer.js +5 -0
  93. package/es/components/eftposPay/pay.d.ts +1 -0
  94. package/es/components/eftposPay/pay.js +6 -2
  95. package/es/components/eftposPay/payo/config.d.ts +1 -0
  96. package/es/components/eftposPay/store/index.d.ts +13 -6
  97. package/es/components/eftposPay/tip.d.ts +1 -0
  98. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  99. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  100. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  101. package/es/components/eventBooking/index.d.ts +1 -0
  102. package/es/components/kioskSkuDetail/index.d.ts +3 -0
  103. package/es/components/kioskSkuDetail/index.js +266 -173
  104. package/es/components/kioskSkuDetail/index.less +49 -7
  105. package/es/components/kioskSkuDetail/locales.d.ts +6 -0
  106. package/es/components/kioskSkuDetail/locales.js +9 -3
  107. package/es/components/list/types.d.ts +178 -0
  108. package/es/components/list/utils/index.d.ts +19 -0
  109. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  110. package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
  111. package/es/components/pay/toB/types/index.d.ts +1 -0
  112. package/es/components/pay/toC/PaymentList/serve.js +14 -0
  113. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
  114. package/es/components/pay/toC/model.d.ts +9 -1
  115. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  116. package/es/components/schedules/model.d.ts +9 -1
  117. package/es/components/shoppingCart/components/Cart/Product.js +1 -1
  118. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  119. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
  120. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
  121. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
  122. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  123. package/es/components/ticketBooking/context/index.d.ts +2 -0
  124. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  125. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  126. package/es/components/ticketBooking/index.d.ts +16 -0
  127. package/es/components/ticketBooking/locales.d.ts +201 -0
  128. package/es/components/ticketBooking/serve.d.ts +288 -0
  129. package/es/components/ticketBooking/utils/index.d.ts +101 -0
  130. package/es/hooks/printer.d.ts +4 -0
  131. package/es/hooks/useEngineContext.d.ts +4 -0
  132. package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  133. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  134. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  135. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  136. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  137. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  138. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  139. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  140. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
  141. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  142. package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
  143. package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
  144. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  145. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  146. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
  147. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  148. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
  149. package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  150. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  151. package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  152. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  153. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  154. package/es/plus/skuOptionsSelection/locales.js +3 -0
  155. package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  156. package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  157. package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
  158. package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
  159. package/es/plus/skuOptionsSelection/types.d.ts +431 -0
  160. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  161. package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  162. package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  163. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  164. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  165. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  166. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  167. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  168. package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
  169. package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
  170. package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
  171. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  172. package/es/plus/webPosLogin/index.d.ts +12 -0
  173. package/es/plus/webPosLogin/locales.d.ts +49 -0
  174. package/es/plus/webPosLogin/types.d.ts +286 -0
  175. package/es/pro/Cards/index.d.ts +1 -0
  176. package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
  177. package/es/pro/Login2.0/steps/CodeInput.js +37 -7
  178. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  179. package/es/pro/Selector/Item.d.ts +14 -0
  180. package/es/pro/Selector/Selector.d.ts +14 -0
  181. package/es/pro/Selector/Selector.stories.d.ts +78 -0
  182. package/es/pro/Selector/SelectorGroup.d.ts +11 -0
  183. package/es/pro/Selector/components/Card/index.d.ts +57 -0
  184. package/es/pro/Selector/components/Card/types.d.ts +1 -0
  185. package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
  186. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  187. package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  188. package/es/pro/Selector/components/Media/index.d.ts +6 -0
  189. package/es/pro/Selector/components/Media/types.d.ts +47 -0
  190. package/es/pro/Selector/components/index.d.ts +4 -0
  191. package/es/pro/Selector/demo.d.ts +3 -0
  192. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  193. package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  194. package/es/pro/Selector/hooks/useSelectionController.d.ts +49 -0
  195. package/es/pro/Selector/index.d.ts +11 -0
  196. package/es/pro/Selector/locales.d.ts +36 -0
  197. package/es/pro/Selector/types.d.ts +212 -0
  198. package/es/pro/Selector/utils/index.d.ts +49 -0
  199. package/es/pro/skuDetailModal/locales.d.ts +103 -0
  200. package/es/pro/skuDetailModal/types.d.ts +354 -0
  201. package/es/pro/skuDetailModal/utils.d.ts +4 -0
  202. package/es/test/setup.d.ts +1 -0
  203. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  204. package/lib/components/booking/addons/model.d.ts +10 -1
  205. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  206. package/lib/components/booking/forms/model.d.ts +10 -1
  207. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  208. package/lib/components/booking/forms/serve.d.ts +18 -0
  209. package/lib/components/booking/info/client/serve.d.ts +2 -0
  210. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
  211. package/lib/components/booking/info/index.d.ts +1 -0
  212. package/lib/components/booking/info/model.d.ts +10 -1
  213. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  214. package/lib/components/booking/info/service/Lists.d.ts +3 -0
  215. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  216. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  217. package/lib/components/booking/info/service/serve.d.ts +34 -0
  218. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  219. package/lib/components/booking/info/service2/utils.d.ts +219 -0
  220. package/lib/components/booking/info2/serve.d.ts +6 -0
  221. package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
  222. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  223. package/lib/components/booking/info2/service/editService/utils.d.ts +28 -0
  224. package/lib/components/booking/info2/service/openNormalService.d.ts +34 -0
  225. package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
  226. package/lib/components/booking/model.d.ts +121 -0
  227. package/lib/components/booking/notes/model.d.ts +10 -1
  228. package/lib/components/booking/payments/model.d.ts +10 -1
  229. package/lib/components/booking/utils.d.ts +182 -0
  230. package/lib/components/checkout/PaymentModal.js +5 -2
  231. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  232. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  233. package/lib/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  234. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  235. package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
  236. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  237. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  238. package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
  239. package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
  240. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  241. package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
  242. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  243. package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
  244. package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  245. package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
  246. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  247. package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
  248. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
  249. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
  250. package/lib/components/eftposPay/amount.d.ts +2 -1
  251. package/lib/components/eftposPay/app.d.ts +1 -0
  252. package/lib/components/eftposPay/app.js +5 -0
  253. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  254. package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
  255. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  256. package/lib/components/eftposPay/component/fail/index.js +4 -1
  257. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  258. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  259. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  260. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  261. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  262. package/lib/components/eftposPay/const.d.ts +6 -1
  263. package/lib/components/eftposPay/const.js +3 -0
  264. package/lib/components/eftposPay/device.d.ts +1 -1
  265. package/lib/components/eftposPay/hooks.d.ts +3 -2
  266. package/lib/components/eftposPay/hooks.js +16 -0
  267. package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
  268. package/lib/components/eftposPay/huifu/Action.js +174 -0
  269. package/lib/components/eftposPay/huifu/const.d.ts +5 -0
  270. package/lib/components/eftposPay/huifu/const.js +86 -0
  271. package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
  272. package/lib/components/eftposPay/huifu/hooks.js +186 -0
  273. package/lib/components/eftposPay/huifu/index.d.ts +5 -0
  274. package/lib/components/eftposPay/huifu/index.js +200 -0
  275. package/lib/components/eftposPay/huifu/index.less +180 -0
  276. package/lib/components/eftposPay/huifu/types.d.ts +14 -0
  277. package/lib/components/eftposPay/huifu/types.js +17 -0
  278. package/lib/components/eftposPay/index.d.ts +1 -0
  279. package/lib/components/eftposPay/index.js +5 -1
  280. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  281. package/lib/components/eftposPay/locales.d.ts +36 -0
  282. package/lib/components/eftposPay/locales.js +42 -3
  283. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  284. package/lib/components/eftposPay/manufacturer.js +7 -0
  285. package/lib/components/eftposPay/pay.d.ts +1 -0
  286. package/lib/components/eftposPay/pay.js +3 -2
  287. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  288. package/lib/components/eftposPay/store/index.d.ts +13 -6
  289. package/lib/components/eftposPay/tip.d.ts +1 -0
  290. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  291. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  292. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  293. package/lib/components/eventBooking/index.d.ts +1 -0
  294. package/lib/components/kioskSkuDetail/index.d.ts +3 -0
  295. package/lib/components/kioskSkuDetail/index.js +180 -113
  296. package/lib/components/kioskSkuDetail/index.less +49 -7
  297. package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
  298. package/lib/components/kioskSkuDetail/locales.js +9 -3
  299. package/lib/components/list/types.d.ts +178 -0
  300. package/lib/components/list/utils/index.d.ts +19 -0
  301. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  302. package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
  303. package/lib/components/pay/toB/types/index.d.ts +1 -0
  304. package/lib/components/pay/toC/PaymentList/serve.js +15 -0
  305. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
  306. package/lib/components/pay/toC/model.d.ts +9 -1
  307. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  308. package/lib/components/schedules/model.d.ts +9 -1
  309. package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
  310. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  311. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
  312. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
  313. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
  314. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  315. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  316. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  317. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  318. package/lib/components/ticketBooking/index.d.ts +16 -0
  319. package/lib/components/ticketBooking/locales.d.ts +201 -0
  320. package/lib/components/ticketBooking/serve.d.ts +288 -0
  321. package/lib/components/ticketBooking/utils/index.d.ts +101 -0
  322. package/lib/hooks/printer.d.ts +4 -0
  323. package/lib/hooks/useEngineContext.d.ts +4 -0
  324. package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  325. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  326. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  327. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  328. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  329. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  330. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  331. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  332. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
  333. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  334. package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
  335. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
  336. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  337. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  338. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
  339. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  340. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
  341. package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  342. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  343. package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  344. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  345. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  346. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  347. package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  348. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  349. package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
  350. package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
  351. package/lib/plus/skuOptionsSelection/types.d.ts +431 -0
  352. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  353. package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  354. package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  355. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  356. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  357. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  358. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  359. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  360. package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
  361. package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
  362. package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
  363. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  364. package/lib/plus/webPosLogin/index.d.ts +12 -0
  365. package/lib/plus/webPosLogin/locales.d.ts +49 -0
  366. package/lib/plus/webPosLogin/types.d.ts +286 -0
  367. package/lib/pro/Cards/index.d.ts +1 -0
  368. package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
  369. package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
  370. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  371. package/lib/pro/Selector/Item.d.ts +14 -0
  372. package/lib/pro/Selector/Selector.d.ts +14 -0
  373. package/lib/pro/Selector/Selector.stories.d.ts +78 -0
  374. package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
  375. package/lib/pro/Selector/components/Card/index.d.ts +57 -0
  376. package/lib/pro/Selector/components/Card/types.d.ts +1 -0
  377. package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
  378. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  379. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  380. package/lib/pro/Selector/components/Media/index.d.ts +6 -0
  381. package/lib/pro/Selector/components/Media/types.d.ts +47 -0
  382. package/lib/pro/Selector/components/index.d.ts +4 -0
  383. package/lib/pro/Selector/demo.d.ts +3 -0
  384. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  385. package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  386. package/lib/pro/Selector/hooks/useSelectionController.d.ts +49 -0
  387. package/lib/pro/Selector/index.d.ts +11 -0
  388. package/lib/pro/Selector/locales.d.ts +36 -0
  389. package/lib/pro/Selector/types.d.ts +212 -0
  390. package/lib/pro/Selector/utils/index.d.ts +49 -0
  391. package/lib/pro/skuDetailModal/locales.d.ts +103 -0
  392. package/lib/pro/skuDetailModal/types.d.ts +354 -0
  393. package/lib/pro/skuDetailModal/utils.d.ts +4 -0
  394. package/lib/test/setup.d.ts +1 -0
  395. package/lowcode/kiosk-sku-detail/meta.ts +229 -94
  396. package/package.json +1 -1
@@ -0,0 +1,120 @@
1
+ import { useEffect, useRef } from 'react';
2
+ import PaymentMethod from "../utils/payment";
3
+ import { ModeEnum } from "../../const";
4
+ import { useStoreRef } from "../../hooks";
5
+ import { getUuid } from "../../helper";
6
+ import { useDispatch, updateState } from "../../store";
7
+ import { useContextData } from "../../store";
8
+ var useMicropay = function useMicropay(options) {
9
+ var _useContextData = useContextData(),
10
+ custom = _useContextData.custom;
11
+ var _useStoreRef = useStoreRef(),
12
+ modeRef = _useStoreRef.modeRef,
13
+ payRef = _useStoreRef.payRef,
14
+ orderIdRef = _useStoreRef.orderIdRef,
15
+ eftposRef = _useStoreRef.eftposRef,
16
+ deviceRef = _useStoreRef.deviceRef,
17
+ amountRef = _useStoreRef.amountRef;
18
+ var paymentMethodRef = useRef(null);
19
+ var dispatch = useDispatch();
20
+ var uniquePaymentNumberRef = useRef(null);
21
+ var isPay = modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay;
22
+ useEffect(function () {
23
+ if (!paymentMethodRef.current) {
24
+ var _deviceRef$current;
25
+ // 如果不存在交易号需要先创建一个交易号
26
+ if (!options.paymentNum) {
27
+ var paymentNum = getUuid();
28
+ dispatch(updateState({
29
+ number: paymentNum
30
+ }));
31
+ options.paymentNum = paymentNum;
32
+ uniquePaymentNumberRef.current = paymentNum;
33
+ } else {
34
+ uniquePaymentNumberRef.current = options.paymentNum;
35
+ }
36
+ options.orderId = orderIdRef.current;
37
+ options.deviceId = (_deviceRef$current = deviceRef.current) === null || _deviceRef$current === void 0 ? void 0 : _deviceRef$current.id;
38
+ paymentMethodRef.current = new PaymentMethod(options);
39
+ }
40
+ return function () {
41
+ var _paymentMethodRef$cur, _paymentMethodRef$cur2;
42
+ // 卸载组件时,如果paymentMethodRef存在需要先执行销毁,再清空
43
+ (_paymentMethodRef$cur = paymentMethodRef.current) === null || _paymentMethodRef$cur === void 0 || (_paymentMethodRef$cur2 = _paymentMethodRef$cur.destroy) === null || _paymentMethodRef$cur2 === void 0 || _paymentMethodRef$cur2.call(_paymentMethodRef$cur);
44
+ paymentMethodRef.current = null;
45
+ };
46
+ }, []);
47
+ var run = function run(runParams) {
48
+ var _payRef$current, _deviceRef$current2;
49
+ var params = {
50
+ order_id: orderIdRef.current,
51
+ unique_payment_number: uniquePaymentNumberRef.current,
52
+ payment_code: options.paymentCode,
53
+ amount: isPay ? (_payRef$current = payRef.current) === null || _payRef$current === void 0 ? void 0 : _payRef$current.total : amountRef.current,
54
+ operator_id: custom === null || custom === void 0 ? void 0 : custom.operator_id,
55
+ operator_type: custom === null || custom === void 0 ? void 0 : custom.operator_type,
56
+ platform: custom === null || custom === void 0 ? void 0 : custom.platform,
57
+ micropay: {
58
+ card_reader_type: eftposRef.current,
59
+ card_reader_id: (_deviceRef$current2 = deviceRef.current) === null || _deviceRef$current2 === void 0 ? void 0 : _deviceRef$current2.id
60
+ }
61
+ };
62
+ if (isPay) {
63
+ var _payRef$current2, _payRef$current3, _payRef$current4, _paymentMethodRef$cur3;
64
+ params.payment = {
65
+ original_amount: (_payRef$current2 = payRef.current) === null || _payRef$current2 === void 0 ? void 0 : _payRef$current2.amount,
66
+ order_payment_type: 'normal',
67
+ // TODO: 需要使用方提供
68
+ custom_payment_id: custom === null || custom === void 0 ? void 0 : custom.custom_payment_id,
69
+ custom_payment_code: custom === null || custom === void 0 ? void 0 : custom.custom_payment_code,
70
+ custom_payment_name: custom === null || custom === void 0 ? void 0 : custom.custom_payment_name,
71
+ custom_payment_type: custom === null || custom === void 0 ? void 0 : custom.custom_payment_type,
72
+ service_charge: {
73
+ amount: (_payRef$current3 = payRef.current) === null || _payRef$current3 === void 0 ? void 0 : _payRef$current3.surMoney,
74
+ percentage: (_payRef$current4 = payRef.current) === null || _payRef$current4 === void 0 ? void 0 : _payRef$current4.surPercentRate
75
+ },
76
+ metadata: {
77
+ unique_payment_number: uniquePaymentNumberRef.current
78
+ }
79
+ };
80
+ // 支付场景需要传付款码
81
+ params.micropay.auth_code = (runParams === null || runParams === void 0 ? void 0 : runParams.authCode) || '';
82
+ (_paymentMethodRef$cur3 = paymentMethodRef.current) === null || _paymentMethodRef$cur3 === void 0 || _paymentMethodRef$cur3.pay(params);
83
+ } else {
84
+ var _paymentMethodRef$cur4;
85
+ // 退款场景需要传 order_payment_id
86
+ params.micropay.order_payment_id = (runParams === null || runParams === void 0 ? void 0 : runParams.orderPaymentId) || '';
87
+ (_paymentMethodRef$cur4 = paymentMethodRef.current) === null || _paymentMethodRef$cur4 === void 0 || _paymentMethodRef$cur4.refund(params);
88
+ }
89
+ };
90
+ var query = function query() {
91
+ if (isPay) {
92
+ var _paymentMethodRef$cur5;
93
+ (_paymentMethodRef$cur5 = paymentMethodRef.current) === null || _paymentMethodRef$cur5 === void 0 || _paymentMethodRef$cur5.payQuery();
94
+ } else {
95
+ var _paymentMethodRef$cur6;
96
+ (_paymentMethodRef$cur6 = paymentMethodRef.current) === null || _paymentMethodRef$cur6 === void 0 || _paymentMethodRef$cur6.refundQuery();
97
+ }
98
+ };
99
+ var action = function action(data) {
100
+ var params = {
101
+ order_id: orderIdRef.current,
102
+ unique_payment_number: uniquePaymentNumberRef.current,
103
+ payment_code: options.paymentCode,
104
+ data: data
105
+ };
106
+ if (isPay) {
107
+ var _paymentMethodRef$cur7;
108
+ (_paymentMethodRef$cur7 = paymentMethodRef.current) === null || _paymentMethodRef$cur7 === void 0 || _paymentMethodRef$cur7.payAction(params);
109
+ } else {
110
+ var _paymentMethodRef$cur8;
111
+ (_paymentMethodRef$cur8 = paymentMethodRef.current) === null || _paymentMethodRef$cur8 === void 0 || _paymentMethodRef$cur8.refundAction(params);
112
+ }
113
+ };
114
+ return {
115
+ run: run,
116
+ query: query,
117
+ action: action
118
+ };
119
+ };
120
+ export default useMicropay;
@@ -0,0 +1,3 @@
1
+ import { EActionStatus } from './types';
2
+ import useMicropay from './hooks/useMicropay';
3
+ export { useMicropay, EActionStatus };
@@ -0,0 +1,3 @@
1
+ import { EActionStatus } from "./types";
2
+ import useMicropay from "./hooks/useMicropay";
3
+ export { useMicropay, EActionStatus };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 聚合支付-支付接口
3
+ */
4
+ export declare const AGPTPayApi: (data: any, config: any) => Promise<any>;
5
+ /**
6
+ * 聚合支付-支付-查询接口
7
+ */
8
+ export declare const AGPTQueryApi: (param: any, config: any) => Promise<any>;
9
+ /**
10
+ * 聚合支付-支付-支付行为接口
11
+ */
12
+ export declare const AGPTActionApi: (param: any, config: any) => Promise<any>;
13
+ /**
14
+ * 聚合支付-退款接口
15
+ */
16
+ export declare const AGPTRefundApi: (data: any, config: any) => Promise<any>;
17
+ /**
18
+ * 聚合支付-退款-查询接口
19
+ */
20
+ export declare const AGPTRefundQueryApi: (param: any, config: any) => Promise<any>;
21
+ /**
22
+ * 聚合支付-退款-支付行为接口
23
+ */
24
+ export declare const AGPTRefundActionApi: (param: any, config: any) => Promise<any>;
@@ -0,0 +1,69 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { request } from "../../../utils";
8
+
9
+ ///////////////// 支付相关接口 /////////////////
10
+ /**
11
+ * 聚合支付-支付接口
12
+ */
13
+ export var AGPTPayApi = function AGPTPayApi(data, config) {
14
+ return request.getRequest().post('/shop/pay/external-unified/pay', data, _objectSpread(_objectSpread({}, config || {}), {}, {
15
+ customMessage: true,
16
+ fullResult: true
17
+ }));
18
+ };
19
+
20
+ /**
21
+ * 聚合支付-支付-查询接口
22
+ */
23
+ export var AGPTQueryApi = function AGPTQueryApi(param, config) {
24
+ return request.getRequest().post('/shop/pay/external-unified/pay/verify', param, _objectSpread(_objectSpread({}, config || {}), {}, {
25
+ customMessage: true,
26
+ fullResult: true
27
+ }));
28
+ };
29
+
30
+ /**
31
+ * 聚合支付-支付-支付行为接口
32
+ */
33
+ export var AGPTActionApi = function AGPTActionApi(param, config) {
34
+ return request.getRequest().post('/shop/pay/external-unified/pay/action', param, _objectSpread(_objectSpread({}, config || {}), {}, {
35
+ customMessage: true,
36
+ fullResult: true
37
+ }));
38
+ };
39
+
40
+ ///////////////// 退款相关接口 /////////////////
41
+ /**
42
+ * 聚合支付-退款接口
43
+ */
44
+ export var AGPTRefundApi = function AGPTRefundApi(data, config) {
45
+ return request.getRequest().post('/shop/pay/external-unified/refund', data, _objectSpread(_objectSpread({}, config || {}), {}, {
46
+ customMessage: true,
47
+ fullResult: true
48
+ }));
49
+ };
50
+
51
+ /**
52
+ * 聚合支付-退款-查询接口
53
+ */
54
+ export var AGPTRefundQueryApi = function AGPTRefundQueryApi(param, config) {
55
+ return request.getRequest().post('/shop/pay/external-unified/refund/verify', param, _objectSpread(_objectSpread({}, config || {}), {}, {
56
+ customMessage: true,
57
+ fullResult: true
58
+ }));
59
+ };
60
+
61
+ /**
62
+ * 聚合支付-退款-支付行为接口
63
+ */
64
+ export var AGPTRefundActionApi = function AGPTRefundActionApi(param, config) {
65
+ return request.getRequest().post('/shop/pay/external-unified/refund/action', param, _objectSpread(_objectSpread({}, config || {}), {}, {
66
+ customMessage: true,
67
+ fullResult: true
68
+ }));
69
+ };
@@ -0,0 +1,106 @@
1
+ import PaymentMethod from './utils/payment';
2
+ export declare enum EVisibleButtonType {
3
+ /** 取消按钮 */
4
+ CancelButton = "CancelButton",
5
+ /** 等待按钮 */
6
+ WaitButton = "WaitButton"
7
+ }
8
+ export declare enum EActionStatus {
9
+ /** 空 */
10
+ Empty = "Empty",
11
+ /** 取消 */
12
+ Cancel = "Cancel",
13
+ /** 取消中 */
14
+ CancelWaiting = "CancelWaiting",
15
+ /** 签名 */
16
+ Signature = "Signature",
17
+ /** 签名等待中 */
18
+ SignatureWaiting = "SignatureWaiting"
19
+ }
20
+ export declare const QUERY_START_DELAY: number;
21
+ export declare const GLOBAL_TIMEOUT: number;
22
+ export declare const REQUEST_TIMEOUT: number;
23
+ export declare const QUERY_INTERVAL: number;
24
+ /**
25
+ * 聚合支付初始化参数
26
+ */
27
+ export interface PaymentMethodOptions {
28
+ /** 支付类型 */
29
+ paymentCode: string;
30
+ /** 交易号 */
31
+ paymentNum: string;
32
+ /** 订单ID */
33
+ orderId?: string | number;
34
+ /** 设备ID */
35
+ deviceId?: string | number;
36
+ /** 统一回调函数 */
37
+ callback: PaymentCallback;
38
+ /** 检查是否应该继续处理结果 */
39
+ shouldContinue?: () => boolean;
40
+ /** 配置 */
41
+ config?: PaymentMethodConfig;
42
+ }
43
+ /**
44
+ * 聚合支付操作类型
45
+ */
46
+ export declare enum ActionType {
47
+ /** 支付 */
48
+ Pay = "pay",
49
+ /** 支付查询 */
50
+ PayQuery = "payQuery",
51
+ /** 支付行为 */
52
+ PayAction = "payAction",
53
+ /** 退款 */
54
+ Refund = "refund",
55
+ /** 退款查询 */
56
+ RefundQuery = "refundQuery",
57
+ /** 退款行为 */
58
+ RefundAction = "refundAction"
59
+ }
60
+ /** 回调事件 */
61
+ export interface CallbackEvent {
62
+ /** 事件类型:成功、失败、进度 */
63
+ status: EPaymentStatus;
64
+ /** 操作类型 */
65
+ actionType: ActionType;
66
+ /** 数据:成功时是结果,失败时是错误信息,进度时是进度数据 */
67
+ data: any;
68
+ }
69
+ /** 统一回调函数 */
70
+ export declare type PaymentCallback = (instance: PaymentMethod, event: CallbackEvent) => void;
71
+ /**
72
+ * 执行操作参数
73
+ */
74
+ export interface RunOptions {
75
+ /** 操作类型 */
76
+ actionType: ActionType;
77
+ /** 请求参数 */
78
+ params?: Record<string, any>;
79
+ }
80
+ /**
81
+ * 聚合支付配置参数
82
+ */
83
+ export interface PaymentMethodConfig {
84
+ /** 是否需要轮询间隔 */
85
+ hasQueryInterval?: boolean;
86
+ }
87
+ /**
88
+ * 支付状态
89
+ */
90
+ export declare enum EPaymentStatus {
91
+ /** 支付中 */
92
+ Processing = "processing",
93
+ /** 支付成功 */
94
+ Success = "success",
95
+ /** 支付失败 */
96
+ Failed = "failed"
97
+ }
98
+ /**
99
+ * 执行操作参数
100
+ */
101
+ export interface HooksRunParams {
102
+ /** 付款码 */
103
+ authCode?: string | number;
104
+ /** 订单支付ID */
105
+ orderPaymentId?: string | number;
106
+ }
@@ -0,0 +1,65 @@
1
+ export var EVisibleButtonType = /*#__PURE__*/function (EVisibleButtonType) {
2
+ EVisibleButtonType["CancelButton"] = "CancelButton";
3
+ EVisibleButtonType["WaitButton"] = "WaitButton";
4
+ return EVisibleButtonType;
5
+ }({});
6
+ export var EActionStatus = /*#__PURE__*/function (EActionStatus) {
7
+ EActionStatus["Empty"] = "Empty";
8
+ EActionStatus["Cancel"] = "Cancel";
9
+ EActionStatus["CancelWaiting"] = "CancelWaiting";
10
+ EActionStatus["Signature"] = "Signature";
11
+ EActionStatus["SignatureWaiting"] = "SignatureWaiting";
12
+ return EActionStatus;
13
+ }({});
14
+
15
+ // 开始轮询的延迟时间(支付发起后等待10秒)
16
+ export var QUERY_START_DELAY = 1000 * 10;
17
+ // 全局超时时间(2分钟)
18
+ export var GLOBAL_TIMEOUT = 1000 * 60 * 2;
19
+ // 单次请求超时时间(10秒)
20
+ export var REQUEST_TIMEOUT = 1000 * 10;
21
+ // 轮询间隔时间(2秒)
22
+ export var QUERY_INTERVAL = 1000 * 2;
23
+
24
+ /**
25
+ * 聚合支付初始化参数
26
+ */
27
+
28
+ /**
29
+ * 聚合支付操作类型
30
+ */
31
+ export var ActionType = /*#__PURE__*/function (ActionType) {
32
+ ActionType["Pay"] = "pay";
33
+ ActionType["PayQuery"] = "payQuery";
34
+ ActionType["PayAction"] = "payAction";
35
+ ActionType["Refund"] = "refund";
36
+ ActionType["RefundQuery"] = "refundQuery";
37
+ ActionType["RefundAction"] = "refundAction";
38
+ return ActionType;
39
+ }({});
40
+
41
+ /** 回调事件 */
42
+
43
+ /** 统一回调函数 */
44
+
45
+ /**
46
+ * 执行操作参数
47
+ */
48
+
49
+ /**
50
+ * 聚合支付配置参数
51
+ */
52
+
53
+ /**
54
+ * 支付状态
55
+ */
56
+ export var EPaymentStatus = /*#__PURE__*/function (EPaymentStatus) {
57
+ EPaymentStatus["Processing"] = "processing";
58
+ EPaymentStatus["Success"] = "success";
59
+ EPaymentStatus["Failed"] = "failed";
60
+ return EPaymentStatus;
61
+ }({});
62
+
63
+ /**
64
+ * 执行操作参数
65
+ */
@@ -0,0 +1,110 @@
1
+ export interface LogEntry {
2
+ /** 日志标题 */
3
+ title: string;
4
+ /** 日志内容 */
5
+ content?: any;
6
+ /** 支付时间(精确到毫秒) */
7
+ time: string;
8
+ }
9
+ interface PaymentLogRecord {
10
+ /** 交易记录号 */
11
+ number: string;
12
+ /** 订单ID */
13
+ orderId?: string | number;
14
+ /** 设备ID */
15
+ deviceId?: string | number;
16
+ /** 支付类型 */
17
+ paymentCode?: string;
18
+ /** 创建时间 */
19
+ createdAt: string;
20
+ /** 日志条目列表 */
21
+ logs: LogEntry[];
22
+ }
23
+ declare class PaymentLogInstance {
24
+ private static instance;
25
+ /** 当前交易记录号 */
26
+ private currentNumber;
27
+ /** 当前日志记录 */
28
+ private currentRecord;
29
+ private constructor();
30
+ /**
31
+ * 获取单例实例
32
+ */
33
+ static getInstance(): PaymentLogInstance;
34
+ /**
35
+ * 初始化支付日志
36
+ * @param number 交易记录号
37
+ * @param options 初始化选项
38
+ */
39
+ init(number: string, options?: {
40
+ orderId?: string | number;
41
+ deviceId?: string | number;
42
+ paymentCode?: string;
43
+ [key: string]: any;
44
+ }): void;
45
+ /**
46
+ * 添加日志条目
47
+ * @param title 日志标题
48
+ * @param content 日志内容
49
+ */
50
+ addLog(params: {
51
+ title: string;
52
+ content?: any;
53
+ }): void;
54
+ /**
55
+ * 构建日志内容
56
+ * @param record 日志记录
57
+ * @returns 格式化的日志内容数组
58
+ */
59
+ private buildLogContent;
60
+ /**
61
+ * 发送单条日志记录到飞书
62
+ * @param record 日志记录
63
+ * @param isRestore 是否是恢复上传
64
+ */
65
+ private sendLogRecord;
66
+ /**
67
+ * 发送日志到飞书
68
+ * @param title 日志标题(可选,仅在需要自定义标题时使用)
69
+ */
70
+ sendLogs(title?: string): void;
71
+ /**
72
+ * 清除当前日志
73
+ * @param shouldSend 清除前是否发送到飞书,默认为 true
74
+ */
75
+ clearLogs(shouldSend?: boolean): void;
76
+ /**
77
+ * 检查并上传旧日志
78
+ */
79
+ private checkAndUploadOldLogs;
80
+ /**
81
+ * 获取所有支付日志对象
82
+ */
83
+ private getAllLogsObject;
84
+ /**
85
+ * 保存所有支付日志对象
86
+ */
87
+ private saveAllLogsObject;
88
+ /**
89
+ * 保存到 localStorage
90
+ */
91
+ private saveToLocalStorage;
92
+ /**
93
+ * 从 localStorage 中删除
94
+ */
95
+ private removeFromLocalStorage;
96
+ /**
97
+ * 获取所有旧日志
98
+ */
99
+ private getOldLogsFromLocalStorage;
100
+ /**
101
+ * 获取当前日志记录(用于调试)
102
+ */
103
+ getCurrentRecord(): PaymentLogRecord | null;
104
+ /**
105
+ * 获取当前交易号(用于调试)
106
+ */
107
+ getCurrentNumber(): string | null;
108
+ }
109
+ declare const paymentLog: PaymentLogInstance;
110
+ export default paymentLog;